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/NoItem/src/net/worldoftomorrow/nala/ni/listeners/EventListener.java b/NoItem/src/net/worldoftomorrow/nala/ni/listeners/EventListener.java index d7c08fb..8430252 100644 --- a/NoItem/src/net/worldoftomorrow/nala/ni/listeners/EventListener.java +++ b/NoItem/src/net/worldoftomorrow/nala/ni/listeners/EventListe...
true
true
public void onInventoryClick(InventoryClickEvent event) { Player p = Bukkit.getPlayer(event.getWhoClicked().getName()); Inventory inv = event.getInventory(); ItemStack oncur = p.getItemOnCursor(); ItemStack current = event.getCurrentItem(); int rs = event.getRawSlot(); InventoryView view = event.getView();...
public void onInventoryClick(InventoryClickEvent event) { Player p = Bukkit.getPlayer(event.getWhoClicked().getName()); Inventory inv = event.getInventory(); ItemStack oncur = p.getItemOnCursor(); ItemStack current = event.getCurrentItem(); int rs = event.getRawSlot(); InventoryView view = event.getView();...
diff --git a/src/org/ofbiz/tenant/tenant/TenantServices.java b/src/org/ofbiz/tenant/tenant/TenantServices.java index 4847152..b84e45d 100644 --- a/src/org/ofbiz/tenant/tenant/TenantServices.java +++ b/src/org/ofbiz/tenant/tenant/TenantServices.java @@ -1,504 +1,505 @@ /*************************************************...
true
true
public static Map<String, Object> installTenantDataSources(DispatchContext ctx, Map<String, Object> context) { Delegator delegator = ctx.getDelegator(); String tenantId = (String) context.get("tenantId"); String readers = (String) context.get("readers"); String newReaders = null; ...
public static Map<String, Object> installTenantDataSources(DispatchContext ctx, Map<String, Object> context) { Delegator delegator = ctx.getDelegator(); String tenantId = (String) context.get("tenantId"); String readers = (String) context.get("readers"); String newReaders = null; ...
diff --git a/Fallout-Equestria-The-Game/src/archetypeEditor/AssetPanel.java b/Fallout-Equestria-The-Game/src/archetypeEditor/AssetPanel.java index 5851008..c34115d 100644 --- a/Fallout-Equestria-The-Game/src/archetypeEditor/AssetPanel.java +++ b/Fallout-Equestria-The-Game/src/archetypeEditor/AssetPanel.java @@ -1,190 +...
true
true
public AssetPanel(IComponent comp, Field field) { setLayout(null); JLabel lblAsset = new JLabel("Asset:"); lblAsset.setBounds(10, 8, 31, 14); add(lblAsset); if(field.getType() == Texture2D.class){ fileEnding = "png"; } else if(field.getType() == Audio.class){ fileEnding = "ogg"; }else if(field.ge...
public AssetPanel(IComponent comp, Field field) { setLayout(null); JLabel lblAsset = new JLabel("Asset:"); lblAsset.setBounds(10, 8, 31, 14); add(lblAsset); if(field.getType() == Texture2D.class){ fileEnding = "png"; } else if(field.getType() == Audio.class){ fileEnding = "ogg"; }else if(field.ge...
diff --git a/src/me/chaseoes/tf2/listeners/EntityShootBowListener.java b/src/me/chaseoes/tf2/listeners/EntityShootBowListener.java index d1783c7..01c6f43 100644 --- a/src/me/chaseoes/tf2/listeners/EntityShootBowListener.java +++ b/src/me/chaseoes/tf2/listeners/EntityShootBowListener.java @@ -1,29 +1,29 @@ package me.c...
true
true
public void onShootBow(EntityShootBowEvent event) { if (event.getEntity() instanceof Player) { Player player = (Player) event.getEntity(); GamePlayer gp = GameUtilities.getUtilities().getGamePlayer(player); if (gp.getGame().getStatus() != GameStatus.INGAME || gp.isInLobby...
public void onShootBow(EntityShootBowEvent event) { if (event.getEntity() instanceof Player) { Player player = (Player) event.getEntity(); GamePlayer gp = GameUtilities.getUtilities().getGamePlayer(player); if (gp.isIngame() && (gp.getGame().getStatus() != GameStatus.INGA...
diff --git a/src/com/android/settings/wifi/WifiApEnabler.java b/src/com/android/settings/wifi/WifiApEnabler.java index 0496ba73..97221f28 100644 --- a/src/com/android/settings/wifi/WifiApEnabler.java +++ b/src/com/android/settings/wifi/WifiApEnabler.java @@ -1,279 +1,279 @@ /* * Copyright (C) 2010 The Android Open S...
true
true
public void setSoftapEnabled(boolean enable) { final ContentResolver cr = mContext.getContentResolver(); boolean result = false; if (mTransmitPower) { /* Disable here, enabled on receiving success broadcast */ mCheckBox.setEnabled(false); // Change trans...
public void setSoftapEnabled(boolean enable) { final ContentResolver cr = mContext.getContentResolver(); boolean result = false; if (mTransmitPower) { /* Disable here, enabled on receiving success broadcast */ mCheckBox.setEnabled(false); // Change trans...
diff --git a/simulator-ui/src/java/main/ca/nengo/ui/actions/PasteAction.java b/simulator-ui/src/java/main/ca/nengo/ui/actions/PasteAction.java index 16742c76..0bc32a9f 100644 --- a/simulator-ui/src/java/main/ca/nengo/ui/actions/PasteAction.java +++ b/simulator-ui/src/java/main/ca/nengo/ui/actions/PasteAction.java @@ -1...
true
true
protected void action() throws ActionException { ArrayList<Node> nodes = NengoGraphics.getInstance().getClipboard().getContents(); ArrayList<Point2D> offsets = NengoGraphics.getInstance().getClipboard().getOffsets(); if (nodes != null && nodes.size() > 0) { for (int i = 0; ...
protected void action() throws ActionException { ArrayList<Node> nodes = NengoGraphics.getInstance().getClipboard().getContents(); ArrayList<Point2D> offsets = NengoGraphics.getInstance().getClipboard().getOffsets(); if (nodes != null && nodes.size() > 0) { for (int i = 0; ...
diff --git a/server/cluster-mgmt/src/test/java/com/vmware/bdd/manager/TestLockedClusterEntityManager.java b/server/cluster-mgmt/src/test/java/com/vmware/bdd/manager/TestLockedClusterEntityManager.java index 281bce71..22eee8a8 100644 --- a/server/cluster-mgmt/src/test/java/com/vmware/bdd/manager/TestLockedClusterEntityM...
true
true
public void testExclusiveCompetitiveInTwoThread() throws Exception { setThreadStarted(false); LockTestThread t = new LockTestThread(exclusiveLockedMgr); t.start(); while (!isThreadStarted()) { Thread.sleep(10); } Thread.sleep(40); long start = System.currentTimeMill...
public void testExclusiveCompetitiveInTwoThread() throws Exception { setThreadStarted(false); LockTestThread t = new LockTestThread(exclusiveLockedMgr); t.start(); while (!isThreadStarted()) { Thread.sleep(10); } Thread.sleep(40); long start = System.currentTimeMill...
diff --git a/src/com/globalsight/tools/ShowJobsCommand.java b/src/com/globalsight/tools/ShowJobsCommand.java index e968213..3433035 100755 --- a/src/com/globalsight/tools/ShowJobsCommand.java +++ b/src/com/globalsight/tools/ShowJobsCommand.java @@ -1,81 +1,81 @@ package com.globalsight.tools; import java.util.Array...
false
true
protected void execute(CommandLine command, UserData userData, WebService webService) throws Exception { List<String> args = command.getArgList(); List<Job> jobs = webService.getJobs(); if (args.size() == 0) { showAllJobs(jobs); } else { List<J...
protected void execute(CommandLine command, UserData userData, WebService webService) throws Exception { String[] args = command.getArgs(); List<Job> jobs = webService.getJobs(); if (args.length == 0) { showAllJobs(jobs); } else { List<Job> job...
diff --git a/src/org/opensolaris/opengrok/util/Executor.java b/src/org/opensolaris/opengrok/util/Executor.java index 0175d45..b047c83 100644 --- a/src/org/opensolaris/opengrok/util/Executor.java +++ b/src/org/opensolaris/opengrok/util/Executor.java @@ -1,132 +1,132 @@ /* * CDDL HEADER START * * The contents of t...
true
true
public void exec() { ProcessBuilder processBuilder = new ProcessBuilder(cmdList); if (workingDirectory != null) { processBuilder.directory(workingDirectory); } StringPipe stdout = new StringPipe(); StringPipe stderr = new StringPipe(); Process process = n...
public void exec() { ProcessBuilder processBuilder = new ProcessBuilder(cmdList); if (workingDirectory != null) { processBuilder.directory(workingDirectory); } StringPipe stdout = new StringPipe(); StringPipe stderr = new StringPipe(); Process process = n...
diff --git a/android/src/com/google/zxing/client/android/history/HistoryClickListener.java b/android/src/com/google/zxing/client/android/history/HistoryClickListener.java index 0b1b40e8..811f5b76 100644 --- a/android/src/com/google/zxing/client/android/history/HistoryClickListener.java +++ b/android/src/com/google/zxin...
true
true
public void onClick(DialogInterface dialogInterface, int i) { if (i == items.size()) { // Share history. CharSequence history = historyManager.buildHistory(); Uri historyFile = HistoryManager.saveHistory(history.toString()); if (historyFile == null) { AlertDialog.Builder builder = ...
public void onClick(DialogInterface dialogInterface, int i) { if (i == items.size()) { // Share history. CharSequence history = historyManager.buildHistory(); Uri historyFile = HistoryManager.saveHistory(history.toString()); if (historyFile == null) { AlertDialog.Builder builder = ...
diff --git a/atlas-web/src/main/java/ae3/service/structuredquery/AtlasStructuredQueryParser.java b/atlas-web/src/main/java/ae3/service/structuredquery/AtlasStructuredQueryParser.java index 858737cef..9a1151030 100644 --- a/atlas-web/src/main/java/ae3/service/structuredquery/AtlasStructuredQueryParser.java +++ b/atlas-w...
true
true
private static List<String> parseQuotedList(final String value) { List<String> values = new ArrayList<String>(); if("(all conditions)".equals(value)) return values; try { Reader r = new StringReader(value); StringBuffer curVal = new StringBuffer(); ...
private static List<String> parseQuotedList(final String value) { List<String> values = new ArrayList<String>(); if("(all genes)".equals(value) || "(all conditions)".equals(value)) return values; try { Reader r = new StringReader(value); StringBuffer ...
diff --git a/src/net/sf/freecol/client/gui/sound/SoundPlayer.java b/src/net/sf/freecol/client/gui/sound/SoundPlayer.java index 501e2f28c..b9ca3e039 100644 --- a/src/net/sf/freecol/client/gui/sound/SoundPlayer.java +++ b/src/net/sf/freecol/client/gui/sound/SoundPlayer.java @@ -1,498 +1,500 @@ /** * Copyright (C) 200...
false
true
private void rawplay(AudioFormat targetFormat, AudioInputStream din) throws IOException, LineUnavailableException { DataLine.Info info = new DataLine.Info(SourceDataLine.class, targetFormat); SourceDataLine line = (SourceDat...
private void rawplay(AudioFormat targetFormat, AudioInputStream din) throws IOException, LineUnavailableException { DataLine.Info info = new DataLine.Info(SourceDataLine.class, targetFormat); SourceDataLine line = (SourceDat...
diff --git a/tomcat/src/main/java/org/jboss/on/plugins/tomcat/TomcatDiscoveryComponent.java b/tomcat/src/main/java/org/jboss/on/plugins/tomcat/TomcatDiscoveryComponent.java index c79e0b0f50..d60f26b3c5 100644 --- a/tomcat/src/main/java/org/jboss/on/plugins/tomcat/TomcatDiscoveryComponent.java +++ b/tomcat/src/main/java...
false
true
private DiscoveredResourceDetails parsePluginConfig(ResourceDiscoveryContext context, Configuration pluginConfiguration) { String catalinaHome = pluginConfiguration.getSimpleValue( TomcatServerComponent.PLUGIN_CONFIG_CATALINA_HOME_PATH, "invalid"); try { catalinaHome...
private DiscoveredResourceDetails parsePluginConfig(ResourceDiscoveryContext context, Configuration pluginConfiguration) { String catalinaHome = pluginConfiguration.getSimple( TomcatServerComponent.PLUGIN_CONFIG_CATALINA_HOME_PATH).getStringValue(); try { catalinaHom...
diff --git a/src/test/org/codehaus/groovy/classgen/GetPropertyTest.java b/src/test/org/codehaus/groovy/classgen/GetPropertyTest.java index 2f7b4da5e..c1aa487be 100644 --- a/src/test/org/codehaus/groovy/classgen/GetPropertyTest.java +++ b/src/test/org/codehaus/groovy/classgen/GetPropertyTest.java @@ -1,71 +1,71 @@ /* ...
true
true
public void testProperty() throws Exception { GroovyObject object = compile("src/test/org/codehaus/groovy/classgen/MyBean.groovy"); System.out.println("Got object: " + object); Object value = object.getProperty("name"); assertEquals("name property", null, value); object.set...
public void testProperty() throws Exception { GroovyObject object = compile("src/test/org/codehaus/groovy/classgen/MyBean.groovy"); System.out.println("Got object: " + object); Object value = object.getProperty("name"); assertEquals("name property", "James", value); object....
diff --git a/core/core-java6/src/main/java/org/apache/myfaces/scripting/loaders/java/jsr199/ContainerFileManager.java b/core/core-java6/src/main/java/org/apache/myfaces/scripting/loaders/java/jsr199/ContainerFileManager.java index be13f145..a5b7385e 100644 --- a/core/core-java6/src/main/java/org/apache/myfaces/scriptin...
true
true
public String getClassPath() { if (_classPath != null) { return _classPath; } ClassLoader cls = getClassLoader(null); StringBuilder retVal = new StringBuilder(500); while (cls != null) { if (cls instanceof URLClassLoader) { URL[] urls ...
public String getClassPath() { if (_classPath != null) { return _classPath; } ClassLoader cls = getClassLoader(null); StringBuilder retVal = new StringBuilder(500); while (cls != null) { if (cls instanceof URLClassLoader) { URL[] urls ...
diff --git a/sslr-core/src/main/java/org/sonar/sslr/internal/matchers/BasicMatcherContext.java b/sslr-core/src/main/java/org/sonar/sslr/internal/matchers/BasicMatcherContext.java index 3ba4c284..de8e7fa0 100644 --- a/sslr-core/src/main/java/org/sonar/sslr/internal/matchers/BasicMatcherContext.java +++ b/sslr-core/src/m...
true
true
public boolean runMatcher() { try { if (matcher.match(this)) { if (parent != null) { parent.currentIndex = currentIndex; } retire(); return true; } retire(); return false; } catch (ParserRuntimeException e) { // propagate as-is thro...
public boolean runMatcher() { try { if (matcher.match(this)) { if (parent != null) { parent.currentIndex = currentIndex; } retire(); return true; } retire(); return false; } catch (ParserRuntimeException e) { // propagate as-is thro...
diff --git a/src/FractalFlameV2.java b/src/FractalFlameV2.java index 94a2134..835379c 100644 --- a/src/FractalFlameV2.java +++ b/src/FractalFlameV2.java @@ -1,162 +1,162 @@ import java.util.concurrent.ThreadLocalRandom; import processing.core.PApplet; public final class FractalFlameV2 extends PApplet { ThreadL...
true
true
public final void draw() { if (frameCount <= 5) { loadPixels(); } double maxA = 0; for (int y = 0; y < GLB.hhei; y++) { for (int x = 0; x < GLB.hwid; x++) { final int px = x / GLB.ss; final int py = y / GLB.ss; final double r = GLB.h.histo[(4 * x) + (4 * y * GLB.hwid) + 0]; fin...
public final void draw() { if (frameCount <= 5) { loadPixels(); } double maxA = 0; for (int y = 0; y < GLB.hhei; y++) { for (int x = 0; x < GLB.hwid; x++) { final int px = x / GLB.ss; final int py = y / GLB.ss; final double r = GLB.h.histo[(4 * x) + (4 * y * GLB.hwid) + 0]; fin...
diff --git a/SoD2/src/com/deeep/sod2/io/Save.java b/SoD2/src/com/deeep/sod2/io/Save.java index 470f505..cfe2eb2 100644 --- a/SoD2/src/com/deeep/sod2/io/Save.java +++ b/SoD2/src/com/deeep/sod2/io/Save.java @@ -1,150 +1,150 @@ package com.deeep.sod2.io; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.P...
true
true
public void loadLevel(int level) throws IOException { Pixmap image = new Pixmap(Gdx.files.internal("data/save/level"+level+".png")); Pixmap entImg = new Pixmap(Gdx.files.internal("data/save/level"+level+"ent.png")); width = image.getWidth(); height = image.getHeight(); Logger...
public void loadLevel(int level) throws IOException { Pixmap image = new Pixmap(Gdx.files.internal("data/save/level"+level+".png")); Pixmap entImg = new Pixmap(Gdx.files.internal("data/save/level"+level+"ent.png")); width = image.getWidth(); height = image.getHeight(); Logger...
diff --git a/src/main/java/pt/go2/application/UrlHashing.java b/src/main/java/pt/go2/application/UrlHashing.java index 58de838..29e2bf0 100644 --- a/src/main/java/pt/go2/application/UrlHashing.java +++ b/src/main/java/pt/go2/application/UrlHashing.java @@ -1,109 +1,109 @@ package pt.go2.application; import java.io....
false
true
public void handle(HttpExchange exchange) throws IOException { try (final InputStream is = exchange.getRequestBody(); final InputStreamReader sr = new InputStreamReader(is); final BufferedReader br = new BufferedReader(sr);) { // read body content final String postBody = br.readLine(); if (postB...
public void handle(HttpExchange exchange) throws IOException { try (final InputStream is = exchange.getRequestBody(); final InputStreamReader sr = new InputStreamReader(is); final BufferedReader br = new BufferedReader(sr);) { // read body content final String postBody = br.readLine(); if (postB...
diff --git a/src/main/java/me/desht/autohop/AutoHop.java b/src/main/java/me/desht/autohop/AutoHop.java index 398c153..79e0edd 100644 --- a/src/main/java/me/desht/autohop/AutoHop.java +++ b/src/main/java/me/desht/autohop/AutoHop.java @@ -1,143 +1,143 @@ package me.desht.autohop; /* This file is part of autohop ...
true
true
public void onPlayerMove(PlayerMoveEvent event) { Location f = event.getFrom(); Location t = event.getTo(); // delta X and Z - which way the player is going double dx = t.getX() - f.getX(); double dz = t.getZ() - f.getZ(); // extrapolation of next X and Z the player will get to double nextX = t.getX() +...
public void onPlayerMove(PlayerMoveEvent event) { Location f = event.getFrom(); Location t = event.getTo(); // delta X and Z - which way the player is going double dx = t.getX() - f.getX(); double dz = t.getZ() - f.getZ(); // extrapolation of next X and Z the player will get to double nextX = t.getX() +...
diff --git a/src/main/java/net/lahwran/wecui/obf/Packet3WECUIChat.java b/src/main/java/net/lahwran/wecui/obf/Packet3WECUIChat.java index 5883d4d..42c0983 100644 --- a/src/main/java/net/lahwran/wecui/obf/Packet3WECUIChat.java +++ b/src/main/java/net/lahwran/wecui/obf/Packet3WECUIChat.java @@ -1,59 +1,59 @@ /** * *...
true
true
public static void register() { if (registered) return; registered = true; try { Class<gt> packetclass = gt.class; Field idstoclassesfield = packetclass.getDeclaredField("a"); Field classestoidsfield = packetclass.getDeclaredField("b"); ...
public static void register() { if (registered) return; registered = true; try { Class<gt> packetclass = gt.class; Field idstoclassesfield = packetclass.getDeclaredField("j"); Field classestoidsfield = packetclass.getDeclaredField("a"); ...
diff --git a/java/com/couchbase/cblite/testapp/tests/MultipartReader.java b/java/com/couchbase/cblite/testapp/tests/MultipartReader.java index df709705..00eef5a3 100644 --- a/java/com/couchbase/cblite/testapp/tests/MultipartReader.java +++ b/java/com/couchbase/cblite/testapp/tests/MultipartReader.java @@ -1,134 +1,133 ...
false
true
public void testReaderOperation() { Charset utf8 = Charset.forName("UTF-8"); byte[] mime = new String("--BOUNDARY\r\nFoo: Bar\r\n Header : Val ue \r\n\r\npart the first\r\n--BOUNDARY \r\n\r\n2nd part\r\n--BOUNDARY--").getBytes(utf8); ByteArrayInputStream mimeInputStream = new ByteArrayInp...
public void testReaderOperation() { Charset utf8 = Charset.forName("UTF-8"); byte[] mime = new String("--BOUNDARY\r\nFoo: Bar\r\n Header : Val ue \r\n\r\npart the first\r\n--BOUNDARY \r\n\r\n2nd part\r\n--BOUNDARY--").getBytes(utf8); ByteArrayInputStream mimeInputStream = new ByteArrayInp...
diff --git a/systemtap/org.eclipse.linuxtools.callgraph.launch/src/org/eclipse/linuxtools/callgraph/launch/SystemTapLaunchConfigurationDelegate.java b/systemtap/org.eclipse.linuxtools.callgraph.launch/src/org/eclipse/linuxtools/callgraph/launch/SystemTapLaunchConfigurationDelegate.java index 81ff74c90..6c29a8a85 100644...
true
true
private void finishLaunch(ILaunch launch, ILaunchConfiguration config, String command, IProgressMonitor monitor, boolean retry) { String errorMessage = ""; //$NON-NLS-1$ try { File workDir = getWorkingDirectory(config); if (workDir == null) { workDir = new File(System.getProperty("user.home", ".")); ...
private void finishLaunch(ILaunch launch, ILaunchConfiguration config, String command, IProgressMonitor monitor, boolean retry) { String errorMessage = ""; //$NON-NLS-1$ try { File workDir = getWorkingDirectory(config); if (workDir == null) { workDir = new File(System.getProperty("user.home", ".")); ...
diff --git a/src/main/java/GOLCell.java b/src/main/java/GOLCell.java index 60a728b..c2dfdc1 100644 --- a/src/main/java/GOLCell.java +++ b/src/main/java/GOLCell.java @@ -1,31 +1,35 @@ import java.util.Collection; public class GOLCell extends AbstractCell<MooreNeighbourhood, Boolean> { public GOLCell(Boolean in...
true
true
public void updateNextState() { Collection<Cell<MooreNeighbourhood, Boolean>> neighbourCells = this.neigbours.values(); int liveCellCount = 0; for(Cell<MooreNeighbourhood, Boolean> cell : neighbourCells) { if (cell.getState()) liveCellCount++; } if(liveCellCount < 2 || liveCellCount > 3){ this.nextS...
public void updateNextState() { Collection<Cell<MooreNeighbourhood, Boolean>> neighbourCells = this.neigbours.values(); int liveCellCount = 0; for(Cell<MooreNeighbourhood, Boolean> cell : neighbourCells) { if (cell.getState()) liveCellCount++; } if (this.state) { // underpopulated or overcrowded ...
diff --git a/src/no/ntnu/tdt4215/group7/service/FileServiceImpl.java b/src/no/ntnu/tdt4215/group7/service/FileServiceImpl.java index 0827e10..0cb37b8 100644 --- a/src/no/ntnu/tdt4215/group7/service/FileServiceImpl.java +++ b/src/no/ntnu/tdt4215/group7/service/FileServiceImpl.java @@ -1,88 +1,88 @@ package no.ntnu.tdt4...
true
true
public List<String> getBookFiles() { List<String> masterList = new ArrayList<String>(); String path = null; String simonLoc = "C:\\Users\\Simon\\Dropbox\\NTNU\\WEB_INTELLIGENCE\\PROJECT\\NLH-html-20130123-01"; String martinLoc = "C:\\Users\\hengsti\\Dropbox\\uni\\a related stuff\\ausland\\A TDT4215 Web inte...
public List<String> getBookFiles() { List<String> masterList = new ArrayList<String>(); String path = null; String simonLoc = "FIUXMEC:\\Users\\Simon\\Dropbox\\NTNU\\WEB_INTELLIGENCE\\PROJECT\\NLH-html-20130123-01"; String martinLoc = "C:\\Users\\hengsti\\Dropbox\\uni\\a related stuff\\ausland\\A TDT4215 We...
diff --git a/flexodesktop/GUI/flexographicutils/src/main/java/org/openflexo/swing/FlexoFileChooser.java b/flexodesktop/GUI/flexographicutils/src/main/java/org/openflexo/swing/FlexoFileChooser.java index 62e1a93f0..7c489f17a 100644 --- a/flexodesktop/GUI/flexographicutils/src/main/java/org/openflexo/swing/FlexoFileChoos...
false
true
public void setFileFilterAsString(final String filter) { if (filter == null) { return; } final String[] extensions = filter.split(","); for (int i = 0; i < extensions.length; i++) { extensions[i] = extensions[i].trim(); extensions[i] = extensions[i].substring(1); // removes '*' from the string } f...
public void setFileFilterAsString(final String filter) { if (filter == null || filter.trim().length() == 0) { return; } final String[] extensions = filter.split("[,;]"); for (int i = 0; i < extensions.length; i++) { // We add .*? at the beginning to always match the beginning of the string // We trim ...
diff --git a/org.maven.ide.eclipse/src/org/maven/ide/eclipse/scm/ScmHandler.java b/org.maven.ide.eclipse/src/org/maven/ide/eclipse/scm/ScmHandler.java index 3aa2f58e..d05c650c 100644 --- a/org.maven.ide.eclipse/src/org/maven/ide/eclipse/scm/ScmHandler.java +++ b/org.maven.ide.eclipse/src/org/maven/ide/eclipse/scm/ScmHa...
true
true
public void setInitializationData(IConfigurationElement config, String propertyName, Object data) { String handlerClass = config.getAttribute(propertyName); String type = config.getAttribute(ATTR_TYPE); String priority = config.getAttribute(ATTR_PRIORITY); this.type = type; if(priority!=null...
public void setInitializationData(IConfigurationElement config, String propertyName, Object data) { String handlerClass = config.getAttribute(propertyName); String type = config.getAttribute(ATTR_TYPE); String priority = config.getAttribute(ATTR_PRIORITY); this.type = type; if(priority!=null...
diff --git a/freeplane/src/org/freeplane/features/mindmapmode/link/SetLinkByTextFieldAction.java b/freeplane/src/org/freeplane/features/mindmapmode/link/SetLinkByTextFieldAction.java index 20aa996ab..eb4d7fe63 100644 --- a/freeplane/src/org/freeplane/features/mindmapmode/link/SetLinkByTextFieldAction.java +++ b/freepla...
true
true
public void actionPerformed(final ActionEvent e) { final ModeController modeController = getModeController(); final NodeModel selectedNode = modeController.getMapController().getSelectedNode(); final String inputValue = UITools.showInputDialog(getController(), getController().getSelection().getSelected(), ...
public void actionPerformed(final ActionEvent e) { final ModeController modeController = getModeController(); final NodeModel selectedNode = modeController.getMapController().getSelectedNode(); final String inputValue = UITools.showInputDialog(getController(), getController().getSelection().getSelected(), ...
diff --git a/domains/jms/src/main/java/org/openengsb/domains/jms/JSONSerialisationInvocationHandler.java b/domains/jms/src/main/java/org/openengsb/domains/jms/JSONSerialisationInvocationHandler.java index 0e3583943..5e37ef9ab 100644 --- a/domains/jms/src/main/java/org/openengsb/domains/jms/JSONSerialisationInvocationHa...
true
true
public Object invoke(Object arg0, Method arg1, Object[] arg2) { ObjectMapper mapper = new ObjectMapper(); StringWriter writer = new StringWriter(); try { mapper.writeValue(writer, arg2); String send = sender.send(arg1.getName(), writer.toString()); if (arg...
public Object invoke(Object arg0, Method arg1, Object[] arg2) { ObjectMapper mapper = new ObjectMapper(); StringWriter writer = new StringWriter(); try { mapper.writeValue(writer, arg2); String send = sender.send(arg1.getName(), writer.toString()); if ("vo...
diff --git a/branches/kernel-1.2.x/kernel-private/src/main/java/org/sakaiproject/springframework/orm/hibernate/dialect/db2/DB2Dialect9.java b/branches/kernel-1.2.x/kernel-private/src/main/java/org/sakaiproject/springframework/orm/hibernate/dialect/db2/DB2Dialect9.java index f1c9e9ab..61b0309b 100644 --- a/branches/kern...
true
true
public DB2Dialect9() { super(); registerColumnType( Types.VARBINARY, "LONG VARCHAR FOR BIT DATA" ); registerColumnType( Types.VARCHAR, "clob(1000000000)" ); registerColumnType( Types.VARCHAR, 1000000000, "clob($l)" ); registerColumnType( Types.VARCHAR, 32704, "varchar($l)" ); ...
public DB2Dialect9() { super(); registerColumnType( Types.VARBINARY, "LONG VARCHAR FOR BIT DATA" ); registerColumnType( Types.VARCHAR, "clob(1000000000)" ); registerColumnType( Types.VARCHAR, 1000000000, "clob($l)" ); registerColumnType( Types.VARCHAR, 3999, "varchar($l)" ); ...
diff --git a/src/org/uwcs/choob/ChoobDecoderTask.java b/src/org/uwcs/choob/ChoobDecoderTask.java index 7b447f6..ba22f3f 100644 --- a/src/org/uwcs/choob/ChoobDecoderTask.java +++ b/src/org/uwcs/choob/ChoobDecoderTask.java @@ -1,144 +1,144 @@ /* * ChoobThread.java * * Created on June 16, 2005, 7:25 PM */ pack...
true
true
public synchronized void run() { List<ChoobTask> tasks = new LinkedList<ChoobTask>(); // Process event calls first tasks.addAll(modules.plugin.getPlugMan().eventTasks(event)); // Then filters if (event instanceof FilterEvent) { // FilterEvents are messages Message mes = (Message) event; tasks.a...
public synchronized void run() { List<ChoobTask> tasks = new LinkedList<ChoobTask>(); // Process event calls first tasks.addAll(modules.plugin.getPlugMan().eventTasks(event)); // Then filters if (event instanceof FilterEvent) { // FilterEvents are messages Message mes = (Message) event; tasks.a...
diff --git a/org.eclipse.vjet.core.jst/src/org/eclipse/vjet/dsf/ts/util/JstTypeCopier.java b/org.eclipse.vjet.core.jst/src/org/eclipse/vjet/dsf/ts/util/JstTypeCopier.java index 506a5f85..6204e757 100644 --- a/org.eclipse.vjet.core.jst/src/org/eclipse/vjet/dsf/ts/util/JstTypeCopier.java +++ b/org.eclipse.vjet.core.jst/s...
true
true
public static void replace(JstType replace, JstType copy){ replace.clearAll(); replace.setName(copy.getName()); replace.setPackage(copy.getPackage()); replace.setSource(copy.getSource()); replace.setAlias(copy.getAlias()); replace.setAliasTypeName(copy.getAliasTypeName()); replace.setAnnotations(copy.get...
public static void replace(JstType replace, JstType copy){ replace.clearAll(); replace.setName(copy.getName()); replace.setPackage(copy.getPackage()); replace.setSource(copy.getSource()); replace.setAlias(copy.getAlias()); replace.setAliasTypeName(copy.getAliasTypeName()); replace.setAnnotations(copy.get...
diff --git a/loci/formats/in/BMPReader.java b/loci/formats/in/BMPReader.java index e6a97ddf1..6fcd08266 100644 --- a/loci/formats/in/BMPReader.java +++ b/loci/formats/in/BMPReader.java @@ -1,300 +1,301 @@ // // BMPReader.java // /* OME Bio-Formats package for reading and converting biological file formats. Copy...
true
true
protected void initFile(String id) throws FormatException, IOException { if (debug) debug("BMPReader.initFile(" + id + ")"); super.initFile(id); in = new RandomAccessStream(id); status("Reading bitmap header"); in.order(true); // read the first header - 14 bytes addMeta("Magic identifi...
protected void initFile(String id) throws FormatException, IOException { if (debug) debug("BMPReader.initFile(" + id + ")"); super.initFile(id); in = new RandomAccessStream(id); status("Reading bitmap header"); in.order(true); // read the first header - 14 bytes addMeta("Magic identifi...
diff --git a/java/VecGenOpt.java b/java/VecGenOpt.java index 403e9e3..42b3203 100644 --- a/java/VecGenOpt.java +++ b/java/VecGenOpt.java @@ -1,39 +1,39 @@ // Optimizations suggested by Foobar, see http://blog.cdleary.com/2012/06/simple-selfish-and-unscientific-shootout/#comment-547177202 import java.io.BufferedWrit...
true
true
public static void main(String args[]) { if (args.length != 1) { System.err.println("Usage: VecGen <elem_count>"); System.exit(-1); } int count = Integer.parseInt(args[0]); try { FileWriter fw = new FileWriter("vec_gen.out"); Buffered...
public static void main(String args[]) { if (args.length != 1) { System.err.println("Usage: VecGen <elem_count>"); System.exit(-1); } int count = Integer.parseInt(args[0]); try { FileWriter fw = new FileWriter("vec_gen.out"); Buffered...
diff --git a/src/jmt/analytical/SolverMultiOpen.java b/src/jmt/analytical/SolverMultiOpen.java index 179d99d..5762d87 100644 --- a/src/jmt/analytical/SolverMultiOpen.java +++ b/src/jmt/analytical/SolverMultiOpen.java @@ -1,182 +1,182 @@ /** * Copyright (C) 2007, Laboratorio di Valutazione delle Prestazioni - Po...
true
true
private void solveLI() { for (int i = 0; i < classes; i++) { //throughput of class i clsThroughput[i] = lambda[i]; for (int j = 0; j < stations; j++) { //throughput of class i for station j throughput[j][i] = lambda[i] * visits[j][i]; //utilization of class i for station ...
private void solveLI() { for (int i = 0; i < classes; i++) { //throughput of class i clsThroughput[i] = lambda[i]; for (int j = 0; j < stations; j++) { //throughput of class i for station j throughput[j][i] = lambda[i] * visits[j][i]; //utilization of class i for station ...
diff --git a/src/Source/CWalkerStand.java b/src/Source/CWalkerStand.java index b8c98d5..baf7dc3 100644 --- a/src/Source/CWalkerStand.java +++ b/src/Source/CWalkerStand.java @@ -1,65 +1,65 @@ package Source; import Util.CPosition; /** * User: bohnp1 * Date: 05.11.13 * Time: 19:08 */ public class CWalkerS...
true
true
public boolean calcNextDesiredPosition(Integer roundCount) { if(this.desiredPath.size() < 1) { this.desiredNextPosition = null; return false; } if(roundCount == 1) { CPosition nextCheckPoint = this.desiredPath.getFirst(); Double xDelta = next...
public boolean calcNextDesiredPosition(Integer roundCount) { if(this.desiredPath.size() < 1) { this.desiredNextPosition = null; return false; } if(roundCount == 1) { CPosition nextCheckPoint = this.desiredPath.getFirst(); Double xDelta = next...
diff --git a/src/main/java/cc/notsoclever/tools/MyRouteBuilder.java b/src/main/java/cc/notsoclever/tools/MyRouteBuilder.java index a69f3fa..115b568 100644 --- a/src/main/java/cc/notsoclever/tools/MyRouteBuilder.java +++ b/src/main/java/cc/notsoclever/tools/MyRouteBuilder.java @@ -1,106 +1,106 @@ package cc.notsoclever...
true
true
public void configure() { getContext().addComponent("restlet", new RestletComponent(new Component())); // KeyStoreParameters ksp = new KeyStoreParameters(); // ksp.setResource("keystore.jks"); // ksp.setPassword("password"); // // KeyManagersParameters kmp = new KeyManagersParameters(); //...
public void configure() { // getContext().addComponent("restlet", new RestletComponent(new Component())); // KeyStoreParameters ksp = new KeyStoreParameters(); // ksp.setResource("keystore.jks"); // ksp.setPassword("password"); // // KeyManagersParameters kmp = new KeyManagersParameters(); ...
diff --git a/android/src/playn/android/AndroidTouchEventHandler.java b/android/src/playn/android/AndroidTouchEventHandler.java index fca9c912..1f8410c1 100644 --- a/android/src/playn/android/AndroidTouchEventHandler.java +++ b/android/src/playn/android/AndroidTouchEventHandler.java @@ -1,133 +1,142 @@ /** * Copyrigh...
false
true
public boolean onMotionEvent(MotionEvent nativeEvent) { double time = nativeEvent.getEventTime(); int action = nativeEvent.getAction(); boolean[] preventDefault = {false}; Touch.Event[] touches = parseMotionEvent(nativeEvent, preventDefault); Touch.Event pointerEvent = touches[0]; Pointer.Eve...
public boolean onMotionEvent(MotionEvent nativeEvent) { double time = nativeEvent.getEventTime(); int action = nativeEvent.getAction(); int changed = (action & MotionEvent.ACTION_POINTER_INDEX_MASK) >> MotionEvent.ACTION_POINTER_INDEX_SHIFT; boolean[] preventDefault = {false}; Touch.Event...
diff --git a/bookstore-shared/src/main/java/com/apress/prospringmvc/bookstore/config/InfrastructureContextConfiguration.java b/bookstore-shared/src/main/java/com/apress/prospringmvc/bookstore/config/InfrastructureContextConfiguration.java index 5505fae..2d84bfe 100644 --- a/bookstore-shared/src/main/java/com/apress/pro...
false
true
public FactoryBean<EntityManagerFactory> entityManagerFactory() { LocalContainerEntityManagerFactoryBean localContainerEntityManagerFactoryBean = new LocalContainerEntityManagerFactoryBean(); localContainerEntityManagerFactoryBean.setPersistenceUnitName("bookstore"); localContainerEntityMana...
public FactoryBean<EntityManagerFactory> entityManagerFactory() { LocalContainerEntityManagerFactoryBean localContainerEntityManagerFactoryBean = new LocalContainerEntityManagerFactoryBean(); localContainerEntityManagerFactoryBean.setDataSource(this.dataSource); localContainerEntityManagerFa...
diff --git a/src/org/digitalcampus/mobile/quiz/model/questiontypes/MultiChoice.java b/src/org/digitalcampus/mobile/quiz/model/questiontypes/MultiChoice.java index 295c503..6398169 100644 --- a/src/org/digitalcampus/mobile/quiz/model/questiontypes/MultiChoice.java +++ b/src/org/digitalcampus/mobile/quiz/model/questionty...
true
true
public void mark(){ // loop through the responses // find whichever are set as selected and add up the responses float total = 0; for (Response r : responseOptions){ Iterator<String> itr = this.userResponses.iterator(); while(itr.hasNext()) { String a = itr.next(); if (r.getTitle().equals(a))...
public void mark(){ // loop through the responses // find whichever are set as selected and add up the responses float total = 0; for (Response r : responseOptions){ Iterator<String> itr = this.userResponses.iterator(); while(itr.hasNext()) { String a = itr.next(); if (r.getTitle().equals(a))...
diff --git a/VacationTracker/src/com/jbalboni/vacation/LeaveStateManager.java b/VacationTracker/src/com/jbalboni/vacation/LeaveStateManager.java index 9351c3a..bfc6ad1 100644 --- a/VacationTracker/src/com/jbalboni/vacation/LeaveStateManager.java +++ b/VacationTracker/src/com/jbalboni/vacation/LeaveStateManager.java @@ ...
true
true
public static VacationTracker createVacationTracker(SharedPreferences prefs, String categoryPrefix) { String startDateStr = prefs.getString("startDate",null); String leaveInterval = prefs.getString("leaveInterval", "Daily"); if (leaveInterval.equals("Day")) leaveInterval = "D...
public static VacationTracker createVacationTracker(SharedPreferences prefs, String categoryPrefix) { String startDateStr = prefs.getString("startDate",null); String leaveInterval = prefs.getString("leaveInterval", "Daily"); if (leaveInterval.equals("Day")) leaveInterval = "D...
diff --git a/src/main/java/org/infoscoop/request/filter/rss/RssJsonResultBuilder.java b/src/main/java/org/infoscoop/request/filter/rss/RssJsonResultBuilder.java index 5f687c03..ed5d8665 100644 --- a/src/main/java/org/infoscoop/request/filter/rss/RssJsonResultBuilder.java +++ b/src/main/java/org/infoscoop/request/filter...
false
true
public String getResult(int pageNumber) { StringBuffer rssJson = new StringBuffer(); rssJson.append("{statusCode:").append(statusCode).append(","); rssJson.append("message:\"").append(message).append("\","); rssJson.append("itemCount:").append(this.getItemCount()).append(","); rssJson.append("latestItemCo...
public String getResult(int pageNumber) { StringBuffer rssJson = new StringBuffer(); rssJson.append("{statusCode:").append(statusCode).append(","); rssJson.append("message:\"").append(message).append("\","); rssJson.append("itemCount:").append(this.getItemCount()).append(","); rssJson.append("latestItemCo...
diff --git a/src/me/libraryaddict/Hungergames/Abilities/Scout.java b/src/me/libraryaddict/Hungergames/Abilities/Scout.java index d5dcb23..ebd8476 100644 --- a/src/me/libraryaddict/Hungergames/Abilities/Scout.java +++ b/src/me/libraryaddict/Hungergames/Abilities/Scout.java @@ -1,39 +1,39 @@ package me.libraryaddict.Hun...
true
true
public void gameStartEvent(GameStartEvent event) { Bukkit.getScheduler().scheduleSyncRepeatingTask(HungergamesApi.getHungergames(), new Runnable() { public void run() { for (Player p : Bukkit.getOnlinePlayers()) if (hasAbility(p.getName())) ...
public void gameStartEvent(GameStartEvent event) { Bukkit.getScheduler().scheduleSyncRepeatingTask(HungergamesApi.getHungergames(), new Runnable() { public void run() { for (Player p : Bukkit.getOnlinePlayers()) if (hasAbility(p.getName())) ...
diff --git a/io/plugins/eu.esdihumboldt.hale.io.xsd.test/src/eu/esdihumboldt/hale/io/xsd/reader/XmlSchemaReaderTest.java b/io/plugins/eu.esdihumboldt.hale.io.xsd.test/src/eu/esdihumboldt/hale/io/xsd/reader/XmlSchemaReaderTest.java index c064ed95d..8a4b089c6 100644 --- a/io/plugins/eu.esdihumboldt.hale.io.xsd.test/src/e...
true
true
private void testShiporderStructure(XmlElement shiporder, String ns) { assertNotNull(shiporder); assertEquals("shiporder", shiporder.getName().getLocalPart()); // shiporder type TypeDefinition shiporderType = shiporder.getType(); assertNotNull(shiporderType); Collection<? extends ChildDefinition<?>> ...
private void testShiporderStructure(XmlElement shiporder, String ns) { assertNotNull(shiporder); assertEquals("shiporder", shiporder.getName().getLocalPart()); // shiporder type TypeDefinition shiporderType = shiporder.getType(); assertNotNull(shiporderType); Collection<? extends ChildDefinition<?>> ...
diff --git a/code/android/src/main/java/no/kantega/android/TransactionsActivity.java b/code/android/src/main/java/no/kantega/android/TransactionsActivity.java index 95f58f3..1df2cd6 100644 --- a/code/android/src/main/java/no/kantega/android/TransactionsActivity.java +++ b/code/android/src/main/java/no/kantega/android/T...
true
true
public View getView(int position, View convertView, ViewGroup parent) { View v = convertView; if (v == null) { LayoutInflater vi = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); v = vi.inflate(R.layout.transactionrow, null...
public View getView(int position, View convertView, ViewGroup parent) { View v = convertView; if (v == null) { LayoutInflater vi = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); v = vi.inflate(R.layout.transactionrow, null...
diff --git a/pn-dispatcher/src/main/java/info/papyri/dispatch/MDReader.java b/pn-dispatcher/src/main/java/info/papyri/dispatch/MDReader.java index f6c2808c..5a1ccb0d 100644 --- a/pn-dispatcher/src/main/java/info/papyri/dispatch/MDReader.java +++ b/pn-dispatcher/src/main/java/info/papyri/dispatch/MDReader.java @@ -1,154...
false
true
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); StringBuilder requestPath = new StringBuilder(DOCSHOME); requestPath.appe...
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); StringBuilder requestPath = new StringBuilder(DOCSHOME); requestPath.append("/").append(request.getParameter("f")).ap...
diff --git a/test/src/com/redhat/ceylon/compiler/java/test/interop/InteropTest.java b/test/src/com/redhat/ceylon/compiler/java/test/interop/InteropTest.java index 6d2df0712..260c862b7 100755 --- a/test/src/com/redhat/ceylon/compiler/java/test/interop/InteropTest.java +++ b/test/src/com/redhat/ceylon/compiler/java/test/...
false
true
public void testIopNamedInvocations(){ assertErrors("NamedInvocations", new CompilerError(30, "could not determine type of function or value reference: createTempFile"), new CompilerError(30, "overloaded declarations may not be called using named arguments: createTempFile"), ...
public void testIopNamedInvocations(){ assertErrors("NamedInvocations", new CompilerError(30, "could not determine type of function or value reference: createTempFile"), new CompilerError(30, "overloaded declarations may not be called using named arguments: createTempFile"), ...
diff --git a/Factory/src/factory/managers/GantryManager.java b/Factory/src/factory/managers/GantryManager.java index 25b0a46..036900c 100644 --- a/Factory/src/factory/managers/GantryManager.java +++ b/Factory/src/factory/managers/GantryManager.java @@ -1,180 +1,180 @@ //Ben Mayeux package factory.managers; import ...
false
true
public void doCommand(ArrayList<String> pCmd) { int size = pCmd.size(); //parameters lay between i = 2 and i = size - 2 String action = pCmd.get(0); String identifier = pCmd.get(1); System.out.println("Got command"); System.out.println(action); System.out.println(identifier); if(action.equals("cmd")){ ...
public void doCommand(ArrayList<String> pCmd) { int size = pCmd.size(); //parameters lay between i = 2 and i = size - 2 String action = pCmd.get(0); String identifier = pCmd.get(1); System.out.println("Got command"); System.out.println(action); System.out.println(identifier); if(action.equals("cmd")){ ...
diff --git a/src/main/java/org/atlasapi/equiv/EquivModule.java b/src/main/java/org/atlasapi/equiv/EquivModule.java index 1f7a13890..4cbd52c6a 100644 --- a/src/main/java/org/atlasapi/equiv/EquivModule.java +++ b/src/main/java/org/atlasapi/equiv/EquivModule.java @@ -1,265 +1,265 @@ /* Copyright 2010 Meta Broadcast Ltd ...
true
true
public @Bean ContentEquivalenceUpdater<Content> contentUpdater() { Set<Publisher> musicPublishers = ImmutableSet.of(Publisher.BBC_MUSIC, Publisher.YOUTUBE, Publisher.SPOTIFY, Publisher.SOUNDCLOUD, Publisher.RDIO, Publisher.AMAZON_UK); //Generally acceptable publishers. Set<...
public @Bean ContentEquivalenceUpdater<Content> contentUpdater() { Set<Publisher> musicPublishers = ImmutableSet.of(Publisher.BBC_MUSIC, Publisher.YOUTUBE, Publisher.SPOTIFY, Publisher.SOUNDCLOUD, Publisher.RDIO, Publisher.AMAZON_UK); //Generally acceptable publishers. Set<...
diff --git a/org.caleydo.core/src/org/caleydo/core/util/clusterer/nominal/MetalDecisionTreeClusterer.java b/org.caleydo.core/src/org/caleydo/core/util/clusterer/nominal/MetalDecisionTreeClusterer.java index 257e003bf..3b38253fe 100644 --- a/org.caleydo.core/src/org/caleydo/core/util/clusterer/nominal/MetalDecisionTreeC...
true
true
public TempResult getSortedVA(ISet set, ClusterState clusterState, int iProgressBarOffsetValue, int iProgressBarMultiplier) { ContentVirtualArray contentVA = set.getContentData(Set.CONTENT).getContentVA(); initMetalStorages(set); ArrayList<ArrayList<Integer>> clusters = new ArrayList<ArrayList<Integer>>(6); ...
public TempResult getSortedVA(ISet set, ClusterState clusterState, int iProgressBarOffsetValue, int iProgressBarMultiplier) { ContentVirtualArray contentVA = set.getContentData(Set.CONTENT).getContentVA(); initMetalStorages(set); ArrayList<ArrayList<Integer>> clusters = new ArrayList<ArrayList<Integer>>(6); ...
diff --git a/src/main/java/edu/gatech/cs2340/risky/models/Battle.java b/src/main/java/edu/gatech/cs2340/risky/models/Battle.java index 0d4bf4b..51dc294 100644 --- a/src/main/java/edu/gatech/cs2340/risky/models/Battle.java +++ b/src/main/java/edu/gatech/cs2340/risky/models/Battle.java @@ -1,74 +1,74 @@ package edu.gate...
true
true
public BattleRecord wage() throws Exception { if (!this.isReadyToWage()) { throw new Exception("Yowzers, battle not ready to wage"); } // TODO: implement logic of an attack as defined in R15 // more specifically, under Rules of Risk -> Gameplay -> Attacking in ...
public BattleRecord wage() throws Exception { if (!this.isReadyToWage()) { throw new Exception("Yowzers, battle not ready to wage"); } // TODO: implement logic of an attack as defined in R15 // more specifically, under Rules of Risk -> Gameplay -> Attacking in ...
diff --git a/src/com/android/bluetooth/map/BluetoothMapService.java b/src/com/android/bluetooth/map/BluetoothMapService.java index c82eb60..e63ade7 100644 --- a/src/com/android/bluetooth/map/BluetoothMapService.java +++ b/src/com/android/bluetooth/map/BluetoothMapService.java @@ -1,1024 +1,1026 @@ /* * Copyright (C) ...
true
true
public void run() { BluetoothServerSocket serverSocket; if (mServerSocket == null) { if (!initSocket()) { return; } } while (!stopped) { try { if (DEB...
public void run() { BluetoothServerSocket serverSocket; if (mServerSocket == null) { if (!initSocket()) { return; } } while (!stopped) { try { if (DEB...
diff --git a/src/com/fsck/k9/mail/store/LocalStore.java b/src/com/fsck/k9/mail/store/LocalStore.java index 91c651e3..be03ea9d 100644 --- a/src/com/fsck/k9/mail/store/LocalStore.java +++ b/src/com/fsck/k9/mail/store/LocalStore.java @@ -1,2794 +1,2794 @@ package com.fsck.k9.mail.store; import android.app.Applicatio...
true
true
private void doDbUpgrade(SQLiteDatabase mDb, Application application) { Log.i(K9.LOG_TAG, String.format("Upgrading database from version %d to version %d", mDb.getVersion(), DB_VERSION)); AttachmentProvider.clear(application); try { ...
private void doDbUpgrade(SQLiteDatabase mDb, Application application) { Log.i(K9.LOG_TAG, String.format("Upgrading database from version %d to version %d", mDb.getVersion(), DB_VERSION)); AttachmentProvider.clear(application); try { ...
diff --git a/src/main/java/net/sacredlabyrinth/phaed/simpleclans/SimpleClans.java b/src/main/java/net/sacredlabyrinth/phaed/simpleclans/SimpleClans.java index 3a8ac4f..fa185d8 100644 --- a/src/main/java/net/sacredlabyrinth/phaed/simpleclans/SimpleClans.java +++ b/src/main/java/net/sacredlabyrinth/phaed/simpleclans/Simp...
true
true
public void onEnable() { long start = System.currentTimeMillis(); instance = this; settingsManager = new SettingsManager(); spout = checkSpout(); lang = PropertyResourceBundle.getBundle("languages.lang"); debug(MessageFormat.format(lang.getString("version.loade...
public void onEnable() { long start = System.currentTimeMillis(); instance = this; settingsManager = new SettingsManager(); spout = checkSpout(); lang = PropertyResourceBundle.getBundle("languages.lang"); debug(MessageFormat.format(lang.getString("version.loade...
diff --git a/stripes/src/net/sourceforge/stripes/action/RedirectResolution.java b/stripes/src/net/sourceforge/stripes/action/RedirectResolution.java index 5a2b4bf9..bb451535 100644 --- a/stripes/src/net/sourceforge/stripes/action/RedirectResolution.java +++ b/stripes/src/net/sourceforge/stripes/action/RedirectResolutio...
true
true
public void execute(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { if (this.includeRequestParameters) { addParameters(request.getParameterMap()); } // Add any beans to the flash scope if (this.beans != null) { ...
public void execute(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { if (this.includeRequestParameters) { addParameters(request.getParameterMap()); } // Add any beans to the flash scope if (this.beans != null) { ...
diff --git a/src/com/hack/balls/engine/PhysicsEngine.java b/src/com/hack/balls/engine/PhysicsEngine.java index 5c4e9c4..56b62d3 100644 --- a/src/com/hack/balls/engine/PhysicsEngine.java +++ b/src/com/hack/balls/engine/PhysicsEngine.java @@ -1,67 +1,69 @@ package com.hack.balls.engine; import java.util.List; import...
false
true
public void run() { while (!gameOver) { gameOver = PhysicsUtil.outOfBounds(player, x, y); for (Ball b : balls) { b.setX(b.getX() + b.getDx()); b.setY(b.getY() + b.getDy()); } for (Ball b : balls) { if (!(b == player)) { if (PhysicsUtil.colliding(player, b)) score += ((Coin) b).getV...
public void run() { while (!gameOver) { gameOver = PhysicsUtil.outOfBounds(player, x, y); for (Ball b : balls) { b.setX(b.getX() + b.getDx()); b.setY(b.getY() + b.getDy()); } for (int i = 0; i < balls.size(); i++) { Ball b = balls.get(i); if (!(b == player)) { if (PhysicsUtil.collidi...
diff --git a/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/css/dom/AbstractStyle.java b/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/css/dom/AbstractStyle.java index cd02944f0..e8db18b8a 100644 --- a/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/rep...
true
true
public void read( DataInputStream in ) throws IOException { int validCount = IOUtil.readInt( in ); for ( int i = 0; i < validCount; i++ ) { String propertyName = IOUtil.readString( in ); int index = getPropertyIndex( propertyName ); if ( index == -1 ) { String propertyCssText = IOUtil.readString...
public void read( DataInputStream in ) throws IOException { int validCount = IOUtil.readInt( in ); for ( int i = 0; i < validCount; i++ ) { String propertyName = IOUtil.readString( in ); int index = getPropertyIndex( propertyName ); if ( index == -1 ) { String propertyCssText = IOUtil.readString...
diff --git a/src/PrimeFactorsTest.java b/src/PrimeFactorsTest.java index e598579..fb6ad19 100644 --- a/src/PrimeFactorsTest.java +++ b/src/PrimeFactorsTest.java @@ -1,19 +1,19 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.util.ArrayList; import org.junit....
true
true
public void testJUnit() { assertTrue("The compuler isn't feeling well today...", true); }
public void testJUnit() { assertTrue("The computer isn't feeling well today...", true); }
diff --git a/MythicDrops/src/main/java/net/nunnerycode/bukkit/mythicdrops/items/MythicDropBuilder.java b/MythicDrops/src/main/java/net/nunnerycode/bukkit/mythicdrops/items/MythicDropBuilder.java index 30ee2e87..66ed7779 100644 --- a/MythicDrops/src/main/java/net/nunnerycode/bukkit/mythicdrops/items/MythicDropBuilder.ja...
false
true
private List<String> generateLore(ItemStack itemStack) { List<String> lore = new ArrayList<String>(); if (itemStack == null || tier == null) { return lore; } List<String> tooltipFormat = MythicDropsPlugin.getInstance().getConfigSettings().getTooltipFormat(); String minecraftName = getMinecraftMaterialNam...
private List<String> generateLore(ItemStack itemStack) { List<String> lore = new ArrayList<String>(); if (itemStack == null || tier == null) { return lore; } List<String> tooltipFormat = MythicDropsPlugin.getInstance().getConfigSettings().getTooltipFormat(); String minecraftName = getMinecraftMaterialNam...
diff --git a/org.eclipse.mylyn.monitor.ui/src/org/eclipse/mylyn/monitor/ui/MonitorUiPlugin.java b/org.eclipse.mylyn.monitor.ui/src/org/eclipse/mylyn/monitor/ui/MonitorUiPlugin.java index d4fbd0da..6e345542 100644 --- a/org.eclipse.mylyn.monitor.ui/src/org/eclipse/mylyn/monitor/ui/MonitorUiPlugin.java +++ b/org.eclipse....
true
true
public void start(BundleContext context) throws Exception { super.start(context); System.err.println(">>>>>>>>> Monitor UI Started"); PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { try { getWorkbench().addWindowListener(WINDOW_LISTENER); launchingWorkbe...
public void start(BundleContext context) throws Exception { super.start(context); System.err.println(">>>> Monitor UI Started"); PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { try { getWorkbench().addWindowListener(WINDOW_LISTENER); launchingWorkbenchWi...
diff --git a/src/org/apache/xalan/xsltc/dom/MultiDOM.java b/src/org/apache/xalan/xsltc/dom/MultiDOM.java index 82264631..994c5dca 100644 --- a/src/org/apache/xalan/xsltc/dom/MultiDOM.java +++ b/src/org/apache/xalan/xsltc/dom/MultiDOM.java @@ -1,686 +1,686 @@ /* * @(#)$Id$ * * The Apache Software License, Version...
true
true
private int addDOMAdapter(DOMAdapter adapter, boolean indexByURI) { // Add the DOM adapter to the array of DOMs DOM dom = adapter.getDOMImpl(); int domNo = 1; int dtmSize = 1; SuballocatedIntVector dtmIds = null; if (dom instanceof DTMDefaultBase) { ...
private int addDOMAdapter(DOMAdapter adapter, boolean indexByURI) { // Add the DOM adapter to the array of DOMs DOM dom = adapter.getDOMImpl(); int domNo = 1; int dtmSize = 1; SuballocatedIntVector dtmIds = null; if (dom instanceof DTMDefaultBase) { ...
diff --git a/src/SRMA.java b/src/SRMA.java index b884c2d..2c607fc 100644 --- a/src/SRMA.java +++ b/src/SRMA.java @@ -1,403 +1,403 @@ /* * LICENSE to be determined */ package srma; import srma.Align; import net.sf.samtools.*; import net.sf.samtools.util.*; import net.sf.picard.cmdline.*; import net.sf.pic...
true
true
protected int doWork() { int ctr=0; int prevReferenceIndex=-1, prevAlignmentStart=-1; try { // this is annoying QUIET = true; this.startTime = System.nanoTime(); // Check input files IoUtil.assertFileIsReadable(INPUT); ...
protected int doWork() { int ctr=0; int prevReferenceIndex=-1, prevAlignmentStart=-1; try { // this is annoying QUIET = true; this.startTime = System.nanoTime(); // Check input files IoUtil.assertFileIsReadable(INPUT); ...
diff --git a/src/Main7.java b/src/Main7.java index 9d9afd9..d2424c2 100644 --- a/src/Main7.java +++ b/src/Main7.java @@ -1,6 +1,6 @@ public class Main7 { public static void main(String[] args) { - System.out.println("Hello World testing 07 !"); + System.out.println("Hello World testing 77 !"); ...
true
true
public static void main(String[] args) { System.out.println("Hello World testing 07 !"); }
public static void main(String[] args) { System.out.println("Hello World testing 77 !"); }
diff --git a/bdayApp/src/com/mcafee/bapp/action/LogoutAction.java b/bdayApp/src/com/mcafee/bapp/action/LogoutAction.java index 2a99b04..8e85b27 100644 --- a/bdayApp/src/com/mcafee/bapp/action/LogoutAction.java +++ b/bdayApp/src/com/mcafee/bapp/action/LogoutAction.java @@ -1,22 +1,24 @@ package com.mcafee.bapp.action; ...
true
true
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession session = request.getSession(false); session.invalidate(); return new ModelAndView(ActionConstants.REDIRECT+ActionConstants.INDEX_JSP); }
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession session = request.getSession(false); if(session!=null){ session.invalidate(); } return new ModelAndView(ActionConstants.REDIRECT+ActionConstants.INDEX_JSP); }
diff --git a/src/FilePath.java b/src/FilePath.java index 82fd5ac..7259ddf 100644 --- a/src/FilePath.java +++ b/src/FilePath.java @@ -1,30 +1,28 @@ package src; import java.io.BufferedReader; import java.io.FileReader; import java.util.ArrayList; public class FilePath { ArrayList<String[]> dataPath = new Arra...
true
true
public void readFile(){ BufferedReader br = null; String[] pathOfFile; try{ br = new BufferedReader(new FileReader("attribute.ini")); while ((pathOfFile = br.readLine().split(" ==> ")) != null) { dataPath.add(pathOfFile); } }catch (Exception e) { e.printStackTrace(); } }
public void readFile(){ BufferedReader br = null; String[] pathOfFile; try{ br = new BufferedReader(new FileReader("attribute.ini")); while ((pathOfFile = br.readLine().split(" ==> ")) != null) { dataPath.add(pathOfFile); } }catch (Exception e) { } }
diff --git a/src/main/java/io/qdb/server/controller/ServerController.java b/src/main/java/io/qdb/server/controller/ServerController.java index 699606c..3082c7e 100644 --- a/src/main/java/io/qdb/server/controller/ServerController.java +++ b/src/main/java/io/qdb/server/controller/ServerController.java @@ -1,67 +1,67 @@ ...
true
true
protected void list(Call call, int offset, int limit) throws IOException { StatusDTO dto = new StatusDTO(); int secs = (int)((System.currentTimeMillis() - started) / 1000); int days = secs / 24 * 60 * 60; secs %= 24 * 60 * 60; dto.uptime = (days == 1 ? "1 day " : days > 0 ? ...
protected void list(Call call, int offset, int limit) throws IOException { StatusDTO dto = new StatusDTO(); int secs = (int)((System.currentTimeMillis() - started) / 1000); int days = secs / (24 * 60 * 60); secs %= 24 * 60 * 60; dto.uptime = (days == 1 ? "1 day " : days > 0 ...
diff --git a/cruisecontrol/main/test/net/sourceforge/cruisecontrol/util/ProcessesTest.java b/cruisecontrol/main/test/net/sourceforge/cruisecontrol/util/ProcessesTest.java index 9d36b08a..2d545aba 100644 --- a/cruisecontrol/main/test/net/sourceforge/cruisecontrol/util/ProcessesTest.java +++ b/cruisecontrol/main/test/net...
true
true
public void testShouldStartStreamPumperForErrorStream() throws IOException { Processes.setRuntime(new MockExecutor()); Commandline c = new Commandline(); c.setExecutable("UnitTestDummyExcectuable"); int preCount = Thread.activeCount(); assertNotNull(Processes.execute(c)); ...
public void testShouldStartStreamPumperForErrorStream() throws IOException { Processes.setRuntime(new MockExecutor()); Commandline c = new Commandline(); c.setExecutable("UnitTestDummyExcectuable"); int preCount = Thread.activeCount(); assertNotNull(Processes.execute(c)); ...
diff --git a/src/com/prealpha/extempdb/server/parse/GuardianArticleParser.java b/src/com/prealpha/extempdb/server/parse/GuardianArticleParser.java index 48ccb02..631fca5 100644 --- a/src/com/prealpha/extempdb/server/parse/GuardianArticleParser.java +++ b/src/com/prealpha/extempdb/server/parse/GuardianArticleParser.java...
false
true
private ProtoArticle getFromHtml(InputStream html) throws ArticleParseException { org.w3c.dom.Document doc = tidy.parseDOM(html, null); doc.removeChild(doc.getDoctype()); Document document = builder.build(doc); Namespace namespace = document.getRootElement().getNamespace(); // get the title Filter tit...
private ProtoArticle getFromHtml(InputStream html) throws ArticleParseException { org.w3c.dom.Document doc = tidy.parseDOM(html, null); doc.removeChild(doc.getDoctype()); Document document = builder.build(doc); Namespace namespace = document.getRootElement().getNamespace(); // get the title Filter tit...
diff --git a/src/friskstick/cops/plugin/FriskStick.java b/src/friskstick/cops/plugin/FriskStick.java index 1bff22a..0d349c4 100644 --- a/src/friskstick/cops/plugin/FriskStick.java +++ b/src/friskstick/cops/plugin/FriskStick.java @@ -1,99 +1,99 @@ package friskstick.cops.plugin; import java.util.logging.Logger; i...
true
true
public void Stick(PlayerInteractEntityEvent event){ if(event.getRightClicked() instanceof Player && event.getPlayer().getItemInHand().getType() == Material.STICK){ Player frisked = (Player)event.getRightClicked(); Player cop = event.getPlayer(); if(cop.hasPermission("friskstick.use")){ PlayerInventory i...
public void stick(PlayerInteractEntityEvent event){ if(event.getRightClicked() instanceof Player && event.getPlayer().getItemInHand().getType() == Material.STICK){ Player frisked = (Player)event.getRightClicked(); Player cop = event.getPlayer(); if(cop.hasPermission("friskstick.use")){ PlayerInventory i...
diff --git a/src/main/java/org/quantumbadger/redreader/reddit/prepared/RedditPreparedMessage.java b/src/main/java/org/quantumbadger/redreader/reddit/prepared/RedditPreparedMessage.java index 8bda9ad..78d3ef1 100644 --- a/src/main/java/org/quantumbadger/redreader/reddit/prepared/RedditPreparedMessage.java +++ b/src/main...
true
true
public RedditPreparedMessage(final Context context, final RedditMessage message, final long timestamp) { this.src = message; // TODO string // TODO custom time final TypedArray appearance = context.obtainStyledAttributes(new int[]{ R.attr.rrCommentHeaderBoldCol, R.attr.rrCommentHeaderAuthorCol, })...
public RedditPreparedMessage(final Context context, final RedditMessage message, final long timestamp) { this.src = message; // TODO string // TODO custom time final TypedArray appearance = context.obtainStyledAttributes(new int[]{ R.attr.rrCommentHeaderBoldCol, R.attr.rrCommentHeaderAuthorCol, })...
diff --git a/SWADroid/src/es/ugr/swad/swadroid/modules/notifications/NotificationsCursorAdapter.java b/SWADroid/src/es/ugr/swad/swadroid/modules/notifications/NotificationsCursorAdapter.java index dbe290b3..ffac7665 100644 --- a/SWADroid/src/es/ugr/swad/swadroid/modules/notifications/NotificationsCursorAdapter.java +++...
true
true
public void bindView(View view, Context context, Cursor cursor) { final Context ctx = context; final Long notificationCode = cursor.getLong(cursor.getColumnIndex("id")); long unixTime; String type, sender, senderFirstname, senderSurname1, senderSurname2, summaryText; String contentText; String[] dateConten...
public void bindView(View view, Context context, Cursor cursor) { final Context ctx = context; final Long notificationCode = cursor.getLong(cursor.getColumnIndex("id")); long unixTime; String type, sender, senderFirstname, senderSurname1, senderSurname2, summaryText; String contentText; String[] dateConten...
diff --git a/dsr/src/main/java/eu/emi/dsr/infrastructure/InputFilter.java b/dsr/src/main/java/eu/emi/dsr/infrastructure/InputFilter.java index 55669ca..2bb635a 100644 --- a/dsr/src/main/java/eu/emi/dsr/infrastructure/InputFilter.java +++ b/dsr/src/main/java/eu/emi/dsr/infrastructure/InputFilter.java @@ -1,58 +1,58 @@ ...
true
true
public ContainerRequest filter(ContainerRequest request) throws WebApplicationException { // Use this filter for only the serviceadmin resource if(!request.getPath().equals("serviceadmin")){ // Don't need filtering this message because it is not use a serviceadmin resource. return request; } if (l...
public ContainerRequest filter(ContainerRequest request) throws WebApplicationException { // Use this filter for only the serviceadmin resource if(!request.getPath().equals("serviceadmin")){ // Don't need filtering this message because it is not use a serviceadmin resource. return request; } if (l...
diff --git a/src/jp/oxiden/todayslunch/RefreshMenuService.java b/src/jp/oxiden/todayslunch/RefreshMenuService.java index 3c2e3e7..bbad3a9 100644 --- a/src/jp/oxiden/todayslunch/RefreshMenuService.java +++ b/src/jp/oxiden/todayslunch/RefreshMenuService.java @@ -1,101 +1,101 @@ package jp.oxiden.todayslunch; import j...
true
true
public int onStartCommand(Intent intent, int flags, int startId) { Log.d(TAG, "onStartCommand----------------------------------"); RemoteViews rv = new RemoteViews(getPackageName(), R.layout.todayslunch_widget); // テキスト押下イベントでインテント発行 Intent textIntent = new Intent(); textIntent.setAction(ACTION_NAME); Pen...
public int onStartCommand(Intent intent, int flags, int startId) { Log.d(TAG, "onStartCommand----------------------------------"); RemoteViews rv = new RemoteViews(getPackageName(), R.layout.todayslunch_widget); // テキスト押下イベントでインテント発行 Intent textIntent = new Intent(); textIntent.setAction(ACTION_NAME); Pen...
diff --git a/core/src/edu/trunk/wisc/ssec/mcidas/adde/AddeURL.java b/core/src/edu/trunk/wisc/ssec/mcidas/adde/AddeURL.java index 7241a6dc9..9a5a36109 100644 --- a/core/src/edu/trunk/wisc/ssec/mcidas/adde/AddeURL.java +++ b/core/src/edu/trunk/wisc/ssec/mcidas/adde/AddeURL.java @@ -1,603 +1,603 @@ // // AddeURL.java /...
true
true
protected void parseQuery(String query) { String test = getValue(query, KEY_PORT); if (test != null) { setPort(Integer.parseInt(test)); } test = getValue(query, KEY_COMPRESS); if (test != null) { setCompressionFromString(test); } test = getValue(query, KEY_USER); if (test !...
protected void parseQuery(String query) { String test = getValue(query, KEY_PORT); if (test != null) { setPort(Integer.parseInt(test)); } test = getValue(query, KEY_COMPRESS); if (test != null) { setCompressionFromString(test); } test = getValue(query, KEY_USER); if (test !...
diff --git a/MinionApp/src/uw/cse403/minion/GroupCreateActivity.java b/MinionApp/src/uw/cse403/minion/GroupCreateActivity.java index 9227a66..9f14e3a 100644 --- a/MinionApp/src/uw/cse403/minion/GroupCreateActivity.java +++ b/MinionApp/src/uw/cse403/minion/GroupCreateActivity.java @@ -1,190 +1,191 @@ package uw.cse403....
true
true
public void sendInvites(View view) { if (ConnectionChecker.hasConnection(this)) { // Get user invites. EditText groupNameEditText = (EditText) findViewById(R.id.group_name_input); EditText user1EditText = (EditText) findViewById(R.id.user_1_input); EditText user2EditText = (EditText) findViewById(R...
public void sendInvites(View view) { if (ConnectionChecker.hasConnection(this)) { // Get user invites. EditText groupNameEditText = (EditText) findViewById(R.id.group_name_input); EditText user1EditText = (EditText) findViewById(R.id.user_1_input); EditText user2EditText = (EditText) findViewById(R...
diff --git a/src/main/java/net/jhorstmann/json/ArrayIterable.java b/src/main/java/net/jhorstmann/json/ArrayIterable.java index 944f7f9..c373b96 100644 --- a/src/main/java/net/jhorstmann/json/ArrayIterable.java +++ b/src/main/java/net/jhorstmann/json/ArrayIterable.java @@ -1,19 +1,19 @@ package net.jhorstmann.json; ...
true
true
ArrayIterable(Object array) { ArrayIterable.this.length = Array.getLength(array); ArrayIterable.this.array = array; }
ArrayIterable(Object array) { this.length = Array.getLength(array); this.array = array; }
diff --git a/src/tarccompiler/LexicalAnalyzer.java b/src/tarccompiler/LexicalAnalyzer.java index 0fdab5b..d699d8d 100644 --- a/src/tarccompiler/LexicalAnalyzer.java +++ b/src/tarccompiler/LexicalAnalyzer.java @@ -1,133 +1,145 @@ /* * To change this template, choose Tools | Templates * and open the template in the ...
false
true
public ArrayList<Token> getTokensFormSymbolTable(){ String curScope = ""; // Check every lexeme type for(int i=0; i<this.lexemes.size(); i++){ String curLexeme = lexemes.get(i); // Update current scope if(curLexeme.equals("#main")){ ...
public ArrayList<Token> getTokensFormSymbolTable(){ String curScope = ""; // Check every lexeme type for(int i=0; i<this.lexemes.size(); i++){ String curLexeme = lexemes.get(i); // Update current scope if(curLexeme.equals("#main")){ ...
diff --git a/jOOQ/src/main/java/org/jooq/impl/RowBetweenCondition.java b/jOOQ/src/main/java/org/jooq/impl/RowBetweenCondition.java index 5c916025a..b239340d9 100644 --- a/jOOQ/src/main/java/org/jooq/impl/RowBetweenCondition.java +++ b/jOOQ/src/main/java/org/jooq/impl/RowBetweenCondition.java @@ -1,741 +1,741 @@ /** ...
true
true
private final QueryPartInternal delegate(Configuration configuration) { // These casts are safe for RowImpl RowN r = (RowN) row; RowN min = (RowN) minValue; RowN max = (RowN) maxValue; // These dialects don't support the SYMMETRIC keyword at all if (symmetric && asLi...
private final QueryPartInternal delegate(Configuration configuration) { // These casts are safe for RowImpl RowN r = (RowN) row; RowN min = (RowN) minValue; RowN max = (RowN) maxValue; // These dialects don't support the SYMMETRIC keyword at all if (symmetric && asLi...
diff --git a/src/minecraft/co/uk/flansmods/common/teams/CommandTeams.java b/src/minecraft/co/uk/flansmods/common/teams/CommandTeams.java index 010f3f28..558637ac 100644 --- a/src/minecraft/co/uk/flansmods/common/teams/CommandTeams.java +++ b/src/minecraft/co/uk/flansmods/common/teams/CommandTeams.java @@ -1,654 +1,654 ...
true
true
public void processCommand(ICommandSender sender, String[] split) { if(teamsManager == null) { sender.sendChatToPlayer(ChatMessageComponent.createFromText("Teams mod is broken. You will need to look at the server side logs to see what's wrong")); return; } if(split == null || split.length == 0 || split...
public void processCommand(ICommandSender sender, String[] split) { if(teamsManager == null) { sender.sendChatToPlayer(ChatMessageComponent.createFromText("Teams mod is broken. You will need to look at the server side logs to see what's wrong")); return; } if(split == null || split.length == 0 || split...
diff --git a/pure_mp3/pure_mp3/Player.java b/pure_mp3/pure_mp3/Player.java index c541e99..8c1d2d4 100755 --- a/pure_mp3/pure_mp3/Player.java +++ b/pure_mp3/pure_mp3/Player.java @@ -1,237 +1,237 @@ package pure_mp3; /** * Write a description of class Player here. * * @author (your name) * @version (a versi...
true
true
public synchronized void playpause(boolean byUser) { if(musicPlayer == null && (Global.playList.getNumberOfSongs() > 0)) { //if player hasn't started playing yet and and the playmode is random if(playMode == 1 && !playing && byUser) { next(); } else if(playMode == 0 && !playing) { G...
public synchronized void playpause(boolean byUser) { if(musicPlayer == null && (Global.playList.getNumberOfSongs() > 0)) { //if player hasn't started playing yet and and the playmode is random if(playMode == 1 && !playing && byUser) { next(); } else if(playMode == 0 && !playing && byUser) ...
diff --git a/src/cytoscape/util/CyFileFilter.java b/src/cytoscape/util/CyFileFilter.java index aa6a306b8..a4f51f150 100644 --- a/src/cytoscape/util/CyFileFilter.java +++ b/src/cytoscape/util/CyFileFilter.java @@ -1,280 +1,280 @@ // CyFileFilter.java /** Copyright (c) 2002 Institute for Systems Biology and the White...
true
true
public String getDescription() { if(fullDescription == null) { if(description == null || isExtensionListInDescription()) { fullDescription = description==null ? "(" : description + " ("; // build the description from the extension list Enumeration extensions = filters.keys(); if(extensions != null) {...
public String getDescription() { if(fullDescription == null) { if(description == null || isExtensionListInDescription()) { fullDescription = description==null ? "(" : description + " ("; // build the description from the extension list Enumeration extensions = filters.keys(); if(extensions != null) {...
diff --git a/src/main/java/org/eastway/echarts/server/GetPatientSummaryHandler.java b/src/main/java/org/eastway/echarts/server/GetPatientSummaryHandler.java index 6b3cebb..761d123 100644 --- a/src/main/java/org/eastway/echarts/server/GetPatientSummaryHandler.java +++ b/src/main/java/org/eastway/echarts/server/GetPatien...
false
true
public GetPatientSummaryResult execute(GetPatientSummary action, ExecutionContext context) throws ActionException { ServiceUtil util = new ServiceUtil(); try { util.checkSessionExpire(action.getSessionId()); } catch (SessionExpiredException e) { throw new ActionException(e.getMessage()); } catch (DbExcep...
public GetPatientSummaryResult execute(GetPatientSummary action, ExecutionContext context) throws ActionException { ServiceUtil util = new ServiceUtil(); try { util.checkSessionExpire(action.getSessionId()); } catch (SessionExpiredException e) { throw new ActionException(e.getMessage()); } catch (DbExcep...
diff --git a/src/com/tomclaw/mandarin/core/QueryHelper.java b/src/com/tomclaw/mandarin/core/QueryHelper.java index 118967e8..9b24e84b 100644 --- a/src/com/tomclaw/mandarin/core/QueryHelper.java +++ b/src/com/tomclaw/mandarin/core/QueryHelper.java @@ -1,309 +1,309 @@ package com.tomclaw.mandarin.core; import android...
true
true
public static void insertMessage(ContentResolver contentResolver, String appSession, int accountDbId, int buddyDbId, int messageType, String cookie, long messageTime, String messageText, boolean activateDialog) { Log.d(Settings.LOG_TA...
public static void insertMessage(ContentResolver contentResolver, String appSession, int accountDbId, int buddyDbId, int messageType, String cookie, long messageTime, String messageText, boolean activateDialog) { Log.d(Settings.LOG_TA...
diff --git a/src/main/java/com/acmetelecom/PeakOffPeakTime.java b/src/main/java/com/acmetelecom/PeakOffPeakTime.java index 4c471a5..22c41f5 100644 --- a/src/main/java/com/acmetelecom/PeakOffPeakTime.java +++ b/src/main/java/com/acmetelecom/PeakOffPeakTime.java @@ -1,23 +1,23 @@ package com.acmetelecom; public class...
true
true
public PeakOffPeakTime(long peakTime, long offPeakTime){ this.offPeakTime = peakTime; this.peakTime = offPeakTime; }
public PeakOffPeakTime(long peakTime, long offPeakTime){ this.offPeakTime = offPeakTime; this.peakTime = peakTime; }
diff --git a/library/src/com/WazaBe/HoloEverywhere/internal/_SharedPreferencesImpl_JSON.java b/library/src/com/WazaBe/HoloEverywhere/internal/_SharedPreferencesImpl_JSON.java index e2838f72..595d3535 100644 --- a/library/src/com/WazaBe/HoloEverywhere/internal/_SharedPreferencesImpl_JSON.java +++ b/library/src/com/WazaB...
false
true
public _SharedPreferencesImpl_JSON(Context context, String name, int mode) { setCharset("utf-8"); try { File tempFile = new File(context.getApplicationInfo().dataDir + "/shared_prefs"); if (tempFile.exists()) { if (!tempFile.isDirectory()) { if (!tempFile.delete() && !tempFile.mkdirs()) { ...
public _SharedPreferencesImpl_JSON(Context context, String name, int mode) { setCharset("utf-8"); try { File tempFile = new File(context.getApplicationInfo().dataDir + "/shared_prefs"); if (tempFile.exists()) { if (!tempFile.isDirectory()) { if (!tempFile.delete() && !tempFile.mkdirs()) { ...
diff --git a/src/com/oboenikui/rsssearch/getHtmlSource.java b/src/com/oboenikui/rsssearch/getHtmlSource.java index 9367d8f..6d69845 100644 --- a/src/com/oboenikui/rsssearch/getHtmlSource.java +++ b/src/com/oboenikui/rsssearch/getHtmlSource.java @@ -1,86 +1,86 @@ package com.oboenikui.rsssearch; import java.io.IOExc...
true
true
public getHtmlSource(String url) throws ClientProtocolException, IOException, URISyntaxException { URL u; try{ u = new URL(url); } catch (MalformedURLException e) { u = new URL("http",url,""); } HttpClient client = new DefaultHttpClient(); Stri...
public getHtmlSource(String url) throws ClientProtocolException, IOException, URISyntaxException { URL u; try{ u = new URL(url); } catch (MalformedURLException e) { u = new URL("http",url,""); } HttpClient client = new DefaultHttpClient(); Stri...
diff --git a/src/DVN-web/src/edu/harvard/iq/dvn/core/web/admin/GuestBookResponseDataPage.java b/src/DVN-web/src/edu/harvard/iq/dvn/core/web/admin/GuestBookResponseDataPage.java index b407da58..dd84c471 100644 --- a/src/DVN-web/src/edu/harvard/iq/dvn/core/web/admin/GuestBookResponseDataPage.java +++ b/src/DVN-web/src/ed...
false
true
public void init() { guestBookResponsesAll = guestBookResponseServiceBean.findAll(); vdc = getVDCRequestBean().getCurrentVDC(); for (GuestBookResponse gbr : guestBookResponsesAll) { if (gbr.getStudy().getOwner().equals(vdc)) { guestBookResponses.add(gbr); ...
public void init() { guestBookResponsesAll = guestBookResponseServiceBean.findAll(); vdc = getVDCRequestBean().getCurrentVDC(); for (GuestBookResponse gbr : guestBookResponsesAll) { if (gbr.getStudy().getOwner().equals(vdc)) { guestBookResponses.add(gbr); ...
diff --git a/router/java/src/net/i2p/router/RouterThrottleImpl.java b/router/java/src/net/i2p/router/RouterThrottleImpl.java index 214753db2..4b3f683ea 100644 --- a/router/java/src/net/i2p/router/RouterThrottleImpl.java +++ b/router/java/src/net/i2p/router/RouterThrottleImpl.java @@ -1,488 +1,488 @@ package net.i2p.ro...
true
true
public int acceptTunnelRequest() { if (_context.getProperty(Router.PROP_SHUTDOWN_IN_PROGRESS) != null) { if (_log.shouldLog(Log.WARN)) _log.warn("Refusing tunnel request since we are shutting down ASAP"); setTunnelStatus("Rejecting tunnels: Shutting down"); ...
public int acceptTunnelRequest() { if (_context.getProperty(Router.PROP_SHUTDOWN_IN_PROGRESS) != null) { if (_log.shouldLog(Log.WARN)) _log.warn("Refusing tunnel request since we are shutting down ASAP"); setTunnelStatus("Rejecting tunnels: Shutting down"); ...
diff --git a/dev/cosbench-swauth/src/com/intel/cosbench/client/swauth/SwiftAuthClient.java b/dev/cosbench-swauth/src/com/intel/cosbench/client/swauth/SwiftAuthClient.java index b771587..a3d66c5 100644 --- a/dev/cosbench-swauth/src/com/intel/cosbench/client/swauth/SwiftAuthClient.java +++ b/dev/cosbench-swauth/src/com/i...
true
true
public void login() throws IOException, SwiftAuthClientException { HttpResponse response = null; try { HttpGet method = new HttpGet(authURL); method.setHeader(X_STORAGE_USER, username); method.setHeader(X_STORAGE_PASS, password); response = client.exec...
public void login() throws IOException, SwiftAuthClientException { HttpResponse response = null; try { HttpGet method = new HttpGet(authURL); method.setHeader(X_STORAGE_USER, username); method.setHeader(X_STORAGE_PASS, password); response = client.exec...
diff --git a/projects/bundles/solaris/src/main/java/org/identityconnectors/solaris/operation/search/LoginsCommand.java b/projects/bundles/solaris/src/main/java/org/identityconnectors/solaris/operation/search/LoginsCommand.java index c107fb97..1c42c7ac 100644 --- a/projects/bundles/solaris/src/main/java/org/identityconn...
true
true
public static SolarisEntry getEntry(String accountLine, String username) { final SolarisEntry.Builder bldr = new SolarisEntry.Builder(username); /* tokens delimited by ":" */ final String[] tokens = accountLine.split(":", -1); final Iterator<String> tokenIt = Arrays.asList(t...
public static SolarisEntry getEntry(String accountLine, String username) { final SolarisEntry.Builder bldr = new SolarisEntry.Builder(username); /* tokens delimited by ":" */ final String[] tokens = accountLine.split(":", -1); final Iterator<String> tokenIt = Arrays.asList(t...
diff --git a/src/java/com/threerings/getdown/launcher/Getdown.java b/src/java/com/threerings/getdown/launcher/Getdown.java index 1617e20..c6a02e4 100644 --- a/src/java/com/threerings/getdown/launcher/Getdown.java +++ b/src/java/com/threerings/getdown/launcher/Getdown.java @@ -1,914 +1,914 @@ // // $Id$ // // Getdow...
true
true
protected void getdown () { Log.info("---------------- Proxy Info -----------------"); Log.info("-- Proxy Host: " + System.getProperty("http.proxyHost")); Log.info("-- Proxy Port: " + System.getProperty("http.proxyPort")); Log.info("---------------------------------------------")...
protected void getdown () { Log.info("---------------- Proxy Info -----------------"); Log.info("-- Proxy Host: " + System.getProperty("http.proxyHost")); Log.info("-- Proxy Port: " + System.getProperty("http.proxyPort")); Log.info("---------------------------------------------")...
diff --git a/src/raytracer/Sphere.java b/src/raytracer/Sphere.java index b69c639..07ab099 100644 --- a/src/raytracer/Sphere.java +++ b/src/raytracer/Sphere.java @@ -1,58 +1,58 @@ package raytracer; import java.util.*; import processing.core.*; public class Sphere extends Item { public PVectorD center; pub...
false
true
public PVectorD[] intersectionPoints(Line l) { PVectorD t = PVectorD.sub(l.start, center); double a = l.dir.x + l.dir.y + l.dir.z; double b = 2 * (t.x + t.y + t.z); double c = t.x*t.x + t.y*t.y + t.z*t.z - radius*radius; double determinant = b*b - 4*a*c; // One solution if(determinant < 1e-8 ...
public PVectorD[] intersectionPoints(Line l) { PVectorD t = PVectorD.sub(l.start, center); double a = PVectorD.dot(l.dir, l.dir); double b = 2 * PVectorD.dot(t, l.dir); double c = PVectorD.dot(t, t) - radius*radius; double determinant = b*b - 4*a*c; // One solution if(determinant < 1e-8 && d...
diff --git a/app/controllers/Notes.java b/app/controllers/Notes.java index 1595583..77bfa99 100644 --- a/app/controllers/Notes.java +++ b/app/controllers/Notes.java @@ -1,187 +1,187 @@ package controllers; import java.util.*; import java.io.File; import com.avaje.ebean.*; import play.mvc.*; import play.mvc....
true
true
public static Result create() { Note note; Form<Note> filledForm = noteForm.bindFromRequest(); if(filledForm.hasErrors()) { for(String key : filledForm.errors().keySet()){ List<ValidationError> currentError = filledForm.errors().get(key); for(ValidationError error : currentError) { flash("erro...
public static Result create() { Note note; Form<Note> filledForm = noteForm.bindFromRequest(); if(filledForm.hasErrors()) { for(String key : filledForm.errors().keySet()){ List<ValidationError> currentError = filledForm.errors().get(key); for(ValidationError error : currentError) { flash("erro...
diff --git a/src/main/java/org/jboss/as/plugin/common/AbstractServerConnection.java b/src/main/java/org/jboss/as/plugin/common/AbstractServerConnection.java index ed247e7..987f2ac 100644 --- a/src/main/java/org/jboss/as/plugin/common/AbstractServerConnection.java +++ b/src/main/java/org/jboss/as/plugin/common/AbstractS...
true
true
private boolean isDomainServer(final ModelControllerClient client) { boolean result = false; // Check this is really a domain server final ModelNode op = Operations.createReadAttributeOperation(Operations.LAUNCH_TYPE); try { final ModelNode opResult = client.execute(op); ...
private boolean isDomainServer(final ModelControllerClient client) { boolean result = false; // Check this is really a domain server final ModelNode op = Operations.createReadAttributeOperation(Operations.LAUNCH_TYPE); try { final ModelNode opResult = client.execute(op); ...
diff --git a/src/com/ichi2/anki/MetaDB.java b/src/com/ichi2/anki/MetaDB.java index 29c5f84e..523de6bc 100644 --- a/src/com/ichi2/anki/MetaDB.java +++ b/src/com/ichi2/anki/MetaDB.java @@ -1,239 +1,241 @@ package com.ichi2.anki; import android.content.Context; import android.database.Cursor; import android.database...
true
true
public static DeckStatus[] getWidgetStatus(Context context) { openDBIfClosed(context); Cursor cursor = null; try { cursor = mMetaDb.query("widgetStatus", new String[]{"deckPath", "deckName", "newCards", "dueCards", "failedCards"}, null, nul...
public static DeckStatus[] getWidgetStatus(Context context) { openDBIfClosed(context); Cursor cursor = null; try { cursor = mMetaDb.query("widgetStatus", new String[]{"deckPath", "deckName", "newCards", "dueCards", "failedCards"}, null, nul...
diff --git a/src/org/omegat/core/data/TranslateEntry.java b/src/org/omegat/core/data/TranslateEntry.java index d757f9b4..fb3fec71 100644 --- a/src/org/omegat/core/data/TranslateEntry.java +++ b/src/org/omegat/core/data/TranslateEntry.java @@ -1,104 +1,104 @@ /***********************************************************...
true
true
public String getTranslation(final String id, final String origSource) { ParseEntry.ParseEntryResult spr = new ParseEntry.ParseEntryResult(); final String source = ParseEntry.stripSomeChars(origSource, spr); StringBuffer res = new StringBuffer(); if (m_config.isSentenceSegm...
public String getTranslation(final String id, final String origSource) { ParseEntry.ParseEntryResult spr = new ParseEntry.ParseEntryResult(); final String source = ParseEntry.stripSomeChars(origSource, spr); StringBuffer res = new StringBuffer(); if (m_config.isSentenceSegm...
diff --git a/src/com/dmdirc/addons/osdplugin/OsdWindow.java b/src/com/dmdirc/addons/osdplugin/OsdWindow.java index a8d7518fd..93bbf81ab 100644 --- a/src/com/dmdirc/addons/osdplugin/OsdWindow.java +++ b/src/com/dmdirc/addons/osdplugin/OsdWindow.java @@ -1,283 +1,282 @@ /* * Copyright (c) 2006-2008 Chris Smith, Shane ...
false
true
public OsdWindow(final String text, final boolean config, final int x, final int y) { super(((MainFrame) Main.getUI().getMainWindow()), false); this.config = config; setFocusableWindowState(false); setAlwaysOnTop(true); setResizable(false); setUndeco...
public OsdWindow(final String text, final boolean config, final int x, final int y) { super(((MainFrame) Main.getUI().getMainWindow()), false); this.config = config; setFocusableWindowState(false); setAlwaysOnTop(true); setResizable(false); setUndeco...
diff --git a/src/net/nightwhistler/pageturner/catalog/DownloadFileTask.java b/src/net/nightwhistler/pageturner/catalog/DownloadFileTask.java index 212b6ef..02a7f92 100644 --- a/src/net/nightwhistler/pageturner/catalog/DownloadFileTask.java +++ b/src/net/nightwhistler/pageturner/catalog/DownloadFileTask.java @@ -1,167 +...
false
true
protected String doInBackground(String... params) { try { String url = params[0]; LOG.debug("Downloading: " + url); String fileName = url.substring(url.lastIndexOf('/') + 1); //client.getCredentialsProvider().setCredentials( // new AuthScope(null, -1), // new UsernamePasswordCredentials(us...
protected String doInBackground(String... params) { try { String url = params[0]; LOG.debug("Downloading: " + url); String fileName = url.substring(url.lastIndexOf('/') + 1); fileName = fileName.replaceAll("\\?|&|=", "_"); HttpGet get = new HttpGet(url); HttpResponse response = httpClient.ex...
diff --git a/sql12/app/src/net/sourceforge/squirrel_sql/client/ApplicationArguments.java b/sql12/app/src/net/sourceforge/squirrel_sql/client/ApplicationArguments.java index f940f6656..ea850c48e 100755 --- a/sql12/app/src/net/sourceforge/squirrel_sql/client/ApplicationArguments.java +++ b/sql12/app/src/net/sourceforge/s...
true
true
private ApplicationArguments(String[] args) throws ParseException { super(); createOptions(); final CommandLineParser parser = new GnuParser(); try { _cmdLine = parser.parse(_options, args); } catch(ParseException ex) { System.err.println("Parsing failed. Reason: " + ex.getMessage()); pri...
private ApplicationArguments(String[] args) throws ParseException { super(); createOptions(); final CommandLineParser parser = new GnuParser(); try { _cmdLine = parser.parse(_options, args); } catch(ParseException ex) { System.err.println("Parsing failed. Reason: " + ex.getMessage()); pri...
diff --git a/src/com/android/camera/CameraScreenNail.java b/src/com/android/camera/CameraScreenNail.java index ed97e50d..ed7c8477 100644 --- a/src/com/android/camera/CameraScreenNail.java +++ b/src/com/android/camera/CameraScreenNail.java @@ -1,221 +1,220 @@ /* * Copyright (C) 2012 The Android Open Source Project ...
false
true
public void draw(GLCanvas canvas, int x, int y, int width, int height) { if (getSurfaceTexture() == null) return; synchronized (mLock) { if (!mFirstFrameArrived) return; if (!mVisible) mVisible = true; if (mAnimState == ANIM_NONE) { super.draw(can...
public void draw(GLCanvas canvas, int x, int y, int width, int height) { synchronized (mLock) { if (!mVisible) mVisible = true; if (getSurfaceTexture() == null || !mFirstFrameArrived) return; if (mAnimState == ANIM_NONE) { super.draw(canvas, x, y, width, ...