Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/gui/GUI_KitStand.java b/src/gui/GUI_KitStand.java index fabf641..7c6ac3f 100644 --- a/src/gui/GUI_KitStand.java +++ b/src/gui/GUI_KitStand.java @@ -1,112 +1,112 @@ package gui; import java.awt.Component; import java.awt.Graphics; import java.awt.Graphics2D; import javax.swing.ImageIcon; impor...
true
true
public Kit getTempKit(){ int i = 0; for(int j = 0; j<2; j++){ if(stands[j].kit!= null){ i = j; break; } } return stands[i].kit.kit; }
public Kit getTempKit(){ int i = 2; for(int j = 0; j<2; j++){ if(stands[j].kit!= null){ i = j; break; } } return stands[i].kit.kit; }
diff --git a/Plugins/org.opendarts.core/src/main/java/org/opendarts/core/model/session/impl/GameSet.java b/Plugins/org.opendarts.core/src/main/java/org/opendarts/core/model/session/impl/GameSet.java index 4438fae..d3cb68a 100644 --- a/Plugins/org.opendarts.core/src/main/java/org/opendarts/core/model/session/impl/GameSe...
true
true
public void handleFinishedGame(IGame game) { // update player score IPlayer player = game.getWinner(); int score = this.getWinningGames(player); score++; this.playerGames.put(player, score); // check if player win if (this.getGameDefinition().isPlayerWin(this, player)) { this.setWinner(player); } ...
public void handleFinishedGame(IGame game) { // update player score IPlayer player = game.getWinner(); int score = this.getWinningGames(player); score++; this.playerGames.put(player, score); // check if player win if (this.getGameDefinition().isPlayerWin(this, player)) { this.setWinner(player); th...
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/GraphicalEditorPart.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/GraphicalEditorPart.java index 21e21cad3..b58346f2b 100644 --- a/eclip...
true
true
public void createPartControl(Composite parent) { Display d = parent.getDisplay(); GridLayout gl = new GridLayout(1, false); parent.setLayout(gl); gl.marginHeight = gl.marginWidth = 0; // create the top part for the configuration control CustomButton[][] customButt...
public void createPartControl(Composite parent) { Display d = parent.getDisplay(); GridLayout gl = new GridLayout(1, false); parent.setLayout(gl); gl.marginHeight = gl.marginWidth = 0; // create the top part for the configuration control CustomButton[][] customButt...
diff --git a/org.eclipse.text/src/org/eclipse/jface/text/SequentialRewriteTextStore.java b/org.eclipse.text/src/org/eclipse/jface/text/SequentialRewriteTextStore.java index 1848f1a23..3e3ffabc5 100644 --- a/org.eclipse.text/src/org/eclipse/jface/text/SequentialRewriteTextStore.java +++ b/org.eclipse.text/src/org/eclips...
true
true
public String get(int offset, int length) { if (fReplaceList.size() == 0) { return fSource.get(offset, length); } else { Replace firstReplace= (Replace) fReplaceList.get(0); Replace lastReplace= (Replace) fReplaceList.get(fReplaceList.size() - 1); // before if (offset + length <= firstReplace.new...
public String get(int offset, int length) { if (fReplaceList.size() == 0) { return fSource.get(offset, length); } else { Replace firstReplace= (Replace) fReplaceList.get(0); Replace lastReplace= (Replace) fReplaceList.get(fReplaceList.size() - 1); // before if (offset + length <= firstReplace.new...
diff --git a/src/gtpdummy/Main.java b/src/gtpdummy/Main.java index 9882cf94..33d6295e 100644 --- a/src/gtpdummy/Main.java +++ b/src/gtpdummy/Main.java @@ -1,66 +1,66 @@ //---------------------------------------------------------------------------- // $Id$ // $Source$ //----------------------------------------------...
true
true
public static void main(String[] args) { try { String options[] = { "config:", "help", "log:", "version" }; Options opt = Options.parse(options, args); if (opt.isSet("help")) ...
public static void main(String[] args) { try { String options[] = { "config:", "help", "log:", "version" }; Options opt = Options.parse(args, options); if (opt.isSet("help")) ...
diff --git a/src/com/android/contacts/ContactsListActivity.java b/src/com/android/contacts/ContactsListActivity.java index aeb401464..4169e3752 100644 --- a/src/com/android/contacts/ContactsListActivity.java +++ b/src/com/android/contacts/ContactsListActivity.java @@ -1,3566 +1,3568 @@ /* * Copyright (C) 2007 The An...
false
true
protected void onCreate(Bundle icicle) { super.onCreate(icicle); mIconSize = getResources().getDimensionPixelSize(android.R.dimen.app_icon_size); mContactsPrefs = new ContactsPreferences(this); mPhotoLoader = new ContactPhotoLoader(this, R.drawable.ic_contact_list_picture); ...
protected void onCreate(Bundle icicle) { super.onCreate(icicle); mIconSize = getResources().getDimensionPixelSize(android.R.dimen.app_icon_size); mContactsPrefs = new ContactsPreferences(this); mPhotoLoader = new ContactPhotoLoader(this, R.drawable.ic_contact_list_picture); ...
diff --git a/org.maven.ide.eclipse.editor.tests/src/org/maven/ide/eclipse/editor/pom/PomEditorTest.java b/org.maven.ide.eclipse.editor.tests/src/org/maven/ide/eclipse/editor/pom/PomEditorTest.java index 96a80d21..890e83f7 100644 --- a/org.maven.ide.eclipse.editor.tests/src/org/maven/ide/eclipse/editor/pom/PomEditorTest...
false
true
public void testDiscardedFileDeletion() throws Exception { String name = PROJECT_NAME + "/another.pom"; createFile(name, ""); openPomFile(name); // ui.contextClick(new TreeItemLocator(PROJECT_NAME, new ViewLocator( // "org.eclipse.jdt.ui.PackageExplorer")), "New/File"); // ui.wait(new Sh...
public void testDiscardedFileDeletion() throws Exception { String name = PROJECT_NAME + "/another.pom"; createFile(name, ""); openPomFile(name); // ui.contextClick(new TreeItemLocator(PROJECT_NAME, new ViewLocator( // "org.eclipse.jdt.ui.PackageExplorer")), "New/File"); // ui.wait(new Sh...
diff --git a/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/Conversions.java b/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/Conversions.java index c9af08f15..9546d29f2 100644 --- a/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/Conversions.java +++ b/parser/org/eclipse/cdt...
false
true
public static Cost checkImplicitConversionSequence(boolean allowUDC, IASTExpression sourceExp, IType source, IType target, boolean isImpliedObject) throws DOMException { Cost cost; allowUDC &= !isImpliedObject; if (target instanceof ICPPReferenceType) { // [13.3.3.3.1] Reference binding IType cv1T1=...
public static Cost checkImplicitConversionSequence(boolean allowUDC, IASTExpression sourceExp, IType source, IType target, boolean isImpliedObject) throws DOMException { Cost cost; allowUDC &= !isImpliedObject; target= getUltimateTypeViaTypedefs(target); source= getUltimateTypeViaTypedefs(source); if (...
diff --git a/src/test/java/com/munzenberger/feed/handler/DownloadEnclosuresTest.java b/src/test/java/com/munzenberger/feed/handler/DownloadEnclosuresTest.java index 61bb12d..7344890 100644 --- a/src/test/java/com/munzenberger/feed/handler/DownloadEnclosuresTest.java +++ b/src/test/java/com/munzenberger/feed/handler/Dow...
true
true
public void testGetLocalFile() throws Exception { DownloadEnclosures handler = new DownloadEnclosures(); String url = "http://www.test.com/download.mp3?id=1"; File f1 = handler.getLocalFile(url); assertNotNull(f1); f1.deleteOnExit(); final String separator = System.getProperty("file.separato...
public void testGetLocalFile() throws Exception { DownloadEnclosures handler = new DownloadEnclosures(); String url = "http://www.test.com/download.mp3?id=1"; File f1 = handler.getLocalFile(url); assertNotNull(f1); f1.deleteOnExit(); final String separator = System.getProperty("file.separato...
diff --git a/java/src/com/teamten/mario/World.java b/java/src/com/teamten/mario/World.java index 322d9df..8340a2f 100644 --- a/java/src/com/teamten/mario/World.java +++ b/java/src/com/teamten/mario/World.java @@ -1,137 +1,140 @@ // Copyright 2011 Lawrence Kesteloot package com.teamten.mario; import java.awt.Grap...
false
true
public World step(Input input) { Env env = getEnv(); Player player = getPlayer(); boolean touchingFloor = env.isTouchingFloor(player); int ax = 0; int ay = 0; if (touchingFloor) { if (input.isJumpPressed()) { ay -= Player.JUMP; ...
public World step(Input input) { Env env = getEnv(); Player player = getPlayer(); boolean touchingFloor = env.isTouchingFloor(player); int ax = 0; int ay = 0; if (touchingFloor) { if (input.isJumpPressed()) { ay -= Player.JUMP; ...
diff --git a/src/fr/adrienbrault/idea/symfony2plugin/Symfony2CachedInterfacesUtil.java b/src/fr/adrienbrault/idea/symfony2plugin/Symfony2CachedInterfacesUtil.java index 420a49a7..adb732aa 100644 --- a/src/fr/adrienbrault/idea/symfony2plugin/Symfony2CachedInterfacesUtil.java +++ b/src/fr/adrienbrault/idea/symfony2plugin...
true
true
protected boolean isCallTo(PsiElement e, Method[] expectedMethods) { StringBuilder stringBuilder = new StringBuilder(); for (Method method : Arrays.asList(expectedMethods)) { stringBuilder.append(method.getFQN()).append("_"); } Map<String, Boolean> elementCache = isCallT...
protected boolean isCallTo(PsiElement e, Method[] expectedMethods) { StringBuilder stringBuilder = new StringBuilder(); for (Method method : Arrays.asList(expectedMethods)) { if (null != method) { stringBuilder.append(method.getFQN()); stringBuilder.append...
diff --git a/src/org/opensolaris/opengrok/web/Util.java b/src/org/opensolaris/opengrok/web/Util.java index 3de03e2..44e3989 100644 --- a/src/org/opensolaris/opengrok/web/Util.java +++ b/src/org/opensolaris/opengrok/web/Util.java @@ -1,456 +1,458 @@ /* * CDDL HEADER START * * The contents of this file are subject...
false
true
public static void readableLine(int num, Writer out, Annotation annotation) throws IOException { String snum = String.valueOf(num); if (num > 1) { out.write("\n"); } out.write(anchorClassStart); out.write((num % 10 == 0 ? "hl" : "l")); out.writ...
public static void readableLine(int num, Writer out, Annotation annotation) throws IOException { String snum = String.valueOf(num); if (num > 1) { out.write("\n"); } out.write(anchorClassStart); out.write((num % 10 == 0 ? "hl" : "l")); out.writ...
diff --git a/src/core/org/luaj/lib/PackageLib.java b/src/core/org/luaj/lib/PackageLib.java index b8a0380..b491ae9 100644 --- a/src/core/org/luaj/lib/PackageLib.java +++ b/src/core/org/luaj/lib/PackageLib.java @@ -1,420 +1,419 @@ /******************************************************************************* * Copyri...
false
true
public void require( LuaState vm ) { LString name = vm.tolstring(2); LValue loaded = LOADED.get(name); if ( loaded.toJavaBoolean() ) { if ( loaded == _SENTINEL ) vm.error("loop or previous error loading module '"+name+"'"); vm.resettop(); vm.pushlvalue( loaded ); return; } vm.settop(0); ...
public void require( LuaState vm ) { LString name = vm.tolstring(2); LValue loaded = LOADED.get(name); if ( loaded.toJavaBoolean() ) { if ( loaded == _SENTINEL ) vm.error("loop or previous error loading module '"+name+"'"); vm.resettop(); vm.pushlvalue( loaded ); return; } vm.resettop(); ...
diff --git a/SQLENGINE_A1/SqlConsole.java b/SQLENGINE_A1/SqlConsole.java index 59793a2..80bb9eb 100755 --- a/SQLENGINE_A1/SqlConsole.java +++ b/SQLENGINE_A1/SqlConsole.java @@ -1,25 +1,25 @@ package sqlengine_a1; import java.util.*; import sqlengine_a1.parser.*; public class SqlConsole { - public static void m...
false
true
public static void main(String[] args) { Scanner stdin = new Scanner(System.in); while (true) { System.out.print("|> "); String line = stdin.nextLine(); try { SqlParser sp = new SqlParser(line); ASTNode astRoot = sp.parseStatement(); System.out.println(astRoot.toString()); ...
public static void main(String[] args) { Scanner stdin = new Scanner(System.in); while (true) { System.out.print("|> "); String line = stdin.nextLine(); try { SqlParser sp = new SqlParser(line); ASTNode astRoot = sp.parseStatement(); System.out.println(astRoot.toString()); if (ast...
diff --git a/src/java/fi/hoski/web/auth/LoginServlet.java b/src/java/fi/hoski/web/auth/LoginServlet.java index f6fb476..92e9f88 100644 --- a/src/java/fi/hoski/web/auth/LoginServlet.java +++ b/src/java/fi/hoski/web/auth/LoginServlet.java @@ -1,219 +1,220 @@ /* * Copyright (C) 2012 Helsingfors Segelklubb ry * * Th...
true
true
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setCharacterEncoding("UTF-8"); String action = request.getParameter("action"); try { if (action == null || action.equals("login")) { // login String ...
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setCharacterEncoding("UTF-8"); response.setHeader("Cache-Control", "private, max-age=0, no-cache"); String action = request.getParameter("action"); try { if (acti...
diff --git a/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/axis2/client/AxisTestClient.java b/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/axis2/client/AxisTestClient.java index c0c607c..d865e0a 100644 --- a/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/axis2/cl...
true
true
public void afterReceive() throws Exception { if (sender instanceof ManagementSupport) { ManagementSupport sender = (ManagementSupport)this.sender; synchronized (metrics) { long start = System.currentTimeMillis(); while (true) { try...
public void afterReceive() throws Exception { if (sender instanceof ManagementSupport) { ManagementSupport sender = (ManagementSupport)this.sender; synchronized (metrics) { long start = System.currentTimeMillis(); while (true) { try...
diff --git a/src/main/java/com/google/mockwebserver/MockWebServer.java b/src/main/java/com/google/mockwebserver/MockWebServer.java index 5116991d..75f42cd0 100644 --- a/src/main/java/com/google/mockwebserver/MockWebServer.java +++ b/src/main/java/com/google/mockwebserver/MockWebServer.java @@ -1,567 +1,565 @@ /* * C...
false
true
private void serveConnection(final Socket raw) { String name = "MockWebServer-" + raw.getRemoteSocketAddress(); executor.execute(namedRunnable(name, new Runnable() { int sequenceNumber = 0; public void run() { try { processConnection(); ...
private void serveConnection(final Socket raw) { String name = "MockWebServer-" + raw.getRemoteSocketAddress(); executor.execute(namedRunnable(name, new Runnable() { int sequenceNumber = 0; public void run() { try { processConnection(); ...
diff --git a/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java b/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java index 389effc6..f3faa2de 100644 --- a/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java +++ b/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java @...
true
true
protected final Trade getTrade(final ISign sign, final int index, final int decrement, final IEssentials ess) throws SignException { final String line = sign.getLine(index).trim(); if (line.isEmpty()) { return new Trade(signName.toLowerCase(Locale.ENGLISH) + "sign", ess); } final Double money = getMoney...
protected final Trade getTrade(final ISign sign, final int index, final int decrement, final IEssentials ess) throws SignException { final String line = sign.getLine(index).trim(); if (line.isEmpty()) { return new Trade(signName.toLowerCase(Locale.ENGLISH) + "sign", ess); } final Double money = getMoney...
diff --git a/src/net/java/sip/communicator/plugin/branding/AboutWindow.java b/src/net/java/sip/communicator/plugin/branding/AboutWindow.java index 669d924bf..281c4da56 100644 --- a/src/net/java/sip/communicator/plugin/branding/AboutWindow.java +++ b/src/net/java/sip/communicator/plugin/branding/AboutWindow.java @@ -1,2...
false
true
public AboutWindow(Frame owner) { super(owner); ResourceManagementService resources = BrandingActivator.getResources(); String applicationName = resources.getSettingsString("service.gui.APPLICATION_NAME"); this.setTitle( resources.getI18NString("plugin....
public AboutWindow(Frame owner) { super(owner); ResourceManagementService resources = BrandingActivator.getResources(); String applicationName = resources.getSettingsString("service.gui.APPLICATION_NAME"); this.setTitle( resources.getI18NString("plugin....
diff --git a/src/main/ed/db/ImportBinary.java b/src/main/ed/db/ImportBinary.java index 08df079a2..8989045a1 100644 --- a/src/main/ed/db/ImportBinary.java +++ b/src/main/ed/db/ImportBinary.java @@ -1,79 +1,80 @@ // ImportBinary.java package ed.db; import java.io.*; import java.nio.*; import java.nio.channels.*;...
false
true
static void loadOne( File f ) throws IOException { final String ns = f.getName().replaceAll( "\\.bin$" , "" ); final String root = f.getParentFile().getName(); DBApiLayer db = DBProvider.get( root ); DBCollection coll = db.getCollection( ns ); System...
static void loadOne( File f ) throws IOException { final String ns = f.getName().replaceAll( "\\.bin$" , "" ); final String root = f.getParentFile().getName(); DBApiLayer db = DBProvider.get( root ); DBCollection coll = db.getCollection( ns ); System...
diff --git a/src/org/apache/xpath/functions/FuncLocalPart.java b/src/org/apache/xpath/functions/FuncLocalPart.java index 0b1b6ef5..646c097f 100644 --- a/src/org/apache/xpath/functions/FuncLocalPart.java +++ b/src/org/apache/xpath/functions/FuncLocalPart.java @@ -1,99 +1,99 @@ /* * The Apache Software License, Versio...
true
true
public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException { Node context = getArg0AsNode(xctxt); String s = (context != null) ? xctxt.getDOMHelper().getLocalNameOfNode(context) : ""; if(s.startsWith("#")) s = ""; ...
public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException { Node context = getArg0AsNode(xctxt); String s = (context != null) ? xctxt.getDOMHelper().getLocalNameOfNode(context) : ""; if(s.startsWith("#") || s.equals("xm...
diff --git a/modules/cpr/src/main/java/org/atmosphere/cpr/MeteorServlet.java b/modules/cpr/src/main/java/org/atmosphere/cpr/MeteorServlet.java index 196c32d31..59f6e7298 100755 --- a/modules/cpr/src/main/java/org/atmosphere/cpr/MeteorServlet.java +++ b/modules/cpr/src/main/java/org/atmosphere/cpr/MeteorServlet.java @@ ...
true
true
public void init(final ServletConfig sc) throws ServletException { super.init(sc); String servletClass = framework().getAtmosphereConfig().getInitParameter(SERVLET_CLASS); String mapping = framework().getAtmosphereConfig().getInitParameter(MAPPING); String filterClass = framework()....
public void init(final ServletConfig sc) throws ServletException { super.init(sc); String servletClass = framework().getAtmosphereConfig().getInitParameter(SERVLET_CLASS); String mapping = framework().getAtmosphereConfig().getInitParameter(MAPPING); String filterClass = framework()....
diff --git a/src/za/jamie/androidffmpegcmdline/ffmpeg/FfmpegJob.java b/src/za/jamie/androidffmpegcmdline/ffmpeg/FfmpegJob.java index 2d289f7..8b8f811 100644 --- a/src/za/jamie/androidffmpegcmdline/ffmpeg/FfmpegJob.java +++ b/src/za/jamie/androidffmpegcmdline/ffmpeg/FfmpegJob.java @@ -1,173 +1,173 @@ package za.jamie.a...
false
true
public ProcessRunnable create() { if (inputPath == null || outputPath == null) { throw new IllegalStateException("Need an input and output filepath!"); } final List<String> cmd = new LinkedList<String>(); cmd.add(mFfmpegPath); cmd.add("-y"); if (TextUtils.isEmpty(inputFormat)) { cmd.add(FFM...
public ProcessRunnable create() { if (inputPath == null || outputPath == null) { throw new IllegalStateException("Need an input and output filepath!"); } final List<String> cmd = new LinkedList<String>(); cmd.add(mFfmpegPath); cmd.add("-y"); if (!TextUtils.isEmpty(inputFormat)) { cmd.add(FF...
diff --git a/core/src/net/sf/openrocket/gui/simulation/SimulationEditDialog.java b/core/src/net/sf/openrocket/gui/simulation/SimulationEditDialog.java index a4a461db..ae0784c3 100644 --- a/core/src/net/sf/openrocket/gui/simulation/SimulationEditDialog.java +++ b/core/src/net/sf/openrocket/gui/simulation/SimulationEditD...
false
true
private void buildEditCard() { JPanel simEditPanel = new JPanel(new MigLayout("fill")); if (isSingleEdit()) { JPanel panel = new JPanel(new MigLayout("fill, ins 0")); //// Simulation name: panel.add(new JLabel(trans.get("simedtdlg.lbl.Simname") + " "), "growx 0, gapright para"); final JTextField...
private void buildEditCard() { JPanel simEditPanel = new JPanel(new MigLayout("fill")); if (isSingleEdit()) { JPanel panel = new JPanel(new MigLayout("fill, ins 0")); //// Simulation name: panel.add(new JLabel(trans.get("simedtdlg.lbl.Simname") + " "), "growx 0, gapright para"); final JTextField...
diff --git a/TopWordsJob/src/main/java/fr/xebia/devoxx/hadoop/mostRt/IdentifyRtMapper.java b/TopWordsJob/src/main/java/fr/xebia/devoxx/hadoop/mostRt/IdentifyRtMapper.java index bfbfd96..da4b149 100644 --- a/TopWordsJob/src/main/java/fr/xebia/devoxx/hadoop/mostRt/IdentifyRtMapper.java +++ b/TopWordsJob/src/main/java/fr/...
true
true
protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException { if (value.toString().indexOf("-") > 0 && value.toString().contains("RT")) { TwitterStream twitterStream = new TwitterStream(); Text retwittUser = new Text(value.toString().su...
protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException { if (value.toString().indexOf("-") > 0 && value.toString().contains("RT")) { TwitterStream twitterStream = new TwitterStream(); Text retwittUser = new Text(value.toString().su...
diff --git a/FileThread.java b/FileThread.java index ff2dadf..547e873 100644 --- a/FileThread.java +++ b/FileThread.java @@ -1,400 +1,401 @@ /* File worker thread handles the business of uploading, downloading, and removing files for clients with valid tokens */ import java.lang.Thread; import java.net.Socket; im...
true
true
public void run() { boolean proceed = true; try { //setup IO streams to bind with the sockets System.out.println("*** New connection from " + socket.getInetAddress() + ":" + socket.getPort() + "***"); final ObjectInputStream input = new ObjectInputStream(socket.getInputStream()); final ObjectOutputS...
public void run() { boolean proceed = true; try { //setup IO streams to bind with the sockets System.out.println("*** New connection from " + socket.getInetAddress() + ":" + socket.getPort() + "***"); final ObjectInputStream input = new ObjectInputStream(socket.getInputStream()); final ObjectOutputS...
diff --git a/src/main/java/com/sonyericsson/jenkins/plugins/bfa/GerritMessageProviderExtension.java b/src/main/java/com/sonyericsson/jenkins/plugins/bfa/GerritMessageProviderExtension.java index 76cd102..d2e5632 100644 --- a/src/main/java/com/sonyericsson/jenkins/plugins/bfa/GerritMessageProviderExtension.java +++ b/sr...
true
true
public String getBuildCompletedMessage(AbstractBuild build) { if (PluginImpl.getInstance().isGerritTriggerEnabled()) { StringBuilder customMessage = new StringBuilder(); if (build != null) { FailureCauseBuildAction action = build.getAction(FailureCauseBuildAction.clas...
public String getBuildCompletedMessage(AbstractBuild build) { if (PluginImpl.getInstance().isGerritTriggerEnabled()) { StringBuilder customMessage = new StringBuilder(); if (build != null) { FailureCauseBuildAction action = build.getAction(FailureCauseBuildAction.clas...
diff --git a/core/src/java/liquibase/preconditions/RunningAsPrecondition.java b/core/src/java/liquibase/preconditions/RunningAsPrecondition.java index 23c4c988..178ce8c8 100644 --- a/core/src/java/liquibase/preconditions/RunningAsPrecondition.java +++ b/core/src/java/liquibase/preconditions/RunningAsPrecondition.java @...
true
true
public void check(Migrator migrator, DatabaseChangeLog changeLog) throws PreconditionFailedException { try { String loggedusername = migrator.getDatabase().getConnection().getMetaData().getUserName(); loggedusername = loggedusername.substring(0, loggedusername.indexOf('@')); ...
public void check(Migrator migrator, DatabaseChangeLog changeLog) throws PreconditionFailedException { try { String loggedusername = migrator.getDatabase().getConnection().getMetaData().getUserName(); if (loggedusername.indexOf('@') >= 0) { loggedusername = loggeduser...
diff --git a/docs/tutorials/tutorial1/chatapp/Client.java b/docs/tutorials/tutorial1/chatapp/Client.java index 67608cb..3d40d6f 100644 --- a/docs/tutorials/tutorial1/chatapp/Client.java +++ b/docs/tutorials/tutorial1/chatapp/Client.java @@ -1,63 +1,64 @@ package chatapp; import java.io.BufferedReader; import java....
true
true
public static void main(String argv[]) throws IOException, ClassNotFoundException{ /* Setting up X-Tracing */ //XTraceContext.startTrace("ChatClient", "Run Tutorial 1" , "tutorial"); /* Set up the connection to the server */ Socket s = new Socket("localhost", PORT); ObjectInputStream in = new ObjectInput...
public static void main(String argv[]) throws IOException, ClassNotFoundException{ /* Setting up X-Tracing */ //XTraceContext.startTrace("ChatClient", "Run Tutorial 1" , "tutorial"); /* Set up the connection to the server */ Socket s = new Socket("localhost", PORT); ObjectInputStream in = new ObjectInput...
diff --git a/pn-dispatcher/src/main/java/info/papyri/dispatch/BiblioSearch.java b/pn-dispatcher/src/main/java/info/papyri/dispatch/BiblioSearch.java index 7cacfa84..61bd272d 100644 --- a/pn-dispatcher/src/main/java/info/papyri/dispatch/BiblioSearch.java +++ b/pn-dispatcher/src/main/java/info/papyri/dispatch/BiblioSearc...
true
true
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); BufferedReader reader = null; try { String q = request.getParameter...
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); BufferedReader reader = null; try { String q = request.getParameter...
diff --git a/src/com/redhat/ceylon/compiler/codegen/AbstractTransformer.java b/src/com/redhat/ceylon/compiler/codegen/AbstractTransformer.java index 72f23bb37..ccff77602 100755 --- a/src/com/redhat/ceylon/compiler/codegen/AbstractTransformer.java +++ b/src/com/redhat/ceylon/compiler/codegen/AbstractTransformer.java @@ ...
true
true
protected JCExpression makeJavaType(ProducedType type, int flags) { if(type == null) return make().Erroneous(); // ERASURE if (willEraseToObject(type)) { // For an erased type: // - Any of the Ceylon types Void, Object, Nothing, Equality,...
protected JCExpression makeJavaType(ProducedType type, int flags) { if(type == null) return make().Erroneous(); // ERASURE if (willEraseToObject(type)) { // For an erased type: // - Any of the Ceylon types Void, Object, Nothing, Equality,...
diff --git a/hbc-core/src/main/java/com/twitter/hbc/core/processor/AbstractProcessor.java b/hbc-core/src/main/java/com/twitter/hbc/core/processor/AbstractProcessor.java index 27fb5ed..04030ee 100644 --- a/hbc-core/src/main/java/com/twitter/hbc/core/processor/AbstractProcessor.java +++ b/hbc-core/src/main/java/com/twitt...
false
true
public boolean process() throws IOException, InterruptedException { T msg = processNextMessage(); if (msg != null) { return queue.offer(msg, offerTimeoutMillis, TimeUnit.MILLISECONDS); } else { // if its null, just try again return process(); } }
public boolean process() throws IOException, InterruptedException { T msg = processNextMessage(); while (msg == null) { msg = processNextMessage(); } return queue.offer(msg, offerTimeoutMillis, TimeUnit.MILLISECONDS); }
diff --git a/src/main/java/org/apache/tika/sax/xpath/XPathParser.java b/src/main/java/org/apache/tika/sax/xpath/XPathParser.java index 5a0671de0..bb1667e26 100644 --- a/src/main/java/org/apache/tika/sax/xpath/XPathParser.java +++ b/src/main/java/org/apache/tika/sax/xpath/XPathParser.java @@ -1,114 +1,114 @@ /* * Lic...
true
true
public Matcher parse(String xpath) { if (xpath.equals("/text()")) { return TextMatcher.INSTANCE; } else if (xpath.equals("/node()")) { return NodeMatcher.INSTANCE; } else if (xpath.equals("/descendant:node()")) { return new CompositeMatcher( ...
public Matcher parse(String xpath) { if (xpath.equals("/text()")) { return TextMatcher.INSTANCE; } else if (xpath.equals("/node()")) { return NodeMatcher.INSTANCE; } else if (xpath.equals("/descendant:node()")) { return new CompositeMatcher( ...
diff --git a/src/main/java/org/jenkinsci/plugins/IPMessengerNotifier.java b/src/main/java/org/jenkinsci/plugins/IPMessengerNotifier.java index 3b4406b..8072707 100644 --- a/src/main/java/org/jenkinsci/plugins/IPMessengerNotifier.java +++ b/src/main/java/org/jenkinsci/plugins/IPMessengerNotifier.java @@ -1,194 +1,194 @@...
true
true
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) { PrintStream logger = listener.getLogger(); String message = "Build " + build.getResult().toString() + "\n"; try { fromHost = InetAddress.getLocalHost().getHostName(); ...
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) { PrintStream logger = listener.getLogger(); String message = "BUILD " + build.getResult().toString() + "\n"; try { fromHost = InetAddress.getLocalHost().getHostName(); ...
diff --git a/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/SimpleScriptableTest.java b/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/SimpleScriptableTest.java index 3dcadb848..ca8d87df8 100644 --- a/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/SimpleScriptableTest....
true
true
public void htmlJavaScriptMapping_AllJavaScriptClassesArePresent() { final Map<Class < ? extends HtmlElement>, Class < ? extends SimpleScriptable>> map = JavaScriptConfiguration.getHtmlJavaScriptMapping(); final String directoryName = "../../../src/main/java/com/gargoylesoftware/htmlunit...
public void htmlJavaScriptMapping_AllJavaScriptClassesArePresent() { final Map<Class < ? extends HtmlElement>, Class < ? extends SimpleScriptable>> map = JavaScriptConfiguration.getHtmlJavaScriptMapping(); final String directoryName = "../../../src/main/java/com/gargoylesoftware/htmlunit...
diff --git a/NCore/src/main/java/fr/ribesg/bukkit/ncore/common/AsyncPermAccessor.java b/NCore/src/main/java/fr/ribesg/bukkit/ncore/common/AsyncPermAccessor.java index 2b06de87..81ee2b43 100644 --- a/NCore/src/main/java/fr/ribesg/bukkit/ncore/common/AsyncPermAccessor.java +++ b/NCore/src/main/java/fr/ribesg/bukkit/ncore...
true
true
private void updatePlayer(final Player player) { final String playerName = player.getName(); if (player.isOp()) { this.ops.add(playerName); } else { this.ops.remove(playerName); } Set<String> playerPerms = this.permissions.get(playerName); if (playerPerms == null) { playerPerms = Collections.newSe...
private void updatePlayer(final Player player) { final String playerName = player.getName(); if (player.isOp()) { this.ops.add(playerName); } else { this.ops.remove(playerName); } Set<String> playerPerms = this.permissions.get(playerName); if (playerPerms == null) { playerPerms = Collections.newSe...
diff --git a/src/main/java/com/minecraftdimensions/bungeechatfilter/Rule.java b/src/main/java/com/minecraftdimensions/bungeechatfilter/Rule.java index ceafff9..fa9454d 100644 --- a/src/main/java/com/minecraftdimensions/bungeechatfilter/Rule.java +++ b/src/main/java/com/minecraftdimensions/bungeechatfilter/Rule.java @@ ...
true
true
public void performActions( ChatEvent event, ProxiedPlayer player ) { String message = event.getMessage(); if(message.matches( ignore.pattern() )){ return; } for ( String action : actions.keySet() ) { if ( action.equals( "deny" ) ) { event.set...
public void performActions( ChatEvent event, ProxiedPlayer player ) { String message = event.getMessage(); Matcher ig =Pattern.compile(ignore.pattern()).matcher(message); while(ig.find()){ return; } for ( String action : actions.keySet() ) { if ( a...
diff --git a/src/net/azib/ipscan/gui/actions/StartStopScanningAction.java b/src/net/azib/ipscan/gui/actions/StartStopScanningAction.java index 4841c8c..dbc86ae 100755 --- a/src/net/azib/ipscan/gui/actions/StartStopScanningAction.java +++ b/src/net/azib/ipscan/gui/actions/StartStopScanningAction.java @@ -1,238 +1,250 @@...
false
true
public void transitionTo(final ScanningState state) { if (display.isDisposed()) return; display.syncExec(new Runnable() { public void run() { if (statusBar.isDisposed()) return; // TODO: separate GUI and non-GUI stuff switch (state) { case IDLE: // reset state text butt...
public void transitionTo(final ScanningState state) { if (display.isDisposed()) return; display.syncExec(new Runnable() { public void run() { if (statusBar.isDisposed()) return; // TODO: separate GUI and non-GUI stuff switch (state) { case IDLE: // reset state text butt...
diff --git a/src/com/android/deskclock/DeskClock.java b/src/com/android/deskclock/DeskClock.java index f8b7129..e7060b5 100644 --- a/src/com/android/deskclock/DeskClock.java +++ b/src/com/android/deskclock/DeskClock.java @@ -1,733 +1,739 @@ /* * Copyright (C) 2009 The Android Open Source Project * * Licensed und...
false
true
private void initViews() { // give up any internal focus before we switch layouts final View focused = getCurrentFocus(); if (focused != null) focused.clearFocus(); setContentView(R.layout.desk_clock); mTime = (DigitalClock) findViewById(R.id.time); mDate = (TextVie...
private void initViews() { // give up any internal focus before we switch layouts final View focused = getCurrentFocus(); if (focused != null) focused.clearFocus(); setContentView(R.layout.desk_clock); mTime = (DigitalClock) findViewById(R.id.time); mDate = (TextVie...
diff --git a/src/com/itmill/toolkit/demo/testbench/TestForBasicApplicationLayout.java b/src/com/itmill/toolkit/demo/testbench/TestForBasicApplicationLayout.java index 77f671cb5..19de0d4c8 100644 --- a/src/com/itmill/toolkit/demo/testbench/TestForBasicApplicationLayout.java +++ b/src/com/itmill/toolkit/demo/testbench/Te...
true
true
public TestForBasicApplicationLayout() { click = new Button("Set height -1", new ClickListener() { public void buttonClick(ClickEvent event) { tab.setHeight(-1); } }); click2 = new Button("Set height 100%", new ClickListener() { public...
public TestForBasicApplicationLayout() { click = new Button("Set height -1", new ClickListener() { public void buttonClick(ClickEvent event) { tab.setHeight(-1); } }); click2 = new Button("Set height 100%", new ClickListener() { public...
diff --git a/tregmine/src/info/tregmine/Tregmine.java b/tregmine/src/info/tregmine/Tregmine.java index abc2185..dfad4ac 100644 --- a/tregmine/src/info/tregmine/Tregmine.java +++ b/tregmine/src/info/tregmine/Tregmine.java @@ -1,200 +1,200 @@ package info.tregmine; import info.tregmine.api.TregminePlayer; import i...
true
true
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) { String commandName = command.getName().toLowerCase(); Player from = null; TregminePlayer player = null; if(!(sender instanceof Player)) { return false; } else { from = (Player) sender; player = this...
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) { String commandName = command.getName().toLowerCase(); Player from = null; TregminePlayer player = null; if(!(sender instanceof Player)) { return false; } else { from = (Player) sender; player = this...
diff --git a/src/zemberek3/lexicon/TurkishSuffixes.java b/src/zemberek3/lexicon/TurkishSuffixes.java index 3142a31..622be43 100644 --- a/src/zemberek3/lexicon/TurkishSuffixes.java +++ b/src/zemberek3/lexicon/TurkishSuffixes.java @@ -1,888 +1,888 @@ package zemberek3.lexicon; import zemberek3.lexicon.graph.DynamicSu...
true
true
public TurkishSuffixes() { // noun template. it has all possible suffix forms that a noun can follow Noun_Main.directSuccessors.add(A3pl_lAr, A3pl_Comp_lAr, A3sg_EMPTY); Noun_Main.successors.add(POSSESSIVE_FORMS, CASE_FORMS) .add(Dat_nA, Loc_ndA, Abl_ndAn, Acc_nI, Equ_ncA) ...
public TurkishSuffixes() { // noun template. it has all possible suffix forms that a noun can follow Noun_Main.directSuccessors.add(A3pl_lAr, A3pl_Comp_lAr, A3sg_EMPTY); Noun_Main.successors.add(POSSESSIVE_FORMS, CASE_FORMS) .add(Dat_nA, Loc_ndA, Abl_ndAn, Acc_nI, Equ_ncA) ...
diff --git a/connectors/juli/src/java/org/apache/juli/FileHandler.java b/connectors/juli/src/java/org/apache/juli/FileHandler.java index a867e194..7e30587a 100644 --- a/connectors/juli/src/java/org/apache/juli/FileHandler.java +++ b/connectors/juli/src/java/org/apache/juli/FileHandler.java @@ -1,312 +1,313 @@ /* * L...
true
true
private void configure() { Timestamp ts = new Timestamp(System.currentTimeMillis()); String tsString = ts.toString().substring(0, 19); date = tsString.substring(0, 10); String className = FileHandler.class.getName(); ClassLoader cl = Thread.currentThread().getConte...
private void configure() { Timestamp ts = new Timestamp(System.currentTimeMillis()); String tsString = ts.toString().substring(0, 19); date = tsString.substring(0, 10); String className = FileHandler.class.getName(); ClassLoader cl = Thread.currentThread().getConte...
diff --git a/src/main/java/com/wormhole_xtreme/wormhole/model/StargateShapeLayer.java b/src/main/java/com/wormhole_xtreme/wormhole/model/StargateShapeLayer.java index 264d50f..7004134 100644 --- a/src/main/java/com/wormhole_xtreme/wormhole/model/StargateShapeLayer.java +++ b/src/main/java/com/wormhole_xtreme/wormhole/m...
false
true
public StargateShapeLayer(String[] layerLines, int height, int width) { int numBlocks = 0; // 1. scan all lines for lines beginning with [ - that is the height of the gate for ( int i = 0; i < layerLines.length; i++ ) { Pattern p = Pattern.compile("(\\[.*?\\])"); Matcher m = p.matcher(layerLines[i])...
public StargateShapeLayer(String[] layerLines, int height, int width) { int numBlocks = 0; // 1. scan all lines for lines beginning with [ - that is the height of the gate for ( int i = 0; i < layerLines.length; i++ ) { Pattern p = Pattern.compile("\\[(.+?)\\]"); Matcher m = p.matcher(layerLines[i])...
diff --git a/BetterBatteryStats/src/com/asksven/betterbatterystats/StatsActivity.java b/BetterBatteryStats/src/com/asksven/betterbatterystats/StatsActivity.java index 24b4f005..c4c5f55e 100644 --- a/BetterBatteryStats/src/com/asksven/betterbatterystats/StatsActivity.java +++ b/BetterBatteryStats/src/com/asksven/betterb...
true
true
protected void onCreate(Bundle savedInstanceState) { Log.i(TAG, "OnCreated called"); super.onCreate(savedInstanceState); setContentView(R.layout.stats); SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this); // set debugging if (sharedPrefs.getBoolean("debug_logging", f...
protected void onCreate(Bundle savedInstanceState) { Log.i(TAG, "OnCreated called"); super.onCreate(savedInstanceState); setContentView(R.layout.stats); SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this); // set debugging if (sharedPrefs.getBoolean("debug_logging", f...
diff --git a/src/main/java/org/apache/hadoop/hoya/exec/RunLongLivedApp.java b/src/main/java/org/apache/hadoop/hoya/exec/RunLongLivedApp.java index 9c067d3f..dae62d71 100644 --- a/src/main/java/org/apache/hadoop/hoya/exec/RunLongLivedApp.java +++ b/src/main/java/org/apache/hadoop/hoya/exec/RunLongLivedApp.java @@ -1,404...
true
true
public void run() { BufferedReader errReader = null; BufferedReader outReader = null; StringBuilder outLine = new StringBuilder(256); StringBuilder errorLine = new StringBuilder(256); try { errReader = new BufferedReader(new InputStreamReader(process ...
public void run() { BufferedReader errReader = null; BufferedReader outReader = null; StringBuilder outLine = new StringBuilder(256); StringBuilder errorLine = new StringBuilder(256); try { errReader = new BufferedReader(new InputStreamReader(process ...
diff --git a/nuget-tests/src/jetbrains/buildServer/nuget/tests/server/settings/NuGetSettingsManagerPersitedTest.java b/nuget-tests/src/jetbrains/buildServer/nuget/tests/server/settings/NuGetSettingsManagerPersitedTest.java index 1893bff8..263023a0 100644 --- a/nuget-tests/src/jetbrains/buildServer/nuget/tests/server/se...
false
true
public void testFileWatcherReload_event() throws IOException { testReadWrite(); File tmp = createTempFile(); FileUtil.copy(myFile, tmp); FileUtil.delete(myFile); recreateSettings(); final AtomicBoolean componentReloadCalled = new AtomicBoolean(); final AtomicBoolean reloadCalled = new At...
public void testFileWatcherReload_event() throws IOException, InterruptedException { testReadWrite(); File tmp = createTempFile(); FileUtil.copy(myFile, tmp); FileUtil.delete(myFile); recreateSettings(); final AtomicBoolean componentReloadCalled = new AtomicBoolean(); final AtomicBoolean...
diff --git a/test/functional/test/java/lang/ClassTest.java b/test/functional/test/java/lang/ClassTest.java index 51676073..d2e4ba54 100644 --- a/test/functional/test/java/lang/ClassTest.java +++ b/test/functional/test/java/lang/ClassTest.java @@ -1,91 +1,91 @@ package test.java.lang; import jvm.TestCase; import ...
true
true
public static void testGetAnnotation() { Tag tag = TaggedClass.class.getAnnotation(Tag.class); assertEquals(Byte.MAX_VALUE, tag.byteValue()); assertEquals(Character.MAX_VALUE, tag.charValue()); assertEquals(Short.MAX_VALUE, tag.shortValue()); assertEquals(Integer.MAX_VALUE, tag.intValue()); a...
public static void testGetAnnotation() { Tag tag = TaggedClass.class.getAnnotation(Tag.class); assertEquals(Byte.MAX_VALUE, tag.byteValue()); assertEquals(Character.MAX_VALUE, tag.charValue()); assertEquals(Short.MAX_VALUE, tag.shortValue()); assertEquals(Integer.MAX_VALUE, tag.intValue()); a...
diff --git a/svnkit/src/org/tmatesoft/svn/core/internal/wc/SVNCommitUtil.java b/svnkit/src/org/tmatesoft/svn/core/internal/wc/SVNCommitUtil.java index 9d4a2b483..557cd1053 100644 --- a/svnkit/src/org/tmatesoft/svn/core/internal/wc/SVNCommitUtil.java +++ b/svnkit/src/org/tmatesoft/svn/core/internal/wc/SVNCommitUtil.java...
false
true
public static void harvestCommitables(Map commitables, SVNAdminArea dir, File path, SVNEntry parentEntry, SVNEntry entry, String url, String copyFromURL, boolean copyMode, boolean addsOnly, boolean justLocked, Map lockTokens, boolean recursive, boolean forcedRecursion, ISVNCommit...
public static void harvestCommitables(Map commitables, SVNAdminArea dir, File path, SVNEntry parentEntry, SVNEntry entry, String url, String copyFromURL, boolean copyMode, boolean addsOnly, boolean justLocked, Map lockTokens, boolean recursive, boolean forcedRecursion, ISVNCommit...
diff --git a/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractComponentAttributes.java b/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractComponentAttributes.java index 79305a51..722fa96d 100644 --- a/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractComponentA...
true
true
protected void setProperty(String propertyName, Object value) { ExtendedLocator<JQueryLocator> locator = propertyLocator.format(propertyName); final AttributeLocator<?> typeLocator = locator.getAttribute(Attribute.TYPE); final ExtendedLocator<JQueryLocator> optionLocator = locator.getChild(j...
protected void setProperty(String propertyName, Object value) { ExtendedLocator<JQueryLocator> locator = propertyLocator.format(propertyName); final AttributeLocator<?> typeLocator = locator.format("").getAttribute(Attribute.TYPE); final ExtendedLocator<JQueryLocator> optionLocator = locator...
diff --git a/src/FE_SRC_COMMON/com/ForgeEssentials/permission/SqlHelper.java b/src/FE_SRC_COMMON/com/ForgeEssentials/permission/SqlHelper.java index 7d70a8d04..81022137d 100644 --- a/src/FE_SRC_COMMON/com/ForgeEssentials/permission/SqlHelper.java +++ b/src/FE_SRC_COMMON/com/ForgeEssentials/permission/SqlHelper.java @@ ...
true
true
public SqlHelper(ConfigPermissions config) { instance = this; connect(config.connector); if (generate) generate(); try { // statementGetLadderList StringBuilder query = new StringBuilder("SELECT ") .append(TABLE_GROUP).append(".").append(COLUMN_GROUP_NAME).append(", ") .append(TABLE_LAD...
public SqlHelper(ConfigPermissions config) { instance = this; connect(config.connector); if (generate) generate(); try { // statementGetLadderList StringBuilder query = new StringBuilder("SELECT ") .append(TABLE_GROUP).append(".").append(COLUMN_GROUP_NAME).append(", ") .append(TABLE_LAD...
diff --git a/CSC340Project/src/matchingAlgorithm/gui/ButtonPanel.java b/CSC340Project/src/matchingAlgorithm/gui/ButtonPanel.java index d863fd4..408fa05 100644 --- a/CSC340Project/src/matchingAlgorithm/gui/ButtonPanel.java +++ b/CSC340Project/src/matchingAlgorithm/gui/ButtonPanel.java @@ -1,73 +1,73 @@ package matching...
true
true
public ButtonPanel(ActionListener alistener, ItemListener ilistener){ super(); this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); findMatches = new JButton("Find Matches"); findMatches.setActionCommand("find matches"); findMatches.addActionListener(alistener); this.add(findMatches, this); ethni...
public ButtonPanel(ActionListener alistener, ItemListener ilistener){ super(); this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); findMatches = new JButton("Find Matches"); findMatches.setActionCommand("find matches"); findMatches.addActionListener(alistener); this.add(findMatches, this); ethni...
diff --git a/html/src/playn/html/HtmlQuadShader.java b/html/src/playn/html/HtmlQuadShader.java index 79607891..81e0b351 100644 --- a/html/src/playn/html/HtmlQuadShader.java +++ b/html/src/playn/html/HtmlQuadShader.java @@ -1,118 +1,118 @@ /** * Copyright 2012 The PlayN Authors * * Licensed under the Apache Licen...
true
true
public void addQuad(InternalTransform local, float x1, float y1, float sx1, float sy1, float x2, float y2, float sx2, float sy2, float x3, float y3, float sx3, float sy3, float x4, float y4, float sx4, float sy4) { HtmlInterna...
public void addQuad(InternalTransform local, float x1, float y1, float sx1, float sy1, float x2, float y2, float sx2, float sy2, float x3, float y3, float sx3, float sy3, float x4, float y4, float sx4, float sy4) { HtmlInterna...
diff --git a/modules/dm4-accesscontrol/src/main/java/de/deepamehta/plugins/accesscontrol/model/Credentials.java b/modules/dm4-accesscontrol/src/main/java/de/deepamehta/plugins/accesscontrol/model/Credentials.java index 11b2cdb1e..3384ead54 100644 --- a/modules/dm4-accesscontrol/src/main/java/de/deepamehta/plugins/acces...
true
true
public Credentials(String authHeader) { authHeader = authHeader.substring("Basic ".length()); String[] values = new String(Base64.base64Decode(authHeader)).split(":"); this.username = values[0]; this.password = encryptPassword(values.length > 1 ? values[1] : ""); // Note: cre...
public Credentials(String authHeader) { authHeader = authHeader.substring("Basic ".length()); String[] values = new String(Base64.base64Decode(authHeader)).split(":"); // Note: values.length is 0 if neither a username nor a password is entered // values.length is 1 if no passwo...
diff --git a/src/hhu/propra_2013/gruppe_13/MISCNPC.java b/src/hhu/propra_2013/gruppe_13/MISCNPC.java index 926f11c..89e4518 100644 --- a/src/hhu/propra_2013/gruppe_13/MISCNPC.java +++ b/src/hhu/propra_2013/gruppe_13/MISCNPC.java @@ -1,177 +1,177 @@ package hhu.propra_2013.gruppe_13; import java.awt.Color; import j...
true
true
MISCNPC(double initX, double initY, double initHeight, double initWidth, Figure inFigure, String inBoss, int inStage){ x = initX; y = initY; v_x = 0; v_y = 0; height = initHeight; width = initWidth; r = Math.max(width, height)+v_x*v_x+v_y*v_y; hp = 1; //should not be harmed at all, but GameO...
MISCNPC(double initX, double initY, double initHeight, double initWidth, Figure inFigure, String inBoss, int inStage){ x = initX; y = initY; v_x = 0; v_y = 0; height = initHeight; width = initWidth; r = Math.max(width, height)+v_x*v_x+v_y*v_y; hp = 1; //should not be harmed at all, but GameO...
diff --git a/src/com/appspot/iclifeplanning/SuggestionServlet.java b/src/com/appspot/iclifeplanning/SuggestionServlet.java index 1d0ec2e..aa2fe3d 100644 --- a/src/com/appspot/iclifeplanning/SuggestionServlet.java +++ b/src/com/appspot/iclifeplanning/SuggestionServlet.java @@ -1,191 +1,191 @@ package com.appspot.iclife...
true
true
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { System.out.println("Map size: " + suggestionMap.size()); String token = TokenStore.getToken(CalendarUtils.getCurrentUserId()); CalendarUtils.client.setAuthSubToken(token); EventStore eventStore = EventStore.ge...
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { System.out.println("Map size: " + suggestionMap.size()); String token = TokenStore.getToken(CalendarUtils.getCurrentUserId()); CalendarUtils.client.setAuthSubToken(token); EventStore eventStore = EventStore.ge...
diff --git a/app/src/com/meiste/greg/ptw/WidgetProvider.java b/app/src/com/meiste/greg/ptw/WidgetProvider.java index 362c063..ccdcb4c 100644 --- a/app/src/com/meiste/greg/ptw/WidgetProvider.java +++ b/app/src/com/meiste/greg/ptw/WidgetProvider.java @@ -1,287 +1,291 @@ /* * Copyright (C) 2013 Gregory S. Meiste <http...
true
true
protected void onPostExecute(final Integer result) { Util.log("UpdateWidgetTask.onPostExecute: result=" + result); RemoteViews rViews; switch (result) { case RESULT_SUCCESS: final int str_id = sRace.isRecent() ? R.string.widget_current_race : R.st...
protected void onPostExecute(final Integer result) { Util.log("UpdateWidgetTask.onPostExecute: result=" + result); RemoteViews rViews; switch (result) { case RESULT_SUCCESS: if (sRace == null) { // Schedule update received whil...
diff --git a/src/main/java/fr/inria/diversify/replace/RunMaven.java b/src/main/java/fr/inria/diversify/replace/RunMaven.java index bd89f30..22b59bc 100644 --- a/src/main/java/fr/inria/diversify/replace/RunMaven.java +++ b/src/main/java/fr/inria/diversify/replace/RunMaven.java @@ -1,73 +1,73 @@ package fr.inria.diversi...
true
true
protected void parseResult(String r) { result = new ArrayList<String>(); boolean start = false; for (String s : r.split("\n")) { System.out.println(s); if (s.startsWith("[ERROR] COMPILATION ERROR")) compileError = true; if (s.startsWith("Te...
protected void parseResult(String r) { result = new ArrayList<String>(); boolean start = false; for (String s : r.split("\n")) { // System.out.println(s); if (s.startsWith("[ERROR] COMPILATION ERROR")) compileError = true; if (s.startsWith("...
diff --git a/src/org/eclipse/core/tests/resources/regression/IFileTest.java b/src/org/eclipse/core/tests/resources/regression/IFileTest.java index 23d6c11..71588f9 100644 --- a/src/org/eclipse/core/tests/resources/regression/IFileTest.java +++ b/src/org/eclipse/core/tests/resources/regression/IFileTest.java @@ -1,114 +...
true
true
public void testBug25658() { // This test is no longer valid since the error code is dependant on whether // or not the parent folder is marked as read-only. We need to write a different // test to make the file.create file. if (true) return; // We need to know whether or not we can set the folder to be read...
public void testBug25658() { // This test is no longer valid since the error code is dependant on whether // or not the parent folder is marked as read-only. We need to write a different // test to make the file.create fail. if (true) return; // We need to know whether or not we can set the folder to be read...
diff --git a/PhonelabServices/src/edu/buffalo/cse/phonelab/statusmonitor/StatusMonitorLocation.java b/PhonelabServices/src/edu/buffalo/cse/phonelab/statusmonitor/StatusMonitorLocation.java index 1860da7..b3a3778 100644 --- a/PhonelabServices/src/edu/buffalo/cse/phonelab/statusmonitor/StatusMonitorLocation.java +++ b/Ph...
true
true
public int onStartCommand(Intent intent, int flags, int startId) { Log.i("PhoneLab-" + getClass().getSimpleName(), "Learning Location"); Locks.acquireWakeLock(this); timer = new Timer(); timer.schedule(new TimerTask() { public void run() { locationManager.removeUpdates(locationListener); Log.i("...
public int onStartCommand(Intent intent, int flags, int startId) { Log.i("PhoneLab-" + getClass().getSimpleName(), "Learning Location"); Locks.acquireWakeLock(this); timer = new Timer(); timer.schedule(new TimerTask() { public void run() { locationManager.removeUpdates(locationListener); Log.i("...
diff --git a/src/ibis/ipl/impl/Ibis.java b/src/ibis/ipl/impl/Ibis.java index 9fb26f57..e9aeeb54 100644 --- a/src/ibis/ipl/impl/Ibis.java +++ b/src/ibis/ipl/impl/Ibis.java @@ -1,827 +1,833 @@ /* $Id$ */ package ibis.ipl.impl; import ibis.io.IbisIOException; import ibis.ipl.Credentials; import ibis.ipl.IbisCapab...
false
true
protected Ibis(RegistryEventHandler registryHandler, IbisCapabilities capabilities, Credentials credentials, byte[] applicationTag, PortType[] portTypes, Properties userProperties, IbisStarter starter) throws IbisCreationFailedException { if (capabilities == ...
protected Ibis(RegistryEventHandler registryHandler, IbisCapabilities capabilities, Credentials credentials, byte[] applicationTag, PortType[] portTypes, Properties userProperties, IbisStarter starter) throws IbisCreationFailedException { if (capabilities == ...
diff --git a/plugins/org.eclipse.acceleo.parser/src/org/eclipse/acceleo/internal/parser/ast/ocl/environment/AcceleoUMLReflection.java b/plugins/org.eclipse.acceleo.parser/src/org/eclipse/acceleo/internal/parser/ast/ocl/environment/AcceleoUMLReflection.java index 486dc7dd..9ef6d1b1 100644 --- a/plugins/org.eclipse.accel...
true
true
public synchronized List<EOperation> getOperations(EClassifier classifier, String name) { final List<EOperation> result = new ArrayList<EOperation>(); if (classifier instanceof EClass) { final List<EOperation> candidates = ((EClass)classifier).getEOperations(); for (EOperation candidate : candidates) { ...
public synchronized List<EOperation> getOperations(EClassifier classifier, String name) { final List<EOperation> result = new ArrayList<EOperation>(); if (classifier instanceof EClass) { final List<EOperation> candidates = new ArrayList<EOperation>(((EClass)classifier) .getEOperations()); for (EOperati...
diff --git a/CalcESTv4/src/controller/Berechnungen.java b/CalcESTv4/src/controller/Berechnungen.java index 9fd14fb..b0603a7 100644 --- a/CalcESTv4/src/controller/Berechnungen.java +++ b/CalcESTv4/src/controller/Berechnungen.java @@ -1,42 +1,42 @@ package controller; public class Berechnungen { public static dou...
false
true
public static double WerbungsKosten(int ArbeitsTage, double EntfernungWA, double ArbeitsMittelGezahlt, double TelefonKostenGezahlt) { double ENTFERNUNGSPAUSCHALE = 0.3; double WerbungsKostenAbzug = 0.0; double ArbeitsMittelAbzug = 0.0; double TelefonKostenAbzug = 0.0; double WerbungsKostenGezahlt = 0.0; ...
public static double WerbungsKosten(int ArbeitsTage, double EntfernungWA, double ArbeitsMittelGezahlt, double TelefonKostenGezahlt) { double ENTFERNUNGSPAUSCHALE = 0.3; double WerbungsKostenAbzug = 0.0; double ArbeitsMittelAbzug = 0.0; double TelefonKostenAbzug = 0.0; double WerbungsKostenGezahlt = 0.0; ...
diff --git a/src/main/java/com/lebelw/Tickets/commands/TemplateCmd.java b/src/main/java/com/lebelw/Tickets/commands/TemplateCmd.java index 9f3cecd..e3ead79 100644 --- a/src/main/java/com/lebelw/Tickets/commands/TemplateCmd.java +++ b/src/main/java/com/lebelw/Tickets/commands/TemplateCmd.java @@ -1,335 +1,337 @@ packag...
false
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { boolean handled = false; if (is(label, "ticket")) { if (args == null || args.length == 0) { handled = true; if (isPlayer(sender)){ String name = getName(sender); ...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { boolean handled = false; if (is(label, "ticket")) { if (args == null || args.length == 0) { handled = true; if (isPlayer(sender)){ String name = getName(sender); ...
diff --git a/osmorc/src/org/osmorc/inspection/MissingFinalNewlineInspection.java b/osmorc/src/org/osmorc/inspection/MissingFinalNewlineInspection.java index c9ee42ebdd..9902feee33 100644 --- a/osmorc/src/org/osmorc/inspection/MissingFinalNewlineInspection.java +++ b/osmorc/src/org/osmorc/inspection/MissingFinalNewlineI...
true
true
public ProblemDescriptor[] checkFile(@NotNull PsiFile file, @NotNull InspectionManager manager, boolean isOnTheFly) { if (file instanceof ManifestFile) { String text = file.getText(); if (text.charAt(text.length() - 1) != '\n') { ManifestHeaderValueImpl headerValue = ...
public ProblemDescriptor[] checkFile(@NotNull PsiFile file, @NotNull InspectionManager manager, boolean isOnTheFly) { if (file instanceof ManifestFile) { String text = file.getText(); if (text.charAt(text.length() - 1) != '\n') { ManifestHeaderValueImpl headerValue = ...
diff --git a/modules/axiom-api/src/main/java/org/apache/axiom/attachments/impl/PartFactory.java b/modules/axiom-api/src/main/java/org/apache/axiom/attachments/impl/PartFactory.java index ecaaee923..c116233e5 100644 --- a/modules/axiom-api/src/main/java/org/apache/axiom/attachments/impl/PartFactory.java +++ b/modules/ax...
true
true
public static Part createPart(LifecycleManager manager, MimeTokenStream parser, boolean isSOAPPart, int thresholdSize, String attachmentDir, int messageContentLength ) throws OMException { if(log.isDebugEnabl...
public static Part createPart(LifecycleManager manager, MimeTokenStream parser, boolean isSOAPPart, int thresholdSize, String attachmentDir, int messageContentLength ) throws OMException { if(log.isDebugEnabl...
diff --git a/src/test/java/org/lastbamboo/common/ice/IceAgentImplTest.java b/src/test/java/org/lastbamboo/common/ice/IceAgentImplTest.java index 10e0e10..7eb40a4 100644 --- a/src/test/java/org/lastbamboo/common/ice/IceAgentImplTest.java +++ b/src/test/java/org/lastbamboo/common/ice/IceAgentImplTest.java @@ -1,273 +1,28...
false
true
public void testLocalUdpConnection() throws Exception { final IceMediaStreamDesc desc = new IceMediaStreamDesc(false, true, "message", "http", 1); final GeneralIceMediaStreamFactory generalStreamFactory = new GeneralIceMediaStreamFactoryImpl(); ...
public void testLocalUdpConnection() throws Exception { final IceMediaStreamDesc desc = new IceMediaStreamDesc(false, true, "message", "http", 1); final GeneralIceMediaStreamFactory generalStreamFactory = new GeneralIceMediaStreamFactoryImpl(); ...
diff --git a/Pathogenum/src/client/ClientHubState.java b/Pathogenum/src/client/ClientHubState.java index 5a71455..c4ff61b 100644 --- a/Pathogenum/src/client/ClientHubState.java +++ b/Pathogenum/src/client/ClientHubState.java @@ -1,332 +1,336 @@ package client; import java.net.InetAddress; import java.net.UnknownHo...
false
true
public void update(GameContainer arg0, StateBasedGame arg1, int arg2) throws SlickException { if (pressedSend && !Mouse.isButtonDown(0)) { // Prevents clicks being // counted several times pressedSend = false; } if (pressedNew && !Mouse.isButtonDown(0)) { // --||-- pressedNew = false; ...
public void update(GameContainer arg0, StateBasedGame arg1, int arg2) throws SlickException { if (pressedSend && !Mouse.isButtonDown(0)) { // Prevents clicks being // counted several times pressedSend = false; } if (pressedNew && !Mouse.isButtonDown(0)) { // --||-- pressedNew = false; ...
diff --git a/src/share/classes/com/sun/tools/javah/StaticJNIClassHelper.java b/src/share/classes/com/sun/tools/javah/StaticJNIClassHelper.java index 103c1c69..a1236e70 100644 --- a/src/share/classes/com/sun/tools/javah/StaticJNIClassHelper.java +++ b/src/share/classes/com/sun/tools/javah/StaticJNIClassHelper.java @@ -1...
true
true
public void setCurrentClass ( TypeElement clazz ) { if ( clazz != currentClass ) { currentClass = clazz; callbacks.clear(); fieldCallbacks.clear(); arrayCallbacks.clear(); referredTypes.clear(); List<ExecutableElement> classmethods...
public void setCurrentClass ( TypeElement clazz ) { if ( clazz != currentClass ) { currentClass = clazz; callbacks.clear(); fieldCallbacks.clear(); superCallbacks.clear(); constCallbacks.clear(); exceptionCallbacks.clear(); arrayCal...
diff --git a/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java b/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java index 30b262a2..99737feb 100644 --- a/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java +++ b/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java @@ -1,4813 +1,4814 @@ /* * Licensed to the...
false
true
Augmentations handleStartElement(QName element, XMLAttributes attributes, Augmentations augs) { if (DEBUG) { System.out.println("==>handleStartElement: " + element); } // root element if (fElementDepth == -1 && fValidationManager.isGrammarFound()) { if (fSch...
Augmentations handleStartElement(QName element, XMLAttributes attributes, Augmentations augs) { if (DEBUG) { System.out.println("==>handleStartElement: " + element); } // root element if (fElementDepth == -1 && fValidationManager.isGrammarFound()) { if (fSch...
diff --git a/src/annahack/utils/DiceSet.java b/src/annahack/utils/DiceSet.java index 6e59c89..13c6060 100644 --- a/src/annahack/utils/DiceSet.java +++ b/src/annahack/utils/DiceSet.java @@ -1,125 +1,125 @@ package annahack.utils; import java.util.ArrayList; public class DiceSet { private double average, stdDe...
true
true
public DiceSet(String d) throws BadDiceException { String[] a=d.split("\\+"); min=0; max=0; int add=0; if(!a[a.length-1].contains("d")) { add=Integer.parseInt(a[a.length-1]); min+=add; max+=add; String[] temp=new String[a.length-1]; for(int i=0; i<a.length-1; i++) { temp[i]=a[i];...
public DiceSet(String d) throws BadDiceException { String[] a=d.split("\\+"); min=0; max=0; int add=0; if(!a[a.length-1].contains("d")) { add=Integer.parseInt(a[a.length-1]); min+=add; max+=add; String[] temp=new String[a.length-1]; for(int i=0; i<a.length-1; i++) { temp[i]=a[i];...
diff --git a/src/com/evervoid/network/EverMessageHandler.java b/src/com/evervoid/network/EverMessageHandler.java index b4f6d32..998e3b3 100644 --- a/src/com/evervoid/network/EverMessageHandler.java +++ b/src/com/evervoid/network/EverMessageHandler.java @@ -1,227 +1,233 @@ package com.evervoid.network; import java.i...
false
true
private boolean send() throws EverMessageSendingException { final List<PartialMessage> messages = aMessage.getMessages(); int partIndex = 1; final int parts = messages.size(); for (final PartialMessage part : messages) { try { sPartialMessageLogger.info(getSide() + "EverMessageHandler sending t...
private boolean send() throws EverMessageSendingException { final List<PartialMessage> messages = aMessage.getMessages(); int partIndex = 1; final int parts = messages.size(); for (final PartialMessage part : messages) { try { sPartialMessageLogger.info(getSide() + "EverMessageHandler sending t...
diff --git a/spring-integration-core/src/test/java/org/springframework/integration/bus/FixedDelayConsumerTests.java b/spring-integration-core/src/test/java/org/springframework/integration/bus/FixedDelayConsumerTests.java index dd61bf74fc..74f1204bc5 100644 --- a/spring-integration-core/src/test/java/org/springframework...
true
true
public void testTimedOutMessagesAreNotReceived() throws Exception { int messagesToSend = 20; final AtomicInteger counter = new AtomicInteger(0); final CountDownLatch latch = new CountDownLatch(messagesToSend); PointToPointChannel channel = new PointToPointChannel(); MessageEndpoint endpoint = new GenericMess...
public void testTimedOutMessagesAreNotReceived() throws Exception { int messagesToSend = 20; final AtomicInteger counter = new AtomicInteger(0); final CountDownLatch latch = new CountDownLatch(messagesToSend); PointToPointChannel channel = new PointToPointChannel(); MessageEndpoint endpoint = new GenericMess...
diff --git a/web-core/src/test/java/com/silverpeas/profile/web/UserProfileTestResources.java b/web-core/src/test/java/com/silverpeas/profile/web/UserProfileTestResources.java index 6f8a00428d..cc2bf598ac 100644 --- a/web-core/src/test/java/com/silverpeas/profile/web/UserProfileTestResources.java +++ b/web-core/src/test...
false
true
public void whenSearchUsersByCriteriaThenReturn(final UserDetailsSearchCriteria criteria, final UserDetail[] users) { OrganizationController mock = getOrganizationControllerMock(); doAnswer(new Answer<UserDetail[]>() { @Override public UserDetail[] answer(InvocationOnMock invocation) th...
public void whenSearchUsersByCriteriaThenReturn(final UserDetailsSearchCriteria criteria, final UserDetail[] users) { OrganizationController mock = getOrganizationControllerMock(); doAnswer(new Answer<UserDetail[]>() { @Override public UserDetail[] answer(InvocationOnMock invocation) th...
diff --git a/src/main/java/org/exolab/castor/builder/DescriptorSourceFactory.java b/src/main/java/org/exolab/castor/builder/DescriptorSourceFactory.java index 7e0222fa..bbfb43c7 100644 --- a/src/main/java/org/exolab/castor/builder/DescriptorSourceFactory.java +++ b/src/main/java/org/exolab/castor/builder/DescriptorSour...
false
true
private void createXMLFieldHandler(final FieldInfo member, final XSType xsType, final String localClassName, final JSourceCode jsc, final boolean forGeneralizedHandler) { boolean any = false; boolean isEnumerated...
private void createXMLFieldHandler(final FieldInfo member, final XSType xsType, final String localClassName, final JSourceCode jsc, final boolean forGeneralizedHandler) { boolean any = false; boolean isEnumerated...
diff --git a/waterken/server/src/org/waterken/server/Serve.java b/waterken/server/src/org/waterken/server/Serve.java index 937c5f3b..cfbe552d 100644 --- a/waterken/server/src/org/waterken/server/Serve.java +++ b/waterken/server/src/org/waterken/server/Serve.java @@ -1,178 +1,178 @@ // Copyright 2005-2007 Waterken Inc....
false
true
static public void main(String[] args) throws Exception { // Initialize the static state. final File home = new File("").getAbsoluteFile(); final File www = file(home, "www"); final File db = file(home, JODB.dbDirName); final File keys = new File(home, "keys.jks"...
static public void main(String[] args) throws Exception { // Initialize the static state. final File home = new File("").getAbsoluteFile(); final File www = file(home, "www"); final File db = file(home, JODB.dbDirName); final File keys = new File(home, "keys.jks"...
diff --git a/workflow/src/main/java/org/apache/oodt/cas/workflow/engine/IterativeWorkflowProcessorThread.java b/workflow/src/main/java/org/apache/oodt/cas/workflow/engine/IterativeWorkflowProcessorThread.java index cc9a9374e..7385d4059 100644 --- a/workflow/src/main/java/org/apache/oodt/cas/workflow/engine/IterativeWor...
true
true
public void run() { /* * okay, we got into the run method, mark the start date time for the * workflow instance here */ String startDateTimeIsoStr = DateConvert.isoFormat(new Date()); workflowInst.setStartDateTimeIsoStr(startDateTimeIsoStr); // persist it persistWorkflowInstance(); ...
public void run() { /* * okay, we got into the run method, mark the start date time for the * workflow instance here */ String startDateTimeIsoStr = DateConvert.isoFormat(new Date()); workflowInst.setStartDateTimeIsoStr(startDateTimeIsoStr); // persist it persistWorkflowInstance(); ...
diff --git a/java/src/sorting/HeapSort.java b/java/src/sorting/HeapSort.java index e002c2e..cff6019 100644 --- a/java/src/sorting/HeapSort.java +++ b/java/src/sorting/HeapSort.java @@ -1,22 +1,22 @@ package sorting; import java.util.Comparator; import exceptions.EmptyHeapException; public class HeapSort { p...
true
true
public static <T> T[] heapSort(T[] array, Comparator<T> comparator) { Heap<T> heap = new SimpleHeapImpl<T>(array, comparator); for (int index = array.length - 1; !heap.isEmpty(); index--) { try { array[index] = heap.pop(); } catch (EmptyHeapException e) { // This should never occur; throw new Ru...
public static <T> T[] heapSort(T[] array, Comparator<T> comparator) { Heap<T> heap = new SimpleHeapImpl<T>(array, comparator); for (int index = array.length - 1; !heap.isEmpty(); index--) { try { array[index] = heap.pop(); } catch (EmptyHeapException e) { // This should never occur throw new Run...
diff --git a/emir-core/src/main/java/eu/emi/emir/validator/RegistrationValidator.java b/emir-core/src/main/java/eu/emi/emir/validator/RegistrationValidator.java index 3431390..7d9d634 100644 --- a/emir-core/src/main/java/eu/emi/emir/validator/RegistrationValidator.java +++ b/emir-core/src/main/java/eu/emi/emir/validato...
true
true
Boolean checkExpiryTime() { try { if (jo.has(ServiceBasicAttributeNames.SERVICE_EXPIRE_ON .getAttributeName())) { if (jo.get(ServiceBasicAttributeNames.SERVICE_EXPIRE_ON .getAttributeName()) instanceof JSONObject) { if (jo.getJSONObject( ServiceBasicAttributeNames.SERVICE_EXPIRE_ON ...
Boolean checkExpiryTime() { try { if (jo.has(ServiceBasicAttributeNames.SERVICE_EXPIRE_ON .getAttributeName())) { if (jo.get(ServiceBasicAttributeNames.SERVICE_EXPIRE_ON .getAttributeName()) instanceof JSONObject) { if (jo.getJSONObject( ServiceBasicAttributeNames.SERVICE_EXPIRE_ON ...
diff --git a/src/source/ProofTree.java b/src/source/ProofTree.java index 21c69f6..d18c524 100644 --- a/src/source/ProofTree.java +++ b/src/source/ProofTree.java @@ -1,362 +1,362 @@ package source; import java.util.ArrayList; import java.util.Iterator; import java.util.LinkedList; import java.util.Queue; import ...
false
true
private static Queue<Token> infixToPostfix(ArrayList<Token> tokenArray) throws IllegalLineException { Stack<Token> operatorStack = new Stack<Token>(); Queue<Token> linkedList = new LinkedList<Token>(); Stack<Token.Type> errorStack = new Stack<Token.Type>(); Stack<Token.Type> parenthesisStack = new Stack<Toke...
private static Queue<Token> infixToPostfix(ArrayList<Token> tokenArray) throws IllegalLineException { Stack<Token> operatorStack = new Stack<Token>(); Queue<Token> linkedList = new LinkedList<Token>(); Stack<Token.Type> errorStack = new Stack<Token.Type>(); Stack<Token.Type> parenthesisStack = new Stack<Toke...
diff --git a/android/samples/PushDemo/src/com/avos/avoscloud/PushDemo/PushDemo.java b/android/samples/PushDemo/src/com/avos/avoscloud/PushDemo/PushDemo.java index 7f70d9c..5b6ae7e 100644 --- a/android/samples/PushDemo/src/com/avos/avoscloud/PushDemo/PushDemo.java +++ b/android/samples/PushDemo/src/com/avos/avoscloud/Pu...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); PushService.setDefaultPushCallback(this, PushDemo.class); PushService.subscribe(this, "public", PushDemo.class); PushService.subscribe(this, "private", Callbac...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); PushService.setDefaultPushCallback(this, PushDemo.class); PushService.subscribe(this, "public", PushDemo.class); PushService.subscribe(this, "private", Callbac...
diff --git a/maven-refapp-plugin/src/main/java/com/atlassian/maven/plugins/refapp/DebugMojo.java b/maven-refapp-plugin/src/main/java/com/atlassian/maven/plugins/refapp/DebugMojo.java index b07c81e..2a6641a 100644 --- a/maven-refapp-plugin/src/main/java/com/atlassian/maven/plugins/refapp/DebugMojo.java +++ b/maven-refap...
true
true
protected void doExecute() throws MojoExecutionException, MojoFailureException { if (jvmArgs == null) { jvmArgs = "-Xmx512m -XX:MaxPermSize=160m"; } jvmArgs += " -Xdebug -Xrunjdwp:transport=dt_socket,address="+String.valueOf(jvmDebugPort)+",suspend="+(jvmDebugSuspend?...
protected void doExecute() throws MojoExecutionException, MojoFailureException { if (jvmArgs == null) { jvmArgs = "-Xmx512m -XX:MaxPermSize=160m"; } jvmArgs += " -Xdebug -Xrunjdwp:transport=dt_socket,address="+String.valueOf(jvmDebugPort)+",suspend="+(jvmDebugSuspend?...
diff --git a/kernel-private/src/main/java/org/sakaiproject/springframework/orm/hibernate/dialect/db2/DB2Dialect9.java b/kernel-private/src/main/java/org/sakaiproject/springframework/orm/hibernate/dialect/db2/DB2Dialect9.java index f1c9e9ab..61b0309b 100644 --- a/kernel-private/src/main/java/org/sakaiproject/springframe...
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/common/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/ClassLoaderXmlPreprocessor.java b/common/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/ClassLoaderXmlPreprocessor.java index c5f4c2aff..06c4b5099 100644 --- a/common/servicemix-common/src/main/java/org/apache/ser...
false
true
protected ClassLoader getClassLoader(SpringApplicationContext applicationContext, XmlBeanDefinitionReader reader, Document document) { // determine the classLoader ClassLoader classLoader; NodeList classpathElements = document.getDocumentElement().getElementsByTagName("classpath"); i...
protected ClassLoader getClassLoader(SpringApplicationContext applicationContext, XmlBeanDefinitionReader reader, Document document) { // determine the classLoader ClassLoader classLoader; NodeList classpathElements = document.getDocumentElement().getElementsByTagName("classpath"); i...
diff --git a/MoveConditionInstruction.java b/MoveConditionInstruction.java index e16e41f..78b267f 100644 --- a/MoveConditionInstruction.java +++ b/MoveConditionInstruction.java @@ -1,44 +1,47 @@ import java.util.*; public class MoveConditionInstruction extends Instruction { public String immediate; public Re...
true
true
public String toSparc() { String tempname = new String(name); if(name.equals("movlt")){ tempname = "movl"; } else if(name.equals("movgt")){ tempname = "movg"; } //have to move immediate into a register!! return new String(tempname + " %icc, " + immediate + ", " + dest.sparcNa...
public String toSparc() { String tempname = new String(name); if(name.equals("movlt")){ tempname = "movl"; } else if(name.equals("movgt")){ tempname = "movg"; } else if(name.equals("moveq")){ tempname = "move"; } //have to move immediate into a register!! return...
diff --git a/src/main/java/net/aufdemrand/denizen/scripts/commands/CommandRegistry.java b/src/main/java/net/aufdemrand/denizen/scripts/commands/CommandRegistry.java index f640396a1..a8ce14cfa 100644 --- a/src/main/java/net/aufdemrand/denizen/scripts/commands/CommandRegistry.java +++ b/src/main/java/net/aufdemrand/deniz...
true
true
public void registerCoreMembers() { // <--[command] // @Name Anchor // @Usage anchor [id:<name>] [assume/add/remove/walkto/walknear] (range:<#>) // @Required 2 // @Stable Stable // @Short // @Author Todo // @Description // Todo // @Tags // Todo // @Usage // Todo // @Example // Todo ...
public void registerCoreMembers() { // <--[command] // @Name Anchor // @Usage anchor [id:<name>] [assume/add/remove/walkto/walknear] (range:<#>) // @Required 2 // @Stable Stable // @Short TODO // @Author Todo // @Description // Todo // @Tags // Todo // @Usage // Todo // @Example // To...
diff --git a/src/biz/bokhorst/xprivacy/XPrivacy.java b/src/biz/bokhorst/xprivacy/XPrivacy.java index 264bac9a..fa195eec 100644 --- a/src/biz/bokhorst/xprivacy/XPrivacy.java +++ b/src/biz/bokhorst/xprivacy/XPrivacy.java @@ -1,454 +1,455 @@ package biz.bokhorst.xprivacy; import java.lang.reflect.Constructor; import ...
true
true
private static void hook(final XHook hook, ClassLoader classLoader, String secret) { // Check SDK version Hook md = null; String message = null; if (hook.getRestrictionName() == null) { if (hook.getSdk() == 0) message = "No SDK specified for " + hook; } else { md = PrivacyManager.getHook(hook.getRe...
private static void hook(final XHook hook, ClassLoader classLoader, String secret) { // Check SDK version Hook md = null; String message = null; if (hook.getRestrictionName() == null) { if (hook.getSdk() == 0) message = "No SDK specified for " + hook; } else { md = PrivacyManager.getHook(hook.getRe...
diff --git a/WeCharades/src/com/example/wecharades/presenter/SearchPlayerPresenter.java b/WeCharades/src/com/example/wecharades/presenter/SearchPlayerPresenter.java index 066b3c6..f08def0 100644 --- a/WeCharades/src/com/example/wecharades/presenter/SearchPlayerPresenter.java +++ b/WeCharades/src/com/example/wecharades/...
true
true
private void performSearch(String searchString) { try { ListView view = (ListView) activity.findViewById(R.id.result_list); TextView text = (TextView) activity.findViewById(R.id.empty_list_item); text.setText("No results found!"); view.setEmptyView(text); SortedSet<String> list = dc.getAllOtherPlaye...
private void performSearch(String searchString) { try { ListView view = (ListView) activity.findViewById(R.id.result_list); TextView text = (TextView) activity.findViewById(R.id.empty_list_item); text.setText("No results found!"); view.setEmptyView(text); SortedSet<String> list = dc.getAllOtherPlaye...
diff --git a/src/test/java/com/springsource/greenhouse/members/MembersControllerTest.java b/src/test/java/com/springsource/greenhouse/members/MembersControllerTest.java index d1c968b9..da9d24b5 100644 --- a/src/test/java/com/springsource/greenhouse/members/MembersControllerTest.java +++ b/src/test/java/com/springsource...
true
true
public void setup() { db = GreenhouseTestDatabaseFactory.createUserDatabase( new FileSystemResource("src/main/webapp/WEB-INF/database/schema-user.sql"), new ClassPathResource("MembersControllerTest.sql", getClass())); jdbcTemplate = new JdbcTemplate(db); controller = new MembersControll...
public void setup() { db = GreenhouseTestDatabaseFactory.createUserDatabase( new FileSystemResource("src/main/webapp/WEB-INF/database/schema-user.sql"), new ClassPathResource("MembersControllerTest.sql", getClass())); jdbcTemplate = new JdbcTemplate(db); MembersService membersService = ...
diff --git a/fritzing/Fritzing.diagram/src/org/fritzing/fritzing/diagram/edit/policies/RotatableNonresizableShapeEditPolicy.java b/fritzing/Fritzing.diagram/src/org/fritzing/fritzing/diagram/edit/policies/RotatableNonresizableShapeEditPolicy.java index 8f59e0224..8c810a6d3 100644 --- a/fritzing/Fritzing.diagram/src/org...
false
true
protected Handle createRotationHandle(GraphicalEditPart owner, int direction) { String prefix = ""; int hotX; int hotY; switch (direction) { case PositionConstants.SOUTH_EAST: hotY = 0; hotX = 0; prefix = "SE"; break; case PositionConstants.NORTH_EAST: prefix = "NE"; hotY = 1; hotX = 0...
protected Handle createRotationHandle(GraphicalEditPart owner, int direction) { String prefix = ""; int hotX; int hotY; switch (direction) { case PositionConstants.SOUTH_EAST: hotY = 0; hotX = 0; prefix = "rotateSE"; break; case PositionConstants.NORTH_EAST: hotY = 1; hotX = 0; prefix ...
diff --git a/core/src/main/java/org/apache/abdera/util/AbstractXPath.java b/core/src/main/java/org/apache/abdera/util/AbstractXPath.java index 453ac15a..1769a39d 100644 --- a/core/src/main/java/org/apache/abdera/util/AbstractXPath.java +++ b/core/src/main/java/org/apache/abdera/util/AbstractXPath.java @@ -1,70 +1,70 @@...
true
true
public Map<String, String> getDefaultNamespaces() { if (namespaces == null) namespaces = new HashMap<String,String>(); namespaces.put(Constants.PREFIX, Constants.ATOM_NS); namespaces.put(Constants.APP_PREFIX, Constants.APP_NS); namespaces.put(Constants.CONTROL_PREFIX, Constants.CONTROL_NS); ...
public Map<String, String> getDefaultNamespaces() { if (namespaces == null) namespaces = new HashMap<String,String>(); namespaces.put("a", Constants.ATOM_NS); namespaces.put("app", Constants.APP_NS); namespaces.put("pub", Constants.CONTROL_NS); return namespaces; }
diff --git a/src/main/java/org/abstractj/crypto/Util.java b/src/main/java/org/abstractj/crypto/Util.java index 69a0a3b..88ce44d 100644 --- a/src/main/java/org/abstractj/crypto/Util.java +++ b/src/main/java/org/abstractj/crypto/Util.java @@ -1,16 +1,16 @@ package org.abstractj.crypto; public class Util { publ...
true
true
public static byte[] checkLength(byte[] data, int size) { if (data == null || data.length != size) throw new RuntimeException("Invalid size: " + data.length); return data; }
public static byte[] checkLength(byte[] data, int size) { if (data == null || data.length < size) throw new RuntimeException("Invalid length: " + data.length); return data; }
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerXmlRpcTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerXmlRpcTest.java index cc269f5c6..166297740 100644 --- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests...
true
true
public void testMarkStaleTasks() throws Exception { SynchronizationSession session; TracTicket ticket = TracTestUtil.createTicket(client, "markStaleTasks"); ITask task = TracTestUtil.createTask(repository, ticket.getId() + ""); long lastModified = TracUtil.toTracTime(task.getModificationDate()); // an empty...
public void testMarkStaleTasks() throws Exception { SynchronizationSession session; TracTicket ticket = TracTestUtil.createTicket(client, "markStaleTasks"); ITask task = TracTestUtil.createTask(repository, ticket.getId() + ""); long lastModified = TracUtil.toTracTime(task.getModificationDate()); // an empty...
diff --git a/src/prop/hex/gestors/PartidaHexGstr.java b/src/prop/hex/gestors/PartidaHexGstr.java index 3d5cc76..9d063c6 100644 --- a/src/prop/hex/gestors/PartidaHexGstr.java +++ b/src/prop/hex/gestors/PartidaHexGstr.java @@ -1,55 +1,55 @@ package prop.hex.gestors; import prop.hex.domini.models.PartidaHex; import...
true
true
public Set<String> llistaPartidesUsuari( String id_usuari ) { File carpeta = new File( carpeta_dades + '/' + subcarpeta_dades + '/' ); File[] llista_arxius = carpeta.listFiles(); Set<String> noms_elements = new HashSet<String>(); for ( File arxiu : llista_arxius ) { String nom = arxiu.getName(); if (...
public Set<String> llistaPartidesUsuari( String id_usuari ) { File carpeta = new File( carpeta_dades + '/' + subcarpeta_dades + '/' ); File[] llista_arxius = carpeta.listFiles(); Set<String> noms_elements = new HashSet<String>(); for ( File arxiu : llista_arxius ) { String nom = arxiu.getName(); if (...
diff --git a/src/share/classes/com/sun/tools/javafx/antlr/StringLiteralProcessor.java b/src/share/classes/com/sun/tools/javafx/antlr/StringLiteralProcessor.java index ad739915a..0d5d390e5 100644 --- a/src/share/classes/com/sun/tools/javafx/antlr/StringLiteralProcessor.java +++ b/src/share/classes/com/sun/tools/javafx/a...
true
true
private void scanLitChar() { if (ch == '\\') { if (buf[bp+1] == '\\' && unicodeConversionBp != bp) { bp++; putChar('\\'); scanChar(); } else { scanChar(); switch (ch) { case '0': case '1':...
private void scanLitChar() { if (ch == '\\') { if (buf[bp+1] == '\\' && unicodeConversionBp != bp) { bp++; putChar('\\'); scanChar(); } else { scanChar(); switch (ch) { case '0': case '1':...
diff --git a/src/com/martinbrook/tesseractuhc/command/TeamCommand.java b/src/com/martinbrook/tesseractuhc/command/TeamCommand.java index 4e25cbe..a738b99 100644 --- a/src/com/martinbrook/tesseractuhc/command/TeamCommand.java +++ b/src/com/martinbrook/tesseractuhc/command/TeamCommand.java @@ -1,79 +1,79 @@ package com....
true
true
protected String runAsPlayer(UhcPlayer sender, String[] args) { if (sender.isParticipant()) return ERROR_COLOR + "You have already joined this match. Please /leave before creating a new team."; if (match.getMatchPhase() != MatchPhase.PRE_MATCH) return ERROR_COLOR + "The match is already underway. You cann...
protected String runAsPlayer(UhcPlayer sender, String[] args) { if (sender.isParticipant()) return ERROR_COLOR + "You have already joined this match. Please /leave before creating a new team."; if (match.getMatchPhase() != MatchPhase.PRE_MATCH) return ERROR_COLOR + "The match is already underway. You cann...
diff --git a/src/org/yawlfoundation/yawl/wsinvoker/WSInvoker.java b/src/org/yawlfoundation/yawl/wsinvoker/WSInvoker.java index 076883b..c280ac4 100644 --- a/src/org/yawlfoundation/yawl/wsinvoker/WSInvoker.java +++ b/src/org/yawlfoundation/yawl/wsinvoker/WSInvoker.java @@ -1,280 +1,280 @@ package org.yawlfoundation.yaw...
true
true
public Object invoke(URL wsdl, String serviceName, String bindingName, String operationName, Element inputData) throws Exception { // only enable when debugging, can cause OutOfMemoryError on big messages //_log.warn("Input data: " + new XMLOutputter().outputString(inputData)); JaxWsDynamicClientFactory f...
public Object invoke(URL wsdl, String serviceName, String bindingName, String operationName, Element inputData) throws Exception { // only enable when debugging, can cause OutOfMemoryError on big messages //_log.warn("Input data: " + new XMLOutputter().outputString(inputData)); JaxWsDynamicClientFactory f...
diff --git a/src/powercrystals/minefactoryreloaded/core/MFRUtil.java b/src/powercrystals/minefactoryreloaded/core/MFRUtil.java index d3e00000..bfb91245 100644 --- a/src/powercrystals/minefactoryreloaded/core/MFRUtil.java +++ b/src/powercrystals/minefactoryreloaded/core/MFRUtil.java @@ -1,292 +1,292 @@ package powercry...
false
true
public static void dropStack(TileEntityFactory from, ItemStack s) { if(s == null) { return; } s = s.copy(); if(from.worldObj.isRemote || s.stackSize <= 0) { return; } for(ForgeDirection o : UtilInventory.findPipes(from.worldObj, from.xCoord, from.yCoord, from.zCoord)) { BlockPosition bp = n...
public static void dropStack(TileEntityFactory from, ItemStack s) { if(s == null) { return; } s = s.copy(); if(from.worldObj.isRemote || s.stackSize <= 0) { return; } for(ForgeDirection o : UtilInventory.findPipes(from.worldObj, from.xCoord, from.yCoord, from.zCoord)) { BlockPosition bp = n...
diff --git a/com.ibm.wala.core/src/com/ibm/wala/eclipse/AbstractJavaAnalysisAction.java b/com.ibm.wala.core/src/com/ibm/wala/eclipse/AbstractJavaAnalysisAction.java index ee82e969d..7ecd4e036 100644 --- a/com.ibm.wala.core/src/com/ibm/wala/eclipse/AbstractJavaAnalysisAction.java +++ b/com.ibm.wala.core/src/com/ibm/wala...
true
true
public static AnalysisScope computeScope(final IStructuredSelection selection, final boolean includeSource, final boolean includeClassFiles) throws IOException { if (selection == null) { throw new IllegalArgumentException("null selection"); } final Collection<EclipseProjectPath> projectPaths =...
public static AnalysisScope computeScope(final IStructuredSelection selection, final boolean includeSource, final boolean includeClassFiles) throws IOException { if (selection == null) { throw new IllegalArgumentException("null selection"); } final Collection<EclipseProjectPath> projectPaths =...
diff --git a/MPDroid/src/com/namelessdev/mpdroid/fragments/FSFragment.java b/MPDroid/src/com/namelessdev/mpdroid/fragments/FSFragment.java index 28137917..916c2216 100644 --- a/MPDroid/src/com/namelessdev/mpdroid/fragments/FSFragment.java +++ b/MPDroid/src/com/namelessdev/mpdroid/fragments/FSFragment.java @@ -1,229 +1,...
true
true
protected void asyncUpdate() { if (!TextUtils.isEmpty(directory)) { currentDirectory = app.oMPDAsyncHelper.oMPD.getRootDirectory().makeDirectory(directory); } else { currentDirectory = app.oMPDAsyncHelper.oMPD.getRootDirectory(); } try { currentDi...
protected void asyncUpdate() { if (!TextUtils.isEmpty(directory)) { currentDirectory = app.oMPDAsyncHelper.oMPD.getRootDirectory().makeDirectory(directory); } else { currentDirectory = app.oMPDAsyncHelper.oMPD.getRootDirectory(); } try { currentDi...