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/main/java/net/toddsarratt/GaussTrader/WatchList.java b/src/main/java/net/toddsarratt/GaussTrader/WatchList.java index 918e082..3a8a691 100644 --- a/src/main/java/net/toddsarratt/GaussTrader/WatchList.java +++ b/src/main/java/net/toddsarratt/GaussTrader/WatchList.java @@ -1,94 +1,96 @@ package net.todd...
true
true
protected static void updateDbStockMetrics(Stock stockToUpdate) { LOGGER.debug("Entering WatchList.updateDb(Stock {})", stockToUpdate.getTicker()); PreparedStatement sqlUniquenessStatement; PreparedStatement sqlUpdateStatement; try { String ticker = stockToUpdate.getTicker(); ...
protected static void updateDbStockMetrics(Stock stockToUpdate) { LOGGER.debug("Entering WatchList.updateDb(Stock {})", stockToUpdate.getTicker()); PreparedStatement sqlUniquenessStatement; PreparedStatement sqlUpdateStatement; try { String ticker = stockToUpdate.getTicker(); ...
diff --git a/jslint4java-ant/src/test/java/com/googlecode/jslint4java/ant/PlainResultFormatterTest.java b/jslint4java-ant/src/test/java/com/googlecode/jslint4java/ant/PlainResultFormatterTest.java index 183e1d2..27e780c 100644 --- a/jslint4java-ant/src/test/java/com/googlecode/jslint4java/ant/PlainResultFormatterTest.j...
false
true
public void testExpectedOutputOneIssue() { File file = new File("foo/bar.js"); Issue issue = new IssueBuilder(file.toString(), 1, 1, "no clucking") .evidence("cluck()").build(); issues.add(issue); runFormatter(file); String expected = "foo/bar.js:1:1: no cluck...
public void testExpectedOutputOneIssue() { File file = new File("foo/bar.js"); Issue issue = new IssueBuilder(file.toString(), 1, 1, "no clucking") .evidence("cluck()").build(); issues.add(issue); runFormatter(file); // Build up the expected output in a cross-...
diff --git a/src/java/com/eviware/soapui/support/xml/XmlUtils.java b/src/java/com/eviware/soapui/support/xml/XmlUtils.java index 7a3a1dfb1..d281fee91 100644 --- a/src/java/com/eviware/soapui/support/xml/XmlUtils.java +++ b/src/java/com/eviware/soapui/support/xml/XmlUtils.java @@ -1,1724 +1,1724 @@ /* * soapUI, copy...
false
true
public static XPathData createXPathData( Node node, boolean anonymous, boolean selectText, boolean absolute, boolean normalize ) { StringToStringMap nsMap = new StringToStringMap(); List<String> pathComponents = new ArrayList<String>(); int nsCnt = 1; String namespaceURI = node.getNamespaceURI(); // if...
public static XPathData createXPathData( Node node, boolean anonymous, boolean selectText, boolean absolute, boolean normalize ) { StringToStringMap nsMap = new StringToStringMap(); List<String> pathComponents = new ArrayList<String>(); int nsCnt = 1; String namespaceURI = node.getNamespaceURI(); // if...
diff --git a/src/kundera-cassandra/src/main/java/com/impetus/client/cassandra/query/CassandraEntityReader.java b/src/kundera-cassandra/src/main/java/com/impetus/client/cassandra/query/CassandraEntityReader.java index 191535951..94c8439c3 100644 --- a/src/kundera-cassandra/src/main/java/com/impetus/client/cassandra/quer...
false
true
public List<EnhanceEntity> populateRelation(EntityMetadata m, Client client, int maxResults) { if(log.isInfoEnabled()) { log.info("On populate relation via JPQL"); } List<EnhanceEntity> ls = null; List<String> relationNames = m.getRelationNames(); bool...
public List<EnhanceEntity> populateRelation(EntityMetadata m, Client client, int maxResults) { if(log.isInfoEnabled()) { log.info("On populate relation via JPQL"); } List<EnhanceEntity> ls = null; List<String> relationNames = m.getRelationNames(); bool...
diff --git a/src/edu/uchc/octane/OctanePlugin.java b/src/edu/uchc/octane/OctanePlugin.java index 89e0f09..8700126 100644 --- a/src/edu/uchc/octane/OctanePlugin.java +++ b/src/edu/uchc/octane/OctanePlugin.java @@ -1,366 +1,366 @@ //FILE: OctanePlugin.java //PROJECT: Octane //---------------------------...
true
true
public void run(String cmd) { if (!IJ.isJava16()) { IJ.error("Octane requires Java version 1.6 or higher. Please upgrade the JVM."); return; } try { Class.forName("org.apache.commons.math3.util.FastMath"); } catch (ClassNotFoundException e) { IJ.error("This version of Octane re...
public void run(String cmd) { if (!IJ.isJava16()) { IJ.error("Octane requires Java version 1.6 or higher. Please upgrade the JVM."); return; } try { Class.forName("org.apache.commons.math3.util.FastMath"); } catch (ClassNotFoundException e) { IJ.error("This version of Octane re...
diff --git a/code/src/at/photoselector/ui/drawer/ListItem.java b/code/src/at/photoselector/ui/drawer/ListItem.java index 66fb9f5..97a286d 100644 --- a/code/src/at/photoselector/ui/drawer/ListItem.java +++ b/code/src/at/photoselector/ui/drawer/ListItem.java @@ -1,184 +1,185 @@ package at.photoselector.ui.drawer; imp...
true
true
public ListItem(final Composite parent, final DrawerDialog dialog, ControlsDialog cDialog, Photo current) { photo = current; drawerDialog = dialog; this.controlsDialog = cDialog; final Display display = parent.getDisplay(); int boundingBox = drawerDialog.getBoundingBox(); final Composite imageContai...
public ListItem(final Composite parent, final DrawerDialog dialog, ControlsDialog cDialog, Photo current) { photo = current; drawerDialog = dialog; this.controlsDialog = cDialog; final Display display = parent.getDisplay(); int boundingBox = drawerDialog.getBoundingBox(); final Composite imageContai...
diff --git a/samples/domino/com.ibm.xsp.sbtsdk.playground/src/nsf/playground/playground/PreviewJavaScriptHandler.java b/samples/domino/com.ibm.xsp.sbtsdk.playground/src/nsf/playground/playground/PreviewJavaScriptHandler.java index 4d92e7372..3b9c2150d 100644 --- a/samples/domino/com.ibm.xsp.sbtsdk.playground/src/nsf/pl...
false
true
protected void execRequest(HttpServletRequest req, HttpServletResponse resp, RequestParams requestParams) throws ServletException, IOException { resp.setContentType("text/html"); String sOptions = requestParams.sOptions; JsonJavaObject options = new JsonJavaObject(); try { options = (JsonJavaObject)JsonPar...
protected void execRequest(HttpServletRequest req, HttpServletResponse resp, RequestParams requestParams) throws ServletException, IOException { resp.setContentType("text/html"); String sOptions = requestParams.sOptions; JsonJavaObject options = new JsonJavaObject(); try { options = (JsonJavaObject)JsonPar...
diff --git a/src/main/java/org/app/IOLHacker.java b/src/main/java/org/app/IOLHacker.java index 7769d21..cff81e1 100644 --- a/src/main/java/org/app/IOLHacker.java +++ b/src/main/java/org/app/IOLHacker.java @@ -1,62 +1,62 @@ package org.app; import net.sourceforge.jpcap.capture.CaptureDeviceNotFoundException; import...
false
true
public static void main(String[] args) { initializateLogger(); CommandLineParameters clp = new CommandLineParameters(); clp.load(args); Logger.getRootLogger().setLevel(clp.getLoggingLevel()); Sniffer sniffer = new Sniffer(); try{ ArgsPresentator.displayAppHeader(); sniffer.sniff(clp.getInterface()...
public static void main(String[] args) { initializateLogger(); CommandLineParameters clp = new CommandLineParameters(); clp.load(args); Logger.getRootLogger().setLevel(clp.getLoggingLevel()); try{ Sniffer sniffer = new Sniffer(); ArgsPresentator.displayAppHeader(); sniffer.sniff(clp.getInterface(...
diff --git a/src/java/davmail/imap/ImapConnection.java b/src/java/davmail/imap/ImapConnection.java index 137ad21..ff8c54d 100644 --- a/src/java/davmail/imap/ImapConnection.java +++ b/src/java/davmail/imap/ImapConnection.java @@ -1,1070 +1,1077 @@ package davmail.imap; import com.sun.mail.imap.protocol.BASE64Mailbox...
false
true
public void run() { String line; String commandId = null; IMAPTokenizer tokens; try { ExchangeSessionFactory.checkConfig(); sendClient("* OK [CAPABILITY IMAP4REV1 AUTH=LOGIN] IMAP4rev1 DavMail server ready"); for (; ;) { line = read...
public void run() { String line; String commandId = null; IMAPTokenizer tokens; try { ExchangeSessionFactory.checkConfig(); sendClient("* OK [CAPABILITY IMAP4REV1 AUTH=LOGIN] IMAP4rev1 DavMail server ready"); for (; ;) { line = read...
diff --git a/axis2/src/main/java/org/apache/ode/axis2/hooks/ODEAxisService.java b/axis2/src/main/java/org/apache/ode/axis2/hooks/ODEAxisService.java index 4a8c8638f..e28ac3f98 100644 --- a/axis2/src/main/java/org/apache/ode/axis2/hooks/ODEAxisService.java +++ b/axis2/src/main/java/org/apache/ode/axis2/hooks/ODEAxisServ...
true
true
public static AxisService createService(AxisConfiguration axisConfig, ProcessConf pconf, QName wsdlServiceName, String portName) throws AxisFault { Definition wsdlDefinition = pconf.getDefinitionForService(wsdlServiceName); String serviceName = extractServ...
public static AxisService createService(AxisConfiguration axisConfig, ProcessConf pconf, QName wsdlServiceName, String portName) throws AxisFault { Definition wsdlDefinition = pconf.getDefinitionForService(wsdlServiceName); String serviceName = extractServ...
diff --git a/sample/simple.java b/sample/simple.java index 5b7df74..c34d945 100644 --- a/sample/simple.java +++ b/sample/simple.java @@ -1,19 +1,19 @@ import html2windows.css.CSSParser; import html2windows.css.FontPainter; import html2windows.dom.Document; import html2windows.dom.UIParser; public class simple ...
true
true
public static void main(String[] args) { Document document = new UIParser().parse("<html><head>simple</head><body><h1>Hello World</h1></body></html>"); document.setPainter(new FontPainter()); document.setSize(400, 300); new CSSParser().parse("h1 { font-color: black; }", document); ...
public static void main(String[] args) { Document document = new UIParser().parse("<html><head>simple</head><body><h1>Hello World</h1></body></html>"); document.setPainter(new CSS2Painter()); document.setSize(400, 300); new CSSParser().parse("h1 { font-color: black; }", document); ...
diff --git a/parser/src/main/java/parser/flatzinc/ast/constraints/global/InverseBuilder.java b/parser/src/main/java/parser/flatzinc/ast/constraints/global/InverseBuilder.java index 74152a767..3f988c607 100644 --- a/parser/src/main/java/parser/flatzinc/ast/constraints/global/InverseBuilder.java +++ b/parser/src/main/jav...
true
true
public Constraint build(Solver solver, String name, List<Expression> exps, List<EAnnotation> annotations) { IntVar[] x = exps.get(0).toIntVarArray(solver); IntVar[] y = exps.get(1).toIntVarArray(solver); return new InverseChanneling(x, y, solver); }
public Constraint build(Solver solver, String name, List<Expression> exps, List<EAnnotation> annotations) { IntVar[] x = exps.get(0).toIntVarArray(solver); IntVar[] y = exps.get(1).toIntVarArray(solver); return new InverseChanneling(x, y,1,1, solver); }
diff --git a/sample/src/com/dinnerbone/bukkit/sample/SamplePlugin.java b/sample/src/com/dinnerbone/bukkit/sample/SamplePlugin.java index 69b84af4..4d0de3d4 100644 --- a/sample/src/com/dinnerbone/bukkit/sample/SamplePlugin.java +++ b/sample/src/com/dinnerbone/bukkit/sample/SamplePlugin.java @@ -1,57 +1,58 @@ package ...
true
true
private void registerEvents() { getServer().getPluginManager().registerEvent(Event.Type.PLAYER_JOIN, playerListener, Priority.Normal, this); getServer().getPluginManager().registerEvent(Event.Type.PLAYER_QUIT, playerListener, Priority.Normal, this); getServer().getPluginManager().registerEve...
private void registerEvents() { getServer().getPluginManager().registerEvent(Event.Type.PLAYER_JOIN, playerListener, Priority.Normal, this); getServer().getPluginManager().registerEvent(Event.Type.PLAYER_QUIT, playerListener, Priority.Normal, this); getServer().getPluginManager().registerEve...
diff --git a/ghana-national-core/src/test/java/org/motechproject/ghana/national/configuration/IPTVaccinationSchedulesTest.java b/ghana-national-core/src/test/java/org/motechproject/ghana/national/configuration/IPTVaccinationSchedulesTest.java index 067bd979..1dffa46c 100644 --- a/ghana-national-core/src/test/java/org/m...
false
true
public void verifyPregnancyIPTScheduleForPatientRegistrationOnMidOf12thOfPregnancy() throws SchedulerException { Pregnancy pregnancy = basedOnDeliveryDate(newDate(2012, 9, 22)); // 12 week start day is 3 Mar - 2012 LocalDate midOfWeek12_6Mar12 = pregnancy.dateOfConception().plusWeeks(11).pl...
public void verifyPregnancyIPTScheduleForPatientRegistrationOnMidOf12thOfPregnancy() throws SchedulerException { Pregnancy pregnancy = basedOnDeliveryDate(newDate(2012, 9, 22)); // 12 week start day is 3 Mar - 2012 LocalDate midOfWeek12_6Mar12 = pregnancy.dateOfConception().plusWeeks(11).pl...
diff --git a/src/net/stormdev/mario/mariokart/URaceCommandExecutor.java b/src/net/stormdev/mario/mariokart/URaceCommandExecutor.java index 4925263..0c5df40 100644 --- a/src/net/stormdev/mario/mariokart/URaceCommandExecutor.java +++ b/src/net/stormdev/mario/mariokart/URaceCommandExecutor.java @@ -1,539 +1,539 @@ packag...
true
true
public Boolean urace(CommandSender sender, String[] args, Player player) { if (args.length < 1) { return false; } String command = args[0]; if (command.equalsIgnoreCase("list")) { int page = 1; if (args.length > 1) { try { page = Integer.parseInt(args[1]); } catch (NumberFormatException e...
public Boolean urace(CommandSender sender, String[] args, Player player) { if (args.length < 1) { return false; } String command = args[0]; if (command.equalsIgnoreCase("list")) { int page = 1; if (args.length > 1) { try { page = Integer.parseInt(args[1]); } catch (NumberFormatException e...
diff --git a/taskflows/interSliceTransfer/server/src/de/zib/gndms/taskflows/interslicetransfer/server/logic/InterSliceTransferTaskAction.java b/taskflows/interSliceTransfer/server/src/de/zib/gndms/taskflows/interslicetransfer/server/logic/InterSliceTransferTaskAction.java index 86fd4c7c..0091e7c6 100644 --- a/taskflows...
true
true
protected void onInProgress(@NotNull String wid, @NotNull TaskState state, boolean isRestartedTask, boolean altTaskState) throws Exception { ensureOrder(); InterSliceTransferQuoteCalculator.prepareSourceUrl( getOrder(), sliceClient ); prepareDestination( ); ...
protected void onInProgress(@NotNull String wid, @NotNull TaskState state, boolean isRestartedTask, boolean altTaskState) throws Exception { ensureOrder(); InterSliceTransferQuoteCalculator.prepareSourceUrl( getOrder(), sliceClient ); prepareDestination( ); ...
diff --git a/cyklotron-core/src/main/java/net/cyklotron/cms/security/internal/CyklotronUserManagementParticipant.java b/cyklotron-core/src/main/java/net/cyklotron/cms/security/internal/CyklotronUserManagementParticipant.java index 82b881d73..55c3f65ac 100644 --- a/cyklotron-core/src/main/java/net/cyklotron/cms/security...
false
true
public void removeAccount(Principal user) throws UserUnknownException, UserInUseException { CoralSession coralSession = coralSessionFactory.getRootSession(); Subject subject; try { subject = coralSession.getSecurity().getSubject(user.getName()); Ro...
public void removeAccount(Principal user) throws UserUnknownException, UserInUseException { try(CoralSession coralSession = coralSessionFactory.getRootSession()) { Subject subject = coralSession.getSecurity().getSubject(user.getName()); RoleAssignment[] roles = su...
diff --git a/src/main/java/com/twilio/sdk/TwilioRestClient.java b/src/main/java/com/twilio/sdk/TwilioRestClient.java index d4ac85615..d2ca03828 100644 --- a/src/main/java/com/twilio/sdk/TwilioRestClient.java +++ b/src/main/java/com/twilio/sdk/TwilioRestClient.java @@ -1,673 +1,673 @@ package com.twilio.sdk; import ...
true
true
private HttpUriRequest setupRequest(String path, String method, Map<String, String> vars) { List<NameValuePair> params = generateParameters(vars); String normalizedPath = path.toLowerCase(); StringBuilder sb = new StringBuilder(); // If we've given a fully qualified uri then skip building the endpoint i...
private HttpUriRequest setupRequest(String path, String method, Map<String, String> vars) { List<NameValuePair> params = generateParameters(vars); String normalizedPath = path.toLowerCase(); StringBuilder sb = new StringBuilder(); // If we've given a fully qualified uri then skip building the endpoint i...
diff --git a/JSynthLib/core/Storage.java b/JSynthLib/core/Storage.java index e4578da..708fa0a 100644 --- a/JSynthLib/core/Storage.java +++ b/JSynthLib/core/Storage.java @@ -1,223 +1,223 @@ /** * Storage.java - Implemenation for storing and restoring of objects that * support simple persistance (currently implement...
true
true
private static Object restoreValue(Class propType, Properties props, String propName, String prefix) { String storedValue = props.getProperty(prefix+propName); // Basic types boolean isNull = (storedValue==null); if (propType==Boolean.TYPE || propType == Boolean.class) return (isNull) ? null : Bool...
private static Object restoreValue(Class propType, Properties props, String propName, String prefix) { String storedValue = props.getProperty(prefix+propName); // Basic types boolean isNull = (storedValue==null); if (propType==Boolean.TYPE || propType == Boolean.class) return (isNull) ? null : Bool...
diff --git a/src/com/herocraftonline/dev/heroes/skill/TargettedSkill.java b/src/com/herocraftonline/dev/heroes/skill/TargettedSkill.java index b50937b6..26935215 100644 --- a/src/com/herocraftonline/dev/heroes/skill/TargettedSkill.java +++ b/src/com/herocraftonline/dev/heroes/skill/TargettedSkill.java @@ -1,261 +1,261 ...
true
true
private LivingEntity getTarget(Hero hero, int maxDistance, String[] args) { Player player = hero.getPlayer(); LivingEntity target = null; if (args.length > 0) { target = plugin.getServer().getPlayer(args[0]); if (target == null) { Messaging.send(player...
private LivingEntity getTarget(Hero hero, int maxDistance, String[] args) { Player player = hero.getPlayer(); LivingEntity target = null; if (args.length > 0) { target = plugin.getServer().getPlayer(args[0]); if (target == null) { Messaging.send(player...
diff --git a/AnimationLib/src/me/captainbern/animationlib/animations/BlockAnimation.java b/AnimationLib/src/me/captainbern/animationlib/animations/BlockAnimation.java index 2000981..08ace9e 100644 --- a/AnimationLib/src/me/captainbern/animationlib/animations/BlockAnimation.java +++ b/AnimationLib/src/me/captainbern/ani...
true
true
protected void broadcastAnimation(Block block, short damage) { try{ if(damage > 7 || damage < 0){ throw new NumberFormatException("damage needs to be between 0 and 7!"); } Packet packet = new Packet("Packet55BlockBreakAnimation"); packet.setPrivateValue("a", 0); packet.setPrivateValu...
protected void broadcastAnimation(Block block, short damage) { try{ if(damage > 7 || damage < 0){ throw new NumberFormatException("damage needs to be between 0 and 7!"); } Packet packet = new Packet("Packet55BlockBreakAnimation"); packet.setPrivateValue("a", 0); packet.setPrivateValu...
diff --git a/src/main/java/test/cli/cloudify/cloud/byon/AbstractByonCloudTest.java b/src/main/java/test/cli/cloudify/cloud/byon/AbstractByonCloudTest.java index 3ebb18b4..9238db37 100644 --- a/src/main/java/test/cli/cloudify/cloud/byon/AbstractByonCloudTest.java +++ b/src/main/java/test/cli/cloudify/cloud/byon/Abstract...
true
true
private void createAdmin() throws TimeoutException { long endTime = System.currentTimeMillis() + CREATE_ADMIN_TIMEOUT; // TODO elip - Remove this once GS-10453 is fixed and use factory.createAndWait(); while (System.currentTimeMillis() < endTime) { admin = createAdminFactory().create(); ProcessingUnit ...
private void createAdmin() throws TimeoutException { long endTime = System.currentTimeMillis() + CREATE_ADMIN_TIMEOUT; // TODO elip - Remove this once GS-10453 is fixed and use factory.createAndWait(); while (System.currentTimeMillis() < endTime) { admin = createAdminFactory().create(); ProcessingUnit ...
diff --git a/utils/java/stuff/MyStack.java b/utils/java/stuff/MyStack.java index 2e5d0fd..c8c7d87 100644 --- a/utils/java/stuff/MyStack.java +++ b/utils/java/stuff/MyStack.java @@ -1,107 +1,107 @@ import java.util.Arrays; public class MyStack { private int size = 0; private static final int INITIA...
false
true
public String toString() { String format = "[ "; for(int i = 0; i < this.size; i++) { format+="\""; format+= (this.elements[i] + "\""); if(i < (this.size-1)) { format+=", "; } } return format+" ]"; }
public String toString() { String format = "["; for(int i = 0; i < this.size; i++) { format+="\""; format+= (this.elements[i] + "\""); if(i < (this.size-1)) { format+=", "; } } return format+"]"; }
diff --git a/fNIRs/src/fNIRs/Hello.java b/fNIRs/src/fNIRs/Hello.java index 544b5c7..4f5e4da 100644 --- a/fNIRs/src/fNIRs/Hello.java +++ b/fNIRs/src/fNIRs/Hello.java @@ -1,2820 +1,2821 @@ package fNIRs; import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.StandardCopyO...
true
true
protected int createContents() { shlFnirsDataProcessing = new Shell(SWT.CLOSE | SWT.MIN | SWT.TITLE); shlFnirsDataProcessing.setFont(SWTResourceManager.getFont("Segoe UI", 12, SWT.NORMAL)); shlFnirsDataProcessing.setImage(SWTResourceManager.getImage( Hello.class, "/fNIRs/logo.png")); shlFnirsDataProces...
protected int createContents() { shlFnirsDataProcessing = new Shell(SWT.CLOSE | SWT.MIN | SWT.TITLE); shlFnirsDataProcessing.setFont(SWTResourceManager.getFont("Segoe UI", 12, SWT.NORMAL)); shlFnirsDataProcessing.setImage(SWTResourceManager.getImage( Hello.class, "/fNIRs/logo.png")); shlFnirsDataProces...
diff --git a/src/gdp/racetrack/Game.java b/src/gdp/racetrack/Game.java index 921a5d0..4bd69d0 100644 --- a/src/gdp/racetrack/Game.java +++ b/src/gdp/racetrack/Game.java @@ -1,307 +1,307 @@ package gdp.racetrack; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class Game ...
false
true
public void run() throws IllegalStateException { if (state == State.RUNNING) throw new IllegalStateException("The game is already running"); if (state == State.FINISHED) throw new IllegalStateException("The game have finished and there is nothing to do"); boolean firstRun = (state == State.PREPARING); ...
public void run() throws IllegalStateException { if (state == State.RUNNING) throw new IllegalStateException("The game is already running"); if (state == State.FINISHED) throw new IllegalStateException("The game have finished and there is nothing to do"); boolean firstRun = (state == State.PREPARING); ...
diff --git a/src/main/java/org/apache/hadoop/hbase/master/HMasterCommandLine.java b/src/main/java/org/apache/hadoop/hbase/master/HMasterCommandLine.java index 629d4fc35..ae9faf9a3 100644 --- a/src/main/java/org/apache/hadoop/hbase/master/HMasterCommandLine.java +++ b/src/main/java/org/apache/hadoop/hbase/master/HMaster...
true
true
private int startMaster() { Configuration conf = getConf(); try { // If 'local', defer to LocalHBaseCluster instance. Starts master // and regionserver both in the one JVM. if (LocalHBaseCluster.isLocal(conf)) { final MiniZooKeeperCluster zooKeeperCluster = new MiniZooKeep...
private int startMaster() { Configuration conf = getConf(); try { // If 'local', defer to LocalHBaseCluster instance. Starts master // and regionserver both in the one JVM. if (LocalHBaseCluster.isLocal(conf)) { final MiniZooKeeperCluster zooKeeperCluster = new MiniZooKeep...
diff --git a/Chat/src/ServerMainLoop.java b/Chat/src/ServerMainLoop.java index e55878c..7170cd0 100644 --- a/Chat/src/ServerMainLoop.java +++ b/Chat/src/ServerMainLoop.java @@ -1,100 +1,102 @@ import java.net.InetAddress; import java.net.NetworkInterface; import java.net.ServerSocket; import java.net.Socket; i...
true
true
public static void main(String[] args){ try { InetAddress address = null; Enumeration<NetworkInterface> interfaces = NetworkInterface .getNetworkInterfaces(); while (interfaces.hasMoreElements()) { NetworkInterface networkInterface = interfaces.nextElement(); if (networkInterface.isLoopback()) ...
public static void main(String[] args){ try { InetAddress address = null; Enumeration<NetworkInterface> interfaces = NetworkInterface .getNetworkInterfaces(); while (interfaces.hasMoreElements()) { NetworkInterface networkInterface = interfaces.nextElement(); if (networkInterface.isLoopback()) ...
diff --git a/fog.routing.hrm/src/de/tuilmenau/ics/fog/ui/eclipse/editors/HRMViewer.java b/fog.routing.hrm/src/de/tuilmenau/ics/fog/ui/eclipse/editors/HRMViewer.java index 61588d4e..495ebef0 100644 --- a/fog.routing.hrm/src/de/tuilmenau/ics/fog/ui/eclipse/editors/HRMViewer.java +++ b/fog.routing.hrm/src/de/tuilmenau/ics...
false
true
private void printComChannels(ControlEntity pControlEntity) { Table tTable = new Table(mContainer, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION); TableColumn tColumnCoordinator = new TableColumn(tTable, SWT.NONE, 0); tColumnCoordinator.setText("Coordinator"); TableColumn tColumnCEP = ne...
private void printComChannels(ControlEntity pControlEntity) { Table tTable = new Table(mContainer, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION); TableColumn tColumnCoordinator = new TableColumn(tTable, SWT.NONE, 0); tColumnCoordinator.setText("Coordinator"); TableColumn tColumnCEP = ne...
diff --git a/core/org.eclipse.ptp.proxy.protocol/src/org/eclipse/ptp/proxy/packet/ProxyPacket.java b/core/org.eclipse.ptp.proxy.protocol/src/org/eclipse/ptp/proxy/packet/ProxyPacket.java index a11b1e988..4286b76b3 100644 --- a/core/org.eclipse.ptp.proxy.protocol/src/org/eclipse/ptp/proxy/packet/ProxyPacket.java +++ b/c...
false
true
public boolean read(ReadableByteChannel channel) throws IOException { /* * First EVENT_LENGTH_SIZE bytes are the length of the event */ ByteBuffer lengthBytes = ByteBuffer.allocate(PACKET_LENGTH_SIZE); int readLen; readLen = fullRead(channel, lengthBytes); if (readLen != PACKET_LENGTH_SIZE) { ret...
public boolean read(ReadableByteChannel channel) throws IOException { /* * First EVENT_LENGTH_SIZE bytes are the length of the event */ ByteBuffer lengthBytes = ByteBuffer.allocate(PACKET_LENGTH_SIZE); int readLen; readLen = fullRead(channel, lengthBytes); if (readLen != PACKET_LENGTH_SIZE) { ret...
diff --git a/auiplugin-tests/src/test/java/it/com/atlassian/aui/javascript/integrationTests/AUISeleniumQUnitTest.java b/auiplugin-tests/src/test/java/it/com/atlassian/aui/javascript/integrationTests/AUISeleniumQUnitTest.java index 3ce7352..d3cfe75 100644 --- a/auiplugin-tests/src/test/java/it/com/atlassian/aui/javascri...
true
true
private void runQunitTests(String component) { client.waitForCondition("selenium.isElementPresent('qunit-testresult')"); try { client.wait(3000); client.wait(); } catch (InterruptedException e) { e.printStackTrace(); //To chang...
private void runQunitTests(String component) { client.waitForCondition("selenium.isElementPresent('qunit-testresult')"); client.waitForCondition("setTimeout('return true', 3000)"); int numberOfFailedTests = Integer.valueOf(client.getEval("window.AJS.$('li.fail li.fail').size()")); ...
diff --git a/src/org/opensolaris/opengrok/analysis/FileAnalyzer.java b/src/org/opensolaris/opengrok/analysis/FileAnalyzer.java index bc4508b..6f7b831 100644 --- a/src/org/opensolaris/opengrok/analysis/FileAnalyzer.java +++ b/src/org/opensolaris/opengrok/analysis/FileAnalyzer.java @@ -1,143 +1,145 @@ /* * CDDL HEADER...
true
true
public void writeXref(File xrefDir, String path) throws IOException { RuntimeEnvironment env = RuntimeEnvironment.getInstance(); if (env.hasProjects()) { project = Project.getProject(path); } else { project = null; } final boolean compressed = env.is...
public void writeXref(File xrefDir, String path) throws IOException { RuntimeEnvironment env = RuntimeEnvironment.getInstance(); if (env.hasProjects()) { project = Project.getProject(path); } else { project = null; } final boolean compressed = env.is...
diff --git a/src/main/java/org/elasticsearch/transport/couchbase/capi/ElasticSearchCAPIBehavior.java b/src/main/java/org/elasticsearch/transport/couchbase/capi/ElasticSearchCAPIBehavior.java index acd061a..74f19c0 100644 --- a/src/main/java/org/elasticsearch/transport/couchbase/capi/ElasticSearchCAPIBehavior.java +++ b...
true
true
public List<Object> bulkDocs(String database, List<Map<String, Object>> docs) { String index = getElasticSearchIndexNameFromDatabase(database); BulkRequestBuilder bulkBuilder = client.prepareBulk(); // keep a map of the id - rev for building the response Map<String,String> revisio...
public List<Object> bulkDocs(String database, List<Map<String, Object>> docs) { String index = getElasticSearchIndexNameFromDatabase(database); BulkRequestBuilder bulkBuilder = client.prepareBulk(); // keep a map of the id - rev for building the response Map<String,String> revisio...
diff --git a/SaldoTicket/src/main/java/com/wordpress/mteixeira/saldoticket/TransactionsActivity.java b/SaldoTicket/src/main/java/com/wordpress/mteixeira/saldoticket/TransactionsActivity.java index c0050f7..58cd3ff 100644 --- a/SaldoTicket/src/main/java/com/wordpress/mteixeira/saldoticket/TransactionsActivity.java +++ b...
true
true
private void fetchTransactions() { String strMessage = null; try { HttpParams httpParameters = new BasicHttpParams(); // Set the timeout in milliseconds until a connection is established. // The default value is zero, that means the timeout is not used. ...
private void fetchTransactions() { String strMessage = null; try { HttpParams httpParameters = new BasicHttpParams(); // Set the timeout in milliseconds until a connection is established. // The default value is zero, that means the timeout is not used. ...
diff --git a/src/me/naithantu/ArenaPVP/Gamemodes/Gamemodes/TDM.java b/src/me/naithantu/ArenaPVP/Gamemodes/Gamemodes/TDM.java index df056fd..c0c0771 100644 --- a/src/me/naithantu/ArenaPVP/Gamemodes/Gamemodes/TDM.java +++ b/src/me/naithantu/ArenaPVP/Gamemodes/Gamemodes/TDM.java @@ -1,202 +1,197 @@ package me.naithantu.A...
true
true
public void updateTabs() { if (!tabController.hasTabAPI()) return; String status = Util.capaltizeFirstLetter(arena.getArenaState().toString()); String arenaName = arena.getArenaName(); String spectators = ChatColor.GRAY + "" + arena.getArenaSpectators().getSpectators().size() + " Spectators"; List<Aren...
public void updateTabs() { if (!tabController.hasTabAPI()) return; String status = Util.capaltizeFirstLetter(arena.getArenaState().toString()); String arenaName = arena.getArenaName(); String spectators = ChatColor.GRAY + "" + arena.getArenaSpectators().getSpectators().size() + " Spectators"; List<Aren...
diff --git a/agit/src/main/java/com/madgag/agit/diff/DiffSliderView.java b/agit/src/main/java/com/madgag/agit/diff/DiffSliderView.java index c83f087..382a18b 100644 --- a/agit/src/main/java/com/madgag/agit/diff/DiffSliderView.java +++ b/agit/src/main/java/com/madgag/agit/diff/DiffSliderView.java @@ -1,115 +1,115 @@ /*...
true
true
public DiffSliderView(Context context, AttributeSet attrs) { super(context, attrs); setOrientation(HORIZONTAL); setGravity(CENTER); LayoutInflater.from(context).inflate(diff_seekbar_view, this); beforeTextView = (TextView) findViewById(beforeText); afterTextView = (TextView) findVi...
public DiffSliderView(Context context, AttributeSet attrs) { super(context, attrs); setOrientation(HORIZONTAL); setGravity(CENTER); LayoutInflater.from(context).inflate(diff_seekbar_view, this); beforeTextView = (TextView) findViewById(beforeText); afterTextView = (TextView) findVi...
diff --git a/console/src/main/java/ibeans/client/AboutPanel.java b/console/src/main/java/ibeans/client/AboutPanel.java index 16e35ee..025770a 100644 --- a/console/src/main/java/ibeans/client/AboutPanel.java +++ b/console/src/main/java/ibeans/client/AboutPanel.java @@ -1,57 +1,57 @@ /* * $Id$ * --------------------...
true
true
public Html getAboutText() { Html html = new Html(); html.setHtml("<div style='padding: 6px;'> <h1 class=\"welcome-h1\">Mule iBeans</h1>\n" + "\n" + " Web Application integration made easy. Copyright 2009, MuleSoft, Inc. All rights reserved\n" + "<p...
public Html getAboutText() { Html html = new Html(); html.setHtml("<div style='padding: 6px;'> <h1 class=\"welcome-h1\">Mule iBeans</h1>\n" + "\n" + " Web Application integration made easy. Copyright 2009, MuleSoft, Inc. All rights reserved\n" + "<p...
diff --git a/src/br/ufrj/ppgi/greco/dataTransformation/services/CSVTransformation.java b/src/br/ufrj/ppgi/greco/dataTransformation/services/CSVTransformation.java index 251e448..b954c73 100644 --- a/src/br/ufrj/ppgi/greco/dataTransformation/services/CSVTransformation.java +++ b/src/br/ufrj/ppgi/greco/dataTransformation...
false
true
public ArrayList<HashMap<String, ArrayList<String>>> getValue(String data, String group, HashMap<String, String> transformationsIndexedByLabel) { ArrayList<HashMap<String, ArrayList<String>>> result = new ArrayList<HashMap<String, ArrayList<String>>>(); try { Character separator = ','; if (this.separatorChar...
public ArrayList<HashMap<String, ArrayList<String>>> getValue(String data, String group, HashMap<String, String> transformationsIndexedByLabel) { ArrayList<HashMap<String, ArrayList<String>>> result = new ArrayList<HashMap<String, ArrayList<String>>>(); try { Character separator = ','; if (this.separatorChar...
diff --git a/src/jp/mumoshu/webapi/hotpepper/HotpepperSearch.java b/src/jp/mumoshu/webapi/hotpepper/HotpepperSearch.java index b9b6ee8..c47888b 100644 --- a/src/jp/mumoshu/webapi/hotpepper/HotpepperSearch.java +++ b/src/jp/mumoshu/webapi/hotpepper/HotpepperSearch.java @@ -1,46 +1,48 @@ package jp.mumoshu.webapi.hotpep...
true
true
public Uri requestUri(){ Builder b = new Builder(); b.appendPath(API_URL); b.appendQueryParameter("key", apiKey); condition.appendQueryParametersTo(b); return b.build(); }
public Uri requestUri(){ Builder b = new Builder(); b.scheme("http") .authority("webservice.recruit.co.jp") .path("hotpepper/gourmet/v1") .appendQueryParameter("key", apiKey); condition.appendQueryParametersTo(b); return b.build(); }
diff --git a/dspace-api/src/main/java/org/dspace/app/statistics/LogAnalyser.java b/dspace-api/src/main/java/org/dspace/app/statistics/LogAnalyser.java index 9a2bc5ab2..03f750834 100644 --- a/dspace-api/src/main/java/org/dspace/app/statistics/LogAnalyser.java +++ b/dspace-api/src/main/java/org/dspace/app/statistics/LogA...
true
true
public static void processLogs(Context context, String myLogDir, String myFileTemplate, String myConfigFile, String myOutFile, Date myStartDate, Date myEndDate, boolean myLookUp) throws IOException...
public static void processLogs(Context context, String myLogDir, String myFileTemplate, String myConfigFile, String myOutFile, Date myStartDate, Date myEndDate, boolean myLookUp) throws IOException...
diff --git a/javafx.editor/src/org/netbeans/modules/javafx/editor/preview/JavaFXPreviewTopComponent.java b/javafx.editor/src/org/netbeans/modules/javafx/editor/preview/JavaFXPreviewTopComponent.java index 1797af1e..2f9aabe3 100644 --- a/javafx.editor/src/org/netbeans/modules/javafx/editor/preview/JavaFXPreviewTopCompon...
true
true
public void run() { synchronized (JavaFXPreviewTopComponent.this) { if (pr != null) { pr.destroy(); timer = 0; task.schedule(150); return; } } if (oldD != null) { ...
public void run() { synchronized (JavaFXPreviewTopComponent.this) { if (pr != null) { pr.destroy(); timer = 0; task.schedule(150); return; } } if (oldD != null) { ...
diff --git a/mes-plugins/mes-plugins-production-counting/src/main/java/com/qcadoo/mes/productionCounting/hooks/OrderHookPC.java b/mes-plugins/mes-plugins-production-counting/src/main/java/com/qcadoo/mes/productionCounting/hooks/OrderHookPC.java index 9b98eb842d..98d7b28d38 100644 --- a/mes-plugins/mes-plugins-productio...
true
true
public void setOrderWithDefaultProductionCountingValues(final DataDefinition dataDefinition, final Entity order) { for (String fieldName : Arrays.asList(TYPE_OF_PRODUCTION_RECORDING, REGISTER_PIECEWORK, REGISTER_QUANTITY_IN_PRODUCT, REGISTER_QUANTITY_OUT_PRODUCT, JUST_ONE, ALLOW_TO_CLOSE, AU...
public void setOrderWithDefaultProductionCountingValues(final DataDefinition dataDefinition, final Entity order) { for (String fieldName : Arrays.asList(TYPE_OF_PRODUCTION_RECORDING, REGISTER_PIECEWORK, REGISTER_QUANTITY_IN_PRODUCT, REGISTER_QUANTITY_OUT_PRODUCT, JUST_ONE, ALLOW_TO_CLOSE, AU...
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java index bc88a987..fc1a26d4 100644 --- a/src/com/android/launcher2/LauncherModel.java +++ b/src/com/android/launcher2/LauncherModel.java @@ -1,2174 +1,2176 @@ /* * Copyright (C) 2008 The Android Open Source Project ...
true
true
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
diff --git a/trunk/jGnucashLib/plugins/biz.wolschon.finance.jgnucash.viewer.main/source/biz/wolschon/numbers/FixedPointNumber.java b/trunk/jGnucashLib/plugins/biz.wolschon.finance.jgnucash.viewer.main/source/biz/wolschon/numbers/FixedPointNumber.java index 4dcca29..1085859 100644 --- a/trunk/jGnucashLib/plugins/biz.wol...
false
true
public FixedPointNumber(String gnucashString) throws NumberFormatException { int dividerIndex = gnucashString.indexOf('/'); if (dividerIndex == -1) { int commaIndex = gnucashString.indexOf(','); if (commaIndex != -1) { gnucashString = gnucashString.replaceAl...
public FixedPointNumber(String gnucashString) throws NumberFormatException { int dividerIndex = gnucashString.indexOf('/'); if (dividerIndex == -1) { int commaIndex = gnucashString.indexOf(','); if (commaIndex != -1) { gnucashString = gnucashString.replaceAl...
diff --git a/src/test/java/mock/NomicServiceMockTest.java b/src/test/java/mock/NomicServiceMockTest.java index 18603fe..53933d7 100644 --- a/src/test/java/mock/NomicServiceMockTest.java +++ b/src/test/java/mock/NomicServiceMockTest.java @@ -1,281 +1,279 @@ package mock; import java.util.ArrayList; import java.util...
false
true
public void ApplyProposedRuleTest() throws UnavailableServiceException { context.setImposteriser(ClassImposteriser.INSTANCE); final NomicAgent mockAgent = context.mock(NomicAgent.class); final RuleClassificationService mockRuleClass = context.mock(RuleClassificationService.class); final String newRule...
public void ApplyProposedRuleTest() throws UnavailableServiceException { context.setImposteriser(ClassImposteriser.INSTANCE); final NomicAgent mockAgent = context.mock(NomicAgent.class); final RuleClassificationService mockRuleClass = context.mock(RuleClassificationService.class); final String newRule...
diff --git a/dbmsgsrc/src/org/riotfamily/dbmsgsrc/riot/ImportMessagesCommand.java b/dbmsgsrc/src/org/riotfamily/dbmsgsrc/riot/ImportMessagesCommand.java index f642ffdba..0cfb551a8 100644 --- a/dbmsgsrc/src/org/riotfamily/dbmsgsrc/riot/ImportMessagesCommand.java +++ b/dbmsgsrc/src/org/riotfamily/dbmsgsrc/riot/ImportMess...
true
true
private void updateMessages(byte[] data, Site site) throws IOException { HSSFWorkbook wb = new HSSFWorkbook(new ByteArrayInputStream(data)); HSSFSheet sheet = wb.getSheet("Translations"); if (isValid(sheet)) { for (int i = 1; i < sheet.getPhysicalNumberOfRows(); i++) { HSSFRow row = sheet.getRow(i); ...
private void updateMessages(byte[] data, Site site) throws IOException { HSSFWorkbook wb = new HSSFWorkbook(new ByteArrayInputStream(data)); HSSFSheet sheet = wb.getSheet("Translations"); if (isValid(sheet)) { for (int i = 1; i < sheet.getPhysicalNumberOfRows(); i++) { HSSFRow row = sheet.getRow(i); ...
diff --git a/src/haven/GameUI.java b/src/haven/GameUI.java index e42445a7..edc2f117 100644 --- a/src/haven/GameUI.java +++ b/src/haven/GameUI.java @@ -1,1133 +1,1133 @@ /* * This file is part of the Haven & Hearth game client. * Copyright (C) 2009 Fredrik Tolf <fredrik@dolda2000.com>, and * ...
true
true
public MainMenu(Coord c, Widget parent) { super(c, menubg.sz(), parent); new Img(Coord.z, menubg, this); invb = new MenuButton(new Coord(161, 8), this, "inv", 9, "Inventory (Tab)") { int seq = 0; public void click() { if((invwnd != null) && invwnd.show(!invwnd.visible)) { invwnd.raise(); ...
public MainMenu(Coord c, Widget parent) { super(c, menubg.sz(), parent); new Img(Coord.z, menubg, this); invb = new MenuButton(new Coord(161, 8), this, "inv", 9, "Inventory (Tab)") { int seq = 0; public void click() { if((invwnd != null) && invwnd.show(!invwnd.visible)) { invwnd.raise(); ...
diff --git a/src/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java b/src/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java index cab9ef08..5f5df70b 100644 --- a/src/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java +++ b/src/java/com/android/internal/...
true
true
protected void pollStateDone() { log("pollStateDone: lte 1 ss=[" + mSS + "] newSS=[" + mNewSS + "]"); useDataRegStateForDataOnlyDevices(); boolean hasRegistered = mSS.getVoiceRegState() != ServiceState.STATE_IN_SERVICE && mNewSS.getVoiceRegState() == ServiceState.STATE_IN_S...
protected void pollStateDone() { log("pollStateDone: lte 1 ss=[" + mSS + "] newSS=[" + mNewSS + "]"); useDataRegStateForDataOnlyDevices(); boolean hasRegistered = mSS.getVoiceRegState() != ServiceState.STATE_IN_SERVICE && mNewSS.getVoiceRegState() == ServiceState.STATE_IN_S...
diff --git a/ExchangeBypassForXposed/src/main/java/com/shantz/exchangebypass/XposedModule.java b/ExchangeBypassForXposed/src/main/java/com/shantz/exchangebypass/XposedModule.java index ee783f3..c5a0e0b 100644 --- a/ExchangeBypassForXposed/src/main/java/com/shantz/exchangebypass/XposedModule.java +++ b/ExchangeBypassFor...
true
true
private void hookEmail(LoadPackageParam lpparam) { findAndHookMethod("com.android.emailcommon.provider.Policy", lpparam.classLoader, "normalize", updatePolicy); findAndHookMethod("com.android.email.SecurityPolicy", lpparam.classLoader, "getInactiveReasons", "com.andro...
private void hookEmail(LoadPackageParam lpparam) { findAndHookMethod("com.android.emailcommon.provider.Policy", lpparam.classLoader, "normalize", updatePolicy); findAndHookMethod("com.android.email.SecurityPolicy", lpparam.classLoader, "getInactiveReasons", "com.andro...
diff --git a/droid/droid-umls-impl/src/main/java/org/biosemantics/disambiguation/droid/umls/impl/UmlsMySqlDataSourceImpl.java b/droid/droid-umls-impl/src/main/java/org/biosemantics/disambiguation/droid/umls/impl/UmlsMySqlDataSourceImpl.java index a11f973..0113e70 100644 --- a/droid/droid-umls-impl/src/main/java/org/bio...
false
true
private void getConcepts() throws SQLException { Transaction transaction = graphDatabaseService.beginTx(); PreparedStatement getConceptStatement = connection.prepareStatement(GET_ALL_CONCEPTS_SQL, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY); getConceptStatement.setFetchSize(Integer.MIN_VALUE); ...
private void getConcepts() throws SQLException { Transaction transaction = graphDatabaseService.beginTx(); PreparedStatement getConceptStatement = connection.prepareStatement(GET_ALL_CONCEPTS_SQL, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY); getConceptStatement.setFetchSize(Integer.MIN_VALUE); ...
diff --git a/src/main/org/jboss/jms/util/XMLUtil.java b/src/main/org/jboss/jms/util/XMLUtil.java index 047060bc1..218616a82 100644 --- a/src/main/org/jboss/jms/util/XMLUtil.java +++ b/src/main/org/jboss/jms/util/XMLUtil.java @@ -1,337 +1,337 @@ /** * JBoss, Home of Professional Open Source * * Distributable unde...
true
true
public static String getTextContent(Node n) throws XMLException { if (n.hasChildNodes()) { StringBuffer sb = new StringBuffer(); NodeList nl = n.getChildNodes(); for(int i = 0; i < nl.getLength(); i++) { sb.append(XMLUtil.elementToString(nl.item(i))); ...
public static String getTextContent(Node n) throws XMLException { if (n.hasChildNodes()) { StringBuffer sb = new StringBuffer(); NodeList nl = n.getChildNodes(); for(int i = 0; i < nl.getLength(); i++) { sb.append(XMLUtil.elementToString(nl.item(i))); ...
diff --git a/core/java/android/widget/AbsListView.java b/core/java/android/widget/AbsListView.java index 59382163..607b816e 100644 --- a/core/java/android/widget/AbsListView.java +++ b/core/java/android/widget/AbsListView.java @@ -1,6528 +1,6529 @@ /* * Copyright (C) 2006 The Android Open Source Project * * Lice...
true
true
public boolean onTouchEvent(MotionEvent ev) { if (!isEnabled()) { // A disabled view that is clickable still consumes the touch // events, it just doesn't respond to them. return isClickable() || isLongClickable(); } if (mPositionScroller != null) { ...
public boolean onTouchEvent(MotionEvent ev) { if (!isEnabled()) { // A disabled view that is clickable still consumes the touch // events, it just doesn't respond to them. return isClickable() || isLongClickable(); } if (mPositionScroller != null) { ...
diff --git a/tool/src/java/org/sakaiproject/evaluation/tool/producers/ControlEvaluationsProducer.java b/tool/src/java/org/sakaiproject/evaluation/tool/producers/ControlEvaluationsProducer.java index a386856c..7c46f085 100644 --- a/tool/src/java/org/sakaiproject/evaluation/tool/producers/ControlEvaluationsProducer.java ...
true
true
public void fillComponents(UIContainer tofill, ViewParameters viewparams, ComponentChecker checker) { // local variables used in the render logic String currentUserId = externalLogic.getCurrentUserId(); boolean userAdmin = externalLogic.isUserAdmin(currentUserId); boolean createTemplate = templatesLogic.canCr...
public void fillComponents(UIContainer tofill, ViewParameters viewparams, ComponentChecker checker) { // local variables used in the render logic String currentUserId = externalLogic.getCurrentUserId(); boolean userAdmin = externalLogic.isUserAdmin(currentUserId); boolean createTemplate = templatesLogic.canCr...
diff --git a/code/br.ufpe.cin.reviewer.model/src/br/ufpe/cin/reviewer/model/common/Study.java b/code/br.ufpe.cin.reviewer.model/src/br/ufpe/cin/reviewer/model/common/Study.java index 8ae2bb0..636e72b 100644 --- a/code/br.ufpe.cin.reviewer.model/src/br/ufpe/cin/reviewer/model/common/Study.java +++ b/code/br.ufpe.cin.rev...
true
true
public void addCountry(String newCountry) { boolean exist = false; for (String country : this.countries) { if (country.equalsIgnoreCase(country.trim())) { exist = true; break; } } if (!exist) { this.countries.add(newCountry); } }
public void addCountry(String newCountry) { boolean exist = false; for (String country : this.countries) { if (country.equalsIgnoreCase(country.trim())) { exist = true; break; } } if (!exist) { this.countries.add(newCountry.trim()); } }
diff --git a/MiniJavaAluno/semant/first_pass/handlers/FormalsHandler.java b/MiniJavaAluno/semant/first_pass/handlers/FormalsHandler.java index 755c188..a850ed8 100644 --- a/MiniJavaAluno/semant/first_pass/handlers/FormalsHandler.java +++ b/MiniJavaAluno/semant/first_pass/handlers/FormalsHandler.java @@ -1,39 +1,37 @@ ...
false
true
public void visit(Formal node) { Symbol name = Symbol.symbol(node.name.s); VarInfo varInfo = new VarInfo(node.type, name); // inserindo nova declaracao na tabela de simbolos if (!info.addFormal(varInfo)) { VarInfo previousInfo = info.localsTable.get(name); ...
public void visit(Formal node) { Symbol name = Symbol.symbol(node.name.s); VarInfo varInfo = new VarInfo(node.type, name); // inserindo nova declaracao na tabela de simbolos if (!info.addFormal(varInfo)) { env.err.Error(node.name, new Object[]{ ...
diff --git a/jSynapse/trunk/src/experiments/current/Oracle.java b/jSynapse/trunk/src/experiments/current/Oracle.java index 65930ba..7e75fed 100644 --- a/jSynapse/trunk/src/experiments/current/Oracle.java +++ b/jSynapse/trunk/src/experiments/current/Oracle.java @@ -1,41 +1,43 @@ package experiments.current; import c...
false
true
public static void main (String args[]){ ITransport transport = new SocketImpl(0, 10, RequestHandler.class.getName(), 10, 1, 50, null); if(args[0].equals("put")){ transport.sendRequest(args[3] + "," + PUT + "," + args[1] + "," + args[2], new Node(args[4], Integer.parseInt(args[5]))); System.out.prin...
public static void main (String args[]){ ITransport transport = new SocketImpl(0, 10, RequestHandler.class.getName(), 10, 1, 50, null); try { if(args[0].equals("put")){ transport.sendRequest(args[3] + "," + PUT + "," + args[1] + "," + args[2], new Node(args[4], Integer.parseInt(args[5]))); Sys...
diff --git a/src/jvm/clojure/lang/LispReader.java b/src/jvm/clojure/lang/LispReader.java index 53a7124d..bec3f065 100644 --- a/src/jvm/clojure/lang/LispReader.java +++ b/src/jvm/clojure/lang/LispReader.java @@ -1,1059 +1,1062 @@ /** * Copyright (c) Rich Hickey. All rights reserved. * The use and distribution t...
false
true
static Object syntaxQuote(Object form) throws Exception{ Object ret; if(Compiler.isSpecial(form)) ret = RT.list(Compiler.QUOTE, form); else if(form instanceof Symbol) { Symbol sym = (Symbol) form; if(sym.ns == null && sym.name.endsWith("#")) { IPersistentMap gmap = (IPersistentMap) GENSYM_ENV...
static Object syntaxQuote(Object form) throws Exception{ Object ret; if(Compiler.isSpecial(form)) ret = RT.list(Compiler.QUOTE, form); else if(form instanceof Symbol) { Symbol sym = (Symbol) form; if(sym.ns == null && sym.name.endsWith("#")) { IPersistentMap gmap = (IPersistentMap) GENSYM_ENV...
diff --git a/cxf-webservices/src/main/java/org/migus/web/content/rest/ContentServerImpl.java b/cxf-webservices/src/main/java/org/migus/web/content/rest/ContentServerImpl.java index 7d3f52d..804a172 100644 --- a/cxf-webservices/src/main/java/org/migus/web/content/rest/ContentServerImpl.java +++ b/cxf-webservices/src/mai...
true
true
private Content add(UUID id, Content newContent) { String message="adding content with newId = "+id+"; newContent ="+ newContent; ContentData contentData=null; logger.debug(message); try { contentDao.insertContent(id, newContent.getAuthor(), newContent.getTitle(), newContent.getText()); } catch...
private Content add(UUID id, Content newContent) { String message="adding content with newId = "+id+"; newContent ="+ newContent; ContentData contentData=null; logger.debug(message); try { contentDao.insertContent(id, newContent.getAuthor(), newContent.getTitle(), newContent.getText()); } catch...
diff --git a/src/android/hgd/FileBrowser.java b/src/android/hgd/FileBrowser.java index 59f87ab..03800f7 100644 --- a/src/android/hgd/FileBrowser.java +++ b/src/android/hgd/FileBrowser.java @@ -1,86 +1,90 @@ /* * Copyright 2012 Matthew Mole <code@gairne.co.uk>, Carlos Eduardo da Silva <kaduardo@gmail.com> * * T...
false
true
public int update(String itemClicked) { if (itemClicked.equals("..")) { String parent = (new File(currentPath)).getParent(); if (parent == null) { return NO_ACTION; } if (new File(parent) != null) { currentPath = parent; return DIRECTORY; } } if ((new File(currentPath + "/" + itemClick...
public int update(String itemClicked) { String fullPath = currentPath + "/" + itemClicked; if (itemClicked.equals("..")) { String parent = (new File(currentPath)).getParent(); if (parent == null) { return NO_ACTION; } if (new File(parent) != null) { currentPath = parent; return DIRECTORY; ...
diff --git a/src/app/gui/svgComponents/Canvas.java b/src/app/gui/svgComponents/Canvas.java index ee29e55..a863533 100644 --- a/src/app/gui/svgComponents/Canvas.java +++ b/src/app/gui/svgComponents/Canvas.java @@ -1,279 +1,279 @@ package app.gui.svgComponents; import app.gui.MainWindowIWD; import app.gui.searchServ...
true
true
public Canvas(){ super(null,false,false); setDocumentState(JSVGCanvas.ALWAYS_DYNAMIC); //setDocumentState(Canvas.ALWAYS_STATIC); setDoubleBuffered(true); setDoubleBufferedRendering(true); mouseIteraction = new MouseGestures(); setLayout(new BorderLayout()); ...
public Canvas(){ super(null,false,false); setDocumentState(JSVGCanvas.ALWAYS_DYNAMIC); //setDocumentState(Canvas.ALWAYS_STATIC); setDoubleBuffered(true); //setDoubleBufferedRendering(true); mouseIteraction = new MouseGestures(); setLayout(new BorderLayout()); ...
diff --git a/src/java/uk/ac/rhul/cs/cl1/ui/AboutDialog.java b/src/java/uk/ac/rhul/cs/cl1/ui/AboutDialog.java index 1640002..bf80cfa 100644 --- a/src/java/uk/ac/rhul/cs/cl1/ui/AboutDialog.java +++ b/src/java/uk/ac/rhul/cs/cl1/ui/AboutDialog.java @@ -1,100 +1,100 @@ package uk.ac.rhul.cs.cl1.ui; import java.awt.Color...
true
true
public AboutDialog(Frame owner, boolean modal) { super(owner, "About ClusterONE", modal); setResizable(false); JPanel contentPane = new JPanel(); JEditorPane editorPane = new JEditorPane(); editorPane.setEditable(false); editorPane.setEditorKit(new HTMLEditorKit()); editorPane.setBackgr...
public AboutDialog(Frame owner, boolean modal) { super(owner, "About ClusterONE", modal); setResizable(false); JPanel contentPane = new JPanel(); JEditorPane editorPane = new JEditorPane(); editorPane.setEditable(false); editorPane.setEditorKit(new HTMLEditorKit()); editorPane.setBackgr...
diff --git a/lib/stackConfiguration/src/test/java/org/sagebionetworks/SettingsLoaderTest.java b/lib/stackConfiguration/src/test/java/org/sagebionetworks/SettingsLoaderTest.java index 762f104e..46633f7b 100644 --- a/lib/stackConfiguration/src/test/java/org/sagebionetworks/SettingsLoaderTest.java +++ b/lib/stackConfigura...
true
true
public void testLoadSettings() throws IOException, JDOMException{ // Load the settings file Properties settingsProps = SettingsLoader.loadSettingsFile(); assertNotNull(settingsProps); assertNotNull(settingsProps.get("org.sagebionetworks.stack.configuration.url")); assertNotNull(settingsProps.get("org.sagebio...
public void testLoadSettings() throws IOException, JDOMException{ // Load the settings file Properties settingsProps = SettingsLoader.loadSettingsFile(); assertNotNull(settingsProps); // assertNotNull(settingsProps.get("org.sagebionetworks.stack.configuration.url")); // assertNotNull(settingsProps.get("org.sag...
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/ChangesSection.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/ChangesSection.java index 76b26c76c..550a92382 100644 --- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/Change...
false
true
private Composite getEmptyChangesComposite(Composite parent) { Composite composite = new Composite(parent, SWT.NONE); composite.setBackground(getBackgroundColor()); GridLayout layout = new GridLayout(); layout.numColumns = 2; composite.setLayout(layout); GridData data = new GridData(GridData.FILL_BOTH); ...
private Composite getEmptyChangesComposite(Composite parent) { Composite composite = new Composite(parent, SWT.NONE); composite.setBackground(getBackgroundColor()); GridLayout layout = new GridLayout(); layout.numColumns = 2; composite.setLayout(layout); GridData data = new GridData(GridData.FILL_BOTH); ...
diff --git a/src/main/java/com/laytonsmith/abstraction/bukkit/BukkitMCWorld.java b/src/main/java/com/laytonsmith/abstraction/bukkit/BukkitMCWorld.java index b5d48e56..ecac5138 100644 --- a/src/main/java/com/laytonsmith/abstraction/bukkit/BukkitMCWorld.java +++ b/src/main/java/com/laytonsmith/abstraction/bukkit/BukkitMC...
true
true
public CArray spawnMob(MCMobs name, String subClass, int qty, MCLocation l, Target t) { Class mobType = null; CArray ids = new CArray(Target.UNKNOWN); try { switch (name) { case CHICKEN: mobType = Chicken.class; break; ...
public CArray spawnMob(MCMobs name, String subClass, int qty, MCLocation l, Target t) { Class mobType = null; CArray ids = new CArray(Target.UNKNOWN); try { switch (name) { case CHICKEN: mobType = Chicken.class; break; ...
diff --git a/gwt/src/main/java/com/xpn/xwiki/watch/client/ui/dialog/PressReviewMailDialog.java b/gwt/src/main/java/com/xpn/xwiki/watch/client/ui/dialog/PressReviewMailDialog.java index 0c86f41..bbd210b 100644 --- a/gwt/src/main/java/com/xpn/xwiki/watch/client/ui/dialog/PressReviewMailDialog.java +++ b/gwt/src/main/java...
true
true
protected Widget getParametersPanel() { FlowPanel paramsPanel = new FlowPanel(); Label mailSubjectLabel = new Label(); mailSubjectLabel.setStyleName("mailsubject-label"); mailSubjectLabel.setText(app.getTranslation(getDialogTranslationName() + ".mailsubject")); paramsPanel.ad...
protected Widget getParametersPanel() { FlowPanel paramsPanel = new FlowPanel(); Label mailSubjectLabel = new Label(); mailSubjectLabel.setStyleName("mailsubject-label"); mailSubjectLabel.setText(app.getTranslation(getDialogTranslationName() + ".mailsubject")); paramsPanel.ad...
diff --git a/opentaps-1.5/opentaps/dataimport/src/org/opentaps/dataimport/ExcelImportServices.java b/opentaps-1.5/opentaps/dataimport/src/org/opentaps/dataimport/ExcelImportServices.java index 98c6092a..aa49ade4 100644 --- a/opentaps-1.5/opentaps/dataimport/src/org/opentaps/dataimport/ExcelImportServices.java +++ b/ope...
false
true
public void parseFileForDataImport() throws ServiceException, InfrastructureException { // Get the uploaded file File file = getUploadedExcelFile(getUploadedFileName()); // set it up as an Excel workbook POIFSFileSystem fs = null; HSSFWorkbook wb = null; try { // this will auto close the FileInputStre...
public void parseFileForDataImport() throws ServiceException, InfrastructureException { // Get the uploaded file File file = getUploadedExcelFile(getUploadedFileName()); // set it up as an Excel workbook POIFSFileSystem fs = null; HSSFWorkbook wb = null; try { // this will auto close the FileInputStre...
diff --git a/src/instructions/UIG_IO.java b/src/instructions/UIG_IO.java index 5a0a5ce..9950c8d 100644 --- a/src/instructions/UIG_IO.java +++ b/src/instructions/UIG_IO.java @@ -1,236 +1,240 @@ package instructions; import static assemblernator.ErrorReporting.makeError; import assemblernator.AbstractInstruction; i...
true
true
public final boolean check(ErrorHandler hErr, Module module) { boolean isValid = true; //checks for operand combos and assigns OperandType. if(!this.hasOperand("NW")) { isValid = false; hErr.reportError(makeError("instructionMissingOp", this.getOpId(), "NW"), this.lineNum, -1); } else if(this.operands...
public final boolean check(ErrorHandler hErr, Module module) { boolean isValid = true; //checks for operand combos and assigns OperandType. if(!this.hasOperand("NW")) { isValid = false; hErr.reportError(makeError("instructionMissingOp", this.getOpId(), "NW"), this.lineNum, -1); } else if(this.operands...
diff --git a/src/main/java/edu/cmu/lti/oaqa/openqa/hellobioqa/passage/PhaniBioPassageExtractor.java b/src/main/java/edu/cmu/lti/oaqa/openqa/hellobioqa/passage/PhaniBioPassageExtractor.java index 1a31417..2a14761 100644 --- a/src/main/java/edu/cmu/lti/oaqa/openqa/hellobioqa/passage/PhaniBioPassageExtractor.java +++ b/sr...
true
true
protected List<PassageCandidate> extractPassages(String question, List<Keyterm> keyterms, List<RetrievalResult> documents) { List<PassageCandidate> result = new ArrayList<PassageCandidate>(); for (RetrievalResult document : documents) { System.out.println("RetrievalResult: " + document.toSt...
protected List<PassageCandidate> extractPassages(String question, List<Keyterm> keyterms, List<RetrievalResult> documents) { List<PassageCandidate> result = new ArrayList<PassageCandidate>(); for (RetrievalResult document : documents) { System.out.println("RetrievalResult: " + document.toSt...
diff --git a/libraries/javalib/java/io/StreamTokenizer.java b/libraries/javalib/java/io/StreamTokenizer.java index 26226347c..8b09d7df2 100644 --- a/libraries/javalib/java/io/StreamTokenizer.java +++ b/libraries/javalib/java/io/StreamTokenizer.java @@ -1,396 +1,397 @@ /* * Java core library component. * * Copyri...
true
true
private int nextTokenType() throws IOException { int chr = chrRead(); if (chr=='/' && (CComments || CPlusPlusComments)) { /* Check for C/C++ comments */ int next = chrRead(); if (next == '/' && (CPlusPlusComments)) { /* C++ comment */ skipLine(); nextTokenType(); return (ttype); } else if (next...
private int nextTokenType() throws IOException { int chr = chrRead(); if (chr=='/' && (CComments || CPlusPlusComments)) { /* Check for C/C++ comments */ int next = chrRead(); if (next == '/' && (CPlusPlusComments)) { /* C++ comment */ skipLine(); nextTokenType(); return (ttype); } else if (next...
diff --git a/src/jhn/esa/RunESA.java b/src/jhn/esa/RunESA.java index b5d485f..c5208e6 100644 --- a/src/jhn/esa/RunESA.java +++ b/src/jhn/esa/RunESA.java @@ -1,83 +1,83 @@ package jhn.esa; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import cc.mallet.types.InstanceList;...
true
true
public static ESA loadESA(String topicWordIdxName, String datasetName, int minCount) throws FileNotFoundException, ClassNotFoundException, IOException { System.out.print("Loading type-topic counts..."); String ttCountsFilename = jhn.eda.Paths.typeTopicCountsFilename(topicWordIdxName, datasetName, minCount); Type...
public static ESA loadESA(String topicWordIdxName, String datasetName, int minCount) throws FileNotFoundException, ClassNotFoundException, IOException { System.out.print("Loading type-topic counts..."); String ttCountsFilename = jhn.eda.Paths.typeTopicCountsFilename(topicWordIdxName, datasetName, minCount); Type...
diff --git a/maven-project/src/main/java/org/apache/maven/project/builder/ProjectBuilder.java b/maven-project/src/main/java/org/apache/maven/project/builder/ProjectBuilder.java index ef655ce45..b49f8521a 100644 --- a/maven-project/src/main/java/org/apache/maven/project/builder/ProjectBuilder.java +++ b/maven-project/sr...
false
true
public static void interpolateModelProperties(List<ModelProperty> modelProperties, List<InterpolatorProperty> interpolatorProperties, PomClassicDomainModel domainModel) throws IOException...
public static void interpolateModelProperties(List<ModelProperty> modelProperties, List<InterpolatorProperty> interpolatorProperties, PomClassicDomainModel domainModel) throws IOException...
diff --git a/main/src/main/java/com/bloatit/web/components/KudosableAuthorBlock.java b/main/src/main/java/com/bloatit/web/components/KudosableAuthorBlock.java index 92dd72cfa..8379dcad5 100644 --- a/main/src/main/java/com/bloatit/web/components/KudosableAuthorBlock.java +++ b/main/src/main/java/com/bloatit/web/componen...
false
true
public KudosableAuthorBlock(final KudosableInterface kudosable) { super(kudosable); add(new HtmlText(" – ")); // //////////////////// // Popularity final HtmlSpan commentPopularity = new HtmlSpan("kudosable_popularity"); { commentPopularity.addText(tr("...
public KudosableAuthorBlock(final KudosableInterface kudosable) { super(kudosable); add(new HtmlText(" – ")); // //////////////////// // Popularity final HtmlSpan commentPopularity = new HtmlSpan("kudosable_popularity"); { commentPopularity.addText(tr("...
diff --git a/Test.java b/Test.java index 5e34f02..2777c33 100644 --- a/Test.java +++ b/Test.java @@ -1,76 +1,77 @@ import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URL; import java.net.URLConnection; import java.util.logging.ConsoleHandler; import java.util.logging.SimpleFormat...
true
true
public static void main(String[] args) throws Exception { Logger theLogger = Logger.getLogger(Test.class.getName()); theLogger.setUseParentHandlers(false); ConsoleHandler handler = new ConsoleHandler(); handler.setFormatter(new Test()); theLogger.addHandler(handler); try { ...
public static void main(String[] args) throws Exception { System.setProperty("java.net.preferIPv4Stack" , "true"); Logger theLogger = Logger.getLogger(Test.class.getName()); theLogger.setUseParentHandlers(false); ConsoleHandler handler = new ConsoleHandler(); handler.setFormatter(new Tes...
diff --git a/src/mapred/org/apache/hadoop/mapreduce/lib/map/MultithreadedMapper.java b/src/mapred/org/apache/hadoop/mapreduce/lib/map/MultithreadedMapper.java index 2e0d6d993..95530f95a 100644 --- a/src/mapred/org/apache/hadoop/mapreduce/lib/map/MultithreadedMapper.java +++ b/src/mapred/org/apache/hadoop/mapreduce/lib/...
true
true
public void run(Context context) throws IOException, InterruptedException { outer = context; int numberOfThreads = getNumberOfThreads(context); mapClass = getMapperClass(context); if (LOG.isDebugEnabled()) { LOG.debug("Configuring multithread runner to use " + numberOfThreads + ...
public void run(Context context) throws IOException, InterruptedException { outer = context; int numberOfThreads = getNumberOfThreads(context); mapClass = getMapperClass(context); if (LOG.isDebugEnabled()) { LOG.debug("Configuring multithread runner to use " + numberOfThreads + ...
diff --git a/vm/tests/smoke/exception/FinalizeStackTest.java b/vm/tests/smoke/exception/FinalizeStackTest.java index 03f11cc0..3409f1ff 100644 --- a/vm/tests/smoke/exception/FinalizeStackTest.java +++ b/vm/tests/smoke/exception/FinalizeStackTest.java @@ -1,48 +1,47 @@ /* * Licensed to the Apache Software Foundation...
true
true
public static void main(String[] args) { try { new FinalizeStackTest(MAX_DEPTH); System.out.println("FAIL"); } catch (StackOverflowError soe) { System.out.println("PASS : " + soe); } catch (Throwable th) { System.out.println("FAIL"); } ...
public static void main(String[] args) { try { new FinalizeStackTest(MAX_DEPTH); } catch (StackOverflowError soe) { System.out.println("PASS : " + soe); } catch (Throwable th) { System.out.println("FAIL"); } }
diff --git a/com.sap.core.odata.processor.core/src/main/java/com/sap/core/odata/processor/core/jpa/cud/JPAWriteRequest.java b/com.sap.core.odata.processor.core/src/main/java/com/sap/core/odata/processor/core/jpa/cud/JPAWriteRequest.java index e4166ddbd..29f71875e 100644 --- a/com.sap.core.odata.processor.core/src/main/...
true
true
protected HashMap<String, Method> getSetters(Object jpaEntity, EdmStructuralType structuralType, boolean isCreate) throws ODataJPARuntimeException { HashMap<String, Method> setters = new HashMap<String, Method>(); HashMap<String, String> embeddableKey = new HashMap<String, String>(); try { for (String pro...
protected HashMap<String, Method> getSetters(Object jpaEntity, EdmStructuralType structuralType, boolean isCreate) throws ODataJPARuntimeException { HashMap<String, Method> setters = new HashMap<String, Method>(); HashMap<String, String> embeddableKey = new HashMap<String, String>(); try { for (String pro...
diff --git a/src/com/kain/tom/dioe/Update.java b/src/com/kain/tom/dioe/Update.java index 08fef97..9b4b0ce 100644 --- a/src/com/kain/tom/dioe/Update.java +++ b/src/com/kain/tom/dioe/Update.java @@ -1,43 +1,47 @@ package com.kain.tom.dioe; import java.io.IOException; import javax.servlet.ServletException; import ja...
true
true
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String currentTaskId = request.getParameter("task_id"); Task taskToUpdate; try { taskToUpdate = TaskHelper.findTaskByID(Integer .valueOf(currentTaskId)); taskToUpdate.setTaskName(r...
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String currentTaskId = request.getParameter("task_id"); Task taskToUpdate; try { taskToUpdate = TaskHelper.findTaskByID(Integer .valueOf(currentTaskId)); taskToUpdate.setTaskName(r...
diff --git a/src/tconstruct/client/gui/StencilTableGui.java b/src/tconstruct/client/gui/StencilTableGui.java index 3c58a2ae2..63bc1dd69 100644 --- a/src/tconstruct/client/gui/StencilTableGui.java +++ b/src/tconstruct/client/gui/StencilTableGui.java @@ -1,148 +1,148 @@ package tconstruct.client.gui; import java.io.B...
false
true
protected void actionPerformed (GuiButton button) { ItemStack pattern = logic.getStackInSlot(0); if (pattern != null && pattern.getItem() == TContent.blankPattern) { int meta = pattern.getItemDamage(); if (meta == 0) { if (button.id == ...
protected void actionPerformed (GuiButton button) { ItemStack pattern = logic.getStackInSlot(0); if (pattern != null && pattern.getItem() == TContent.blankPattern) { int meta = pattern.getItemDamage(); if (meta == 0) { if (button.id == ...
diff --git a/test/src/com/redhat/ceylon/compiler/java/test/model/ModelLoaderTest.java b/test/src/com/redhat/ceylon/compiler/java/test/model/ModelLoaderTest.java index fa4a78201..d6d399212 100755 --- a/test/src/com/redhat/ceylon/compiler/java/test/model/ModelLoaderTest.java +++ b/test/src/com/redhat/ceylon/compiler/java...
true
true
protected void verifyClassLoading(String ceylon){ // now compile the ceylon decl file CeyloncTaskImpl task = getCompilerTask(ceylon); // get the context to grab the phased units Context context = task.getContext(); Boolean success = task.call(); Assert.asser...
protected void verifyClassLoading(String ceylon){ // now compile the ceylon decl file CeyloncTaskImpl task = getCompilerTask(ceylon); // get the context to grab the phased units Context context = task.getContext(); Boolean success = task.call(); Assert.asser...
diff --git a/src/main/java/org/jasig/portlet/announcements/controller/ApproveAjaxController.java b/src/main/java/org/jasig/portlet/announcements/controller/ApproveAjaxController.java index 32d0868..3375403 100644 --- a/src/main/java/org/jasig/portlet/announcements/controller/ApproveAjaxController.java +++ b/src/main/ja...
true
true
protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception { Long annId = Long.valueOf( request.getParameter("annId") ); Boolean approval = Boolean.valueOf( request.getParameter("approval") ); Announcement ann = announcementService.getAnnouncem...
protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception { Long annId = Long.valueOf( request.getParameter("annId") ); Boolean approval = Boolean.valueOf( request.getParameter("approval") ); Announcement ann = announcementService.getAnnouncem...
diff --git a/WEB-INF/src/edu/wustl/catissuecore/action/SimpleSearchAction.java b/WEB-INF/src/edu/wustl/catissuecore/action/SimpleSearchAction.java index 677d204cd..48c580b11 100644 --- a/WEB-INF/src/edu/wustl/catissuecore/action/SimpleSearchAction.java +++ b/WEB-INF/src/edu/wustl/catissuecore/action/SimpleSearchAction....
true
true
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { SimpleQueryInterfaceForm simpleQueryInterfaceForm = (SimpleQueryInterfaceForm) form; //Get the aliasName. String viewAlia...
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { SimpleQueryInterfaceForm simpleQueryInterfaceForm = (SimpleQueryInterfaceForm) form; //Get the aliasName. String viewAlia...
diff --git a/src/DVN-web/src/edu/harvard/iq/dvn/core/web/servlet/TermsOfUseFilter.java b/src/DVN-web/src/edu/harvard/iq/dvn/core/web/servlet/TermsOfUseFilter.java index 88d1a07e..076ffff0 100644 --- a/src/DVN-web/src/edu/harvard/iq/dvn/core/web/servlet/TermsOfUseFilter.java +++ b/src/DVN-web/src/edu/harvard/iq/dvn/core...
true
true
private boolean checkDownloadTermsOfUse(HttpServletRequest req, HttpServletResponse res) throws java.io.IOException { String fileId = req.getParameter("fileId"); String catId = req.getParameter("catId"); String studyId = req.getParameter("studyId"); String versionNumber = req.getPara...
private boolean checkDownloadTermsOfUse(HttpServletRequest req, HttpServletResponse res) throws java.io.IOException { String fileId = req.getParameter("fileId"); String catId = req.getParameter("catId"); String studyId = req.getParameter("studyId"); String versionNumber = req.getPara...
diff --git a/src/jp/gr/java_conf/neko_daisuki/android/widget/NiceListView.java b/src/jp/gr/java_conf/neko_daisuki/android/widget/NiceListView.java index 6b579da..b0c89a6 100644 --- a/src/jp/gr/java_conf/neko_daisuki/android/widget/NiceListView.java +++ b/src/jp/gr/java_conf/neko_daisuki/android/widget/NiceListView.java...
true
true
private boolean onMotionMove(MotionEvent event) { float y = event.getY(); // The following code suppresses chattering. if (Math.abs(mLastPointerY - y) < 8f) { return super.onTouchEvent(event); } boolean isDown = mLastPointerY < y; mLastPointerY = y; ...
private boolean onMotionMove(MotionEvent event) { float y = event.getY(); // The following code suppresses chattering. if (Math.abs(mLastPointerY - y) < 8f) { return super.onTouchEvent(event); } boolean isDown = mLastPointerY < y; mLastPointerY = y; ...
diff --git a/framework/src/main/java/org/apache/felix/framework/util/manifestparser/ManifestParser.java b/framework/src/main/java/org/apache/felix/framework/util/manifestparser/ManifestParser.java index 9b789a103..4b4934ea7 100644 --- a/framework/src/main/java/org/apache/felix/framework/util/manifestparser/ManifestPars...
true
true
public ManifestParser(Logger logger, Map configMap, Map headerMap) throws BundleException { m_logger = logger; m_configMap = configMap; m_headerMap = headerMap; // Verify that only manifest version 2 is specified. String manifestVersion = (String) m_headerMap.get...
public ManifestParser(Logger logger, Map configMap, Map headerMap) throws BundleException { m_logger = logger; m_configMap = configMap; m_headerMap = headerMap; // Verify that only manifest version 2 is specified. String manifestVersion = (String) m_headerMap.get...
diff --git a/poem/src/main/java/org/melati/poem/TableInfoTable.java b/poem/src/main/java/org/melati/poem/TableInfoTable.java index 42f1acaf7..aac428c3a 100644 --- a/poem/src/main/java/org/melati/poem/TableInfoTable.java +++ b/poem/src/main/java/org/melati/poem/TableInfoTable.java @@ -1,71 +1,72 @@ /* * $Source$ * ...
true
true
protected void postInitialise() { super.postInitialise(); if (info.getDefaultcanwrite() == null) info.setDefaultcanwrite(getDatabase().administerCapability()); if (info.getCancreate() == null) info.setCancreate(getDatabase().administerCapability()); }
protected void postInitialise() { super.postInitialise(); TableInfo info = ((Table)this).info; if (info.getDefaultcanwrite() == null) info.setDefaultcanwrite(getDatabase().administerCapability()); if (info.getCancreate() == null) info.setCancreate(getDatabase().administerCapability()); }...
diff --git a/src/com/android/mms/ui/SearchActivity.java b/src/com/android/mms/ui/SearchActivity.java index 5e0a7ea..e13c087 100644 --- a/src/com/android/mms/ui/SearchActivity.java +++ b/src/com/android/mms/ui/SearchActivity.java @@ -1,312 +1,311 @@ /** * Copyright (c) 2009, Google Inc. * * Licensed under the Apa...
true
true
public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.search_activity); String searchStringParameter = getIntent().getStringExtra(SearchManager.QUERY); if (searchStringParameter == null) { searchStringParameter = getIntent().getStringE...
public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.search_activity); String searchStringParameter = getIntent().getStringExtra(SearchManager.QUERY); if (searchStringParameter == null) { searchStringParameter = getIntent().getStringE...
diff --git a/src/main/java/org/basex/core/Prop.java b/src/main/java/org/basex/core/Prop.java index 6c974b408..44a4a1774 100644 --- a/src/main/java/org/basex/core/Prop.java +++ b/src/main/java/org/basex/core/Prop.java @@ -1,254 +1,257 @@ package org.basex.core; import java.io.File; import java.security.*; import...
false
true
private static String applicationPath() { final ProtectionDomain pd = Prop.class.getProtectionDomain(); if(pd == null) return null; // raw application path final String path = pd.getCodeSource().getLocation().getPath(); // decode path; URLDecode returns wrong results final TokenBuilder tb = ne...
private static String applicationPath() { final ProtectionDomain pd = Prop.class.getProtectionDomain(); if(pd == null) return null; // code source (may be null) final CodeSource cs = pd.getCodeSource(); if(cs == null) return null; // raw application path final String path = cs.getLocation(...
diff --git a/src/org/apache/xerces/jaxp/SAXParserImpl.java b/src/org/apache/xerces/jaxp/SAXParserImpl.java index a8c7d477..ec746e45 100644 --- a/src/org/apache/xerces/jaxp/SAXParserImpl.java +++ b/src/org/apache/xerces/jaxp/SAXParserImpl.java @@ -1,198 +1,199 @@ /* * $Id$ * * The Apache Software License, Version...
true
true
SAXParserImpl(SAXParserFactory spf, Hashtable features) throws SAXException { xmlReader = XMLReaderFactory.createXMLReader(DEFAULT_PARSER_NAME); // Validation validating = spf.isValidating(); String validation = "http://xml.org/sax/features/validation"; // If va...
SAXParserImpl(SAXParserFactory spf, Hashtable features) throws SAXException { xmlReader = XMLReaderFactory.createXMLReader(DEFAULT_PARSER_NAME); // Validation validating = spf.isValidating(); String validation = "http://xml.org/sax/features/validation"; // If va...
diff --git a/src/org/apache/xerces/validators/schema/TraverseSchema.java b/src/org/apache/xerces/validators/schema/TraverseSchema.java index e6c9c96ee..b963f14c2 100644 --- a/src/org/apache/xerces/validators/schema/TraverseSchema.java +++ b/src/org/apache/xerces/validators/schema/TraverseSchema.java @@ -1,3725 +1,3725 ...
true
true
private int traverseComplexTypeDecl( Element complexTypeDecl ) throws Exception{ int complexTypeAbstract = fStringPool.addSymbol( complexTypeDecl.getAttribute( SchemaSymbols.ATT_ABSTRACT )); String isAbstract = complexTypeDecl.getAttribute( S...
private int traverseComplexTypeDecl( Element complexTypeDecl ) throws Exception{ int complexTypeAbstract = fStringPool.addSymbol( complexTypeDecl.getAttribute( SchemaSymbols.ATT_ABSTRACT )); String isAbstract = complexTypeDecl.getAttribute( S...
diff --git a/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/uicommon/FrontendFailureEventListener.java b/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/uicommon/FrontendFailureEventListener.java index ebe2f45f..0b260a66 100644 --- a/frontend/webadmin/modules...
true
true
private Map<String, Set<String>> getDescription2MsgMap(List<Message> msgList) { Map<String, Set<String>> desc2Msgs = new HashMap<String, Set<String>>(); for (Message msg : msgList) { String desc = msg.getDescription(); if (desc == null) { desc = ""; ...
private Map<String, Set<String>> getDescription2MsgMap(List<Message> msgList) { Map<String, Set<String>> desc2Msgs = new HashMap<String, Set<String>>(); for (Message msg : msgList) { String desc = msg.getDescription(); if (desc == null) { desc = ""; ...
diff --git a/src/ClickyCanvas.java b/src/ClickyCanvas.java index 5987823..e36d1bd 100644 --- a/src/ClickyCanvas.java +++ b/src/ClickyCanvas.java @@ -1,263 +1,263 @@ import java.awt.Canvas; import java.awt.Color; import java.awt.Dimension; import java.awt.Frame; import java.awt.Graphics; import java.awt.Toolkit; ...
false
true
public void paint(Graphics visual) { ArrayList<Integer> func = new ArrayList<Integer>(); ArrayList<Integer> coordinates = new ArrayList<Integer>(); ArrayList<Integer> triCoordinates = new ArrayList<Integer>(); int[] triX = new int[3], triY = new int[3]; // keep track of coordinates of e...
public void paint(Graphics visual) { ArrayList<Integer> func = new ArrayList<Integer>(); ArrayList<Integer> coordinates = new ArrayList<Integer>(); ArrayList<Integer> triCoordinates = new ArrayList<Integer>(); int[] triX = new int[3], triY = new int[3]; // keep track of coordinates of e...
diff --git a/src/maze/gui/mazeeditor/EditableMazeView.java b/src/maze/gui/mazeeditor/EditableMazeView.java index f11c378..0c4d14f 100644 --- a/src/maze/gui/mazeeditor/EditableMazeView.java +++ b/src/maze/gui/mazeeditor/EditableMazeView.java @@ -1,150 +1,144 @@ /* * To change this template, choose Tools | Templates ...
false
true
public void applyTemplate(boolean setWall) { TemplatePeg[] tp = mCurrentTemplate.getCenterPegs(); Point[] cp = mCurrentTemplate.getCenterPoints(getCellSize()); Vector<MazeWall> walls = new Vector<MazeWall>(); TreeSet<TemplatePeg> applied = new TreeSet<TemplatePeg>(); for (int i = 0; ...
public void applyTemplate(boolean setWall) { TemplatePeg[] tp = mCurrentTemplate.getCenterPegs(); Point[] cp = mCurrentTemplate.getCenterPoints(getCellSize()); Vector<MazeWall> walls = new Vector<MazeWall>(); TreeSet<TemplatePeg> applied = new TreeSet<TemplatePeg>(); for (int i = 0; ...
diff --git a/src/uk/org/whoami/authme/datasource/MySQLDataSource.java b/src/uk/org/whoami/authme/datasource/MySQLDataSource.java index 8d53358..f52cc04 100644 --- a/src/uk/org/whoami/authme/datasource/MySQLDataSource.java +++ b/src/uk/org/whoami/authme/datasource/MySQLDataSource.java @@ -1,283 +1,283 @@ /* * Copyrig...
false
true
private synchronized void setup() throws SQLException { Statement st = null; ResultSet rs = null; try { st = con.createStatement(); st.executeUpdate("CREATE TABLE IF NOT EXISTS " + tableName + " (" + "id INTEGER AUTO_INCREMENT," ...
private synchronized void setup() throws SQLException { Statement st = null; ResultSet rs = null; try { st = con.createStatement(); st.executeUpdate("CREATE TABLE IF NOT EXISTS " + tableName + " (" + "id INTEGER AUTO_INCREMENT," ...
diff --git a/src/com/redhat/ceylon/ceylondoc/Main.java b/src/com/redhat/ceylon/ceylondoc/Main.java index 78933498a..7c176b8d6 100644 --- a/src/com/redhat/ceylon/ceylondoc/Main.java +++ b/src/com/redhat/ceylon/ceylondoc/Main.java @@ -1,36 +1,37 @@ package com.redhat.ceylon.ceylondoc; import java.io.File; import jav...
true
true
public static void main(String[] args) throws IOException{ String destDir = null; String srcDir = null; for(int i=0;i<args.length;i++){ String arg = args[i]; if("-d".equals(arg)){ destDir = args[++i]; }else if("-sourcepath".equals(...
public static void main(String[] args) throws IOException{ String destDir = null; String srcDir = null; for(int i=0;i<args.length;i++){ String arg = args[i]; if("-d".equals(arg)){ destDir = args[++i]; }else if("-sourcepath".equals(...
diff --git a/nuxeo-theme-core/src/main/java/org/nuxeo/theme/protocol/nxtheme/Connection.java b/nuxeo-theme-core/src/main/java/org/nuxeo/theme/protocol/nxtheme/Connection.java index a959355..25aa509 100644 --- a/nuxeo-theme-core/src/main/java/org/nuxeo/theme/protocol/nxtheme/Connection.java +++ b/nuxeo-theme-core/src/ma...
true
true
public InputStream getInputStream() throws IOException { Element rendered = null; boolean cache = true; ThemeManager themeManager = Manager.getThemeManager(); // render a single element if (host.equals("element")) { rendered = ThemeManager.getElementByUrl(url);...
public InputStream getInputStream() throws IOException { Element rendered = null; boolean cache = true; ThemeManager themeManager = Manager.getThemeManager(); // render a single element if (host.equals("element")) { rendered = ThemeManager.getElementByUrl(url);...
diff --git a/squeal/task/UseSpin.java b/squeal/task/UseSpin.java index a0c1744..c3e63cb 100644 --- a/squeal/task/UseSpin.java +++ b/squeal/task/UseSpin.java @@ -1,314 +1,314 @@ package squeal.task; import org.powerbot.concurrent.strategy.Strategy; import org.powerbot.game.api.methods.Widgets; import org.powerbot....
true
true
public void run() { if(Widgets.get(1139, 2).isOnScreen()) { if(Widgets.get(1139, 6).getText().equals("0") && !Widgets.get(1252, 3).isOnScreen()) { if(Widgets.get(548, 160).click(true) && !Widgets.get(1322, 8).isOnScreen()) { Time.sleep(100, 200); //We will set the client to n...
public void run() { if(Widgets.get(1139, 2).isOnScreen()) { if(Widgets.get(1139, 6).getText().equals("0") && !Widgets.get(1252, 3).isOnScreen()) { if(Widgets.get(548, 160).click(true) && !Widgets.get(1322, 8).isOnScreen()) { Time.sleep(100, 200); //We will set the client to n...
diff --git a/src/java/com/eviware/soapui/impl/wsdl/submit/transports/http/HTMLPageSourceDownloader.java b/src/java/com/eviware/soapui/impl/wsdl/submit/transports/http/HTMLPageSourceDownloader.java index f45e6d86b..4aab122d4 100644 --- a/src/java/com/eviware/soapui/impl/wsdl/submit/transports/http/HTMLPageSourceDownload...
true
true
protected List<Attachment> downloadCssAndImages( String endpoint, HttpRequest request ) throws FailingHttpStatusCodeException, MalformedURLException, IOException { HtmlPage htmlPage = client.getPage( endpoint ); String xPathExpression = "//*[name() = 'img' or name() = 'link' and @type = 'text/css']"; List<?>...
protected List<Attachment> downloadCssAndImages( String endpoint, HttpRequest request ) throws FailingHttpStatusCodeException, MalformedURLException, IOException { HtmlPage htmlPage = client.getPage( endpoint ); String xPathExpression = "//*[name() = 'img' or name() = 'link' and @type = 'text/css']"; List<?>...
diff --git a/components/bio-formats/src/loci/formats/in/MIASReader.java b/components/bio-formats/src/loci/formats/in/MIASReader.java index 85cd4d31f..0b76b4e7a 100644 --- a/components/bio-formats/src/loci/formats/in/MIASReader.java +++ b/components/bio-formats/src/loci/formats/in/MIASReader.java @@ -1,1000 +1,1000 @@ ...
true
true
protected void initFile(String id) throws FormatException, IOException { debug("MIASReader.initFile(" + id + ")"); super.initFile(id); // TODO : initFile currently accepts a constituent TIFF file. // Consider allowing the top level experiment directory to be passed in plateDirs = new Vector<Stri...
protected void initFile(String id) throws FormatException, IOException { debug("MIASReader.initFile(" + id + ")"); super.initFile(id); // TODO : initFile currently accepts a constituent TIFF file. // Consider allowing the top level experiment directory to be passed in plateDirs = new Vector<Stri...
diff --git a/bundles/org.eclipse.test.performance.ui/src/org/eclipse/test/internal/performance/results/ui/PerformanceResultsPreferencePage.java b/bundles/org.eclipse.test.performance.ui/src/org/eclipse/test/internal/performance/results/ui/PerformanceResultsPreferencePage.java index 8be0e47..d2bd90e 100644 --- a/bundles...
true
true
public void modifyText(ModifyEvent event) { // Add default dimension to results if necessary if (event.getSource() == this.defaultDimensionCombo) { String[] resultsDimensions = this.resultsDimensionsList.getSelection(); int length = resultsDimensions.length; String defaultDimension = this.defaultDimensionCombo...
public void modifyText(ModifyEvent event) { // Add default dimension to results if necessary if (event.getSource() == this.defaultDimensionCombo) { String[] resultsDimensions = this.resultsDimensionsList.getSelection(); int length = resultsDimensions.length; String defaultDimension = this.defaultDimensionCombo...
diff --git a/Model/src/java/fr/cg95/cvq/dao/users/hibernate/IndividualDAO.java b/Model/src/java/fr/cg95/cvq/dao/users/hibernate/IndividualDAO.java index 9701b2e49..eaf790f12 100644 --- a/Model/src/java/fr/cg95/cvq/dao/users/hibernate/IndividualDAO.java +++ b/Model/src/java/fr/cg95/cvq/dao/users/hibernate/IndividualDAO....
true
true
protected StringBuffer buildStatement(Set<Critere> criterias,List<Type> typeList, List<Object> objectList,String prefix) { StringBuffer sb = new StringBuffer(); sb.append(prefix != null ? prefix : "") .append("from Individual as individual left...
protected StringBuffer buildStatement(Set<Critere> criterias,List<Type> typeList, List<Object> objectList,String prefix) { StringBuffer sb = new StringBuffer(); sb.append(prefix != null ? prefix : "") .append("from Individual as individual left...
diff --git a/src/com/itmill/toolkit/terminal/gwt/server/CommunicationManager.java b/src/com/itmill/toolkit/terminal/gwt/server/CommunicationManager.java index 281ee45a2..91dd5c10e 100644 --- a/src/com/itmill/toolkit/terminal/gwt/server/CommunicationManager.java +++ b/src/com/itmill/toolkit/terminal/gwt/server/Communica...
true
true
public void handleUidlRequest(HttpServletRequest request, HttpServletResponse response, ApplicationServlet applicationServlet) throws IOException { // repaint requested or session has timed out and new one is created boolean repaintAll = (request.getParameter(GET_PARAM_REPAI...
public void handleUidlRequest(HttpServletRequest request, HttpServletResponse response, ApplicationServlet applicationServlet) throws IOException { // repaint requested or session has timed out and new one is created boolean repaintAll = (request.getParameter(GET_PARAM_REPAI...