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/org/starlo/bytepusher/Assembler8080.java b/src/org/starlo/bytepusher/Assembler8080.java index ae043f6..d5110c1 100644 --- a/src/org/starlo/bytepusher/Assembler8080.java +++ b/src/org/starlo/bytepusher/Assembler8080.java @@ -1,51 +1,54 @@ package org.starlo.bytepusher; import java.io.*; import java...
false
true
public static void assemble(File file){ try { FileInputStream fileStream = new FileInputStream(file); BufferedReader reader = new BufferedReader(new InputStreamReader(fileStream)); String line; StringBuffer buffer = new StringBuffer(); while ((line = reader.readLine()) != null) { if (!line.contain...
public static void assemble(File file){ try { FileInputStream fileStream = new FileInputStream(file); BufferedReader reader = new BufferedReader(new InputStreamReader(fileStream)); String line; StringBuffer buffer = new StringBuffer(); while ((line = reader.readLine()) != null) { if (!line.contain...
diff --git a/functional-tests-jcommune/src/test/java/org/jtalks/tests/jcommune/tests/profile/JC125ProfileFieldsInOtherUserProfile.java b/functional-tests-jcommune/src/test/java/org/jtalks/tests/jcommune/tests/profile/JC125ProfileFieldsInOtherUserProfile.java index 0dee7e1..9a4ed53 100644 --- a/functional-tests-jcommune...
false
true
public void ViewProfileFromCurrentUsernameLinkTest(String usernameSecond) { driver.get(driver.getCurrentUrl() + "/users/" + usernameSecond); assertionExistBySelector(driver, profilePage.usernameTableFieldSel); assertionExistBySelector(driver, profilePage.firstNameTableFieldSel); assertionExistBySelector(drive...
public void ViewProfileFromCurrentUsernameLinkTest(String usernameSecond) { driver.get(driver.getCurrentUrl() + "/users/" + usernameSecond); assertionExistBySelector(driver, profilePage.usernameTableFieldSel); assertionExistBySelector(driver, profilePage.firstNameTableFieldSel); assertionExistBySelector(drive...
diff --git a/src/test/java/de/frosner/datagenerator/gui/SwingMenuGuiTest.java b/src/test/java/de/frosner/datagenerator/gui/SwingMenuGuiTest.java index a22f121..971c169 100644 --- a/src/test/java/de/frosner/datagenerator/gui/SwingMenuGuiTest.java +++ b/src/test/java/de/frosner/datagenerator/gui/SwingMenuGuiTest.java @@ ...
false
true
public void testSelectExportFile() throws InterruptedException { assertThat(_frame.testUtils().getExportFileField().isEditable()).isFalse(); new Thread(new Runnable() { @Override public void run() { Robot robot; try { robot = new Robot(); robot.delay(500); int delay = 50; robot.ke...
public void testSelectExportFile() throws InterruptedException { assertThat(_frame.testUtils().getExportFileField().isEditable()).isFalse(); new Thread(new Runnable() { @Override public void run() { Robot robot; try { robot = new Robot(); robot.delay(500); int delay = 50; robot.ke...
diff --git a/src/MoveToSpecificDestionation.java b/src/MoveToSpecificDestionation.java index bd31a9b..8ceab9a 100644 --- a/src/MoveToSpecificDestionation.java +++ b/src/MoveToSpecificDestionation.java @@ -1,19 +1,19 @@ import java.util.Collections; import java.util.List; public class MoveToSpecificDestionation e...
true
true
public BehaviorDecision move() { List<Aim> movement = MyBot.ants.getDirections(owner.getPosition(), owner.getDestination()); Collections.shuffle(movement); return new BehaviorDecision(movement, owner.getDestination(), "Moving to specific destination at " + owner.getDestination(), 15); }
public BehaviorDecision move() { List<Aim> movement = MyBot.ants.getDirections(owner.getPosition(), owner.getDestination()); Collections.shuffle(movement); return new BehaviorDecision(owner.getDestination(), "Moving to specific destination at " + owner.getDestination(), 15); }
diff --git a/library/src/main/java/net/sourceforge/cilib/entity/topologies/VonNeumannNeighbourhood.java b/library/src/main/java/net/sourceforge/cilib/entity/topologies/VonNeumannNeighbourhood.java index e0bd0b72..eccabeb8 100644 --- a/library/src/main/java/net/sourceforge/cilib/entity/topologies/VonNeumannNeighbourhood...
true
true
public List<E> f(final List<E> list, final E target) { final int np = list.length(); final int index = Lists.newArrayList(list).indexOf(target); final int sqSide = (int) Math.round(Math.sqrt(np)); final int nRows = (int) Math.ceil(np / (double) sqSide); final int row = index ...
public List<E> f(final List<E> list, final E target) { final int np = list.length(); final int index = Lists.newArrayList(list).indexOf(target); final int sqSide = (int) Math.round(Math.sqrt(np)); final int nRows = (int) Math.ceil(np / (double) sqSide); final int row = index ...
diff --git a/src/VASSAL/tools/BugUtils.java b/src/VASSAL/tools/BugUtils.java index 2f8b82fc..13b3fd11 100644 --- a/src/VASSAL/tools/BugUtils.java +++ b/src/VASSAL/tools/BugUtils.java @@ -1,102 +1,103 @@ package VASSAL.tools; import java.io.File; import java.io.FileReader; import java.io.InputStream; import java....
false
true
public static void sendBugReport(String email, String description, String errorLog, Throwable t) throws IOException { final HTTPPostBuilder pb = new HTTPPostBuilder(); InputStream in = null; try { /* ...
public static void sendBugReport(String email, String description, String errorLog, Throwable t) throws IOException { final HTTPPostBuilder pb = new HTTPPostBuilder(); InputStream in = null; try { /* ...
diff --git a/src/org/powerbat/Boot.java b/src/org/powerbat/Boot.java index 4c3e73c..cc848cf 100644 --- a/src/org/powerbat/Boot.java +++ b/src/org/powerbat/Boot.java @@ -1,101 +1,102 @@ package org.powerbat; import javax.swing.*; import org.powerbat.configuration.Global; import org.powerbat.configuration.Global....
true
true
public static void main(String[] args) { if (!Executor.hasJDKInstalled()) { final int option = JOptionPane.showConfirmDialog(null, "<html>You need to have JDK installed to run Powerbat.<br>Click 'Ok' if you would like to go to the JDK site.</html>", "JDK Required", JOptionPan...
public static void main(String[] args) { if (!Executor.hasJDKInstalled()) { final int option = JOptionPane.showConfirmDialog(null, "<html>You need to have JDK installed to run Powerbat.<br>Click 'Ok' if you would like to go to the JDK site.</html>", "JDK Required", ...
diff --git a/mobile-svisstok-tests/src/main/java/tests/adSDK/page/LoginPage.java b/mobile-svisstok-tests/src/main/java/tests/adSDK/page/LoginPage.java index 079a464..b1e886b 100644 --- a/mobile-svisstok-tests/src/main/java/tests/adSDK/page/LoginPage.java +++ b/mobile-svisstok-tests/src/main/java/tests/adSDK/page/LoginP...
false
true
public CallScreen simpleLogin(String login, String password) { loginTextfield.type(login); passwordTextfield.type(password); savePasswordSlider.touch(); loginButton.touch(); return PageFactory.initElements(driver, CallScreen.class); }
public CallScreen simpleLogin(String login, String password) { loginTextfield.touch(); loginTextfield.type(login); passwordTextfield.touch(); passwordTextfield.type(password); savePasswordSlider.touch(); loginButton.touch(); return PageFactory.initElements(driver, CallScreen.class); }
diff --git a/javafx.sdksamples/src/org/netbeans/modules/javafx/sdksamples/SDKSamplesWizardIterator.java b/javafx.sdksamples/src/org/netbeans/modules/javafx/sdksamples/SDKSamplesWizardIterator.java index c16c88e7..6ca64bf2 100644 --- a/javafx.sdksamples/src/org/netbeans/modules/javafx/sdksamples/SDKSamplesWizardIterator...
true
true
private static void unZipFile( InputStream source, FileObject projectRoot, String name, String filename ) throws IOException { try { ZipInputStream str = new ZipInputStream(source); ZipEntry entry; // Get root entry String rootFileName = ""; ZipEnt...
private static void unZipFile( InputStream source, FileObject projectRoot, String name, String filename ) throws IOException { try { ZipInputStream str = new ZipInputStream(source); ZipEntry entry; // Get root entry String rootFileName = ""; ZipEnt...
diff --git a/core/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java b/core/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java index 4de854f9..c53f481a 100644 --- a/core/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java +++ b/core/src/com/google/zxing/qrcode/decoder/DecodedBitStr...
false
true
private static String guessEncoding(byte[] bytes) { if (ASSUME_SHIFT_JIS) { return SHIFT_JIS; } // Does it start with the UTF-8 byte order mark? then guess it's UTF-8 if (bytes.length > 3 && bytes[0] == (byte) 0xEF && bytes[1] == (byte) 0xBB && bytes[2] == (byte) 0xBF) { return UTF8; }...
private static String guessEncoding(byte[] bytes) { if (ASSUME_SHIFT_JIS) { return SHIFT_JIS; } // Does it start with the UTF-8 byte order mark? then guess it's UTF-8 if (bytes.length > 3 && bytes[0] == (byte) 0xEF && bytes[1] == (byte) 0xBB && bytes[2] == (byte) 0xBF) { return UTF8; }...
diff --git a/ThemeCreative/src/syam/ThemeCreative/Command/HelpCommand.java b/ThemeCreative/src/syam/ThemeCreative/Command/HelpCommand.java index 20896e7..c92bb86 100644 --- a/ThemeCreative/src/syam/ThemeCreative/Command/HelpCommand.java +++ b/ThemeCreative/src/syam/ThemeCreative/Command/HelpCommand.java @@ -1,35 +1,35 ...
true
true
public boolean execute() { Actions.message(sender, null, "&c==================================="); Actions.message(sender, null, "&bFlagGame Plugin version &3%version &bby syamn"); Actions.message(sender, null, " &b<>&f = required, &b[]&f = optional"); // 全コマンドをループで表示 for (BaseCommand cmd : ThemeCreative.com...
public boolean execute() { Actions.message(sender, null, "&c==================================="); Actions.message(sender, null, "&bThemeCreative Plugin version &3%version &bby syamn"); Actions.message(sender, null, " &b<>&f = required, &b[]&f = optional"); // 全コマンドをループで表示 for (BaseCommand cmd : ThemeCreativ...
diff --git a/glimpse-server/src/main/java/br/com/tecsinapse/glimpse/server/groovy/GroovyRepl.java b/glimpse-server/src/main/java/br/com/tecsinapse/glimpse/server/groovy/GroovyRepl.java index 7b41fb0..2fe4b15 100644 --- a/glimpse-server/src/main/java/br/com/tecsinapse/glimpse/server/groovy/GroovyRepl.java +++ b/glimpse-...
true
true
public String eval(String expression) { try { Object result = groovyShell.evaluate(expression); return result.toString(); } catch (RuntimeException e) { return e.getMessage(); } }
public String eval(String expression) { try { Object result = groovyShell.evaluate(expression); if (result == null) return "null"; else return result.toString(); } catch (RuntimeException e) { return e.getMessage(); } }
diff --git a/java/com/delcyon/capo/xml/cdom/CElement.java b/java/com/delcyon/capo/xml/cdom/CElement.java index 6391f04..613a323 100644 --- a/java/com/delcyon/capo/xml/cdom/CElement.java +++ b/java/com/delcyon/capo/xml/cdom/CElement.java @@ -1,347 +1,350 @@ /** Copyright (c) 2012 Delcyon, Inc. This library is free so...
true
true
public NodeList getElementsByTagName(final String name) { final CNodeList nodeList = new CNodeList(); NodeProcessor nodeProcessor = new NodeProcessor() { @Override public void process(Node parentNode,Node node) throws Exception { ...
public NodeList getElementsByTagName(final String name) { final CNodeList nodeList = new CNodeList(); NodeProcessor nodeProcessor = new NodeProcessor() { @Override public void process(Node parentNode,Node node) throws Exception { ...
diff --git a/src/main/java/org/mvel/optimizers/impl/asm/ASMAccessorCompiler.java b/src/main/java/org/mvel/optimizers/impl/asm/ASMAccessorCompiler.java index f3d5ee12..4075e497 100644 --- a/src/main/java/org/mvel/optimizers/impl/asm/ASMAccessorCompiler.java +++ b/src/main/java/org/mvel/optimizers/impl/asm/ASMAccessorCom...
true
true
private Object getMethod(Object ctx, String name) throws Exception { debug("{method: " + name + "}"); int st = cursor; int depth = 1; while (cursor++ < length - 1 && depth != 0) { switch (property[cursor]) { case'(': depth++; ...
private Object getMethod(Object ctx, String name) throws Exception { debug("{method: " + name + "}"); int st = cursor; int depth = 1; while (cursor++ < length - 1 && depth != 0) { switch (property[cursor]) { case'(': depth++; ...
diff --git a/src/main/java/jscover/server/HttpServer.java b/src/main/java/jscover/server/HttpServer.java index 200c5322..be5a1a06 100644 --- a/src/main/java/jscover/server/HttpServer.java +++ b/src/main/java/jscover/server/HttpServer.java @@ -1,487 +1,485 @@ /** GNU GENERAL PUBLIC LICENSE ...
true
true
public void run() { BufferedReader br = null; try { is = socket.getInputStream(); os = socket.getOutputStream(); br = new BufferedReader(new InputStreamReader(is)); pw = new PrintWriter(os); String requestString = null; while (...
public void run() { BufferedReader br = null; try { is = socket.getInputStream(); os = socket.getOutputStream(); br = new BufferedReader(new InputStreamReader(is)); pw = new PrintWriter(os); String requestString = br.readLine(); ...
diff --git a/src/delivery/model/PaypalPDT.java b/src/delivery/model/PaypalPDT.java index 6805102..982a374 100644 --- a/src/delivery/model/PaypalPDT.java +++ b/src/delivery/model/PaypalPDT.java @@ -1,144 +1,144 @@ package delivery.model; import java.io.*; import java.util.*; import java.net.*; import java.securit...
true
true
public boolean verifyTransaction(){ boolean verified = false; try{ String str = "cmd=_notify-synch&tx="+tx+"&at="+at; HttpsURLConnection uc = getSSLByPassedConnection("https://www.sandbox.paypal.com/cgi-bin/webscr"); uc.setDoOutput(true); uc.setRequestProperty("Content-Type", "application/x-www-form-u...
public boolean verifyTransaction(){ boolean verified = false; try{ String str = "cmd=_notify-synch&tx="+tx+"&at="+at; HttpsURLConnection uc = getSSLByPassedConnection("https://www.sandbox.paypal.com/cgi-bin/webscr"); uc.setDoOutput(true); uc.setRequestProperty("Content-Type", "application/x-www-form-u...
diff --git a/src/com/android/calendar/widget/CalendarAppWidgetService.java b/src/com/android/calendar/widget/CalendarAppWidgetService.java index 0420cc43..2ee9f1b2 100644 --- a/src/com/android/calendar/widget/CalendarAppWidgetService.java +++ b/src/com/android/calendar/widget/CalendarAppWidgetService.java @@ -1,391 +1,...
true
true
public RemoteViews getViewAt(int position) { // we use getCount here so that it doesn't return null when empty if (position < 0 || position >= getCount()) { return null; } if (mModel.mEventInfos.isEmpty() || mModel.mRowInfos.isEmpty()) { ...
public RemoteViews getViewAt(int position) { // we use getCount here so that it doesn't return null when empty if (position < 0 || position >= getCount()) { return null; } if (mModel.mEventInfos.isEmpty() || mModel.mRowInfos.isEmpty()) { ...
diff --git a/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManager.java b/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManager.java index dbf42065..aac5cd86 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManager.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/Id...
false
true
protected void serviceRun() { Map<OwnIdentity, Map<String, Identity>> oldIdentities = Collections.emptyMap(); while (!shouldStop()) { Map<OwnIdentity, Map<String, Identity>> currentIdentities = new HashMap<OwnIdentity, Map<String, Identity>>(); Map<String, OwnIdentity> currentOwnIdentities = new HashMap<Stri...
protected void serviceRun() { Map<OwnIdentity, Map<String, Identity>> oldIdentities = Collections.emptyMap(); while (!shouldStop()) { Map<OwnIdentity, Map<String, Identity>> currentIdentities = new HashMap<OwnIdentity, Map<String, Identity>>(); Map<String, OwnIdentity> currentOwnIdentities = new HashMap<Stri...
diff --git a/dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java b/dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java index 298192cc1..1a170c293 100644 --- a/dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java +++ b/dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java @@ -1,916 +...
false
true
public void makeTopLevelShell() throws IOException { String permutationId = getPermutationId(); PrintWriter outFile = new PrintWriter(getOutFile("SoycDashboard" + "-" + getPermutationId() + "-index.html")); addStandardHtmlProlog(outFile, "Compile report: Permutation " + permutationId, "C...
public void makeTopLevelShell() throws IOException { String permutationId = getPermutationId(); PrintWriter outFile = new PrintWriter(getOutFile("SoycDashboard" + "-" + getPermutationId() + "-index.html")); addStandardHtmlProlog(outFile, "Compile report: Permutation " + permutationId, "C...
diff --git a/java/gadgets/src/main/java/org/apache/shindig/gadgets/parse/GadgetHtmlParser.java b/java/gadgets/src/main/java/org/apache/shindig/gadgets/parse/GadgetHtmlParser.java index 0f6fc50a3..3c38f59c6 100644 --- a/java/gadgets/src/main/java/org/apache/shindig/gadgets/parse/GadgetHtmlParser.java +++ b/java/gadgets/...
false
true
public Document parseDom(String source) throws GadgetException { Document document = null; String key = null; // Avoid checksum overhead if we arent caching boolean shouldCache = shouldCache(); if (shouldCache) { // TODO - Consider using the source if its under a certain size key = Has...
public Document parseDom(String source) throws GadgetException { Document document = null; String key = null; // Avoid checksum overhead if we arent caching boolean shouldCache = shouldCache(); if (shouldCache) { // TODO - Consider using the source if its under a certain size key = Has...
diff --git a/tool/src/java/org/sakaiproject/assignment2/tool/producers/renderers/AsnnSubmitEditorRenderer.java b/tool/src/java/org/sakaiproject/assignment2/tool/producers/renderers/AsnnSubmitEditorRenderer.java index 14e3e89e..e4d7444c 100644 --- a/tool/src/java/org/sakaiproject/assignment2/tool/producers/renderers/Asn...
false
true
public void fillComponents(UIContainer parent, String clientID, AssignmentSubmission assignmentSubmission, boolean preview, boolean studentPreviewSubmission) { // Various Widgets we may need to decorate later. UICommand submit_button = null; UICommand preview_button = null; UICommand...
public void fillComponents(UIContainer parent, String clientID, AssignmentSubmission assignmentSubmission, boolean preview, boolean studentPreviewSubmission) { // Various Widgets we may need to decorate later. UICommand submit_button = null; UICommand preview_button = null; UICommand...
diff --git a/poem/src/main/java/org/melati/poem/CachedQuery.java b/poem/src/main/java/org/melati/poem/CachedQuery.java index 8471389fe..fbd505a5f 100755 --- a/poem/src/main/java/org/melati/poem/CachedQuery.java +++ b/poem/src/main/java/org/melati/poem/CachedQuery.java @@ -1,140 +1,140 @@ /* * $Source$ * $Revision$...
true
true
protected void compute() { Vector rows = this.rows; SessionToken token = PoemThread.sessionToken(); if (rows == null || somethingHasChanged(token.transaction)) { rows = new Vector(); try { ResultSet rs = statements().resultSet(token); try { while (rs.next()) ...
protected void compute() { Vector rows = this.rows; SessionToken token = PoemThread.sessionToken(); if (rows == null || somethingHasChanged(token.transaction)) { rows = new Vector(); try { ResultSet rs = statements().resultSet(token); try { while (rs.next()) ...
diff --git a/src/state/TaskForce.java b/src/state/TaskForce.java index 855ab2b..9d21462 100644 --- a/src/state/TaskForce.java +++ b/src/state/TaskForce.java @@ -1,269 +1,270 @@ package state; import graphic.Camera; import graphic.Render; import graphic.UIListener; import java.util.HashMap; import java.util.It...
false
true
public void render(GameContainer gc, Graphics g, int flags) { g.setColor(owner.color()); if((flags & Render.SELECTED) != 0) { g.setColor(Color.white); // Paint small dots for all our route, but only if the fleet is selected. Iterator<Star> i = destinations.descendingIterator(); Star to = i.ne...
public void render(GameContainer gc, Graphics g, int flags) { g.setColor(owner.color()); if((flags & Render.SELECTED) != 0) { g.setColor(Color.white); // Paint small dots for all our route, but only if the fleet is selected. Iterator<Star> i = destinations.iterator(); Star to = i.next(); V...
diff --git a/runtime/src/com/sun/xml/bind/v2/model/impl/ModelBuilder.java b/runtime/src/com/sun/xml/bind/v2/model/impl/ModelBuilder.java index 02872ac8..aeb2f139 100644 --- a/runtime/src/com/sun/xml/bind/v2/model/impl/ModelBuilder.java +++ b/runtime/src/com/sun/xml/bind/v2/model/impl/ModelBuilder.java @@ -1,291 +1,291 ...
false
true
public NonElement<T,C> getClassInfo( C clazz, Locatable upstream ) { assert clazz!=null; NonElement<T,C> r = typeInfoSet.getClassInfo(clazz); if(r!=null) return r; if(nav.isEnum(clazz)) { EnumLeafInfoImpl<T,C,F,M> li = createEnumLeafInfo(clazz,upstream); ...
public NonElement<T,C> getClassInfo( C clazz, Locatable upstream ) { assert clazz!=null; NonElement<T,C> r = typeInfoSet.getClassInfo(clazz); if(r!=null) return r; if(nav.isEnum(clazz)) { EnumLeafInfoImpl<T,C,F,M> li = createEnumLeafInfo(clazz,upstream); ...
diff --git a/src/main/java/com/couchbase/client/vbucket/config/DefaultConfigFactory.java b/src/main/java/com/couchbase/client/vbucket/config/DefaultConfigFactory.java index 410a43d8..ce807577 100644 --- a/src/main/java/com/couchbase/client/vbucket/config/DefaultConfigFactory.java +++ b/src/main/java/com/couchbase/clien...
true
true
private Config parseEpJSON(JSONObject jsonObject) throws JSONException { JSONObject vbMap = jsonObject.getJSONObject("vBucketServerMap"); String algorithm = vbMap.getString("hashAlgorithm"); HashAlgorithm hashAlgorithm = HashAlgorithmRegistry.lookupHashAlgorithm(algorithm); if (hashAlgorithm =...
private Config parseEpJSON(JSONObject jsonObject) throws JSONException { JSONObject vbMap = jsonObject.getJSONObject("vBucketServerMap"); String algorithm = vbMap.getString("hashAlgorithm"); HashAlgorithm hashAlgorithm = HashAlgorithmRegistry.lookupHashAlgorithm(algorithm); if (hashAlgorithm =...
diff --git a/plugins/org.eclipse.viatra2.emf.incquery.runtime/src/org/eclipse/viatra2/emf/incquery/runtime/internal/matcherbuilder/EPMBodyToPSystem.java b/plugins/org.eclipse.viatra2.emf.incquery.runtime/src/org/eclipse/viatra2/emf/incquery/runtime/internal/matcherbuilder/EPMBodyToPSystem.java index f144092a..f155db74 ...
false
true
protected void gatherConstraint(Constraint constraint) throws RetePatternBuildException { if (constraint instanceof EClassifierConstraint) { // EMF-specific EClassifierConstraint constraint2 = (EClassifierConstraint) constraint; //TODO Gabor, please check the following line EClassifier classname = ((Cla...
protected void gatherConstraint(Constraint constraint) throws RetePatternBuildException { if (constraint instanceof EClassifierConstraint) { // EMF-specific EClassifierConstraint constraint2 = (EClassifierConstraint) constraint; //TODO Gabor, please check the following line EClassifier classname = ((Cla...
diff --git a/email2/src/com/android/email/provider/AttachmentProvider.java b/email2/src/com/android/email/provider/AttachmentProvider.java index e0133156c..71955851e 100644 --- a/email2/src/com/android/email/provider/AttachmentProvider.java +++ b/email2/src/com/android/email/provider/AttachmentProvider.java @@ -1,334 +...
true
true
public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { // If this is a write, the caller must have the EmailProvider permission, which is // based on signature only if (mode.equals("w")) { Context context = getContext(); if (context....
public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { // If this is a write, the caller must have the EmailProvider permission, which is // based on signature only if (mode.equals("w")) { Context context = getContext(); if (context....
diff --git a/tds/src/main/java/thredds/server/wcs/v1_0_0_1/WcsRequestParser.java b/tds/src/main/java/thredds/server/wcs/v1_0_0_1/WcsRequestParser.java index c5595ca31..2368dcdcb 100644 --- a/tds/src/main/java/thredds/server/wcs/v1_0_0_1/WcsRequestParser.java +++ b/tds/src/main/java/thredds/server/wcs/v1_0_0_1/WcsReques...
false
true
public static WcsRequest parseRequest( String version, URI serverURI, HttpServletRequest req, HttpServletResponse res ) throws WcsException, IOException { GridDataset gridDataset = null; try { // These are handled in WcsServlet. Don't need to validate here. // String serviceParam = ServletU...
public static WcsRequest parseRequest( String version, URI serverURI, HttpServletRequest req, HttpServletResponse res ) throws WcsException, IOException { GridDataset gridDataset = null; try { // These are handled in WcsServlet. Don't need to validate here. // String serviceParam = ServletU...
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/provisional/tasklist/AbstractRepositoryConnector.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/provisional/tasklist/AbstractRepositoryConnector.java index b78c4c665..70dfc34c9 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/provisiona...
true
true
public synchronized boolean updateOfflineState(final AbstractRepositoryTask repositoryTask, final RepositoryTaskData newTaskData, boolean forceSync) { RepositoryTaskSyncState startState = repositoryTask.getSyncState(); RepositoryTaskSyncState status = repositoryTask.getSyncState(); if (newTaskData == null) {...
public synchronized boolean updateOfflineState(final AbstractRepositoryTask repositoryTask, final RepositoryTaskData newTaskData, boolean forceSync) { RepositoryTaskSyncState startState = repositoryTask.getSyncState(); RepositoryTaskSyncState status = repositoryTask.getSyncState(); if (newTaskData == null) {...
diff --git a/libraries/phyloviewer-gwt-client/src/main/java/org/iplantc/phyloviewer/client/tree/viewer/DetailView.java b/libraries/phyloviewer-gwt-client/src/main/java/org/iplantc/phyloviewer/client/tree/viewer/DetailView.java index 75fdcc62..79fdbe7b 100644 --- a/libraries/phyloviewer-gwt-client/src/main/java/org/ipla...
true
true
public DetailView(int width, int height, SearchServiceAsyncImpl searchService) { this.setStylePrimaryName("detailView"); this.searchService = searchService; this.setCamera(new CameraCladogram()); graphics = new Graphics(width, height); this.add(graphics.getWidget()); this.addMouseMoveHandler(new Mouse...
public DetailView(int width, int height, SearchServiceAsyncImpl searchService) { this.setStylePrimaryName("detailView"); this.searchService = searchService; this.setCamera(new CameraCladogram()); graphics = new Graphics(width, height); this.add(graphics.getWidget()); this.addMouseMoveHandler(new Mouse...
diff --git a/src/dk/markedsbooking/loppemarkeder/util/ReadURL.java b/src/dk/markedsbooking/loppemarkeder/util/ReadURL.java index 692e7e5..4ce64a7 100644 --- a/src/dk/markedsbooking/loppemarkeder/util/ReadURL.java +++ b/src/dk/markedsbooking/loppemarkeder/util/ReadURL.java @@ -1,91 +1,91 @@ package dk.markedsbooking.lo...
true
true
public String doInBackground(String... urls) { String response = ""; for (String url : urls) { DefaultHttpClient client = new DefaultHttpClient(); HttpGet httpGet = new HttpGet(url); try { HttpResponse execute = client.execute(httpGet); ...
public String doInBackground(String... urls) { String response = ""; for (String url : urls) { DefaultHttpClient client = new DefaultHttpClient(); HttpGet httpGet = new HttpGet(url); try { HttpResponse execute = client.execute(httpGet); ...
diff --git a/thetvdbapi/src/main/java/com/moviejukebox/thetvdb/tools/TvdbParser.java b/thetvdbapi/src/main/java/com/moviejukebox/thetvdb/tools/TvdbParser.java index 9bede97..4cd13ed 100644 --- a/thetvdbapi/src/main/java/com/moviejukebox/thetvdb/tools/TvdbParser.java +++ b/thetvdbapi/src/main/java/com/moviejukebox/thetv...
false
true
private static Episode parseNextEpisode(Element eEpisode) { Episode episode = new Episode(); episode.setId(DOMHelper.getValueFromElement(eEpisode, "id")); episode.setCombinedEpisodeNumber(DOMHelper.getValueFromElement(eEpisode, "Combined_episodenumber")); episode.setCombinedSeason(D...
private static Episode parseNextEpisode(Element eEpisode) { Episode episode = new Episode(); episode.setId(DOMHelper.getValueFromElement(eEpisode, "id")); episode.setCombinedEpisodeNumber(DOMHelper.getValueFromElement(eEpisode, "Combined_episodenumber")); episode.setCombinedSeason(D...
diff --git a/dspace/src/org/dspace/app/webui/servlet/admin/EditCommunitiesServlet.java b/dspace/src/org/dspace/app/webui/servlet/admin/EditCommunitiesServlet.java index a94824b3b..0cd5e0082 100644 --- a/dspace/src/org/dspace/app/webui/servlet/admin/EditCommunitiesServlet.java +++ b/dspace/src/org/dspace/app/webui/servl...
true
true
private void processConfirmEditCollection(Context context, HttpServletRequest request, HttpServletResponse response, Community community, Collection collection) throws ServletException, IOException, SQLException, AuthorizeException { if (request.getParameter("crea...
private void processConfirmEditCollection(Context context, HttpServletRequest request, HttpServletResponse response, Community community, Collection collection) throws ServletException, IOException, SQLException, AuthorizeException { if (request.getParameter("crea...
diff --git a/ananya-kilkari-functional-tests/src/test/java/org/motechproject/ananya/kilkari/functional/test/CustomerNotAroundThePhoneFunctionalTest.java b/ananya-kilkari-functional-tests/src/test/java/org/motechproject/ananya/kilkari/functional/test/CustomerNotAroundThePhoneFunctionalTest.java index 2f8b9a15..f52057fa ...
false
true
public void shouldRetryDeliveryOfMessagesWhenTheSubscriberDoesNotReceiveMessagesOrCallIsNotMade() throws Exception { System.out.println("Now running shouldRetryDeliveryOfMessagesWhenTheSubscriberDoesNotReceiveMessagesOrCallIsNotMade"); int scheduleDeltaDays = kilkariProperties.getCampaignScheduleDe...
public void shouldRetryDeliveryOfMessagesWhenTheSubscriberDoesNotReceiveMessagesOrCallIsNotMade() throws Exception { System.out.println("Now running shouldRetryDeliveryOfMessagesWhenTheSubscriberDoesNotReceiveMessagesOrCallIsNotMade"); int scheduleDeltaDays = kilkariProperties.getCampaignScheduleDe...
diff --git a/software/database/src/main/java/brooklyn/entity/database/mysql/MySqlSshDriver.java b/software/database/src/main/java/brooklyn/entity/database/mysql/MySqlSshDriver.java index b7c70f585..4766417d9 100644 --- a/software/database/src/main/java/brooklyn/entity/database/mysql/MySqlSshDriver.java +++ b/software/d...
true
true
public void install() { //mysql-${version}-${driver.osTag}.tar.gz DownloadResolver resolver = entity.getManagementContext().getEntityDownloadsRegistry().resolve( this, ImmutableMap.of("filename", getInstallFilename())); List<String> urls = resolver.getTargets(); ...
public void install() { //mysql-${version}-${driver.osTag}.tar.gz DownloadResolver resolver = entity.getManagementContext().getEntityDownloadsRegistry().resolve( this, ImmutableMap.of("filename", getInstallFilename())); List<String> urls = resolver.getTargets(); ...
diff --git a/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/properties/EntryPropertyPage.java b/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/properties/EntryPropertyPage.java index b96e1eb23..85a4ae930 100644 --- a/plugins/ldapbrowser.u...
true
true
protected Control createContents( Composite parent ) { Composite composite = BaseWidgetUtils.createColumnContainer( parent, 1, 1 ); Composite mainGroup = BaseWidgetUtils.createColumnContainer( BaseWidgetUtils.createColumnContainer( composite, 1, 1 ), 2, 1 ); BaseWidgetUtils....
protected Control createContents( Composite parent ) { Composite composite = BaseWidgetUtils.createColumnContainer( parent, 1, 1 ); Composite mainGroup = BaseWidgetUtils.createColumnContainer( BaseWidgetUtils.createColumnContainer( composite, 1, 1 ), 2, 1 ); BaseWidgetUtils....
diff --git a/src/test/java/org/vanq/tests/HeaderTest.java b/src/test/java/org/vanq/tests/HeaderTest.java index 792dc11..08ae5ed 100644 --- a/src/test/java/org/vanq/tests/HeaderTest.java +++ b/src/test/java/org/vanq/tests/HeaderTest.java @@ -1,15 +1,15 @@ package org.vanq.tests; import org.testng.Assert; import org...
true
true
public void vanqLogoDisplayedOnHomePageTest() { Home home = new Home(driver); Assert.assertFalse(home.isVanqLogoDisplayed()); }
public void vanqLogoDisplayedOnHomePageTest() { Home home = new Home(driver); Assert.assertTrue(home.isVanqLogoDisplayed()); }
diff --git a/aejb-subsystem/src/main/java/org/nju/artemis/aejb/component/interceptors/TransactionSecurityInterceptor.java b/aejb-subsystem/src/main/java/org/nju/artemis/aejb/component/interceptors/TransactionSecurityInterceptor.java index 6a80dbc..f1e723e 100644 --- a/aejb-subsystem/src/main/java/org/nju/artemis/aejb/c...
true
true
public Object processInvocation(InterceptorContext context) throws Exception { log.debug("TransactionSecurityInterceptor: start process invocation"); String param0 = (String) context.getParameters()[0]; String[] splits = param0.split("/"); if(splits.length != 2) { context.proceed(); } final String trans...
public Object processInvocation(InterceptorContext context) throws Exception { log.debug("TransactionSecurityInterceptor: start process invocation"); String param0 = (String) context.getParameters()[0]; String[] splits = param0.split("/"); if(splits.length != 2) { return context.proceed(); } final Strin...
diff --git a/tycho/net.bpelunit.toolsupport/src/net/bpelunit/toolsupport/editors/sections/TestCaseAndTrackSection.java b/tycho/net.bpelunit.toolsupport/src/net/bpelunit/toolsupport/editors/sections/TestCaseAndTrackSection.java index 806a92f6..b2dea90b 100644 --- a/tycho/net.bpelunit.toolsupport/src/net/bpelunit/toolsup...
true
true
protected void fillContextMenu(IMenuManager manager) { ISelection selection = getViewer().getSelection(); IStructuredSelection ssel = (IStructuredSelection) selection; IMenuManager newMenu = new MenuManager("&New"); // Enable adding test cases if no selection, or current selection is a // test case if (s...
protected void fillContextMenu(IMenuManager manager) { ISelection selection = getViewer().getSelection(); IStructuredSelection ssel = (IStructuredSelection) selection; IMenuManager newMenu = new MenuManager("&New"); // Enable adding test cases if no selection, or current selection is a // test case if (s...
diff --git a/src/share/personal/classes/common/sun/io/CharToByteDoubleByte.java b/src/share/personal/classes/common/sun/io/CharToByteDoubleByte.java index 203cce16..fe6bbe44 100644 --- a/src/share/personal/classes/common/sun/io/CharToByteDoubleByte.java +++ b/src/share/personal/classes/common/sun/io/CharToByteDoubleByt...
true
true
public int convert(char[] input, int inOff, int inEnd, byte[] output, int outOff, int outEnd) throws MalformedInputException, UnknownCharacterException, ConversionBufferFullException { char inputChar; // Input character to be converted byte[] outputByte; ...
public int convert(char[] input, int inOff, int inEnd, byte[] output, int outOff, int outEnd) throws MalformedInputException, UnknownCharacterException, ConversionBufferFullException { char inputChar; // Input character to be converted byte[] outputByte; ...
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/viewers/ChildrenUpdateTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/viewers/ChildrenUpdateTests.java index 06dc36a58..a4413e3e6 100644 --- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/viewers/Child...
false
true
public void testCoalesce () { Object element = new Object(); ChildrenUpdate update1 = new ChildrenUpdate(null, TreePath.EMPTY, element, 1, null); ChildrenUpdate update2 = new ChildrenUpdate(null, TreePath.EMPTY, element, 2, null); assertTrue("Should coalesce", update1.coalesce(update2)); assertEquals("Wrong ...
public void testCoalesce () { Object element = new Object(); ChildrenUpdate update1 = new ChildrenUpdate(null, TreePath.EMPTY, element, 1, null, null); ChildrenUpdate update2 = new ChildrenUpdate(null, TreePath.EMPTY, element, 2, null, null); assertTrue("Should coalesce", update1.coalesce(update2)); assertEq...
diff --git a/enduro-project/test/unittest/LapRaceSorterTest.java b/enduro-project/test/unittest/LapRaceSorterTest.java index 6cfcb9c..d7bffda 100644 --- a/enduro-project/test/unittest/LapRaceSorterTest.java +++ b/enduro-project/test/unittest/LapRaceSorterTest.java @@ -1,45 +1,45 @@ package unittest; import static o...
true
true
public void testImpossibleLap() { try { BufferedReader in = new BufferedReader(new FileReader("result.temp")); in.readLine(); assertEquals( "StartNr; Namn; #Varv; TotalTid; Varv1; Varv2; Varv3; Start; Varvning1; Varvning2; Mål", in.readLine()); in.readLine(); assertEquals( "2; Bengt Bs...
public void testImpossibleLap() { try { BufferedReader in = new BufferedReader(new FileReader("result.temp.lap")); in.readLine(); assertEquals( "StartNr; Namn; #Varv; TotalTid; Varv1; Varv2; Varv3; Start; Varvning1; Varvning2; Mål", in.readLine()); in.readLine(); assertEquals( "2; Beng...
diff --git a/war-core/src/main/java/com/silverpeas/socialNetwork/myProfil/servlets/JSONServlet.java b/war-core/src/main/java/com/silverpeas/socialNetwork/myProfil/servlets/JSONServlet.java index c39ff72190..eb581f2361 100644 --- a/war-core/src/main/java/com/silverpeas/socialNetwork/myProfil/servlets/JSONServlet.java ++...
true
true
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session = request.getSession(); MainSessionController m_MainSessionCtrl = (MainSessionController) session.getAttribute( MainSessionController.MAIN_SESSION_CONTROLLER_ATT...
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session = request.getSession(); MainSessionController m_MainSessionCtrl = (MainSessionController) session.getAttribute( MainSessionController.MAIN_SESSION_CONTROLLER_ATT...
diff --git a/Alkitab/src/yuku/alkitab/base/storage/InternalReader.java b/Alkitab/src/yuku/alkitab/base/storage/InternalReader.java index 1bf79dfe..29457696 100644 --- a/Alkitab/src/yuku/alkitab/base/storage/InternalReader.java +++ b/Alkitab/src/yuku/alkitab/base/storage/InternalReader.java @@ -1,240 +1,240 @@ package ...
true
true
@Override public String[] loadVerseText(Book book, int pasal_1, boolean janganPisahAyat, boolean hurufKecil) { if (pasal_1 > book.nchapter) { return null; } int offset = book.pasal_offset[pasal_1 - 1]; int length = 0; try { InputStream in; // Log.d("alki", "muatTeks kitab=" + kitab.nama + " pasal...
@Override public String[] loadVerseText(Book book, int pasal_1, boolean janganPisahAyat, boolean hurufKecil) { if (pasal_1 < 1 || pasal_1 > book.nchapter) { return null; } int offset = book.pasal_offset[pasal_1 - 1]; int length = 0; try { InputStream in; // Log.d("alki", "muatTeks kitab=" + kitab...
diff --git a/src/RegularExplab3.java b/src/RegularExplab3.java index 6633d2a..84f159a 100644 --- a/src/RegularExplab3.java +++ b/src/RegularExplab3.java @@ -1,58 +1,58 @@ import java.io.BufferedReader; import java.io.DataInputStream; import java.io.File; import java.io.FileInputStream; import java.io.InputStreamRe...
false
true
public static void main(String[] args) { File file = new File( "/home/student/workspace/CompilerLab/src/expression.txt"); int ch; String exp = null; StringBuffer strContent = new StringBuffer(""); FileInputStream fin = null; try { FileInputStream fstream = new FileInputStream( "/home/student/w...
public static void main(String[] args) { File file = new File( "expression.txt"); int ch; String exp = null; StringBuffer strContent = new StringBuffer(""); FileInputStream fin = null; try { FileInputStream fstream = new FileInputStream( "expression.txt"); String str = null; int test = 1...
diff --git a/src/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java b/src/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java index 033f0cc8..84aa71d5 100644 --- a/src/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java +++ b/src/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java @@ -1,871 +1,882 @@ ...
false
true
public Packet decodePacket(RTMP rtmp, ByteBuffer in) { final int remaining = in.remaining(); // We need at least one byte if (remaining < 1) { rtmp.bufferDecoding(1); return null; } final int position = in.position(); byte headerByte = in.get(); int headerValue; int byteCount; if ((header...
public Packet decodePacket(RTMP rtmp, ByteBuffer in) { final int remaining = in.remaining(); // We need at least one byte if (remaining < 1) { rtmp.bufferDecoding(1); return null; } final int position = in.position(); byte headerByte = in.get(); int headerValue; int byteCount; if ((header...
diff --git a/src/main/java/be/redlab/jaxb/swagger/SwaggerAnnotationsJaxbPlugin.java b/src/main/java/be/redlab/jaxb/swagger/SwaggerAnnotationsJaxbPlugin.java index 4da559e..cdebb37 100644 --- a/src/main/java/be/redlab/jaxb/swagger/SwaggerAnnotationsJaxbPlugin.java +++ b/src/main/java/be/redlab/jaxb/swagger/SwaggerAnnota...
true
true
public boolean run(final Outline outline, final Options opt, final ErrorHandler errorHandler) throws SAXException { Collection<? extends ClassOutline> classes = outline.getClasses(); for (ClassOutline o : classes) { if (o.implClass.isClass() && !o.implClass.isAbstract() && !o.implClass.isInterface() && !o....
public boolean run(final Outline outline, final Options opt, final ErrorHandler errorHandler) throws SAXException { Collection<? extends ClassOutline> classes = outline.getClasses(); for (ClassOutline o : classes) { if (o.implClass.isClass() && !o.implClass.isAbstract() && !o.implClass.isInterface() && !o....
diff --git a/src/test/java/com/ning/atlas/TestJRubyTemplateParser.java b/src/test/java/com/ning/atlas/TestJRubyTemplateParser.java index 8ab5f58..796a175 100644 --- a/src/test/java/com/ning/atlas/TestJRubyTemplateParser.java +++ b/src/test/java/com/ning/atlas/TestJRubyTemplateParser.java @@ -1,175 +1,177 @@ package co...
true
true
public void testEnvironmentWithListener() throws Exception { ListenerThing.calls.clear(); JRubyTemplateParser p = new JRubyTemplateParser(); Environment env = p.parseEnvironment(new File("src/test/ruby/ex1/env-with-listener.rb")); Host h = new Host(Identity.root().createChild("s...
public void testEnvironmentWithListener() throws Exception { ListenerThing.calls.clear(); JRubyTemplateParser p = new JRubyTemplateParser(); Environment env = p.parseEnvironment(new File("src/test/ruby/ex1/env-with-listener.rb")); Host h = new Host(Identity.root().createChild("s...
diff --git a/sdk-common/src/main/java/com/android/ide/common/resources/configuration/DeviceConfigHelper.java b/sdk-common/src/main/java/com/android/ide/common/resources/configuration/DeviceConfigHelper.java index 27eaa01..98cb979 100644 --- a/sdk-common/src/main/java/com/android/ide/common/resources/configuration/Devic...
true
true
public static FolderConfiguration getFolderConfig(@Nullable State state) { if (state == null) { return null; } Hardware hw = state.getHardware(); FolderConfiguration config = new FolderConfiguration(); config.createDefault(); Screen screen = hw.getScreen...
public static FolderConfiguration getFolderConfig(@Nullable State state) { if (state == null) { return null; } Hardware hw = state.getHardware(); FolderConfiguration config = new FolderConfiguration(); config.createDefault(); Screen screen = hw.getScreen...
diff --git a/xmppbot-core/src/main/java/de/raion/xmppbot/XmppBot.java b/xmppbot-core/src/main/java/de/raion/xmppbot/XmppBot.java index f7043fc..96173cf 100644 --- a/xmppbot-core/src/main/java/de/raion/xmppbot/XmppBot.java +++ b/xmppbot-core/src/main/java/de/raion/xmppbot/XmppBot.java @@ -1,596 +1,596 @@ package de.rai...
true
true
private void joinMultiUserChats(XmppConfiguration xmppConfig, XMPPConnection connection) { Collection<String> mucNameCollection = xmppConfig.getMultiUserChats().values(); for (String mucName : mucNameCollection) { try { if (packetInterceptorMap.containsKey(xmppConfig.getServiceType())) { AbstractPack...
private void joinMultiUserChats(XmppConfiguration xmppConfig, XMPPConnection connection) { Collection<String> mucNameCollection = xmppConfig.getMultiUserChats().values(); for (String mucName : mucNameCollection) { try { if (packetInterceptorMap.containsKey(xmppConfig.getServiceType())) { AbstractPack...
diff --git a/x10.compiler/src/x10/compiler/ws/WSCodeGenerator.java b/x10.compiler/src/x10/compiler/ws/WSCodeGenerator.java index 4e907895b..ae7c3d925 100644 --- a/x10.compiler/src/x10/compiler/ws/WSCodeGenerator.java +++ b/x10.compiler/src/x10/compiler/ws/WSCodeGenerator.java @@ -1,196 +1,203 @@ /* * This file is p...
false
true
protected Node leaveCall(Node parent, Node old, Node n, NodeVisitor v) throws SemanticException { // reject unsupported patterns if(n instanceof ConstructorDecl){ ConstructorDecl cDecl = (ConstructorDecl)n; ConstructorDef cDef = cDecl.constructorDef(); if(wts.isTa...
protected Node leaveCall(Node parent, Node old, Node n, NodeVisitor v) throws SemanticException { // reject unsupported patterns if(n instanceof ConstructorDecl){ ConstructorDecl cDecl = (ConstructorDecl)n; ConstructorDef cDef = cDecl.constructorDef(); if(wts.isTa...
diff --git a/core/src/main/java/org/apache/commons/vfs2/provider/http/HttpClientFactory.java b/core/src/main/java/org/apache/commons/vfs2/provider/http/HttpClientFactory.java index 90c53c96..0f5eec6b 100644 --- a/core/src/main/java/org/apache/commons/vfs2/provider/http/HttpClientFactory.java +++ b/core/src/main/java/or...
true
true
public static HttpClient createConnection(HttpFileSystemConfigBuilder builder, String scheme, String hostname, int port, String username, String password, FileSystemOptions fileSystemOptions) throws FileSystemExc...
public static HttpClient createConnection(HttpFileSystemConfigBuilder builder, String scheme, String hostname, int port, String username, String password, FileSystemOptions fileSystemOptions) throws FileSystemExc...
diff --git a/src/main/java/org/datacite/mds/web/api/ApiResponseWrapper.java b/src/main/java/org/datacite/mds/web/api/ApiResponseWrapper.java index 37816bc..5fd2aca 100644 --- a/src/main/java/org/datacite/mds/web/api/ApiResponseWrapper.java +++ b/src/main/java/org/datacite/mds/web/api/ApiResponseWrapper.java @@ -1,40 +1...
true
true
public void sendError(int sc, String msg) throws IOException { msg = StringUtils.replace(msg, NEW_LINE, " - "); log.debug("sendError " + sc + ": " + msg); setStatus(sc); getWriter().println(msg); }
public void sendError(int sc, String msg) throws IOException { msg = StringUtils.replace(msg, NEW_LINE, " - "); log.debug("sendError " + sc + ": " + msg); setStatus(sc); getWriter().print(msg); }
diff --git a/src/TandemTest.java b/src/TandemTest.java index 396483e..5bcde37 100644 --- a/src/TandemTest.java +++ b/src/TandemTest.java @@ -1,168 +1,172 @@ import org.antlr.runtime.ANTLRStringStream; import org.antlr.runtime.CommonTokenStream; import org.antlr.runtime.RecognitionException; import org.antlr.runtime...
true
true
public static boolean parseFile(String filename) { boolean parsing_success = false; try { CharStream input = new ANTLRFileStream(filename); TanGLexer lexer = new TanGLexer(input); TokenStream ts = new CommonTokenStream(lexer); TanGParser ...
public static boolean parseFile(String filename) { boolean parsing_success = false; try { CharStream input = new ANTLRFileStream(filename); TanGLexer lexer = new TanGLexer(input); TokenStream ts = new CommonTokenStream(lexer); TanGParser ...
diff --git a/src/com/fsck/k9/mail/store/Pop3Store.java b/src/com/fsck/k9/mail/store/Pop3Store.java index 80711a48f..ab2133001 100644 --- a/src/com/fsck/k9/mail/store/Pop3Store.java +++ b/src/com/fsck/k9/mail/store/Pop3Store.java @@ -1,1174 +1,1174 @@ package com.fsck.k9.mail.store; import android.util.Log; imp...
true
true
public synchronized void open(int mode) throws MessagingException { if (isOpen()) { return; } if (!mName.equalsIgnoreCase(mAccount.getInboxFolderName())) { throw new MessagingException("Folder does not exist"); } try {...
public synchronized void open(int mode) throws MessagingException { if (isOpen()) { return; } if (!mName.equalsIgnoreCase(mAccount.getInboxFolderName())) { throw new MessagingException("Folder does not exist"); } try {...
diff --git a/FamousEssentials/src/me/sinnoh/FamousEssentials/FEListener.java b/FamousEssentials/src/me/sinnoh/FamousEssentials/FEListener.java index 1ec36eb..468e3cf 100644 --- a/FamousEssentials/src/me/sinnoh/FamousEssentials/FEListener.java +++ b/FamousEssentials/src/me/sinnoh/FamousEssentials/FEListener.java @@ -1,4...
true
true
public void onPlayerDeath(PlayerDeathEvent event) { Player player = event.getEntity(); if(plugin.getConfig().getStringList("DontDropitems.worlds").contains(player.getWorld().getName())) if(!player.hasPermission("FamousEssentials.keepitems")) { List<ItemStack> drops = event.getDrops(); if(player.getKi...
public void onPlayerDeath(PlayerDeathEvent event) { Player player = event.getEntity(); if(plugin.getConfig().getStringList("DontDropItems.worlds").contains(player.getWorld().getName())) if(!player.hasPermission("FamousEssentials.keepitems")) { List<ItemStack> drops = event.getDrops(); if(player.getKi...
diff --git a/src/republicaEternityEventIII/republica/devteam/EternityListener.java b/src/republicaEternityEventIII/republica/devteam/EternityListener.java index b393eba..a79c646 100644 --- a/src/republicaEternityEventIII/republica/devteam/EternityListener.java +++ b/src/republicaEternityEventIII/republica/devteam/Etern...
true
true
public void onPlayerDamageMethod(EntityDamageEvent e){ if(e.getEntity() instanceof Player){ if(em.getZiminiarPlayer() == e.getEntity()){ Player pl = (Player) e.getEntity(); em.boss.ZiminiarHit((Player) pl.getLastDamageCause()); pl.setHealth(20); } } }
public void onPlayerDamageMethod(EntityDamageEvent e){ if(e.getEntity() instanceof Player){ if(em.getZiminiarPlayer() == e.getEntity()){ Player pl = (Player) (e.getEntity()); em.boss.ZiminiarHit((Player) pl.getLastDamageCause()); pl.setHealth(20); } } }
diff --git a/openFaces/source/org/openfaces/renderkit/filter/param/ParametersEditor.java b/openFaces/source/org/openfaces/renderkit/filter/param/ParametersEditor.java index b17a8aa00..819aa4bcb 100644 --- a/openFaces/source/org/openfaces/renderkit/filter/param/ParametersEditor.java +++ b/openFaces/source/org/openfaces/...
true
true
public static ParameterEditorType getParameterEditorType(FilterProperty filterProperty, FilterCondition operation) { switch (operation) { case LESS_OR_EQUAL: case GREATER_OR_EQUAL: case GREATER: case LESS: switch (filterProperty.getType()) { ...
public static ParameterEditorType getParameterEditorType(FilterProperty filterProperty, FilterCondition operation) { if (operation == null) operation = FilterCondition.EQUALS; switch (operation) { case LESS_OR_EQUAL: case GREATER_OR_EQUAL: case GREATER...
diff --git a/java/marytts/tools/voiceimport/HMMVoiceDataPreparation.java b/java/marytts/tools/voiceimport/HMMVoiceDataPreparation.java index 22d07d995..7b8a976e0 100644 --- a/java/marytts/tools/voiceimport/HMMVoiceDataPreparation.java +++ b/java/marytts/tools/voiceimport/HMMVoiceDataPreparation.java @@ -1,336 +1,336 @@...
true
true
public boolean compute() throws Exception{ boolean raw = false; boolean text = false; marybase = db.getProp(db.MARYBASE); voiceDir = db.getProp(db.ROOTDIR); soxPath = db.getExternal(db.SOXPATH); sep = System.getProperty("file.separator"); dataDir = ...
public boolean compute() throws Exception{ boolean raw = false; boolean text = false; marybase = db.getProp(db.MARYBASE); voiceDir = db.getProp(db.ROOTDIR); soxPath = db.getExternal(db.SOXPATH); sep = System.getProperty("file.separator"); dataDir = ...
diff --git a/net.sf.eclipsefp.haskell.ui/src/net/sf/eclipsefp/haskell/ui/internal/resolve/BuildMarkerResolutionGenerator.java b/net.sf.eclipsefp.haskell.ui/src/net/sf/eclipsefp/haskell/ui/internal/resolve/BuildMarkerResolutionGenerator.java index b9a59338..39dab6a2 100644 --- a/net.sf.eclipsefp.haskell.ui/src/net/sf/ec...
false
true
public IMarkerResolution[] getResolutions( final IMarker marker ) { if (marker==null || !marker.exists()){ return new IMarkerResolution[0]; } List<IMarkerResolution> res=new ArrayList<IMarkerResolution>(); IMarkerResolution hlr=getHLintResolution( marker ); if (hlr!=null){ res.add( hl...
public IMarkerResolution[] getResolutions( final IMarker marker ) { if (marker==null || !marker.exists()){ return new IMarkerResolution[0]; } List<IMarkerResolution> res=new ArrayList<IMarkerResolution>(); IMarkerResolution hlr=getHLintResolution( marker ); if (hlr!=null){ res.add( hl...
diff --git a/src/co/networkery/uvbeenzaned/Round.java b/src/co/networkery/uvbeenzaned/Round.java index c9b6044..6789dc6 100644 --- a/src/co/networkery/uvbeenzaned/Round.java +++ b/src/co/networkery/uvbeenzaned/Round.java @@ -1,126 +1,120 @@ package co.networkery.uvbeenzaned; import java.awt.event.ActionEvent; impo...
false
true
public static void randomMap() { SnowballerListener.hitcnts.clear(); r.setSeed(System.currentTimeMillis()); int mapnum = r.nextInt(SnowballerListener.config.getConfig().getConfigurationSection("teamcyanarenasides").getKeys(false).size()); int i = 0; for(String key : SnowballerListener.config.getConfig().g...
public static void randomMap() { SnowballerListener.hitcnts.clear(); r.setSeed(System.currentTimeMillis()); int mapnum = r.nextInt(SnowballerListener.config.getConfig().getConfigurationSection("teamcyanarenasides").getKeys(false).size()); int i = 0; for(String key : SnowballerListener.config.getConfig().g...
diff --git a/GoogleWrapperSample/src/org/osmdroid/google/sample/GoogleWrapperSample.java b/GoogleWrapperSample/src/org/osmdroid/google/sample/GoogleWrapperSample.java index cb27fc2..e93f8f2 100644 --- a/GoogleWrapperSample/src/org/osmdroid/google/sample/GoogleWrapperSample.java +++ b/GoogleWrapperSample/src/org/osmdroi...
false
true
private void setMapView() { if (mMapViewSelection == MapViewSelection.OSM) { final org.osmdroid.views.MapView mapView = new org.osmdroid.views.MapView(this, 256); setContentView(mapView); mMapView = mapView; final org.osmdroid.views.overlay.MyLocationOverlay mlo = new org.osmdroid.views.overlay.MyLocati...
private void setMapView() { if (mMapViewSelection == MapViewSelection.OSM) { final org.osmdroid.views.MapView mapView = new org.osmdroid.views.MapView(this, 256); setContentView(mapView); mMapView = mapView; final org.osmdroid.views.overlay.MyLocationOverlay mlo = new org.osmdroid.views.overlay.MyLocati...
diff --git a/core/src/main/java/org/remus/core/RemusApplet.java b/core/src/main/java/org/remus/core/RemusApplet.java index 8a8a9c8..20a52cb 100644 --- a/core/src/main/java/org/remus/core/RemusApplet.java +++ b/core/src/main/java/org/remus/core/RemusApplet.java @@ -1,519 +1,519 @@ package org.remus.core; import java...
true
true
public boolean createInstance(String submitKey, Map params, RemusInstance inst) throws TException, NotImplemented { logger.info("Creating instance of " + getID() + " for " + inst.toString()); AppletRef instApplet = new AppletRef(pipeline.getID(), RemusInstance.STATIC_INSTANCE_STR, getID() + "/@instance"); if (...
public boolean createInstance(String submitKey, Map params, RemusInstance inst) throws TException, NotImplemented { logger.info("Creating instance of " + getID() + " for " + inst.toString()); AppletRef instApplet = new AppletRef(pipeline.getID(), RemusInstance.STATIC_INSTANCE_STR, getID() + "/@instance"); if (...
diff --git a/src/jvm/final_project/control/SMSReceiver.java b/src/jvm/final_project/control/SMSReceiver.java index 87e3e99..9fb12d8 100644 --- a/src/jvm/final_project/control/SMSReceiver.java +++ b/src/jvm/final_project/control/SMSReceiver.java @@ -1,235 +1,234 @@ package final_project.control; import java.io.*; imp...
true
true
public boolean getInbox() { System.out.println("GET INBOX CALLED: " + _flushed); if(!_flushed) { this.flushInbox(); return false; } OutputStreamWriter wr = null; BufferedReader rd = null; boolean toReturn = false; try { //Constructing data String data = ""; data += "username=" + URLEncode...
public boolean getInbox() { if(!_flushed) { this.flushInbox(); return false; } OutputStreamWriter wr = null; BufferedReader rd = null; boolean toReturn = false; try { //Constructing data String data = ""; data += "username=" + URLEncoder.encode(_username, "ISO-8859-1"); data += "&passwor...
diff --git a/OpenGov/src/main/java/za/org/opengov/ussd/service/stockout/cm/CMUssdStockoutServiceImpl.java b/OpenGov/src/main/java/za/org/opengov/ussd/service/stockout/cm/CMUssdStockoutServiceImpl.java index 6bbcfbb..0f8b9f1 100644 --- a/OpenGov/src/main/java/za/org/opengov/ussd/service/stockout/cm/CMUssdStockoutService...
true
true
public CMUssdResponse createUssdResponse(CMUssdRequest request) { CMUssdResponse response = new CMUssdResponse(); String displayText = ""; String sessionId = ""; int menuRequest = 0; try { // get the stage at which the user is in,in the ussd session menuRequest = Integer.parseInt(request.getRequestid...
public CMUssdResponse createUssdResponse(CMUssdRequest request) { CMUssdResponse response = new CMUssdResponse(); String displayText = ""; String sessionId = ""; int menuRequest = 0; try { // get the stage at which the user is in,in the ussd session menuRequest = Integer.parseInt(request.getRequestid...
diff --git a/main/java/org/spoutcraft/spoutcraftapi/addon/SimpleAddonManager.java b/main/java/org/spoutcraft/spoutcraftapi/addon/SimpleAddonManager.java index d145b00c..806e6922 100644 --- a/main/java/org/spoutcraft/spoutcraftapi/addon/SimpleAddonManager.java +++ b/main/java/org/spoutcraft/spoutcraftapi/addon/SimpleAdd...
true
true
public Addon[] loadAddons(File directory) { List<Addon> result = new ArrayList<Addon>(); File[] files = directory.listFiles(); boolean allFailed = false; boolean finalPass = false; LinkedList<File> filesList = new LinkedList(Arrays.asList(files)); if (!(client.getUpdateFolder().equals(""))) { updateD...
public Addon[] loadAddons(File directory) { List<Addon> result = new ArrayList<Addon>(); File[] files = directory.listFiles(); boolean allFailed = false; boolean finalPass = false; LinkedList<File> filesList = new LinkedList(Arrays.asList(files)); if (!(client.getUpdateFolder().equals(""))) { updateD...
diff --git a/src/org/odk/collect/android/logic/PropertyManager.java b/src/org/odk/collect/android/logic/PropertyManager.java index d6c3263..2497c68 100644 --- a/src/org/odk/collect/android/logic/PropertyManager.java +++ b/src/org/odk/collect/android/logic/PropertyManager.java @@ -1,109 +1,109 @@ /* * Copyright (C) 2...
true
true
public PropertyManager(Context context) { Log.i(t, "calling constructor"); mContext = context; mProperties = new HashMap<String, String>(); mTelephonyManager = (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); String deviceId = mTelephonyManager.getD...
public PropertyManager(Context context) { Log.i(t, "calling constructor"); mContext = context; mProperties = new HashMap<String, String>(); mTelephonyManager = (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); String deviceId = mTelephonyManager.getD...
diff --git a/mod/jodd-wot/test/jodd/db/DbMiscTest.java b/mod/jodd-wot/test/jodd/db/DbMiscTest.java index 631a359e2..9b752b47b 100644 --- a/mod/jodd-wot/test/jodd/db/DbMiscTest.java +++ b/mod/jodd-wot/test/jodd/db/DbMiscTest.java @@ -1,131 +1,131 @@ // Copyright (c) 2003-2012, Jodd Team (jodd.org). All Rights Reserved....
true
true
public void testBig() throws Exception { DbSession session = new DbSession(cp); DbQuery query = new DbQuery(session, "select count(*) from GIRL"); assertEquals(0, query.executeCount()); assertEquals(1, executeUpdate(session, "insert into GIRL values(1, 'Anna', 'seduction')")); assertEquals(1, query.execut...
public void testBig() throws Exception { DbSession session = new DbSession(cp); DbQuery query = new DbQuery(session, "select count(*) from GIRL"); assertEquals(0, query.executeCount()); assertEquals(1, executeUpdate(session, "insert into GIRL values(1, 'Anna', 'seduction')")); assertEquals(1, query.execut...
diff --git a/org.eclipse.jdt.launching.macosx/macosx/org/eclipse/jdt/internal/launching/macosx/MacOSXLaunchingPlugin.java b/org.eclipse.jdt.launching.macosx/macosx/org/eclipse/jdt/internal/launching/macosx/MacOSXLaunchingPlugin.java index f895d30fc..80a4fad2a 100644 --- a/org.eclipse.jdt.launching.macosx/macosx/org/ecl...
false
true
static String createWrapper(Class where, String filename) { /* * In order to build an application bundle under MacOS X we need a small stub * that reads the various artefacts of a bundle and starts the Java VM. We copy * the stub either from the running Eclipse or from the JavaVM * framework. Here we cr...
static String createWrapper(Class where, String filename) { /* * In order to build an application bundle under MacOS X we need a small stub * that reads the various artefacts of a bundle and starts the Java VM. We copy * the stub either from the running Eclipse or from the JavaVM * framework. Here we cr...
diff --git a/androidsource/src/ca/ilanguage/bilingualaphasiatest/activity/BilingualAphasiaTestHome.java b/androidsource/src/ca/ilanguage/bilingualaphasiatest/activity/BilingualAphasiaTestHome.java index d7ce035..f0338c1 100644 --- a/androidsource/src/ca/ilanguage/bilingualaphasiatest/activity/BilingualAphasiaTestHome.j...
true
true
protected void checkIfNeedToPrepareExperiment( boolean activtySaysToPrepareExperiment) { boolean prepareExperiment = getIntent().getExtras().getBoolean( OPrime.EXTRA_PLEASE_PREPARE_EXPERIMENT, false); if (prepareExperiment || activtySaysToPrepareExperiment) { if (D) { Log.d(TAG, ...
protected void checkIfNeedToPrepareExperiment( boolean activtySaysToPrepareExperiment) { boolean prepareExperiment = getIntent().getExtras().getBoolean( OPrime.EXTRA_PLEASE_PREPARE_EXPERIMENT, false); if (prepareExperiment || activtySaysToPrepareExperiment) { if (D) { Log.d(TAG, ...
diff --git a/core/taskbox/src/test/java/org/openengsb/core/taskbox/TaskboxServiceTest.java b/core/taskbox/src/test/java/org/openengsb/core/taskbox/TaskboxServiceTest.java index 5341113f3..194e3ec8e 100755 --- a/core/taskbox/src/test/java/org/openengsb/core/taskbox/TaskboxServiceTest.java +++ b/core/taskbox/src/test/jav...
true
true
public void testGetOpenTasks_ShouldReturnOpenTasks() { /* result object for querys to persistence mock */ List<Task> result = new ArrayList<Task>(); result.add(new Task()); when(persistenceService.query(any(Task.class))).thenReturn(result); /* actual test */ List<Tas...
public void testGetOpenTasks_ShouldReturnOpenTasks() { /* result object for querys to persistence mock */ List<Task> result = new ArrayList<Task>(); result.add(new Task()); when(persistenceService.query(any(Task.class))).thenReturn(result); /* actual test */ List<Tas...
diff --git a/wicket-security-swarm/src/test/java/org/apache/wicket/security/GeneralTest.java b/wicket-security-swarm/src/test/java/org/apache/wicket/security/GeneralTest.java index 8dd8fd64c..617edf71b 100644 --- a/wicket-security-swarm/src/test/java/org/apache/wicket/security/GeneralTest.java +++ b/wicket-security-swa...
true
true
public void testSerialization() { //setup session mock.startPage(MockHomePage.class); mock.assertRenderedPage(MockLoginPage.class); FormTester form = mock.newFormTester("form"); form.setValue("username", "test"); form.submit(); mock.assertRenderedPage(MockHomePage.class); mock.clickLink("secret", fals...
public void testSerialization() { //setup session mock.startPage(MockHomePage.class); mock.assertRenderedPage(MockLoginPage.class); FormTester form = mock.newFormTester("form"); form.setValue("username", "test"); form.submit(); mock.assertRenderedPage(MockHomePage.class); mock.clickLink("secret", fals...
diff --git a/managGui/src/managgui/Print.java b/managGui/src/managgui/Print.java index 49e4f6f..ea2a8da 100644 --- a/managGui/src/managgui/Print.java +++ b/managGui/src/managgui/Print.java @@ -1,172 +1,170 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ packag...
false
true
public int print(Graphics grap, PageFormat pageFormat, int pageIndex) throws PrinterException { if(pageIndex > 0) return NO_SUCH_PAGE; int x = (int)pageFormat.getImageableX(); int y = (int)pageFormat.getImageableY(); int width = (int)pageFormat.getImageableWidth(); ...
public int print(Graphics grap, PageFormat pageFormat, int pageIndex) throws PrinterException { if(pageIndex > 0) return NO_SUCH_PAGE; int x = (int)pageFormat.getImageableX(); int y = (int)pageFormat.getImageableY(); int width = (int)pageFormat.getImageableWidth(); ...
diff --git a/edu/cmu/sphinx/frontend/DataProcessor.java b/edu/cmu/sphinx/frontend/DataProcessor.java index e390d99d..9f6decc6 100644 --- a/edu/cmu/sphinx/frontend/DataProcessor.java +++ b/edu/cmu/sphinx/frontend/DataProcessor.java @@ -1,228 +1,230 @@ /* * Copyright 1999-2002 Carnegie Mellon University. * Portion...
true
true
protected void signalCheck(Data data) { if (!inUtterance) { if (data != null) { if (data.hasSignal(Signal.UTTERANCE_START)) { inUtterance = true; } else { throw new Error(getName() + ": no UTTERANCE_START"); } } } else { if (data == null) { throw new Error (g...
protected void signalCheck(Data data) { if (!inUtterance) { if (data != null) { if (data.hasSignal(Signal.UTTERANCE_START)) { inUtterance = true; } else if (data.hasSignal(Signal.UTTERANCE_END)) { throw new Error(getName() + ": too many UTTERANCE_END."); } else { ...
diff --git a/brut.apktool/apktool-lib/src/main/java/brut/androlib/src/SmaliDecoder.java b/brut.apktool/apktool-lib/src/main/java/brut/androlib/src/SmaliDecoder.java index 134fb88..98ed63e 100644 --- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/src/SmaliDecoder.java +++ b/brut.apktool/apktool-lib/src/main/java...
true
true
private void decode() throws AndrolibException { if (mDebug) { ClassPath.dontLoadClassPath = true; } try { baksmali.disassembleDexFile(mApkFile.getAbsolutePath(), new DexFile(mApkFile), false, mOutDir.getAbsolutePath(), null, null, nul...
private void decode() throws AndrolibException { if (mDebug) { ClassPath.dontLoadClassPath = true; } try { baksmali.disassembleDexFile(mApkFile.getAbsolutePath(), new DexFile(mApkFile), false, mOutDir.getAbsolutePath(), null, null, nul...
diff --git a/samples/jaxp/TypeInfoWriter.java b/samples/jaxp/TypeInfoWriter.java index 51507ebc..a49a147c 100644 --- a/samples/jaxp/TypeInfoWriter.java +++ b/samples/jaxp/TypeInfoWriter.java @@ -1,606 +1,607 @@ /* * Copyright 2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2....
true
true
public static void main (String [] argv) { // is there anything to do? if (argv.length == 0) { printUsage(); System.exit(1); } // variables XMLReader parser = null; Vector schemas = null; Vector instances = null; ...
public static void main (String [] argv) { // is there anything to do? if (argv.length == 0) { printUsage(); System.exit(1); } // variables XMLReader parser = null; Vector schemas = null; Vector instances = null; ...
diff --git a/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/NewAbstractCloudTest.java b/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/NewAbstractCloudTest.java index e9278969..f8f39fd8 100644 --- a/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud...
true
true
protected void bootstrap(CloudService service, CloudBootstrapper bootstrapper) throws Exception { if (this.isReusableCloud()) { throw new UnsupportedOperationException(this.getClass().getName() + "Requires reusable clouds, which are not supported yet"); } if (service == null) { ...
protected void bootstrap(CloudService service, CloudBootstrapper bootstrapper) throws Exception { if (this.isReusableCloud()) { throw new UnsupportedOperationException(this.getClass().getName() + "Requires reusable clouds, which are not supported yet"); } if (service == null) { ...
diff --git a/JavaSource/org/unitime/timetable/dataexchange/StaffImport.java b/JavaSource/org/unitime/timetable/dataexchange/StaffImport.java index b5a60fbb..db1ec619 100644 --- a/JavaSource/org/unitime/timetable/dataexchange/StaffImport.java +++ b/JavaSource/org/unitime/timetable/dataexchange/StaffImport.java @@ -1,151...
true
true
public void loadXml(Element root) throws Exception { String trimLeadingZeros = ApplicationProperties.getProperty("tmtbl.data.exchange.trim.externalId","false"); if (trimLeadingZeros.equals("true")){ trimLeadingZerosFromExternalId = true; } if (!root.getName().equalsIgnoreCase("staff")) { ...
public void loadXml(Element root) throws Exception { String trimLeadingZeros = ApplicationProperties.getProperty("tmtbl.data.exchange.trim.externalId","false"); if (trimLeadingZeros.equals("true")){ trimLeadingZerosFromExternalId = true; } if (!root.getName().equalsIgnoreCase("staff")) { ...
diff --git a/core/src/main/java/org/apache/mahout/ep/State.java b/core/src/main/java/org/apache/mahout/ep/State.java index fa0ecf5b..fd27be56 100644 --- a/core/src/main/java/org/apache/mahout/ep/State.java +++ b/core/src/main/java/org/apache/mahout/ep/State.java @@ -1,198 +1,198 @@ package org.apache.mahout.ep; imp...
true
true
public State<T> mutate() { double sum = 0; for (double v : step) { sum += v * v; } sum = Math.sqrt(sum); double lambda = 1 + gen.nextGaussian(); State<T> r = this.copy(); double magnitude = 0.9 * omni + sum / 10; r.omni = magnitude * -Math.log(1 - gen.nextDouble()); for (int...
public State<T> mutate() { double sum = 0; for (double v : step) { sum += v * v; } sum = Math.sqrt(sum); double lambda = 1 + gen.nextGaussian(); State<T> r = this.copy(); double magnitude = 0.9 * omni + sum / 10; r.omni = magnitude * -Math.log(1 - gen.nextDouble()); for (int...
diff --git a/engine/src/main/java/org/camunda/bpm/engine/impl/interceptor/CommandContext.java b/engine/src/main/java/org/camunda/bpm/engine/impl/interceptor/CommandContext.java index a116c60649..4bba855c3b 100644 --- a/engine/src/main/java/org/camunda/bpm/engine/impl/interceptor/CommandContext.java +++ b/engine/src/mai...
true
true
public void close() { // the intention of this method is that all resources are closed properly, // even // if exceptions occur in close or flush methods of the sessions or the // transaction context. try { try { try { if (exception == null) { flushSessions();...
public void close() { // the intention of this method is that all resources are closed properly, // even // if exceptions occur in close or flush methods of the sessions or the // transaction context. try { try { try { if (exception == null) { flushSessions();...
diff --git a/src/bindings/org/freedesktop/cairo/Context.java b/src/bindings/org/freedesktop/cairo/Context.java index ecbc5101..5e750f8b 100644 --- a/src/bindings/org/freedesktop/cairo/Context.java +++ b/src/bindings/org/freedesktop/cairo/Context.java @@ -1,418 +1,418 @@ /* * Context.java * * Copyright (c) 2007-2...
true
true
public Pattern getSource() { final Pattern result; result = CairoContext.getSource(this); checkStatus(); return result; }
public Pattern getSource() { final Pattern result; result = CairoContext.getSource(this); checkStatus(); return CairoPattern.reference(result); }
diff --git a/msv/src/com/sun/msv/reader/relax/core/InlineElementState.java b/msv/src/com/sun/msv/reader/relax/core/InlineElementState.java index 397952e0..dbc91358 100644 --- a/msv/src/com/sun/msv/reader/relax/core/InlineElementState.java +++ b/msv/src/com/sun/msv/reader/relax/core/InlineElementState.java @@ -1,118 +1,...
true
true
protected Expression makeExpression() { try { final RELAXCoreReader reader = (RELAXCoreReader)this.reader; final String name = startTag.getAttribute("name"); if( name==null ) { reader.reportError( reader.ERR_MISSING_ATTRIBUTE, "element","name" ); // recover by ignoring this element. return ...
protected Expression makeExpression() { try { final RELAXCoreReader reader = (RELAXCoreReader)this.reader; final String name = startTag.getAttribute("name"); if( name==null ) { reader.reportError( reader.ERR_MISSING_ATTRIBUTE, "element","name" ); // recover by ignoring this element. return ...
diff --git a/src/org/rscdaemon/client/GameImageMiddleMan.java b/src/org/rscdaemon/client/GameImageMiddleMan.java index fe2fb4e..21c742f 100644 --- a/src/org/rscdaemon/client/GameImageMiddleMan.java +++ b/src/org/rscdaemon/client/GameImageMiddleMan.java @@ -1,33 +1,34 @@ package org.rscdaemon.client; import java.awt...
true
true
public final void method245(int i, int j, int k, int l, int i1, int j1, int k1) { if (i1 >= 50000) { _mudclient.method71(i, j, k, l, i1 - 50000, j1, k1); return; } if (i1 >= 40000) { _mudclient.method68(i, j, k, l, i1 - 40000, j1, k1); return; } if (i1 >= 20000) { _mudclient.method45(i, j, ...
public final void method245(int i, int j, int k, int l, int i1, int j1, int k1) { if (i1 == 39999) i1++; // Seems to fix 'Red Dot Bug' if (i1 >= 50000) { _mudclient.method71(i, j, k, l, i1 - 50000, j1, k1); return; } if (i1 >= 40000) { _mudclient.method68(i, j, k, l, i1 - 40000, j1, k1); return;...
diff --git a/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/internal/services/ResourceBundleHelper.java b/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/internal/services/ResourceBundleHelper.java index 791d76c0e..8b9f33835 100644 --- a/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4...
false
true
public static ResourceBundle getResourceBundleForUri(String contributorURI, Locale locale, ResourceBundleProvider provider) { if (contributorURI == null) return null; LogService logService = ServicesActivator.getDefault().getLogService(); URI uri; try { uri = new URI(contributorURI); } catch (URIS...
public static ResourceBundle getResourceBundleForUri(String contributorURI, Locale locale, ResourceBundleProvider provider) { if (contributorURI == null) return null; LogService logService = ServicesActivator.getDefault().getLogService(); URI uri; try { uri = new URI(contributorURI); } catch (URIS...
diff --git a/Server/ChatServer.java b/Server/ChatServer.java index 3ccae80..b247f23 100644 --- a/Server/ChatServer.java +++ b/Server/ChatServer.java @@ -1,26 +1,26 @@ import java.net.ServerSocket; import java.io.IOException; public class ChatServer { private ServerSocket socket; public ChatServer(i...
true
true
public void listen() { while(true) { try { new ClientHandler(socket.accept()); } catch(IOException e) { System.err.println("error: " + e); } } }
public void listen() { while(true) { try { new ClientHandler(socket.accept()).start(); } catch(IOException e) { System.err.println("error: " + e); } } }
diff --git a/src/tconstruct/blocks/logic/PartBuilderLogic.java b/src/tconstruct/blocks/logic/PartBuilderLogic.java index 07a7924ee..ae643d325 100644 --- a/src/tconstruct/blocks/logic/PartBuilderLogic.java +++ b/src/tconstruct/blocks/logic/PartBuilderLogic.java @@ -1,182 +1,180 @@ package tconstruct.blocks.logic; im...
true
true
public void tryBuildPart (int slotID) { if (slotID == 4 || slotID == 5) { if (!craftedTop && inventory[0] != null) { int value = PatternBuilder.instance.getPartValue(inventory[2]); if (value == 0) /* hack to plug up future dups */ ...
public void tryBuildPart (int slotID) { if (slotID == 4 || slotID == 5) { if (!craftedTop && inventory[0] != null) { int value = PatternBuilder.instance.getPartValue(inventory[2]); IPattern item = (IPattern) inventory[0].getItem(); ...
diff --git a/src/uk/org/whoami/easyban/tasks/UnbanTask.java b/src/uk/org/whoami/easyban/tasks/UnbanTask.java index 467c35a..1758e68 100644 --- a/src/uk/org/whoami/easyban/tasks/UnbanTask.java +++ b/src/uk/org/whoami/easyban/tasks/UnbanTask.java @@ -1,47 +1,47 @@ /* * Copyright 2011 Sebastian Köhler <sebkoehler@whoam...
true
true
public void run() { Calendar cal = Calendar.getInstance(); HashMap<String,Long> tmpBans = data.getTempBans(); Iterator<String> it = tmpBans.keySet().iterator(); while(it.hasNext()) { String name = it.next(); if(tmpBans.get(name) != 100000 && (cal.getTimeInMill...
public void run() { Calendar cal = Calendar.getInstance(); HashMap<String,Long> tmpBans = data.getTempBans(); Iterator<String> it = tmpBans.keySet().iterator(); while(it.hasNext()) { String name = it.next(); if(tmpBans.get(name) != 100000 && (cal.getTimeInMill...
diff --git a/src/main/java/de/Keyle/MyPet/gui/skilltreecreator/LevelCreator.java b/src/main/java/de/Keyle/MyPet/gui/skilltreecreator/LevelCreator.java index 3687e6c5f..67c03850f 100644 --- a/src/main/java/de/Keyle/MyPet/gui/skilltreecreator/LevelCreator.java +++ b/src/main/java/de/Keyle/MyPet/gui/skilltreecreator/Level...
true
true
public LevelCreator() { addLevelButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { String response = JOptionPane.showInputDialog(null, "Enter the number for the new level.", "Create new Level", JOptionPane.QUESTION...
public LevelCreator() { addLevelButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { String response = JOptionPane.showInputDialog(null, "Enter the number for the new level.", "Create new Level", JOptionPane.QUESTION...
diff --git a/Malaria/src/main/java/com/cajama/malaria/NewReportActivity.java b/Malaria/src/main/java/com/cajama/malaria/NewReportActivity.java index 70d5366..c3a0035 100644 --- a/Malaria/src/main/java/com/cajama/malaria/NewReportActivity.java +++ b/Malaria/src/main/java/com/cajama/malaria/NewReportActivity.java @@ -1,3...
false
true
public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.action_prev: invalidateOptionsMenu(); if (VF.getDisplayedChild() == 0) { AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this); ...
public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.action_prev: if (VF.getDisplayedChild() == 0) { AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this); alertDialogBuilder ...
diff --git a/flume-ng-core/src/main/java/org/apache/flume/sink/DefaultSinkFactory.java b/flume-ng-core/src/main/java/org/apache/flume/sink/DefaultSinkFactory.java index c2a09cbc..641626fb 100644 --- a/flume-ng-core/src/main/java/org/apache/flume/sink/DefaultSinkFactory.java +++ b/flume-ng-core/src/main/java/org/apache/...
true
true
public Sink create(String name) throws InstantiationException { Preconditions.checkNotNull(name); logger.debug("Creating instance of source {}", name); if (!sinkRegistry.containsKey(name)) { return null; } Sink sink = null; try { sink = sinkRegistry.get(name).newInstance(); ...
public Sink create(String name) throws InstantiationException { Preconditions.checkNotNull(name); logger.debug("Creating instance of sink {}", name); if (!sinkRegistry.containsKey(name)) { return null; } Sink sink = null; try { sink = sinkRegistry.get(name).newInstance(); }...
diff --git a/src/com/github/gittodo/rcp/GitToDo.java b/src/com/github/gittodo/rcp/GitToDo.java index 118e193..d7f5425 100644 --- a/src/com/github/gittodo/rcp/GitToDo.java +++ b/src/com/github/gittodo/rcp/GitToDo.java @@ -1,119 +1,130 @@ package com.github.gittodo.rcp; import org.eclipse.swt.SWT; import org.eclipse...
false
true
public static void main( String[] args ) { final Display display = new Display(); final Shell shell = new Shell(display); FillLayout layout = new FillLayout(); shell.setLayout(layout); final GitToDoTree tableViewer = new GitToDoTree(shell); Menu menu...
public static void main( String[] args ) { final Display display = new Display(); final Shell shell = new Shell(display); FillLayout layout = new FillLayout(); shell.setLayout(layout); final GitToDoTree tableViewer = new GitToDoTree(shell); Menu menu...
diff --git a/src/core/java/org/wyona/yanel/core/map/Realm.java b/src/core/java/org/wyona/yanel/core/map/Realm.java index 7f22a7d44..905cd81ba 100644 --- a/src/core/java/org/wyona/yanel/core/map/Realm.java +++ b/src/core/java/org/wyona/yanel/core/map/Realm.java @@ -1,466 +1,466 @@ /* * Copyright 2006 Wyona * * L...
true
true
protected void configure(Configuration config) throws Exception { Yanel yanel = Yanel.getInstance(); File repoConfig = null; // Set PolicyManager for this realm Configuration repoConfigElement = config.getChild("ac-policies", false); if (repoConfigElement != null) { P...
protected void configure(Configuration config) throws Exception { Yanel yanel = Yanel.getInstance(); File repoConfig = null; // Set PolicyManager for this realm Configuration repoConfigElement = config.getChild("ac-policies", false); if (repoConfigElement != null) { P...
diff --git a/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/listener/evaluation/QuestionScoreListener.java b/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/listener/evaluation/QuestionScoreListener.java index 306018c33..867e4be3c 100644 --- a/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/lis...
true
true
public boolean questionScores(String publishedId, QuestionScoresBean bean, boolean isValueChange) { log.debug("questionScores()"); try { PublishedAssessmentService pubService = new PublishedAssessmentService(); // get the PublishedAssessment based on publishedId QuestionScoresBean questionBean = (Quest...
public boolean questionScores(String publishedId, QuestionScoresBean bean, boolean isValueChange) { log.debug("questionScores()"); try { PublishedAssessmentService pubService = new PublishedAssessmentService(); // get the PublishedAssessment based on publishedId QuestionScoresBean questionBean = (Quest...
diff --git a/src/main/java/org/mozilla/gecko/sync/setup/SyncAuthenticatorService.java b/src/main/java/org/mozilla/gecko/sync/setup/SyncAuthenticatorService.java index 1227564b7..6a47e279a 100644 --- a/src/main/java/org/mozilla/gecko/sync/setup/SyncAuthenticatorService.java +++ b/src/main/java/org/mozilla/gecko/sync/set...
false
true
public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle options) throws NetworkErrorException { Logger.debug(LOG_TAG, "getAuthToken()"); if (!authTokenType.equals(Constants.AUTHTOKEN_TYPE_PLAIN)) { final Bundle result = new ...
public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle options) throws NetworkErrorException { Logger.debug(LOG_TAG, "getAuthToken()"); if (!authTokenType.equals(Constants.AUTHTOKEN_TYPE_PLAIN)) { final Bundle result = new ...
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/bugs/java/BugzillaHyperLinkDetector.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/bugs/java/BugzillaHyperLinkDetector.java index c01874f5c..05c1b936a 100644 --- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/bugs/java/BugzillaHyperLinkDet...
true
true
public IHyperlink[] detectHyperlinks(ITextViewer textViewer, IRegion region, boolean canShowMultipleHyperlinks) { ITextEditor textEditor = getEditor(); if (region == null || textEditor == null || canShowMultipleHyperlinks || !(textEditor instanceof JavaEditor)) return null; IEditorSite site= textEditor.getEd...
public IHyperlink[] detectHyperlinks(ITextViewer textViewer, IRegion region, boolean canShowMultipleHyperlinks) { ITextEditor textEditor = getEditor(); if (region == null || textEditor == null || canShowMultipleHyperlinks || !(textEditor instanceof JavaEditor)) return null; IEditorSite site= textEditor.getEd...
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestDocsAndPositions.java b/lucene/core/src/test/org/apache/lucene/index/TestDocsAndPositions.java index 48d0dc8444..536b1cfe48 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestDocsAndPositions.java +++ b/lucene/core/src/test/org/apache/lucene/index...
true
true
public void testRandomPositions() throws IOException { Directory dir = newDirectory(); RandomIndexWriter writer = new RandomIndexWriter(random(), dir, newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random())).setMergePolicy(newLogMergePolicy())); int numDocs = atLeast(47); int max...
public void testRandomPositions() throws IOException { Directory dir = newDirectory(); RandomIndexWriter writer = new RandomIndexWriter(random(), dir, newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random())).setMergePolicy(newLogMergePolicy())); int numDocs = atLeast(47); int max...
diff --git a/src/prettify/lang/LangCss.java b/src/prettify/lang/LangCss.java index f644f2f..ad8b391 100644 --- a/src/prettify/lang/LangCss.java +++ b/src/prettify/lang/LangCss.java @@ -1,112 +1,112 @@ // Copyright (C) 2009 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may ...
true
true
public LangCss() { List<List<Object>> _shortcutStylePatterns = new ArrayList<List<Object>>(); List<List<Object>> _fallthroughStylePatterns = new ArrayList<List<Object>>(); // The space production <s> _shortcutStylePatterns.add(Arrays.asList(new Object[]{Prettify.PR_PLAIN, Pattern.compile("^[ \t\r\n\f...
public LangCss() { List<List<Object>> _shortcutStylePatterns = new ArrayList<List<Object>>(); List<List<Object>> _fallthroughStylePatterns = new ArrayList<List<Object>>(); // The space production <s> _shortcutStylePatterns.add(Arrays.asList(new Object[]{Prettify.PR_PLAIN, Pattern.compile("^[ \t\r\n\f...
diff --git a/JMathTextField.java b/JMathTextField.java index 093ac02..6ffd33a 100644 --- a/JMathTextField.java +++ b/JMathTextField.java @@ -1,139 +1,139 @@ package applets.Termumformungen$in$der$Technik_03_Logistik; import javax.swing.JTextField; import javax.swing.text.AttributeSet; import javax.swing.text.BadL...
true
true
protected Document createDefaultModel() { PlainDocument d = (PlainDocument) super.createDefaultModel(); d.setDocumentFilter(new DocumentFilter() { @Override public void insertString(FilterBypass fb, int offset, String string, AttributeSet attr) throws BadLocationException { replace(fb, of...
protected Document createDefaultModel() { PlainDocument d = (PlainDocument) super.createDefaultModel(); d.setDocumentFilter(new DocumentFilter() { @Override public void insertString(FilterBypass fb, int offset, String string, AttributeSet attr) throws BadLocationException { replace(fb, of...
diff --git a/src/bitstercli/RUBTClient.java b/src/bitstercli/RUBTClient.java index e6fc486..25f1071 100644 --- a/src/bitstercli/RUBTClient.java +++ b/src/bitstercli/RUBTClient.java @@ -1,74 +1,77 @@ package bitstercli; import java.io.DataInputStream; import java.io.File; import java.io.FileInputStream; import ja...
false
true
public static void main(String[] args) { Logger log = Logger.getLogger("bitster"); // check if we have a valid number of arguments if(args.length != 2) { log.log(Level.SEVERE, "Error: Invalid number of arguments."); return; } // validate argument 1 File torrentFile = ...
public static void main(String[] args) { Logger log = Logger.getLogger("bitster"); // check if we have a valid number of arguments if(args.length != 2) { log.log(Level.SEVERE, "Error: Invalid number of arguments."); return; } // validate argument 1 File torrentFile = ...
diff --git a/dexlib/src/main/java/org/jf/dexlib/Code/Analysis/SyntheticAccessorResolver.java b/dexlib/src/main/java/org/jf/dexlib/Code/Analysis/SyntheticAccessorResolver.java index 3494b070..09ac7968 100644 --- a/dexlib/src/main/java/org/jf/dexlib/Code/Analysis/SyntheticAccessorResolver.java +++ b/dexlib/src/main/java/...
false
true
public AccessedMember getAccessedMember(MethodIdItem methodIdItem) { AccessedMember accessedMember = resolvedAccessors.get(methodIdItem); if (accessedMember != null) { return accessedMember; } ClassDefItem classDefItem = classMap.getClassDefByType(methodIdItem.getContain...
public AccessedMember getAccessedMember(MethodIdItem methodIdItem) { AccessedMember accessedMember = resolvedAccessors.get(methodIdItem); if (accessedMember != null) { return accessedMember; } ClassDefItem classDefItem = classMap.getClassDefByType(methodIdItem.getContain...