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/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/TextField.java b/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/TextField.java index 1ed79fb75..55dbc172c 100644 --- a/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/TextField.java +++ b/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/TextField.java @@ -1,890 +1,889 @@ /*****...
true
true
private void initialize () { addListener(inputListener = new ClickListener() { public void clicked (InputEvent event, float x, float y) { if (getTapCount() > 1) setSelection(0, text.length()); } public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { if (!super.touc...
private void initialize () { addListener(inputListener = new ClickListener() { public void clicked (InputEvent event, float x, float y) { if (getTapCount() > 1) setSelection(0, text.length()); } public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { if (!super.touc...
diff --git a/src/eu/nerdz/api/NewTrial.java b/src/eu/nerdz/api/NewTrial.java index 554ebe9..7048ff5 100644 --- a/src/eu/nerdz/api/NewTrial.java +++ b/src/eu/nerdz/api/NewTrial.java @@ -1,33 +1,33 @@ package eu.nerdz.api; import eu.nerdz.api.impl.reverse.ReverseMessenger; public class NewTrial { public sta...
true
true
public static void main(String[] args) { try { Messenger messenger = new ReverseMessenger("", "22.alex"); ConversationHandler conversationHandler = messenger.getConversationHandler(); for (Conversation conversation : conversationHandler.getConversations()) { ...
public static void main(String[] args) { try { Messenger messenger = new ReverseMessenger("AlexZ", ""); ConversationHandler conversationHandler = messenger.getConversationHandler(); for (Conversation conversation : conversationHandler.getConversations()) { ...
diff --git a/src/main/java/com/xebialabs/overthere/ssh/SshScpConnection.java b/src/main/java/com/xebialabs/overthere/ssh/SshScpConnection.java index 2db03cf..0086a00 100644 --- a/src/main/java/com/xebialabs/overthere/ssh/SshScpConnection.java +++ b/src/main/java/com/xebialabs/overthere/ssh/SshScpConnection.java @@ -1,5...
true
true
public SshScpConnection(String type, ConnectionOptions options, AddressPortMapper mapper) { super(type, options, mapper); checkArgument(os != WINDOWS, "Cannot start a " + SSH_PROTOCOL + ":%s connection to a Windows operating system", sshConnectionType.toString() .toLowerCase()); }
public SshScpConnection(String type, ConnectionOptions options, AddressPortMapper mapper) { super(type, options, mapper); checkArgument(os != WINDOWS, "Cannot start a " + SSH_PROTOCOL + ":%s connection to a Windows operating system", sshConnectionType.toString().toLowerCase()); }
diff --git a/spi/src/main/java/com/netbout/spi/cpa/HelpTarget.java b/spi/src/main/java/com/netbout/spi/cpa/HelpTarget.java index 5391e00d3..4e0c9989a 100644 --- a/spi/src/main/java/com/netbout/spi/cpa/HelpTarget.java +++ b/spi/src/main/java/com/netbout/spi/cpa/HelpTarget.java @@ -1,115 +1,127 @@ /** * Copyright (c) ...
false
true
public void execute(final Token token) { Object result; try { result = this.method.invoke( this.farm, this.converted( token, this.method.getParameterTypes() ) ); } catch (IllegalAc...
public void execute(final Token token) { Object result; try { result = this.method.invoke( this.farm, this.converted( token, this.method.getParameterTypes() ) ); } catch (IllegalAc...
diff --git a/src/com/orangeleap/tangerine/service/payments/OrbitalPaymentGateway.java b/src/com/orangeleap/tangerine/service/payments/OrbitalPaymentGateway.java index af032084..049e807a 100644 --- a/src/com/orangeleap/tangerine/service/payments/OrbitalPaymentGateway.java +++ b/src/com/orangeleap/tangerine/service/payme...
true
true
public void AuthorizeAndCapture(Gift gift) { RequestIF request = null; String month; String year; if (configurator == null) { Initialize(); } try { // // make sure the site information is loaded SiteService ss = (SiteService) applicationContext.getBean("siteService"); gift.g...
public void AuthorizeAndCapture(Gift gift) { RequestIF request = null; String month; String year; if (configurator == null) { Initialize(); } try { // // make sure the site information is loaded SiteService ss = (SiteService) applicationContext.getBean("siteService"); gift.g...
diff --git a/tika-grepper/src/main/java/flipdroid/grepper/extractor/pipe/ImageFilter.java b/tika-grepper/src/main/java/flipdroid/grepper/extractor/pipe/ImageFilter.java index 812f5dd..a2c3f75 100644 --- a/tika-grepper/src/main/java/flipdroid/grepper/extractor/pipe/ImageFilter.java +++ b/tika-grepper/src/main/java/flipd...
false
true
private void filterImage(URLAbstract urlAbstract) { String htmlContent = new String(urlAbstract.getRawContent(), urlAbstract.getCharset()); String baseURL = ""; int pos = htmlContent.indexOf("<base href=\""); if (pos != -1) { pos += "<base href=\"".length(); i...
private void filterImage(URLAbstract urlAbstract) { String htmlContent = new String(urlAbstract.getRawContent(), urlAbstract.getCharset()); String baseURL = ""; int pos = htmlContent.indexOf("<base href=\""); if (pos != -1) { pos += "<base href=\"".length(); i...
diff --git a/library/src/ros/android/activity/RosActivity.java b/library/src/ros/android/activity/RosActivity.java index c3b0cf5..72b3a98 100644 --- a/library/src/ros/android/activity/RosActivity.java +++ b/library/src/ros/android/activity/RosActivity.java @@ -1,550 +1,554 @@ /* * Software License Agreement (BSD Lic...
true
true
protected void onResume() { doShutdown = false; doTerminate = false; super.onResume(); if (node == null) { masterChooser.loadCurrentRobot(); if (masterChooser.hasRobot()) { //A robot is in the current robot YAML file final RobotId id = masterChooser.getCurrentRobot().getRobotId();...
protected void onResume() { doShutdown = false; doTerminate = false; super.onResume(); if (node == null) { masterChooser.loadCurrentRobot(); if (masterChooser.hasRobot()) { //A robot is in the current robot YAML file final RobotId id = masterChooser.getCurrentRobot().getRobotId();...
diff --git a/src/uk/ac/warwick/dcs/boss/model/dao/impl/MySQLEntityDAO.java b/src/uk/ac/warwick/dcs/boss/model/dao/impl/MySQLEntityDAO.java index 7e9cbfd..b11bf8e 100644 --- a/src/uk/ac/warwick/dcs/boss/model/dao/impl/MySQLEntityDAO.java +++ b/src/uk/ac/warwick/dcs/boss/model/dao/impl/MySQLEntityDAO.java @@ -1,460 +1,45...
false
true
private Collection<E> performSelectForFind(E entity, boolean useLike) throws DAOException { // Build the dynamic parts of the query. StringBuffer namesBuffer = new StringBuffer("id"); for (String s : getDatabaseFieldNames()) { namesBuffer.append(","); namesBuffer.append(s); } Collection<String> fi...
private Collection<E> performSelectForFind(E entity, boolean useLike) throws DAOException { // Build the dynamic parts of the query. StringBuffer namesBuffer = new StringBuffer("id"); for (String s : getDatabaseFieldNames()) { namesBuffer.append(","); namesBuffer.append(s); } Collection<String> fi...
diff --git a/farrago/src/com/lucidera/farrago/namespace/flatfile/FlatFileBCPFile.java b/farrago/src/com/lucidera/farrago/namespace/flatfile/FlatFileBCPFile.java index 6cf1e8445..eb97fc621 100644 --- a/farrago/src/com/lucidera/farrago/namespace/flatfile/FlatFileBCPFile.java +++ b/farrago/src/com/lucidera/farrago/namespa...
false
true
public boolean parse() { FileReader ctrlReader; LineNumberReader reader; int columnCount = 0; int index = 0; try { ctrlReader = new FileReader(fileName); reader = new LineNumberReader(ctrlReader); } catch (FileNotFoundException fe) { ...
public boolean parse() { FileReader ctrlReader; LineNumberReader reader; int columnCount = 0; int index = 0; try { ctrlReader = new FileReader(fileName); reader = new LineNumberReader(ctrlReader); } catch (FileNotFoundException fe) { ...
diff --git a/src/com/akjava/gwt/webappmaker/client/ServletDataDto.java b/src/com/akjava/gwt/webappmaker/client/ServletDataDto.java index 326a6c2..a6af404 100644 --- a/src/com/akjava/gwt/webappmaker/client/ServletDataDto.java +++ b/src/com/akjava/gwt/webappmaker/client/ServletDataDto.java @@ -1,515 +1,515 @@ package co...
false
true
public List<FileNameAndText> apply(ServletData data) { Map<String,String> map=new HashMap<String,String>(); List<FileNameAndText> files=new ArrayList<FileNameAndText>(); String type=data.getServletType(); FileNameAndText file=new FileNameAndText(); String head=""; if(!data.getLastPackage().equals("ma...
public List<FileNameAndText> apply(ServletData data) { Map<String,String> map=new HashMap<String,String>(); List<FileNameAndText> files=new ArrayList<FileNameAndText>(); String type=data.getServletType(); FileNameAndText file=new FileNameAndText(); String head=""; if(!data.getLastPackage().equals("ma...
diff --git a/src/main/java/nl/mindef/c2sc/nbs/olsr/pud/uplink/server/distributor/impl/DistributorImpl.java b/src/main/java/nl/mindef/c2sc/nbs/olsr/pud/uplink/server/distributor/impl/DistributorImpl.java index 533a093..8318fd1 100644 --- a/src/main/java/nl/mindef/c2sc/nbs/olsr/pud/uplink/server/distributor/impl/Distribu...
true
true
private void distribute() { while (signaledUpdates.getAndSet(false)) { long currentTime = System.currentTimeMillis(); if (logger.isDebugEnabled()) { logger.debug("*** Have to distribute <" + lastDistributionTime + ", " + currentTime + "]"); } /* * Distribute to other relay servers */ if...
private void distribute() { while (signaledUpdates.getAndSet(false)) { long currentTime = System.currentTimeMillis(); if (logger.isDebugEnabled()) { logger.debug("*** Have to distribute <" + lastDistributionTime + ", " + currentTime + "]"); } /* * Distribute to other relay servers */ if...
diff --git a/core/src/test/java/brooklyn/location/geo/HostGeoLookupIntegrationTest.java b/core/src/test/java/brooklyn/location/geo/HostGeoLookupIntegrationTest.java index f1065de12..cc9662ec4 100644 --- a/core/src/test/java/brooklyn/location/geo/HostGeoLookupIntegrationTest.java +++ b/core/src/test/java/brooklyn/locati...
false
true
public void testMaxmindLookup() throws Exception { HostGeoInfo geo = new MaxMindHostGeoLookup().getHostGeoInfo(InetAddress.getByName("maxmind.com")); log.info("maxmind.com at "+geo); // used to be Washington; now Dalas - in case this is temporary failover will accept either! // ...
public void testMaxmindLookup() throws Exception { HostGeoInfo geo = new MaxMindHostGeoLookup().getHostGeoInfo(InetAddress.getByName("maxmind.com")); log.info("maxmind.com at "+geo); // used to be Washington; now Dalas - in case this is temporary failover will accept either! ...
diff --git a/atinject-integration/src/main/java/org/atinject/integration/IntegrationBootstrap.java b/atinject-integration/src/main/java/org/atinject/integration/IntegrationBootstrap.java index 41f841a..99f928b 100644 --- a/atinject-integration/src/main/java/org/atinject/integration/IntegrationBootstrap.java +++ b/atinj...
true
true
public static void main(String[] args) throws Exception { System.setProperty("user.timezone", "GMT"); System.setProperty("Dinfinispan.unsafe.allow_jdk8_chm", "true"); Thread shutdownThread = new Thread(new Runnable() { @Override public void run() ...
public static void main(String[] args) throws Exception { System.setProperty("user.timezone", "GMT"); System.setProperty("infinispan.unsafe.allow_jdk8_chm", "true"); Thread shutdownThread = new Thread(new Runnable() { @Override public void run() ...
diff --git a/src/replicatorg/app/Base.java b/src/replicatorg/app/Base.java index da0b1d87..d17b0432 100644 --- a/src/replicatorg/app/Base.java +++ b/src/replicatorg/app/Base.java @@ -1,916 +1,920 @@ /* Base.java Main class for the app. Part of the ReplicatorG project - http://www.replicat.org Copyright (c)...
true
true
static public void main(String args[]) { // make sure that this is running on java 1.5 or better. if (Base.javaVersion < 1.5f) { Base.quitWithError("Need to install Java 1.5", "This version of ReplicatorG requires\n" + "Java 1.5 or later to run properly.\n" + "Please visit java.com to upgrad...
static public void main(String args[]) { // make sure that this is running on java 1.5 or better. if (Base.javaVersion < 1.5f) { Base.quitWithError("Need to install Java 1.5", "This version of ReplicatorG requires\n" + "Java 1.5 or later to run properly.\n" + "Please visit java.com to upgrad...
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/actions/refactor/rename/AcceleoRenameVariableRefactoring.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/actions/refactor/rename/AcceleoRenameVariableRefactoring.ja...
true
true
private void putChangesOfTheCurrentFile() { TextFileChange tfc = null; MultiTextEdit edit = null; IFile file = null; for (Match match : this.fVariable.getVariableMatches()) { final ReferenceEntry entry = (ReferenceEntry)match.getElement(); if (entry.getTemplateFile().getName().equals(fileName)) { fil...
private void putChangesOfTheCurrentFile() { TextFileChange tfc = null; MultiTextEdit edit = null; IFile file = null; for (Match match : this.fVariable.getVariableMatches()) { final ReferenceEntry entry = (ReferenceEntry)match.getElement(); if (entry.getTemplateFile().getName().equals(fileName)) { fil...
diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/java/rule/comments/AbstractCommentRule.java b/pmd/src/main/java/net/sourceforge/pmd/lang/java/rule/comments/AbstractCommentRule.java index a31985b9e..a8e3a5f9d 100644 --- a/pmd/src/main/java/net/sourceforge/pmd/lang/java/rule/comments/AbstractCommentRule.java +++ ...
true
true
protected void assignCommentsToDeclarations(ASTCompilationUnit cUnit) { SortedMap<Integer, Node> itemsByLineNumber = orderedCommentsAndDeclarations(cUnit); FormalComment lastComment = null; AbstractJavaAccessNode lastNode = null; for (Entry<Integer, Node> entry : itemsByLineNumber.entrySet()) { Node value ...
protected void assignCommentsToDeclarations(ASTCompilationUnit cUnit) { SortedMap<Integer, Node> itemsByLineNumber = orderedCommentsAndDeclarations(cUnit); FormalComment lastComment = null; AbstractJavaAccessNode lastNode = null; for (Entry<Integer, Node> entry : itemsByLineNumber.entrySet()) { Node value ...
diff --git a/org.emftext.sdk.codegen/src/org/emftext/sdk/codegen/generators/ui/EObjectSelectionGenerator.java b/org.emftext.sdk.codegen/src/org/emftext/sdk/codegen/generators/ui/EObjectSelectionGenerator.java index 8374d5590..3559d0d04 100644 --- a/org.emftext.sdk.codegen/src/org/emftext/sdk/codegen/generators/ui/EObje...
true
true
private void addIteratorMethod( org.emftext.sdk.codegen.composites.StringComposite sc) { sc.add("public " + ITERATOR + "<?> iterator() {"); sc.add("return new " + ITERATOR + "<?>() {"); sc.addLineBreak(); sc.add("private boolean hasNext = true;"); sc.addLineBreak(); sc.add("public boolean hasNext() {");...
private void addIteratorMethod( org.emftext.sdk.codegen.composites.StringComposite sc) { sc.add("public " + ITERATOR + "<?> iterator() {"); sc.add("return new " + ITERATOR + "<" + E_OBJECT + ">() {"); sc.addLineBreak(); sc.add("private boolean hasNext = true;"); sc.addLineBreak(); sc.add("public boolean...
diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/JavadocMethodCheck.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/JavadocMethodCheck.java index eb670e8b3..83097aa31 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/JavadocMethodCheck.java +++ b/src/checkstyle/com/puppyc...
true
true
private List getMethodTags(String[] aLines, int aLastLineNo) { final List tags = new ArrayList(); int currentLine = aLastLineNo - aLines.length; for (int i = 0; i < aLines.length; i++) { currentLine++; if (MATCH_JAVADOC_ARG.match(aLines[i])) { tags...
private List getMethodTags(String[] aLines, int aLastLineNo) { final List tags = new ArrayList(); int currentLine = aLastLineNo - aLines.length; for (int i = 0; i < aLines.length; i++) { currentLine++; if (MATCH_JAVADOC_ARG.match(aLines[i])) { tags...
diff --git a/core/src/main/java/hudson/ProxyConfiguration.java b/core/src/main/java/hudson/ProxyConfiguration.java index ea5671f5d..0752f8046 100644 --- a/core/src/main/java/hudson/ProxyConfiguration.java +++ b/core/src/main/java/hudson/ProxyConfiguration.java @@ -1,136 +1,137 @@ /* * The MIT License * * Copyri...
true
true
public static URLConnection open(URL url) throws IOException { ProxyConfiguration p = Hudson.getInstance().proxy; if(p==null) return url.openConnection(); URLConnection con = url.openConnection(p.createProxy()); if(p.getUserName()!=null) { // Add an authenticato...
public static URLConnection open(URL url) throws IOException { Hudson h = Hudson.getInstance(); // this code might run on slaves ProxyConfiguration p = h!=null ? h.proxy : null; if(p==null) return url.openConnection(); URLConnection con = url.openConnection(p.createProxy...
diff --git a/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/PlanGenerator.java b/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/PlanGenerator.java index fd395a710..1b8ac5db7 100644 --- a/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/PlanGenerator.java +++ ...
false
true
private Itinerary generateItinerary(GraphPath path, boolean showIntermediateStops) { Itinerary itinerary = makeEmptyItinerary(path); Leg leg = null; CoordinateArrayListSequence coordinates = new CoordinateArrayListSequence(); double previousElevation = Double.MAX_VALUE; int ...
private Itinerary generateItinerary(GraphPath path, boolean showIntermediateStops) { Itinerary itinerary = makeEmptyItinerary(path); Leg leg = null; CoordinateArrayListSequence coordinates = new CoordinateArrayListSequence(); double previousElevation = Double.MAX_VALUE; int ...
diff --git a/pn-dispatcher/src/main/java/info/papyri/dispatch/FileUtils.java b/pn-dispatcher/src/main/java/info/papyri/dispatch/FileUtils.java index ada91fdb..0bec6de2 100644 --- a/pn-dispatcher/src/main/java/info/papyri/dispatch/FileUtils.java +++ b/pn-dispatcher/src/main/java/info/papyri/dispatch/FileUtils.java @@ -1...
false
true
public List<String> highlightMatches(String query, String t) { List<String> result = new ArrayList<String>(); Pattern[] patterns = getPatterns(query); String text = t.toString().replaceAll(exclude, ""); for (Pattern pattern : patterns) { Matcher m = pattern.matcher(text); int prevEnd = tex...
public List<String> highlightMatches(String query, String t) { List<String> result = new ArrayList<String>(); Pattern[] patterns = getPatterns(query); String text = t.toString().replaceAll(exclude, ""); for (Pattern pattern : patterns) { Matcher m = pattern.matcher(text); int prevEnd = 0; ...
diff --git a/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentWebService.java b/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentWebService.java index 7acd31c35..aa769edb7 100644 --- a/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentWebService.java +++ b/axis2/src/main/java/org/apache/ode...
true
true
public void invokeBusinessLogic(MessageContext messageContext) throws AxisFault { String operation = messageContext.getAxisOperation().getName().getLocalPart(); SOAPFactory factory = getSOAPFactory(messageContext); boolean unknown = false; try { i...
public void invokeBusinessLogic(MessageContext messageContext) throws AxisFault { String operation = messageContext.getAxisOperation().getName().getLocalPart(); SOAPFactory factory = getSOAPFactory(messageContext); boolean unknown = false; try { i...
diff --git a/db-impl/impl/src/java/org/sakaiproject/db/impl/BasicSqlService.java b/db-impl/impl/src/java/org/sakaiproject/db/impl/BasicSqlService.java index 20097b0..4dcbca1 100644 --- a/db-impl/impl/src/java/org/sakaiproject/db/impl/BasicSqlService.java +++ b/db-impl/impl/src/java/org/sakaiproject/db/impl/BasicSqlServ...
false
true
protected boolean dbWrite(String sql, Object[] fields, String lastField, Connection callerConnection, boolean failQuiet) { if (LOG.isDebugEnabled()) { LOG.debug("dbWrite(String " + sql + ", Object[] " + fields + ", String " + lastField + ", Connection " + callerConnection + ", boolean " + failQuiet + ")")...
protected boolean dbWrite(String sql, Object[] fields, String lastField, Connection callerConnection, boolean failQuiet) { if (LOG.isDebugEnabled()) { LOG.debug("dbWrite(String " + sql + ", Object[] " + fields + ", String " + lastField + ", Connection " + callerConnection + ", boolean " + failQuiet + ")")...
diff --git a/src/dfh/grammar/Compiler.java b/src/dfh/grammar/Compiler.java index 8742067..1f47f1f 100644 --- a/src/dfh/grammar/Compiler.java +++ b/src/dfh/grammar/Compiler.java @@ -1,1055 +1,1055 @@ /* * dfh.grammar -- a recursive descent parser library for Java * * Copyright (C) 2012 David F. Houghton * *...
true
true
Compiler(LineReader reader, Map<String, Rule> precompiledRules) throws GrammarException { if (precompiledRules == null) precompiledRules = Collections.emptyMap(); else { // clone rules to protect them from reuse for (Entry<String, Rule> e : precompiledRules.entrySet()) { Rule r = e.getValue(); ...
Compiler(LineReader reader, Map<String, Rule> precompiledRules) throws GrammarException { if (precompiledRules == null) precompiledRules = Collections.emptyMap(); else { // clone rules to protect them from reuse for (Entry<String, Rule> e : precompiledRules.entrySet()) { Rule r = e.getValue(); ...
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/renderer/XlsReportRenderer.java b/api/src/main/java/org/openmrs/module/reporting/report/renderer/XlsReportRenderer.java index 2eb7fed6..70413f82 100644 --- a/api/src/main/java/org/openmrs/module/reporting/report/renderer/XlsReportRenderer.java +++ b/api...
true
true
public void render(ReportData reportData, String argument, OutputStream out) throws IOException, RenderingException { ReportDesign design = getDesign(argument); Workbook wb = getExcelTemplate(design); if (wb != null) { ExcelTemplateRenderer templateRenderer = new ExcelTemplate...
public void render(ReportData reportData, String argument, OutputStream out) throws IOException, RenderingException { ReportDesign design = getDesign(argument); Workbook wb = getExcelTemplate(design); if (wb != null) { ExcelTemplateRenderer templateRenderer = new ExcelTemplate...
diff --git a/src/com/seanmadden/deepthought/responders/DiceResponder.java b/src/com/seanmadden/deepthought/responders/DiceResponder.java index 7443611..9c1e660 100644 --- a/src/com/seanmadden/deepthought/responders/DiceResponder.java +++ b/src/com/seanmadden/deepthought/responders/DiceResponder.java @@ -1,76 +1,76 @@ ...
false
true
public boolean handleMessage(IRCClient irc, Message m) { String message = m.getMessage(); if(!message.contains(irc.getNick())){ return false; } if(!message.contains("roll")){ return false; } String[] args = message.split(" ", 3); if(args.length != 3){ return false; } if(!args[1].equals("roll...
public boolean handleMessage(IRCClient irc, Message m) { String message = m.getMessage(); if(!message.contains(irc.getNick())){ return false; } if(!message.contains("roll")){ return false; } String[] args = message.split(" ", 3); if(args.length != 3){ return false; } if(!args[1].equals("roll...
diff --git a/client/Sphereority.java b/client/Sphereority.java index 1972b2c..b4deeff 100644 --- a/client/Sphereority.java +++ b/client/Sphereority.java @@ -1,180 +1,181 @@ package client; /** * This is the main client application */ import common.*; import java.awt.BorderLayout; import java.io.IOExcepti...
true
true
public static void main(String[] args) { // Get the log level from the command-line if one is supplied initialiseLogger(args); logger.log(Level.INFO, "Started game"); // Report the current log level to the log file logger.log(logger.getLevel(), "Log Level set to: " + lo...
public static void main(String[] args) { // Get the log level from the command-line if one is supplied initialiseLogger(args); logger.log(Level.INFO, "Started game"); // Report the current log level to the log file logger.log(logger.getLevel(), "Log Level set to: " + lo...
diff --git a/luni/src/main/java/org/xml/sax/helpers/XMLReaderAdapter.java b/luni/src/main/java/org/xml/sax/helpers/XMLReaderAdapter.java index abd7e5956..c683229f9 100644 --- a/luni/src/main/java/org/xml/sax/helpers/XMLReaderAdapter.java +++ b/luni/src/main/java/org/xml/sax/helpers/XMLReaderAdapter.java @@ -1,536 +1,53...
true
true
* Internal class to wrap a SAX2 Attributes object for SAX1. */ final class AttributesAdapter implements AttributeList { AttributesAdapter () { } /** * Set the embedded Attributes object. * * @param The embedded SAX2 Attributes. */ void setAttributes (Attribute...
* Internal class to wrap a SAX2 Attributes object for SAX1. */ static final class AttributesAdapter implements AttributeList { AttributesAdapter () { } /** * Set the embedded Attributes object. * * @param The embedded SAX2 Attributes. */ void setAttributes (At...
diff --git a/microemulator/src/javax/microedition/lcdui/ChoiceGroup.java b/microemulator/src/javax/microedition/lcdui/ChoiceGroup.java index b93826c1..44d9dffa 100644 --- a/microemulator/src/javax/microedition/lcdui/ChoiceGroup.java +++ b/microemulator/src/javax/microedition/lcdui/ChoiceGroup.java @@ -1,479 +1,480 @@ ...
true
true
int traverse(int gameKeyCode, int top, int bottom, boolean action) { if (gameKeyCode == 1) { if (highlightedItemIndex > 0) { if (action) { highlightedItemIndex--; } int height = super.getHeight(); for (int i = 0; i < highlightedItemIndex; i++) { height += items[i].getHeight()...
int traverse(int gameKeyCode, int top, int bottom, boolean action) { if (gameKeyCode == 1) { if (highlightedItemIndex > 0) { if (action) { highlightedItemIndex--; } int height = super.getHeight(); for (int i = 0; i < highlightedItemIndex; i++) { height += items[i].getHeight()...
diff --git a/src/org/broad/igv/bbfile/BigBedDataBlock.java b/src/org/broad/igv/bbfile/BigBedDataBlock.java index e804ff9f..906a531c 100755 --- a/src/org/broad/igv/bbfile/BigBedDataBlock.java +++ b/src/org/broad/igv/bbfile/BigBedDataBlock.java @@ -1,212 +1,212 @@ /* * Copyright (c) 2007-2011 by The Broad Institute of...
false
true
public ArrayList<BedFeature> getBedData(RPChromosomeRegion selectionRegion, boolean contained) { int itemNumber = 0; int chromID, chromStart, chromEnd; String restOfFields; // chromID + chromStart + chromEnd + rest 0 byte // 0 byte...
public ArrayList<BedFeature> getBedData(RPChromosomeRegion selectionRegion, boolean contained) { int itemNumber = 0; int chromID, chromStart, chromEnd; String restOfFields; // chromID + chromStart + chromEnd + rest 0 byte // 0 byte...
diff --git a/src/ProfilePage.java b/src/ProfilePage.java index ae3ca44..3afefba 100644 --- a/src/ProfilePage.java +++ b/src/ProfilePage.java @@ -1,100 +1,101 @@ package src; import java.util.*; import java.io.*; import networking.OnlineProfile; import networking.PlayerLogin; public class ProfilePage { /...
true
true
public void inProfile(String u) throws FileNotFoundException { User user = new User(u); // USER CLASS FOR TARGET USER System.out.println("\n<--------------------------------------------->"); System.out.println(user.Username + "'s Profile"); System.out.println("Level: " + user.getLevel()); System.out.println(...
public void inProfile(String u) throws FileNotFoundException { User user = new User(u); // USER CLASS FOR TARGET USER System.out.println("\n<--------------------------------------------->"); System.out.println(user.Username + "'s Profile"); System.out.println("Level: " + user.getLevel()); System.out.println(...
diff --git a/src/main/java/com/monits/commons/configuration/ReloadableProperties.java b/src/main/java/com/monits/commons/configuration/ReloadableProperties.java index aa78602..2913b0a 100644 --- a/src/main/java/com/monits/commons/configuration/ReloadableProperties.java +++ b/src/main/java/com/monits/commons/configurati...
false
true
private int getExpirationTime() { Integer time = Integer.valueOf(properties.getProperty(EXPIRATION_TIME_KEY)); if (time == null) { return DEFAULT_EXPIRATION_TIME; } return time; }
private int getExpirationTime() { String value = properties.getProperty(EXPIRATION_TIME_KEY); if (value == null) { return DEFAULT_EXPIRATION_TIME; } return Integer.valueOf(value); }
diff --git a/baixing_quanleimu/src/com/quanleimu/database/ChatMessageDatabase.java b/baixing_quanleimu/src/com/quanleimu/database/ChatMessageDatabase.java index fa2672f3..16956c84 100644 --- a/baixing_quanleimu/src/com/quanleimu/database/ChatMessageDatabase.java +++ b/baixing_quanleimu/src/com/quanleimu/database/ChatMe...
true
true
public static List<ChatMessage> queryMessageBySession(String sid) { List<ChatMessage> list = new ArrayList<ChatMessage>(); try{ Cursor cur = databaseRO.query(DatabaseOpenHelper.CHAT_MESSAGE_TABLE, new String[] {"msgJson"}, "sessionId='" + sid + "'", null, null, null, null, null); if (cur != null &...
public static List<ChatMessage> queryMessageBySession(String sid) { List<ChatMessage> list = new ArrayList<ChatMessage>(); try{ Cursor cur = databaseRO.query(DatabaseOpenHelper.CHAT_MESSAGE_TABLE, new String[] {"msgJson"}, "sessionId='" + sid + "'", null, null, null, null, null); if (cur != null &...
diff --git a/src/org/jruby/RubyFileStat.java b/src/org/jruby/RubyFileStat.java index 05b9599e3..07c31102f 100644 --- a/src/org/jruby/RubyFileStat.java +++ b/src/org/jruby/RubyFileStat.java @@ -1,384 +1,384 @@ /* ***** BEGIN LICENSE BLOCK ***** * Version: CPL 1.0/GPL 2.0/LGPL 2.1 * * The contents of this file a...
false
true
public IRubyObject inspect() { StringBuilder buf = new StringBuilder("#<"); buf.append(getMetaClass().getRealClass().getName()); buf.append(" "); // FIXME: Obvious issue that not all platforms can display all attributes. Ugly hacks. // Using generic posix library makes pushi...
public IRubyObject inspect() { StringBuilder buf = new StringBuilder("#<"); buf.append(getMetaClass().getRealClass().getName()); buf.append(" "); // FIXME: Obvious issue that not all platforms can display all attributes. Ugly hacks. // Using generic posix library makes pushi...
diff --git a/runtime/ceylon/language/falsity.java b/runtime/ceylon/language/falsity.java index f95e88ea..7614093d 100644 --- a/runtime/ceylon/language/falsity.java +++ b/runtime/ceylon/language/falsity.java @@ -1,23 +1,23 @@ package ceylon.language; import com.redhat.ceylon.compiler.java.metadata.Ceylon; import co...
true
true
public boolean booleanValue() { return true; }
public boolean booleanValue() { return false; }
diff --git a/activemq-core/src/test/java/org/apache/activemq/security/SimpleSecurityBrokerSystemTest.java b/activemq-core/src/test/java/org/apache/activemq/security/SimpleSecurityBrokerSystemTest.java index 3ed263530..a85557ee5 100644 --- a/activemq-core/src/test/java/org/apache/activemq/security/SimpleSecurityBrokerSy...
true
true
public Broker create(Broker broker) { DestinationMap readAccess = new DestinationMap(); readAccess.put(new ActiveMQQueue(">"), admins); readAccess.put(new ActiveMQQueue("USERS.>"), users); readAccess.put(new ActiveMQQueue("GUEST.>"), guests); readAcc...
public Broker create(Broker broker) { DestinationMap readAccess = new DestinationMap(); readAccess.put(new ActiveMQQueue(">"), admins); readAccess.put(new ActiveMQQueue("USERS.>"), users); readAccess.put(new ActiveMQQueue("GUEST.>"), guests); readAcc...
diff --git a/src/uk/ac/gla/dcs/tp3/w/algorithm/Graph.java b/src/uk/ac/gla/dcs/tp3/w/algorithm/Graph.java index faa7d2a..cde252b 100644 --- a/src/uk/ac/gla/dcs/tp3/w/algorithm/Graph.java +++ b/src/uk/ac/gla/dcs/tp3/w/algorithm/Graph.java @@ -1,300 +1,300 @@ package uk.ac.gla.dcs.tp3.w.algorithm; import java.util.Lin...
false
true
public Graph(League l, Team t) { if (l == null || t == null) return; // Work out constant W W = t.getPoints() + t.getUpcomingMatches().length; // Number of team nodes is one less than total number of teams. // The team nodes do not include the team being tested for elimination. int teamTotal = l.getTeam...
public Graph(League l, Team t) { if (l == null || t == null) return; // Work out constant W W = t.getPoints() + t.getUpcomingMatches().size(); // Number of team nodes is one less than total number of teams. // The team nodes do not include the team being tested for elimination. int teamTotal = l.getTeam...
diff --git a/LogicMail/src/org/logicprobe/LogicMail/ui/MailboxMessageField.java b/LogicMail/src/org/logicprobe/LogicMail/ui/MailboxMessageField.java index 92ddf4f..b4d5d49 100644 --- a/LogicMail/src/org/logicprobe/LogicMail/ui/MailboxMessageField.java +++ b/LogicMail/src/org/logicprobe/LogicMail/ui/MailboxMessageField....
true
true
protected void paint(Graphics graphics) { String senderText = createSenderText(); String dateString = createDisplayDate(); Bitmap attachmentIcon = null; MimeMessagePart[] attachments = messageNode.getAttachmentParts(); if(attachments != null && attachments.length > 0) { ...
protected void paint(Graphics graphics) { String senderText = createSenderText(); String dateString = createDisplayDate(); Bitmap attachmentIcon = null; MimeMessagePart[] attachments = messageNode.getAttachmentParts(); if(attachments != null && attachments.length > 0) { ...
diff --git a/openejb2/modules/core/src/test/org/openejb/deployment/EJBConfigBuilderTest.java b/openejb2/modules/core/src/test/org/openejb/deployment/EJBConfigBuilderTest.java index 92115fae3..2214b4cea 100644 --- a/openejb2/modules/core/src/test/org/openejb/deployment/EJBConfigBuilderTest.java +++ b/openejb2/modules/co...
true
true
private void verifyDeployment(File unpackedDir, ClassLoader cl, String j2eeDomainName, String j2eeServerName, String j2eeApplicationName, String j2eeModuleName) throws Exception { DataSource ds = null; try { GBeanMBean config = loadConfig(unpackedDir); GBeanMBean containerIn...
private void verifyDeployment(File unpackedDir, ClassLoader cl, String j2eeDomainName, String j2eeServerName, String j2eeApplicationName, String j2eeModuleName) throws Exception { DataSource ds = null; try { GBeanMBean config = loadConfig(unpackedDir); GBeanMBean containerIn...
diff --git a/src/agents/FastDasMapInfo.java b/src/agents/FastDasMapInfo.java index cab6cf6..b275571 100644 --- a/src/agents/FastDasMapInfo.java +++ b/src/agents/FastDasMapInfo.java @@ -1,513 +1,515 @@ package agents; import java.util.PriorityQueue; import java.util.ArrayList; import java.util.Comparator; import ...
false
true
public void add(GridCell cell, float gCost, float hCost, int dCheapestRaw, int expansionNumber, GridCell parent) { // Should only be called when no info exists for node. CellSetMembership prevSet = getSetMembership(cell); if (prevSet != CellSetMembership.NONE) { throw new IllegalArgumentException("Cannot ...
public void add(GridCell cell, float gCost, float hCost, int dCheapestRaw, int expansionNumber, GridCell parent) { // Should only be called when no info exists for node. CellSetMembership prevSet = getSetMembership(cell); if (prevSet != CellSetMembership.NONE) { throw new IllegalArgumentException("Cannot ...
diff --git a/src/main/java/org/mvel/compiler/AbstractParser.java b/src/main/java/org/mvel/compiler/AbstractParser.java index 36f1e5b6..bf0a9238 100644 --- a/src/main/java/org/mvel/compiler/AbstractParser.java +++ b/src/main/java/org/mvel/compiler/AbstractParser.java @@ -1,2314 +1,2320 @@ /** * MVEL (The MVFLEX Expre...
true
true
protected ASTNode nextToken() { try { /** * If the cursor is at the end of the expression, we have nothing more to do: * return null. */ if (cursor >= length) { return null; } else if (!splitAccumulator.is...
protected ASTNode nextToken() { try { /** * If the cursor is at the end of the expression, we have nothing more to do: * return null. */ if (cursor >= length) { return null; } else if (!splitAccumulator.is...
diff --git a/src/main/java/org/dynmap/DynmapPlugin.java b/src/main/java/org/dynmap/DynmapPlugin.java index 6fb852d5..d1e82645 100644 --- a/src/main/java/org/dynmap/DynmapPlugin.java +++ b/src/main/java/org/dynmap/DynmapPlugin.java @@ -1,784 +1,784 @@ package org.dynmap; import java.io.File; import java.io.FileInpu...
false
true
public void registerEvents() { final PluginManager pm = getServer().getPluginManager(); final MapManager mm = mapManager; // To trigger rendering. { BlockListener renderTrigger = new BlockListener() { @Override public void...
public void registerEvents() { final PluginManager pm = getServer().getPluginManager(); final MapManager mm = mapManager; // To trigger rendering. { BlockListener renderTrigger = new BlockListener() { @Override public void...
diff --git a/src/com/liquid/settings/SlideSettings.java b/src/com/liquid/settings/SlideSettings.java index 71a00c2..cfd93cc 100644 --- a/src/com/liquid/settings/SlideSettings.java +++ b/src/com/liquid/settings/SlideSettings.java @@ -1,365 +1,367 @@ /* * Copyright (C) 2011 The Liquid Settings Project * * Licensed un...
false
true
public View getView(int position, View convertView, ViewGroup parent) { HeaderViewHolder holder; Headers header = getItem(position); int headerType = getHeaderType(header); View view = null; if (convertView == null) { ...
public View getView(int position, View convertView, ViewGroup parent) { HeaderViewHolder holder; Headers header = getItem(position); int headerType = getHeaderType(header); View view = null; if (convertView == null) { ...
diff --git a/org.emftext.sdk.ui/src/org/emftext/sdk/ui/jobs/AbstractSyntaxGenerationProcess.java b/org.emftext.sdk.ui/src/org/emftext/sdk/ui/jobs/AbstractSyntaxGenerationProcess.java index 399fbd1e5..1f6a9364b 100644 --- a/org.emftext.sdk.ui/src/org/emftext/sdk/ui/jobs/AbstractSyntaxGenerationProcess.java +++ b/org.emf...
true
true
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { ResourceSet rs = new ResourceSetImpl(); Resource genResource = rs.getResource(URI.createPlatformResourceURI(file.getFullPath().toString(), true), true); final GenModel genModel = (GenModel) genResource.getContents(...
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { ResourceSet rs = new ResourceSetImpl(); Resource genResource = rs.getResource(URI.createPlatformResourceURI(file.getFullPath().toString(), true), true); final GenModel genModel = (GenModel) genResource.getContents(...
diff --git a/src/org/jmc/models/Wall.java b/src/org/jmc/models/Wall.java index 788ea8d..865a39f 100644 --- a/src/org/jmc/models/Wall.java +++ b/src/org/jmc/models/Wall.java @@ -1,95 +1,96 @@ package org.jmc.models; import java.util.HashSet; import org.jmc.ChunkDataBuffer; import org.jmc.OBJOutputFile; import o...
false
true
public void addModel(OBJOutputFile obj, ChunkDataBuffer chunks, int x, int y, int z, byte data, byte biome) { String[] mtls = getMtlSides(data, biome); UV[] uvTop, uvSide; UV[][] uvSides; boolean conn_n = checkConnect(chunks, data, x, y, z-1); boolean conn_s = checkConnect(chunks, data, x, y, z+1); boole...
public void addModel(OBJOutputFile obj, ChunkDataBuffer chunks, int x, int y, int z, byte data, byte biome) { String[] mtls = getMtlSides(data, biome); UV[] uvTop, uvSide; UV[][] uvSides; boolean conn_n = checkConnect(chunks, data, x, y, z-1); boolean conn_s = checkConnect(chunks, data, x, y, z+1); boole...
diff --git a/src/main/java/net/pms/network/RequestV2.java b/src/main/java/net/pms/network/RequestV2.java index a88ad195c..453a64cd2 100644 --- a/src/main/java/net/pms/network/RequestV2.java +++ b/src/main/java/net/pms/network/RequestV2.java @@ -1,964 +1,964 @@ /* * PS3 Media Server, for streaming any medias to your ...
false
true
public ChannelFuture answer( HttpResponse output, MessageEvent e, final boolean close, final StartStopListenerDelegate startStopListenerDelegate ) throws IOException { ChannelFuture future = null; long CLoverride = -2; // 0 and above are valid Content-Length values, -1 means omit StringBuilder response ...
public ChannelFuture answer( HttpResponse output, MessageEvent e, final boolean close, final StartStopListenerDelegate startStopListenerDelegate ) throws IOException { ChannelFuture future = null; long CLoverride = -2; // 0 and above are valid Content-Length values, -1 means omit StringBuilder response ...
diff --git a/src/main/test/org/compass/gps/device/hibernate/collection/nullid/NullIdCollectionTests.java b/src/main/test/org/compass/gps/device/hibernate/collection/nullid/NullIdCollectionTests.java index 30d107f1..bbed7314 100644 --- a/src/main/test/org/compass/gps/device/hibernate/collection/nullid/NullIdCollectionTe...
false
true
public void testMarshall() { //TODO see if we can fix this test if (true) { return; } CompassSession session = compass.openSession(); CompassTransaction tr = session.beginTransaction(); Session hibSession = sessionFactory.openSession(); Transactio...
public void testMarshall() { // Bad Hibernate, it does not set the ids on the Album objects if // not using hibSession.save(album). CompassSession session = compass.openSession(); CompassTransaction tr = session.beginTransaction(); Session hibSession = sessionFactory.openSes...
diff --git a/app/controllers/InstagramController.java b/app/controllers/InstagramController.java index 080d936..4dec313 100644 --- a/app/controllers/InstagramController.java +++ b/app/controllers/InstagramController.java @@ -1,108 +1,108 @@ /** * */ package controllers; import java.util.HashMap; import org...
true
true
public static WebSocket<JsonNode> webSocket() { return new WebSocket<JsonNode>() { // Called when the Websocket Handshake is done. public void onReady(WebSocket.In<JsonNode> in, final WebSocket.Out<JsonNode> out) { in.onMessage(new Callback<JsonNode>() { public void invoke(JsonNode event) { Lo...
public static WebSocket<JsonNode> webSocket() { return new WebSocket<JsonNode>() { // Called when the Websocket Handshake is done. public void onReady(WebSocket.In<JsonNode> in, final WebSocket.Out<JsonNode> out) { in.onMessage(new Callback<JsonNode>() { public void invoke(JsonNode event) { Lo...
diff --git a/src/com/btmura/android/reddit/ThumbnailLoader.java b/src/com/btmura/android/reddit/ThumbnailLoader.java index f3a027c6..09231502 100644 --- a/src/com/btmura/android/reddit/ThumbnailLoader.java +++ b/src/com/btmura/android/reddit/ThumbnailLoader.java @@ -1,111 +1,112 @@ package com.btmura.android.reddit; ...
true
true
public void setThumbnail(ImageView v, String url) { Bitmap b = bitmapCache.get(url); if (b != null) { v.setImageBitmap(b); } else { v.setMinimumWidth(69); v.setMinimumHeight(69); v.setImageResource(R.drawable.ic_launcher); LoadThumbnailTask task = (LoadThumbnailTask) v.getTag(); if (t...
public void setThumbnail(ImageView v, String url) { Bitmap b = bitmapCache.get(url); if (b != null) { v.setImageBitmap(b); } else { int dps = (int) (70 * v.getResources().getDisplayMetrics().density); v.setMinimumWidth(dps); v.setMinimumHeight(dps); v.setImageResource(R.drawable.ic_launcher)...
diff --git a/src/powercrystals/minefactoryreloaded/processing/TileEntityBioReactor.java b/src/powercrystals/minefactoryreloaded/processing/TileEntityBioReactor.java index 93ff273c..8ceb7336 100644 --- a/src/powercrystals/minefactoryreloaded/processing/TileEntityBioReactor.java +++ b/src/powercrystals/minefactoryreloade...
true
true
public void updateEntity() { super.updateEntity(); if(worldObj.isRemote) { for(int i = 0; i < 9; i++) { if(_inventory[i] != null && MFRRegistry.getPlantables().containsKey(_inventory[i].itemID)) { int targetSlot = findMatchingSlot(_inventory[i]); if(targetSlot < 0) { contin...
public void updateEntity() { super.updateEntity(); if(worldObj.isRemote) { for(int i = 0; i < 9; i++) { if(_inventory[i] != null && MFRRegistry.getPlantables().containsKey(_inventory[i].itemID)) { int targetSlot = findMatchingSlot(_inventory[i]); if(targetSlot < 0) { contin...
diff --git a/core/jar/src/main/java/org/mobicents/slee/container/deployment/interceptors/SbbLocalObjectInterceptor.java b/core/jar/src/main/java/org/mobicents/slee/container/deployment/interceptors/SbbLocalObjectInterceptor.java index 1e8032ac0..c4191cd3c 100755 --- a/core/jar/src/main/java/org/mobicents/slee/container...
true
true
public Object invokeAndReturnObject(Object proxy, String methodName, Object[] args, Class[] types) throws Exception { if (this.setRollbackOnly) { throw new TransactionRolledbackLocalException( "Previous invocation caused rollback"); } final ClassL...
public Object invokeAndReturnObject(Object proxy, String methodName, Object[] args, Class[] types) throws Exception { if (this.setRollbackOnly) { throw new TransactionRolledbackLocalException( "Previous invocation caused rollback"); } final ClassL...
diff --git a/src/main/java/eel/seprphase2/App.java b/src/main/java/eel/seprphase2/App.java index b18865b..c8f4559 100644 --- a/src/main/java/eel/seprphase2/App.java +++ b/src/main/java/eel/seprphase2/App.java @@ -1,13 +1,13 @@ package eel.seprphase2; /** * Hello world! * */ public class App { public s...
true
true
public static void main( String[] args ) { System.out.println( "Hello, World!" ); }
public static void main( String[] args ) { System.out.println( "Hello World!" ); }
diff --git a/src/com/mpower/security/MpowerAffirmativeBased.java b/src/com/mpower/security/MpowerAffirmativeBased.java index cd5407ce..80e4751b 100644 --- a/src/com/mpower/security/MpowerAffirmativeBased.java +++ b/src/com/mpower/security/MpowerAffirmativeBased.java @@ -1,45 +1,47 @@ package com.mpower.security; im...
false
true
public void decide(Authentication authentication, Object object, ConfigAttributeDefinition config) throws AccessDeniedException { int deny = 0; if (authentication instanceof MpowerAuthenticationToken) { if (object instanceof FilterInvocation) { String requestUrl = ((Filt...
public void decide(Authentication authentication, Object object, ConfigAttributeDefinition config) throws AccessDeniedException { int deny = 0; if (authentication instanceof MpowerAuthenticationToken) { if (object instanceof FilterInvocation) { String requestUrl = ((Filt...
diff --git a/src/com/sdc/ast/expressions/PriorityExpression.java b/src/com/sdc/ast/expressions/PriorityExpression.java index 220763e..12a9ac8 100644 --- a/src/com/sdc/ast/expressions/PriorityExpression.java +++ b/src/com/sdc/ast/expressions/PriorityExpression.java @@ -1,32 +1,33 @@ package com.sdc.ast.expressions; ...
true
true
public boolean isAssociative() { if (myType == ADD || myType == MUL || myType == AND || myType == OR || myType == SQUARE_BRACKETS || myType == BITWISE_AND || myType == BITWISE_OR || myType == BITWISE_XOR || myType == EQ || myType == NE) { return true; } return fal...
public boolean isAssociative() { if (myType == ADD || myType == MUL || myType == AND || myType == OR || myType == SQUARE_BRACKETS || myType == ARRAYLENGTH || myType == BITWISE_AND || myType == BITWISE_OR || myType == BITWISE_XOR || myType == EQ || myType == NE) { ...
diff --git a/src/main/java/suite/lp/invocable/Invocables.java b/src/main/java/suite/lp/invocable/Invocables.java index 842810ae7..d8a9a3f59 100644 --- a/src/main/java/suite/lp/invocable/Invocables.java +++ b/src/main/java/suite/lp/invocable/Invocables.java @@ -1,166 +1,168 @@ package suite.lp.invocable; import java...
true
true
public Node invoke(InvocableBridge bridge, List<Node> inputs) { final Fun<Node, Node> unwrapper = bridge.getUnwrapper(); final List<String> list = new ArrayList<>(); ExpandUtil.expandList(unwrapper, inputs.get(0), new Sink<Node>() { public void sink(Node node) { list.add(ExpandUtil.expandString(unw...
public Node invoke(InvocableBridge bridge, List<Node> inputs) { final Fun<Node, Node> unwrapper = bridge.getUnwrapper(); final List<String> list = new ArrayList<>(); ExpandUtil.expandList(unwrapper, inputs.get(0), new Sink<Node>() { public void sink(Node node) { list.add(ExpandUtil.expandString(unw...
diff --git a/metamer/ftest/src/test/java/org/richfaces/tests/metamer/ftest/richTree/TestTreeLoadingFacet.java b/metamer/ftest/src/test/java/org/richfaces/tests/metamer/ftest/richTree/TestTreeLoadingFacet.java index a9963add6..b36b9ca96 100644 --- a/metamer/ftest/src/test/java/org/richfaces/tests/metamer/ftest/richTree/...
true
true
public void testLoadingFacet() { int sufficientTimeToCheckHandles = 2000;// ms setLoadingFacet(true); setResponseDelay(sufficientTimeToCheckHandles); TreeNode treeNode = null; for (int index : new int[]{ 0, 1 }) { treeNode = (index == 0) ? tree.advanced().getNodes...
public void testLoadingFacet() { int sufficientTimeToCheckHandles = 1500;// ms setLoadingFacet(true); setResponseDelay(sufficientTimeToCheckHandles); TreeNode treeNode = null; for (int index : new int[]{ 0, 1 }) { treeNode = (index == 0) ? tree.advanced().getNodes...
diff --git a/code/vdmj/src/main/java/org/overturetool/vdmj/syntax/ExpressionReader.java b/code/vdmj/src/main/java/org/overturetool/vdmj/syntax/ExpressionReader.java index f0e45fc3b3..bae1664847 100644 --- a/code/vdmj/src/main/java/org/overturetool/vdmj/syntax/ExpressionReader.java +++ b/code/vdmj/src/main/java/org/over...
true
true
private Expression readApplicatorExpression() throws ParserException, LexException { Expression exp = readBasicExpression(); boolean more = true; while (more) { LexToken token = lastToken(); switch (token.type) { case BRA: // Either sequence(from, ..., to) or func(args) or map(k...
private Expression readApplicatorExpression() throws ParserException, LexException { Expression exp = readBasicExpression(); boolean more = true; while (more) { LexToken token = lastToken(); switch (token.type) { case BRA: // Either sequence(from, ..., to) or func(args) or map(k...
diff --git a/src/main/java/com/cilogi/shiro/web/OAuthLoginServlet.java b/src/main/java/com/cilogi/shiro/web/OAuthLoginServlet.java index 18159c3..134238e 100644 --- a/src/main/java/com/cilogi/shiro/web/OAuthLoginServlet.java +++ b/src/main/java/com/cilogi/shiro/web/OAuthLoginServlet.java @@ -1,181 +1,181 @@ // Copyrig...
true
true
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String code = WebUtils.getCleanParam(request, "code"); String currentUri = WebUtils.getRequestUri(request); try { IOAuthProviderInfo auth = getProvider((String)ge...
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String code = WebUtils.getCleanParam(request, "code"); String currentUri = WebUtils.getRequestUri(request); try { IOAuthProviderInfo auth = getProvider((String)ge...
diff --git a/src/com/lauren/wordsprout/ImageActivity.java b/src/com/lauren/wordsprout/ImageActivity.java index b5586e6..edfb49b 100644 --- a/src/com/lauren/wordsprout/ImageActivity.java +++ b/src/com/lauren/wordsprout/ImageActivity.java @@ -1,150 +1,150 @@ package com.lauren.wordsprout; import java.io.File; import...
true
true
protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_images); imageViews = new ArrayList<ImageView>(); imageViews.add((ImageView) findViewById(R.id.img01));...
protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_images); imageViews = new ArrayList<ImageView>(); imageViews.add((ImageView) findViewById(R.id.img01));...
diff --git a/jamwiki-core/src/main/java/org/jamwiki/parser/jflex/IncludeOnlyTag.java b/jamwiki-core/src/main/java/org/jamwiki/parser/jflex/IncludeOnlyTag.java index 3d45eb86..57a11acd 100644 --- a/jamwiki-core/src/main/java/org/jamwiki/parser/jflex/IncludeOnlyTag.java +++ b/jamwiki-core/src/main/java/org/jamwiki/parser...
true
true
public String parse(ParserInput parserInput, ParserOutput parserOutput, int mode, String raw) throws Exception { if (mode <= JFlexParser.MODE_MINIMAL) { return raw; } if (parserInput.getTemplateDepth() > 0) { // strip tags and return return ParserUtil.tagContent(raw); } // anything else then the tag...
public String parse(ParserInput parserInput, ParserOutput parserOutput, int mode, String raw) throws Exception { if (mode <= JFlexParser.MODE_MINIMAL) { return raw; } if (parserInput.getTemplateDepth() > 0) { String content = ParserUtil.tagContent(raw); // run the pre-processor against the includeonly c...
diff --git a/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/commands/CastToArrayCommand.java b/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/commands/CastToArrayCommand.java index c93b0e5a0..3f2e9db95 100644 --- a/plugins/org.eclipse.tm.tcf.debug.ui/src/org/e...
false
true
private String getBaseTypeName() { final TCFNode node = getCastToTypeNode(); if (node == null) return null; return new TCFTask<String>(node.getChannel()) { public void run() { TCFDataCache<ISymbols.Symbol> type_cache = ((ICastToType)node).getType(); ...
private String getBaseTypeName() { final TCFNode node = getCastToTypeNode(); if (node == null) return null; return new TCFTask<String>(node.getChannel()) { public void run() { TCFDataCache<ISymbols.Symbol> type_cache = ((ICastToType)node).getType(); ...
diff --git a/src/main/java/net/alpenblock/bungeeperms/io/mysql2/MysqlPermEntity.java b/src/main/java/net/alpenblock/bungeeperms/io/mysql2/MysqlPermEntity.java index e5453a5..1324588 100644 --- a/src/main/java/net/alpenblock/bungeeperms/io/mysql2/MysqlPermEntity.java +++ b/src/main/java/net/alpenblock/bungeeperms/io/mys...
true
true
private void load(ResultSet res) throws SQLException { if(res.first()) { name=res.getString("name"); type=EntityType.getByCode(res.getInt("type")); } res.beforeFirst(); while(res.next()) { String key=res.getStr...
private void load(ResultSet res) throws SQLException { if(res.first()) { name=res.getString("name"); type=EntityType.getByCode(res.getInt("type")); } res.beforeFirst(); while(res.next()) { String key=res.getStr...
diff --git a/AudioRacer-PlayerCommunication/src/at/fhv/audioracer/communication/player/message/UpdateVelocityMessage.java b/AudioRacer-PlayerCommunication/src/at/fhv/audioracer/communication/player/message/UpdateVelocityMessage.java index 4a09fbf..0d87c81 100644 --- a/AudioRacer-PlayerCommunication/src/at/fhv/audiorace...
true
true
public UpdateVelocityMessage() { super(MessageId.UPDATE_VELOCITY); seqNr = _seqNr++; }
public UpdateVelocityMessage() { super(MessageId.UPDATE_VELOCITY); if (++_seqNr < 0) { _seqNr = 0; } seqNr = _seqNr; }
diff --git a/src/be/ibridge/kettle/job/entry/job/JobEntryJob.java b/src/be/ibridge/kettle/job/entry/job/JobEntryJob.java index 27aeb176..05f233ef 100644 --- a/src/be/ibridge/kettle/job/entry/job/JobEntryJob.java +++ b/src/be/ibridge/kettle/job/entry/job/JobEntryJob.java @@ -1,613 +1,617 @@ /**************************...
true
true
public Result execute(Result result, int nr, Repository rep, Job parentJob) throws KettleException { result.setEntryNr( nr ); LogWriter logwriter = log; Log4jFileAppender appender = null; int backupLogLevel = log.getLogLevel(); if (setLogfile) { try ...
public Result execute(Result result, int nr, Repository rep, Job parentJob) throws KettleException { result.setEntryNr( nr ); LogWriter logwriter = log; Log4jFileAppender appender = null; int backupLogLevel = log.getLogLevel(); if (setLogfile) { try ...
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/localizer/TestContainerLocalizer.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoo...
false
true
public void testContainerLocalizerMain() throws Exception { ContainerLocalizer localizer = setupContainerLocalizerForTest(); // mock heartbeat responses from NM LocalResource rsrcA = getMockRsrc(random, LocalResourceVisibility.PRIVATE); LocalResource rsrcB = getMockRsrc(random, LocalResourceVisibilit...
public void testContainerLocalizerMain() throws Exception { ContainerLocalizer localizer = setupContainerLocalizerForTest(); // mock heartbeat responses from NM LocalResource rsrcA = getMockRsrc(random, LocalResourceVisibility.PRIVATE); LocalResource rsrcB = getMockRsrc(random, LocalResourceVisibilit...
diff --git a/src/main/java/hudson/plugins/scm_sync_configuration/strategies/AbstractScmSyncStrategy.java b/src/main/java/hudson/plugins/scm_sync_configuration/strategies/AbstractScmSyncStrategy.java index f984497..f1a44df 100644 --- a/src/main/java/hudson/plugins/scm_sync_configuration/strategies/AbstractScmSyncStrateg...
true
true
public PageMatcher getPageMatcherMatching(String url){ String rootUrl = Hudson.getInstance().getRootUrl(); String cleanedUrl = null; if(url.startsWith(rootUrl)){ cleanedUrl = url.substring(rootUrl.length()); } else { cleanedUrl = url; } for(PageMatcher pm : pageMatchers){ if(pm.getUrlRegex().match...
public PageMatcher getPageMatcherMatching(String url){ String rootUrl = Hudson.getInstance().getRootUrlFromRequest(); String cleanedUrl = null; if(url.startsWith(rootUrl)){ cleanedUrl = url.substring(rootUrl.length()); } else { cleanedUrl = url; } for(PageMatcher pm : pageMatchers){ if(pm.getUrlRe...
diff --git a/android-maps-extensions/src/pl/mg6/android/maps/extensions/ClusteringSettings.java b/android-maps-extensions/src/pl/mg6/android/maps/extensions/ClusteringSettings.java index ee8c177..f50e153 100644 --- a/android-maps-extensions/src/pl/mg6/android/maps/extensions/ClusteringSettings.java +++ b/android-maps-e...
true
true
public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof ClusteringSettings)) { return false; } ClusteringSettings other = (ClusteringSettings) o; if (enabled != other.enabled) { return false; } if (addMarkersDynamically != other.addMarkersDynamically) { return f...
public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof ClusteringSettings)) { return false; } ClusteringSettings other = (ClusteringSettings) o; if (enabled != other.enabled) { return false; } if (addMarkersDynamically != other.addMarkersDynamically) { return f...
diff --git a/src/org/jacorb/imr/ImRServerInfo.java b/src/org/jacorb/imr/ImRServerInfo.java index 87d1abb21..ca49520ce 100644 --- a/src/org/jacorb/imr/ImRServerInfo.java +++ b/src/org/jacorb/imr/ImRServerInfo.java @@ -1,237 +1,237 @@ /* * JacORB - a free Java ORB * * Copyright (C) 1999-2004 Gerald Brose ...
true
true
public ServerInfo toServerInfo() { poas_lock.gainExclusiveLock(); // The ServerInfo class stores its POAs in an array, therefore // the vector has to copied. Because of backward compatibility // issues we decided not to use toArray() from the jdk1.2 // build array ...
public ServerInfo toServerInfo() { poas_lock.gainExclusiveLock(); // The ServerInfo class stores its POAs in an array, therefore // the vector has to copied. Because of backward compatibility // issues we decided not to use toArray() from the jdk1.2 // build array ...
diff --git a/src/Server/gameModule/JTest.java b/src/Server/gameModule/JTest.java index d864344..531ceb6 100644 --- a/src/Server/gameModule/JTest.java +++ b/src/Server/gameModule/JTest.java @@ -1,619 +1,619 @@ package Server.gameModule; import static org.junit.Assert.*; import java.util.ArrayList; import org.j...
true
true
public void handCompTest5(){ //mainly tests on three things //1. self vs self (same hand type) //2. self vs higher //3. self vs lower //just making sure all the different combinations of the code is working well //if ran correctly it should give no zeros and // if i>j, then all tests on i against j shou...
public void handCompTest5(){ //mainly tests on three things //1. self vs self (same hand type) //2. self vs higher //3. self vs lower //just making sure all the different combinations of the code is working well //if ran correctly it should give no zeros and // if i>j, then all tests on i against j shou...
diff --git a/source/de/anomic/plasma/plasmaCrawlWorker.java b/source/de/anomic/plasma/plasmaCrawlWorker.java index 0306b896e..dc7390510 100644 --- a/source/de/anomic/plasma/plasmaCrawlWorker.java +++ b/source/de/anomic/plasma/plasmaCrawlWorker.java @@ -1,505 +1,505 @@ //plasmaCrawlWorker.java //---------------------...
false
true
private static void load( URL url, String name, String referer, String initiator, int depth, plasmaCrawlProfile.entry profile, int socketTimeout, String remoteProxyHost, int remoteProxyPort, bo...
private static void load( URL url, String name, String referer, String initiator, int depth, plasmaCrawlProfile.entry profile, int socketTimeout, String remoteProxyHost, int remoteProxyPort, bo...
diff --git a/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/eperson/ForgotPasswordFinished.java b/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/eperson/ForgotPasswordFinished.java index 2b041dc3b..e7ee793e1 100644 --- a/dspace-xmlui/dspace-xmlui-api/src/main/java/org/d...
true
true
public void addBody(Body body) throws WingException { Division reset = body.addDivision("password-reset", "primary"); reset.setHead(T_head); EPersonUtils.forgottProgressList(reset, 3); reset.addPara(T_para1); reset.addPara().addXref(con...
public void addBody(Body body) throws WingException { Division reset = body.addDivision("password-reset", "primary"); reset.setHead(T_head); EPersonUtils.forgottProgressList(reset, 3); reset.addPara(T_para1); reset.addPara().addXref(con...
diff --git a/stripes/src/net/sourceforge/stripes/controller/DefaultActionBeanPropertyBinder.java b/stripes/src/net/sourceforge/stripes/controller/DefaultActionBeanPropertyBinder.java index 4d925aa1..6a334e37 100644 --- a/stripes/src/net/sourceforge/stripes/controller/DefaultActionBeanPropertyBinder.java +++ b/stripes/s...
true
true
public ValidationErrors bind(ActionBean bean, ActionBeanContext context, boolean validate) { ValidationErrors fieldErrors = context.getValidationErrors(); Map<String, ValidationMetadata> validationInfos = this.configuration .getValidationMetadataProvider().getValidationMetadata(bean....
public ValidationErrors bind(ActionBean bean, ActionBeanContext context, boolean validate) { ValidationErrors fieldErrors = context.getValidationErrors(); Map<String, ValidationMetadata> validationInfos = this.configuration .getValidationMetadataProvider().getValidationMetadata(bean....
diff --git a/test/helpers/JavaExtensionsTest.java b/test/helpers/JavaExtensionsTest.java index aba23bf..65cda65 100644 --- a/test/helpers/JavaExtensionsTest.java +++ b/test/helpers/JavaExtensionsTest.java @@ -1,51 +1,51 @@ package helpers; import org.joda.time.DateTime; import org.joda.time.DateTimeZone; import o...
true
true
@Test public void format() { // Date in GMT final DateTimeZone GMT = DateTimeZone.forID("GMT"); final DateTime date = new DateTime(GMT).withHourOfDay(15).withMinuteOfHour(23); Logger.info("date GMT = %s", date.toString()); // target timezone : Paris final Str...
@Test public void format() { // Date in GMT final DateTimeZone GMT = DateTimeZone.forID("GMT"); final DateTime date = new DateTime(GMT).withHourOfDay(15).withMinuteOfHour(23); Logger.info("date GMT = %s", date.toString()); // target timezone : Paris final Str...
diff --git a/jsglr-layout/src/org/spoofax/jsglr_layout/client/ParseTable.java b/jsglr-layout/src/org/spoofax/jsglr_layout/client/ParseTable.java index d8fa287..48d0bea 100644 --- a/jsglr-layout/src/org/spoofax/jsglr_layout/client/ParseTable.java +++ b/jsglr-layout/src/org/spoofax/jsglr_layout/client/ParseTable.java @@ ...
true
true
private ProductionAttributes parseProductionAttributes(IStrategoAppl attr) throws InvalidParseTableException { if (attr.getName().equals("attrs")) { int type = 0; boolean isRecover = false; boolean isIgnoreLayout = false; IStrategoTerm layoutConstrai...
private ProductionAttributes parseProductionAttributes(IStrategoAppl attr) throws InvalidParseTableException { if (attr.getName().equals("attrs")) { int type = 0; boolean isRecover = false; boolean isIgnoreLayout = false; IStrategoTerm layoutConstrai...
diff --git a/src/edu/unr/cse/paintmobile3d/SettingsActivity.java b/src/edu/unr/cse/paintmobile3d/SettingsActivity.java index dbd967b..f001836 100644 --- a/src/edu/unr/cse/paintmobile3d/SettingsActivity.java +++ b/src/edu/unr/cse/paintmobile3d/SettingsActivity.java @@ -1,91 +1,91 @@ package edu.unr.cse.paintmobile3d; ...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.settings); Preference mypref = (Preference) findPreference("setting_github"); mypref.setOnPreferenceClickListener(new OnPreferenceClickListener() { @Override public boo...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.settings); Preference mypref = (Preference) findPreference("setting_github"); mypref.setOnPreferenceClickListener(new OnPreferenceClickListener() { @Override public boo...
diff --git a/WEB-INF/lps/server/src/org/openlaszlo/compiler/LibraryCompiler.java b/WEB-INF/lps/server/src/org/openlaszlo/compiler/LibraryCompiler.java index 2d6c3628..f302c37d 100644 --- a/WEB-INF/lps/server/src/org/openlaszlo/compiler/LibraryCompiler.java +++ b/WEB-INF/lps/server/src/org/openlaszlo/compiler/LibraryCom...
true
true
static Element resolveLibraryElement(File file, CompilationEnvironment env, Set visited, boolean validate) { try { File key = file.getCanonicalFile(); if (!v...
static Element resolveLibraryElement(File file, CompilationEnvironment env, Set visited, boolean validate) { try { File key = file.getCanonicalFile(); if (!v...
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java index 246f06bc9..ad78ab06d 100644 --- a/org.eclipse.mylyn.bugzilla.core/src/org/eclip...
true
true
public ITask createTaskFromExistingKey(TaskRepository repository, String id, Proxy proxySettings) throws CoreException { int bugId = -1; try { if (id != null) { bugId = Integer.parseInt(id); } else { throw new CoreException(new Status(IStatus.ERROR, BugzillaCorePlugin.PLUGIN_ID, "invalid report id...
public ITask createTaskFromExistingKey(TaskRepository repository, String id, Proxy proxySettings) throws CoreException { int bugId = -1; try { if (id != null) { bugId = Integer.parseInt(id); } else { throw new CoreException(new Status(IStatus.ERROR, BugzillaCorePlugin.PLUGIN_ID, IStatus.OK, ...
diff --git a/src/vash/operation/LinearGradient.java b/src/vash/operation/LinearGradient.java index 5204a9c..1743943 100644 --- a/src/vash/operation/LinearGradient.java +++ b/src/vash/operation/LinearGradient.java @@ -1,131 +1,131 @@ /* * Copyright 2011, Zettabyte Storage LLC * * This file is part of Vash. * ...
true
true
public Plane compute(ImageParameters ip) { float w = ip.getW(); float h = ip.getH(); float[] X = ip.getXValues(); float[] Y = ip.getYValues(); float x0 = (float)p0.getX(); float y0 = (float)p0.getY(); float x1 = (float)p1.getX(); float y1 = (float)p1.getY(); Plane out = ip.getPlane(); float denom; ...
public Plane compute(ImageParameters ip) { float w = ip.getW(); float h = ip.getH(); float[] X = ip.getXValues(); float[] Y = ip.getYValues(); float x0 = (float)p0.getX(); float y0 = (float)p0.getY(); float x1 = (float)p1.getX(); float y1 = (float)p1.getY(); Plane out = ip.getPlane(); float denom; ...
diff --git a/core/src/test/java/com/predic8/membrane/core/RuleManagerTest.java b/core/src/test/java/com/predic8/membrane/core/RuleManagerTest.java index 9731227e..38f87dc0 100644 --- a/core/src/test/java/com/predic8/membrane/core/RuleManagerTest.java +++ b/core/src/test/java/com/predic8/membrane/core/RuleManagerTest.ja...
false
true
public void setUp() throws Exception{ manager = new RuleManager(); manager.setRouter(new MockRouter()); proxy3013 = new ProxyRule(new ProxyRuleKey(3013)); manager.addProxyAndOpenPortIfNew(proxy3013); forwardBlz = new ServiceProxy(new ServiceProxyKey("localhost", "*", ".*", 3014), "thomas-bayer.com", 80); ...
public void setUp() throws Exception{ manager = new RuleManager(); MockRouter router = new MockRouter(); manager.setRouter(router); proxy3013 = new ProxyRule(new ProxyRuleKey(3013)); manager.addProxyAndOpenPortIfNew(proxy3013); forwardBlz = new ServiceProxy(new ServiceProxyKey("localhost", "*", ".*", 30...
diff --git a/src/no/arcticdrakefox/wolfbot/roles/Wolf.java b/src/no/arcticdrakefox/wolfbot/roles/Wolf.java index 55b0d1d..9da9818 100644 --- a/src/no/arcticdrakefox/wolfbot/roles/Wolf.java +++ b/src/no/arcticdrakefox/wolfbot/roles/Wolf.java @@ -1,93 +1,97 @@ package no.arcticdrakefox.wolfbot.roles; import no.arctic...
true
true
public String nightAction(String message, PlayerList players) { if (!ill) { String[] args = message.trim().split(" ", 2); if (args[0].equals("!kill")) { if (args.length != 2) return "Correct usage: !kill <someone>"; Player target = players.getPlayer(args[1]); if (target == null) return ta...
public String nightAction(String message, PlayerList players) { if (!ill) { String[] args = message.trim().split(" ", 2); if (args[0].equals("!kill")) { if (args.length != 2) return "Correct usage: !kill <someone>"; Player target = players.getPlayer(args[1]); if (target == null) return ta...
diff --git a/liquibase-core/src/main/java/liquibase/sqlgenerator/core/RenameTableGenerator.java b/liquibase-core/src/main/java/liquibase/sqlgenerator/core/RenameTableGenerator.java index 13f2afd8..c22035e2 100644 --- a/liquibase-core/src/main/java/liquibase/sqlgenerator/core/RenameTableGenerator.java +++ b/liquibase-co...
true
true
public Sql[] generateSql(RenameTableStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain) { String sql; if (database instanceof MSSQLDatabase) { sql = "exec sp_rename '" + database.escapeTableName(statement.getSchemaName(), statement.getOldTableName()) + "', '" + s...
public Sql[] generateSql(RenameTableStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain) { String sql; if (database instanceof MSSQLDatabase) { sql = "exec sp_rename '" + database.escapeTableName(statement.getSchemaName(), statement.getOldTableName()) + "', '" + s...
diff --git a/src/ibis/satin/impl/faultTolerance/GlobalResultTable.java b/src/ibis/satin/impl/faultTolerance/GlobalResultTable.java index 73f204e2..2259b53f 100644 --- a/src/ibis/satin/impl/faultTolerance/GlobalResultTable.java +++ b/src/ibis/satin/impl/faultTolerance/GlobalResultTable.java @@ -1,242 +1,243 @@ /* $Id$ ...
true
true
protected void sendUpdates() { Timer updateTimer = null; Timer tableSerializationTimer = null; int size = 0; synchronized (s) { s.ft.updatesToSend = false; size = s.victims.size(); } if (size == 0) return; updateTimer = Timer...
protected void sendUpdates() { Timer updateTimer = null; Timer tableSerializationTimer = null; int size = 0; synchronized (s) { s.ft.updatesToSend = false; size = s.victims.size(); } if (size == 0) return; updateTimer = Timer...
diff --git a/common/src/java/com/ifountain/opsgenie/client/script/util/ScriptBridgeUtils.java b/common/src/java/com/ifountain/opsgenie/client/script/util/ScriptBridgeUtils.java index daa3a5b..39c9cbd 100644 --- a/common/src/java/com/ifountain/opsgenie/client/script/util/ScriptBridgeUtils.java +++ b/common/src/java/com/...
true
true
public static List<String> getAsList(Map params, String propName){ Object result = params.get(propName); if(result == null) return null; List<String> elements = new ArrayList<String>(); if(result.getClass().isArray()){ int length = Array.getLength(result); for...
public static List<String> getAsList(Map params, String propName){ Object result = params.get(propName); if(result == null) return null; List<String> elements = new ArrayList<String>(); if(result.getClass().isArray()){ int length = Array.getLength(result); for...
diff --git a/services/java/com/android/server/am/ActivityStack.java b/services/java/com/android/server/am/ActivityStack.java index 9171e476..b9e63b70 100755 --- a/services/java/com/android/server/am/ActivityStack.java +++ b/services/java/com/android/server/am/ActivityStack.java @@ -1,4578 +1,4579 @@ /* * Copyright (...
true
true
final int startActivityUncheckedLocked(ActivityRecord r, ActivityRecord sourceRecord, int startFlags, boolean doResume, Bundle options) { final Intent intent = r.intent; final int callingUid = r.launchedFromUid; final int userId = r.userId; int launchFlags = ...
final int startActivityUncheckedLocked(ActivityRecord r, ActivityRecord sourceRecord, int startFlags, boolean doResume, Bundle options) { final Intent intent = r.intent; final int callingUid = r.launchedFromUid; final int userId = r.userId; int launchFlags = ...
diff --git a/onebusaway-presentation/src/main/java/org/onebusaway/presentation/impl/service_alerts/RecentSituationComparator.java b/onebusaway-presentation/src/main/java/org/onebusaway/presentation/impl/service_alerts/RecentSituationComparator.java index 45f51498..e0291c72 100644 --- a/onebusaway-presentation/src/main/...
true
true
private long getTimeForSituation(SituationBean bean) { TimeRangeBean window = bean.getPublicationWindow(); if (window != null && window.getFrom() != 0) return window.getFrom(); if (CollectionsLibrary.isEmpty(bean.getConsequences())) { long t = Long.MAX_VALUE; for (SituationConsequenceB...
private long getTimeForSituation(SituationBean bean) { TimeRangeBean window = bean.getPublicationWindow(); if (window != null && window.getFrom() != 0) return window.getFrom(); if (! CollectionsLibrary.isEmpty(bean.getConsequences())) { long t = Long.MAX_VALUE; for (SituationConsequenc...
diff --git a/Configuration/java/dualstrike/configuration/HexFilesUtility.java b/Configuration/java/dualstrike/configuration/HexFilesUtility.java index 25572f4..f48732a 100644 --- a/Configuration/java/dualstrike/configuration/HexFilesUtility.java +++ b/Configuration/java/dualstrike/configuration/HexFilesUtility.java @@ ...
true
true
public static byte[] readSimpleHexFile(final File file) throws IOException { InputStream inputStream; inputStream = new FileInputStream(file); try { BufferedReader reader; List<Byte> bytes; byte[] bytesArray; int i; int lineNo; reader = new BufferedReader(new InputStreamReader(inputStream...
public static byte[] readSimpleHexFile(final File file) throws IOException { InputStream inputStream; inputStream = new FileInputStream(file); try { BufferedReader reader; List<Byte> bytes; byte[] bytesArray; int i; int lineNo; reader = new BufferedReader(new InputStreamReader(inputStream...
diff --git a/src/main/java/edu/northwestern/bioinformatics/studycalendar/web/template/AddLabelWithRepetitionsController.java b/src/main/java/edu/northwestern/bioinformatics/studycalendar/web/template/AddLabelWithRepetitionsController.java index 4390371b8..32a6b22b1 100644 --- a/src/main/java/edu/northwestern/bioinforma...
true
true
protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception { String days = ServletRequestUtils.getRequiredStringParameter(request, "days"); String repetitions = ServletRequestUtils.getRequiredStringParameter(request, "repetitions"); ...
protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception { String days = ServletRequestUtils.getRequiredStringParameter(request, "days"); String repetitions = ServletRequestUtils.getRequiredStringParameter(request, "repetitions"); ...
diff --git a/src/main/java/pl/psnc/dl/wf4ever/portal/services/RoFactory.java b/src/main/java/pl/psnc/dl/wf4ever/portal/services/RoFactory.java index 15c7962..23bf55a 100644 --- a/src/main/java/pl/psnc/dl/wf4ever/portal/services/RoFactory.java +++ b/src/main/java/pl/psnc/dl/wf4ever/portal/services/RoFactory.java @@ -1,7...
true
true
public static List<Annotation> createAnnotations(OntModel model, URI rodlURI, URI researchObjectURI, URI resourceURI, Map<URI, Creator> usernames) { List<Annotation> anns = new ArrayList<>(); Individual res = model.getIndividual(resourceURI.toString()); ResIterator it = model.li...
public static List<Annotation> createAnnotations(OntModel model, URI rodlURI, URI researchObjectURI, URI resourceURI, Map<URI, Creator> usernames) { List<Annotation> anns = new ArrayList<>(); Individual res = model.getIndividual(resourceURI.toString()); ResIterator it = model.li...
diff --git a/pentaho-gwt-widgets/source/org/pentaho/gwt/widgets/client/dialogs/PromptDialogBox.java b/pentaho-gwt-widgets/source/org/pentaho/gwt/widgets/client/dialogs/PromptDialogBox.java index 78ce2bd..e7bd31b 100644 --- a/pentaho-gwt-widgets/source/org/pentaho/gwt/widgets/client/dialogs/PromptDialogBox.java +++ b/pe...
true
true
public PromptDialogBox(String title, Widget content, String okText, String cancelText, IDialogCallback inCallback, IDialogValidatorCallback inValidatorCallback, boolean autoHide, boolean modal) { super(autoHide, modal); this.callback = inCallback; this.validatorCallback = inValidatorCallback; th...
public PromptDialogBox(String title, Widget content, String okText, String cancelText, IDialogCallback inCallback, IDialogValidatorCallback inValidatorCallback, boolean autoHide, boolean modal) { super(autoHide, modal); this.callback = inCallback; this.validatorCallback = inValidatorCallback; th...
diff --git a/genomix/genomix-hyracks/src/main/java/edu/uci/ics/genomix/hyracks/graph/job/JobGenBrujinGraph.java b/genomix/genomix-hyracks/src/main/java/edu/uci/ics/genomix/hyracks/graph/job/JobGenBrujinGraph.java index 57fef9a50..d1a49f696 100644 --- a/genomix/genomix-hyracks/src/main/java/edu/uci/ics/genomix/hyracks/g...
false
true
protected void initJobConfiguration(Scheduler scheduler) throws HyracksDataException { Configuration conf = confFactory.getConf(); kmerSize = Integer.parseInt(conf.get(GenomixJobConf.KMER_LENGTH)); if (kmerSize % 2 == 0) { throw new IllegalArgumentException("kmerLength cannot be ...
protected void initJobConfiguration(Scheduler scheduler) throws HyracksDataException { Configuration conf = confFactory.getConf(); kmerSize = Integer.parseInt(conf.get(GenomixJobConf.KMER_LENGTH)); if (kmerSize % 2 == 0) { throw new IllegalArgumentException("kmerLength cannot be ...
diff --git a/src/com/google/android/apps/dashclock/phone/SmsExtension.java b/src/com/google/android/apps/dashclock/phone/SmsExtension.java index 7b9e5b8..1eb862a 100644 --- a/src/com/google/android/apps/dashclock/phone/SmsExtension.java +++ b/src/com/google/android/apps/dashclock/phone/SmsExtension.java @@ -1,304 +1,30...
false
true
protected void onUpdateData(int reason) { Set<Long> unreadThreadIds = null; Cursor cursor = tryOpenSimpleThreadsCursor(); if (cursor != null) { unreadThreadIds = new HashSet<Long>(); while (cursor.moveToNext()) { if (cursor.getInt(SimpleThreadsQuery.RE...
protected void onUpdateData(int reason) { Set<Long> unreadThreadIds = null; Cursor cursor = tryOpenSimpleThreadsCursor(); if (cursor != null) { unreadThreadIds = new HashSet<Long>(); while (cursor.moveToNext()) { if (cursor.getInt(SimpleThreadsQuery.RE...
diff --git a/src/com/android/gallery3d/app/SlideshowPage.java b/src/com/android/gallery3d/app/SlideshowPage.java index 54aae67ab..d269e90ea 100644 --- a/src/com/android/gallery3d/app/SlideshowPage.java +++ b/src/com/android/gallery3d/app/SlideshowPage.java @@ -1,367 +1,367 @@ /* * Copyright (C) 2010 The Android Open...
false
true
public void onCreate(Bundle data, Bundle restoreState) { super.onCreate(data, restoreState); mFlags |= (FLAG_HIDE_ACTION_BAR | FLAG_HIDE_STATUS_BAR | FLAG_ALLOW_LOCK_WHILE_SCREEN_ON | FLAG_SHOW_WHEN_LOCKED); if (data.getBoolean(KEY_DREAM)) { // Dream screensaver o...
public void onCreate(Bundle data, Bundle restoreState) { super.onCreate(data, restoreState); mFlags |= (FLAG_HIDE_ACTION_BAR | FLAG_HIDE_STATUS_BAR | FLAG_ALLOW_LOCK_WHILE_SCREEN_ON); if (data.getBoolean(KEY_DREAM)) { // Dream screensaver only keeps screen on for ...
diff --git a/src/com/android/gallery3d/ui/MenuExecutor.java b/src/com/android/gallery3d/ui/MenuExecutor.java index 710ddc4..637c01e 100644 --- a/src/com/android/gallery3d/ui/MenuExecutor.java +++ b/src/com/android/gallery3d/ui/MenuExecutor.java @@ -1,398 +1,398 @@ /* * Copyright (C) 2010 The Android Open Source Proj...
true
true
private boolean execute( DataManager manager, JobContext jc, int cmd, Path path) { boolean result = true; switch (cmd) { case R.id.action_confirm_delete: manager.delete(path); break; case R.id.action_rotate_cw: manag...
private boolean execute( DataManager manager, JobContext jc, int cmd, Path path) { boolean result = true; switch (cmd) { case R.id.action_confirm_delete: manager.delete(path); break; case R.id.action_rotate_cw: manag...
diff --git a/whois-commons/src/main/java/net/ripe/db/whois/common/rpsl/DummifierCurrent.java b/whois-commons/src/main/java/net/ripe/db/whois/common/rpsl/DummifierCurrent.java index b43f17107..6a46b3c9c 100644 --- a/whois-commons/src/main/java/net/ripe/db/whois/common/rpsl/DummifierCurrent.java +++ b/whois-commons/src/m...
true
true
public RpslObject dummify(final int version, final RpslObject rpslObject) { final ObjectType objectType = rpslObject.getType(); Validate.isTrue(isAllowed(version, rpslObject), "The version is not supported by this dummifier", version); final List<RpslAttribute> attributes = Lists.newArrayLi...
public RpslObject dummify(final int version, final RpslObject rpslObject) { final ObjectType objectType = rpslObject.getType(); Validate.isTrue(isAllowed(version, rpslObject), "The version is not supported by this dummifier", version); final List<RpslAttribute> attributes = Lists.newArrayLi...
diff --git a/h2/src/main/org/h2/tools/Server.java b/h2/src/main/org/h2/tools/Server.java index b2afa03a6..e66bd1b08 100644 --- a/h2/src/main/org/h2/tools/Server.java +++ b/h2/src/main/org/h2/tools/Server.java @@ -1,677 +1,679 @@ /* * Copyright 2004-2011 H2 Group. Multiple-Licensed under the H2 License, * Version 1...
true
true
public void runTool(String... args) throws SQLException { boolean tcpStart = false, pgStart = false, webStart = false; boolean browserStart = false; boolean tcpShutdown = false, tcpShutdownForce = false; String tcpPassword = ""; String tcpShutdownServer = ""; boolean ...
public void runTool(String... args) throws SQLException { boolean tcpStart = false, pgStart = false, webStart = false; boolean browserStart = false; boolean tcpShutdown = false, tcpShutdownForce = false; String tcpPassword = ""; String tcpShutdownServer = ""; boolean ...
diff --git a/src/java/org/apache/hadoop/mapreduce/lib/chain/Chain.java b/src/java/org/apache/hadoop/mapreduce/lib/chain/Chain.java index 3441b7c54b..384524a92d 100644 --- a/src/java/org/apache/hadoop/mapreduce/lib/chain/Chain.java +++ b/src/java/org/apache/hadoop/mapreduce/lib/chain/Chain.java @@ -1,907 +1,907 @@ /** ...
false
true
protected static void validateKeyValueTypes(boolean isMap, Configuration jobConf, Class<?> inputKeyClass, Class<?> inputValueClass, Class<?> outputKeyClass, Class<?> outputValueClass, int index, String prefix) { // if it is a reducer chain and the first Mapper is being added check the // key...
protected static void validateKeyValueTypes(boolean isMap, Configuration jobConf, Class<?> inputKeyClass, Class<?> inputValueClass, Class<?> outputKeyClass, Class<?> outputValueClass, int index, String prefix) { // if it is a reducer chain and the first Mapper is being added check the // key...
diff --git a/src/jp/ddo/neko_daisuki/android/widget/UzumakiDiagram.java b/src/jp/ddo/neko_daisuki/android/widget/UzumakiDiagram.java index bf6c2a3..fd594ed 100644 --- a/src/jp/ddo/neko_daisuki/android/widget/UzumakiDiagram.java +++ b/src/jp/ddo/neko_daisuki/android/widget/UzumakiDiagram.java @@ -1,75 +1,76 @@ package ...
true
true
public void draw(Canvas canvas) { Point p = new Point(); Path path = new Path(); this.computePoint(p, this.startAngle); path.moveTo(p.x, p.y); int sweepAngle = Math.abs(this.sweepAngle); /* * About "resolution" * ================== * ...
public void draw(Canvas canvas) { Point p = new Point(); Path path = new Path(); this.computePoint(p, this.startAngle); path.moveTo(p.x, p.y); int sweepAngle = Math.abs(this.sweepAngle); /* * About "resolution" * ================== * ...
diff --git a/src/com/android/mms/transaction/SmsSingleRecipientSender.java b/src/com/android/mms/transaction/SmsSingleRecipientSender.java index 42d8ad6b..40866d8a 100644 --- a/src/com/android/mms/transaction/SmsSingleRecipientSender.java +++ b/src/com/android/mms/transaction/SmsSingleRecipientSender.java @@ -1,128 +1,...
false
true
public boolean sendMessage(long token) throws MmsException { if (LogTag.DEBUG_SEND) { Log.v(TAG, "sendMessage token: " + token); } if (mMessageText == null) { // Don't try to send an empty message, and destination should be just // one. throw n...
public boolean sendMessage(long token) throws MmsException { if (LogTag.DEBUG_SEND) { Log.v(TAG, "sendMessage token: " + token); } if (mMessageText == null) { // Don't try to send an empty message, and destination should be just // one. throw n...
diff --git a/app/util/Medcon.java b/app/util/Medcon.java index 5ce7baf..9d78124 100644 --- a/app/util/Medcon.java +++ b/app/util/Medcon.java @@ -1,47 +1,50 @@ package util; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import jav...
true
true
public static void convert(File from, Format format, File to) throws InterruptedException, IOException { File[] files = from.isDirectory() ? from.listFiles() : new File[] { from }; File directory = to.isDirectory() ? to : to.getParentFile(); List<String> prefix = new ArrayList(Arrays.asList( new File(Propert...
public static void convert(File from, Format format, File to) throws InterruptedException, IOException { File[] files = from.isDirectory() ? from.listFiles() : new File[] { from }; File directory = to.isDirectory() ? to : to.getParentFile(); List<String> prefix = new ArrayList(Arrays.asList( new File(Propert...
diff --git a/src/srt/tool/ExprToSmtlibVisitor.java b/src/srt/tool/ExprToSmtlibVisitor.java index a1a86cd..769258e 100644 --- a/src/srt/tool/ExprToSmtlibVisitor.java +++ b/src/srt/tool/ExprToSmtlibVisitor.java @@ -1,155 +1,151 @@ package srt.tool; import srt.ast.BinaryExpr; import srt.ast.DeclRef; import srt.ast.E...
false
true
public String visit(BinaryExpr expr) { String operator = null; switch(expr.getOperator()) { case BinaryExpr.ADD: operator = "(bvadd %s %s)"; break; case BinaryExpr.BAND: operator = "(bvand %s %s)"; break; case BinaryExpr.BOR: operator = "(bvor %s %s)"; break; case BinaryExpr.B...
public String visit(BinaryExpr expr) { String operator = null; switch(expr.getOperator()) { case BinaryExpr.ADD: operator = "(bvadd %s %s)"; break; case BinaryExpr.BAND: operator = "(bvand %s %s)"; break; case BinaryExpr.BOR: operator = "(bvor %s %s)"; break; case BinaryExpr.B...