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/main/src/java/chord/analyses/alias/CtxtsAnalysis.java b/main/src/java/chord/analyses/alias/CtxtsAnalysis.java index d1e5631b..5684bfa0 100644 --- a/main/src/java/chord/analyses/alias/CtxtsAnalysis.java +++ b/main/src/java/chord/analyses/alias/CtxtsAnalysis.java @@ -1,768 +1,770 @@ /* * Copyright (c) 200...
true
true
public void run() { X = Execution.v("adaptive"); init(); Program program = Program.getProgram(); int numV = domV.size(); isCtxtSenV = new boolean[numV]; int numM = domM.size(); methKind = new int[numM]; for (int mIdx = 0; mIdx < numM; mIdx++) { jq_Method mVal = domM.get(mIdx); methKind[mIdx] ...
public void run() { X = Execution.v("adaptive"); init(); Program program = Program.getProgram(); int numV = domV.size(); isCtxtSenV = new boolean[numV]; int numM = domM.size(); methKind = new int[numM]; for (int mIdx = 0; mIdx < numM; mIdx++) { jq_Method mVal = domM.get(mIdx); methKind[mIdx] ...
diff --git a/TheAdventure/src/se/chalmers/kangaroo/view/KangarooAnimation.java b/TheAdventure/src/se/chalmers/kangaroo/view/KangarooAnimation.java index 7b4897e..13bec9f 100644 --- a/TheAdventure/src/se/chalmers/kangaroo/view/KangarooAnimation.java +++ b/TheAdventure/src/se/chalmers/kangaroo/view/KangarooAnimation.java...
false
true
public void drawSprite(Graphics g, int x, int y) { if (tick == 15) { tick = 0; currentFrame++; currentFrame = (currentFrame % 3); } if(kangaroo.getDirection() == Direction.DIRECTION_EAST) { g.drawImage(rightSheet, (x-widthPerFrame/2)+10, y-height, (x+widthPerFrame/2)+10, y, (currentFrame * width...
public void drawSprite(Graphics g, int x, int y) { if (tick == 15) { tick = 0; currentFrame++; currentFrame = (currentFrame % 3); } if (kangaroo.getVerticalSpeed() != 0) { if(kangaroo.getDirection() == Direction.DIRECTION_EAST || lastSheet == "rightSheet") { g.drawImage(rightSheet, x-5, y-height,...
diff --git a/src/app/filters/ValidateSessionFilter.java b/src/app/filters/ValidateSessionFilter.java index bcd6a9b..c04640c 100644 --- a/src/app/filters/ValidateSessionFilter.java +++ b/src/app/filters/ValidateSessionFilter.java @@ -1,54 +1,53 @@ package app.filters; import java.io.IOException; import java.util.Li...
false
true
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest req = (HttpServletRequest) request; HttpServletResponse res = (HttpServletResponse) response; HttpSession session = req.getSession(false); if (session != null && s...
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest req = (HttpServletRequest) request; HttpServletResponse res = (HttpServletResponse) response; HttpSession session = req.getSession(false); if (session != null && s...
diff --git a/android/src/fq/router/ErrorReportEmail.java b/android/src/fq/router/ErrorReportEmail.java index 4227f5c..43a21e8 100644 --- a/android/src/fq/router/ErrorReportEmail.java +++ b/android/src/fq/router/ErrorReportEmail.java @@ -1,128 +1,140 @@ package fq.router; import android.content.Intent; import andro...
true
true
private String createLogFiles() { if (!new File(LOG_DIR).exists()) { new File(LOG_DIR).mkdir(); } String error = ""; try { ShellUtils.sudo(ShellUtils.findCommand("getprop"), ">", LOG_DIR + "/getprop.log"); } catch (Exception e) { LogUtils.e...
private String createLogFiles() { if (!new File(LOG_DIR).exists()) { new File(LOG_DIR).mkdir(); } String error = ""; try { ShellUtils.sudo(ShellUtils.findCommand("getprop"), ">", LOG_DIR + "/getprop.log"); } catch (Exception e) { LogUtils.e...
diff --git a/spock-core/src/main/java/org/spockframework/runtime/SpockRuntime.java b/spock-core/src/main/java/org/spockframework/runtime/SpockRuntime.java index 1aa62c9c..26760163 100755 --- a/spock-core/src/main/java/org/spockframework/runtime/SpockRuntime.java +++ b/spock-core/src/main/java/org/spockframework/runtime...
true
true
public static void verifyMethodCondition(@Nullable ValueRecorder recorder, @Nullable String text, int line, int column, @Nullable Object message, Object target, String method, Object[] args, boolean safe, boolean explicit) { MatcherCondition matcherCondition = MatcherCondition.parse(target, method, args, sa...
public static void verifyMethodCondition(@Nullable ValueRecorder recorder, @Nullable String text, int line, int column, @Nullable Object message, Object target, String method, Object[] args, boolean safe, boolean explicit) { MatcherCondition matcherCondition = MatcherCondition.parse(target, method, args, sa...
diff --git a/org.maven.ide.eclipse.tests/src/org/maven/ide/eclipse/configurators/LifecycleMappingTest.java b/org.maven.ide.eclipse.tests/src/org/maven/ide/eclipse/configurators/LifecycleMappingTest.java index b9b13d87..7e7c0562 100644 --- a/org.maven.ide.eclipse.tests/src/org/maven/ide/eclipse/configurators/LifecycleMa...
true
true
public void testCustomizableMapping() throws Exception { IMavenProjectFacade facade = importMavenProject("projects/lifecyclemapping", "customizable/pom.xml"); ILifecycleMapping lifecycleMapping = projectConfigurationManager.getLifecycleMapping(facade, monitor); assertTrue(lifecycleMapping instanceof Cus...
public void testCustomizableMapping() throws Exception { IMavenProjectFacade facade = importMavenProject("projects/lifecyclemapping", "customizable/pom.xml"); ILifecycleMapping lifecycleMapping = projectConfigurationManager.getLifecycleMapping(facade, monitor); assertTrue(lifecycleMapping instanceof Cus...
diff --git a/src/main/java/com/psyco/tplmc/CustomMessages/commands/CmQuitCommand.java b/src/main/java/com/psyco/tplmc/CustomMessages/commands/CmQuitCommand.java index 02cf5ef..13fd30c 100644 --- a/src/main/java/com/psyco/tplmc/CustomMessages/commands/CmQuitCommand.java +++ b/src/main/java/com/psyco/tplmc/CustomMessages...
false
true
public void onPlayerCommand(Player player, String label, String[] args) { Player target = Bukkit.getPlayer(args[0]); if (args.length == 0) { if (!CustomMessages.getConfiguration().permsRequired() || player.hasPermission("CustomMessages.quit")) { player.sendMessage(ChatCol...
public void onPlayerCommand(Player player, String label, String[] args) { if (args.length == 0) { if (!CustomMessages.getConfiguration().permsRequired() || player.hasPermission("CustomMessages.quit")) { player.sendMessage(ChatColor.GREEN + "Current quit message:"); ...
diff --git a/java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/JsServlet.java b/java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/JsServlet.java index 0a8ef94f..e5b59a31 100644 --- a/java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/JsServlet.java +++ b/java/gadgets/src/main/java/org...
true
true
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { // If an If-Modified-Since header is ever provided, we always say // not modified. This is because when there actually is a change, // cache busting should occur. if (req.getHeader("If-Modified-Since") !=...
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { // If an If-Modified-Since header is ever provided, we always say // not modified. This is because when there actually is a change, // cache busting should occur. if (req.getHeader("If-Modified-Since") !=...
diff --git a/atlas-dao/src/test/java/uk/ac/ebi/microarray/atlas/dao/procedures/LoadProgress.java b/atlas-dao/src/test/java/uk/ac/ebi/microarray/atlas/dao/procedures/LoadProgress.java index ac67f7c88..ade641791 100644 --- a/atlas-dao/src/test/java/uk/ac/ebi/microarray/atlas/dao/procedures/LoadProgress.java +++ b/atlas-d...
true
true
public static void call(Connection conn, String accession, String stage, String status) throws Exception { // this mimics the stored procedure load_progress in the actual DB // todo // // lookup i...
public static void call(Connection conn, String accession, String stage, String status, String load_type) throws Exception { // this mimics the stored procedure load_progress in the ac...
diff --git a/src/pimp/persistence/DBDataAccessor.java b/src/pimp/persistence/DBDataAccessor.java index d253d33..9ef67f8 100644 --- a/src/pimp/persistence/DBDataAccessor.java +++ b/src/pimp/persistence/DBDataAccessor.java @@ -1,386 +1,390 @@ package pimp.persistence; import java.awt.Color; import java.lang.reflect....
true
true
private boolean insertIntoTable(String className, Product product) { try { int originalCount = getRecordCount(className); Class<?> c = product.getClass(); Field[] fields = c.getFields(); fields = sortFields(fields); String sql = "INSERT INTO " + className + "("; for (int i = 0; i < fields.lengt...
private boolean insertIntoTable(String className, Product product) { try { int originalCount = getRecordCount(className); Class<?> c = product.getClass(); Field[] fields = c.getFields(); fields = sortFields(fields); String sql = "INSERT INTO " + className + "("; for (int i = 0; i < fields.lengt...
diff --git a/src/main/java/com/yahoo/omid/tso/TSOServer.java b/src/main/java/com/yahoo/omid/tso/TSOServer.java index 6a70808..5ce9bda 100644 --- a/src/main/java/com/yahoo/omid/tso/TSOServer.java +++ b/src/main/java/com/yahoo/omid/tso/TSOServer.java @@ -1,211 +1,211 @@ /** * Copyright (c) 2011 Yahoo! Inc. All rights ...
true
true
public void run() { // *** Start the Netty configuration *** // Start server with Nb of active threads = 2*NB CPU + 1 as maximum. ChannelFactory factory = new NioServerSocketChannelFactory(Executors.newCachedThreadPool(), Executors.newCachedThreadPool(), (Runtime.getRuntime()...
public void run() { // *** Start the Netty configuration *** // Start server with Nb of active threads = 2*NB CPU + 1 as maximum. ChannelFactory factory = new NioServerSocketChannelFactory(Executors.newCachedThreadPool(), Executors.newCachedThreadPool(), (Runtime.getRuntime()...
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/LaunchConfigurationProjectMainTypeChange.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/LaunchConfigurationProjectMainTypeChange.java index 2793e23c6..bb893179c 100644 --- a/org.eclipse.jdt.debug...
true
true
public Change perform(IProgressMonitor pm) throws CoreException { final ILaunchConfigurationWorkingCopy wc = fLaunchConfiguration.getWorkingCopy(); if (fNewConfigContainerName != null) { IWorkspace workspace = ResourcesPlugin.getWorkspace(); IWorkspaceRoot root = workspace.getRoot...
public Change perform(IProgressMonitor pm) throws CoreException { final ILaunchConfigurationWorkingCopy wc = fLaunchConfiguration.getWorkingCopy(); if (fNewConfigContainerName != null) { IWorkspace workspace = ResourcesPlugin.getWorkspace(); IWorkspaceRoot root = workspace.getRoot...
diff --git a/src/org/apache/fop/fo/flow/TableBody.java b/src/org/apache/fop/fo/flow/TableBody.java index d3d08745e..6e4661fce 100644 --- a/src/org/apache/fop/fo/flow/TableBody.java +++ b/src/org/apache/fop/fo/flow/TableBody.java @@ -1,315 +1,321 @@ /*-- $Id$ -- =====================================================...
true
true
public Status layout(Area area) throws FOPException { if (this.marker == BREAK_AFTER) { return new Status(Status.OK); } if (this.marker == START) { String fontFamily = this.properties.get("font-family").getString(); String fontStyle = this.properties.get("font-style").getS...
public Status layout(Area area) throws FOPException { if (this.marker == BREAK_AFTER) { return new Status(Status.OK); } if (this.marker == START) { String fontFamily = this.properties.get("font-family").getString(); String fontStyle = this.properties.get("font-style").getS...
diff --git a/jsf-ri/src/main/java/com/sun/faces/facelets/util/FastWriter.java b/jsf-ri/src/main/java/com/sun/faces/facelets/util/FastWriter.java index 3d08d5fbe..45899f97a 100644 --- a/jsf-ri/src/main/java/com/sun/faces/facelets/util/FastWriter.java +++ b/jsf-ri/src/main/java/com/sun/faces/facelets/util/FastWriter.java...
true
true
private final void overflow(int len) { if (this.size + len > this.buff.length) { char[] next = new char[(this.size + len) * 2]; System.arraycopy(this.buff, 0, next, 0, this.size); this.buff = next; } }
private void overflow(int len) { if (this.size + len > this.buff.length) { char[] next = new char[(this.size + len) * 2]; System.arraycopy(this.buff, 0, next, 0, this.size); this.buff = next; } }
diff --git a/src/org/sablecc/sablecc/lrautomaton/LRState.java b/src/org/sablecc/sablecc/lrautomaton/LRState.java index 8ea2ebb..4000e64 100644 --- a/src/org/sablecc/sablecc/lrautomaton/LRState.java +++ b/src/org/sablecc/sablecc/lrautomaton/LRState.java @@ -1,538 +1,540 @@ /* This file is part of SableCC ( http://sable...
true
true
void computeActions( Verbosity verbosity) { // LR(0) shift state if (this.reduceItems.size() == 0) { this.actions.add(new ShiftAction(null)); switch (verbosity) { case VERBOSE: System.out.println(" - LR(0) shift state found"); ...
void computeActions( Verbosity verbosity) { // LR(0) shift state if (this.reduceItems.size() == 0) { this.actions.add(new ShiftAction(null)); switch (verbosity) { case VERBOSE: System.out.println(" - LR(0) shift state found"); ...
diff --git a/NCuboid/src/main/java/fr/ribesg/bukkit/ncuboid/listeners/flag/BuildFlagListener.java b/NCuboid/src/main/java/fr/ribesg/bukkit/ncuboid/listeners/flag/BuildFlagListener.java index a3d48e6e..00088aeb 100644 --- a/NCuboid/src/main/java/fr/ribesg/bukkit/ncuboid/listeners/flag/BuildFlagListener.java +++ b/NCuboi...
true
true
public void onPlayerInteract(final ExtendedPlayerInteractEvent ext) { final PlayerInteractEvent event = (PlayerInteractEvent) ext.getBaseEvent(); if (event.hasBlock()) { if (event.hasItem() && event.getItem().getType() == Material.STICK) { // Handled in PlayerStickListener return; } if (event.getA...
public void onPlayerInteract(final ExtendedPlayerInteractEvent ext) { final PlayerInteractEvent event = (PlayerInteractEvent) ext.getBaseEvent(); if (event.hasBlock()) { if (event.hasItem() && event.getItem().getType() == Material.STICK) { // Handled in PlayerStickListener return; } if (event.getA...
diff --git a/src/com/modcrafting/diablodrops/DiabloDrops.java b/src/com/modcrafting/diablodrops/DiabloDrops.java index 12d24dd..3754d69 100644 --- a/src/com/modcrafting/diablodrops/DiabloDrops.java +++ b/src/com/modcrafting/diablodrops/DiabloDrops.java @@ -1,159 +1,159 @@ package com.modcrafting.diablodrops; import...
false
true
public void onEnable() { instance = this; this.getDataFolder().mkdir(); nameLoader = new NamesLoader(this); nameLoader.writeDefault("config.yml"); nameLoader.writeDefault("custom.yml"); nameLoader.writeDefault("tier.yml"); nameLoader.writeDefault("prefix.txt"); nameLoader.writeDefault("suffix.txt"); ...
public void onEnable() { instance = this; this.getDataFolder().mkdir(); nameLoader = new NamesLoader(this); nameLoader.writeDefault("config.yml"); nameLoader.writeDefault("custom.yml"); nameLoader.writeDefault("tier.yml"); nameLoader.writeDefault("prefix.txt"); nameLoader.writeDefault("suffix.txt"); ...
diff --git a/code/uci/pacman/controllers/WallController.java b/code/uci/pacman/controllers/WallController.java index 6a0ad39..02bd23f 100644 --- a/code/uci/pacman/controllers/WallController.java +++ b/code/uci/pacman/controllers/WallController.java @@ -1,148 +1,148 @@ package code.uci.pacman.controllers; import jav...
true
true
private void makeWalls1() { addWall(0, 0, 8, 600);// left addWall(0, 0, 600, 8);// top addWall(0, 580, 600, 8);// bottom addWall(592, 0, 8, 600);// right addWall(TOP_CAGEPOS_X, TOP_CAGEPOS_Y, 157, 10); // top of the cage addWall(222, 245, 157, 75); // rest of the cage addWall(0, 177, 118, 195); addWa...
private void makeWalls1() { addWall(2, 0, 8, 600);// left addWall(0, 0, 600, 8);// top addWall(0, 580, 600, 8);// bottom addWall(592, 0, 8, 600);// right addWall(TOP_CAGEPOS_X, TOP_CAGEPOS_Y, 157, 10); // top of the cage addWall(222, 245, 157, 75); // rest of the cage addWall(0, 177, 118, 195); addWa...
diff --git a/common/blocks/BlockColoredBed.java b/common/blocks/BlockColoredBed.java index 1e1b2b5..f5f6001 100644 --- a/common/blocks/BlockColoredBed.java +++ b/common/blocks/BlockColoredBed.java @@ -1,197 +1,197 @@ package loecraftpack.common.blocks; import java.util.ArrayList; import java.util.List; import jav...
true
true
public void registerIcons(IconRegister par1IconRegister) { this.bedtop = new ArrayList<Icon[]>(); this.bedend = new ArrayList<Icon[]>(); this.bedside = new ArrayList<Icon[]>(); this.bedPairTopLeft = new ArrayList<Icon[]>(); this.bedPairEndLeft = new ArrayList<Icon[]>(); this.bedPairSideLeft = new...
public void registerIcons(IconRegister par1IconRegister) { this.bedtop = new ArrayList<Icon[]>(); this.bedend = new ArrayList<Icon[]>(); this.bedside = new ArrayList<Icon[]>(); this.bedPairTopLeft = new ArrayList<Icon[]>(); this.bedPairEndLeft = new ArrayList<Icon[]>(); this.bedPairSideLeft = new...
diff --git a/deegree-layers/deegree-layers-feature/src/main/java/org/deegree/layer/persistence/feature/FeatureLayer.java b/deegree-layers/deegree-layers-feature/src/main/java/org/deegree/layer/persistence/feature/FeatureLayer.java index aee7324ce1..da92299236 100644 --- a/deegree-layers/deegree-layers-feature/src/main/...
true
true
public FeatureLayerData mapQuery( final LayerQuery query, List<String> headers ) throws OWSException { StyleRef ref = query.getStyle(); if ( !ref.isResolved() ) { ref.resolve( getMetadata().getStyles().get( ref.getName() ) ); } Style style = re...
public FeatureLayerData mapQuery( final LayerQuery query, List<String> headers ) throws OWSException { StyleRef ref = query.getStyle(); if ( !ref.isResolved() ) { ref.resolve( getMetadata().getStyles().get( ref.getName() ) ); } Style style = re...
diff --git a/src/de/_13ducks/cor/game/server/movement/ServerBehaviourMove.java b/src/de/_13ducks/cor/game/server/movement/ServerBehaviourMove.java index 25415e3..0d98478 100644 --- a/src/de/_13ducks/cor/game/server/movement/ServerBehaviourMove.java +++ b/src/de/_13ducks/cor/game/server/movement/ServerBehaviourMove.java...
true
true
public synchronized void execute() { // Auto-Ende: if (target == null || speed <= 0) { deactivate(); return; } // Wir laufen also. // Aktuelle Position berechnen: FloatingPointPosition oldPos = caster2.getPrecisePosition(); Vector vec ...
public synchronized void execute() { // Auto-Ende: if (target == null || speed <= 0) { deactivate(); return; } // Wir laufen also. // Aktuelle Position berechnen: FloatingPointPosition oldPos = caster2.getPrecisePosition(); Vector vec ...
diff --git a/src/java/com/iminurnetz/bukkit/util/tests/SerializableItemStackTest.java b/src/java/com/iminurnetz/bukkit/util/tests/SerializableItemStackTest.java index 033343a..ac6a69f 100644 --- a/src/java/com/iminurnetz/bukkit/util/tests/SerializableItemStackTest.java +++ b/src/java/com/iminurnetz/bukkit/util/tests/Se...
false
true
public void testConversion() { ItemStack s = new ItemStack(Material.WOOL, 10); s.setData(Material.WOOL.getNewData(DyeColor.BLUE.getData())); s.setDurability((short)10); SerializableItemStack ss = new SerializableItemStack(s); assertEquals("Serialization succ...
public void testConversion() { ItemStack s = new ItemStack(Material.WOOL, 10, (short) 0, DyeColor.BLUE.getData()); SerializableItemStack ss = new SerializableItemStack(s); assertEquals("Serialization succeeded", s.getData().getData(), DyeColor.BLUE.getData()); Item...
diff --git a/src/edu/cmu/cs/diamond/rsna2007/Banner.java b/src/edu/cmu/cs/diamond/rsna2007/Banner.java index bfbfab3..51455a4 100644 --- a/src/edu/cmu/cs/diamond/rsna2007/Banner.java +++ b/src/edu/cmu/cs/diamond/rsna2007/Banner.java @@ -1,61 +1,61 @@ package edu.cmu.cs.diamond.rsna2007; import java.awt.BorderLayout...
true
true
public Banner(File logoDir) { super(); setBackground(null); setLayout(new BorderLayout()); // read logo dir File logos[] = logoDir.listFiles(new FilenameFilter() { public boolean accept(File dir, String name) { return name.toLowerCase().endsWith(...
public Banner(File logoDir) { super(); setBackground(null); setLayout(new BorderLayout()); // read logo dir File logos[] = logoDir.listFiles(new FilenameFilter() { public boolean accept(File dir, String name) { return name.toLowerCase().endsWith(...
diff --git a/GameClient/src/com/whiuk/philip/mmorpg/client/ui/LobbyScreen.java b/GameClient/src/com/whiuk/philip/mmorpg/client/ui/LobbyScreen.java index 5f98e28..3c8d0ce 100644 --- a/GameClient/src/com/whiuk/philip/mmorpg/client/ui/LobbyScreen.java +++ b/GameClient/src/com/whiuk/philip/mmorpg/client/ui/LobbyScreen.java...
false
true
public final void handleGameData(final ServerMessage.GameData gameData) { if (gameData.hasError()) { LOGGER.info("Game Error: " + gameData.getError()); } else { switch (gameData.getType()) { case CHARACTER_CREATED: LOGGER.info("Recieved char...
public final void handleGameData(final ServerMessage.GameData gameData) { if (gameData.hasError()) { LOGGER.info("Game Error: " + gameData.getError()); } else { switch (gameData.getType()) { case CHARACTER_CREATED: LOGGER.trace("Recieved cha...
diff --git a/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java b/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java index 415965e8..817746aa 100644 --- a/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java +++ b/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java @...
false
true
public void processEncodedText( byte[] string ) throws IOException { /* Note on variable names. There are three different units being used * in this code. Character sizes are given in glyph units, text locations * are initially given in text units, and we want to save the data in ...
public void processEncodedText( byte[] string ) throws IOException { /* Note on variable names. There are three different units being used * in this code. Character sizes are given in glyph units, text locations * are initially given in text units, and we want to save the data in ...
diff --git a/gr.sch.ira.minoas/src/gr/sch/ira/minoas/seam/components/reports/TeachingVoidAnalysisReport.java b/gr.sch.ira.minoas/src/gr/sch/ira/minoas/seam/components/reports/TeachingVoidAnalysisReport.java index 77e896ae..9bbdb337 100644 --- a/gr.sch.ira.minoas/src/gr/sch/ira/minoas/seam/components/reports/TeachingVoi...
false
true
public void generateReport() { try { long started = System.currentTimeMillis(), finished; /* our report data contains a list contaning a map with key-values. Each map entry coresponds to group report item. * Each group report item has several attributes, l...
public void generateReport() { try { long started = System.currentTimeMillis(), finished; /* our report data contains a list contaning a map with key-values. Each map entry coresponds to group report item. * Each group report item has several attributes, l...
diff --git a/src/lib/com/izforge/izpack/util/Housekeeper.java b/src/lib/com/izforge/izpack/util/Housekeeper.java index 10ed091d..6f4f1f90 100644 --- a/src/lib/com/izforge/izpack/util/Housekeeper.java +++ b/src/lib/com/izforge/izpack/util/Housekeeper.java @@ -1,141 +1,141 @@ /* * IzPack - Copyright 2001-2008 Julien P...
true
true
public void shutDown(int exitCode) { // IZPACK-276 // Do the cleanup of the last registered client at the fist time (first in last out) for (int i = cleanupClients.size() - 1; i > 0; i--) { try { (cleanupClients.elementAt(i)).cleanUp(); ...
public void shutDown(int exitCode) { // IZPACK-276 // Do the cleanup of the last registered client at the fist time (first in last out) for (int i = cleanupClients.size() - 1; i >= 0; i--) { try { (cleanupClients.elementAt(i)).cleanUp(); ...
diff --git a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/wizards/GettingStartedWizard.java b/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/wizards/GettingStartedWizard.java index bdcc2632e..ce7c6e2bf 100644 --- a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/wizards/GettingStartedWizard.java +++ b/de.fu_berl...
true
true
public void createControl(Composite parent) { final Composite composite = new Composite(parent, SWT.NONE); setControl(composite); if (this.contentImage != null) { composite.addPaintListener(new PaintListener() { public void paintControl(Pa...
public void createControl(Composite parent) { final Composite composite = new Composite(parent, SWT.NONE); setControl(composite); if (this.contentImage != null) { composite.addPaintListener(new PaintListener() { public void paintControl(Pa...
diff --git a/src/test/net/sf/clirr/checks/MethodSetCheckTest.java b/src/test/net/sf/clirr/checks/MethodSetCheckTest.java index 5bf446a..dc2e4f4 100644 --- a/src/test/net/sf/clirr/checks/MethodSetCheckTest.java +++ b/src/test/net/sf/clirr/checks/MethodSetCheckTest.java @@ -1,76 +1,76 @@ package net.sf.clirr.checks; ...
false
true
public void testMethodCheck() throws Exception { ApiDifference[] expected = new ApiDifference[] { // method addition and removal new ApiDifference("Method 'public void removedMethod(java.lang.String)' has been removed in testlib.MethodsChange", Severity.ERROR...
public void testMethodCheck() throws Exception { ApiDifference[] expected = new ApiDifference[] { // method addition and removal new ApiDifference("Method 'public void removedMethod(java.lang.String)' has been removed in testlib.MethodsChange", Severity.ERROR...
diff --git a/src/main/java/com/steamedpears/comp3004/SevenWonders.java b/src/main/java/com/steamedpears/comp3004/SevenWonders.java index 7110ba2..67aa9c3 100644 --- a/src/main/java/com/steamedpears/comp3004/SevenWonders.java +++ b/src/main/java/com/steamedpears/comp3004/SevenWonders.java @@ -1,132 +1,133 @@ package co...
true
true
public void createGame(boolean isHosting, String ipAddress, int port, int players) { logger.info("Creating game"); this.isHost = isHosting; closeNewGameDialog(); if(isHost){ router = Router.getHostRouter(port, players); dialog = new HostGameDialog(view,this); ...
public void createGame(boolean isHosting, String ipAddress, int port, int players) { logger.info("Creating game"); this.isHost = isHosting; closeNewGameDialog(); if(isHost){ router = Router.getHostRouter(port, players); dialog = new HostGameDialog(view,this); ...
diff --git a/src/org/omegat/gui/editor/mark/EntryMarks.java b/src/org/omegat/gui/editor/mark/EntryMarks.java index d76cd000..67dab20b 100644 --- a/src/org/omegat/gui/editor/mark/EntryMarks.java +++ b/src/org/omegat/gui/editor/mark/EntryMarks.java @@ -1,53 +1,53 @@ /*****************************************************...
true
true
public EntryMarks(int entryIndex, SegmentBuilder builder, long entryVersion) { this.entryIndex = entryIndex; this.builder = builder; this.entryVersion = entryVersion; this.isActive = builder.isActive(); this.sourceText = builder.getSourceText(); this.translationText =...
public EntryMarks(int entryIndex, SegmentBuilder builder, long entryVersion) { this.entryIndex = entryIndex; this.builder = builder; this.entryVersion = entryVersion; this.isActive = builder.isActive(); this.sourceText = builder.getSourceTextEntry().getSrcText(); this...
diff --git a/src/com/minecarts/barrenschat/command/CommandUnignore.java b/src/com/minecarts/barrenschat/command/CommandUnignore.java index d14b60b..716feaa 100644 --- a/src/com/minecarts/barrenschat/command/CommandUnignore.java +++ b/src/com/minecarts/barrenschat/command/CommandUnignore.java @@ -1,45 +1,45 @@ package ...
true
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if(sender instanceof Player){ Player player = (Player) sender; List<String> ignoreList = plugin.dbHelper.getIgnoreList(player); List<Player> ignoreMatches = server.matchPlayer(a...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if(sender instanceof Player){ Player player = (Player) sender; List<String> ignoreList = plugin.dbHelper.getIgnoreList(player); List<Player> ignoreMatches = server.matchPlayer(a...
diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWTNativeLibLoader.java b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWTNativeLibLoader.java index f0f2ac8c3..bc963277a 100644 --- a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWTNativeLibLoader.java +++ b/src/nativewindow...
true
true
public static void loadAWTImpl() { AccessController.doPrivileged(new PrivilegedAction() { public Object run() { // Make sure that awt.dll is loaded before loading jawt.dll. Otherwise // a Dialog with "awt.dll not found" might pop up. // See http://bugs.sun.com/bugdatabase/view_bug.do...
public static void loadAWTImpl() { AccessController.doPrivileged(new PrivilegedAction() { public Object run() { // Make sure that awt.dll is loaded before loading jawt.dll. Otherwise // a Dialog with "awt.dll not found" might pop up. // See http://bugs.sun.com/bugdatabase/view_bug.do...
diff --git a/c-rules/src/test/java/org/sonar/c/checks/SwitchStatementWithoutDefaultCheckTest.java b/c-rules/src/test/java/org/sonar/c/checks/SwitchStatementWithoutDefaultCheckTest.java index f35aa22f4..13a37952c 100644 --- a/c-rules/src/test/java/org/sonar/c/checks/SwitchStatementWithoutDefaultCheckTest.java +++ b/c-ru...
true
true
public void testCheck() { CheckMessage message = CheckUtils.extractViolation("/checks/switchStatementWithoutDefault.c", new SwitchStatementWithoutDefaultCheck()); assertThat(message.getLine(), is(5)); assertThat(message.formatDefaultMessage(), containsString("Avoid swith statement without a \"default\" c...
public void testCheck() { CheckMessage message = CheckUtils.extractViolation("/checks/switchStatementWithoutDefault.c", new SwitchStatementWithoutDefaultCheck()); assertThat(message.getLine(), is(5)); assertThat(message.formatDefaultMessage(), containsString("Avoid switch statement without a \"default\" ...
diff --git a/host/mover/src/dk/osaa/psaw/core/Line.java b/host/mover/src/dk/osaa/psaw/core/Line.java index 85d7921..445b16f 100644 --- a/host/mover/src/dk/osaa/psaw/core/Line.java +++ b/host/mover/src/dk/osaa/psaw/core/Line.java @@ -1,740 +1,740 @@ package dk.osaa.psaw.core; import java.io.BufferedWriter; import j...
true
true
Move endcodeMove(MoveVector mmMoveVector, double startSpeedMMS, double endSpeedMMS) { if (startSpeedMMS < 0) { throw new RuntimeException("start speed cannot be negative"); } if (endSpeedMMS < 0) { throw new RuntimeException("end speed cannot be negative"); } //logLine(mmMoveVector+"\t"+startSpeed...
Move endcodeMove(MoveVector mmMoveVector, double startSpeedMMS, double endSpeedMMS) { if (startSpeedMMS < 0) { throw new RuntimeException("start speed cannot be negative"); } if (endSpeedMMS < 0) { throw new RuntimeException("end speed cannot be negative"); } //logLine(mmMoveVector+"\t"+startSpeed...
diff --git a/modules/jersey/src/main/java/org/atmosphere/jersey/util/JerseyBroadcasterUtil.java b/modules/jersey/src/main/java/org/atmosphere/jersey/util/JerseyBroadcasterUtil.java index 790a0d87e..4525306fc 100644 --- a/modules/jersey/src/main/java/org/atmosphere/jersey/util/JerseyBroadcasterUtil.java +++ b/modules/je...
false
true
public final static void broadcast(final AtmosphereResource r, final AtmosphereResourceEvent e, final Broadcaster broadcaster) { AtmosphereRequest request = r.getRequest(); ContainerResponse cr = null; // Make sure only one thread can play with the ContainerResponse. Threading issue can ari...
public final static void broadcast(final AtmosphereResource r, final AtmosphereResourceEvent e, final Broadcaster broadcaster) { AtmosphereRequest request = r.getRequest(); ContainerResponse cr = null; // Make sure only one thread can play with the ContainerResponse. Threading issue can ari...
diff --git a/src/main/java/com/laytonsmith/core/functions/BasicLogic.java b/src/main/java/com/laytonsmith/core/functions/BasicLogic.java index 6c8f6117..83dae84e 100644 --- a/src/main/java/com/laytonsmith/core/functions/BasicLogic.java +++ b/src/main/java/com/laytonsmith/core/functions/BasicLogic.java @@ -1,2178 +1,217...
true
true
public ParseTree optimizeDynamic(Target t, List<ParseTree> children) throws ConfigCompileException, ConfigRuntimeException { FileOptions options = new FileOptions(new HashMap<String, String>()); if (!children.isEmpty()) { options = children.get(0).getFileOptions(); } ParseTree node = new ParseTree(ne...
public ParseTree optimizeDynamic(Target t, List<ParseTree> children) throws ConfigCompileException, ConfigRuntimeException { FileOptions options = new FileOptions(new HashMap<String, String>()); if (!children.isEmpty()) { options = children.get(0).getFileOptions(); } ParseTree node = new ParseTree(ne...
diff --git a/src/main/java/fr/jamgotchian/jabat/cdi/JabatCdiArtifactFactory.java b/src/main/java/fr/jamgotchian/jabat/cdi/JabatCdiArtifactFactory.java index 77dab11..80fa0eb 100644 --- a/src/main/java/fr/jamgotchian/jabat/cdi/JabatCdiArtifactFactory.java +++ b/src/main/java/fr/jamgotchian/jabat/cdi/JabatCdiArtifactFact...
true
true
public Object create(String ref) throws Exception { Set<Bean<?>> beans = JabatCdiExtension.BEAN_MANAGER.getBeans(ref); if (beans.isEmpty()) { throw new JabatException("Batch artifact " + ref + " not found"); } return beans.iterator().next().create(null); }
public Object create(String ref) throws Exception { Set<Bean<?>> beans = JabatCdiExtension.BEAN_MANAGER.getBeans(ref); if (beans.isEmpty()) { throw new JabatException("Batch artifact '" + ref + "' not found"); } return beans.iterator().next().create(null); }
diff --git a/DroidPlanner/src/com/droidplanner/widgets/HUD/HUDwidget.java b/DroidPlanner/src/com/droidplanner/widgets/HUD/HUDwidget.java index 5490b46d..a8b6e094 100644 --- a/DroidPlanner/src/com/droidplanner/widgets/HUD/HUDwidget.java +++ b/DroidPlanner/src/com/droidplanner/widgets/HUD/HUDwidget.java @@ -1,558 +1,558 ...
false
true
private void drawRightScroller(Canvas canvas) { final float textHalfSize = ScrollerText.getTextSize() / 2 - 1; // Outside box RectF scroller = new RectF(width * 0.5f - SCROLLER_WIDTH, -height * SCROLLER_HEIGHT_PERCENT, width * .50f, height * SCROLLER_HEIGHT_PERCENT); // Draw Vertical speed indicator ...
private void drawRightScroller(Canvas canvas) { final float textHalfSize = ScrollerText.getTextSize() / 2 - 1; // Outside box RectF scroller = new RectF(width * 0.5f - SCROLLER_WIDTH, -height * SCROLLER_HEIGHT_PERCENT, width * .50f, height * SCROLLER_HEIGHT_PERCENT); // Draw Vertical speed indicator ...
diff --git a/src/org/opensaml/xml/security/criteria/KeyNameCriteria.java b/src/org/opensaml/xml/security/criteria/KeyNameCriteria.java index d0ab0d9..0bd9ad3 100644 --- a/src/org/opensaml/xml/security/criteria/KeyNameCriteria.java +++ b/src/org/opensaml/xml/security/criteria/KeyNameCriteria.java @@ -1,60 +1,60 @@ /* ...
true
true
public void setKeyName(String name) { if (DatatypeHelper.isEmpty(name)) { throw new IllegalArgumentException("Key name criteria value must be supplied"); } keyName = DatatypeHelper.safeTrimOrNullString(keyName); }
public void setKeyName(String name) { if (DatatypeHelper.isEmpty(name)) { throw new IllegalArgumentException("Key name criteria value must be supplied"); } keyName = DatatypeHelper.safeTrimOrNullString(name); }
diff --git a/src/com/KoryuObihiro/bukkit/ModDamage/Backend/Matching/DynamicIntegers/DynamicCalculatedInteger.java b/src/com/KoryuObihiro/bukkit/ModDamage/Backend/Matching/DynamicIntegers/DynamicCalculatedInteger.java index b9afa9e..23cb7a7 100644 --- a/src/com/KoryuObihiro/bukkit/ModDamage/Backend/Matching/DynamicInteg...
false
true
public static void register() { final Pattern endPattern = Pattern.compile("\\s*\\)"); DynamicInteger.register( Pattern.compile("\\("), new DynamicIntegerBuilder() { @Override public DIResult getNewFromFront(Matcher m, String rest) { DIResult leftDir = DynamicInteger.getIntegerFro...
public static void register() { final Pattern endPattern = Pattern.compile("\\s*\\)"); DynamicInteger.register( Pattern.compile("\\("), new DynamicIntegerBuilder() { @Override public DIResult getNewFromFront(Matcher m, String rest) { DIResult leftDir = DynamicInteger.getIntegerFro...
diff --git a/src/view/Latex.java b/src/view/Latex.java index 6497932..7535354 100644 --- a/src/view/Latex.java +++ b/src/view/Latex.java @@ -1,71 +1,71 @@ package view; import java.awt.Insets; import org.scilab.forge.jlatexmath.*; public class Latex { public static boolean isLatex(String string){ try{ ...
true
true
public static String escape(String string) { // "#"=>"\\#", // "$"=>"\\$", // "%"=>"\\%", // "&"=>"\\&", // "~"=>"\\~{}", // "_"=>"\\_", // "^"=>"\\^{}", // "\\"=>"\\textbackslash", // "{"=>"\\{", // "}"=>"\\}", string = string.replaceAll("\\\\(?!...
public static String escape(String string) { // "#"=>"\\#", // "$"=>"\\$", // "%"=>"\\%", // "&"=>"\\&", // "~"=>"\\~{}", // "_"=>"\\_", // "^"=>"\\^{}", // "\\"=>"\\textbackslash", // "{"=>"\\{", // "}"=>"\\}", string = string.replaceAll("\\\\(?!...
diff --git a/mpicbg/models/RigidModel3D.java b/mpicbg/models/RigidModel3D.java index 8e9b64f..4f12f42 100644 --- a/mpicbg/models/RigidModel3D.java +++ b/mpicbg/models/RigidModel3D.java @@ -1,602 +1,602 @@ package mpicbg.models; /** * License: GPL * * This program is free software; you can redistribute it and/or...
false
true
final public <P extends PointMatch> void fit( final Collection< P > matches ) throws NotEnoughDataPointsException, IllDefinedDataPointsException { if ( matches.size() < MIN_NUM_MATCHES ) throw new NotEnoughDataPointsException( matches.size() + " data points are not enough to estimate a 3d rigid transforma...
final public <P extends PointMatch> void fit( final Collection< P > matches ) throws NotEnoughDataPointsException, IllDefinedDataPointsException { if ( matches.size() < MIN_NUM_MATCHES ) throw new NotEnoughDataPointsException( matches.size() + " data points are not enough to estimate a 3d rigid transforma...
diff --git a/srcj/com/sun/electric/tool/user/CircuitChangeJobs.java b/srcj/com/sun/electric/tool/user/CircuitChangeJobs.java index 0286337db..468faa230 100644 --- a/srcj/com/sun/electric/tool/user/CircuitChangeJobs.java +++ b/srcj/com/sun/electric/tool/user/CircuitChangeJobs.java @@ -1,3499 +1,3499 @@ /* -*- tab-width...
false
true
public boolean doIt() throws JobException { // get information about what is highlighted if (highlightedObjs.size() + highlightedText.size() == 0) return false; // make sure moving is allowed if (cantEdit(cell, null, true, false, true) != 0) return false; // special case if moving only one node ...
public boolean doIt() throws JobException { // get information about what is highlighted if (highlightedObjs.size() + highlightedText.size() == 0) return false; // make sure moving is allowed if (cantEdit(cell, null, true, false, true) != 0) return false; // special case if moving only one node ...
diff --git a/src/org/openstreetmap/josm/plugins/mbtiles/MbtilesLayer.java b/src/org/openstreetmap/josm/plugins/mbtiles/MbtilesLayer.java index 3c40edb..675b66e 100644 --- a/src/org/openstreetmap/josm/plugins/mbtiles/MbtilesLayer.java +++ b/src/org/openstreetmap/josm/plugins/mbtiles/MbtilesLayer.java @@ -1,129 +1,133 @@...
true
true
private static ImageryInfo buildImageryInfo(File mbtilesFile) throws MbtilesException { try { Class.forName("org.sqlite.JDBC"); } catch (ClassNotFoundException e1) { throw new MbtilesException("Could not load sqlite driver.", e1); } Connection connection = n...
private static ImageryInfo buildImageryInfo(File mbtilesFile) throws MbtilesException { try { Class.forName("org.sqlite.JDBC"); } catch (ClassNotFoundException e1) { throw new MbtilesException("Could not load sqlite driver.", e1); } Connection connection = n...
diff --git a/src/mypackage/Gardenshift.java b/src/mypackage/Gardenshift.java index 979adf5..00606a4 100644 --- a/src/mypackage/Gardenshift.java +++ b/src/mypackage/Gardenshift.java @@ -1,1754 +1,1754 @@ /* * Gardenshift Webservices with Resteasy for Jboss * * * Author Comment Modified * ...
false
true
public Response adduser(@FormParam("username") String userID, @FormParam("password") String password, @FormParam("email") String emailAdd) { /* * Adds a new username to the database. */ Boolean userExists = false; // See if username already exists Boolean emailExists = false; // See if email alread...
public Response adduser(@FormParam("username") String userID, @FormParam("password") String password, @FormParam("email") String emailAdd) { /* * Adds a new username to the database. */ Boolean userExists = false; // See if username already exists Boolean emailExists = false; // See if email alread...
diff --git a/org.kevoree.modeling.kotlin.generator.mavenplugin/src/main/java/org/kevoree/modeling/kotlin/generator/mavenplugin/GenModelPlugin.java b/org.kevoree.modeling.kotlin.generator.mavenplugin/src/main/java/org/kevoree/modeling/kotlin/generator/mavenplugin/GenModelPlugin.java index b15a7618..a0606853 100644 --- a...
true
true
public void execute() throws MojoExecutionException { if (clearOutput) { deleteDirectory(output); } if (trace && !json) { json = true; // trace need JSON } if (js && !json) { json = true; // JS need JSON by default for Java extension ...
public void execute() throws MojoExecutionException { if (clearOutput) { deleteDirectory(output); } if (trace && !json) { json = true; // trace need JSON } if (js && !json) { json = true; // JS need JSON by default for Java extension ...
diff --git a/src/no/runsafe/runsafeinventories/commands/SwitchInventory.java b/src/no/runsafe/runsafeinventories/commands/SwitchInventory.java index fc9fa18..409fe76 100644 --- a/src/no/runsafe/runsafeinventories/commands/SwitchInventory.java +++ b/src/no/runsafe/runsafeinventories/commands/SwitchInventory.java @@ -1,5...
true
true
public String OnExecute(RunsafePlayer executor, HashMap<String, String> parameters) { RunsafePlayer source = RunsafeServer.Instance.getPlayer(parameters.get("source")); RunsafePlayer target = RunsafeServer.Instance.getPlayer(parameters.get("target")); if (source == null) return "&cCould not find the source ...
public String OnExecute(RunsafePlayer executor, HashMap<String, String> parameters) { RunsafePlayer source = RunsafeServer.Instance.getPlayer(parameters.get("source")); RunsafePlayer target = RunsafeServer.Instance.getPlayer(parameters.get("target")); if (source == null) return "&cCould not find the source ...
diff --git a/hazelcast-client/src/main/java/com/hazelcast/client/MapClientProxy.java b/hazelcast-client/src/main/java/com/hazelcast/client/MapClientProxy.java index 11bf07ad..2ef05c52 100644 --- a/hazelcast-client/src/main/java/com/hazelcast/client/MapClientProxy.java +++ b/hazelcast-client/src/main/java/com/hazelcast/...
true
true
public Map<K, V> getAll(Set<K> setKeys) { check(setKeys); Keys keys = new Keys(); for (K key : setKeys) { keys.add(toData(key)); } Pairs pairs = (Pairs) proxyHelper.doOp(ClusterOperation.CONCURRENT_MAP_GET_ALL, keys, null); List<KeyValue> lsKeyValues = pai...
public Map<K, V> getAll(Set<K> setKeys) { check(setKeys); Keys keys = new Keys(); for (K key : setKeys) { keys.add(toData(key)); } Pairs pairs = (Pairs) proxyHelper.doOp(ClusterOperation.CONCURRENT_MAP_GET_ALL, keys, null); List<KeyValue> lsKeyValues = pai...
diff --git a/src/butterseal/src/edu/smcm/gamedev/butterseal/BSPlayer.java b/src/butterseal/src/edu/smcm/gamedev/butterseal/BSPlayer.java index 627a2b1..3db7a7d 100644 --- a/src/butterseal/src/edu/smcm/gamedev/butterseal/BSPlayer.java +++ b/src/butterseal/src/edu/smcm/gamedev/butterseal/BSPlayer.java @@ -1,343 +1,342 @@...
true
true
public void move(BSDirection direction) { if(direction == null) { return; } this.state.facing = direction; this.state.hasbeentouching = false; changeSprite(state.facing); if(!canMove(this.state.facing) && direction == state.facing) { return; ...
public void move(BSDirection direction) { if(direction == null) { return; } this.state.facing = direction; this.state.hasbeentouching = false; changeSprite(state.facing); if(!canMove(this.state.facing) && direction == state.facing) { return; ...
diff --git a/src/main/java/net/canarymod/api/CanaryNetServerHandler.java b/src/main/java/net/canarymod/api/CanaryNetServerHandler.java index 6af2b10..cac28fc 100644 --- a/src/main/java/net/canarymod/api/CanaryNetServerHandler.java +++ b/src/main/java/net/canarymod/api/CanaryNetServerHandler.java @@ -1,78 +1,78 @@ pack...
true
true
public void sendMessage(String msg) { if (msg.length() >= 119) { String cutMsg = msg.substring(0, 118); int finalCut = cutMsg.lastIndexOf(" "); if (finalCut == -1) { finalCut = 118; } String subCut = cutMsg.substring(0, finalCut); ...
public void sendMessage(String msg) { if (msg.length() >= 119) { String cutMsg = msg.substring(0, 118); int finalCut = cutMsg.lastIndexOf(" "); if (finalCut == -1) { finalCut = 118; } String subCut = cutMsg.substring(0, finalCut); ...
diff --git a/jguard-ext/src/test/java/net/sf/jguard/ext/authentication/loginmodules/XmlLoginModuleTest.java b/jguard-ext/src/test/java/net/sf/jguard/ext/authentication/loginmodules/XmlLoginModuleTest.java index 666c6bf..75e22c8 100644 --- a/jguard-ext/src/test/java/net/sf/jguard/ext/authentication/loginmodules/XmlLogin...
true
true
public void setUp() { module = new XmlLoginModule(); subject = new Subject(); handler = new CallbackHandler() { public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException { for (Callback callback : callbacks) { i...
public void setUp() { module = new XmlLoginModule(); subject = new Subject(); handler = new CallbackHandler() { public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException { for (Callback callback : callbacks) { i...
diff --git a/svnkit/src/org/tmatesoft/svn/core/internal/io/dav/handlers/DAVLocationSegmentsHandler.java b/svnkit/src/org/tmatesoft/svn/core/internal/io/dav/handlers/DAVLocationSegmentsHandler.java index e7425c029..c6710b108 100644 --- a/svnkit/src/org/tmatesoft/svn/core/internal/io/dav/handlers/DAVLocationSegmentsHandl...
true
true
protected void startElement(DAVElement parent, DAVElement element, Attributes attrs) throws SVNException { if (parent == LOCATION_SEGMENTS_REPORT && element == LOCATION_SEGMENT) { long rangeStart = SVNRepository.INVALID_REVISION; long rangeEnd = SVNRepository.INVALID_REVISION; ...
protected void startElement(DAVElement parent, DAVElement element, Attributes attrs) throws SVNException { if (parent == LOCATION_SEGMENTS_REPORT && element == LOCATION_SEGMENT) { long rangeStart = SVNRepository.INVALID_REVISION; long rangeEnd = SVNRepository.INVALID_REVISION; ...
diff --git a/src/org/openjump/core/ui/plugin/tools/MultiRingBufferSelectedPlugIn.java b/src/org/openjump/core/ui/plugin/tools/MultiRingBufferSelectedPlugIn.java index 83468659..b7b28397 100644 --- a/src/org/openjump/core/ui/plugin/tools/MultiRingBufferSelectedPlugIn.java +++ b/src/org/openjump/core/ui/plugin/tools/Mult...
true
true
public void run(TaskMonitor monitor, PlugInContext context) throws Exception { FeatureSchema featureSchema = new FeatureSchema(); featureSchema.addAttribute("GEOMETRY", AttributeType.GEOMETRY); if (! DISTANCEATTRIBUTE.equalsIgnoreCase(attributeName)) featureSchema.addAttribute(DISTANCEATTRIBUTE, ...
public void run(TaskMonitor monitor, PlugInContext context) throws Exception { FeatureSchema featureSchema = new FeatureSchema(); featureSchema.addAttribute("GEOMETRY", AttributeType.GEOMETRY); if (! DISTANCEATTRIBUTE.equalsIgnoreCase(attributeName)) featureSchema.addAttribute(DISTANCEATTRIBUTE, ...
diff --git a/src/org/exist/xquery/ElementConstructor.java b/src/org/exist/xquery/ElementConstructor.java index 362f7d7..fcb1eb9 100644 --- a/src/org/exist/xquery/ElementConstructor.java +++ b/src/org/exist/xquery/ElementConstructor.java @@ -1,375 +1,379 @@ /* * eXist Native XML Database * Copyright (C) 2001-06...
true
true
public Sequence eval( Sequence contextSequence, Item contextItem) throws XPathException { context.expressionStart(this); context.pushInScopeNamespaces(); if (newDocumentContext) context.pushDocumentContext(); try { MemTreeBuilder builder = context.getDocumentBuil...
public Sequence eval( Sequence contextSequence, Item contextItem) throws XPathException { context.expressionStart(this); context.pushInScopeNamespaces(); if (newDocumentContext) context.pushDocumentContext(); try { MemTreeBuilder builder = context.getDocumentBuil...
diff --git a/tests/org.eclipse.birt.report.engine.emitter.html.tests/test/org/eclipse/birt/report/engine/emitter/html/StyleTest.java b/tests/org.eclipse.birt.report.engine.emitter.html.tests/test/org/eclipse/birt/report/engine/emitter/html/StyleTest.java index c406da36b..781654963 100644 --- a/tests/org.eclipse.birt.re...
true
true
public void testCSSStyleClass( ) throws EngineException, IOException { HTMLRenderOption options = new HTMLRenderOption( ); options.setEmbeddable( true ); options.setEnableInlineStyle( false ); ByteArrayOutputStream output = new ByteArrayOutputStream( ); List instanceIDs = new ArrayList( ); options.setI...
public void testCSSStyleClass( ) throws EngineException, IOException { HTMLRenderOption options = new HTMLRenderOption( ); options.setEmbeddable( true ); options.setEnableInlineStyle( false ); ByteArrayOutputStream output = new ByteArrayOutputStream( ); List instanceIDs = new ArrayList( ); options.setI...
diff --git a/XeNPC/src/me/supermaxman/xenpc/listeners/XeNPCListener.java b/XeNPC/src/me/supermaxman/xenpc/listeners/XeNPCListener.java index 036460f..68fd49b 100644 --- a/XeNPC/src/me/supermaxman/xenpc/listeners/XeNPCListener.java +++ b/XeNPC/src/me/supermaxman/xenpc/listeners/XeNPCListener.java @@ -1,56 +1,56 @@ pack...
false
true
public void onPlayerInteractEntity(PlayerInteractEntityEvent event) { net.minecraft.server.Entity mcEntity = ((CraftEntity) event.getRightClicked()).getHandle(); if (mcEntity instanceof XeNPCBase) { XeNPCHuman npc = ((XeNPCBase) mcEntity).getNPC(); Player p = event.getPlayer...
public void onPlayerInteractEntity(PlayerInteractEntityEvent event) { net.minecraft.server.Entity mcEntity = ((CraftEntity) event.getRightClicked()).getHandle(); if (mcEntity instanceof XeNPCBase) { XeNPCHuman npc = ((XeNPCBase) mcEntity).getNPC(); Player p = event.getPlayer...
diff --git a/src/main/java/org/cloudsmith/jenkins/stackhammer/deployment/DeploymentResult.java b/src/main/java/org/cloudsmith/jenkins/stackhammer/deployment/DeploymentResult.java index 532a8b1..33de466 100644 --- a/src/main/java/org/cloudsmith/jenkins/stackhammer/deployment/DeploymentResult.java +++ b/src/main/java/org...
false
true
public String getSummary() { int hostsWithErrors = 0; int hostsWithWarnings = 0; List<HostEntry> hosts = getHostEntries(); int hostCount = hosts.size(); if(hostCount == 0) return "No hosts deployed"; for(int idx = 0; idx < hostCount; ++idx) { boolean hasErrors = false; boolean hasWarnings = false...
public String getSummary() { int hostsWithErrors = 0; int hostsWithWarnings = 0; List<HostEntry> hosts = getHostEntries(); int hostCount = hosts.size(); if(hostCount == 0) return "No hosts deployed"; for(int idx = 0; idx < hostCount; ++idx) { boolean hasErrors = false; boolean hasWarnings = false...
diff --git a/java/gadin/trunk/gadin.actions.test/src/acceptance/TwoParameters.java b/java/gadin/trunk/gadin.actions.test/src/acceptance/TwoParameters.java index cf1fdab..4b126ea 100644 --- a/java/gadin/trunk/gadin.actions.test/src/acceptance/TwoParameters.java +++ b/java/gadin/trunk/gadin.actions.test/src/acceptance/Tw...
true
true
public static void setup() throws Exception { acceptanceTest("like" + '\n' + " involves" + '\n' + " c - Character" + '\n' + " d - Character" + '\n' + " then " + '\n' + " " + ...
public static void setup() throws Exception { acceptanceTest("like" + '\n' + " involves" + '\n' + " c - Character" + '\n' + " d - Character" + '\n' + " then " + '\n' + " c lik...
diff --git a/src/org/bouncycastle/crypto/generators/ElGamalKeyPairGenerator.java b/src/org/bouncycastle/crypto/generators/ElGamalKeyPairGenerator.java index 2dda7d58..4f7b0a8d 100644 --- a/src/org/bouncycastle/crypto/generators/ElGamalKeyPairGenerator.java +++ b/src/org/bouncycastle/crypto/generators/ElGamalKeyPairGene...
true
true
public AsymmetricCipherKeyPair generateKeyPair() { DHKeyGeneratorHelper helper = DHKeyGeneratorHelper.INSTANCE; ElGamalParameters egp = param.getParameters(); DHParameters dhp = new DHParameters(egp.getP(), egp.getG(), null, 0, egp.getL()); BigInteger x = helper.calculatePrivate(dhp...
public AsymmetricCipherKeyPair generateKeyPair() { DHKeyGeneratorHelper helper = DHKeyGeneratorHelper.INSTANCE; ElGamalParameters egp = param.getParameters(); DHParameters dhp = new DHParameters(egp.getP(), egp.getG(), null, egp.getL()); BigInteger x = helper.calculatePrivate(dhp, p...
diff --git a/src/main/java/fcatools/conexpng/gui/lattice/LatticeViewInteractions.java b/src/main/java/fcatools/conexpng/gui/lattice/LatticeViewInteractions.java index 3433a9e..25ebc4f 100644 --- a/src/main/java/fcatools/conexpng/gui/lattice/LatticeViewInteractions.java +++ b/src/main/java/fcatools/conexpng/gui/lattice/...
true
true
public void mousePressed(final MouseEvent e) { final LatticeGraphView view = (LatticeGraphView) e.getSource(); // zoom if ctrl is pressed if (e.isControlDown()) { // timer used to fire the event as long as the mouse button is // pressed timer = new Timer(0...
public void mousePressed(final MouseEvent e) { final LatticeGraphView view = (LatticeGraphView) e.getSource(); // zoom if ctrl is pressed if (e.isControlDown()) { // timer used to fire the event as long as the mouse button is // pressed timer = new Timer(0...
diff --git a/audiobox.fm-sync/src/main/java/fm/audiobox/sync/task/Scan.java b/audiobox.fm-sync/src/main/java/fm/audiobox/sync/task/Scan.java index e883ec8..0542171 100644 --- a/audiobox.fm-sync/src/main/java/fm/audiobox/sync/task/Scan.java +++ b/audiobox.fm-sync/src/main/java/fm/audiobox/sync/task/Scan.java @@ -1,110 +...
true
true
private void _startScan( File folder ){ File[] files = folder.listFiles( new FileFilter() { @Override public boolean accept(File pathname) { if ( ! pathname.canRead() ) return false; if ( pathname.isHidden() && ! _hidden ) return fal...
private void _startScan( File folder ){ File[] files = folder.listFiles( new FileFilter() { @Override public boolean accept(File pathname) { if ( ! pathname.canRead() ) return false; if ( pathname.isHidden() && ! _hidden ) return fal...
diff --git a/src/edu/umass/ciir/models/JS_KLDivergenceSimilarity.java b/src/edu/umass/ciir/models/JS_KLDivergenceSimilarity.java index 9f8772f..32a5f8e 100644 --- a/src/edu/umass/ciir/models/JS_KLDivergenceSimilarity.java +++ b/src/edu/umass/ciir/models/JS_KLDivergenceSimilarity.java @@ -1,64 +1,63 @@ package edu.umas...
true
true
public double calculateCorePart(LanguageModel lm1, LanguageModel lm2, boolean useProbabilities) { double p1, p2, p_both; Collection<TermEntry> vocab1 = lm1.getVocabulary(); Collection<TermEntry> vocab2 = lm2.getVocabulary(); double total1 = (double) lm1.getCollectionFrequency(); double t...
public double calculateCorePart(LanguageModel lm1, LanguageModel lm2, boolean useProbabilities) { double p1, p2, p_both; Collection<TermEntry> vocab1 = lm1.getVocabulary(); double total1 = (double) lm1.getCollectionFrequency(); double total2 = (double) lm2.getCollectionFrequency(); ...
diff --git a/java/net.sf.lapg/src/net/sf/lapg/gen/AbstractGenerator.java b/java/net.sf.lapg/src/net/sf/lapg/gen/AbstractGenerator.java index 37a82bf6..7e8f50e4 100644 --- a/java/net.sf.lapg/src/net/sf/lapg/gen/AbstractGenerator.java +++ b/java/net.sf.lapg/src/net/sf/lapg/gen/AbstractGenerator.java @@ -1,155 +1,155 @@ ...
true
true
public boolean compileGrammar() { INotifier notifier = createNotifier(); try { InputStream is = openInput(notifier); if (is == null) { return false; } Grammar s = SyntaxUtil.parseSyntax(options.getInput(), is, notifier, getDefaultOptions()); if (s == null || s.hasErrors()) { return false; ...
public boolean compileGrammar() { INotifier notifier = createNotifier(); try { InputStream is = openInput(notifier); if (is == null) { return false; } Grammar s = SyntaxUtil.parseSyntax(options.getInput(), is, notifier, getDefaultOptions()); if (s == null || s.hasErrors()) { return false; ...
diff --git a/src/main/java/edu/umd/cs/linqs/action/ClosenessFunction.java b/src/main/java/edu/umd/cs/linqs/action/ClosenessFunction.java index bffc663..40caef3 100644 --- a/src/main/java/edu/umd/cs/linqs/action/ClosenessFunction.java +++ b/src/main/java/edu/umd/cs/linqs/action/ClosenessFunction.java @@ -1,91 +1,91 @@ ...
true
true
public double getValue(ReadOnlyDatabase db, GroundTerm... args) { /* Get args */ int x1 = ((IntegerAttribute) args[0]).getValue().intValue(); int x2 = ((IntegerAttribute) args[1]).getValue().intValue(); int y1 = ((IntegerAttribute) args[2]).getValue().intValue(); int y2 = ((IntegerAttribute) args[3]).getValu...
public double getValue(ReadOnlyDatabase db, GroundTerm... args) { /* Get args */ int x1 = ((IntegerAttribute) args[0]).getValue().intValue(); int x2 = ((IntegerAttribute) args[1]).getValue().intValue(); int y1 = ((IntegerAttribute) args[2]).getValue().intValue(); int y2 = ((IntegerAttribute) args[3]).getValu...
diff --git a/omod/src/main/java/org/openmrs/module/muzimaconsultation/web/controller/NotificationFormController.java b/omod/src/main/java/org/openmrs/module/muzimaconsultation/web/controller/NotificationFormController.java index f591dd8..e7e3f23 100644 --- a/omod/src/main/java/org/openmrs/module/muzimaconsultation/web/...
true
true
public void save(final @RequestBody Map<String, Object> request) throws IOException { String recipientUuid = request.get("recipient").toString(); String subject = request.get("subject").toString(); String payload = request.get("payload").toString(); DataService service = Context.get...
public void save(final @RequestBody Map<String, Object> request) throws IOException { String recipientUuid = request.get("recipient").toString(); String subject = String.valueOf(request.get("subject")); String payload = String.valueOf(request.get("payload")); DataService service = C...
diff --git a/bindings/java/cusp/src/net/bubblestorm/jni/CUSPJni.java b/bindings/java/cusp/src/net/bubblestorm/jni/CUSPJni.java index cc3b43d..9646c08 100644 --- a/bindings/java/cusp/src/net/bubblestorm/jni/CUSPJni.java +++ b/bindings/java/cusp/src/net/bubblestorm/jni/CUSPJni.java @@ -1,171 +1,176 @@ /* This file is ...
true
true
public static void init() { if (!initialized) { // load native CUSP library System.loadLibrary("cuspjni"); // init super class BSJniBase.init(); // initialized = true; } }
public static void init() { if (!initialized) { // load native SQLite and CUSP libraries // (cuspjni depends on them, but the OS may not find it if it's not in // the search path) System.loadLibrary("sqlite3"); System.loadLibrary("cusp"); // load native CUSP library System.loadLibrary("cuspjni")...
diff --git a/Badass/src/FirstLevel.java b/Badass/src/FirstLevel.java index 49abe86..a1d71fb 100755 --- a/Badass/src/FirstLevel.java +++ b/Badass/src/FirstLevel.java @@ -1,100 +1,100 @@ import java.awt.AlphaComposite; import java.awt.Color; import java.awt.Graphics2D; import java.awt.Image; import java.awt.image.Bu...
false
true
public FirstLevel(Window w) { HEIGHT = w.getHeight(); WIDTH = w.getWidth(); setColor(color); ArrayList<Element> walls = new ArrayList<Element>(); walls.add(new Element(10, HEIGHT-60, 400, 20, Color.blue, "Floor", false)); walls.add(new Element(400, HEIGHT-150, 700, 20, Color.blue, "Floor", false)); ...
public FirstLevel(Window w) { HEIGHT = w.getHeight(); WIDTH = w.getWidth(); setColor(color); ArrayList<Element> walls = new ArrayList<Element>(); walls.add(new Element(10, HEIGHT-60, 400, 20, Color.blue, "Floor", false)); walls.add(new Element(400, HEIGHT-150, 700, 20, Color.blue, "Floor", false)); ...
diff --git a/src/com/swabunga/util/VectorUtility.java b/src/com/swabunga/util/VectorUtility.java index a0fec35..af6614f 100644 --- a/src/com/swabunga/util/VectorUtility.java +++ b/src/com/swabunga/util/VectorUtility.java @@ -1,19 +1,19 @@ package com.swabunga.util; import java.util.Iterator; import java.util.List;...
true
true
public static List addAll(List dest, List src, boolean allow_duplicates) { for (Iterator e = src.iterator(); e.hasNext();) { Object o = e.next(); if (!allow_duplicates && !dest.contains(o)) dest.add(o); } return dest; }
public static List addAll(List dest, List src, boolean allow_duplicates) { for (Iterator e = src.iterator(); e.hasNext();) { Object o = e.next(); if (allow_duplicates || !dest.contains(o)) dest.add(o); } return dest; }
diff --git a/src/main/java/fr/dutra/confluence2wordpress/core/converter/visitors/TagStripperBase.java b/src/main/java/fr/dutra/confluence2wordpress/core/converter/visitors/TagStripperBase.java index d53f814..310cf00 100755 --- a/src/main/java/fr/dutra/confluence2wordpress/core/converter/visitors/TagStripperBase.java ++...
false
true
protected void stripTag(TagNode parentNode, TagNode tag) { if(tag.hasChildren()) { @SuppressWarnings("unchecked") List<HtmlNode> children = tag.getChildren(); for (HtmlNode child : children) { parentNode.insertChildAfter(tag, child); } } parentNode.removeChild(tag); }
protected void stripTag(TagNode parentNode, TagNode tag) { if(tag.hasChildren()) { @SuppressWarnings("unchecked") List<HtmlNode> children = tag.getChildren(); HtmlNode afterThis = tag; for (HtmlNode child : children) { parentNode.insertChildAfter(afterThis, child); afterThis = child; } ...
diff --git a/maven/api/src/main/java/org/jboss/forge/addon/maven/environment/Network.java b/maven/api/src/main/java/org/jboss/forge/addon/maven/environment/Network.java index 6ad50c362..dad9df867 100644 --- a/maven/api/src/main/java/org/jboss/forge/addon/maven/environment/Network.java +++ b/maven/api/src/main/java/org/...
true
true
public static boolean isOffline(Environment environment) { return environment.get(Network.class).containsKey(OFFLINE) == false; }
public static boolean isOffline(Environment environment) { return environment.get(Network.class).containsKey(OFFLINE); }
diff --git a/src/main/java/org/spout/vanilla/protocol/handler/WindowClickMessageHandler.java b/src/main/java/org/spout/vanilla/protocol/handler/WindowClickMessageHandler.java index 5775a13a..e77fab82 100644 --- a/src/main/java/org/spout/vanilla/protocol/handler/WindowClickMessageHandler.java +++ b/src/main/java/org/spo...
false
true
public void handleServer(Session session, Player player, WindowClickMessage message) { this.session = session; this.message = message; Entity entity = player.getEntity(); VanillaPlayer controller = (VanillaPlayer) entity.getController(); Inventory inventory = controller.getActiveInventory(); if (inventor...
public void handleServer(Session session, Player player, WindowClickMessage message) { this.session = session; this.message = message; Entity entity = player.getEntity(); VanillaPlayer controller = (VanillaPlayer) entity.getController(); Inventory inventory = controller.getActiveInventory(); if (inventor...
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/LineSelectionTextTripleClickStrategy.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/LineSelectionTextTripleClickStrategy.java index 7fe6675d5..694191bb7 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/text/LineSelectionTextTripleClickStr...
false
true
public void tripleClicked(ITextViewer text) { int position= text.getSelectedRange().x; if (position < 0) return; try { IDocument document= text.getDocument(); IRegion line= document.getLineInformationOfOffset(position); text.setSelectedRange(line.getOffset(), line.getLength()); } catch (BadLocati...
public void tripleClicked(ITextViewer text) { int position= text.getSelectedRange().x; if (position < 0) return; try { IDocument document= text.getDocument(); int lineNumber= document.getLineOfOffset(position); String lineDelimiter= document.getLineDelimiter(lineNumber); int lineDelimiterLength=...
diff --git a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/openon/OpenOnProvider.java b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/openon/OpenOnProvider.java index 49a4c9dae..84419be44 100644 --- a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/openon/OpenOnProvider.java +++ b/bund...
true
true
public IOpenOn getOpenOn(IDocument document, int offset) { IOpenOn openOn = null; // determine the current partition if (document != null) { String contentTypeID = getContentType(document); String partitionType = getPartitionType(document, offset); IContentType contentType = Platform.getContentTypeMan...
public IOpenOn getOpenOn(IDocument document, int offset) { IOpenOn openOn = null; // determine the current partition if (document != null) { String contentTypeID = getContentType(document); String partitionType = getPartitionType(document, offset); IContentType contentType = Platform.getContentTypeMan...
diff --git a/faims-android-app/src/au/org/intersect/faims/android/nutiteq/GeometryUtil.java b/faims-android-app/src/au/org/intersect/faims/android/nutiteq/GeometryUtil.java index ef280e55..6bf26b4e 100644 --- a/faims-android-app/src/au/org/intersect/faims/android/nutiteq/GeometryUtil.java +++ b/faims-android-app/src/au...
true
true
public static List<Geometry> convertGeometryFromProjToProj(String fromSrid, String toSrid, List<Geometry> geomList) { try { ArrayList<Geometry> newList = new ArrayList<Geometry>(); for (Geometry geom : geomList) { Geometry g = SpatialiteUtil.convertFromProjToProj(fromSrid, toSrid, geom); if (geom insta...
public static List<Geometry> convertGeometryFromProjToProj(String fromSrid, String toSrid, List<Geometry> geomList) { try { ArrayList<Geometry> newList = new ArrayList<Geometry>(); if(geomList == null) return null; for (Geometry geom : geomList) { Geometry g = SpatialiteUtil.convertFromProjToProj(fromSr...
diff --git a/plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericServerSourcePathComputerDelegate.java b/plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericServerSourcePathComputerDelegate.java index 01620edf..1349f6d7 1006...
true
true
public ISourceContainer[] computeSourceContainers(ILaunchConfiguration configuration, IProgressMonitor monitor) throws CoreException { IRuntimeClasspathEntry[] unresolvedEntries = JavaRuntime.computeUnresolvedSourceLookupPath(configuration); // FIXME have only the projects of registered modules. IProject[] p...
public ISourceContainer[] computeSourceContainers(ILaunchConfiguration configuration, IProgressMonitor monitor) throws CoreException { IRuntimeClasspathEntry[] unresolvedEntries = JavaRuntime.computeUnresolvedSourceLookupPath(configuration); // FIXME have only the projects of registered modules. IProject[] p...
diff --git a/src/main/java/org/dynjs/runtime/builtins/types/error/ToString.java b/src/main/java/org/dynjs/runtime/builtins/types/error/ToString.java index a70a401e..37b5fd1e 100644 --- a/src/main/java/org/dynjs/runtime/builtins/types/error/ToString.java +++ b/src/main/java/org/dynjs/runtime/builtins/types/error/ToStrin...
false
true
public Object call(ExecutionContext context, Object self, Object... args) { // 15.11.4.4 if (!(self instanceof JSObject)) { throw new ThrowException(context, context.createTypeError("'this' must be an object")); } JSObject jsSelf = (JSObject) self; Object name =...
public Object call(ExecutionContext context, Object self, Object... args) { // 15.11.4.4 if (!(self instanceof JSObject)) { throw new ThrowException(context, context.createTypeError("'this' must be an object")); } JSObject jsSelf = (JSObject) self; Object nameOb...
diff --git a/src/main/java/org/primefaces/component/menu/BaseMenuRenderer.java b/src/main/java/org/primefaces/component/menu/BaseMenuRenderer.java index d023f1da3..a62477074 100644 --- a/src/main/java/org/primefaces/component/menu/BaseMenuRenderer.java +++ b/src/main/java/org/primefaces/component/menu/BaseMenuRenderer....
false
true
protected void encodeMenuItem(FacesContext context, MenuItem menuItem) throws IOException { String clientId = menuItem.getClientId(context); ResponseWriter writer = context.getResponseWriter(); String icon = menuItem.getIcon(); if(menuItem.shouldRenderChildren()) { renderChildren(context, me...
protected void encodeMenuItem(FacesContext context, MenuItem menuItem) throws IOException { String clientId = menuItem.getClientId(context); ResponseWriter writer = context.getResponseWriter(); String icon = menuItem.getIcon(); String title = menuItem.getTitle(); if(menuItem.shouldRende...
diff --git a/src/main/java/org/easetech/easytest/loader/ExcelDataLoader.java b/src/main/java/org/easetech/easytest/loader/ExcelDataLoader.java index ffddbb2..aab3ab6 100644 --- a/src/main/java/org/easetech/easytest/loader/ExcelDataLoader.java +++ b/src/main/java/org/easetech/easytest/loader/ExcelDataLoader.java @@ -1,5...
true
true
private void writeDataToSpreadsheet(Resource resource, String methodNameForDataLoad, Map<String, List<Map<String, Object>>> data) throws IOException { LOG.debug("writeDataToSpreadsheet started" + resource.toString() + data); Workbook workbook; try { workbook = W...
private void writeDataToSpreadsheet(Resource resource, String methodNameForDataLoad, Map<String, List<Map<String, Object>>> data) throws IOException { LOG.debug("writeDataToSpreadsheet started" + resource.toString() + data); Workbook workbook; try { workbook = W...
diff --git a/webbapp_model/src/main/java/com/adde/webbapp/model/dao/PersonCatalogue.java b/webbapp_model/src/main/java/com/adde/webbapp/model/dao/PersonCatalogue.java index 1f5dfa0..635832e 100644 --- a/webbapp_model/src/main/java/com/adde/webbapp/model/dao/PersonCatalogue.java +++ b/webbapp_model/src/main/java/com/add...
false
true
public Person getByUserName(String username) { EntityManager em = getEntityManager(); try{ Query q = em.createQuery("select p from Person p where" + " p.username = :username", Person.class). setParameter("username", username); return (Person) q...
public Person getByUserName(String username) { EntityManager em = getEntityManager(); try{ Query q = em.createQuery("select p from Person p where" + " p.username = :username", Person.class). setParameter("username", username); Object object = q...
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/steps/SetWaitForReadyStep.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/steps/SetWaitForReadyStep.java index 42d7db12c..386d936ea 100644 --- a/target_explorer/plugins...
true
true
public void execute(final IStepContext context, final IPropertiesContainer data, final IFullQualifiedId fullQualifiedId, final IProgressMonitor monitor, final ICallback callback) { Protocol.invokeAndWait(new Runnable() { @Override public void run() { int state = getActivePeerModelContext(context, data, ful...
public void execute(final IStepContext context, final IPropertiesContainer data, final IFullQualifiedId fullQualifiedId, final IProgressMonitor monitor, final ICallback callback) { Protocol.invokeAndWait(new Runnable() { @Override public void run() { int state = getActivePeerModelContext(context, data, ful...
diff --git a/TFC_Shared/src/TFC/Items/ItemProPick.java b/TFC_Shared/src/TFC/Items/ItemProPick.java index e00e61bb4..5227ebf42 100644 --- a/TFC_Shared/src/TFC/Items/ItemProPick.java +++ b/TFC_Shared/src/TFC/Items/ItemProPick.java @@ -1,193 +1,193 @@ package TFC.Items; import java.util.ArrayList; import java.util.Li...
true
true
public boolean onItemUse(ItemStack itemstack, EntityPlayer entityplayer, World world, int x, int y, int z, int side, float HitX, float HitY, float HitZ) { if(!world.isRemote && world.getBlockId(x, y, z) != TFCBlocks.ToolRack.blockID) { // Random rand = new Random(x*z+y); // Chun...
public boolean onItemUse(ItemStack itemstack, EntityPlayer entityplayer, World world, int x, int y, int z, int side, float HitX, float HitY, float HitZ) { if(world.isRemote && world.getBlockId(x, y, z) != TFCBlocks.ToolRack.blockID) { // Random rand = new Random(x*z+y); // Chunk...
diff --git a/src/org/biojava/bio/gui/sequence/BasicFeatureRenderer.java b/src/org/biojava/bio/gui/sequence/BasicFeatureRenderer.java index da5b4aed7..e81aaa1ac 100755 --- a/src/org/biojava/bio/gui/sequence/BasicFeatureRenderer.java +++ b/src/org/biojava/bio/gui/sequence/BasicFeatureRenderer.java @@ -1,284 +1,284 @@ /*...
false
true
public void renderFeature( Graphics2D g, Feature f, SequenceRenderContext src ) { Shape s = null; Location loc = f.getLocation(); float min = (float) src.sequenceToGraphics(loc.getMin()); float max = (float) src.sequenceToGraphics(loc.getMax()); float depth = (float) (arrowSize + 2....
public void renderFeature( Graphics2D g, Feature f, SequenceRenderContext src ) { Shape s = null; Location loc = f.getLocation(); float min = (float) src.sequenceToGraphics(loc.getMin()); float max = (float) src.sequenceToGraphics(loc.getMax()); float depth = (float) (arrowSize + 2....
diff --git a/container/catalina/src/share/org/apache/catalina/startup/Bootstrap.java b/container/catalina/src/share/org/apache/catalina/startup/Bootstrap.java index d947017b..af0b8957 100644 --- a/container/catalina/src/share/org/apache/catalina/startup/Bootstrap.java +++ b/container/catalina/src/share/org/apache/catal...
true
true
private ClassLoader createClassLoader(String name, ClassLoader parent) throws Exception { String value = CatalinaProperties.getProperty(name + ".loader"); if ((value == null) || (value.equals(""))) return parent; ArrayList repositoryLocations = new ArrayList(); ...
private ClassLoader createClassLoader(String name, ClassLoader parent) throws Exception { String value = CatalinaProperties.getProperty(name + ".loader"); if ((value == null) || (value.equals(""))) return parent; ArrayList repositoryLocations = new ArrayList(); ...
diff --git a/sdk/jme3-core/src/com/jme3/gde/core/filters/impl/JmeBloomFilter.java b/sdk/jme3-core/src/com/jme3/gde/core/filters/impl/JmeBloomFilter.java index 1e07c9685..836558288 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/filters/impl/JmeBloomFilter.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/filters/impl/Jme...
false
true
protected Sheet createSheet() { Sheet sheet = super.createSheet(); Sheet.Set set = Sheet.createPropertiesSet(); set.setDisplayName("Bloom"); set.setName(Node.class.getName()); BloomFilter obj = (BloomFilter) filter; if (obj == null) { return sheet; ...
protected Sheet createSheet() { Sheet sheet = super.createSheet(); Sheet.Set set = Sheet.createPropertiesSet(); set.setDisplayName("Bloom"); set.setName(Node.class.getName()); BloomFilter obj = (BloomFilter) filter; if (obj == null) { return sheet; ...
diff --git a/launcher/src/main/java/org/usergrid/launcher/LauncherFrame.java b/launcher/src/main/java/org/usergrid/launcher/LauncherFrame.java index 87b904f0..0619c619 100644 --- a/launcher/src/main/java/org/usergrid/launcher/LauncherFrame.java +++ b/launcher/src/main/java/org/usergrid/launcher/LauncherFrame.java @@ -1...
false
true
public void addComponentsToPane() { Container pane = getContentPane(); pane.setLayout(new GridBagLayout()); GridBagConstraints c; JToolBar toolBar = new JToolBar("Toolbar"); toolBar.setBackground(new Color(128, 128, 128)); toolBar.setFloatable(false); toolBar.setRollover(true); toolBar.setMargin(new ...
public void addComponentsToPane() { Container pane = getContentPane(); pane.setLayout(new GridBagLayout()); GridBagConstraints c; JToolBar toolBar = new JToolBar("Toolbar"); toolBar.setBackground(new Color(128, 128, 128)); toolBar.setFloatable(false); toolBar.setRollover(true); toolBar.setMargin(new ...
diff --git a/src/org/opensolaris/opengrok/index/IndexDatabase.java b/src/org/opensolaris/opengrok/index/IndexDatabase.java index 181017c..95c8255 100644 --- a/src/org/opensolaris/opengrok/index/IndexDatabase.java +++ b/src/org/opensolaris/opengrok/index/IndexDatabase.java @@ -1,614 +1,615 @@ /* * CDDL HEADER START ...
true
true
public synchronized void update() throws Exception { interrupted = false; try { writer = new IndexWriter(indexDirectory, AnalyzerGuru.getAnalyzer()); String root; File sourceRoot; if (project != null) { root = project.getPath(); ...
public synchronized void update() throws Exception { interrupted = false; try { writer = new IndexWriter(indexDirectory, AnalyzerGuru.getAnalyzer()); writer.setMaxFieldLength(RuntimeEnvironment.getInstance().getIndexWordLimit()); String root; File sour...
diff --git a/src/test/java/com/suse/studio/client/test/httpservermock/NotImplementedResponder.java b/src/test/java/com/suse/studio/client/test/httpservermock/NotImplementedResponder.java index e214cff..eda9824 100644 --- a/src/test/java/com/suse/studio/client/test/httpservermock/NotImplementedResponder.java +++ b/src/t...
true
true
public void respond(Response response) { response.setCode(505); }
public void respond(Response response) { response.setCode(501); response.setDescription("Not Implemented"); }
diff --git a/udf/src/main/java/org/pygmalion/udf/uuid/GenerateTimeUUID.java b/udf/src/main/java/org/pygmalion/udf/uuid/GenerateTimeUUID.java index b40ceba..6d06cab 100644 --- a/udf/src/main/java/org/pygmalion/udf/uuid/GenerateTimeUUID.java +++ b/udf/src/main/java/org/pygmalion/udf/uuid/GenerateTimeUUID.java @@ -1,31 +1...
true
true
public String exec(Tuple input) throws IOException { String rval = null; if (input != null || input.size() == 0) { rval = TimeUUIDUtils.getUniqueTimeUUIDinMillis().toString(); } else if (input.size() == 1) { Long time = (Long) input.get(0); rval = TimeUUI...
public String exec(Tuple input) throws IOException { String rval = null; if (input == null || input.size() == 0) { rval = TimeUUIDUtils.getUniqueTimeUUIDinMillis().toString(); } else if (input.size() == 1) { Long time = (Long) input.get(0); rval = TimeUUI...
diff --git a/gdx/src/com/badlogic/gdx/scenes/scene2d/Group.java b/gdx/src/com/badlogic/gdx/scenes/scene2d/Group.java index 807c97704..94dfee56a 100644 --- a/gdx/src/com/badlogic/gdx/scenes/scene2d/Group.java +++ b/gdx/src/com/badlogic/gdx/scenes/scene2d/Group.java @@ -1,385 +1,385 @@ /*********************************...
true
true
public static void toChildCoordinates (Actor child, float x, float y, Vector2 out) { if (child.rotation == 0) { if (child.scaleX == 1 && child.scaleY == 1) { out.x = x - child.x; out.y = y - child.y; } else { if (child.originX == 0 && child.originY == 0) { out.x = (x - child.x) / child.scaleX;...
public static void toChildCoordinates (Actor child, float x, float y, Vector2 out) { if (child.rotation == 0) { if (child.scaleX == 1 && child.scaleY == 1) { out.x = x - child.x; out.y = y - child.y; } else { if (child.originX == 0 && child.originY == 0) { out.x = (x - child.x) / child.scaleX;...
diff --git a/src/me/taylorkelly/bigbrother/Finder.java b/src/me/taylorkelly/bigbrother/Finder.java index f77f528..b021be1 100644 --- a/src/me/taylorkelly/bigbrother/Finder.java +++ b/src/me/taylorkelly/bigbrother/Finder.java @@ -1,248 +1,247 @@ package me.taylorkelly.bigbrother; import java.sql.*; import java.util...
true
true
private void mysqlFind(boolean sqlite, String playerName) { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; HashMap<Integer, Integer> creations = new HashMap<Integer, Integer>(); HashMap<Integer, Integer> destructions = new HashMap<Integer, Integer>(); try { if (sqlite) { ...
private void mysqlFind(boolean sqlite, String playerName) { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; HashMap<Integer, Integer> creations = new HashMap<Integer, Integer>(); HashMap<Integer, Integer> destructions = new HashMap<Integer, Integer>(); try { if (sqlite) { ...
diff --git a/gdx/src/com/badlogic/gdx/graphics/Mesh.java b/gdx/src/com/badlogic/gdx/graphics/Mesh.java index 70fec8c43..60a94f864 100644 --- a/gdx/src/com/badlogic/gdx/graphics/Mesh.java +++ b/gdx/src/com/badlogic/gdx/graphics/Mesh.java @@ -1,546 +1,548 @@ /* * Copyright 2010 Mario Zechner (contact@badlogicgames.com...
false
true
public void render(int primitiveType, int offset, int count) { if (Gdx.graphics.isGL20Available()) throw new IllegalStateException( "can't use this render method with OpenGL ES 2.0"); if (autoBind) bind(); if (isVertexArray) { if (indices.getNumIndices() > 0) { int oldPosition = indices.getBu...
public void render(int primitiveType, int offset, int count) { if (Gdx.graphics.isGL20Available()) throw new IllegalStateException( "can't use this render method with OpenGL ES 2.0"); if (autoBind) bind(); if (isVertexArray) { if (indices.getNumIndices() > 0) { ShortBuffer buffer = indices.ge...
diff --git a/src/frontend/edu/brown/hstore/PartitionExecutor.java b/src/frontend/edu/brown/hstore/PartitionExecutor.java index f4aa562eb..725288f6f 100644 --- a/src/frontend/edu/brown/hstore/PartitionExecutor.java +++ b/src/frontend/edu/brown/hstore/PartitionExecutor.java @@ -1,4174 +1,4174 @@ /***********************...
true
true
private Map<Integer, List<VoltTable>> getFragmentInputs(AbstractTransaction ts, List<Integer> input_dep_ids, Map<Integer, List<VoltTable>> inputs) { Map<Integer, List<VoltTable>> attachedI...
private Map<Integer, List<VoltTable>> getFragmentInputs(AbstractTransaction ts, List<Integer> input_dep_ids, Map<Integer, List<VoltTable>> inputs) { Map<Integer, List<VoltTable>> attachedI...
diff --git a/src/com/redhat/qe/tools/abstraction/AbstractCommandLineData.java b/src/com/redhat/qe/tools/abstraction/AbstractCommandLineData.java index 3c9f889..111eed9 100644 --- a/src/com/redhat/qe/tools/abstraction/AbstractCommandLineData.java +++ b/src/com/redhat/qe/tools/abstraction/AbstractCommandLineData.java @@ ...
false
true
public AbstractCommandLineData(Map<String, String> productData){ if (productData == null) return; for (String keyField : productData.keySet()){ Field abstractionField = null; try { abstractionField = this.getClass().getField(keyField); if (abstractionField.getType().equals(Calendar.class)) ...
public AbstractCommandLineData(Map<String, String> productData){ if (productData == null) return; for (String keyField : productData.keySet()){ Field abstractionField = null; try { abstractionField = this.getClass().getField(keyField); if (productData.get(keyField).equals("")) { abstractio...
diff --git a/src/com/jidesoft/plaf/basic/BasicJideTabbedPaneUI.java b/src/com/jidesoft/plaf/basic/BasicJideTabbedPaneUI.java index ed0786fa..73d7a136 100644 --- a/src/com/jidesoft/plaf/basic/BasicJideTabbedPaneUI.java +++ b/src/com/jidesoft/plaf/basic/BasicJideTabbedPaneUI.java @@ -1,9565 +1,9565 @@ /* @(#)BasicJideTa...
true
true
protected boolean requestFocusForVisibleComponent() { Component visibleComponent = getVisibleComponent(); Component lastFocused = _tabPane.getLastFocusedComponent(visibleComponent); if (lastFocused != null && lastFocused.requestFocusInWindow()) { return true; } el...
protected boolean requestFocusForVisibleComponent() { Component visibleComponent = getVisibleComponent(); Component lastFocused = _tabPane.getLastFocusedComponent(visibleComponent); if (lastFocused != null && lastFocused.requestFocusInWindow()) { return true; } el...
diff --git a/org.eclipse.rmf.reqif10.search.ui/src/org/eclipse/rmf/reqif10/search/filter/ui/FilterControlEnum.java b/org.eclipse.rmf.reqif10.search.ui/src/org/eclipse/rmf/reqif10/search/filter/ui/FilterControlEnum.java index cb3a5dfd..378e7165 100644 --- a/org.eclipse.rmf.reqif10.search.ui/src/org/eclipse/rmf/reqif10/s...
true
true
private void updateItems(Collection<EnumValue> items) { this.items = items; StringBuilder sb = new StringBuilder(); for (Iterator<EnumValue> i = items.iterator(); i.hasNext();) { EnumValue value = i.next(); // In case items have been removed if (! attribute.getType().getSpecifiedValues().contains(value...
private void updateItems(Collection<EnumValue> items) { this.items = items; StringBuilder sb = new StringBuilder(); for (Iterator<EnumValue> i = items.iterator(); i.hasNext();) { EnumValue value = i.next(); // In case items have been removed if (! attribute.getType().getSpecifiedValues().contains(value...
diff --git a/odcleanstore/webfrontend/src/main/java/cz/cuni/mff/odcleanstore/webfrontend/pages/transformers/dn/debug/DNDebugResultPage.java b/odcleanstore/webfrontend/src/main/java/cz/cuni/mff/odcleanstore/webfrontend/pages/transformers/dn/debug/DNDebugResultPage.java index 1e78809f..b88e415e 100644 --- a/odcleanstore/...
true
true
private void addResultTables(List<GraphModification> results) { ListView<GraphModification> tables = new ListView<GraphModification>("resultTable", results) { private static final long serialVersionUID = 1L; @Override protected void populateItem(ListItem<GraphModification> item) { GraphModificatio...
private void addResultTables(List<GraphModification> results) { ListView<GraphModification> tables = new ListView<GraphModification>("resultTable", results) { private static final long serialVersionUID = 1L; @Override protected void populateItem(ListItem<GraphModification> item) { GraphModificatio...
diff --git a/extensions/servlet/src/main/java/org/trimou/servlet/locator/ServletContextTemplateLocator.java b/extensions/servlet/src/main/java/org/trimou/servlet/locator/ServletContextTemplateLocator.java index e6eb2cc..c45036d 100644 --- a/extensions/servlet/src/main/java/org/trimou/servlet/locator/ServletContextTempl...
true
true
public Set<String> getAllAvailableNames() { ServletContext ctx = getServletContext(); if (ctx == null) { logger.warn("Servlet context not available - cannot get all available names"); return Collections.emptySet(); } Set<String> names = new HashSet<String>(); Set<String> resources = ctx.getResourceP...
public Set<String> getAllAvailableNames() { ServletContext ctx = getServletContext(); if (ctx == null) { logger.warn("Servlet context not available - cannot get all available names"); return Collections.emptySet(); } Set<String> names = new HashSet<String>(); Set<String> resources = ctx.getResourceP...
diff --git a/generator/src/main/java/org/jsonddl/generator/TemplateDialect.java b/generator/src/main/java/org/jsonddl/generator/TemplateDialect.java index 8ff4368..10c901d 100644 --- a/generator/src/main/java/org/jsonddl/generator/TemplateDialect.java +++ b/generator/src/main/java/org/jsonddl/generator/TemplateDialect....
true
true
public void generate(Options options, Collector output, Schema s) throws IOException { templates = loadTemplateGroup(); // Redefine now() templates.undefineTemplate(NOW_TEMPLATE_NAME); templates.defineTemplate(NOW_TEMPLATE_NAME, new SimpleDateFormat(GENERATED_DATE_FORMAT).format(new Date())); ...
public void generate(Options options, Collector output, Schema s) throws IOException { templates = loadTemplateGroup(); // Redefine now() templates.undefineTemplate(NOW_TEMPLATE_NAME); templates.defineTemplate(NOW_TEMPLATE_NAME, new SimpleDateFormat(GENERATED_DATE_FORMAT).format(new Date())); ...
diff --git a/src/ICETool/src/org/projectx/icetool/ActionsActivity.java b/src/ICETool/src/org/projectx/icetool/ActionsActivity.java index 4337233..1fb595d 100644 --- a/src/ICETool/src/org/projectx/icetool/ActionsActivity.java +++ b/src/ICETool/src/org/projectx/icetool/ActionsActivity.java @@ -1,28 +1,28 @@ package org....
true
true
public boolean onItemSelected(String itemAction, String itemDescription) { ICETool.getInstance().getTabHost().setCurrentTab(ICETool.TAB_CONSOLE); // Custom commands here if (itemAction.equals("blnon")) { Settings.System.putInt(getContentResolver(), "USE_BUTTONS_ON_NOTIFICATION", 1); ICETool.get...
public boolean onItemSelected(String itemAction, String itemDescription) { ICETool.getInstance().getTabHost().setCurrentTab(ICETool.TAB_CONSOLE); // Custom commands here if (itemAction.equals("blnon")) { Settings.System.putInt(getContentResolver(), "USE_BUTTONS_ON_NOTIFICATION", 1); ICETool.get...