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/maven3-plugin/src/main/java/org/hudsonci/maven/plugin/ui/gwt/configure/workspace/internal/WorkspaceManagerViewImpl.java b/maven3-plugin/src/main/java/org/hudsonci/maven/plugin/ui/gwt/configure/workspace/internal/WorkspaceManagerViewImpl.java index 1fd2561..3294b38 100644 --- a/maven3-plugin/src/main/java/o...
true
true
public WorkspaceManagerViewImpl() { tabPanel = new TabLayoutPanel(2.0, Unit.EM); initWidget(tabPanel); ensureDebugId("workspace-manager-view"); }
public WorkspaceManagerViewImpl() { tabPanel = new TabLayoutPanel(2.0, Unit.EM); tabPanel.setSize("100%", "100%"); initWidget(tabPanel); ensureDebugId("workspace-manager-view"); }
diff --git a/KarmicLottery/src/com/mitsugaru/KarmicLotto/Config.java b/KarmicLottery/src/com/mitsugaru/KarmicLotto/Config.java index 22ffa3f..87cbee0 100644 --- a/KarmicLottery/src/com/mitsugaru/KarmicLotto/Config.java +++ b/KarmicLottery/src/com/mitsugaru/KarmicLotto/Config.java @@ -1,131 +1,139 @@ package com.mitsug...
false
true
public Map<Item, Double> getLotto(String lotto) { final Map<Item,Double> list = new HashMap<Item, Double>(); final ConfigurationSection section = plugin.getConfig().getConfigurationSection(lotto); for(final String entry : section.getKeys(false)) { try { int key = Integer.parseInt(entry); //If it...
public Map<Item, Double> getLotto(String lotto) { final Map<Item,Double> list = new HashMap<Item, Double>(); final ConfigurationSection section = plugin.getConfig().getConfigurationSection(lotto); for(final String entry : section.getKeys(false)) { try { int key = Integer.parseInt(entry); //If it...
diff --git a/orig/branches/BRANCH_1_2_STABLE/vnc_javasrc/VncViewer.java b/orig/branches/BRANCH_1_2_STABLE/vnc_javasrc/VncViewer.java index dd1fae07..53a6420a 100644 --- a/orig/branches/BRANCH_1_2_STABLE/vnc_javasrc/VncViewer.java +++ b/orig/branches/BRANCH_1_2_STABLE/vnc_javasrc/VncViewer.java @@ -1,802 +1,803 @@ // ...
true
true
public void run() { gridbag = new GridBagLayout(); vncContainer.setLayout(gridbag); GridBagConstraints gbc = new GridBagConstraints(); gbc.gridwidth = GridBagConstraints.REMAINDER; gbc.anchor = GridBagConstraints.NORTHWEST; if (showControls) { buttonPanel = new ButtonPanel(this); ...
public void run() { gridbag = new GridBagLayout(); vncContainer.setLayout(gridbag); GridBagConstraints gbc = new GridBagConstraints(); gbc.gridwidth = GridBagConstraints.REMAINDER; gbc.anchor = GridBagConstraints.NORTHWEST; if (showControls) { buttonPanel = new ButtonPanel(this); ...
diff --git a/sopremo/sopremo-common/src/main/java/eu/stratosphere/sopremo/type/DefaultNodeFactory.java b/sopremo/sopremo-common/src/main/java/eu/stratosphere/sopremo/type/DefaultNodeFactory.java index 603dd05dc..fd891d266 100644 --- a/sopremo/sopremo-common/src/main/java/eu/stratosphere/sopremo/type/DefaultNodeFactory....
true
true
public <T extends IJsonNode> T instantiate(final Class<T> interfaceType) { final Class<? extends IJsonNode> defaultImplementation = this.interfaceImplementations.get(interfaceType); if (defaultImplementation != null) return (T) ReflectUtil.newInstance(defaultImplementation); return ReflectUtil.newInstance(int...
public <T extends IJsonNode> T instantiate(final Class<T> interfaceType) { final Class<? extends IJsonNode> defaultImplementation = this.interfaceImplementations.get(interfaceType); if (defaultImplementation != null) return (T) ReflectUtil.newInstance(defaultImplementation); if (interfaceType == NullNode.clas...
diff --git a/src/org/sakaiproject/tool/assessment/data/dao/assessment/ItemData.java b/src/org/sakaiproject/tool/assessment/data/dao/assessment/ItemData.java index 3d100658a..e6167b3cf 100644 --- a/src/org/sakaiproject/tool/assessment/data/dao/assessment/ItemData.java +++ b/src/org/sakaiproject/tool/assessment/data/dao/...
true
true
public String getAnswerKey(){ String answerKey=""; ArrayList itemTextArray = getItemTextArraySorted(); if (itemTextArray.size()==0) return answerKey; ArrayList answerArray = ((ItemTextIfc)itemTextArray.get(0)).getAnswerArraySorted(); HashMap h = new HashMap(); for (int i=0; i<itemTextArray.si...
public String getAnswerKey(){ String answerKey=""; ArrayList itemTextArray = getItemTextArraySorted(); if (itemTextArray.size()==0) return answerKey; ArrayList answerArray = ((ItemTextIfc)itemTextArray.get(0)).getAnswerArraySorted(); HashMap h = new HashMap(); for (int i=0; i<itemTextArray.si...
diff --git a/src/main/java/com/craftminecraft/plugins/bansync/plugins/PlotMePluginHook.java b/src/main/java/com/craftminecraft/plugins/bansync/plugins/PlotMePluginHook.java index d3bc703..fb3bf21 100644 --- a/src/main/java/com/craftminecraft/plugins/bansync/plugins/PlotMePluginHook.java +++ b/src/main/java/com/craftmin...
true
true
public void ClearPlotMePlots(String playerName) { bansyncinterface.logger.log(LogLevels.INFO, "Removing PlotMe Plots"); List<World> worlds = bansyncinterface.getServer().getWorlds(); for (World w : worlds) { HashMap<String, Plot> plots = PlotManager.getPlots(w); if (!plots.equals(null)) { if (...
public void ClearPlotMePlots(String playerName) { bansyncinterface.logger.log(LogLevels.INFO, "Removing PlotMe Plots"); List<World> worlds = bansyncinterface.getServer().getWorlds(); for (World w : worlds) { HashMap<String, Plot> plots = new HashMap<String, Plot>(); plots = PlotManager.getPlots(w); ...
diff --git a/plank-game/src/com/github/donkirkby/plank/PlankGame.java b/plank-game/src/com/github/donkirkby/plank/PlankGame.java index b9996db..355ddad 100644 --- a/plank-game/src/com/github/donkirkby/plank/PlankGame.java +++ b/plank-game/src/com/github/donkirkby/plank/PlankGame.java @@ -1,139 +1,139 @@ package com.gi...
true
true
public void create() { camera = new OrthographicCamera(); camera.setToOrtho(false, 800, 480); gestureListener = new PlankGestureListener(camera); Gdx.input.setInputProcessor(new GestureDetector(gestureListener)); batch = new SpriteBatch(); atlas = new TextureAtlas(Gdx.files.internal("plan...
public void create() { camera = new OrthographicCamera(); camera.setToOrtho(false, 800, 480); gestureListener = new PlankGestureListener(camera); Gdx.input.setInputProcessor(new GestureDetector(gestureListener)); batch = new SpriteBatch(); atlas = new TextureAtlas(Gdx.files.internal("atla...
diff --git a/src/de/uniluebeck/itm/spyglass/gui/UIController.java b/src/de/uniluebeck/itm/spyglass/gui/UIController.java index 3c6cffc..831343c 100644 --- a/src/de/uniluebeck/itm/spyglass/gui/UIController.java +++ b/src/de/uniluebeck/itm/spyglass/gui/UIController.java @@ -1,451 +1,451 @@ /* * -----------------------...
true
true
private void init() { eventDispatcher = new EventDispatcher(spyglass.getPluginManager(), appWindow.getGui().getDrawingArea()); spyglass.getConfigStore().getSpyglassConfig().addPropertyChangeListener(spyglassConfigPluginManagerChangeListener); // Add paint listener to the canvas appWindow.getGui().getDrawing...
private void init() { eventDispatcher = new EventDispatcher(spyglass.getPluginManager(), appWindow.getGui().getDrawingArea()); spyglass.getConfigStore().getSpyglassConfig().addPropertyChangeListener("pluginManager", spyglassConfigPluginManagerChangeListener); // Add paint listener to the canvas appWindow.ge...
diff --git a/freeplane/src/org/freeplane/features/url/mindmapmode/ImportExplorerFavoritesAction.java b/freeplane/src/org/freeplane/features/url/mindmapmode/ImportExplorerFavoritesAction.java index 4f259c881..5cf206478 100644 --- a/freeplane/src/org/freeplane/features/url/mindmapmode/ImportExplorerFavoritesAction.java +...
true
true
public boolean importExplorerFavorites(final File folder, final NodeModel target, final boolean redisplay) { boolean favoritesFound = false; if (folder.isDirectory()) { final File[] list = folder.listFiles(); for (int i = 0; i < list.length; i++) { if (list[i].isDirectory()) { final String nodeConte...
public boolean importExplorerFavorites(final File folder, final NodeModel target, final boolean redisplay) { boolean favoritesFound = false; if (folder.isDirectory()) { final File[] list = folder.listFiles(); for (int i = 0; i < list.length; i++) { if (list[i].isDirectory()) { final String nodeConte...
diff --git a/src/main/java/org/basex/api/xqj/BXQStaticContext.java b/src/main/java/org/basex/api/xqj/BXQStaticContext.java index 43af0db0d..f1ee94008 100644 --- a/src/main/java/org/basex/api/xqj/BXQStaticContext.java +++ b/src/main/java/org/basex/api/xqj/BXQStaticContext.java @@ -1,269 +1,269 @@ package org.basex.api....
true
true
protected BXQStaticContext(final String name, final String pw) throws XQException { if(name != null) { final Context ctx = BXQDataSource.context(); ctx.user = ctx.users.get(name); if(ctx.user == null || !string(ctx.user.password).equals(md5(pw))) throw new BXQException(DENIED, nam...
protected BXQStaticContext(final String name, final String pw) throws XQException { if(name != null) { final Context ctx = BXQDataSource.context(); ctx.user = ctx.users.get(name); if(ctx.user == null || !ctx.user.password.equals(md5(pw))) throw new BXQException(DENIED, name); ...
diff --git a/src/com/jme/scene/PassNode.java b/src/com/jme/scene/PassNode.java index 558d479db..2d9915d0d 100755 --- a/src/com/jme/scene/PassNode.java +++ b/src/com/jme/scene/PassNode.java @@ -1,110 +1,111 @@ /* * Copyright (c) 2003-2007 jMonkeyEngine * All rights reserved. * * Redistribution and use in source...
true
true
public void draw(Renderer r) { if (children == null) { return; } RenderContext context = DisplaySystem.getDisplaySystem().getCurrentContext(); for (PassNodeState pass : passNodeStates) { if (!pass.isEnabled()) { continue; ...
public void draw(Renderer r) { if (children == null) { return; } RenderContext context = DisplaySystem.getDisplaySystem().getCurrentContext(); for (PassNodeState pass : passNodeStates) { if (!pass.isEnabled()) { continue; ...
diff --git a/src/casual/Chat.java b/src/casual/Chat.java index 8d72f5c..4504053 100644 --- a/src/casual/Chat.java +++ b/src/casual/Chat.java @@ -1,174 +1,175 @@ package casual; import java.net.*; // ServerSocket, Socket import java.io.*; // InputStream, ObjectInputStream, ObjectOutputStream public class Chat...
false
true
public Chat( int port, int rank, String[] hosts ) throws IOException { // print out my port, rank and local hostname System.out.println( "port = " + port + ", rank = " + rank + ", localhost = " + hosts[rank] ); // create sockets, inputs, outputs, and vector arrays sockets = new Socket[hosts.length]; in...
public Chat( int port, int rank, String[] hosts ) throws IOException { // print out my port, rank and local hostname System.out.println( "port = " + port + ", rank = " + rank + ", localhost = " + hosts[rank] ); // create sockets, inputs, outputs, and vector arrays sockets = new Socket[hosts.length]; in...
diff --git a/src/de/typology/parser/WikipediaParser.java b/src/de/typology/parser/WikipediaParser.java index a4a18b62..7482bbf2 100644 --- a/src/de/typology/parser/WikipediaParser.java +++ b/src/de/typology/parser/WikipediaParser.java @@ -1,345 +1,345 @@ package de.typology.parser; import static de.typology.parser....
false
true
public void parse() throws IOException { while (this.recognizer.hasNext()) { this.read(); // System.out.println(this.current + " : " + this.lexeme); // try { // Thread.sleep(1); // } catch (InterruptedException e) { // e.printStackTrace(); // } if (this.current == TEXT) { while (this.cur...
public void parse() throws IOException { while (this.recognizer.hasNext()) { this.read(); // System.out.println(this.current + " : " + this.lexeme); // try { // Thread.sleep(1); // } catch (InterruptedException e) { // e.printStackTrace(); // } if (this.current == TEXT) { while (this.cur...
diff --git a/plugins/chrome-navigation/src/android/ChromeNavigation.java b/plugins/chrome-navigation/src/android/ChromeNavigation.java index 0e11df7..fac5689 100644 --- a/plugins/chrome-navigation/src/android/ChromeNavigation.java +++ b/plugins/chrome-navigation/src/android/ChromeNavigation.java @@ -1,21 +1,24 @@ // C...
true
true
public boolean onOverrideUrlLoading(String url) { Intent systemBrowserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); cordova.getActivity().startActivity(systemBrowserIntent); return true; }
public boolean onOverrideUrlLoading(String url) { if (url.startsWith("http:") || url.startsWith("https:")) { Intent systemBrowserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); cordova.getActivity().startActivity(systemBrowserIntent); return true; } ...
diff --git a/spring-integration-mail/src/test/java/org/springframework/integration/mail/config/MailOutboundChannelAdapterParserTests.java b/spring-integration-mail/src/test/java/org/springframework/integration/mail/config/MailOutboundChannelAdapterParserTests.java index 49aeff24fd..a1f0d90426 100644 --- a/spring-integr...
true
true
public void adapterWithJavaMailProperties() { ApplicationContext context = new ClassPathXmlApplicationContext( "MailOutboundWithJavamailProperties-context.xml", this.getClass()); Object adapter = context.getBean("adapterWithHostProperty.adapter"); MailSendingMessageHandler handler = (MailSendingMessageHandle...
public void adapterWithJavaMailProperties() { ApplicationContext context = new ClassPathXmlApplicationContext( "MailOutboundWithJavamailProperties-context.xml", this.getClass()); Object adapter = context.getBean("adapterWithHostProperty.adapter"); MailSendingMessageHandler handler = (MailSendingMessageHandle...
diff --git a/src/main/java/org/elasticsearch/shell/client/DefaultClientFactory.java b/src/main/java/org/elasticsearch/shell/client/DefaultClientFactory.java index 004503e..c65828d 100644 --- a/src/main/java/org/elasticsearch/shell/client/DefaultClientFactory.java +++ b/src/main/java/org/elasticsearch/shell/client/Defau...
true
true
public ShellNativeClient newNodeClient(String clusterName) { Settings settings = ImmutableSettings.settingsBuilder() .put("node.name", DEFAULT_NODE_NAME) .put("http.enabled", false) .build(); Node node = NodeBuilder.nodeBuilder().clusterName(clusterNa...
public ShellNativeClient newNodeClient(String clusterName) { Settings settings = ImmutableSettings.settingsBuilder() .put("node.name", DEFAULT_NODE_NAME) .put("http.enabled", false) .build(); Node node = NodeBuilder.nodeBuilder().clusterName(clusterNa...
diff --git a/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java b/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java index dc00e2e..9999c13 100644 --- a/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java +++ b/src/main/java/org/apache/maven/artifact/mana...
true
true
public void get( Artifact artifact, File destination, Set repositories ) throws TransferFailedException { boolean transfered = false; File temp = null; try { temp = new File( destination + ".tmp" ); temp.deleteOnExit(); } catch (...
public void get( Artifact artifact, File destination, Set repositories ) throws TransferFailedException { boolean transfered = false; File temp = null; try { temp = new File( destination + ".tmp" ); temp.deleteOnExit(); } catch (...
diff --git a/core/java/src/net/i2p/util/LogManager.java b/core/java/src/net/i2p/util/LogManager.java index c51a89e05..8bdb86a67 100644 --- a/core/java/src/net/i2p/util/LogManager.java +++ b/core/java/src/net/i2p/util/LogManager.java @@ -1,758 +1,758 @@ package net.i2p.util; /* * free (adj.): unencumbered; not und...
true
true
private void parseConfig(Properties config) { String fmt = config.getProperty(PROP_FORMAT, DEFAULT_FORMAT); _format = fmt.toCharArray(); String df = config.getProperty(PROP_DATEFORMAT, DEFAULT_DATEFORMAT); setDateFormat(df); String disp = config.getProperty(PROP_DIS...
private void parseConfig(Properties config) { String fmt = config.getProperty(PROP_FORMAT, DEFAULT_FORMAT); _format = fmt.toCharArray(); String df = config.getProperty(PROP_DATEFORMAT, DEFAULT_DATEFORMAT); setDateFormat(df); String disp = config.getProperty(PROP_DIS...
diff --git a/components/dotnet-artifact/src/main/java/npanday/impl/NetDependenciesRepositoryImpl.java b/components/dotnet-artifact/src/main/java/npanday/impl/NetDependenciesRepositoryImpl.java index 86d95aa5..3293e23f 100644 --- a/components/dotnet-artifact/src/main/java/npanday/impl/NetDependenciesRepositoryImpl.java ...
true
true
public void load( InputStream inputStream, Hashtable properties ) throws IOException { this.properties = properties; NetDependencyXpp3Reader xpp3Reader = new NetDependencyXpp3Reader(); Reader reader = new InputStreamReader( inputStream ); NetDependencyModel model; ...
public void load( InputStream inputStream, Hashtable properties ) throws IOException { this.properties = properties; NetDependencyXpp3Reader xpp3Reader = new NetDependencyXpp3Reader(); Reader reader = new InputStreamReader( inputStream ); NetDependencyModel model; ...
diff --git a/plugin/src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseAction.java b/plugin/src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseAction.java index acb0535..e4d72ac 100644 --- a/plugin/src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseAction.java +++ b/plugin/src/main/java/org/jvnet/h...
true
true
public void doSubmit(StaplerRequest req, StaplerResponse resp) throws IOException, ServletException { M2ReleaseBuildWrapper.checkReleasePermission(project); M2ReleaseBuildWrapper m2Wrapper = project.getBuildWrappersList().get(M2ReleaseBuildWrapper.class); // JSON collapses everything in the dynamic specifyVersi...
public void doSubmit(StaplerRequest req, StaplerResponse resp) throws IOException, ServletException { M2ReleaseBuildWrapper.checkReleasePermission(project); M2ReleaseBuildWrapper m2Wrapper = project.getBuildWrappersList().get(M2ReleaseBuildWrapper.class); // JSON collapses everything in the dynamic specifyVersi...
diff --git a/src/main/java/me/eccentric_nz/TARDIS/listeners/TARDISArtronCapacitorListener.java b/src/main/java/me/eccentric_nz/TARDIS/listeners/TARDISArtronCapacitorListener.java index 9cd65c501..9f084f48d 100644 --- a/src/main/java/me/eccentric_nz/TARDIS/listeners/TARDISArtronCapacitorListener.java +++ b/src/main/java...
true
true
public void onCapacitorInteract(PlayerInteractEvent event) { final Player player = event.getPlayer(); Block block = event.getClickedBlock(); if (block != null) { Material blockType = block.getType(); Action action = event.getAction(); if (action == Action....
public void onCapacitorInteract(PlayerInteractEvent event) { final Player player = event.getPlayer(); Block block = event.getClickedBlock(); if (block != null) { Material blockType = block.getType(); Action action = event.getAction(); if (action == Action....
diff --git a/WorldGuardPistonFix/src/asofold/fix/wgp/WGPFix.java b/WorldGuardPistonFix/src/asofold/fix/wgp/WGPFix.java index 10bc5c1..76a939f 100644 --- a/WorldGuardPistonFix/src/asofold/fix/wgp/WGPFix.java +++ b/WorldGuardPistonFix/src/asofold/fix/wgp/WGPFix.java @@ -1,207 +1,208 @@ package asofold.fix.wgp; import...
true
true
public boolean loadSettings(){ File file = new File( getDataFolder(), "wgpfix.yml"); try{ CompatConfig config = CompatConfigFactory.getConfig(file); if (!file.exists()){ config.setProperty("monitor-pistons", true); config.setProperty("prevent-nonsticky-retract", false); config.setProperty("set-wo...
public boolean loadSettings(){ File file = new File( getDataFolder(), "wgpfix.yml"); try{ CompatConfig config = CompatConfigFactory.getConfig(file); if (!file.exists()){ config.setProperty("monitor-pistons", true); config.setProperty("prevent-nonsticky-retract", false); config.setProperty("set-wo...
diff --git a/uk.ac.diamond.scisoft.analysis.rcp/src/uk/ac/diamond/scisoft/analysis/rcp/plotting/SidePlotUtils.java b/uk.ac.diamond.scisoft.analysis.rcp/src/uk/ac/diamond/scisoft/analysis/rcp/plotting/SidePlotUtils.java index 9fe1994..b99e7c5 100644 --- a/uk.ac.diamond.scisoft.analysis.rcp/src/uk/ac/diamond/scisoft/anal...
true
true
public static SidePlotView getSidePlotView(final IWorkbenchPage page, final String plotViewID) { //if (PlatformUI.getWorkbench().isStarting()) throw new IllegalStateException("Workbench is starting!"); SidePlotView sidePlotView = null; // necessary for multi...
public static SidePlotView getSidePlotView(final IWorkbenchPage page, final String plotViewID) { //if (PlatformUI.getWorkbench().isStarting()) throw new IllegalStateException("Workbench is starting!"); SidePlotView sidePlotView = null; // necessary for multi...
diff --git a/src/eclipse/plugins/com.ibm.sbt.core/src/com/ibm/sbt/security/authentication/oauth/consumer/oauth_10a/servlet/OAClientAuthentication.java b/src/eclipse/plugins/com.ibm.sbt.core/src/com/ibm/sbt/security/authentication/oauth/consumer/oauth_10a/servlet/OAClientAuthentication.java index 564099457..7dcc86756 10...
true
true
protected void generateCloseScript(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String mode = req.getParameter("loginUi"); PrintWriter pw = resp.getWriter(); try { pw.println("<html>"); pw.println("<head>"); pw.println("</head>"); pw.println("<body>"); ...
protected void generateCloseScript(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String mode = req.getParameter("loginUi"); PrintWriter pw = resp.getWriter(); /* * Fix : Adding content type in response. Not setting this, results in * the html being rendered as...
diff --git a/src/biz/bokhorst/xprivacy/ActivityApp.java b/src/biz/bokhorst/xprivacy/ActivityApp.java index 71f12052..d8287f19 100644 --- a/src/biz/bokhorst/xprivacy/ActivityApp.java +++ b/src/biz/bokhorst/xprivacy/ActivityApp.java @@ -1,790 +1,792 @@ package biz.bokhorst.xprivacy; import java.text.SimpleDateFormat;...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Set theme String themeName = PrivacyManager.getSetting(null, this, PrivacyManager.cSettingTheme, "", false); mThemeId = (themeName.equals("Dark") ? R.style.CustomTheme : R.style.CustomTheme_Light); setTheme(mThemeId); ...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Set theme String themeName = PrivacyManager.getSetting(null, this, PrivacyManager.cSettingTheme, "", false); mThemeId = (themeName.equals("Dark") ? R.style.CustomTheme : R.style.CustomTheme_Light); setTheme(mThemeId); ...
diff --git a/plugins/org.eclipse.acceleo.engine/src/org/eclipse/acceleo/engine/generation/AcceleoEngine.java b/plugins/org.eclipse.acceleo.engine/src/org/eclipse/acceleo/engine/generation/AcceleoEngine.java index 38cf2c89..7f8f8eb4 100644 --- a/plugins/org.eclipse.acceleo.engine/src/org/eclipse/acceleo/engine/generatio...
true
true
private Object doEvaluate(Template template, List<? extends Object> arguments) { // Guard Evaluation boolean guardValue = true; if (template.getGuard() != null) { final OCL.Query guard = ocl.createQuery(template.getGuard()); // Sets all needed variables for the guard evaluation for (int i = 0; i < templ...
private Object doEvaluate(Template template, List<? extends Object> arguments) { // Guard Evaluation boolean guardValue = true; if (template.getGuard() != null) { final OCL.Query guard = ocl.createQuery(template.getGuard()); // Sets all needed variables for the guard evaluation for (int i = 0; i < templ...
diff --git a/src/test/integration/nl/surfnet/bod/nsi/ConnectionServiceProviderTestIntegration.java b/src/test/integration/nl/surfnet/bod/nsi/ConnectionServiceProviderTestIntegration.java index a78384750..b88c0b769 100644 --- a/src/test/integration/nl/surfnet/bod/nsi/ConnectionServiceProviderTestIntegration.java +++ b/s...
false
true
public void shouldReturnGenericAcknowledgement() throws Exception { final XMLGregorianCalendar startTime = DatatypeFactory.newInstance().newXMLGregorianCalendar(); startTime.setDay(Calendar.getInstance().get(Calendar.DATE) + 7); startTime.setMonth(Calendar.getInstance().get(Calendar.MONTH)); startTime...
public void shouldReturnGenericAcknowledgement() throws Exception { final XMLGregorianCalendar startTime = DatatypeFactory.newInstance().newXMLGregorianCalendar(); startTime.setDay(Calendar.getInstance().get(Calendar.DATE) + 7); startTime.setMonth(Calendar.getInstance().get(Calendar.MONTH)); startTime...
diff --git a/mud/client/src/main/java/pl/edu/agh/two/mud/client/controller/ConsoleController.java b/mud/client/src/main/java/pl/edu/agh/two/mud/client/controller/ConsoleController.java index 5c30689..2950d44 100644 --- a/mud/client/src/main/java/pl/edu/agh/two/mud/client/controller/ConsoleController.java +++ b/mud/clie...
true
true
private void handleConsoleCommand(String command) { try { IParsedCommand parsedCommand = commandParser.parse(command); dispatcher.dispatch(parsedCommand); } catch (UnknownCommandException e) { console.appendTextToConsole(String.format( "Komenda \"%s\" jest nieznana.", e.getCommandName())); } catch ...
private void handleConsoleCommand(String command) { try { IParsedCommand parsedCommand = commandParser.parse(command); dispatcher.dispatch(parsedCommand); } catch (UnknownCommandException e) { console.appendTextToConsole(String.format( "Komenda \"%s\" jest nieznana.", e.getCommandName())); } catch ...
diff --git a/src/powercrystals/minefactoryreloaded/setup/WorldGenRubberTree.java b/src/powercrystals/minefactoryreloaded/setup/WorldGenRubberTree.java index 495baf39..ec0a34be 100644 --- a/src/powercrystals/minefactoryreloaded/setup/WorldGenRubberTree.java +++ b/src/powercrystals/minefactoryreloaded/setup/WorldGenRubbe...
false
true
public boolean growTree(World world, Random rand, int x, int y, int z) { int treeHeight = rand.nextInt(3) + 5, worldHeight = world.getHeight(); Block block; if(y >= 1 && y + treeHeight + 1 <= worldHeight) { int blockId; int xOffset; int yOffset; int zOffset; blockId = world.getBlockId(x, ...
public boolean growTree(World world, Random rand, int x, int y, int z) { int treeHeight = rand.nextInt(3) + 5, worldHeight = world.getHeight(); Block block; if(y >= 1 && y + treeHeight + 1 <= worldHeight) { int blockId; int xOffset; int yOffset; int zOffset; blockId = world.getBlockId(x, ...
diff --git a/src/com/android/mms/ui/RecipientsAdapter.java b/src/com/android/mms/ui/RecipientsAdapter.java index 2719ac8..ca7ca16 100644 --- a/src/com/android/mms/ui/RecipientsAdapter.java +++ b/src/com/android/mms/ui/RecipientsAdapter.java @@ -1,208 +1,212 @@ /* * Copyright (C) 2008 Esmertec AG. * Copyright (C) 2...
true
true
public Cursor runQueryOnBackgroundThread(CharSequence constraint) { String phone = ""; String cons = null; if (constraint != null) { cons = constraint.toString(); if (usefulAsDigits(cons)) { phone = PhoneNumberUtils.convertKeypadLettersToDigits(cons)...
public Cursor runQueryOnBackgroundThread(CharSequence constraint) { String phone = ""; String cons = null; if (constraint != null) { cons = constraint.toString(); if (usefulAsDigits(cons)) { phone = PhoneNumberUtils.convertKeypadLettersToDigits(cons)...
diff --git a/src/com/android/mms/transaction/MmsSystemEventReceiver.java b/src/com/android/mms/transaction/MmsSystemEventReceiver.java index e152b3a7..90833399 100644 --- a/src/com/android/mms/transaction/MmsSystemEventReceiver.java +++ b/src/com/android/mms/transaction/MmsSystemEventReceiver.java @@ -1,102 +1,105 @@ ...
true
true
public void onReceive(Context context, Intent intent) { if (Log.isLoggable(LogTag.TRANSACTION, Log.VERBOSE)) { Log.v(TAG, "Intent received: " + intent); } String action = intent.getAction(); if (action.equals(Mms.Intents.CONTENT_CHANGED_ACTION)) { Uri changed...
public void onReceive(Context context, Intent intent) { if (Log.isLoggable(LogTag.TRANSACTION, Log.VERBOSE)) { Log.v(TAG, "Intent received: " + intent); } String action = intent.getAction(); if (action.equals(Mms.Intents.CONTENT_CHANGED_ACTION)) { Uri changed...
diff --git a/gdms/src/main/java/org/gdms/driver/geotif/AbstractRasterDriver.java b/gdms/src/main/java/org/gdms/driver/geotif/AbstractRasterDriver.java index fa0a00e58..43628207c 100644 --- a/gdms/src/main/java/org/gdms/driver/geotif/AbstractRasterDriver.java +++ b/gdms/src/main/java/org/gdms/driver/geotif/AbstractRaste...
true
true
public void open() throws DriverException { LOG.trace("Opening file"); try { geoRaster = GeoRasterFactory.createGeoRaster(file.getAbsolutePath()); geoRaster.open(); metadata = geoRaster.getMetadata(); ...
public void open() throws DriverException { LOG.trace("Opening file"); try { geoRaster = GeoRasterFactory.createGeoRaster(file.getAbsolutePath()); geoRaster.open(); metadata = geoRaster.getMetadata(); ...
diff --git a/src/core/java/org/wyona/yanel/core/map/Realm.java b/src/core/java/org/wyona/yanel/core/map/Realm.java index 69a5fee0f..b7d5f79b1 100644 --- a/src/core/java/org/wyona/yanel/core/map/Realm.java +++ b/src/core/java/org/wyona/yanel/core/map/Realm.java @@ -1,203 +1,204 @@ /* * Copyright 2006 Wyona * * L...
true
true
public File getRootDir() { try { Configuration realmConfig = new DefaultConfigurationBuilder().buildFromFile(getConfigFile()); Configuration rootDirConfig = realmConfig.getChild("root-dir", false); if (rootDirConfig != null) { File rootDirFile = new File(r...
public File getRootDir() { try { Configuration realmConfig = new DefaultConfigurationBuilder().buildFromFile(getConfigFile()); Configuration rootDirConfig = realmConfig.getChild("root-dir", false); if (rootDirConfig != null) { File rootDirFile = new File(r...
diff --git a/src/bsh/BSHBinaryExpression.java b/src/bsh/BSHBinaryExpression.java index 4dae4657..0929dc72 100644 --- a/src/bsh/BSHBinaryExpression.java +++ b/src/bsh/BSHBinaryExpression.java @@ -1,253 +1,276 @@ /***************************************************************************** * ...
false
true
public Object eval(CallStack callstack, Interpreter interpreter) throws EvalError { Object lhs = ((SimpleNode) jjtGetChild(0)).eval(callstack, interpreter); /* * Doing instanceof? Next node is a type. */ if (kind == INSTANCEOF) { // null object ref is not instance of any type ...
public Object eval(CallStack callstack, Interpreter interpreter) throws EvalError { Object lhs = ((SimpleNode) jjtGetChild(0)).eval(callstack, interpreter); /* * Doing instanceof? Next node is a type. */ if (kind == INSTANCEOF) { // null object ref is not instance of any type ...
diff --git a/src/org/openstreetmap/josm/gui/MapView.java b/src/org/openstreetmap/josm/gui/MapView.java index 22573f2d..1b8834bb 100644 --- a/src/org/openstreetmap/josm/gui/MapView.java +++ b/src/org/openstreetmap/josm/gui/MapView.java @@ -1,799 +1,801 @@ // License: GPL. See LICENSE file for details. package org.op...
false
true
@Override public void paint(Graphics g) { if (center == null) return; // no data loaded yet. List<Layer> visibleLayers = getVisibleLayersInZOrder(); int nonChangedLayersCount = 0; for (Layer l: visibleLayers) { if (l.isChanged()) { break; ...
@Override public void paint(Graphics g) { if (center == null) return; // no data loaded yet. List<Layer> visibleLayers = getVisibleLayersInZOrder(); int nonChangedLayersCount = 0; for (Layer l: visibleLayers) { if (l.isChanged()) { break; ...
diff --git a/src/service/org/appfuse/util/ConvertUtil.java b/src/service/org/appfuse/util/ConvertUtil.java index d5871154..92b67658 100644 --- a/src/service/org/appfuse/util/ConvertUtil.java +++ b/src/service/org/appfuse/util/ConvertUtil.java @@ -1,192 +1,192 @@ package org.appfuse.util; import java.beans.PropertyD...
true
true
public static Object getOpposingObject(Object o) throws ClassNotFoundException, InstantiationException, IllegalAccessException { String name = o.getClass().getName(); if (o instanceof BaseObject) { ...
public static Object getOpposingObject(Object o) throws ClassNotFoundException, InstantiationException, IllegalAccessException { String name = o.getClass().getName(); if (o instanceof BaseObject) { ...
diff --git a/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java b/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java index 6fc5a46ce..195f8af8c 100644 --- a/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java +++ b/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java @@ -1,617 +1,621 @@ /** * Copyri...
false
true
void reparentWindow(boolean add, java.awt.Container cont) { if(null==newtChild) { return; // nop } if(DEBUG) { System.err.println("NewtCanvasAWT.reparentWindow.0: add="+add+", win "+newtWinHandleToHexString(newtChild)+", EDTUtil: cur "+newtChild.getScreen().getDisplay().getEDTUti...
void reparentWindow(boolean add, java.awt.Container cont) { if(null==newtChild) { return; // nop } if(DEBUG) { System.err.println("NewtCanvasAWT.reparentWindow.0: add="+add+", win "+newtWinHandleToHexString(newtChild)+", EDTUtil: cur "+newtChild.getScreen().getDisplay().getEDTUti...
diff --git a/src/ServerThread.java b/src/ServerThread.java index c2c9977..d670df9 100644 --- a/src/ServerThread.java +++ b/src/ServerThread.java @@ -1,281 +1,281 @@ import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.net.InetAddress; import java.net.Socket; ...
false
true
public void run() { //check for message client read/append // if read, return values // if append start 2pc protocol then paxos protocol ServerMessage msg; try { msg = (ServerMessage) inputStream.readObject(); System.out.println("RECIEVED:" + msg); swit...
public void run() { //check for message client read/append // if read, return values // if append start 2pc protocol then paxos protocol ServerMessage msg; try { msg = (ServerMessage) inputStream.readObject(); System.out.println("RECIEVED:" + msg); swit...
diff --git a/Harvester/branches/Development/src/main/java/org/vivoweb/harvester/score/Score.java b/Harvester/branches/Development/src/main/java/org/vivoweb/harvester/score/Score.java index e5c93370..3e01b69a 100644 --- a/Harvester/branches/Development/src/main/java/org/vivoweb/harvester/score/Score.java +++ b/Harvester...
false
true
public void execute() throws IOException { // Bring all models into a single Dataset JenaConnect vivoClone = this.tempJena.neighborConnectClone("http://vivoweb.org/harvester/model/scoring#vivoClone"); if(vivoClone.isEmpty()) { log.trace("Loading VIVO model into temp copy model"); vivoClone.loadRdfFromJC(th...
public void execute() throws IOException { // Bring all models into a single Dataset JenaConnect vivoClone = this.tempJena.neighborConnectClone("http://vivoweb.org/harvester/model/scoring#vivoClone"); if(vivoClone.isEmpty()) { log.trace("Loading VIVO model into temp copy model"); vivoClone.loadRdfFromJC(th...
diff --git a/services/authorization-mgt/import/src/main/java/org/collectionspace/services/authorization/driver/AuthorizationSeedDriver.java b/services/authorization-mgt/import/src/main/java/org/collectionspace/services/authorization/driver/AuthorizationSeedDriver.java index 587e9bc51..af74c698e 100644 --- a/services/au...
true
true
private void store() throws Exception { EntityManagerFactory emf = JpaStorageUtils.getEntityManagerFactory(JpaStorageUtils.CS_AUTHZ_PERSISTENCE_UNIT); EntityManager em = null; try { em = emf.createEntityManager(); em.getTransaction().begin(); Au...
private void store() throws Exception { EntityManagerFactory emf = JpaStorageUtils.getEntityManagerFactory(JpaStorageUtils.CS_AUTHZ_PERSISTENCE_UNIT); EntityManager em = null; try { em = emf.createEntityManager(); em.getTransaction().begin(); Au...
diff --git a/src/plugins/apple/src/com/jivesoftware/spark/plugin/apple/ApplePlugin.java b/src/plugins/apple/src/com/jivesoftware/spark/plugin/apple/ApplePlugin.java index cfc91ac6..94aa00ed 100644 --- a/src/plugins/apple/src/com/jivesoftware/spark/plugin/apple/ApplePlugin.java +++ b/src/plugins/apple/src/com/jivesoftwa...
false
true
public void initialize() { if (Spark.isMac()) { roomListener = new DockRoomListener(); SparkManager.getChatManager().addChatRoomListener(roomListener); // Remove the About Menu Item from the help menu MainWindow mainWindow = SparkManager.getMainWindow(); ...
public void initialize() { if (Spark.isMac()) { roomListener = new DockRoomListener(); SparkManager.getChatManager().addChatRoomListener(roomListener); // Remove the About Menu Item from the help menu MainWindow mainWindow = SparkManager.getMainWindow(); ...
diff --git a/components/bio-formats/src/loci/formats/in/MetamorphReader.java b/components/bio-formats/src/loci/formats/in/MetamorphReader.java index c40fff297..537083d6f 100644 --- a/components/bio-formats/src/loci/formats/in/MetamorphReader.java +++ b/components/bio-formats/src/loci/formats/in/MetamorphReader.java @@ ...
true
true
protected void initFile(String id) throws FormatException, IOException { if (checkSuffix(id, ND_SUFFIX)) { LOGGER.info("Initializing " + id); // find an associated STK file String stkFile = id.substring(0, id.lastIndexOf(".")); if (stkFile.indexOf(File.separator) != -1) { stkFile =...
protected void initFile(String id) throws FormatException, IOException { if (checkSuffix(id, ND_SUFFIX)) { LOGGER.info("Initializing " + id); // find an associated STK file String stkFile = id.substring(0, id.lastIndexOf(".")); if (stkFile.indexOf(File.separator) != -1) { stkFile =...
diff --git a/src/nfo/control/MainViewItemListener.java b/src/nfo/control/MainViewItemListener.java index c76ff0f..d41a40e 100644 --- a/src/nfo/control/MainViewItemListener.java +++ b/src/nfo/control/MainViewItemListener.java @@ -1,363 +1,363 @@ package nfo.control; import javax.swing.JMenuItem; import javax.swing....
true
true
private void openAction() { JFileChooser chooser; FileNameExtensionFilter filter; int returnVal; ArrayList<String> lineList; JTextArea textArea = theView.getTextArea(); int confirm = JOptionPane.YES_OPTION; int longestLine = 0; if (! textArea.getText().equals("")) confirm = JOpt...
private void openAction() { JFileChooser chooser; FileNameExtensionFilter filter; int returnVal; ArrayList<String> lineList; JTextArea textArea = theView.getTextArea(); int confirm = JOptionPane.YES_OPTION; int longestLine = 0; if (! textArea.getText().equals("")) confirm = JOpt...
diff --git a/src/uci/uml/visual/demo/ClassNode.java b/src/uci/uml/visual/demo/ClassNode.java index 60df053..76be16d 100644 --- a/src/uci/uml/visual/demo/ClassNode.java +++ b/src/uci/uml/visual/demo/ClassNode.java @@ -1,117 +1,117 @@ // Copyright (c) 1995, 1996 Regents of the University of California. // All rights re...
true
true
public FigNode makePresentation(Layer lay) { Fig obj1 = new FigRect(-5, -5, 30, 30, Color.black, Color.green); Vector temp_list = new Vector(); temp_list.addElement(obj1); FigClass fn = new FigClass(this, temp_list); fn.bindPort(north, obj1); return fn; }
public FigNode makePresentation(Layer lay) { Fig obj1 = new FigRect(0, 0, 100, 70, Color.black, Color.green); Vector temp_list = new Vector(); temp_list.addElement(obj1); FigClass fn = new FigClass(this, temp_list); fn.bindPort(north, obj1); return fn; }
diff --git a/JavaPaint/src/listeners/MouseDetectorListener.java b/JavaPaint/src/listeners/MouseDetectorListener.java index f52f821..11357a7 100644 --- a/JavaPaint/src/listeners/MouseDetectorListener.java +++ b/JavaPaint/src/listeners/MouseDetectorListener.java @@ -1,91 +1,91 @@ package listeners; import java.awt.Mo...
true
true
private void mouseIt(MouseEvent arg0){ PointerInfo a = MouseInfo.getPointerInfo(); Point point = new Point(a.getLocation()); SwingUtilities.convertPointFromScreen(point, arg0.getComponent()); mouseCoordinates[0] = (int) point.getX(); mouseCoordinates[1] = (int) point.getY(); CanvasPanel canvasPanel = (Canv...
private void mouseIt(MouseEvent arg0){ PointerInfo a = MouseInfo.getPointerInfo(); Point point = new Point(a.getLocation()); SwingUtilities.convertPointFromScreen(point, arg0.getComponent()); mouseCoordinates[0] = (int) point.getX(); mouseCoordinates[1] = (int) point.getY(); CanvasPanel canvasPanel = (Canv...
diff --git a/src/com/seawolfsanctuary/tmt/HeadcodeSelectionActivity.java b/src/com/seawolfsanctuary/tmt/HeadcodeSelectionActivity.java index 512c707..00ceb8c 100644 --- a/src/com/seawolfsanctuary/tmt/HeadcodeSelectionActivity.java +++ b/src/com/seawolfsanctuary/tmt/HeadcodeSelectionActivity.java @@ -1,71 +1,70 @@ pack...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.headcode_selection_activity); registerForContextMenu(getListView()); ListView lv = getListView(); String fromStation = ""; String toStation = ""; String hour = ""; String minute = ""; Strin...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.headcode_selection_activity); registerForContextMenu(getListView()); ListView lv = getListView(); String fromStation = ""; String toStation = ""; String hour = ""; String minute = ""; Strin...
diff --git a/src/main/java/com/bergerkiller/imagegenerator_maven_plugin/Label.java b/src/main/java/com/bergerkiller/imagegenerator_maven_plugin/Label.java index 2da25ba..f32bbdc 100644 --- a/src/main/java/com/bergerkiller/imagegenerator_maven_plugin/Label.java +++ b/src/main/java/com/bergerkiller/imagegenerator_maven_p...
true
true
public void draw(Graphics2D graphics, int width, int height) { // Convert text if needed String drawnText = text; int start, end; boolean found; do { found = false; start = drawnText.indexOf("$date{"); if (start != -1) { end = drawnText.indexOf('}', start); if (end != -1) { found = true...
public void draw(Graphics2D graphics, int width, int height) { // Convert text if needed String drawnText = text; int start, end; boolean found; do { found = false; start = drawnText.indexOf("$date{"); if (start != -1) { end = drawnText.indexOf('}', start); if (end != -1) { found = true...
diff --git a/libraries/javalib/java/text/NumberFormat.java b/libraries/javalib/java/text/NumberFormat.java index 78206d9be..7998398a5 100644 --- a/libraries/javalib/java/text/NumberFormat.java +++ b/libraries/javalib/java/text/NumberFormat.java @@ -1,184 +1,196 @@ package java.text; import java.lang.String; import...
false
true
final public StringBuffer format(Object num, StringBuffer buf, FieldPosition pos) { if (num instanceof Double) { return (format(((Double)num).doubleValue(), buf, pos)); } else if (num instanceof Long) { return (format(((Long)num).longValue(), buf, pos)); } else { buf.append("<unknown type>"); return (buf);...
final public StringBuffer format(Object num, StringBuffer buf, FieldPosition pos) { if (num instanceof Double) { return (format(((Double)num).doubleValue(), buf, pos)); } else if (num instanceof Float) { return (format((double)((Float)num).floatValue(), buf, pos)); } else if (num instanceof Long) { return (f...
diff --git a/src/haven/Music.java b/src/haven/Music.java index 0bc37d1..b641466 100644 --- a/src/haven/Music.java +++ b/src/haven/Music.java @@ -1,134 +1,145 @@ /* * This file is part of the Haven & Hearth game client. * Copyright (C) 2009 Fredrik Tolf <fredrik@dolda2000.com>, and * Björn J...
true
true
public void run() { try { if(waitfor != null) waitfor.join(); res.loadwaitint(); try { seq = MidiSystem.getSequencer(false); synth = MidiSystem.getSynthesizer(); seq.open(); seq.setSequence(res.layer(Resource.Music.class).seq); synth.open(); seq.getTransmitter().set...
public void run() { try { if(waitfor != null) waitfor.join(); res.loadwaitint(); try { seq = MidiSystem.getSequencer(false); synth = MidiSystem.getSynthesizer(); seq.open(); seq.setSequence(res.layer(Resource.Music.class).seq); synth.open(); seq.getTransmitter().set...
diff --git a/engine/src/core/com/jme3/scene/control/BillboardControl.java b/engine/src/core/com/jme3/scene/control/BillboardControl.java index a080f766c..ed91c25f9 100644 --- a/engine/src/core/com/jme3/scene/control/BillboardControl.java +++ b/engine/src/core/com/jme3/scene/control/BillboardControl.java @@ -1,299 +1,29...
true
true
private void rotateAxial(Camera camera, Vector3f axis) { // Compute the additional rotation required for the billboard to face // the camera. To do this, the camera must be inverse-transformed into // the model space of the billboard. look.set(camera.getLocation()).subtractLocal( ...
private void rotateAxial(Camera camera, Vector3f axis) { // Compute the additional rotation required for the billboard to face // the camera. To do this, the camera must be inverse-transformed into // the model space of the billboard. look.set(camera.getLocation()).subtractLocal( ...
diff --git a/upnp/basedriver/src/main/java/org/apache/felix/upnp/basedriver/export/GeneralActionListener.java b/upnp/basedriver/src/main/java/org/apache/felix/upnp/basedriver/export/GeneralActionListener.java index 002c958b9..a9552fa24 100644 --- a/upnp/basedriver/src/main/java/org/apache/felix/upnp/basedriver/export/G...
false
true
public synchronized boolean actionControlReceived(Action upnpAct) { if(!open) return false; UPnPService osgiServ=null; try{ osgiServ=((UPnPDevice) Activator.bc.getService(dev)).getService(id); }catch(Exception ignored){} if(osgiServ==null) return exiting(false); UPnPAction osgiAct = osgiSer...
public synchronized boolean actionControlReceived(Action upnpAct) { if(!open) return false; UPnPService osgiServ=null; try{ osgiServ=((UPnPDevice) Activator.bc.getService(dev)).getService(id); }catch(Exception ignored){} if(osgiServ==null) return exiting(false); UPnPAction osgiAct = osgiSer...
diff --git a/src/TreeWalker.java b/src/TreeWalker.java index 6ddad91..c95d2ba 100644 --- a/src/TreeWalker.java +++ b/src/TreeWalker.java @@ -1,642 +1,646 @@ import org.antlr.runtime.ANTLRStringStream; import org.antlr.runtime.CommonTokenStream; import org.antlr.runtime.RecognitionException; import org.antlr.runtime...
false
true
public void walk(CommonTree t, BufferedWriter out) { try { if (t != null) { // every unary operator needs to be preceded by a open // parenthesis and ended with a closed parenthesis switch (t.getType()) { case TanGParser.ADDSUB: // if the operation is binary, read the two children and ...
public void walk(CommonTree t, BufferedWriter out) { try { if (t != null) { // every unary operator needs to be preceded by a open // parenthesis and ended with a closed parenthesis switch (t.getType()) { case TanGParser.ADDSUB: // if the operation is binary, read the two children and ...
diff --git a/src/main/java/lcmc/gui/resources/BlockDevInfo.java b/src/main/java/lcmc/gui/resources/BlockDevInfo.java index 9cdfe488..896994c0 100644 --- a/src/main/java/lcmc/gui/resources/BlockDevInfo.java +++ b/src/main/java/lcmc/gui/resources/BlockDevInfo.java @@ -1,2674 +1,2680 @@ /* * This file is part of DRBD M...
false
true
public List<UpdatableItem> createPopup() { final List<UpdatableItem> items = new ArrayList<UpdatableItem>(); final BlockDevInfo thisClass = this; final boolean testOnly = false; final MyMenu repMenuItem = new MyMenu( Tools.getString("HostBrowser.Drbd.AddDrbdRe...
public List<UpdatableItem> createPopup() { final List<UpdatableItem> items = new ArrayList<UpdatableItem>(); final BlockDevInfo thisClass = this; final boolean testOnly = false; final MyMenu repMenuItem = new MyMenu( Tools.getString("HostBrowser.Drbd.AddDrbdRe...
diff --git a/TheLuvExchange/src/com/theluvexchange/android/PickHandler.java b/TheLuvExchange/src/com/theluvexchange/android/PickHandler.java index 79f7a5f..a5284f3 100644 --- a/TheLuvExchange/src/com/theluvexchange/android/PickHandler.java +++ b/TheLuvExchange/src/com/theluvexchange/android/PickHandler.java @@ -1,278 +...
true
true
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if (localName.equals("restaurant")) { pick = new Pick(); pickData.add(pick); } else if (localName.equals("id")) { // Track if we're inside the id tag inId = true; } else if ...
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if (localName.equals("restaurant") || localName.equals("thing") || localName.equals("airport")) { pick = new Pick(); pickData.add(pick); } else if (localName.equals("id")) { // T...
diff --git a/app/controllers/RCACaseController.java b/app/controllers/RCACaseController.java index 99a227b..e1b171d 100644 --- a/app/controllers/RCACaseController.java +++ b/app/controllers/RCACaseController.java @@ -1,63 +1,63 @@ /* * Copyright (C) 2011 by Eero Laukkanen, Risto Virtanen, Jussi Patana, Juha Viljanen...
true
true
public static void postRCAData(String name, String type, boolean isMultinational, String companyName, String companySize, boolean isCasePublic) { String username = SecurityController.connected(); User user = User.find("byEmail", username).first(); RCACase rca...
public static void postRCAData(String name, String type, boolean isMultinational, String companyName, String companySize, boolean isCasePublic) { String username = SecurityController.connected(); User user = User.find("byEmail", username).first(); RCACase rca...
diff --git a/Rentability/app/controllers/Rentability.java b/Rentability/app/controllers/Rentability.java index 77dbbfc..33d574e 100644 --- a/Rentability/app/controllers/Rentability.java +++ b/Rentability/app/controllers/Rentability.java @@ -1,98 +1,98 @@ package controllers; import java.text.ParseException; import...
true
true
public static void saveOffer(Blob image, String articleName, String description, String name, String pickUpAddress, String startTime, String endTime, String price, String insurance) { validation.required(articleName); validation.required(description); validation.required(pickUpAddre...
public static void saveOffer(Blob image, String articleName, String description, String name, String pickUpAddress, String startTime, String endTime, String price, String insurance) { validation.required(articleName); validation.required(description); validation.required(pickUpAddre...
diff --git a/src/org/openid4java/util/HttpClientFactory.java b/src/org/openid4java/util/HttpClientFactory.java index 711eb17..d41e79a 100644 --- a/src/org/openid4java/util/HttpClientFactory.java +++ b/src/org/openid4java/util/HttpClientFactory.java @@ -1,75 +1,75 @@ /* * Copyright 2006-2007 Sxip Identity Corporation...
false
true
public static HttpClient getInstance(int maxRedirects, Boolean allowCircularRedirects, int connTimeout, int socketTimeout, String cookiePolicy) { HttpClient client = new HttpClient(...
public static HttpClient getInstance(int maxRedirects, Boolean allowCircularRedirects, int connTimeout, int socketTimeout, String cookiePolicy) { HttpClient client = new HttpClient(...
diff --git a/src/main/java/uk/co/drnaylor/mcmmopartyadmin/PartyAdminCommand.java b/src/main/java/uk/co/drnaylor/mcmmopartyadmin/PartyAdminCommand.java index 4262cd1..874330f 100644 --- a/src/main/java/uk/co/drnaylor/mcmmopartyadmin/PartyAdminCommand.java +++ b/src/main/java/uk/co/drnaylor/mcmmopartyadmin/PartyAdminComm...
false
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { Player player = null; if (sender instanceof Player) { player = (Player) sender; } if (sender.hasPermission("mcmmopartyadmin.commands.partyadmin") || sender.isOp() || player == ...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { Player player = null; if (sender instanceof Player) { player = (Player) sender; } if (sender.hasPermission("mcmmopartyadmin.commands.partyadmin") || sender.isOp() || player == ...
diff --git a/container/openejb-core/src/main/java/org/apache/openejb/config/WebModule.java b/container/openejb-core/src/main/java/org/apache/openejb/config/WebModule.java index 7326d1ea6f..1f48aac5bd 100644 --- a/container/openejb-core/src/main/java/org/apache/openejb/config/WebModule.java +++ b/container/openejb-core/...
true
true
public WebModule(WebApp webApp, String contextRoot, ClassLoader classLoader, String jarLocation, String moduleId) { this.webApp = webApp; if (contextRoot == null) { contextRoot = jarLocation.substring(jarLocation.lastIndexOf('/')); if (contextRoot.endsWith(".unpacked")) { ...
public WebModule(WebApp webApp, String contextRoot, ClassLoader classLoader, String jarLocation, String moduleId) { this.webApp = webApp; if (contextRoot == null) { contextRoot = jarLocation.substring(jarLocation.lastIndexOf(System.getProperty("file.separator"))); if (context...
diff --git a/server/co2-domain/src/domain/gc/carbon/domain/profile/StartEndDate.java b/server/co2-domain/src/domain/gc/carbon/domain/profile/StartEndDate.java index 740c162f..e83e2530 100644 --- a/server/co2-domain/src/domain/gc/carbon/domain/profile/StartEndDate.java +++ b/server/co2-domain/src/domain/gc/carbon/domain...
true
true
protected long parseStr(String dateStr) { try { DateTime requestedDate = new DateTime(ISO_DATE_FORMAT.parse(dateStr)); if (floor) { DateTime dateFlooredToPreceeding30Mins = requestedDate.withMinuteOfHour( (requestedDate.getMinuteOfHour() < 30) ? 0 : 30); ...
protected long parseStr(String dateStr) { try { DateTime requestedDate = new DateTime(ISO_DATE_FORMAT.parse(dateStr)); if (floor) { DateTime dateFlooredToPreceeding30Mins = requestedDate.withMinuteOfHour( (requestedDate.getMinuteOfHour() < 30) ? 0 : 30); ...
diff --git a/src/contrib/capacity-scheduler/src/java/org/apache/hadoop/mapred/CapacityTaskScheduler.java b/src/contrib/capacity-scheduler/src/java/org/apache/hadoop/mapred/CapacityTaskScheduler.java index ee1fefd0c..14a524a2e 100644 --- a/src/contrib/capacity-scheduler/src/java/org/apache/hadoop/mapred/CapacityTaskSche...
true
true
private TaskLookupResult getTaskFromQueue(TaskTracker taskTracker, int availableSlots, CapacitySchedulerQueue queue, boolean assignOffSwitch) throws IOException { TaskT...
private TaskLookupResult getTaskFromQueue(TaskTracker taskTracker, int availableSlots, CapacitySchedulerQueue queue, boolean assignOffSwitch) throws IOException { TaskT...
diff --git a/src/cn/uc/play/japid/template/TemplateLoaderMysqlImpl.java b/src/cn/uc/play/japid/template/TemplateLoaderMysqlImpl.java index 1aebad5..0aa2b7c 100644 --- a/src/cn/uc/play/japid/template/TemplateLoaderMysqlImpl.java +++ b/src/cn/uc/play/japid/template/TemplateLoaderMysqlImpl.java @@ -1,181 +1,181 @@ packag...
true
true
private UJapidTemplate createTemplateFromResultSet(ResultSet rs) throws SQLException { Date lastModifyTime = rs.getDate("last_modify"); String path = rs.getString("id"); UJapidTemplate templateInNativeCache = templatesCache.get(path); if (templateInNativeCache != null && lastModifyTime.getTime() <= tem...
private UJapidTemplate createTemplateFromResultSet(ResultSet rs) throws SQLException { Date lastModifyTime = rs.getTimestamp("last_modify"); String path = rs.getString("id"); UJapidTemplate templateInNativeCache = templatesCache.get(path); if (templateInNativeCache != null && lastModifyTime.getTime() <...
diff --git a/play-platformservices-querydispatcher/src/test/java/eu/play_project/querydispatcher/bdpl/tests/StreamIdCollectorTest.java b/play-platformservices-querydispatcher/src/test/java/eu/play_project/querydispatcher/bdpl/tests/StreamIdCollectorTest.java index c074ea96..ed25895a 100644 --- a/play-platformservices-q...
true
true
public void testStreamIdCollectorHistoric() { Set<String> expectedInputStreams = new HashSet<String>(Arrays.asList(new String[] {"http://streams.event-processing.org/ids/Temperature"})); Set<String> expectedHistoricalStreams = new HashSet<String>(Arrays.asList(new String[] {"http://streams.event-processing.org/...
public void testStreamIdCollectorHistoric() { Set<String> expectedInputStreams = new HashSet<String>(Arrays.asList(new String[] {"http://streams.event-processing.org/ids/Temperature"})); Set<String> expectedHistoricalStreams = new HashSet<String>(Arrays.asList(new String[] {"http://streams.event-processing.org/...
diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWListItem.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWListItem.java index 55e00ba85..95d4ccf1b 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWListItem.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWL...
true
true
public void setDeleteCallback( DeleteCallback cb ) { m_cb = cb; ImageButton button = (ImageButton)findViewById( R.id.del ); button.setOnClickListener( new View.OnClickListener() { @Override public void onClick( View view ) { m_cb.d...
public void setDeleteCallback( DeleteCallback cb ) { m_cb = cb; ImageButton button = (ImageButton)findViewById( R.id.del ); button.setOnClickListener( new View.OnClickListener() { @Override public void onClick( View view ) { m_cb.delet...
diff --git a/apache/src/main/java/org/rhq/plugins/apache/augeas/AugeasConfigurationApache.java b/apache/src/main/java/org/rhq/plugins/apache/augeas/AugeasConfigurationApache.java index bca8281802..925a83d1c1 100644 --- a/apache/src/main/java/org/rhq/plugins/apache/augeas/AugeasConfigurationApache.java +++ b/apache/src/...
true
true
public void updateIncludes() throws Exception { boolean updated = false; AugeasProxy augeas = new AugeasProxy(this); augeas.load(); AugeasTree tree = augeas.getAugeasTree("httpd", true); AugeasNode nd = tree.getRootNode(); List<AugeasNode> nds = nd.getChildNodes(); for (AugeasNode ns : ...
public void updateIncludes() throws Exception { boolean updated = false; AugeasProxy augeas = new AugeasProxy(this); augeas.load(); AugeasTree tree = augeas.getAugeasTree(module.getModuletName(), true); AugeasNode nd = tree.getRootNode(); List<AugeasNode> nds = nd.getChildNodes(); for (...
diff --git a/src/test/java/com/guidewire/com/guidewire/accel/deployment/impl/AcceleratorParserTest.java b/src/test/java/com/guidewire/com/guidewire/accel/deployment/impl/AcceleratorParserTest.java index 6e9ccdf..e355e5b 100755 --- a/src/test/java/com/guidewire/com/guidewire/accel/deployment/impl/AcceleratorParserTest.j...
true
true
public void testParser() { AcceleratorParser parser = new AcceleratorParser(new File("src/test/resources/sample")); parser.parseAccelerator(); assertNotNull(parser.getAcceleratorComponents()); assertEquals(2, parser.getAcceleratorComponents().size()); }
public void testParser() { AcceleratorParser parser = new AcceleratorParser(new File("src/test/resources/sample")); parser.parseAccelerator(); assertNotNull(parser.getAcceleratorComponents()); assertEquals(2, parser.getAcceleratorComponents().getAllComponents().length); }
diff --git a/src/org/python/antlr/PythonTokenSource.java b/src/org/python/antlr/PythonTokenSource.java index 1bfc3210..ceddb8b8 100644 --- a/src/org/python/antlr/PythonTokenSource.java +++ b/src/org/python/antlr/PythonTokenSource.java @@ -1,379 +1,375 @@ package org.python.antlr; import org.python.core.Py; /* ...
true
true
protected void insertImaginaryIndentDedentTokens() { Token t = stream.LT(1); stream.consume(); if (t.getType() == Token.EOF) { Token prev = stream.LT(-1); if (!inSingle) { if (prev == null || prev.getType() != PythonLexer.NEWLINE) { ...
protected void insertImaginaryIndentDedentTokens() { Token t = stream.LT(1); stream.consume(); if (t.getType() == Token.EOF) { Token prev = stream.LT(-1); if (!inSingle) { if (prev == null || prev.getType() != PythonLexer.NEWLINE) { ...
diff --git a/src/poomonkeys/common/Tank.java b/src/poomonkeys/common/Tank.java index e06110e..0e99700 100644 --- a/src/poomonkeys/common/Tank.java +++ b/src/poomonkeys/common/Tank.java @@ -1,195 +1,195 @@ package poomonkeys.common; import javax.media.opengl.GL2; public class Tank extends Drawable { static fin...
true
true
public void intersectTerrain(Terrain t, float[] intersect) { if (intersect[2] > -.00001 && intersect[2] < .00001) { this.needsPositionUpdated = true; } this.p[0] += this.v[0] * intersect[2]; this.p[1] += this.v[1] * intersect[2]; System.out.println("t" + intersect[2]); // removeFromPhysicsEngine = tr...
public void intersectTerrain(Terrain t, float[] intersect) { if (intersect[2] > -.00001 && intersect[2] < .00001) { this.needsPositionUpdated = true; } this.p[0] += this.v[0] * intersect[2]; this.p[1] += this.v[1] * intersect[2]; System.out.println("t" + intersect[2]); // removeFromPhysicsEngine = tr...
diff --git a/chassis/core/src/main/java/com/griddynamics/jagger/invoker/QueryPoolScenarioFactory.java b/chassis/core/src/main/java/com/griddynamics/jagger/invoker/QueryPoolScenarioFactory.java index d1154a7..5f5c184 100644 --- a/chassis/core/src/main/java/com/griddynamics/jagger/invoker/QueryPoolScenarioFactory.java ++...
true
true
public Scenario<Q, R, E> get(NodeContext nodeContext) { Invoker<Q, R, E> invoker = invoker = nodeContext.getService(invokerClazz); if(getQueryProvider() !=null) loadBalancer.setEndpointProvider(getEndpointProvider()); if(getEndpointProvider() !=null) loadBalancer.setQueryProvider(getQuery...
public Scenario<Q, R, E> get(NodeContext nodeContext) { Invoker<Q, R, E> invoker = invoker = nodeContext.getService(invokerClazz); loadBalancer.setEndpointProvider(getEndpointProvider()); loadBalancer.setQueryProvider(getQueryProvider()); return new QueryPoolScenario<Q, R, E>(invoker...
diff --git a/android/AndroidScriptingEnvironment/test/com/google/ase/rpc/MethodDescriptorTest.java b/android/AndroidScriptingEnvironment/test/com/google/ase/rpc/MethodDescriptorTest.java index 1216c670..055c5504 100644 --- a/android/AndroidScriptingEnvironment/test/com/google/ase/rpc/MethodDescriptorTest.java +++ b/and...
true
true
public void testGetDefaultValue() throws Exception { @SuppressWarnings("unused") class A { @Rpc(description = "rpc", returns = "nothing") public void rpcString( @RpcParameter(name = "name", description = "Description") String string, @RpcParameter(name = "name", description = "Descri...
public void testGetDefaultValue() throws Exception { @SuppressWarnings("unused") class A { @Rpc(description = "rpc", returns = "nothing") public void rpcString( @RpcParameter(name = "name", description = "Description") String string, @RpcParameter(name = "name", description = "Descri...
diff --git a/src/com/foodcirclesserver/UserServlet.java b/src/com/foodcirclesserver/UserServlet.java index 35c9774..6ed4d72 100644 --- a/src/com/foodcirclesserver/UserServlet.java +++ b/src/com/foodcirclesserver/UserServlet.java @@ -1,77 +1,81 @@ /* * UserServlet - creating and updating users * req: /user?user_id=...
true
true
public void doGet(HttpServletRequest req, HttpServletResponse resp) { String userID = req.getParameter(UserManager.USER_ID); if (userID == null || userID.length() <= 0) return; //invalid user parameter String action = req.getParameter("action"); if (action == null) return; DatastoreService ds = D...
public void doGet(HttpServletRequest req, HttpServletResponse resp) { String userID = req.getParameter(UserManager.USER_ID); if (userID == null || userID.length() <= 0) return; //invalid user parameter String action = req.getParameter("action"); if (action == null) return; DatastoreService ds = D...
diff --git a/de.unisiegen.gtitool.ui/source/de/unisiegen/gtitool/ui/style/StyledAlphabetParserPanel.java b/de.unisiegen.gtitool.ui/source/de/unisiegen/gtitool/ui/style/StyledAlphabetParserPanel.java index b9226f13..b506ebd2 100644 --- a/de.unisiegen.gtitool.ui/source/de/unisiegen/gtitool/ui/style/StyledAlphabetParserPa...
true
true
private final Alphabet checkAlphabet ( Alphabet alphabet ) { ArrayList < ScannerException > exceptionList = new ArrayList < ScannerException > (); if ( alphabet != null ) { for ( Symbol current : this.notRemoveableSymbols ) { if ( !alphabet.contains ( current ) ) { ...
private final Alphabet checkAlphabet ( Alphabet alphabet ) { ArrayList < ScannerException > exceptionList = new ArrayList < ScannerException > (); if ( ( this.notRemoveableSymbols != null ) && ( alphabet != null ) ) { for ( Symbol current : this.notRemoveableSymbols ) { if ( !alphab...
diff --git a/Basics/src/coolawesomeme/basics_plugin/commands/TPRCommand.java b/Basics/src/coolawesomeme/basics_plugin/commands/TPRCommand.java index 6aed6c6..ef1c037 100644 --- a/Basics/src/coolawesomeme/basics_plugin/commands/TPRCommand.java +++ b/Basics/src/coolawesomeme/basics_plugin/commands/TPRCommand.java @@ -1,1...
false
true
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if(!(sender instanceof Player)){ if(args.length == 2){ if(Bukkit.getPlayer(args[0]) == null || Bukkit.getPlayer(args[0]).equals(null)){ sender.sendMessage(MinecraftColors.lightRed + "Player" + args[0] + " not found...
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if(!(sender instanceof Player)){ if(args.length == 2){ if(Bukkit.getPlayer(args[0]) == null || Bukkit.getPlayer(args[0]).equals(null)){ sender.sendMessage(MinecraftColors.lightRed + "Player" + args[0] + " not found...
diff --git a/h2drivers/src/main/java/org/h2gis/drivers/dbf/DBFDriverFunction.java b/h2drivers/src/main/java/org/h2gis/drivers/dbf/DBFDriverFunction.java index 38e284e2..cabb0df9 100644 --- a/h2drivers/src/main/java/org/h2gis/drivers/dbf/DBFDriverFunction.java +++ b/h2drivers/src/main/java/org/h2gis/drivers/dbf/DBFDrive...
true
true
public static String getSQLColumnTypes(DbaseFileHeader header) throws IOException { StringBuilder stringBuilder = new StringBuilder(); for(int idColumn = 0; idColumn < header.getNumFields(); idColumn++) { if(idColumn > 0) { stringBuilder.append(", "); } ...
public static String getSQLColumnTypes(DbaseFileHeader header) throws IOException { StringBuilder stringBuilder = new StringBuilder(); for(int idColumn = 0; idColumn < header.getNumFields(); idColumn++) { if(idColumn > 0) { stringBuilder.append(", "); } ...
diff --git a/src/test/java/net/oneandone/jasmin/model/EngineTest.java b/src/test/java/net/oneandone/jasmin/model/EngineTest.java index 761704c..ef49d28 100644 --- a/src/test/java/net/oneandone/jasmin/model/EngineTest.java +++ b/src/test/java/net/oneandone/jasmin/model/EngineTest.java @@ -1,78 +1,78 @@ /** * Copyrigh...
true
true
public void before() throws IOException { World world; Resolver resolver; world = new World(); resolver = new Resolver(world, true); resolver.add(Base.CLASSPATH, world.guessProjectHome(EngineTest.class).join("src/test/resources")); engine = new Engine(Repository.load...
public void before() throws IOException { World world; Resolver resolver; world = new World(); resolver = new Resolver(world, false); resolver.add(Base.CLASSPATH, world.guessProjectHome(EngineTest.class).join("src/test/resources")); engine = new Engine(Repository.loa...
diff --git a/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/hyperlink/JsfJSPTagAttributeHyperlinkPartitioner.java b/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/hyperlink/JsfJSPTagAttributeHyperlinkPartitioner.java index ea3da4010..1d407a572 100644 --- a/jsf/plugi...
true
true
protected IRegion getRegion(IDocument document, final int offset) { StructuredModelWrapper smw = new StructuredModelWrapper(); smw.init(document); try { Document xmlDocument = smw.getDocument(); if (xmlDocument == null) return null; Node n = Utils.findNodeForOffset(xmlDocument, offset); if (n ==...
protected IRegion getRegion(IDocument document, final int offset) { StructuredModelWrapper smw = new StructuredModelWrapper(); smw.init(document); try { Document xmlDocument = smw.getDocument(); if (xmlDocument == null) return null; Node n = Utils.findNodeForOffset(xmlDocument, offset); if (n ==...
diff --git a/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/TargetFileParser.java b/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/TargetFileParser.java index 5ee791bf..98576f71 100644 --- a/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/TargetFileParser.java +++ b/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/Tar...
false
true
public void run() { while (true) { final int i = this.index.getAndIncrement(); if (!(i < this.files.length)) { break; } try { if (Settings.getInstance().isVerbose()) { final StringBuilder text = new Strin...
public void run() { while (true) { final int i = this.index.getAndIncrement(); if (!(i < this.files.length)) { break; } try { if (Settings.getInstance().isVerbose()) { final StringBuilder text = new Strin...
diff --git a/core/src/main/java/org/apache/ldap/server/jndi/AbstractContextFactory.java b/core/src/main/java/org/apache/ldap/server/jndi/AbstractContextFactory.java index 038c6bb853..de65a100c6 100644 --- a/core/src/main/java/org/apache/ldap/server/jndi/AbstractContextFactory.java +++ b/core/src/main/java/org/apache/ld...
true
true
public final synchronized Context getInitialContext( Hashtable env ) throws NamingException { Configuration cfg = Configuration.toConfiguration( env ); env = ( Hashtable ) env.clone(); String principal = extractPrincipal( env ); byte[] credential = extractCredential( env...
public final synchronized Context getInitialContext( Hashtable env ) throws NamingException { Configuration cfg = Configuration.toConfiguration( env ); env = ( Hashtable ) env.clone(); String principal = extractPrincipal( env ); byte[] credential = extractCredential( env...
diff --git a/plugin/src/org/hackystat/sensor/eclipse/preference/PreferenceInitializer.java b/plugin/src/org/hackystat/sensor/eclipse/preference/PreferenceInitializer.java index ce29378..b585828 100644 --- a/plugin/src/org/hackystat/sensor/eclipse/preference/PreferenceInitializer.java +++ b/plugin/src/org/hackystat/sens...
false
true
@Override public void initializeDefaultPreferences() { EclipseSensorPlugin plugin = EclipseSensorPlugin.getDefault(); IPreferenceStore store = plugin.getPreferenceStore(); store.setDefault(PreferenceConstants.P_SENSORBASE, "http://dasha.ics.hawaii.edu:9876/sensorbase/"); store.setDefaul...
@Override public void initializeDefaultPreferences() { EclipseSensorPlugin plugin = EclipseSensorPlugin.getDefault(); IPreferenceStore store = plugin.getPreferenceStore(); store.setDefault(PreferenceConstants.P_SENSORBASE, "http://dasha.ics.hawaii.edu:9876/sensorbase/"); store.setDefaul...
diff --git a/bundles/org.eclipse.equinox.p2.director.app/src/org/eclipse/equinox/internal/p2/director/app/Application.java b/bundles/org.eclipse.equinox.p2.director.app/src/org/eclipse/equinox/internal/p2/director/app/Application.java index ac2616fb8..66b27bda2 100644 --- a/bundles/org.eclipse.equinox.p2.director.app/s...
false
true
public void processArguments(String[] args) throws Exception { if (args == null) return; for (int i = 0; i < args.length; i++) { String opt = args[i]; if (opt.equals("-roaming")) { //$NON-NLS-1$ roamingProfile = true; } if (opt.equals(COMMAND_NAMES[COMMAND_LIST])) { if (command != -1) ...
public void processArguments(String[] args) throws Exception { if (args == null) return; for (int i = 0; i < args.length; i++) { String opt = args[i]; if (opt.equals("-roaming")) { //$NON-NLS-1$ roamingProfile = true; } if (opt.equals(COMMAND_NAMES[COMMAND_LIST])) { if (command != -1) ...
diff --git a/source/de/tuclausthal/submissioninterface/servlets/controller/SubmitSolution.java b/source/de/tuclausthal/submissioninterface/servlets/controller/SubmitSolution.java index 02459fb..59c89ca 100644 --- a/source/de/tuclausthal/submissioninterface/servlets/controller/SubmitSolution.java +++ b/source/de/tuclaus...
false
true
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { Session session = HibernateSessionHelper.getSession(); Template template = TemplateFactory.getTemplate(request, response); PrintWriter out = response.getWriter(); TaskDAOIf taskDAO = DAOFactory...
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { Session session = HibernateSessionHelper.getSession(); Template template = TemplateFactory.getTemplate(request, response); PrintWriter out = response.getWriter(); TaskDAOIf taskDAO = DAOFactory...
diff --git a/src/com/redhat/ceylon/compiler/loader/model/LazyModuleManager.java b/src/com/redhat/ceylon/compiler/loader/model/LazyModuleManager.java index 2b7b34de8..dfb884b46 100644 --- a/src/com/redhat/ceylon/compiler/loader/model/LazyModuleManager.java +++ b/src/com/redhat/ceylon/compiler/loader/model/LazyModuleMana...
false
true
public void resolveModule(ArtifactResult artifact, Module module, ModuleImport moduleImport, LinkedList<Module> dependencyTree, List<PhasedUnits> phasedUnitsOfDependencies, boolean forCompiledModule) { String moduleName = module.getNameAsString(); boolean moduleLoadedFromSource = isModu...
public void resolveModule(ArtifactResult artifact, Module module, ModuleImport moduleImport, LinkedList<Module> dependencyTree, List<PhasedUnits> phasedUnitsOfDependencies, boolean forCompiledModule) { String moduleName = module.getNameAsString(); boolean moduleLoadedFromSource = isModu...
diff --git a/src/com/atlauncher/workers/InstanceInstaller.java b/src/com/atlauncher/workers/InstanceInstaller.java index 2d6a83ef..1dc60915 100644 --- a/src/com/atlauncher/workers/InstanceInstaller.java +++ b/src/com/atlauncher/workers/InstanceInstaller.java @@ -1,1541 +1,1549 @@ /** * Copyright 2013-2014 by ATLaunc...
false
true
protected Boolean doInBackground() throws Exception { if (this.isReinstall) { if (this.pack.getUpdateMessage(this.version.getVersion()) != null) { if (this.isCancelled()) { return false; } String[] options = { App.settings.getLo...
protected Boolean doInBackground() throws Exception { if (this.isReinstall) { if (this.pack.getUpdateMessage(this.version.getVersion()) != null) { if (this.isCancelled()) { return false; } String[] options = { App.settings.getLo...
diff --git a/src/main/java/org/senchalabs/gwt/gwtdriver/gxt/models/Field.java b/src/main/java/org/senchalabs/gwt/gwtdriver/gxt/models/Field.java index 309194c..51ab2f3 100644 --- a/src/main/java/org/senchalabs/gwt/gwtdriver/gxt/models/Field.java +++ b/src/main/java/org/senchalabs/gwt/gwtdriver/gxt/models/Field.java @@ ...
true
true
public Field done() { WebElement elt = this.elt; if (fieldLabel != null) { String escaped = escapeToString(fieldLabel); elt = elt.findElement(new FasterByChained(By.xpath(".|.//*[contains(text(), "+escaped+")]"), new ByNearestWidget(driver, FieldLabel.class), new FasterByChained( By....
public Field done() { WebElement elt = this.elt; if (fieldLabel != null) { String escaped = escapeToString(fieldLabel); elt = elt.findElement(new FasterByChained(By.xpath(".|.//*[contains(text(), "+escaped+")]"), new ByNearestWidget(driver, FieldLabel.class), new FasterByChained( By....
diff --git a/ManalithBot/src/main/java/org/manalith/ircbot/plugin/cer2/CERRunner.java b/ManalithBot/src/main/java/org/manalith/ircbot/plugin/cer2/CERRunner.java index 963d662..efc2863 100644 --- a/ManalithBot/src/main/java/org/manalith/ircbot/plugin/cer2/CERRunner.java +++ b/ManalithBot/src/main/java/org/manalith/ircbo...
true
true
public String run() throws Exception { String result = ""; CERTableUpdater updater = new CERTableUpdater(this.getDataPath()); updater.update(); String [] cmd = null; CERInfoProvider info = null; if (this.getArgs() == null) { String[] default_currency = null; PropertyManager prop = new PropertyMan...
public String run() throws Exception { String result = ""; CERTableUpdater updater = new CERTableUpdater(this.getDataPath()); updater.update(); String [] cmd = null; CERInfoProvider info = null; if (this.getArgs() == null || this.getArgs().length == 0) { String[] default_currency = null; Property...
diff --git a/classes/test/Reflection.java b/classes/test/Reflection.java index db5cecbf..af3e0850 100644 --- a/classes/test/Reflection.java +++ b/classes/test/Reflection.java @@ -1,215 +1,217 @@ package classes.test; import java.util.Arrays; import java.lang.reflect.*; import java.io.*; public class Reflection...
true
true
public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, NoSuchFieldException { // test multiNewArray int[] arr = (int[]) Array.newInstance(int.class, 4); System.out.println(Arrays.toString(arr)); int[][]...
public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, NoSuchFieldException { // test multiNewArray int[] arr = (int[]) Array.newInstance(int.class, 4); System.out.println(Arrays.toString(arr)); int[][]...
diff --git a/srcj/com/sun/electric/tool/btree/unboxed/UnboxedInt.java b/srcj/com/sun/electric/tool/btree/unboxed/UnboxedInt.java index ee0d27ef6..9d9bb7498 100644 --- a/srcj/com/sun/electric/tool/btree/unboxed/UnboxedInt.java +++ b/srcj/com/sun/electric/tool/btree/unboxed/UnboxedInt.java @@ -1,54 +1,62 @@ /* -*- tab-w...
false
true
public int compare(byte[] buf1, int ofs1, byte[] buf2, int ofs2) { int i; i = (buf1[ofs1+3] & 0xff) - (buf2[ofs2+3] & 0xff); if (i!=0) return i; i = (buf1[ofs1+2] & 0xff) - (buf2[ofs2+2] & 0xff); if (i!=0) return i; i = (buf1[ofs1+1] & 0xff) - (buf2[ofs2+1] & 0xff); if (i!=0) return ...
public int compare(byte[] buf1, int ofs1, byte[] buf2, int ofs2) { int buf1msb = buf1[ofs1+3] & 0xff; int buf2msb = buf2[ofs2+3] & 0xff; boolean buf1negative = (buf1msb >> 7) != 0; boolean buf2negative = (buf2msb >> 7) != 0; if ( buf1negative && !buf2negative) return -1; ...
diff --git a/src/java/com/idega/util/database/ConnectionRefresher.java b/src/java/com/idega/util/database/ConnectionRefresher.java index 5d2947252..4a3b01c6e 100755 --- a/src/java/com/idega/util/database/ConnectionRefresher.java +++ b/src/java/com/idega/util/database/ConnectionRefresher.java @@ -1,77 +1,77 @@ //idega ...
true
true
public synchronized void runRefresh() { refresher.interrupt(); try { //refresher.sleep(this.refreshIntervalMillis + Math.round((this.refreshIntervalMillis / 2) * Math.random())); pool.refresh(); } catch (Exception ex) { System.err.println("There was an Exception in ConnectionRefresher.ru...
public synchronized void runRefresh() { //refresher.interrupt(); try { //refresher.sleep(this.refreshIntervalMillis + Math.round((this.refreshIntervalMillis / 2) * Math.random())); pool.refresh(); } catch (Exception ex) { System.err.println("There was an Exception in ConnectionRefresher....
diff --git a/orcid-persistence/src/main/java/org/orcid/persistence/jpa/entities/OrcidOauth2TokenDetail.java b/orcid-persistence/src/main/java/org/orcid/persistence/jpa/entities/OrcidOauth2TokenDetail.java index 7d187579a5..5c74b7eb9c 100644 --- a/orcid-persistence/src/main/java/org/orcid/persistence/jpa/entities/OrcidO...
true
true
public int compareTo(OrcidOauth2TokenDetail other) { ProfileEntity otherProfileEntity = other.getProfile(); int compareName = profile.getCreditName().compareTo(otherProfileEntity.getCreditName()); if (compareName != 0) { return compareName; } Date thisDateCreated ...
public int compareTo(OrcidOauth2TokenDetail other) { ProfileEntity clientProfileEntity = clientDetailsEntity.getProfile(); ProfileEntity otherClientProfileEntity = other.getClientDetailsEntity().getProfile(); int compareName = clientProfileEntity.getCreditName().compareTo(otherClientProfileE...
diff --git a/main/src/main/java/com/bloatit/web/linkable/meta/bugreport/SideBarBugReportBlock.java b/main/src/main/java/com/bloatit/web/linkable/meta/bugreport/SideBarBugReportBlock.java index 1fbda2a78..92fea19f0 100644 --- a/main/src/main/java/com/bloatit/web/linkable/meta/bugreport/SideBarBugReportBlock.java +++ b/m...
true
true
public SideBarBugReportBlock(final Url currentUrl) { setTitle(tr("Bug report")); final HtmlParagraph bugDetail = new HtmlParagraph(); bugDetail.add(new HtmlMixedText(tr("You can use the <0::bug report> system to report any problem on elveos.org website."), ...
public SideBarBugReportBlock(final Url currentUrl) { setTitle(tr("Bug report")); final HtmlParagraph bugDetail = new HtmlParagraph(); bugDetail.add(new HtmlMixedText(tr("You can use the <0::bug report> system to report any problem on elveos.org website."), ...
diff --git a/src/tv/studer/smssync/SmsSyncService.java b/src/tv/studer/smssync/SmsSyncService.java index 73214b4..33370cf 100755 --- a/src/tv/studer/smssync/SmsSyncService.java +++ b/src/tv/studer/smssync/SmsSyncService.java @@ -1,537 +1,542 @@ /* Copyright (c) 2009 Christoph Studer <chstuder@gmail.com> * * Licens...
true
true
private void backup(boolean skipMessages) throws GeneralErrorException, AuthenticationErrorException { Log.i(Consts.TAG, "Starting backup..."); sCanceled = false; if (!PrefStore.isLoginInformationSet(this)) { throw new GeneralErrorException(this, R.string.err_sync_re...
private void backup(boolean skipMessages) throws GeneralErrorException, AuthenticationErrorException { Log.i(Consts.TAG, "Starting backup..."); sCanceled = false; if (!PrefStore.isLoginInformationSet(this)) { throw new GeneralErrorException(this, R.string.err_sync_re...
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/OpenRepositoryTaskJob.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/OpenRepositoryTaskJob.java index faab15c13..fbe106254 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/OpenReposi...
false
true
public IStatus run(IProgressMonitor monitor) { monitor.beginTask("Opening Remote Task", 10); TaskRepository repository = TasksUi.getRepositoryManager().getRepository(repositoryKind, repositoryUrl); if (repository == null) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run(...
public IStatus run(IProgressMonitor monitor) { monitor.beginTask("Opening Remote Task", 10); TaskRepository repository = TasksUi.getRepositoryManager().getRepository(repositoryKind, repositoryUrl); if (repository == null) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run(...
diff --git a/src/concurrent/collision/detection/ExecuteContainsCheck.java b/src/concurrent/collision/detection/ExecuteContainsCheck.java index 760295d..4a5b830 100644 --- a/src/concurrent/collision/detection/ExecuteContainsCheck.java +++ b/src/concurrent/collision/detection/ExecuteContainsCheck.java @@ -1,23 +1,23 @@ ...
true
true
public HashList execute(HashList param) throws Exception { HashList result = new HashList(); for (HashBitmapPair pair : param) { if (Main.trie.contains(pair.getHash())) { result.add(pair); } } return result; }
public HashList execute(HashList param) throws Exception { HashList result = new HashList(); for (HashBitmapPair pair : param) { if (Main.trie.contains(pair)) { result.add(pair); } } return result; }
diff --git a/studio-valueeditors/src/main/java/org/apache/directory/studio/valueeditors/dn/DnValueEditor.java b/studio-valueeditors/src/main/java/org/apache/directory/studio/valueeditors/dn/DnValueEditor.java index bdb74c889..4bdf205aa 100644 --- a/studio-valueeditors/src/main/java/org/apache/directory/studio/valueedit...
true
true
protected boolean openDialog( Shell shell ) { Object value = getValue(); if ( value != null && value instanceof DnValueEditorRawValueWrapper ) { DnValueEditorRawValueWrapper wrapper = ( DnValueEditorRawValueWrapper ) value; DN dn; try { ...
protected boolean openDialog( Shell shell ) { Object value = getValue(); if ( value != null && value instanceof DnValueEditorRawValueWrapper ) { DnValueEditorRawValueWrapper wrapper = ( DnValueEditorRawValueWrapper ) value; DN dn; try { ...
diff --git a/src/uk/org/ponder/rsf/components/UILink.java b/src/uk/org/ponder/rsf/components/UILink.java index d235047..baca8de 100644 --- a/src/uk/org/ponder/rsf/components/UILink.java +++ b/src/uk/org/ponder/rsf/components/UILink.java @@ -1,47 +1,47 @@ /* * Created on Jul 27, 2005 */ package uk.org.ponder.rsf.c...
false
true
public static UILink make(UIContainer parent, String ID, String text, String target) { UILink togo = new UILink(); togo.ID = ID; togo.target = new UIOutput(); if (target != null) { togo.target.setValue(target); } togo.linktext = new UIOutput(); if (text != null) { togo.linktext...
public static UILink make(UIContainer parent, String ID, String text, String target) { UILink togo = new UILink(); togo.ID = ID; togo.target = new UIOutput(); if (target != null) { togo.target.setValue(target); } if (text != null) { togo.linktext = new UIOutput(); togo.linkte...
diff --git a/src/com/android/mms/ui/UriImage.java b/src/com/android/mms/ui/UriImage.java index bc79df2..5d325b1 100644 --- a/src/com/android/mms/ui/UriImage.java +++ b/src/com/android/mms/ui/UriImage.java @@ -1,300 +1,300 @@ /* * Copyright (C) 2008 Esmertec AG. * Copyright (C) 2008 The Android Open Source Project ...
true
true
private byte[] getResizedImageData(int widthLimit, int heightLimit, int byteLimit) { int outWidth = mWidth; int outHeight = mHeight; int scaleFactor = 1; while ((outWidth / scaleFactor > widthLimit) || (outHeight / scaleFactor > heightLimit)) { scaleFactor *= 2; ...
private byte[] getResizedImageData(int widthLimit, int heightLimit, int byteLimit) { int outWidth = mWidth; int outHeight = mHeight; int scaleFactor = 1; while ((outWidth / scaleFactor > widthLimit) || (outHeight / scaleFactor > heightLimit)) { scaleFactor *= 2; ...
diff --git a/plugins/chrome.socket/src/android/ChromeSocket.java b/plugins/chrome.socket/src/android/ChromeSocket.java index 6bcfafe..3f0d2e3 100644 --- a/plugins/chrome.socket/src/android/ChromeSocket.java +++ b/plugins/chrome.socket/src/android/ChromeSocket.java @@ -1,924 +1,931 @@ // Copyright (c) 2013 The Chromium...
false
true
public void run() { try { while (true) { // Read from the blocking queue ReadData readData = SocketData.this.readQueue.take(); if(readData.killThread) return; int toRead = readData.size; ...
public void run() { try { while (true) { // Read from the blocking queue ReadData readData = SocketData.this.readQueue.take(); if(readData.killThread) return; int toRead = readData.size; ...
diff --git a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/commands/LineRangeOperationCommand.java b/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/commands/LineRangeOperationCommand.java index 0c766a43..4f25d0e7 100644 --- a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/comm...
true
true
public SimpleTextOperation parseRangeOperation(EditorAdaptor editorAdaptor) { if (operationStr.isEmpty()) { editorAdaptor.getUserInterfaceService().setErrorMessage("No operation specified."); return null; } while(operationStr.startsWith(":")) { //remove any superfluou...
public SimpleTextOperation parseRangeOperation(EditorAdaptor editorAdaptor) { if (operationStr.isEmpty()) { editorAdaptor.getUserInterfaceService().setErrorMessage("No operation specified."); return null; } while(operationStr.startsWith(":")) { //remove any superfluou...
diff --git a/lucene/src/test/org/apache/lucene/search/function/TestValueSource.java b/lucene/src/test/org/apache/lucene/search/function/TestValueSource.java index 131d1a322..f2d314c0f 100644 --- a/lucene/src/test/org/apache/lucene/search/function/TestValueSource.java +++ b/lucene/src/test/org/apache/lucene/search/funct...
true
true
public void testMultiValueSource() throws Exception { Directory dir = newDirectory(); IndexWriter w = new IndexWriter(dir, new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random)).setMergePolicy(newLogMergePolicy())); Document doc = new Document(); Field f = newField("field", "", Field.St...
public void testMultiValueSource() throws Exception { Directory dir = newDirectory(); IndexWriter w = new IndexWriter(dir, new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random)).setMergePolicy(newLogMergePolicy())); ((LogMergePolicy) w.getConfig().getMergePolicy()).setMergeFactor(_TestUtil....
diff --git a/weasis-dicom/weasis-dicom-explorer/src/main/java/org/weasis/dicom/explorer/wado/LoadSeries.java b/weasis-dicom/weasis-dicom-explorer/src/main/java/org/weasis/dicom/explorer/wado/LoadSeries.java index f3a3850a..db700e59 100644 --- a/weasis-dicom/weasis-dicom-explorer/src/main/java/org/weasis/dicom/explorer/...
true
true
public Boolean call() throws Exception { InputStream stream = null; URLConnection httpCon = null; try { // If there is a proxy, it should be already configured httpCon = url.openConnection(); // Set http login (no protection, o...
public Boolean call() throws Exception { InputStream stream = null; URLConnection httpCon = null; try { // If there is a proxy, it should be already configured httpCon = url.openConnection(); // Set http login (no protection, o...