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/jiffle/src/main/java/jaitools/jiffle/interpreter/JiffleRunner.java b/jiffle/src/main/java/jaitools/jiffle/interpreter/JiffleRunner.java index aef35eab..1fb42039 100644 --- a/jiffle/src/main/java/jaitools/jiffle/interpreter/JiffleRunner.java +++ b/jiffle/src/main/java/jaitools/jiffle/interpreter/JiffleRunne...
true
true
private void nextPixel() { if (!finished) { boolean firstImg = true; // @todo remove this hack for (ImageHandler h : handlerTable.values()) { h.x++; if (h.x > h.xmax) { h.x = h.xmin; h.y++; ...
private void nextPixel() { if (!finished) { boolean firstImg = true; // @todo remove this hack for (ImageHandler h : handlerTable.values()) { h.x++; if (h.x > h.xmax) { h.x = h.xmin; h.y++; ...
diff --git a/gdx/src/com/badlogic/gdx/utils/GdxNativesLoader.java b/gdx/src/com/badlogic/gdx/utils/GdxNativesLoader.java index 0d7ba4391..d615a93d5 100644 --- a/gdx/src/com/badlogic/gdx/utils/GdxNativesLoader.java +++ b/gdx/src/com/badlogic/gdx/utils/GdxNativesLoader.java @@ -1,107 +1,107 @@ /* * Copyright 2010 Mari...
true
true
static public void load () { if (nativesLoaded) return; String vm = System.getProperty("java.vm.name"); if (vm == null || !vm.contains("Dalvik")) { if (isWindows) { nativesLoaded = loadLibrary("gdx.dll", "gdx64.dll"); } else if (isMac) { nativesLoaded = loadLibrary("libgdx.dylib", "libgdx.dylib");...
static public void load () { if (nativesLoaded) return; String vm = System.getProperty("java.vm.name"); if (vm == null || !vm.contains("Dalvik")) { if (isWindows) { nativesLoaded = loadLibrary("gdx.dll", "gdx-64.dll"); } else if (isMac) { nativesLoaded = loadLibrary("libgdx.dylib", "libgdx.dylib")...
diff --git a/src/main/java/beamscheduling/NetworkGenerator.java b/src/main/java/beamscheduling/NetworkGenerator.java index 5d6ca5a..5b47910 100644 --- a/src/main/java/beamscheduling/NetworkGenerator.java +++ b/src/main/java/beamscheduling/NetworkGenerator.java @@ -1,288 +1,288 @@ package beamscheduling; import java...
true
true
public Network<V,E> create() { Network<V,E> network = null; network = this.networkFactory.create(); network.relays = new HashSet(numRelays); network.subscribers = new HashSet(numSubscribers); network.relayList = new Vertex[numRelays]; for(int i=0; i<numRelays; i++) { ...
public Network<V,E> create() { Network<V,E> network = null; network = this.networkFactory.create(); network.relays = new HashSet(numRelays); network.subscribers = new HashSet(numSubscribers); network.relayList = new Vertex[numRelays]; for(int i=0; i<numRelays; i++) { ...
diff --git a/bitrepository-integrity-service/src/main/java/org/bitrepository/integrityservice/web/RestIntegrityService.java b/bitrepository-integrity-service/src/main/java/org/bitrepository/integrityservice/web/RestIntegrityService.java index 10c23f1a..1c98f1d7 100644 --- a/bitrepository-integrity-service/src/main/java...
true
true
private JSONObject makeWorkflowSetupObj(JobID workflowID) { JSONObject obj = new JSONObject(); Workflow workflow = workflowManager.getWorkflow(workflowID); WorkflowStatistic lastRunStatistic = workflowManager.getLastCompleteStatistics(workflowID); try { obj.put("workflowI...
private JSONObject makeWorkflowSetupObj(JobID workflowID) { JSONObject obj = new JSONObject(); Workflow workflow = workflowManager.getWorkflow(workflowID); WorkflowStatistic lastRunStatistic = workflowManager.getLastCompleteStatistics(workflowID); try { obj.put("workflowI...
diff --git a/src/main/java/net/spy/memcached/internal/OperationFuture.java b/src/main/java/net/spy/memcached/internal/OperationFuture.java index 4e07999..84c1153 100644 --- a/src/main/java/net/spy/memcached/internal/OperationFuture.java +++ b/src/main/java/net/spy/memcached/internal/OperationFuture.java @@ -1,266 +1,26...
true
true
public T get(long duration, TimeUnit units) throws InterruptedException, TimeoutException, ExecutionException { if (!latch.await(duration, units)) { // whenever timeout occurs, continuous timeout counter will increase by 1. MemcachedConnection.opTimedOut(op); if (op != null) { // op can be...
public T get(long duration, TimeUnit units) throws InterruptedException, TimeoutException, ExecutionException { if (!latch.await(duration, units)) { // whenever timeout occurs, continuous timeout counter will increase by 1. MemcachedConnection.opTimedOut(op); if (op != null) { // op can be...
diff --git a/tools/sos-netlet/src/main/java/sorcer/netlet/util/LoaderConfigurationHelper.java b/tools/sos-netlet/src/main/java/sorcer/netlet/util/LoaderConfigurationHelper.java index 96d15e8d..4a51fdfe 100644 --- a/tools/sos-netlet/src/main/java/sorcer/netlet/util/LoaderConfigurationHelper.java +++ b/tools/sos-netlet/s...
false
true
public static List<URL> load(String str) { List<URL> urlsList = new ArrayList<URL>(); URI uri; str = assignProperties(str); try { uri = new URI(str); } catch (URISyntaxException e) { logger.log(Level.SEVERE, "Error while parsing URL " + str, e); ...
public static List<URL> load(String str) { List<URL> urlsList = new ArrayList<URL>(); URI uri; str = assignProperties(str); try { uri = new URI(str); } catch (URISyntaxException e) { logger.log(Level.SEVERE, "Error while parsing URL " + str, e); ...
diff --git a/src/android/PushNotification.java b/src/android/PushNotification.java index 9cfb55d..b1ce030 100644 --- a/src/android/PushNotification.java +++ b/src/android/PushNotification.java @@ -1,152 +1,152 @@ package org.usergrid.cordova; import java.util.HashMap; import org.apache.cordova.api.Plugin; imp...
true
true
public PluginResult execute(String action, JSONArray args, String callbackId) { webView = this; try{ if (action.equals("registerWithPushProvider")) { Client client = new Client(); JSONObject options = args.getJSONObject(0); String apiUrl = null; if(options.has("apiUrl")) { apiUrl = opt...
public PluginResult execute(String action, JSONArray args, String callbackId) { webView = this; try{ if (action.equals("registerWithPushProvider")) { Client client = new Client(); JSONObject options = args.getJSONObject(0); String apiUrl = null; if(options.has("apiUrl")) { apiUrl = opt...
diff --git a/webmacro/src/org/webmacro/servlet/WMServlet.java b/webmacro/src/org/webmacro/servlet/WMServlet.java index 9473ae12..a7c55719 100755 --- a/webmacro/src/org/webmacro/servlet/WMServlet.java +++ b/webmacro/src/org/webmacro/servlet/WMServlet.java @@ -1,538 +1,538 @@ /* * Copyright (c) 1998, 1999 Semiotek I...
true
true
final private void doRequest( HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { WebContext context = null; if (_problem != null) { init(); if (_problem != null) { try { resp.setContentType("text/html"...
final private void doRequest( HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { WebContext context = null; if (_problem != null) { init(); if (_problem != null) { try { resp.setContentType("text/html"...
diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java index 765f7a590..ea51a493a 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java...
true
true
public static GameSummary getSummary( Context context, GameUtils.GameLock lock ) { initDB( context ); GameSummary summary = null; synchronized( s_dbHelper ) { SQLiteDatabase db = s_dbHelper.getReadableDatabase(); String[...
public static GameSummary getSummary( Context context, GameUtils.GameLock lock ) { initDB( context ); GameSummary summary = null; synchronized( s_dbHelper ) { SQLiteDatabase db = s_dbHelper.getReadableDatabase(); String[...
diff --git a/src/MenuItem.java b/src/MenuItem.java index d8e828b..d9c2eb2 100644 --- a/src/MenuItem.java +++ b/src/MenuItem.java @@ -1,53 +1,53 @@ /** * Game menu item * * @author James Schwinabart */ import java.awt.*; import javax.swing.*; public class MenuItem extends JLabel { private String labe...
true
true
public void draw(Graphics g, int x, int y) { // center the string int width = g.getFontMetrics().stringWidth(label); x -= width / 2; g.drawString(name, x, y); }
public void draw(Graphics g, int x, int y) { // center the string int width = g.getFontMetrics().stringWidth(label); x -= width / 2; g.drawString(label, x, y); }
diff --git a/src/at/junction/transmission/Transmission.java b/src/at/junction/transmission/Transmission.java index a343060..ed85625 100644 --- a/src/at/junction/transmission/Transmission.java +++ b/src/at/junction/transmission/Transmission.java @@ -1,182 +1,182 @@ package at.junction.transmission; import java.io.Fi...
true
true
public boolean onCommand(CommandSender sender, Command command, String name, String[] args) { if (command.getName().equalsIgnoreCase("staffchat")) { if (args.length == 0){ //Switch into StaffChat Mode if (staffChatters.contains(sender.getName())) { //Leave staff chat ...
public boolean onCommand(CommandSender sender, Command command, String name, String[] args) { if (command.getName().equalsIgnoreCase("staffchat")) { if (args.length == 0){ //Switch into StaffChat Mode if (staffChatters.contains(sender.getName())) { //Leave staff chat ...
diff --git a/core/plugins/org.eclipse.dltk.core/index/org/eclipse/dltk/internal/core/index2/AbstractIndexRequest.java b/core/plugins/org.eclipse.dltk.core/index/org/eclipse/dltk/internal/core/index2/AbstractIndexRequest.java index dc50fb5bd..df763da5a 100644 --- a/core/plugins/org.eclipse.dltk.core/index/org/eclipse/dl...
true
true
public void analyzeSourceModuleChanges(IPath containerPath, Collection<ISourceModule> sourceModules, Collection<String> toRemove, Collection<ISourceModule> toReindex) { IIndexer indexer = IndexerManager.getIndexer(); if (indexer == null) { return; } Map<String, Long> documentNames = indexer.getDocum...
public void analyzeSourceModuleChanges(IPath containerPath, Collection<ISourceModule> sourceModules, Collection<String> toRemove, Collection<ISourceModule> toReindex) { IIndexer indexer = IndexerManager.getIndexer(); if (indexer == null) { return; } Map<String, Long> documentNames = indexer.getDocum...
diff --git a/org.jcryptool.visual.sig/src/org/jcryptool/visual/sig/ui/wizards/ShowSig.java b/org.jcryptool.visual.sig/src/org/jcryptool/visual/sig/ui/wizards/ShowSig.java index ee85901..2f749e8 100644 --- a/org.jcryptool.visual.sig/src/org/jcryptool/visual/sig/ui/wizards/ShowSig.java +++ b/org.jcryptool.visual.sig/src/...
false
true
public ShowSig(Display display, String sig) { super(display, SWT.CLOSE | SWT.MIN | SWT.MAX | SWT.TITLE | SWT.APPLICATION_MODAL); Composite composite = new Composite(this, SWT.NONE); composite.setBounds(10, 10, 494, 612); txtT = new Label(composite, SWT.READ_ONLY | SWT.WRAP); txtT.setText(Messages.ShowS...
public ShowSig(Display display, String sig) { super(display, SWT.CLOSE | SWT.MIN | SWT.MAX | SWT.TITLE | SWT.APPLICATION_MODAL); Composite composite = new Composite(this, SWT.NONE); composite.setBounds(10, 10, 494, 612); txtT = new Label(composite, SWT.READ_ONLY | SWT.WRAP); txtT.setText(Messages.ShowS...
diff --git a/android/src/org/audreyt/dict/moe/MoeActivity.java b/android/src/org/audreyt/dict/moe/MoeActivity.java index 816085d5..1ae7c844 100644 --- a/android/src/org/audreyt/dict/moe/MoeActivity.java +++ b/android/src/org/audreyt/dict/moe/MoeActivity.java @@ -1,77 +1,80 @@ /* Licensed to the Apache Software...
true
true
public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.small: this.appView.sendJavascript("window.adjustFontSize(-1)"); return true; case R.id.large: this.appView.sendJavascript("window.adjustFontSize(+1)"); return true; ...
public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.small: this.appView.sendJavascript("window.adjustFontSize(-1)"); return true; case R.id.large: this.appView.sendJavascript("window.adjustFontSize(+1)"); return true; ...
diff --git a/beam-cluster-analysis/src/main/java/org/esa/beam/cluster/EMClusterOp.java b/beam-cluster-analysis/src/main/java/org/esa/beam/cluster/EMClusterOp.java index e2a67174e..5629b975f 100644 --- a/beam-cluster-analysis/src/main/java/org/esa/beam/cluster/EMClusterOp.java +++ b/beam-cluster-analysis/src/main/java/o...
true
true
public void computeTileStack(Map<Band, Tile> targetTileMap, Rectangle targetRectangle, ProgressMonitor pm) throws OperatorException { pm.beginTask("Computing clusters...", iterationCount + 2); try { final EMClusterSet theClusterSet = getClusterSet(SubPro...
public void computeTileStack(Map<Band, Tile> targetTileMap, Rectangle targetRectangle, ProgressMonitor pm) throws OperatorException { pm.beginTask("Computing clusters...", 2); try { final EMClusterSet theClusterSet = getClusterSet(SubProgressMonitor.crea...
diff --git a/com.github.fhd.eclipsecolortheme/src/com/github/fhd/eclipsecolortheme/ColorThemeCollection.java b/com.github.fhd.eclipsecolortheme/src/com/github/fhd/eclipsecolortheme/ColorThemeCollection.java index bc5f9ac..1bc3826 100644 --- a/com.github.fhd.eclipsecolortheme/src/com/github/fhd/eclipsecolortheme/ColorTh...
false
true
private static Map<String, String> createZenburnTheme() { Map<String, String> theme = new HashMap<String, String>(); theme.put("foreground", color(246,243,232)); theme.put("background", color(64,64,64)); theme.put("selectionForeground", color(0,0,0)); theme.put("selectionBack...
private static Map<String, String> createZenburnTheme() { Map<String, String> theme = new HashMap<String, String>(); theme.put("foreground", color(246, 243, 232)); theme.put("background", color(64, 64, 64)); theme.put("selectionForeground", color(0, 0, 0)); theme.put("selecti...
diff --git a/src/main/java/hudson/plugins/script_realm/ScriptSecurityRealm.java b/src/main/java/hudson/plugins/script_realm/ScriptSecurityRealm.java index 1ed3e16..76084a7 100644 --- a/src/main/java/hudson/plugins/script_realm/ScriptSecurityRealm.java +++ b/src/main/java/hudson/plugins/script_realm/ScriptSecurityRealm....
true
true
protected GrantedAuthority[] loadGroups(String username) throws AuthenticationException { try { List<GrantedAuthority> authorities = new ArrayList<GrantedAuthority>(); authorities.add(AUTHENTICATED_AUTHORITY); if (!StringUtils.isBlank(groupsCommandLine)) { StringWriter out = new StringWriter(); Loca...
protected GrantedAuthority[] loadGroups(String username) throws AuthenticationException { try { List<GrantedAuthority> authorities = new ArrayList<GrantedAuthority>(); authorities.add(AUTHENTICATED_AUTHORITY); if (!StringUtils.isBlank(groupsCommandLine)) { StringWriter out = new StringWriter(); Loca...
diff --git a/wicket-security-examples/src/main/java/org/apache/wicket/security/examples/httplogin/basic/pages/LoginPage.java b/wicket-security-examples/src/main/java/org/apache/wicket/security/examples/httplogin/basic/pages/LoginPage.java index 23baf6b6d..e19093a29 100644 --- a/wicket-security-examples/src/main/java/or...
true
true
public LoginPage() { // stateless so the login page will not throw a timeout exception setStatelessHint(true); // I have added a nice feedbackpanel but this is not going to help us to // show messages to the user because as soon as doAuthentication has // been called the browser will not show this page anym...
public LoginPage() { // http://localhost:8080/examples/basichttp/?wicket:bookmarkablePage=%3Aorg.apache.wicket.security.examples.httplogin.basic.pages.LoginPage // stateless so the login page will not throw a timeout exception setStatelessHint(true); // I have added a nice feedbackpanel but this is not going ...
diff --git a/src/xdr/src/com/vangent/hieos/services/xdr/recipient/serviceimpl/XDRRecipient.java b/src/xdr/src/com/vangent/hieos/services/xdr/recipient/serviceimpl/XDRRecipient.java index 417bbde6..6bdcb303 100644 --- a/src/xdr/src/com/vangent/hieos/services/xdr/recipient/serviceimpl/XDRRecipient.java +++ b/src/xdr/src/...
false
true
public OMElement XDRDocRecipientRequest(OMElement xdr) throws AxisFault { if (logger.isDebugEnabled()) { logger.debug("XDR Request Received: " + xdr.toString()); } try { beginTransaction(getXDRTransactionName(), xdr); // Validate the XDR package ...
public OMElement XDRDocRecipientRequest(OMElement xdr) throws AxisFault { if (logger.isDebugEnabled()) { logger.debug("XDR Request Received: " + xdr.toString()); } OMElement response = null; try { beginTransaction(getXDRTransactionName(), xdr); //...
diff --git a/src/main/java/com/araeosia/ArcherGames/CommandHandler.java b/src/main/java/com/araeosia/ArcherGames/CommandHandler.java index a1e1743..bb5432b 100644 --- a/src/main/java/com/araeosia/ArcherGames/CommandHandler.java +++ b/src/main/java/com/araeosia/ArcherGames/CommandHandler.java @@ -1,158 +1,158 @@ packag...
true
true
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { if (cmd.getName().equalsIgnoreCase("vote")) { sender.sendMessage(plugin.strings.get("voteinfo")); for (String s : plugin.voteSites) { sender.sendMessage(ChatColor.GREEN + s); return true; } } else if ...
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { if (cmd.getName().equalsIgnoreCase("vote")) { sender.sendMessage(plugin.strings.get("voteinfo")); for (String s : plugin.voteSites) { sender.sendMessage(ChatColor.GREEN + s); return true; } } else if ...
diff --git a/org.amanzi.awe.render.network/src/org/amanzi/awe/render/network/NetworkRenderer.java b/org.amanzi.awe.render.network/src/org/amanzi/awe/render/network/NetworkRenderer.java index c0e3eb1b7..4398f463e 100644 --- a/org.amanzi.awe.render.network/src/org/amanzi/awe/render/network/NetworkRenderer.java +++ b/org....
false
true
private void renderGeoNeo( Graphics2D g, IGeoResource neoGeoResource, IProgressMonitor monitor ) throws RenderException { if (monitor == null) monitor = new NullProgressMonitor(); monitor.beginTask("render network sites and sectors", IProgressMonitor.UNKNOWN); // TODO: Get size from ...
private void renderGeoNeo( Graphics2D g, IGeoResource neoGeoResource, IProgressMonitor monitor ) throws RenderException { if (monitor == null) monitor = new NullProgressMonitor(); monitor.beginTask("render network sites and sectors", IProgressMonitor.UNKNOWN); // TODO: Get size from ...
diff --git a/src/net/sf/freecol/common/networking/DeliverGiftMessage.java b/src/net/sf/freecol/common/networking/DeliverGiftMessage.java index a7b965f05..34e2ba4f4 100644 --- a/src/net/sf/freecol/common/networking/DeliverGiftMessage.java +++ b/src/net/sf/freecol/common/networking/DeliverGiftMessage.java @@ -1,232 +1,23...
false
true
public Element handle(FreeColServer server, Player player, Connection connection) { ServerPlayer serverPlayer = server.getPlayer(connection); Game game = server.getGame(); Unit unit; Settlement settlement; try { unit = server.getUnitSafely(unitId, serverPlayer); ...
public Element handle(FreeColServer server, Player player, Connection connection) { ServerPlayer serverPlayer = server.getPlayer(connection); Game game = server.getGame(); Unit unit; Settlement settlement; try { unit = server.getUnitSafely(unitId, serverPlayer); ...
diff --git a/src/com/untamedears/JukeAlert/JukeAlert.java b/src/com/untamedears/JukeAlert/JukeAlert.java index 8455cf4..a7fff30 100644 --- a/src/com/untamedears/JukeAlert/JukeAlert.java +++ b/src/com/untamedears/JukeAlert/JukeAlert.java @@ -1,88 +1,88 @@ package com.untamedears.JukeAlert; import com.untamedears.Juk...
false
true
public void onEnable() { instance = this; configManager = new ConfigManager(); jaLogger = new JukeAlertLogger(); snitchManager = new SnitchManager(); groupMediator = new GroupMediator(); registerEvents(); registerCommands(); snitchManager.loadSnitches(); }
public void onEnable() { instance = this; configManager = new ConfigManager(); groupMediator = new GroupMediator(); jaLogger = new JukeAlertLogger(); snitchManager = new SnitchManager(); registerEvents(); registerCommands(); snitchManager.loadSnitches(); }
diff --git a/wings/src/org/wings/SImage.java b/wings/src/org/wings/SImage.java index 4612ac6a..9bcf4756 100644 --- a/wings/src/org/wings/SImage.java +++ b/wings/src/org/wings/SImage.java @@ -1,267 +1,269 @@ /* * $Id$ * (c) Copyright 2000 wingS development team. * * This file is part of wingS (http://wings.merc...
false
true
public void appendPrefix(Device s) { String imagePath = this.imagePath; if ( image!=null ) { try { imagePath = getExternalizeManager().externalize(image); } catch ( Exception e) {} } s.append("<img src=\""+imagePath+"\""); if ( text!=...
public void appendPrefix(Device s) { String imagePath = this.imagePath; if ( image!=null ) { try { imagePath = getExternalizeManager().externalize(image); } catch ( Exception e) {} } s.append("<img src=\""+imagePath+"\""); if ( text!=...
diff --git a/gui/src/dgu/bufsizing/DemoGUI.java b/gui/src/dgu/bufsizing/DemoGUI.java index 4e33bc4..30ffe25 100644 --- a/gui/src/dgu/bufsizing/DemoGUI.java +++ b/gui/src/dgu/bufsizing/DemoGUI.java @@ -1,857 +1,857 @@ package dgu.bufsizing; import dgu.util.StringOps; import dgu.util.swing.GUIHelper; import dgu.uti...
false
true
private void initComponents() { optGroupRule = new javax.swing.ButtonGroup(); optGroupTGen = new javax.swing.ButtonGroup(); pnlDetails = new javax.swing.JPanel(); slNumFlows = new JSliderBound( "numFlows" ); pnlChartXput = new ChartPanel(chartXput); pnlSizing = new j...
private void initComponents() { optGroupRule = new javax.swing.ButtonGroup(); optGroupTGen = new javax.swing.ButtonGroup(); pnlDetails = new javax.swing.JPanel(); slNumFlows = new JSliderBound( "numFlows" ); pnlChartXput = new ChartPanel(chartXput); pnlSizing = new j...
diff --git a/org.reuseware.emftextedit.test/src/org/reuseware/emftextedit/test/puteverywhere/PutEverywhereFeatureTest.java b/org.reuseware.emftextedit.test/src/org/reuseware/emftextedit/test/puteverywhere/PutEverywhereFeatureTest.java index cbc9d9e0e..b45b2b4a3 100644 --- a/org.reuseware.emftextedit.test/src/org/reusew...
true
true
public void testPutEverywhereSyntaxExtension() throws FileNotFoundException, IOException { String path = "src\\org\\reuseware\\emftextedit\\test\\glue\\glue.cs"; String absolutePath = new File(path).getAbsolutePath(); URI fileURI = URI.createFileURI(absolutePath); File result = generateANTLRGrammarToTempFile(f...
public void testPutEverywhereSyntaxExtension() throws FileNotFoundException, IOException { String path = "src\\org\\reuseware\\emftextedit\\test\\puteverywhere\\glue.cs"; String absolutePath = new File(path).getAbsolutePath(); URI fileURI = URI.createFileURI(absolutePath); File result = generateANTLRGrammarToT...
diff --git a/src/main/java/eu/trentorise/smartcampus/domain/discovertrento/ServiceEventFactoryDOEngine.java b/src/main/java/eu/trentorise/smartcampus/domain/discovertrento/ServiceEventFactoryDOEngine.java index 00abd6c..9dce14c 100644 --- a/src/main/java/eu/trentorise/smartcampus/domain/discovertrento/ServiceEventFacto...
true
true
private Object transformEvents(Tuple tuple, DomainObjectWrapper obj, Set<DomainEvent> evts, Set<EvaluableDomainOperation> ops, String securityToken, String bundleId) throws DomainDataHandlerException { { eu.trentorise.smartcampus.domain.discovertrento.GenericEvent[] list = (eu.trentorise.smartcampus.domain....
private Object transformEvents(Tuple tuple, DomainObjectWrapper obj, Set<DomainEvent> evts, Set<EvaluableDomainOperation> ops, String securityToken, String bundleId) throws DomainDataHandlerException { { eu.trentorise.smartcampus.domain.discovertrento.GenericEvent[] list = (eu.trentorise.smartcampus.domain....
diff --git a/plugins/org.eclipse.acceleo.model/src/org/eclipse/acceleo/model/mtl/impl/spec/QuerySpec.java b/plugins/org.eclipse.acceleo.model/src/org/eclipse/acceleo/model/mtl/impl/spec/QuerySpec.java index 1de99dad..3acf4af5 100644 --- a/plugins/org.eclipse.acceleo.model/src/org/eclipse/acceleo/model/mtl/impl/spec/Que...
true
true
public String toString() { final VisibilityKind visibilityKind = getVisibility(); final List<Variable> params = getParameter(); final StringBuilder toString = new StringBuilder("query"); //$NON-NLS-1$ toString.append(' '); toString.append(visibilityKind.getLiteral()); toString.append(' '); toString.appe...
public String toString() { final VisibilityKind visibilityKind = getVisibility(); final List<Variable> params = getParameter(); final StringBuilder toString = new StringBuilder("query"); //$NON-NLS-1$ toString.append(' '); toString.append(visibilityKind.getLiteral()); toString.append(' '); toString.appe...
diff --git a/plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/internal/tcf/services/remote/LocatorProxy.java b/plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/internal/tcf/services/remote/LocatorProxy.java index 2ccc07dbf..6941e1ed5 100644 --- a/plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/internal/tcf/services/remote/Loca...
false
true
public void event(String name, byte[] data) { try { Object[] args = JSON.parseSequence(data); if (name.equals("peerAdded")) { assert args.length == 1; IPeer peer = new Peer((Map<String,String>)args[0]); peers...
public void event(String name, byte[] data) { try { Object[] args = JSON.parseSequence(data); if (name.equals("peerAdded")) { assert args.length == 1; IPeer peer = new Peer((Map<String,String>)args[0]); peers...
diff --git a/src/fast/elements/TemplateIdentifier.java b/src/fast/elements/TemplateIdentifier.java index 7a0e211..a4c939d 100644 --- a/src/fast/elements/TemplateIdentifier.java +++ b/src/fast/elements/TemplateIdentifier.java @@ -1,27 +1,27 @@ /* * Copyright 2010 the original author or authors. * * Licensed under...
true
true
public TemplateIdentifier(FieldOperator<String> operator) { super(AsciiString.TYPE, operator); }
public TemplateIdentifier(FieldOperator<String> operator) { super(AsciiString.TYPE, operator, 1); }
diff --git a/src/org/eclipse/jface/action/ActionContributionItem.java b/src/org/eclipse/jface/action/ActionContributionItem.java index ea07e5c1..94d4fe11 100644 --- a/src/org/eclipse/jface/action/ActionContributionItem.java +++ b/src/org/eclipse/jface/action/ActionContributionItem.java @@ -1,918 +1,917 @@ /***********...
false
true
public void update(String propertyName) { if (widget != null) { // determine what to do boolean textChanged = propertyName == null || propertyName.equals(IAction.TEXT); boolean imageChanged = propertyName == null || propertyName.equals(IAction.IMAGE); boolean tooltipTextChanged = propertyName == n...
public void update(String propertyName) { if (widget != null) { // determine what to do boolean textChanged = propertyName == null || propertyName.equals(IAction.TEXT); boolean imageChanged = propertyName == null || propertyName.equals(IAction.IMAGE); boolean tooltipTextChanged = propertyName == n...
diff --git a/src/xtest/src/com/vangent/hieos/xtest/transactions/xds/ProvideAndRegisterTransaction.java b/src/xtest/src/com/vangent/hieos/xtest/transactions/xds/ProvideAndRegisterTransaction.java index a470357c..3b8cbf99 100644 --- a/src/xtest/src/com/vangent/hieos/xtest/transactions/xds/ProvideAndRegisterTransaction.ja...
false
true
public void run() throws XdsException { Iterator elements = instruction.getChildElements(); while (elements.hasNext()) { OMElement part = (OMElement) elements.next(); parse_instruction2(part); } // PnR always go to default repository Stri...
public void run() throws XdsException { Iterator elements = instruction.getChildElements(); while (elements.hasNext()) { OMElement part = (OMElement) elements.next(); parse_instruction2(part); } // PnR always go to default repository Stri...
diff --git a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/rpc/project/ListBranches.java b/gerrit-httpd/src/main/java/com/google/gerrit/httpd/rpc/project/ListBranches.java index 011e2ab16..6e126628b 100644 --- a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/rpc/project/ListBranches.java +++ b/gerrit-httpd/src...
true
true
public ListBranchesResult call() throws NoSuchProjectException { final ProjectControl pctl = projectControlFactory.validateFor( // projectName, // ProjectControl.OWNER | ProjectControl.VISIBLE); final List<Branch> branches = new ArrayList<Branch>(); Branch headBranch = null; final Re...
public ListBranchesResult call() throws NoSuchProjectException { final ProjectControl pctl = projectControlFactory.validateFor( // projectName, // ProjectControl.OWNER | ProjectControl.VISIBLE); final List<Branch> branches = new ArrayList<Branch>(); Branch headBranch = null; final Re...
diff --git a/calipso-hub-webapp/src/main/java/gr/abiss/calipso/WebAppInitializer.java b/calipso-hub-webapp/src/main/java/gr/abiss/calipso/WebAppInitializer.java index 0b39c49..b0b6f62 100644 --- a/calipso-hub-webapp/src/main/java/gr/abiss/calipso/WebAppInitializer.java +++ b/calipso-hub-webapp/src/main/java/gr/abiss/ca...
true
true
public void onStartup(ServletContext servletContext) throws ServletException { // Load config properties CompositeConfiguration config = new CompositeConfiguration(); try { config.addConfiguration(new PropertiesConfiguration( "calipso.properties")); config.addConfiguration(new PropertiesConfigurati...
public void onStartup(ServletContext servletContext) throws ServletException { // Load config properties CompositeConfiguration config = new CompositeConfiguration(); try { config.addConfiguration(new PropertiesConfiguration( "calipso.properties")); config.addConfiguration(new PropertiesConfigurati...
diff --git a/websockets/src/main/java/io/undertow/websockets/protocol/version07/WebSocket07Channel.java b/websockets/src/main/java/io/undertow/websockets/protocol/version07/WebSocket07Channel.java index a2e3edd41..32450da43 100644 --- a/websockets/src/main/java/io/undertow/websockets/protocol/version07/WebSocket07Chann...
true
true
protected PartialFrame receiveFrame(final StreamSourceChannelControl streamSourceChannelControl) { return new PartialFrame() { private boolean frameFinalFlag; private int frameRsv; private int frameOpcode; private int maskingKey = 0; private boole...
protected PartialFrame receiveFrame(final StreamSourceChannelControl streamSourceChannelControl) { return new PartialFrame() { private boolean frameFinalFlag; private int frameRsv; private int frameOpcode; private int maskingKey = 0; private boole...
diff --git a/src/java-common/org/xins/util/net/URLEncoding.java b/src/java-common/org/xins/util/net/URLEncoding.java index bf663acf0..900070447 100644 --- a/src/java-common/org/xins/util/net/URLEncoding.java +++ b/src/java-common/org/xins/util/net/URLEncoding.java @@ -1,143 +1,143 @@ /* * $Id$ */ package org.xins...
true
true
public static String encode(String s) throws IllegalArgumentException, NonASCIIException { // Check preconditions MandatoryArgumentChecker.check("s", s); // Construct a buffer int length = s.length(); FastStringBuffer buffer = new FastStringBuffer(length * 2); // Loop throug...
public static String encode(String s) throws IllegalArgumentException, NonASCIIException { // Check preconditions MandatoryArgumentChecker.check("s", s); // Construct a buffer int length = s.length(); FastStringBuffer buffer = new FastStringBuffer(length * 2); // Loop throug...
diff --git a/src/com/dmdirc/addons/parser_twitter/Twitter.java b/src/com/dmdirc/addons/parser_twitter/Twitter.java index 036a8050..088f5711 100644 --- a/src/com/dmdirc/addons/parser_twitter/Twitter.java +++ b/src/com/dmdirc/addons/parser_twitter/Twitter.java @@ -1,1642 +1,1644 @@ /* * Copyright (c) 2006-2009 Chris S...
false
true
public void run() { resetState(); if (myUsername.isEmpty()) { sendPrivateNotice("Unable to connect to " + myServerName + " without a username. Disconnecting."); getCallbackManager().getCallbackType(SocketCloseListener.class).call(); return; } // ...
public void run() { resetState(); if (myUsername.isEmpty()) { sendPrivateNotice("Unable to connect to " + myServerName + " without a username. Disconnecting."); getCallbackManager().getCallbackType(SocketCloseListener.class).call(); return; } // ...
diff --git a/VASSAL/counters/Embellishment.java b/VASSAL/counters/Embellishment.java index 74ca613a..a5a97e13 100644 --- a/VASSAL/counters/Embellishment.java +++ b/VASSAL/counters/Embellishment.java @@ -1,1180 +1,1180 @@ /* * $Id$ * * Copyright (c) 2000-2003 by Rodney Kinney * * This library is free software...
true
true
public Ed(Embellishment e) { Box box; controls = new JPanel(); controls.setLayout(new BoxLayout(controls, BoxLayout.Y_AXIS)); Box nameControls = Box.createHorizontalBox(); nameControls.add(new JLabel("Name: ")); nameControls.add(name); controls.add(nameControls); J...
public Ed(Embellishment e) { Box box; controls = new JPanel(); controls.setLayout(new BoxLayout(controls, BoxLayout.Y_AXIS)); Box nameControls = Box.createHorizontalBox(); nameControls.add(new JLabel("Name: ")); nameControls.add(name); controls.add(nameControls); J...
diff --git a/impl-base/src/main/java/org/jboss/arquillian/impl/DynamicServiceLoader.java b/impl-base/src/main/java/org/jboss/arquillian/impl/DynamicServiceLoader.java index 776c0329..c7286900 100644 --- a/impl-base/src/main/java/org/jboss/arquillian/impl/DynamicServiceLoader.java +++ b/impl-base/src/main/java/org/jboss...
true
true
private <T> Set<Class<? extends T>> load(Class<T> serviceClass, ClassLoader loader) { String serviceFile = SERVICES + "/" + serviceClass.getName(); LinkedHashSet<Class<? extends T>> providers = new LinkedHashSet<Class<? extends T>>(); try { Enumeration<URL> enumeration = loader....
private <T> Set<Class<? extends T>> load(Class<T> serviceClass, ClassLoader loader) { String serviceFile = SERVICES + "/" + serviceClass.getName(); LinkedHashSet<Class<? extends T>> providers = new LinkedHashSet<Class<? extends T>>(); try { Enumeration<URL> enumeration = loader....
diff --git a/src/main/java/com/lateblindcat/sid/snapins/TwitterSearchSnapin.java b/src/main/java/com/lateblindcat/sid/snapins/TwitterSearchSnapin.java index 34a5017..b2c13c4 100644 --- a/src/main/java/com/lateblindcat/sid/snapins/TwitterSearchSnapin.java +++ b/src/main/java/com/lateblindcat/sid/snapins/TwitterSearchSna...
true
true
public PageResponse process(Request request) { // The factory instance is re-useable and thread safe. Twitter twitter = new TwitterFactory().getInstance(); String q = "dartford"; if (request.params().named("q") != null) { q = request.params().named("q").value; } Query query = new Query(q); query.setP...
public PageResponse process(Request request) { // The factory instance is re-useable and thread safe. Twitter twitter = new TwitterFactory().getInstance(); String q = "dartford"; if (request.params().named("q") != null) { q = request.params().named("q").value; } Query query = new Query(q); query.setP...
diff --git a/src/fr/frozentux/craftguard2/commands/CgRemoveCommand.java b/src/fr/frozentux/craftguard2/commands/CgRemoveCommand.java index fd1689e..9c760b3 100644 --- a/src/fr/frozentux/craftguard2/commands/CgRemoveCommand.java +++ b/src/fr/frozentux/craftguard2/commands/CgRemoveCommand.java @@ -1,38 +1,39 @@ package ...
true
true
public static boolean execute(CommandSender sender, String command, String[] args, CraftGuardPlugin plugin) { if(args.length != 2){ sender.sendMessage(CgCommandComponent.MESSAGE_ARGUMENTS + "/cg remove <list> <id>"); return false; }else if(!sender.hasPermission(plugin.getConfiguration().getStringKey("baseper...
public static boolean execute(CommandSender sender, String command, String[] args, CraftGuardPlugin plugin) { if(args.length != 2){ sender.sendMessage(CgCommandComponent.MESSAGE_ARGUMENTS + "/cg remove <list> <id>"); return false; }else if(!sender.hasPermission(plugin.getConfiguration().getStringKey("baseper...
diff --git a/src/cytoscape/actions/RotationScaleLayoutAction.java b/src/cytoscape/actions/RotationScaleLayoutAction.java index bf2bfcc97..87d8647ff 100644 --- a/src/cytoscape/actions/RotationScaleLayoutAction.java +++ b/src/cytoscape/actions/RotationScaleLayoutAction.java @@ -1,142 +1,144 @@ package cytoscape.actions;...
true
true
public void actionPerformed(ActionEvent e) { final boolean noNodesSelected = (Cytoscape.getCurrentNetworkView().getSelectedNodeIndices().length == 0); final MutablePolyEdgeGraphLayout[] nativeGraph = new MutablePolyEdgeGraphLayout[] { GraphConverter2.getGraphReference(16.0d, true, false)...
public void actionPerformed(ActionEvent e) { final boolean noNodesSelected = (Cytoscape.getCurrentNetworkView().getSelectedNodeIndices().length == 0); final MutablePolyEdgeGraphLayout[] nativeGraph = new MutablePolyEdgeGraphLayout[] { GraphConverter2.getGraphReference(16.0d, true, false)...
diff --git a/HDX-System/src/main/java/org/ocha/hdx/service/ExporterServiceImpl.java b/HDX-System/src/main/java/org/ocha/hdx/service/ExporterServiceImpl.java index 3153aa2..b19c1a9 100644 --- a/HDX-System/src/main/java/org/ocha/hdx/service/ExporterServiceImpl.java +++ b/HDX-System/src/main/java/org/ocha/hdx/service/Expo...
true
true
private Map<String, ReportRow> convertToReports(final Map<Integer, List<Object[]>> listOfIndicators) { final Map<String, ReportRow> reportRows = new HashMap<String, ReportRow>(); for (final Integer key : listOfIndicators.keySet()) { for (final Object[] record : listOfIndicators.get(key)) { final String ind...
private Map<String, ReportRow> convertToReports(final Map<Integer, List<Object[]>> listOfIndicators) { final Map<String, ReportRow> reportRows = new HashMap<String, ReportRow>(); for (final Integer key : listOfIndicators.keySet()) { for (final Object[] record : listOfIndicators.get(key)) { final String ind...
diff --git a/src/admin/contestanttab/ContestantPanel.java b/src/admin/contestanttab/ContestantPanel.java index 8242950..716bdbd 100644 --- a/src/admin/contestanttab/ContestantPanel.java +++ b/src/admin/contestanttab/ContestantPanel.java @@ -1,830 +1,831 @@ package admin.contestanttab; import java.awt.BorderLayout; ...
true
true
private void buildActions() { btnAddNew.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { GameData g = GameData.getCurrentGame(); // check if too many contestants if (g.getAllContestants().size() == g.getInitialContestants()) { JOptionPane.show...
private void buildActions() { btnAddNew.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { GameData g = GameData.getCurrentGame(); // check if too many contestants if (g.getAllContestants().size() == g.getInitialContestants()) { JOptionPane.show...
diff --git a/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/actions/ContextCopyAction.java b/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/actions/ContextCopyAction.java index 7b28b00bf..699d3015a 100644 --- a/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/c...
true
true
public void run(ITask sourceTask) { if (sourceTask == null) { MessageDialog.openInformation(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), ITasksUiConstants.TITLE_DIALOG, "No source task selected."); return; } TaskSelectionDialog dialog = new TaskSelectionDialog(PlatformUI.getWorkbe...
public void run(ITask sourceTask) { if (sourceTask == null) { MessageDialog.openInformation(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), ITasksUiConstants.TITLE_DIALOG, "No source task selected."); return; } TaskSelectionDialog dialog = new TaskSelectionDialog(PlatformUI.getWorkbe...
diff --git a/src/main/java/com/solidstategroup/radar/service/impl/EmailManagerImpl.java b/src/main/java/com/solidstategroup/radar/service/impl/EmailManagerImpl.java index 8bcf0a41..6e3740d5 100644 --- a/src/main/java/com/solidstategroup/radar/service/impl/EmailManagerImpl.java +++ b/src/main/java/com/solidstategroup/ra...
true
true
public void sendEmail(String from, String[] to, String[] bcc, String subject, String body) { MimeMessage message = javaMailSender.createMimeMessage(); MimeMessageHelper messageHelper = null; try { messageHelper = new MimeMessageHelper(message, true); messageHelper.se...
public void sendEmail(String from, String[] to, String[] bcc, String subject, String body) { MimeMessage message = javaMailSender.createMimeMessage(); MimeMessageHelper messageHelper = null; try { messageHelper = new MimeMessageHelper(message, true); messageHelper.se...
diff --git a/galaxyCar/src/org/psywerx/car/GalaxyCarActivity.java b/galaxyCar/src/org/psywerx/car/GalaxyCarActivity.java index f249df5..d528db6 100644 --- a/galaxyCar/src/org/psywerx/car/GalaxyCarActivity.java +++ b/galaxyCar/src/org/psywerx/car/GalaxyCarActivity.java @@ -1,532 +1,532 @@ package org.psywerx.car; im...
true
true
private void startRepaintingThread() { mRefreshThread = true; new Thread() { public void run() { int skip = 0; while (mRefreshThread) { try { switch (mViewMode) { case 0: Thread.sleep(100); mPospeskiView.postInvalidate(); mSteeringWheelView.postInvalidate(); ...
private void startRepaintingThread() { mRefreshThread = true; new Thread() { public void run() { int skip = 0; while (mRefreshThread) { try { switch (mViewMode) { case 0: Thread.sleep(100); mPospeskiView.postInvalidate(); mSteeringWheelView.postInvalidate(); ...
diff --git a/src/main/java/net/krinsoft/chat/listeners/PlayerListener.java b/src/main/java/net/krinsoft/chat/listeners/PlayerListener.java index b075d1a..132d093 100644 --- a/src/main/java/net/krinsoft/chat/listeners/PlayerListener.java +++ b/src/main/java/net/krinsoft/chat/listeners/PlayerListener.java @@ -1,77 +1,72 ...
false
true
public void onPlayerChat(PlayerChatEvent event) { if (event.isCancelled()) { return; } String msg = event.getMessage(); ChatPlayer p = plugin.getPlayerManager().getPlayer(event.getPlayer().getName()); if (event.getMessage().startsWith("!")) { event.get...
public void onPlayerChat(PlayerChatEvent event) { if (event.isCancelled()) { return; } String msg = event.getMessage().replaceAll("\\$", "\\\\\\$"); ChatPlayer p = plugin.getPlayerManager().getPlayer(event.getPlayer().getName()); if (p == null) { return; } ...
diff --git a/src/main/java/com/innovatrics/iseglib/SegLibImage.java b/src/main/java/com/innovatrics/iseglib/SegLibImage.java index 75a9baa..cfb1340 100644 --- a/src/main/java/com/innovatrics/iseglib/SegLibImage.java +++ b/src/main/java/com/innovatrics/iseglib/SegLibImage.java @@ -1,25 +1,25 @@ package com.innovatrics....
true
true
public Dimension getBoxedBmpImageDimension() { return SegmentationResult.getColorBmpDimension(originalDimension.width, originalDimension.height, originalResolution); }
public Dimension getColorQualityBmpImageDimension() { return SegmentationResult.getColorBmpDimension(originalDimension.width, originalDimension.height, originalResolution); }
diff --git a/Android/TonioTest/TonioTest/src/main/java/com/gnuton/newshub/EntryListFragment.java b/Android/TonioTest/TonioTest/src/main/java/com/gnuton/newshub/EntryListFragment.java index 86a0100..7a79d54 100644 --- a/Android/TonioTest/TonioTest/src/main/java/com/gnuton/newshub/EntryListFragment.java +++ b/Android/Ton...
true
true
public void onStart() { super.onStart(); Log.d(TAG, "START"); // called when fragment is visible onEntryListFetched(mFeed); mListView = (ListView) getView().findViewById(R.id.entrylistView); // Define action (open activity) when a list item is selected // NOT...
public void onStart() { super.onStart(); Log.d(TAG, "START"); // called when fragment is visible onEntryListFetched(mFeed); mListView = (ListView) getView().findViewById(R.id.entrylistView); // Define action (open activity) when a list item is selected // NOT...
diff --git a/src/main/java/org/jvnet/jenkins/plugins/nodelabelparameter/NodeParameterValue.java b/src/main/java/org/jvnet/jenkins/plugins/nodelabelparameter/NodeParameterValue.java index a957808..e992a98 100644 --- a/src/main/java/org/jvnet/jenkins/plugins/nodelabelparameter/NodeParameterValue.java +++ b/src/main/java/...
true
true
public BuildWrapper createBuildWrapper(AbstractBuild<?, ?> build) { // add a badge icon to the build build.addAction(new LabelBadgeAction(getLabel(), Messages.LabelBadgeAction_node_tooltip(getLabel()))); final ParametersDefinitionProperty property = build.getProject().getProperty(hudson.model.ParametersDefinit...
public BuildWrapper createBuildWrapper(AbstractBuild<?, ?> build) { // add a badge icon to the build build.addAction(new LabelBadgeAction(getLabel(), Messages.LabelBadgeAction_node_tooltip(getLabel()))); final ParametersDefinitionProperty property = build.getProject().getProperty(hudson.model.ParametersDefinit...
diff --git a/dev/core/src/com/google/gwt/dev/jdt/WebModeCompilerFrontEnd.java b/dev/core/src/com/google/gwt/dev/jdt/WebModeCompilerFrontEnd.java index ef33ecb51..a6c36cc6c 100644 --- a/dev/core/src/com/google/gwt/dev/jdt/WebModeCompilerFrontEnd.java +++ b/dev/core/src/com/google/gwt/dev/jdt/WebModeCompilerFrontEnd.java...
true
true
protected String[] doFindAdditionalTypesUsingRebinds(TreeLogger logger, CompilationUnitDeclaration cud) { Set<String> dependentTypeNames = new HashSet<String>(); // Find all the deferred binding request types. FindDeferredBindingSitesVisitor v = new FindDeferredBindingSitesVisitor(); cud.traver...
protected String[] doFindAdditionalTypesUsingRebinds(TreeLogger logger, CompilationUnitDeclaration cud) { Set<String> dependentTypeNames = new HashSet<String>(); // Find all the deferred binding request types. FindDeferredBindingSitesVisitor v = new FindDeferredBindingSitesVisitor(); cud.traver...
diff --git a/src/main/java/com/geNAZt/RegionShop/Interface/CLI/Commands/Remove.java b/src/main/java/com/geNAZt/RegionShop/Interface/CLI/Commands/Remove.java index 98cf5b0..e8092af 100644 --- a/src/main/java/com/geNAZt/RegionShop/Interface/CLI/Commands/Remove.java +++ b/src/main/java/com/geNAZt/RegionShop/Interface/CLI/...
true
true
public static void remove(CommandSender sender, String[] args) { //Check if sender is a player if(!(sender instanceof Player)) { sender.sendMessage(ConfigManager.main.Chat_prefix + ConfigManager.language.Command_OnlyForPlayers); return; } Player player = (Pla...
public static void remove(CommandSender sender, String[] args) { //Check if sender is a player if(!(sender instanceof Player)) { sender.sendMessage(ConfigManager.main.Chat_prefix + ConfigManager.language.Command_OnlyForPlayers); return; } Player player = (Pla...
diff --git a/app/src/main/java/com/github/mobile/gauges/ui/GaugeViewHolder.java b/app/src/main/java/com/github/mobile/gauges/ui/GaugeViewHolder.java index ee7bcda..c5c053a 100644 --- a/app/src/main/java/com/github/mobile/gauges/ui/GaugeViewHolder.java +++ b/app/src/main/java/com/github/mobile/gauges/ui/GaugeViewHolder....
true
true
public void updateViewFor(final Gauge gauge) { nameText.setText(gauge.getTitle()); viewsText.setText(NumberFormat.getIntegerInstance().format(gauge.getToday().getViews())); peopleText.setText(NumberFormat.getIntegerInstance().format(gauge.getToday().getPeople())); int index = data.le...
public void updateViewFor(final Gauge gauge) { nameText.setText(gauge.getTitle()); DatedViewSummary today = gauge.getToday(); long viewsToday = 0; long peopleToday = 0; if (today != null) { viewsToday = today.getViews(); peopleToday = today.getPeople()...
diff --git a/src/org/rascalmpl/semantics/dynamic/Import.java b/src/org/rascalmpl/semantics/dynamic/Import.java index 5449c02e38..644705be7c 100644 --- a/src/org/rascalmpl/semantics/dynamic/Import.java +++ b/src/org/rascalmpl/semantics/dynamic/Import.java @@ -1,687 +1,687 @@ /*******************************************...
true
true
public Result<IValue> interpret(IEvaluator<Result<IValue>> eval) { // Compute the URI location, which contains the scheme (and other info we need later) ISourceLocation sl = (ISourceLocation)getAt().interpret(eval).getValue(); // If we have a resource scheme, given as resource scheme + standard scheme, w...
public Result<IValue> interpret(IEvaluator<Result<IValue>> eval) { // Compute the URI location, which contains the scheme (and other info we need later) ISourceLocation sl = (ISourceLocation)getAt().interpret(eval).getValue(); // If we have a resource scheme, given as resource scheme + standard scheme, w...
diff --git a/3rdPartyServices/StudentServices/CollaborativeQuiz/SocialLearningServer/src/main/java/ac/hw/services/collabquiz/dao/impl/HibernateUtil.java b/3rdPartyServices/StudentServices/CollaborativeQuiz/SocialLearningServer/src/main/java/ac/hw/services/collabquiz/dao/impl/HibernateUtil.java index 253115c5..a21616c6 ...
true
true
private static SessionFactory buildSessionFactory() { try { return new AnnotationConfiguration() .configure() .addPackage("uk.ac.hw.services.collabquiz.entities") .buildSessionFactory(); } catch (Throwable ex) { log...
private static SessionFactory buildSessionFactory() { try { return new AnnotationConfiguration() .configure() .addPackage("ac.hw.services.collabquiz.entities") .buildSessionFactory(); } catch (Throwable ex) { log.er...
diff --git a/server/src/Server_App.java b/server/src/Server_App.java index 46acde6..ce22865 100644 --- a/server/src/Server_App.java +++ b/server/src/Server_App.java @@ -1,43 +1,43 @@ import java.io.*; import java.net.*; import static java.lang.System.*; public class Server_App { public static void main(String[]...
true
true
public static void main(String[] args) throws IOException { while(true){ System.out.println("Watinting..."); ServerSocket ss = new ServerSocket(1988); //making socket for server with port number 1988 which is my birth year kk sorry to the young Socket sock = ss.accept(); //wait until completion o...
public static void main(String[] args) throws IOException { while(true){ System.out.println("Waiting..."); ServerSocket ss = new ServerSocket(1988); //making socket for server with port number 1988 which is my birth year kk sorry to the young Socket sock = ss.accept(); //wait until completion of ...
diff --git a/parser/org/eclipse/cdt/internal/core/dom/parser/c/CQualifierType.java b/parser/org/eclipse/cdt/internal/core/dom/parser/c/CQualifierType.java index 51b7b1f46..ffa56e70b 100644 --- a/parser/org/eclipse/cdt/internal/core/dom/parser/c/CQualifierType.java +++ b/parser/org/eclipse/cdt/internal/core/dom/parser/c...
true
true
public boolean isSameType( IType obj ){ if( obj == this ) return true; if( obj instanceof ITypedef ) return obj.isSameType( this ); if( obj instanceof ICQualifierType ){ ICQualifierType qt = (ICQualifierType) obj; try { if( isConst() != qt.isConst()...
public boolean isSameType( IType obj ){ if( obj == this ) return true; if( obj instanceof ITypedef ) return obj.isSameType( this ); if( obj instanceof ICQualifierType ){ ICQualifierType qt = (ICQualifierType) obj; try { if( isConst() != qt.isConst()...
diff --git a/web/servicemix-web-console/src/main/java/org/apache/servicemix/web/controller/InstallComponent.java b/web/servicemix-web-console/src/main/java/org/apache/servicemix/web/controller/InstallComponent.java index a289242a0..e4185f761 100644 --- a/web/servicemix-web-console/src/main/java/org/apache/servicemix/we...
true
true
protected void doSubmitAction(Object command) throws Exception { // cast the bean FileUploadBean bean = (FileUploadBean) command; // let's see if there's content there byte[] file = bean.getFile(); if (file == null) { // hmm, that's strange, the user did not uploa...
protected void doSubmitAction(Object command) throws Exception { // cast the bean FileUploadBean bean = (FileUploadBean) command; // let's see if there's content there byte[] file = bean.getFile(); if (file == null) { // hmm, that's strange, the user did not uploa...
diff --git a/c24-spring-batch/src/main/java/biz/c24/io/spring/batch/config/ZipFileSourceParser.java b/c24-spring-batch/src/main/java/biz/c24/io/spring/batch/config/ZipFileSourceParser.java index 794ae72..5e07307 100644 --- a/c24-spring-batch/src/main/java/biz/c24/io/spring/batch/config/ZipFileSourceParser.java +++ b/c2...
true
true
protected void doParse(Element element, BeanDefinitionBuilder bean) { // Optional String resource = element.getAttribute("resource"); if(StringUtils.hasText(resource)) { bean.addPropertyValue("resource", resource); } // Optional S...
protected void doParse(Element element, BeanDefinitionBuilder bean) { // Optional String resource = element.getAttribute("resource"); if(StringUtils.hasText(resource)) { bean.addPropertyValue("resource", resource); } // Optional S...
diff --git a/DrawPanel.java b/DrawPanel.java index deebf27..4664f31 100644 --- a/DrawPanel.java +++ b/DrawPanel.java @@ -1,171 +1,171 @@ // Copyright (c) 2011 Martin Ueding <dev@martin-ueding.de> import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.RenderingHints; import ...
true
true
protected void paintComponent(Graphics g) { Graphics2D g2 = (Graphics2D)g; g2.setRenderingHints(new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON)); g2.drawImage(notebook.getCurrentSheet().getImg(), 0, 0, io); if (lines) { // TODO draw the lines below the drawing g2....
protected void paintComponent(Graphics g) { Graphics2D g2 = (Graphics2D)g; g2.setRenderingHints(new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON)); g2.drawImage(notebook.getCurrentSheet().getImg(), 0, 0, io); if (lines) { // TODO draw the lines below the drawing g2....
diff --git a/srcj/com/sun/electric/Launcher.java b/srcj/com/sun/electric/Launcher.java index e793c4b23..59b40966c 100755 --- a/srcj/com/sun/electric/Launcher.java +++ b/srcj/com/sun/electric/Launcher.java @@ -1,164 +1,165 @@ /* -*- tab-width: 4 -*- * * Electric(tm) VLSI Design System * * File: Launcher.java ...
true
true
private static void invokeElectric(String[] args, String program) { // see if the required amount of memory is already present Runtime runtime = Runtime.getRuntime(); long maxMem = runtime.maxMemory() / 1000000; long maxPermWanted = User.getPermSpace(); int maxMemWanted = User.getMemorySize(); if (m...
private static void invokeElectric(String[] args, String program) { // see if the required amount of memory is already present Runtime runtime = Runtime.getRuntime(); long maxMem = runtime.maxMemory() / 1000000; long maxPermWanted = User.getPermSpace(); int maxMemWanted = User.getMemorySize(); if (m...
diff --git a/ratpack-handlebars/src/main/java/ratpack/handlebars/HandlebarsModule.java b/ratpack-handlebars/src/main/java/ratpack/handlebars/HandlebarsModule.java index b55d83072..03fb74098 100644 --- a/ratpack-handlebars/src/main/java/ratpack/handlebars/HandlebarsModule.java +++ b/ratpack-handlebars/src/main/java/ratp...
true
true
Handlebars provideHandlebars(Injector injector, TemplateLoader templateLoader, TemplateCache templateCache) { final Handlebars handlebars = new Handlebars().with(templateLoader).with(templateCache); TypeLiteral<NamedHelper<?>> type = new TypeLiteral<NamedHelper<?>>() { }; GuiceUtil.eachOfType(injec...
Handlebars provideHandlebars(Injector injector, TemplateLoader templateLoader, TemplateCache templateCache) { final Handlebars handlebars = new Handlebars().with(templateLoader); handlebars.with(templateCache); TypeLiteral<NamedHelper<?>> type = new TypeLiteral<NamedHelper<?>>() { }; GuiceUtil....
diff --git a/src/me/mango/firegods/FGCommandExecutor.java b/src/me/mango/firegods/FGCommandExecutor.java index 2821c0e..8a8efa3 100644 --- a/src/me/mango/firegods/FGCommandExecutor.java +++ b/src/me/mango/firegods/FGCommandExecutor.java @@ -1,42 +1,43 @@ package me.mango.firegods; import org.bukkit.ChatColor; impo...
false
true
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { String commandName = cmd.getName().toLowerCase(); if (commandName.equalsIgnoreCase("fire")) { if (((plugin.permission.has(sender, "firegods.use")) || (sender.isOp())) && (sender instanceof Player)) { if (!plugi...
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { String commandName = cmd.getName().toLowerCase(); if (commandName.equalsIgnoreCase("fire")) { if (((plugin.permission.has(sender, "firegods.use")) || (sender.isOp())) && (sender instanceof Player)) { if (!plugi...
diff --git a/src/main/java/org/spout/engine/filesystem/WorldFiles.java b/src/main/java/org/spout/engine/filesystem/WorldFiles.java index d3cc458de..a85f2f1df 100644 --- a/src/main/java/org/spout/engine/filesystem/WorldFiles.java +++ b/src/main/java/org/spout/engine/filesystem/WorldFiles.java @@ -1,579 +1,579 @@ /* *...
true
true
public static SpoutChunk loadChunk(SpoutRegion r, int x, int y, int z, InputStream dis, ChunkDataForRegion dataForRegion) { SpoutChunk chunk = null; NBTInputStream is = null; try { if (dis == null) { //The inputstream is null because no chunk data exists return chunk; } is = new NBTInputStream...
public static SpoutChunk loadChunk(SpoutRegion r, int x, int y, int z, InputStream dis, ChunkDataForRegion dataForRegion) { SpoutChunk chunk = null; NBTInputStream is = null; try { if (dis == null) { //The inputstream is null because no chunk data exists return chunk; } is = new NBTInputStream...
diff --git a/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/action/ConversionActionBean.java b/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/action/ConversionActionBean.java index 3e00bd9c..4839e238 100644 --- a/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/action/Conversi...
false
true
public String generatePdfFileFromBlobHolder(BlobHolder bh) { try { ConversionService cs = Framework .getService(ConversionService.class); BlobHolder result = cs.convert(PDF_PREVIEW_CONVERTER, bh, null); String f...
public String generatePdfFileFromBlobHolder(BlobHolder bh) { try { ConversionService cs = Framework .getService(ConversionService.class); BlobHolder result = cs.convert(PDF_PREVIEW_CONVERTER, bh, null); String f...
diff --git a/src/tuwien/auto/calimero/knxnetip/servicetype/ConnectResponse.java b/src/tuwien/auto/calimero/knxnetip/servicetype/ConnectResponse.java index 29d5197..7c80f13 100644 --- a/src/tuwien/auto/calimero/knxnetip/servicetype/ConnectResponse.java +++ b/src/tuwien/auto/calimero/knxnetip/servicetype/ConnectResponse....
true
true
public String getStatusString() { switch (status) { case ErrorCodes.NO_ERROR: return "the connection was established successfully"; case ErrorCodes.CONNECTION_TYPE: return "the requested connection type is not supported"; case ErrorCodes.CONNECTION_OPTION: return "one or more connection options are n...
public String getStatusString() { switch (status) { case ErrorCodes.NO_ERROR: return "the connection was established successfully"; case ErrorCodes.CONNECTION_TYPE: return "the requested connection type is not supported"; case ErrorCodes.CONNECTION_OPTION: return "one or more connection options are n...
diff --git a/src/org/newdawn/slick/opengl/TGAImageData.java b/src/org/newdawn/slick/opengl/TGAImageData.java index 61e6f0a..b0cf026 100644 --- a/src/org/newdawn/slick/opengl/TGAImageData.java +++ b/src/org/newdawn/slick/opengl/TGAImageData.java @@ -1,287 +1,290 @@ package org.newdawn.slick.opengl; import java.io.Bu...
true
true
public ByteBuffer loadImage(InputStream fis, boolean flipped, boolean forceAlpha, int[] transparent) throws IOException { if (transparent != null) { forceAlpha = true; } byte red = 0; byte green = 0; byte blue = 0; byte alpha = 0; BufferedInputStream bis = new BufferedInputStream(fis, 100000); D...
public ByteBuffer loadImage(InputStream fis, boolean flipped, boolean forceAlpha, int[] transparent) throws IOException { if (transparent != null) { forceAlpha = true; } byte red = 0; byte green = 0; byte blue = 0; byte alpha = 0; BufferedInputStream bis = new BufferedInputStream(fis, 100000); D...
diff --git a/src/main/java/org/gestern/gringotts/Account.java b/src/main/java/org/gestern/gringotts/Account.java index 5cf0563..bdfad3f 100644 --- a/src/main/java/org/gestern/gringotts/Account.java +++ b/src/main/java/org/gestern/gringotts/Account.java @@ -1,257 +1,257 @@ package org.gestern.gringotts; import java....
true
true
boolean removeCents(long amount) { //Cannot remove negative amount if(amount < 0) return false; //Make sure we have enough to remove if(balanceCents() < amount) return false; long cents = 0; long remainingEmeralds = 0; if(config.curr...
boolean removeCents(long amount) { //Cannot remove negative amount if(amount < 0) return false; //Make sure we have enough to remove if(balanceCents() < amount) return false; long cents = 0; long remainingEmeralds = 0; if(config.curr...
diff --git a/src/jpcsp/graphics/VideoEngine.java b/src/jpcsp/graphics/VideoEngine.java index f5279e0d..e5cab82b 100644 --- a/src/jpcsp/graphics/VideoEngine.java +++ b/src/jpcsp/graphics/VideoEngine.java @@ -1,4954 +1,4954 @@ /* Parts based on soywiz's pspemulator. This file is part of jpcsp. Jpcsp is free softw...
true
true
public void executeCommand(int instruction) { int normalArgument = intArgument(instruction); float floatArgument = floatArgument(instruction); int command = command(instruction); commandStatistics[command].start(); switch (command) { case END: lis...
public void executeCommand(int instruction) { int normalArgument = intArgument(instruction); float floatArgument = floatArgument(instruction); int command = command(instruction); commandStatistics[command].start(); switch (command) { case END: lis...
diff --git a/MonacaFramework/src/mobi/monaca/framework/MonacaPageActivity.java b/MonacaFramework/src/mobi/monaca/framework/MonacaPageActivity.java index 0540984..cf9e903 100644 --- a/MonacaFramework/src/mobi/monaca/framework/MonacaPageActivity.java +++ b/MonacaFramework/src/mobi/monaca/framework/MonacaPageActivity.java...
true
true
protected void applyUiToView() { if (mPageComponent == null) { applyScreenOrientationFromManifest(); return; } setupBackground(mPageComponent.getBackgroundDrawable()); applyScreenOrientation(mPageComponent.getScreenOrientation()); // clean up root.removeAllViews(); ViewGroup appViewParent = ((Vie...
protected void applyUiToView() { if (mPageComponent == null) { applyScreenOrientationFromManifest(); return; } setupBackground(mPageComponent.getBackgroundDrawable()); applyScreenOrientation(mPageComponent.getScreenOrientation()); // clean up root.removeAllViews(); ViewGroup appViewParent = ((Vie...
diff --git a/src/edu/stanford/mobisocial/dungbeetle/ui/FeedHomeActivity.java b/src/edu/stanford/mobisocial/dungbeetle/ui/FeedHomeActivity.java index f80225d..67c7e12 100644 --- a/src/edu/stanford/mobisocial/dungbeetle/ui/FeedHomeActivity.java +++ b/src/edu/stanford/mobisocial/dungbeetle/ui/FeedHomeActivity.java @@ -1,2...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.feed_home); mNfc = new Nfc(this); mFeedViews = DbViews.getDefaultFeedViews(); // Create top-level tabs //Resources res = getResources(); // res....
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.feed_home); mNfc = new Nfc(this); mFeedViews = DbViews.getDefaultFeedViews(); // Create top-level tabs //Resources res = getResources(); // res....
diff --git a/src/com/danmillerapps/gowithfriends/MainActivity.java b/src/com/danmillerapps/gowithfriends/MainActivity.java index af71187..d5c9df2 100644 --- a/src/com/danmillerapps/gowithfriends/MainActivity.java +++ b/src/com/danmillerapps/gowithfriends/MainActivity.java @@ -1,87 +1,86 @@ package com.danmillerapps.go...
false
true
protected Void doInBackground(String... loginParams) { HttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost(R.string.url_prefix + "api_post.php"); try { List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(3); nameValuePairs.add(new BasicNameValuePair("ac...
protected Void doInBackground(String... loginParams) { HttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost(R.string.url_prefix + "auth.php"); try { List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2); nameValuePairs.add(new BasicNameValuePair("userna...
diff --git a/core/src/main/java/com/google/bitcoin/core/PeerGroup.java b/core/src/main/java/com/google/bitcoin/core/PeerGroup.java index a02d626..8bf38b5 100644 --- a/core/src/main/java/com/google/bitcoin/core/PeerGroup.java +++ b/core/src/main/java/com/google/bitcoin/core/PeerGroup.java @@ -1,772 +1,775 @@ /** * Co...
false
true
public void run() { try { while (isRunning()) { // Modify the peer group under its lock, always. int numPeers; synchronized (PeerGroup.this) { numPeers = peers.size(); ...
public void run() { try { while (isRunning()) { // Modify the peer group under its lock, always. int numPeers; synchronized (PeerGroup.this) { numPeers = peers.size(); ...
diff --git a/src/main/java/grisu/gricli/command/LocalLoginCommand.java b/src/main/java/grisu/gricli/command/LocalLoginCommand.java index dc24f4d..9eb242c 100644 --- a/src/main/java/grisu/gricli/command/LocalLoginCommand.java +++ b/src/main/java/grisu/gricli/command/LocalLoginCommand.java @@ -1,70 +1,70 @@ package gris...
true
true
public GricliEnvironment execute(GricliEnvironment env) throws GricliRuntimeException { try { if (siUrl == null) { siUrl = env.getServiceInterfaceUrl(); } ServiceInterface serviceInterface = LoginManager.login(siUrl); env.setServiceInterface(serviceInterface); CompletionCache cc = new Completi...
public GricliEnvironment execute(GricliEnvironment env) throws GricliRuntimeException { try { if (siUrl == null) { siUrl = env.getServiceInterfaceUrl(); } ServiceInterface serviceInterface = LoginManager.login(siUrl); env.setServiceInterface(serviceInterface); CompletionCache cc = new Completi...
diff --git a/src/graindcafe/tribu/Level/LevelSelector.java b/src/graindcafe/tribu/Level/LevelSelector.java index ea7bfc6..1f844f8 100644 --- a/src/graindcafe/tribu/Level/LevelSelector.java +++ b/src/graindcafe/tribu/Level/LevelSelector.java @@ -1,186 +1,186 @@ /*********************************************************...
false
true
public void ChangeLevel(String name, Player player) { if (plugin.getLevel() != null) { if (plugin.getLevel().getName().equalsIgnoreCase(name)) { Tribu.messagePlayer(player, String.format(plugin.getLocale("Message.LevelIsAlreadyTheCurrentLevel"), name)); return; } } cancelVote(); boolean restart ...
public void ChangeLevel(String name, Player player) { if (plugin.getLevel() != null) { if (plugin.getLevel().getName().equalsIgnoreCase(name)) { Tribu.messagePlayer(player, String.format(plugin.getLocale("Message.LevelIsAlreadyTheCurrentLevel"), name)); return; } } cancelVote(); boolean restart ...
diff --git a/src/main/java/org/apmem/tools/layouts/FlowLayout.java b/src/main/java/org/apmem/tools/layouts/FlowLayout.java index 46a70f7..4755e71 100644 --- a/src/main/java/org/apmem/tools/layouts/FlowLayout.java +++ b/src/main/java/org/apmem/tools/layouts/FlowLayout.java @@ -1,327 +1,327 @@ package org.apmem.tools.la...
true
true
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int sizeWidth = MeasureSpec.getSize(widthMeasureSpec) - this.getPaddingRight() - this.getPaddingLeft(); int sizeHeight = MeasureSpec.getSize(heightMeasureSpec) - this.getPaddingRight() - this.getPaddingLeft(); int modeW...
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int sizeWidth = MeasureSpec.getSize(widthMeasureSpec) - this.getPaddingRight() - this.getPaddingLeft(); int sizeHeight = MeasureSpec.getSize(heightMeasureSpec) - this.getPaddingTop() - this.getPaddingBottom(); int modeW...
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 3c384338..8848b457 100644 --- a/com.mobilesorcery.sdk.builder.java/src/com/mobilesorcery/sdk/builder/java/JavaPacka...
true
true
public void createPackage(MoSyncProject project, IBuildVariant variant, IBuildResult buildResult, boolean doSign) throws CoreException { DefaultPackager internal = new DefaultPackager(project, variant); IProfile targetProfile = variant.getProfile(); File runtimeDir = internal.resolveFile("%r...
public void createPackage(MoSyncProject project, IBuildVariant variant, IBuildResult buildResult, boolean doSign) throws CoreException { DefaultPackager internal = new DefaultPackager(project, variant); IProfile targetProfile = variant.getProfile(); File runtimeDir = internal.resolveFile("%r...
diff --git a/src/edu/stuy/subsystems/Camera.java b/src/edu/stuy/subsystems/Camera.java index 1206969..4a67d08 100644 --- a/src/edu/stuy/subsystems/Camera.java +++ b/src/edu/stuy/subsystems/Camera.java @@ -1,40 +1,39 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. ...
true
true
public void switchView(boolean down){ if(down){ camServo.setAngle(0); // TODO: find out which angle is what } else { camServo.setAngle(180); } System.out.println(camServo.getAngle()); }
public void switchView(boolean down){ if(down){ camServo.setAngle(0); // TODO: find out which angle is what } else { camServo.setAngle(180); } System.out.println(camServo.getAngle()); }
diff --git a/projects/scsi/src/org/jscsi/scsi/tasks/buffered/BufferedReadTask.java b/projects/scsi/src/org/jscsi/scsi/tasks/buffered/BufferedReadTask.java index e9191b39..bb21d409 100644 --- a/projects/scsi/src/org/jscsi/scsi/tasks/buffered/BufferedReadTask.java +++ b/projects/scsi/src/org/jscsi/scsi/tasks/buffered/Buf...
true
true
protected void execute( ByteBuffer buffer, int blockLength, TargetTransportPort targetPort, Command command, ModePageRegistry modePageRegistry, InquiryDataRegistry inquiryDataRegistry) throws InterruptedException, SenseException { _logger.debug(">>> exec...
protected void execute( ByteBuffer buffer, int blockLength, TargetTransportPort targetPort, Command command, ModePageRegistry modePageRegistry, InquiryDataRegistry inquiryDataRegistry) throws InterruptedException, SenseException { _logger.debug(">>> exec...
diff --git a/MobileLoggerServer/src/test/java/cs/wintoosa/controller/interceptor/ValidationInterceptorTest.java b/MobileLoggerServer/src/test/java/cs/wintoosa/controller/interceptor/ValidationInterceptorTest.java index c50588f..cabade2 100644 --- a/MobileLoggerServer/src/test/java/cs/wintoosa/controller/interceptor/Val...
true
true
public void testPreHandle() throws Exception { System.out.println("preHandle"); String jsondata = "{\"lat\":1.0,\"lon\":2.0,\"alt\":0.0,\"phoneId\":\"123456789012345\",\"timestamp\":1361264436365}"; MockHttpServletRequest request = new MockHttpServletRequest("PUT", "/log/gps...
public void testPreHandle() throws Exception { System.out.println("preHandle"); String jsondata = "{\"lat\":1.0,\"lon\":2.0,\"alt\":0.0,\"phoneId\":\"123456789012345\",\"timestamp\":1361264436365}"; MockHttpServletRequest request = new MockHttpServletRequest("PUT", "/log/gps...
diff --git a/src/DVN-web/src/edu/harvard/iq/dvn/core/web/study/SetUpDataExplorationPage.java b/src/DVN-web/src/edu/harvard/iq/dvn/core/web/study/SetUpDataExplorationPage.java index e9db431e..5c3e43fb 100644 --- a/src/DVN-web/src/edu/harvard/iq/dvn/core/web/study/SetUpDataExplorationPage.java +++ b/src/DVN-web/src/edu/h...
false
true
public boolean validateForRelease(boolean messages){ boolean valid = true; List <String> errorMessages = new ArrayList(); List fullListOfErrors = new ArrayList(); List returnListOfErrors = new ArrayList(); List duplicateVariables = new ArrayList(); String fullErrorMes...
public boolean validateForRelease(boolean messages){ boolean valid = true; List <String> errorMessages = new ArrayList(); List fullListOfErrors = new ArrayList(); List returnListOfErrors = new ArrayList(); List duplicateVariables = new ArrayList(); String fullErrorMes...
diff --git a/freeplane/src/org/freeplane/features/mindmapmode/icon/RemoveIconAction.java b/freeplane/src/org/freeplane/features/mindmapmode/icon/RemoveIconAction.java index 991b0e0f0..6672186fb 100644 --- a/freeplane/src/org/freeplane/features/mindmapmode/icon/RemoveIconAction.java +++ b/freeplane/src/org/freeplane/fea...
true
true
public int removeIcon(final NodeModel node, final int position) { final int size = node.getIcons().size(); if(size <= position){ return size; } final IActor actor = new IActor() { private final MindIcon icon = node.getIcon(position); public void act() { node.removeIcon(position); getModeContro...
public int removeIcon(final NodeModel node, final int position) { final int size = node.getIcons().size(); if(size == 0 || size <= position){ return size; } final IActor actor = new IActor() { private final MindIcon icon = node.getIcon(position); public void act() { node.removeIcon(position); ...
diff --git a/src/PianoCanvas.java b/src/PianoCanvas.java index 95c6b6b..34c0f47 100644 --- a/src/PianoCanvas.java +++ b/src/PianoCanvas.java @@ -1,500 +1,500 @@ import javax.microedition.lcdui.Canvas; import javax.microedition.lcdui.Graphics; /** * Canvas of the Piano MIDlet * * @author Wincent Balin */ ...
true
true
public void paint(Graphics g) { // Get dimentions of display to draw upon final int width = getWidth(); final int height = getHeight(); final int fontHeight = g.getFont().getHeight(); // Calculate dimension of a key final int whiteKeyWidth = (width - MARGIN * 2)...
public void paint(Graphics g) { // Get dimentions of display to draw upon final int width = getWidth(); final int height = getHeight(); final int fontHeight = g.getFont().getHeight(); // Calculate dimension of a key final int whiteKeyWidth = (width - MARGIN * 2)...
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterOnDiskFull.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterOnDiskFull.java index cf10d6a7d2..3c86b9e99d 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterOnDiskFull.java +++ b/lucene/core/src/test/org/apac...
true
true
public void testAddIndexOnDiskFull() throws IOException { // MemoryCodec, since it uses FST, is not necessarily // "additive", ie if you add up N small FSTs, then merge // them, the merged result can easily be larger than the // sum because the merged FST may use array encoding for // some arcs ...
public void testAddIndexOnDiskFull() throws IOException { // MemoryCodec, since it uses FST, is not necessarily // "additive", ie if you add up N small FSTs, then merge // them, the merged result can easily be larger than the // sum because the merged FST may use array encoding for // some arcs ...
diff --git a/eXoApplication/poll/webapp/src/main/java/org/exoplatform/poll/webui/UIPoll.java b/eXoApplication/poll/webapp/src/main/java/org/exoplatform/poll/webui/UIPoll.java index f87407cdf..7a880b70d 100755 --- a/eXoApplication/poll/webapp/src/main/java/org/exoplatform/poll/webui/UIPoll.java +++ b/eXoApplication/poll...
false
true
public void execute(Event<UIPoll> event) throws Exception { UIPoll topicPoll = event.getSource() ; Poll poll = topicPoll.poll_ ; String[] votes ; String[] setUserVote ; String userVote = topicPoll.userId ; List<UIComponent> children = topicPoll.getChildren() ; //User vote and vote number ...
public void execute(Event<UIPoll> event) throws Exception { UIPoll topicPoll = event.getSource() ; Poll poll = topicPoll.poll_ ; String[] votes ; String[] setUserVote ; String userVote = topicPoll.userId ; List<UIComponent> children = topicPoll.getChildren() ; //User vote and vote number ...
diff --git a/examples/itests/src/test/java/org/apache/servicemix/examples/IntegrationTest.java b/examples/itests/src/test/java/org/apache/servicemix/examples/IntegrationTest.java index f9eb4677..e30f6e4a 100644 --- a/examples/itests/src/test/java/org/apache/servicemix/examples/IntegrationTest.java +++ b/examples/itests...
true
true
protected String[] getTestBundlesNames() { return new String[] { getBundle("org.apache.felix", "org.apache.felix.prefs"), getBundle("org.apache.geronimo.specs", "geronimo-activation_1.1_spec"), getBundle("org.apache.geronimo.specs", "geronimo-annotation_1.0_spec"), ...
protected String[] getTestBundlesNames() { return new String[] { getBundle("org.apache.felix", "org.apache.felix.prefs"), getBundle("org.apache.geronimo.specs", "geronimo-activation_1.1_spec"), getBundle("org.apache.geronimo.specs", "geronimo-annotation_1.0_spec"), ...
diff --git a/src/org/mozilla/javascript/Interpreter.java b/src/org/mozilla/javascript/Interpreter.java index be4e6d6c..f6c83dcf 100644 --- a/src/org/mozilla/javascript/Interpreter.java +++ b/src/org/mozilla/javascript/Interpreter.java @@ -1,2808 +1,2808 @@ /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basi...
true
true
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData idata) throws JavaScriptException { if (cx.interpret...
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData idata) throws JavaScriptException { if (cx.interpret...
diff --git a/src/com/herocraftonline/dev/heroes/skill/skills/SkillForcePush.java b/src/com/herocraftonline/dev/heroes/skill/skills/SkillForcePush.java index 5eb55eb1..45775f2a 100644 --- a/src/com/herocraftonline/dev/heroes/skill/skills/SkillForcePush.java +++ b/src/com/herocraftonline/dev/heroes/skill/skills/SkillForc...
false
true
public boolean use(Hero hero, LivingEntity target, String[] args) { Player player = hero.getPlayer(); HeroClass heroClass = hero.getHeroClass(); int damage = getSetting(heroClass, Setting.DAMAGE.node(), 0); if (damage > 0) { addSpellTarget(target, hero); targ...
public boolean use(Hero hero, LivingEntity target, String[] args) { Player player = hero.getPlayer(); HeroClass heroClass = hero.getHeroClass(); int damage = getSetting(heroClass, Setting.DAMAGE.node(), 0); if (damage > 0) { addSpellTarget(target, hero); targ...
diff --git a/atlas-web/src/main/java/uk/ac/ebi/gxa/tasks/DbStorage.java b/atlas-web/src/main/java/uk/ac/ebi/gxa/tasks/DbStorage.java index fe2224189..360744e28 100644 --- a/atlas-web/src/main/java/uk/ac/ebi/gxa/tasks/DbStorage.java +++ b/atlas-web/src/main/java/uk/ac/ebi/gxa/tasks/DbStorage.java @@ -1,398 +1,398 @@ /*...
false
true
public ExperimentList findExperiments(String search, Date from, Date to, ExperimentIncompleteness incompleteness, int start, int number) { StringBuilder sql = new StringBuilder( ...
public ExperimentList findExperiments(String search, Date from, Date to, ExperimentIncompleteness incompleteness, int start, int number) { StringBuilder sql = new StringBuilder( ...
diff --git a/web/src/main/java/org/fao/geonet/services/ownership/Groups.java b/web/src/main/java/org/fao/geonet/services/ownership/Groups.java index b34ba5442c..23d6eb2814 100644 --- a/web/src/main/java/org/fao/geonet/services/ownership/Groups.java +++ b/web/src/main/java/org/fao/geonet/services/ownership/Groups.java @...
true
true
public Element exec(Element params, ServiceContext context) throws Exception { int id = Util.getParamAsInt(params, "id"); GeonetContext gc = (GeonetContext) context.getHandlerContext(Geonet.CONTEXT_NAME); DataManager dm = gc.getDataManager(); UserSession us = context.getUserSession(); AccessManager am ...
public Element exec(Element params, ServiceContext context) throws Exception { int id = Util.getParamAsInt(params, "id"); GeonetContext gc = (GeonetContext) context.getHandlerContext(Geonet.CONTEXT_NAME); DataManager dm = gc.getDataManager(); UserSession us = context.getUserSession(); AccessManager am ...
diff --git a/src/com/mel/wallpaper/starWars/view/ShooterAnimator.java b/src/com/mel/wallpaper/starWars/view/ShooterAnimator.java index 8bff76c..17d0c5e 100644 --- a/src/com/mel/wallpaper/starWars/view/ShooterAnimator.java +++ b/src/com/mel/wallpaper/starWars/view/ShooterAnimator.java @@ -1,147 +1,147 @@ package com.me...
true
true
protected void animate(Animation a, boolean isInfiniteLoop){ if(a==null){ a = Animation.STOP_S; } if(isInfiniteLoop && this.lastAnimation == a){ return; } long tileDuration = 200; switch(a) { case WALK_E: //derecha tileDuration = Math.round(9000/speed); sprite.animate(new long[]{til...
protected void animate(Animation a, boolean isInfiniteLoop){ if(a==null){ a = Animation.STOP_S; } if(isInfiniteLoop && this.lastAnimation == a){ return; } long tileDuration = 200; switch(a) { case WALK_E: //derecha tileDuration = Math.round(9000/speed); sprite.animate(new long[]{til...
diff --git a/src/main/java/com/github/jmchilton/blend4j/galaxy/ToolsClientImpl.java b/src/main/java/com/github/jmchilton/blend4j/galaxy/ToolsClientImpl.java index 16c2ba6..02b397c 100644 --- a/src/main/java/com/github/jmchilton/blend4j/galaxy/ToolsClientImpl.java +++ b/src/main/java/com/github/jmchilton/blend4j/galaxy/...
false
true
public ClientResponse fileUploadRequest(final String historyId, final String fileType, final String dbKey, final File file) { final FileDataBodyPart fdbp = new FileDataBodyPart("files_0...
public ClientResponse fileUploadRequest(final String historyId, final String fileType, final String dbKey, final File file) { final FileDataBodyPart fdbp = new FileDataBodyPart("files_0...
diff --git a/core/src/main/java/com/thimbleware/jmemcached/protocol/text/MemcachedCommandDecoder.java b/core/src/main/java/com/thimbleware/jmemcached/protocol/text/MemcachedCommandDecoder.java index 1e442ef..36510c3 100644 --- a/core/src/main/java/com/thimbleware/jmemcached/protocol/text/MemcachedCommandDecoder.java ++...
false
true
private void processLine(List<byte[]> parts, Channel channel, ChannelHandlerContext channelHandlerContext) throws UnknownCommandException, MalformedCommandException { final int numParts = parts.size(); // Turn the command into an enum for matching on Op op; try { op = Op...
private void processLine(List<byte[]> parts, Channel channel, ChannelHandlerContext channelHandlerContext) throws UnknownCommandException, MalformedCommandException { final int numParts = parts.size(); // Turn the command into an enum for matching on Op op; try { op = Op...
diff --git a/org.eclipse.egit.core/src/org/eclipse/egit/core/internal/indexdiff/IndexDiffCacheEntry.java b/org.eclipse.egit.core/src/org/eclipse/egit/core/internal/indexdiff/IndexDiffCacheEntry.java index 635da358..aedbdd40 100644 --- a/org.eclipse.egit.core/src/org/eclipse/egit/core/internal/indexdiff/IndexDiffCacheEn...
true
true
private void createResourceChangeListener() { resourceChangeListener = new IResourceChangeListener() { public void resourceChanged(IResourceChangeEvent event) { final Collection<String> filesToUpdate = new HashSet<String>(); final Collection<IFile> fileResourcesToUpdate = new HashSet<IFile>(); final b...
private void createResourceChangeListener() { resourceChangeListener = new IResourceChangeListener() { public void resourceChanged(IResourceChangeEvent event) { final Collection<String> filesToUpdate = new HashSet<String>(); final Collection<IFile> fileResourcesToUpdate = new HashSet<IFile>(); final b...
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java index b871db88..80af90b7 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/G...
false
true
private GQuery domManip(GQuery g, DomMan type, Element... elms) { int size = g.size(); JsNodeArray newNodes = JsNodeArray.create(); if (elms.length == 0) { elms = elements; } for (int i = 0, l = elms.length; i < l;i ++) { Element e = elms[i]; if (e.getNodeType() == Node.DOCUMENT_...
private GQuery domManip(GQuery g, DomMan type, Element... elms) { JsNodeArray newNodes = JsNodeArray.create(); if (elms.length == 0) { elms = elements; } for (int i = 0, l = elms.length; i < l;i ++) { Element e = elms[i]; if (e.getNodeType() == Node.DOCUMENT_NODE) { e = e.<Do...
diff --git a/cachestore/cassandra/src/test/java/org/infinispan/loaders/cassandra/CassandraCacheStoreTest.java b/cachestore/cassandra/src/test/java/org/infinispan/loaders/cassandra/CassandraCacheStoreTest.java index 5c670e255a..9b3646fdc2 100644 --- a/cachestore/cassandra/src/test/java/org/infinispan/loaders/cassandra/C...
true
true
protected CacheStore createCacheStore() throws Exception { CassandraCacheStore cs = new CassandraCacheStore(); CassandraCacheStoreConfig clc = new CassandraCacheStoreConfig(); clc.setHost("localhost"); clc.setKeySpace("Infinispan"); cs.init(clc, getCache(), getMarshaller()); cs.start(); return cs; }
protected CacheStore createCacheStore() throws Exception { CassandraCacheStore cs = new CassandraCacheStore(); CassandraCacheStoreConfig clc = new CassandraCacheStoreConfig(); clc.setHost("127.0.0.1"); clc.setKeySpace("Infinispan"); cs.init(clc, getCache(), getMarshaller()); cs.start(); return cs; }
diff --git a/sirocco-cimi-api-server-impl/src/main/java/org/ow2/sirocco/cimi/server/request/RequestHelper.java b/sirocco-cimi-api-server-impl/src/main/java/org/ow2/sirocco/cimi/server/request/RequestHelper.java index 9a9d4d6..6c30e5f 100644 --- a/sirocco-cimi-api-server-impl/src/main/java/org/ow2/sirocco/cimi/server/re...
true
true
private static RequestParams buildRequestHeader(final RestResourceAbstract.JaxRsRequestInfos infos) { RequestParams requestHeader = new RequestParams(); List<String> versions = infos.getHeaders().getRequestHeader(Constants.HEADER_CIMI_VERSION); if ((null != versions) && (versions.size() > 0)...
private static RequestParams buildRequestHeader(final RestResourceAbstract.JaxRsRequestInfos infos) { RequestParams requestHeader = new RequestParams(); List<String> versions = infos.getHeaders().getRequestHeader(Constants.HEADER_CIMI_VERSION); if ((null != versions) && (versions.size() > 0)...
diff --git a/src/main/java/com/ning/http/client/providers/netty/NettyAsyncHttpProvider.java b/src/main/java/com/ning/http/client/providers/netty/NettyAsyncHttpProvider.java index 064559841..a8caedb85 100644 --- a/src/main/java/com/ning/http/client/providers/netty/NettyAsyncHttpProvider.java +++ b/src/main/java/com/ning...
true
true
public void handle(final ChannelHandlerContext ctx, final MessageEvent e) throws Exception { final NettyResponseFuture<?> future = (NettyResponseFuture<?>) ctx.getAttachment(); future.touch(); // The connect timeout occured. if (future.isCancelled() || future.isD...
public void handle(final ChannelHandlerContext ctx, final MessageEvent e) throws Exception { final NettyResponseFuture<?> future = (NettyResponseFuture<?>) ctx.getAttachment(); future.touch(); // The connect timeout occured. if (future.isCancelled() || future.isD...
diff --git a/src/org/apache/xerces/util/DOMUtil.java b/src/org/apache/xerces/util/DOMUtil.java index 9ccfa3ee..79325fd0 100644 --- a/src/org/apache/xerces/util/DOMUtil.java +++ b/src/org/apache/xerces/util/DOMUtil.java @@ -1,899 +1,899 @@ /* * Licensed to the Apache Software Foundation (ASF) under one or more * co...
true
true
public static void copyInto(Node src, Node dest) throws DOMException { // get node factory Document factory = dest.getOwnerDocument(); boolean domimpl = factory instanceof DocumentImpl; // placement variables Node start = src; Node parent = src; ...
public static void copyInto(Node src, Node dest) throws DOMException { // get node factory Document factory = dest.getOwnerDocument(); boolean domimpl = factory instanceof DocumentImpl; // placement variables Node start = src; Node parent = src; ...