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/plugins/spelling/src/java/org/jivesoftware/spellchecker/SpellcheckerPreferenceDialog.java b/src/plugins/spelling/src/java/org/jivesoftware/spellchecker/SpellcheckerPreferenceDialog.java index 39cb283b..8348284a 100644 --- a/src/plugins/spelling/src/java/org/jivesoftware/spellchecker/SpellcheckerPrefere...
true
true
public SpellcheckerPreferenceDialog(ArrayList<String> languages) { this.languages = languages; locales = Locale.getAvailableLocales(); spellPanel.setLayout(new GridBagLayout()); spellcheckingEnabled.setText(SpellcheckerResource.getString("preference.spellcheckingEnabled")); spellcheckingEnabled.add...
public SpellcheckerPreferenceDialog(ArrayList<String> languages) { this.languages = languages; locales = Locale.getAvailableLocales(); spellPanel.setLayout(new GridBagLayout()); spellcheckingEnabled.setText(SpellcheckerResource.getString("preference.spellcheckingEnabled")); spellcheckingEnabled.add...
diff --git a/src/smarthouse/lightagent/LightReceiveBehaviour.java b/src/smarthouse/lightagent/LightReceiveBehaviour.java index ffdff7d..2f408f8 100644 --- a/src/smarthouse/lightagent/LightReceiveBehaviour.java +++ b/src/smarthouse/lightagent/LightReceiveBehaviour.java @@ -1,89 +1,88 @@ package smarthouse.lightagent; ...
true
true
private ACLMessage parse(ACLMessage message){ ACLMessage answer; // parsing MessageContent content = new MessageContent(message); System.out.println("on est dans le light receiver behaviour"); // test valeur /*if( ( ((LightAgent)myAgent).getLightState() && content.getValue()==1) || ( !((LightAgent)m...
private ACLMessage parse(ACLMessage message){ ACLMessage answer; // parsing MessageContent content = new MessageContent(message); System.out.println("on est dans le light receiver behaviour"); // test valeur /*if( ( ((LightAgent)myAgent).getLightState() && content.getValue()==1) || ( !((LightAgent)m...
diff --git a/src/com/redhat/ceylon/compiler/java/launcher/Main.java b/src/com/redhat/ceylon/compiler/java/launcher/Main.java index ea2a3ef6e..ad3f3abd3 100644 --- a/src/com/redhat/ceylon/compiler/java/launcher/Main.java +++ b/src/com/redhat/ceylon/compiler/java/launcher/Main.java @@ -1,785 +1,787 @@ /* * Copyright (...
false
true
public int compile(String[] args, Context context, List<JavaFileObject> fileObjects, Iterable<? extends Processor> processors) { if (options == null) { options = Options.instance(context); // creates a new one } filenames = new ListBuffer<File>(); classnames = new ListBu...
public int compile(String[] args, Context context, List<JavaFileObject> fileObjects, Iterable<? extends Processor> processors) { if (options == null) { options = Options.instance(context); // creates a new one } filenames = new ListBuffer<File>(); classnames = new ListBu...
diff --git a/frost-wot/source/frost/threads/MessageThread.java b/frost-wot/source/frost/threads/MessageThread.java index 54b19d18..8dc964b6 100644 --- a/frost-wot/source/frost/threads/MessageThread.java +++ b/frost-wot/source/frost/threads/MessageThread.java @@ -1,482 +1,484 @@ /* MessageDownloadThread.java / Frost...
false
true
private void uploadMessage(FrostUnsentMessageObject mo, Identity recipient, IndexSlot gis) { logger.info("Preparing upload of message to board '" + board.getName() + "'"); mo.setCurrentUploadThread(this); try { // prepare upload LocalId...
private void uploadMessage(FrostUnsentMessageObject mo, Identity recipient, IndexSlot gis) { logger.info("Preparing upload of message to board '" + board.getName() + "'"); mo.setCurrentUploadThread(this); try { // prepare upload LocalId...
diff --git a/java/src/org/broadinstitute/sting/gatk/iterators/MergingSamRecordIterator2.java b/java/src/org/broadinstitute/sting/gatk/iterators/MergingSamRecordIterator2.java index 0f2497cba..187df3c74 100644 --- a/java/src/org/broadinstitute/sting/gatk/iterators/MergingSamRecordIterator2.java +++ b/java/src/org/broadi...
true
true
public SAMRecord nextRecord() { if (!initialized) { lazyInitialization(); } final ComparableSamRecordIterator iterator = this.pq.poll(); if (iterator == null) { return null; } final SAMRecord record = iterator.next(); addIfNotEmpty(it...
public SAMRecord nextRecord() { if (!initialized) { lazyInitialization(); } final ComparableSamRecordIterator iterator = this.pq.poll(); if (iterator == null) { return null; } final SAMRecord record = iterator.next(); addIfNotEmpty(it...
diff --git a/test/func/route/SimpleRouteTest.java b/test/func/route/SimpleRouteTest.java index f3321309..cba8674e 100644 --- a/test/func/route/SimpleRouteTest.java +++ b/test/func/route/SimpleRouteTest.java @@ -1,102 +1,102 @@ /* * Copyright (C) 2008 Steve Ratcliffe * * This program is free software; you can re...
true
true
public void testSize() throws FileNotFoundException { Main.main(new String[]{ Args.TEST_STYLE_ARG, "--route", Args.TEST_RESOURCE_OSM + "uk-test-1.osm.gz", Args.TEST_RESOURCE_MP + "test1.mp" }); FileSystem fs = ImgFS.openFs(Args.DEF_MAP_ID + ".img"); assertNotNull("file exists", fs); List<Di...
public void testSize() throws FileNotFoundException { Main.main(new String[]{ Args.TEST_STYLE_ARG, "--route", Args.TEST_RESOURCE_OSM + "uk-test-1.osm.gz", Args.TEST_RESOURCE_MP + "test1.mp" }); FileSystem fs = ImgFS.openFs(Args.DEF_MAP_ID + ".img"); assertNotNull("file exists", fs); List<Di...
diff --git a/src/br/uff/midiacom/ana/interfaces/NCLMapping.java b/src/br/uff/midiacom/ana/interfaces/NCLMapping.java index fece2cb..7fadeda 100755 --- a/src/br/uff/midiacom/ana/interfaces/NCLMapping.java +++ b/src/br/uff/midiacom/ana/interfaces/NCLMapping.java @@ -1,311 +1,311 @@ /*************************************...
true
true
protected void loadComponent(Element element) throws XMLException { String att_name, att_var; // set the component (required) att_name = NCLElementAttributes.COMPONENT.toString(); if(!(att_var = element.getAttribute(att_name)).isEmpty()){ T aux; if((a...
protected void loadComponent(Element element) throws XMLException { String att_name, att_var; // set the component (required) att_name = NCLElementAttributes.COMPONENT.toString(); if(!(att_var = element.getAttribute(att_name)).isEmpty()){ T aux; if((a...
diff --git a/debug/org.eclipse.ptp.debug.ui/src/org/eclipse/ptp/debug/ui/PVariableManager.java b/debug/org.eclipse.ptp.debug.ui/src/org/eclipse/ptp/debug/ui/PVariableManager.java index 93e63bb48..7d956c318 100644 --- a/debug/org.eclipse.ptp.debug.ui/src/org/eclipse/ptp/debug/ui/PVariableManager.java +++ b/debug/org.ecl...
true
true
public String getValue(final IPJob job, final int task, final IToolTipProvider provider) { try { IPSession session = getSession(job); IPDIExpression[] expressions = session.getPDISession().getExpressionManager().getMultiExpressions(task); if (expressions == null || expressions.length == 0) return ""; //...
public String getValue(final IPJob job, final int task, final IToolTipProvider provider) { try { IPSession session = getSession(job); IPDIExpression[] expressions = session.getPDISession().getExpressionManager().getMultiExpressions(task); if (expressions == null || expressions.length == 0) return ""; //...
diff --git a/src/fr/crafter/tickleman/realadmintools/RealAdminCommandEntities.java b/src/fr/crafter/tickleman/realadmintools/RealAdminCommandEntities.java index b5e897b..8d8b177 100644 --- a/src/fr/crafter/tickleman/realadmintools/RealAdminCommandEntities.java +++ b/src/fr/crafter/tickleman/realadmintools/RealAdminComm...
true
true
static void command(RealAdminToolsPlugin plugin, CommandSender sender, String[] args) { String subCommand = args.length > 0 ? args[0].toLowerCase() : ""; try { BufferedWriter writer = new BufferedWriter( new FileWriter(plugin.getDataFolder().getPath() + "/entities.txt") ); writer.write("#class,id,ite...
static void command(RealAdminToolsPlugin plugin, CommandSender sender, String[] args) { String subCommand = args.length > 0 ? args[0].toLowerCase() : ""; try { BufferedWriter writer = new BufferedWriter( new FileWriter(plugin.getDataFolder().getPath() + File.separator + "entities.txt") ); writer.writ...
diff --git a/nexus/nexus-test-harness/nexus-test-harness-its/src/test/java/org/sonatype/nexus/integrationtests/nexus782/Nexus782UploadWithClassifierIT.java b/nexus/nexus-test-harness/nexus-test-harness-its/src/test/java/org/sonatype/nexus/integrationtests/nexus782/Nexus782UploadWithClassifierIT.java index f4a89f6a9..27...
false
true
public void withSamePomExtention() throws HttpException, IOException { File artifactFile = this.getTestFile( "same-pom/same-pom.jar" ); File artifactClassifierFile = this.getTestFile( "same-pom/same-pom-classifier.jar" ); File pomFile = this.getTestFile( "same-pom/pom.xml" ); ...
public void withSamePomExtention() throws Exception { File artifactFile = this.getTestFile( "same-pom/same-pom.jar" ); File artifactClassifierFile = this.getTestFile( "same-pom/same-pom-classifier.jar" ); File pomFile = this.getTestFile( "same-pom/pom.xml" ); // upload ...
diff --git a/ui/web/src/main/java/org/openengsb/ui/web/editor/fields/DropdownField.java b/ui/web/src/main/java/org/openengsb/ui/web/editor/fields/DropdownField.java index f8d5de04b..742d4e5bd 100644 --- a/ui/web/src/main/java/org/openengsb/ui/web/editor/fields/DropdownField.java +++ b/ui/web/src/main/java/org/openengsb...
true
true
protected FormComponent<String> createFormComponent(AttributeDefinition attribute, IModel<String> model) { final Map<String, String> labels = new HashMap<String, String>(); final List<String> values = new ArrayList<String>(); for (Option o : attribute.getOptions()) { labels.put(o...
protected FormComponent<String> createFormComponent(AttributeDefinition attribute, IModel<String> model) { final Map<String, String> labels = new HashMap<String, String>(); final List<String> values = new ArrayList<String>(); for (Option o : attribute.getOptions()) { labels.put(o...
diff --git a/signature-api/src/test/java/org/apache/labs/amber/signature/signers/plaintext/PlaintextMethodAlgorithmTestCase.java b/signature-api/src/test/java/org/apache/labs/amber/signature/signers/plaintext/PlaintextMethodAlgorithmTestCase.java index e210d50..8a573ad 100644 --- a/signature-api/src/test/java/org/apach...
true
true
public void verifyHmacSha1MethodAlgorithm() throws Exception { // the consumer secret PlaintextKey hmacKey = new PlaintextKey("kd94hf93k423kf44"); this.verifySignature(hmacKey, hmacKey, new PlaintextMethodAlgorithm(), "kd94hf93k423kf44&pfkkdhi9sl3r4s00"); }
public void verifyPlaintextMethodAlgorithm() throws Exception { // the consumer secret PlaintextKey hmacKey = new PlaintextKey("kd94hf93k423kf44"); this.verifySignature(hmacKey, hmacKey, new PlaintextMethodAlgorithm(), "kd94hf93k423kf44&pfkkdhi9sl3r4s00"); }
diff --git a/shell/impl/src/main/java/org/jboss/forge/addon/shell/aesh/ForgeCommandCompletion.java b/shell/impl/src/main/java/org/jboss/forge/addon/shell/aesh/ForgeCommandCompletion.java index f83409eef..cb26e717f 100644 --- a/shell/impl/src/main/java/org/jboss/forge/addon/shell/aesh/ForgeCommandCompletion.java +++ b/s...
false
true
private Iterable<ShellCommand> findMatchingCommands(CompleteOperation completeOperation) { List<ShellCommand> result = new ArrayList<ShellCommand>(); Iterable<ShellCommand> commands = shell.getEnabledShellCommands(); String[] tokens = completeOperation.getBuffer().split(String.valueOf(completeO...
private Iterable<ShellCommand> findMatchingCommands(CompleteOperation completeOperation) { List<ShellCommand> result = new ArrayList<ShellCommand>(); Iterable<ShellCommand> commands = shell.getEnabledShellCommands(); String[] tokens = completeOperation.getBuffer().split(String.valueOf(completeO...
diff --git a/src/entities/Entity.java b/src/entities/Entity.java index 1dac8c1..d38dab4 100644 --- a/src/entities/Entity.java +++ b/src/entities/Entity.java @@ -1,326 +1,326 @@ package entities; import game.debug.FrameTrace; import java.awt.Dimension; import map.Cell; import map.TileProperty; import org.n...
false
true
public void frameMove() { // float modFriction = getFrictionDelta(delta); // float modGravity = getGravityDelta(delta); //both x and y axis are affected by scalar friction if (!isOnGround()) { dxdy.translate(0f,GRAVITY); //fall if not on the ground } else if (getdY() > 0) { dxdy.setY(0); } dxdy.s...
public void frameMove() { // float modFriction = getFrictionDelta(delta); // float modGravity = getGravityDelta(delta); //both x and y axis are affected by scalar friction if (!isOnGround()) { dxdy.translate(0f,GRAVITY); //fall if not on the ground } else if (getdY() > 0) { dxdy.setY(0); } dxdy.s...
diff --git a/src/main/java/org/apache/ibatis/reflection/ExceptionUtil.java b/src/main/java/org/apache/ibatis/reflection/ExceptionUtil.java index 73429dd212..2f021ccf43 100644 --- a/src/main/java/org/apache/ibatis/reflection/ExceptionUtil.java +++ b/src/main/java/org/apache/ibatis/reflection/ExceptionUtil.java @@ -1,21 ...
false
true
public static Throwable unwrapThrowable(Throwable wrapped) { Throwable unwrapped = wrapped; while (true) { if (unwrapped instanceof InvocationTargetException) { unwrapped = ((InvocationTargetException) wrapped).getTargetException(); } else if (unwrapped instanceof UndeclaredThrowableExcept...
public static Throwable unwrapThrowable(Throwable wrapped) { Throwable unwrapped = wrapped; while (true) { if (unwrapped instanceof InvocationTargetException) { unwrapped = ((InvocationTargetException) unwrapped).getTargetException(); } else if (unwrapped instanceof UndeclaredThrowableExce...
diff --git a/src/main/java/views/gui/ExportManager.java b/src/main/java/views/gui/ExportManager.java index 787aa65..e245508 100644 --- a/src/main/java/views/gui/ExportManager.java +++ b/src/main/java/views/gui/ExportManager.java @@ -1,98 +1,99 @@ package views.gui; import controllers.ExportManagerController; impor...
true
true
public ExportManager() { // TODO: przerobic ten chujowy layout setName("Export Manager"); setBounds(100,100, 300, 300); setResizable(false); setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); getContentPane().add(panel, BorderLayout.SOUTH); JPanel panel_1 = new JPanel(); getContentPane().add(p...
public ExportManager() { // TODO: przerobic ten chujowy layout setName("Export Manager"); setBounds(100,100, 300, 300); setResizable(false); setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); getContentPane().add(panel, BorderLayout.SOUTH); JPanel panel_1 = new JPanel(); getContentPane().add(p...
diff --git a/src/com/android/calendar/Utils.java b/src/com/android/calendar/Utils.java index c6ea6d3d..1d80565e 100644 --- a/src/com/android/calendar/Utils.java +++ b/src/com/android/calendar/Utils.java @@ -1,456 +1,458 @@ /* * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache Lice...
false
true
public static void setTimeZone(Context context, String timeZone) { if (TextUtils.isEmpty(timeZone)) { if (DEBUG) { Log.d(TAG, "Empty time zone, nothing to be done."); } return; } synchronized (mTZCallbacks) { if (CalendarPrefere...
public static void setTimeZone(Context context, String timeZone) { if (TextUtils.isEmpty(timeZone)) { if (DEBUG) { Log.d(TAG, "Empty time zone, nothing to be done."); } return; } boolean updatePrefs = false; synchronized (mTZCallbac...
diff --git a/src-tools/org/seasr/meandre/components/tools/tuples/ExecuteSQL.java b/src-tools/org/seasr/meandre/components/tools/tuples/ExecuteSQL.java index 91a5beb3..25eee493 100644 --- a/src-tools/org/seasr/meandre/components/tools/tuples/ExecuteSQL.java +++ b/src-tools/org/seasr/meandre/components/tools/tuples/Execu...
true
true
public void executeCallBack(ComponentContext cc) throws Exception { super.executeCallBack(cc); componentInputCache.storeIfAvailable(cc, IN_TEXT); if (connectionPool == null || !componentInputCache.hasData(IN_TEXT)) // we're not ready to process yet, return return; ...
public void executeCallBack(ComponentContext cc) throws Exception { super.executeCallBack(cc); componentInputCache.storeIfAvailable(cc, IN_TEXT); if (connectionPool == null || !componentInputCache.hasData(IN_TEXT)) // we're not ready to process yet, return return; ...
diff --git a/src/com/android/volley/toolbox/BasicNetwork.java b/src/com/android/volley/toolbox/BasicNetwork.java index 673b7c9..e948a19 100644 --- a/src/com/android/volley/toolbox/BasicNetwork.java +++ b/src/com/android/volley/toolbox/BasicNetwork.java @@ -1,240 +1,241 @@ /* * Copyright (C) 2011 The Android Open Sou...
true
true
public NetworkResponse performRequest(Request<?> request) throws VolleyError { long requestStart = SystemClock.elapsedRealtime(); while (true) { HttpResponse httpResponse = null; byte[] responseContents = null; Map<String, String> responseHeaders = new HashMap<Str...
public NetworkResponse performRequest(Request<?> request) throws VolleyError { long requestStart = SystemClock.elapsedRealtime(); while (true) { HttpResponse httpResponse = null; byte[] responseContents = null; Map<String, String> responseHeaders = new HashMap<Str...
diff --git a/src/main/java/net/jeebiss/questmanager/denizencommands/QuestCommand.java b/src/main/java/net/jeebiss/questmanager/denizencommands/QuestCommand.java index b4803a5..fef7c12 100644 --- a/src/main/java/net/jeebiss/questmanager/denizencommands/QuestCommand.java +++ b/src/main/java/net/jeebiss/questmanager/deniz...
false
true
public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException { for (String arg : scriptEntry.getArguments()) { if (aH.matchesArg("START, FINISH, FAIL", arg)){ try { TYPE = QuestType.valueOf(aH.getStringFrom(arg)); dB.echoDebug("...set TYPE to: " + TYPE.name()); } catch (Ex...
public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException { for (String arg : scriptEntry.getArguments()) { if (aH.matchesArg("START, FINISH, FAIL", arg)){ try { TYPE = QuestType.valueOf(aH.getStringFrom(arg)); dB.echoDebug("...set TYPE to: " + TYPE.name()); } catch (Ex...
diff --git a/lexer/src/main/java/org/htmlparser/http/ConnectionManager.java b/lexer/src/main/java/org/htmlparser/http/ConnectionManager.java index 4f323d0..051dfd7 100644 --- a/lexer/src/main/java/org/htmlparser/http/ConnectionManager.java +++ b/lexer/src/main/java/org/htmlparser/http/ConnectionManager.java @@ -1,1240 ...
true
true
public URLConnection openConnection (URL url) throws ParserException { boolean repeat; int repeated; Properties sysprops; Hashtable properties; Enumeration enumeration; String key; String value; String set = null; // old proxySe...
public URLConnection openConnection (URL url) throws ParserException { boolean repeat; int repeated; Properties sysprops; Hashtable properties; Enumeration enumeration; String key; String value; String set = null; // old proxySe...
diff --git a/src/graindcafe/tribu/Level/LevelFileLoader.java b/src/graindcafe/tribu/Level/LevelFileLoader.java index 9622200..c473d94 100644 --- a/src/graindcafe/tribu/Level/LevelFileLoader.java +++ b/src/graindcafe/tribu/Level/LevelFileLoader.java @@ -1,386 +1,388 @@ package graindcafe.tribu.Level; import graindca...
false
true
public TribuLevel loadLevel(String name) { TribuLevel level = null; try { File file = new File(Constants.levelFolder + "/" + name + ".lvl"); if (!file.exists()) { return null; } FileInputStream fstream = new FileInputStream(file); DataInputStream in = new DataInputStream(fstream); int versio...
public TribuLevel loadLevel(String name) { TribuLevel level = null; try { File file = new File(Constants.levelFolder + "/" + name + ".lvl"); if (!file.exists()) { return null; } FileInputStream fstream = new FileInputStream(file); DataInputStream in = new DataInputStream(fstream); int versio...
diff --git a/src/server/Server.java b/src/server/Server.java index bc3c83f..f2fe4ee 100644 --- a/src/server/Server.java +++ b/src/server/Server.java @@ -1,253 +1,253 @@ package server; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IO...
false
true
private String handleRequest(String input) { /* * Input: "GET_UPDATE userID timestamp" -> return new updates, if any * * Input: "NEWUSER" -> return a unique 8 digit ID * * Input: "GET_PUBLIC upc" -> might return null * * Input: "SEND_LOG log" -> return nothing. * * Update String Repres...
private String handleRequest(String input) { /* * Input: "GET_UPDATE userID timestamp" -> return new updates, if any * * Input: "NEWUSER" -> return a unique 8 digit ID * * Input: "GET_PUBLIC upc" -> might return null * * Input: "SEND_LOG log" -> return nothing. * * Update String Repres...
diff --git a/core/src/visad/trunk/RangeControl.java b/core/src/visad/trunk/RangeControl.java index 217dc7d96..d616c4956 100644 --- a/core/src/visad/trunk/RangeControl.java +++ b/core/src/visad/trunk/RangeControl.java @@ -1,85 +1,86 @@ // // RangeControl.java // /* VisAD system for interactive analysis and visual...
true
true
public void initializeRange(float[] range) throws VisADException, RemoteException { if (!initialized) { RangeLow = range[0]; RangeHi = range[1]; initialized = (RangeLow == RangeLow && RangeHi == RangeHi); } else { setRange(range); } }
public void initializeRange(float[] range) throws VisADException, RemoteException { if (!initialized) { RangeLow = range[0]; RangeHi = range[1]; initialized = (RangeLow == RangeLow && RangeHi == RangeHi); changeControl(true); // WLH - 24 Sept 99 } else { setRange(range); ...
diff --git a/alitheia/core/src/main/java/eu/sqooss/impl/service/tds/diff/UnifiedDiffParser.java b/alitheia/core/src/main/java/eu/sqooss/impl/service/tds/diff/UnifiedDiffParser.java index 35273ba4..a2557b5b 100644 --- a/alitheia/core/src/main/java/eu/sqooss/impl/service/tds/diff/UnifiedDiffParser.java +++ b/alitheia/cor...
false
true
public boolean parseDiff() { //Don't re-parse the parsed diff if (parsed) return true; Pattern chunkStart = Pattern.compile(diffChunkStart); Pattern propChunk = Pattern.compile(propChunkStart); Pattern fileTarget = Pattern.compile(chunkFileTarget); Pattern fileSource = Pattern.compile(chunkFileSource...
public boolean parseDiff() { //Don't re-parse the parsed diff if (parsed) return true; Pattern chunkStart = Pattern.compile(diffChunkStart); Pattern propChunk = Pattern.compile(propChunkStart); Pattern fileTarget = Pattern.compile(chunkFileTarget); Pattern fileSource = Pattern.compile(chunkFileSource...
diff --git a/src/main/java/com/mpower/util/ModifyReportJRXML.java b/src/main/java/com/mpower/util/ModifyReportJRXML.java index 352d4d6..d707daa 100644 --- a/src/main/java/com/mpower/util/ModifyReportJRXML.java +++ b/src/main/java/com/mpower/util/ModifyReportJRXML.java @@ -1,1311 +1,1313 @@ /** * */ package com.mp...
true
true
private Element createGroupFooterBand(Document document, HashMap<String, Integer> fieldProperties, HashMap<String, Integer> fieldWidth, String resetGroup) { // //Variables Integer bandTotalHeight = 0; Integer rowHeight = 16; int y = 0; int x = 0; int width = 0; int xCalc = 0;...
private Element createGroupFooterBand(Document document, HashMap<String, Integer> fieldProperties, HashMap<String, Integer> fieldWidth, String resetGroup) { // //Variables Integer bandTotalHeight = 0; Integer rowHeight = 16; int y = 0; int x = 0; int width = 0; int xCalc = 0;...
diff --git a/src/vehicleShepard/VehicleDB.java b/src/vehicleShepard/VehicleDB.java index bd51b93..b83fd74 100644 --- a/src/vehicleShepard/VehicleDB.java +++ b/src/vehicleShepard/VehicleDB.java @@ -1,336 +1,336 @@ package vehicleShepard; /* * This class is controlling the methods containing * methods using ou...
true
true
public Object[][] getList() { int number = getNumberOfVehicles(); int count = 0; //We want a list of customers in a 2D Array Object[][] vehicleList = new Object[number][8]; //We connect to our database Connection conn = ConnectDB.initConn(); try { Statement s = conn.createStatement(); ...
public Object[][] getList() { int number = getNumberOfVehicles(); int count = 0; //We want a list of customers in a 2D Array Object[][] vehicleList = new Object[number][8]; //We connect to our database Connection conn = ConnectDB.initConn(); try { Statement s = conn.createStatement(); ...
diff --git a/core/src/main/java/org/apache/mahout/cf/taste/impl/model/file/FileDataModel.java b/core/src/main/java/org/apache/mahout/cf/taste/impl/model/file/FileDataModel.java index cefbfe5e3..358219cd2 100644 --- a/core/src/main/java/org/apache/mahout/cf/taste/impl/model/file/FileDataModel.java +++ b/core/src/main/ja...
true
true
protected void processLine(String line, FastByIDMap<?> data, FastByIDMap<FastByIDMap<Long>> timestamps, boolean fromPriorData) { // Ignore empty lines and comments if (line.isEmpty() || line.charAt(0) == COMMENT_CHAR) { ...
protected void processLine(String line, FastByIDMap<?> data, FastByIDMap<FastByIDMap<Long>> timestamps, boolean fromPriorData) { // Ignore empty lines and comments if (line.isEmpty() || line.charAt(0) == COMMENT_CHAR) { ...
diff --git a/crypto/src/org/bouncycastle/openssl/PEMReader.java b/crypto/src/org/bouncycastle/openssl/PEMReader.java index b3fb460d..cd66a064 100644 --- a/crypto/src/org/bouncycastle/openssl/PEMReader.java +++ b/crypto/src/org/bouncycastle/openssl/PEMReader.java @@ -1,628 +1,628 @@ package org.bouncycastle.openssl; ...
false
true
private KeyPair readKeyPair( String type, String endMarker) throws Exception { boolean isEncrypted = false; String line = null; String dekInfo = null; StringBuffer buf = new StringBuffer(); while ((line = readLine())...
private KeyPair readKeyPair( String type, String endMarker) throws Exception { boolean isEncrypted = false; String line = null; String dekInfo = null; StringBuffer buf = new StringBuffer(); while ((line = readLine())...
diff --git a/TASServer.java b/TASServer.java index cdded23..813cc3a 100644 --- a/TASServer.java +++ b/TASServer.java @@ -1,2922 +1,2922 @@ /* * Created on 2005.6.16 * * * ---- INTERNAL CHANGELOG ---- * *** 0.34 *** * * message IDs are now actually working * * added TESTLOGIN, TESTLOGINACCEPT and TESTLO...
true
true
public static boolean tryToExecCommand(String command, Client client) { command = command.trim(); if (command.equals("")) return false; if (DEBUG > 1) if (client.account.accessLevel() != Account.NIL_ACCESS) System.out.println("[<-" + client.account.user + "]" + " \"" + command + "\""); else System.out.pr...
public static boolean tryToExecCommand(String command, Client client) { command = command.trim(); if (command.equals("")) return false; if (DEBUG > 1) if (client.account.accessLevel() != Account.NIL_ACCESS) System.out.println("[<-" + client.account.user + "]" + " \"" + command + "\""); else System.out.pr...
diff --git a/mcp/src/minecraft/sammko/quantumCraft/machine/ExtractorContainer.java b/mcp/src/minecraft/sammko/quantumCraft/machine/ExtractorContainer.java index 8b881cc..bee6386 100755 --- a/mcp/src/minecraft/sammko/quantumCraft/machine/ExtractorContainer.java +++ b/mcp/src/minecraft/sammko/quantumCraft/machine/Extract...
false
true
public ItemStack transferStackInSlot(EntityPlayer player, int slot) { // TODO fix so that it works properly ItemStack stack = null; Slot slotObject = (Slot) inventorySlots.get(slot); //null checks and checks if the item can be stacked (maxStackSize > 1) if (slotObject != ...
public ItemStack transferStackInSlot(EntityPlayer player, int slot) { // TODO fix so that it works properly /* ItemStack stack = null; Slot slotObject = (Slot) inventorySlots.get(slot); //null checks and checks if the item can be stacked (maxStackSize > 1) if (slotObject ...
diff --git a/src/edu/Drake/babysteps/ChildListActivity.java b/src/edu/Drake/babysteps/ChildListActivity.java index aacaabf..06ee235 100644 --- a/src/edu/Drake/babysteps/ChildListActivity.java +++ b/src/edu/Drake/babysteps/ChildListActivity.java @@ -1,71 +1,71 @@ package edu.Drake.babysteps; import android.app.Activ...
false
true
protected void onCreate(Bundle savedInstanceState) { this.requestWindowFeature(Window.FEATURE_NO_TITLE); super.onCreate(savedInstanceState); setContentView(R.layout.activity_child_list); //addChildImage = (Button) findViewById(R.id.addChildImage); //addChildImage.setOnClickListener(new OnClickListener() ...
protected void onCreate(Bundle savedInstanceState) { this.requestWindowFeature(Window.FEATURE_NO_TITLE); super.onCreate(savedInstanceState); setContentView(R.layout.activity_child_list); // addChildImage = (Button) findViewById(R.id.addChildImage); // addChildImage.setOnClickListener(new OnClickListener() ...
diff --git a/src/test/java/org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactoryTest.java b/src/test/java/org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactoryTest.java index 3240fc0e..32062c1c 100644 --- a/src/test/java/org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactoryTest.ja...
false
true
public void testDefaultParserFactory() throws Exception { DefaultFTPFileEntryParserFactory factory = new DefaultFTPFileEntryParserFactory(); FTPFileEntryParser parser = factory.createFileEntryParser("unix"); assertTrue(parser instanceof UnixFTPEntryParser); parser = fac...
public void testDefaultParserFactory() throws Exception { DefaultFTPFileEntryParserFactory factory = new DefaultFTPFileEntryParserFactory(); FTPFileEntryParser parser = factory.createFileEntryParser("unix"); assertTrue(parser instanceof UnixFTPEntryParser); parser = fac...
diff --git a/src/com/adamki11s/quests/QuestLoader.java b/src/com/adamki11s/quests/QuestLoader.java index c071fe8..2d5d87c 100644 --- a/src/com/adamki11s/quests/QuestLoader.java +++ b/src/com/adamki11s/quests/QuestLoader.java @@ -1,449 +1,449 @@ package com.adamki11s.quests; import java.io.File; import java.util.Ha...
true
true
void load() throws InvalidQuestException, MissingQuestPropertyException { this.config.read(); if (this.config.doesKeyExist("NAME")) { this.questName = config.getString("NAME"); } else { throw new MissingQuestPropertyException(questName, "NAME"); } int i = 0; while (config.doesKeyExist((i + 1) + ""...
void load() throws InvalidQuestException, MissingQuestPropertyException { this.config.read(); if (this.config.doesKeyExist("NAME")) { this.questName = config.getString("NAME"); } else { throw new MissingQuestPropertyException(questName, "NAME"); } int i = 0; while (config.doesKeyExist((i + 1) + ""...
diff --git a/src/de/todesbaum/jsite/application/ProjectInserter.java b/src/de/todesbaum/jsite/application/ProjectInserter.java index 1b0021a..7b4d619 100644 --- a/src/de/todesbaum/jsite/application/ProjectInserter.java +++ b/src/de/todesbaum/jsite/application/ProjectInserter.java @@ -1,333 +1,333 @@ /* * jSite - a t...
true
true
public void run() { fireProjectInsertStarted(); List<String> files = fileScanner.getFiles(); /* create connection to node */ Connection connection = freenetInterface.getConnection("project-insert-" + counter++); boolean connected = false; Throwable cause = null; try { connected = connection.connect()...
public void run() { fireProjectInsertStarted(); List<String> files = fileScanner.getFiles(); /* create connection to node */ Connection connection = freenetInterface.getConnection("project-insert-" + counter++); boolean connected = false; Throwable cause = null; try { connected = connection.connect()...
diff --git a/plugins/org.integratedmodelling.thinklab.modelling/src/org/integratedmodelling/modelling/visualization/NetCDFArchive.java b/plugins/org.integratedmodelling.thinklab.modelling/src/org/integratedmodelling/modelling/visualization/NetCDFArchive.java index bdd53af1..28211e42 100644 --- a/plugins/org.integratedm...
true
true
public void write(String filename) throws ThinklabException { Dimension latDim = null; Dimension lonDim = null; Dimension timDim = null; ArrayList<Dimension> spdims = new ArrayList<Dimension>(); if (!filename.endsWith(".nc")) filename += ".nc"; NetcdfFileWriteable ncfile; try { ncfile = N...
public void write(String filename) throws ThinklabException { Dimension latDim = null; Dimension lonDim = null; Dimension timDim = null; ArrayList<Dimension> spdims = new ArrayList<Dimension>(); if (!filename.endsWith(".nc")) filename += ".nc"; NetcdfFileWriteable ncfile; try { ncfile = N...
diff --git a/src/org/openstreetmap/josm/data/osm/visitor/MapPaintVisitor.java b/src/org/openstreetmap/josm/data/osm/visitor/MapPaintVisitor.java index ee48dc65..9c3dfcd4 100644 --- a/src/org/openstreetmap/josm/data/osm/visitor/MapPaintVisitor.java +++ b/src/org/openstreetmap/josm/data/osm/visitor/MapPaintVisitor.java @...
true
true
public void visit(Way w) { double circum = Main.map.mapView.getScale()*100*Main.proj.scaleFactor()*40041455; // circumference of the earth in meter boolean showDirection = showDirectionArrow; if (useRealWidth && showDirection && !w.selected) showDirection = false; Color colour = untaggedColor; int width = 2;...
public void visit(Way w) { double circum = Main.map.mapView.getScale()*100*Main.proj.scaleFactor()*40041455; // circumference of the earth in meter boolean showDirection = showDirectionArrow && w.selected; if (useRealWidth && showDirection) showDirection = false; Color colour = untaggedColor; int width = 2; ...
diff --git a/srcj/com/sun/electric/tool/user/menus/FileMenu.java b/srcj/com/sun/electric/tool/user/menus/FileMenu.java index a333e01f4..22e69c0a5 100644 --- a/srcj/com/sun/electric/tool/user/menus/FileMenu.java +++ b/srcj/com/sun/electric/tool/user/menus/FileMenu.java @@ -1,1042 +1,1045 @@ /* -*- tab-width: 4 -*- * ...
false
true
public boolean doIt() { boolean retVal = false; try { retVal = _doIt(); if (!retVal) { JOptionPane.showMessageDialog(TopLevel.getCurrentJFrame(), new String [] {"Error saving files", "Please check your d...
public boolean doIt() { boolean retVal = false; try { retVal = _doIt(); if (!retVal) { JOptionPane.showMessageDialog(TopLevel.getCurrentJFrame(), new String [] {"Error saving files", "Please check your d...
diff --git a/server/src/main/java/com/metamx/druid/db/DatabaseRuleManager.java b/server/src/main/java/com/metamx/druid/db/DatabaseRuleManager.java index a9955d843c..2840eb037a 100644 --- a/server/src/main/java/com/metamx/druid/db/DatabaseRuleManager.java +++ b/server/src/main/java/com/metamx/druid/db/DatabaseRuleManage...
true
true
public static void createDefaultRule( final DBI dbi, final String ruleTable, final String defaultDatasource, final ObjectMapper jsonMapper ) { try { dbi.withHandle( new HandleCallback<Void>() { @Override public Void withHandle(Handle ha...
public static void createDefaultRule( final DBI dbi, final String ruleTable, final String defaultDatasource, final ObjectMapper jsonMapper ) { try { dbi.withHandle( new HandleCallback<Void>() { @Override public Void withHandle(Handle ha...
diff --git a/src/main/java/org/spout/nbt/CompoundTag.java b/src/main/java/org/spout/nbt/CompoundTag.java index fc5e6c9..add2b17 100644 --- a/src/main/java/org/spout/nbt/CompoundTag.java +++ b/src/main/java/org/spout/nbt/CompoundTag.java @@ -1,75 +1,75 @@ /* * This file is part of SimpleNBT. * * Copyright (c) 201...
true
true
public String toString() { String name = getName(); String append = ""; if (name != null && !name.equals("")) { append = "(\"" + this.getName() + "\")"; } StringBuilder bldr = new StringBuilder(); bldr.append("TAG_Compound").append(append).append(": ").append(value.size()).append(" entries\r\n{\r\n"); ...
public String toString() { String name = getName(); String append = ""; if (name != null && !name.equals("")) { append = "(\"" + this.getName() + "\")"; } StringBuilder bldr = new StringBuilder(); bldr.append("TAG_Compound").append(append).append(": ").append(value.size()).append(" entries\r\n{\r\n"); ...
diff --git a/opentripplanner-routing/src/test/java/org/opentripplanner/routing/algorithm/TestBikeRental.java b/opentripplanner-routing/src/test/java/org/opentripplanner/routing/algorithm/TestBikeRental.java index 3d9d11105..efc05802d 100644 --- a/opentripplanner-routing/src/test/java/org/opentripplanner/routing/algorit...
false
true
public void testBasic() throws Exception { // generate a very simple graph Graph graph = new Graph(); StreetVertex v1 = new IntersectionVertex(graph, "v1", new Coordinate(-77.0492, 38.856), "v1"); StreetVertex v2 = new IntersectionVertex(graph, "v2", new Coordinate(-7...
public void testBasic() throws Exception { // generate a very simple graph Graph graph = new Graph(); StreetVertex v1 = new IntersectionVertex(graph, "v1", new Coordinate(-77.0492, 38.856), "v1"); StreetVertex v2 = new IntersectionVertex(graph, "v2", new Coordinate(-7...
diff --git a/Client/src/bomberman/client/controller/Game.java b/Client/src/bomberman/client/controller/Game.java index 495e94e..61ca71e 100644 --- a/Client/src/bomberman/client/controller/Game.java +++ b/Client/src/bomberman/client/controller/Game.java @@ -1,188 +1,188 @@ package bomberman.client.controller; import...
true
true
public void run() { int period = 1000 / this.fps; while (true) { try { if (!this.started) { Thread.sleep(1000); continue; } { Player player = this.getCurrentPlayer(); ...
public void run() { int period = 1000 / this.fps; while (true) { try { if (!this.started) { Thread.sleep(1000); continue; } { Player player = this.getCurrentPlayer(); ...
diff --git a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/console/ConsoleSession.java b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/console/ConsoleSession.java index 0dbbfc17..bb43b14e 100644 --- a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/console/Co...
true
true
public final void close() { doClose(); ServiceRegistration current = sessionRegistration; if (current != null) current.unregister(); }
public final void close() { doClose(); ServiceRegistration current = sessionRegistration; if (current != null) { sessionRegistration = null; try { current.unregister(); } catch (IllegalStateException e) { // This can happen if the service is in the process of being // unregistered or if ano...
diff --git a/src/main/java/ar/edu/itba/paw/grupo1/controller/AbstractPropertyServlet.java b/src/main/java/ar/edu/itba/paw/grupo1/controller/AbstractPropertyServlet.java index 508b6bd..455cd5f 100644 --- a/src/main/java/ar/edu/itba/paw/grupo1/controller/AbstractPropertyServlet.java +++ b/src/main/java/ar/edu/itba/paw/gr...
true
true
protected Property getProperty(HttpServletRequest req, HttpServletResponse resp) { boolean error = false; error |= !checkIntegerParameter(req, "propertyType", 0, 1); error |= !checkIntegerParameter(req, "operationType", 0, 1); error |= !checkParameter(req, "neighbourhood", 0, 50); error |= !checkDou...
protected Property getProperty(HttpServletRequest req, HttpServletResponse resp) { boolean error = false; error |= !checkIntegerParameter(req, "propertyType", 0, 1); error |= !checkIntegerParameter(req, "operationType", 0, 1); error |= !checkParameter(req, "neighbourhood", 0, 50); error |= !checkDou...
diff --git a/src/uk/ac/kcl/inf/provoking/serialise/rdf/RDFSerialiser.java b/src/uk/ac/kcl/inf/provoking/serialise/rdf/RDFSerialiser.java index 8553b61..826e0c6 100644 --- a/src/uk/ac/kcl/inf/provoking/serialise/rdf/RDFSerialiser.java +++ b/src/uk/ac/kcl/inf/provoking/serialise/rdf/RDFSerialiser.java @@ -1,566 +1,566 @@...
true
true
private void serialise (Description description, Document document, List<URI> rolesAndLocations) { Term qualifiedRelation = Term.qualifiedDerivation; // References do not have serialisations in this document if (description instanceof Identified && ((Identified) description).isRefer...
private void serialise (Description description, Document document, List<URI> rolesAndLocations) { Term qualifiedRelation = Term.qualifiedDerivation; // References do not have serialisations in this document if (description instanceof Identified && ((Identified) description).isRefer...
diff --git a/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/ec2/EuWestRegionEc2Test.java b/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/ec2/EuWestRegionEc2Test.java index 795cf585..7e6289c4 100644 --- a/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify...
true
true
protected void customizeCloud() { service = (Ec2CloudService) getService(); service.setRegion("eu"); service.setKeyPair("ec2-sgtest-eu"); }
protected void customizeCloud() { service = (Ec2CloudService) getService(); service.setRegion("eu-west-1"); service.setKeyPair("ec2-sgtest-eu"); }
diff --git a/app/src/com/meiste/greg/ptw/Schedule.java b/app/src/com/meiste/greg/ptw/Schedule.java index 6c41e3a..33a32a5 100644 --- a/app/src/com/meiste/greg/ptw/Schedule.java +++ b/app/src/com/meiste/greg/ptw/Schedule.java @@ -1,56 +1,57 @@ /* * Copyright (C) 2012 Gregory S. Meiste <http://gregmeiste.com> * *...
true
true
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.schedule, container, false); Race[] races = new Race[Race.getNumRaces(getActivity())]; ListView lv = (ListView) v.findViewById(R.id.schedule); lv.setAdapter(new RaceItemAdap...
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.schedule, container, false); Race[] races = new Race[Race.getNumRaces(getActivity())]; ListView lv = (ListView) v.findViewById(R.id.schedule); lv.setAdapter(new RaceItemAdap...
diff --git a/java/src/BurpExtender.java b/java/src/BurpExtender.java index 182caee..87930db 100644 --- a/java/src/BurpExtender.java +++ b/java/src/BurpExtender.java @@ -1,312 +1,312 @@ //import javax.annotation.PostConstruct; import burp.IBurpExtender; import burp.IBurpExtenderCallbacks; import burp.IScanIssue; ...
false
true
public byte[] processProxyMessage( int messageReference, boolean messageIsRequest, String remoteHost, int remotePort, boolean serviceIsHttps, String httpMethod, String url, String resourceType, String statusCode, String respon...
public byte[] processProxyMessage( int messageReference, boolean messageIsRequest, String remoteHost, int remotePort, boolean serviceIsHttps, String httpMethod, String url, String resourceType, String statusCode, String respon...
diff --git a/srcj/com/sun/electric/tool/user/dialogs/GetInfoNode.java b/srcj/com/sun/electric/tool/user/dialogs/GetInfoNode.java index ae9a8a464..069f585b0 100755 --- a/srcj/com/sun/electric/tool/user/dialogs/GetInfoNode.java +++ b/srcj/com/sun/electric/tool/user/dialogs/GetInfoNode.java @@ -1,1766 +1,1766 @@ /* -*- t...
false
true
private void doLoadInfo() { // update current window EditWindow curWnd = EditWindow.getCurrent(); if (curWnd != null) wnd = curWnd; // must have a single node selected NodeInst ni = null; PortProto pp = null; int nodeCount = 0; if (wnd != null) { for(Highlight2 h : wnd.getHighlighter().getHighligh...
private void doLoadInfo() { // update current window EditWindow curWnd = EditWindow.getCurrent(); if (curWnd != null) wnd = curWnd; // must have a single node selected NodeInst ni = null; PortProto pp = null; int nodeCount = 0; if (wnd != null) { for(Highlight2 h : wnd.getHighlighter().getHighligh...
diff --git a/src/net/fififox/dailycalendaralarm/Service.java b/src/net/fififox/dailycalendaralarm/Service.java index a96589c..844473e 100644 --- a/src/net/fififox/dailycalendaralarm/Service.java +++ b/src/net/fififox/dailycalendaralarm/Service.java @@ -1,364 +1,363 @@ package net.fififox.dailycalendaralarm; import ...
false
true
private Alarm getNextAlarm() { Alarm alarm; long now = System.currentTimeMillis(); long midnightUTC = (now / MILLIS_IN_ONE_DAY) * MILLIS_IN_ONE_DAY; long today = midnightUTC - Calendar.getInstance().getTimeZone().getOffset(midnightUTC); long tomorrow = today + MILLIS_IN_ONE...
private Alarm getNextAlarm() { Alarm alarm; long now = System.currentTimeMillis(); long midnightUTC = (now / MILLIS_IN_ONE_DAY) * MILLIS_IN_ONE_DAY; long today = midnightUTC - Calendar.getInstance().getTimeZone().getOffset(midnightUTC); long tomorrow = today + MILLIS_IN_ONE...
diff --git a/src/com/trendrr/oss/appender/RollingFileAppender.java b/src/com/trendrr/oss/appender/RollingFileAppender.java index ee647d6..93adc16 100644 --- a/src/com/trendrr/oss/appender/RollingFileAppender.java +++ b/src/com/trendrr/oss/appender/RollingFileAppender.java @@ -1,286 +1,286 @@ /** * */ package com...
true
true
public void init() { if (this.init.start()) { try { //cleans up any old files, and creates the new one. String directory = System.getProperty("user.dir"); if (filename.contains(File.separator)) { directory = filename.substring(0, filename.lastIndexOf(File.separator)); if (!directory.sta...
public void init() { if (this.init.start()) { try { //cleans up any old files, and creates the new one. String directory = System.getProperty("user.dir"); if (filename.contains(File.separator)) { directory = filename.substring(0, filename.lastIndexOf(File.separator)); if (!directory.sta...
diff --git a/src/tests/org/xins/tests/common/collections/expiry/ExpiryFolderTests.java b/src/tests/org/xins/tests/common/collections/expiry/ExpiryFolderTests.java index fd02f7def..f0327da01 100644 --- a/src/tests/org/xins/tests/common/collections/expiry/ExpiryFolderTests.java +++ b/src/tests/org/xins/tests/common/colle...
false
true
public void testExpiryFolder() throws Throwable { ExpiryStrategy stategy = new ExpiryStrategy(60, 15); ExpiryFolder folder = new ExpiryFolder("Test1", stategy, false, 10l); assertEquals("Incorrect name.", "Test1", folder.getName()); assertEquals("Incorrect strategy.", stategy, folder.getStrat...
public void testExpiryFolder() throws Throwable { ExpiryStrategy stategy = new ExpiryStrategy(60, 15); ExpiryFolder folder = new ExpiryFolder("Test1", stategy, false, 10l); assertEquals("Incorrect name.", "Test1", folder.getName()); assertEquals("Incorrect strategy.", stategy, folder.getStrat...
diff --git a/src/main/java/com/arcao/geocaching/api/util/DisconnectableInputStream.java b/src/main/java/com/arcao/geocaching/api/util/DisconnectableInputStream.java index 5f399e7..5096bf2 100644 --- a/src/main/java/com/arcao/geocaching/api/util/DisconnectableInputStream.java +++ b/src/main/java/com/arcao/geocaching/api...
true
true
public void close() throws IOException { try { super.close(); } finally { con.disconnect(); } }
public void close() throws IOException { try { in.close(); } finally { con.disconnect(); } }
diff --git a/lib/jinterface/test/nc_SUITE_data/echo_server.java b/lib/jinterface/test/nc_SUITE_data/echo_server.java index 0550e4beb..5ecb5b72a 100644 --- a/lib/jinterface/test/nc_SUITE_data/echo_server.java +++ b/lib/jinterface/test/nc_SUITE_data/echo_server.java @@ -1,261 +1,267 @@ /* * %CopyrightBegin% * * Co...
true
true
private static OtpErlangObject twist(final OtpErlangObject i, final OtpErlangObject t) throws OtpErlangException { hash_set.add(i); if (t instanceof OtpErlangAtom) { final String atomValue = ((OtpErlangAtom) t).atomValue(); if (atomValue.equals("binary") && i instanceof OtpErlangBinary) { final O...
private static OtpErlangObject twist(final OtpErlangObject i, final OtpErlangObject t) throws OtpErlangException { hash_set.add(i); if (t instanceof OtpErlangAtom) { final String atomValue = ((OtpErlangAtom) t).atomValue(); if (atomValue.equals("binary") && i instanceof OtpErlangBinary) { final O...
diff --git a/MyFrame.java b/MyFrame.java index 49b66e3..897f061 100644 --- a/MyFrame.java +++ b/MyFrame.java @@ -1,103 +1,103 @@ import java.awt.BorderLayout; import java.awt.Image; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.File; import jav...
true
true
MyFrame() { // creates a Frame that contains 8 rows and 8 columns of randomly picked, colored and sized shapes super(); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setSize(800, 800); final ImageHolder image = new ImageHolder(); JPanel buttonContainer = new JPanel(); //Navigation buttonContaine...
MyFrame() { // creates a Frame that contains 8 rows and 8 columns of randomly picked, colored and sized shapes super(); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setSize(800, 800); final ImageHolder image = new ImageHolder(); JPanel buttonContainer = new JPanel(); //Navigation buttonContaine...
diff --git a/modules/dCache/org/dcache/pool/repository/RepositoryInterpreter.java b/modules/dCache/org/dcache/pool/repository/RepositoryInterpreter.java index d6d0a43a2d..923c4b3255 100755 --- a/modules/dCache/org/dcache/pool/repository/RepositoryInterpreter.java +++ b/modules/dCache/org/dcache/pool/repository/Reposito...
false
true
public Object ac_rep_ls_$_0_99(final Args args) throws Exception { if (args.argc() > 0) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < args.argc(); i++) { PnfsId pnfsid = new PnfsId(args.argv(i)); sb.append(_repository.getEntry(pnf...
public Object ac_rep_ls_$_0_99(final Args args) throws Exception { if (args.argc() > 0) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < args.argc(); i++) { PnfsId pnfsid = new PnfsId(args.argv(i)); sb.append(_repository.getEntry(pnf...
diff --git a/core/src/java/com/robonobo/core/service/UserService.java b/core/src/java/com/robonobo/core/service/UserService.java index 56efb95..ca58600 100644 --- a/core/src/java/com/robonobo/core/service/UserService.java +++ b/core/src/java/com/robonobo/core/service/UserService.java @@ -1,590 +1,590 @@ package com.ro...
false
true
public void login(final String email, final String password) throws IOException, SerializationException { // We get called immediately here, which might be before we've started... wait, if so if (!started) { startupLock.lock(); try { try { log.debug("Waiting to login until user service is started");...
public void login(final String email, final String password) throws IOException, SerializationException { // We get called immediately here, which might be before we've started... wait, if so if (!started) { startupLock.lock(); try { try { log.debug("Waiting to login until user service is started");...
diff --git a/integration-tests/src/test/java/org/torquebox/integration/arquillian/NoRootRackupTest.java b/integration-tests/src/test/java/org/torquebox/integration/arquillian/NoRootRackupTest.java index 2458a3adf..ff6822ddf 100644 --- a/integration-tests/src/test/java/org/torquebox/integration/arquillian/NoRootRackupTe...
false
true
public void testHappiness() { driver.get( "http://localhost:8080/norootrack" ); WebElement body = driver.findElementByTagName("body"); assertTrue( body.getText().trim().startsWith("RACK_ROOT") ); }
public void testHappiness() { driver.get( "http://localhost:8080/norootrackup" ); WebElement body = driver.findElementByTagName("body"); assertEquals("RACK_ROOT=vfs:"+System.getProperty("basedir")+"/apps/rack/1.1.0/norootrackup", body.getText().trim()); }
diff --git a/cli/src/test/java/com/predic8/membrane/examples/tests/QuickstartRESTTest.java b/cli/src/test/java/com/predic8/membrane/examples/tests/QuickstartRESTTest.java index 650a2961..2170b2db 100644 --- a/cli/src/test/java/com/predic8/membrane/examples/tests/QuickstartRESTTest.java +++ b/cli/src/test/java/com/predi...
true
true
public void doit() throws IOException, InterruptedException { File baseDir = getExampleDir("quickstart-rest"); Process2 sl = new Process2.Builder().in(baseDir).script("service-proxy").waitForMembrane().start(); try { String result = getAndAssert200("http://localhost:2000/restnames/name.groovy?name=Pia"); a...
public void doit() throws IOException, InterruptedException { File baseDir = getExampleDir("quickstart-rest"); Process2 sl = new Process2.Builder().in(baseDir).script("service-proxy").waitForMembrane().start(); try { String result = getAndAssert200("http://localhost:2000/restnames/name.groovy?name=Pia"); a...
diff --git a/src/main/java/org/primefaces/component/radiobutton/RadioButtonRenderer.java b/src/main/java/org/primefaces/component/radiobutton/RadioButtonRenderer.java index 7de84e144..78ccb2e15 100644 --- a/src/main/java/org/primefaces/component/radiobutton/RadioButtonRenderer.java +++ b/src/main/java/org/primefaces/co...
true
true
protected void encodeMarkup(FacesContext context, RadioButton radio, SelectOneRadio selectOneRadio) throws IOException { ResponseWriter writer = context.getResponseWriter(); String masterClientId = selectOneRadio.getClientId(context); String inputId = selectOneRadio.getRadioButtonId(context)...
protected void encodeMarkup(FacesContext context, RadioButton radio, SelectOneRadio selectOneRadio) throws IOException { ResponseWriter writer = context.getResponseWriter(); String masterClientId = selectOneRadio.getClientId(context); String inputId = selectOneRadio.getRadioButtonId(context)...
diff --git a/src/main/java/org/basex/core/Context.java b/src/main/java/org/basex/core/Context.java index 13b7d6080..e5ad3545f 100644 --- a/src/main/java/org/basex/core/Context.java +++ b/src/main/java/org/basex/core/Context.java @@ -1,269 +1,271 @@ package org.basex.core; import static org.basex.core.Text.*; imp...
false
true
public void register(final Progress pr) { // administrators will not be affected by the timeout if(!user.has(Perm.ADMIN)) pr.startTimeout(mprop.num(MainProp.TIMEOUT)); // get touched databases StringList sl = new StringList(1); if(!pr.databases(sl)) { // databases cannot be determined... pa...
public void register(final Progress pr) { // administrators will not be affected by the timeout if(!user.has(Perm.ADMIN)) pr.startTimeout(mprop.num(MainProp.TIMEOUT)); // get touched databases StringList sl = new StringList(1); if(!pr.databases(sl)) { // databases cannot be determined... pa...
diff --git a/src/se/chalmers/tda367/std/core/WaveController.java b/src/se/chalmers/tda367/std/core/WaveController.java index be0419e..26ace07 100644 --- a/src/se/chalmers/tda367/std/core/WaveController.java +++ b/src/se/chalmers/tda367/std/core/WaveController.java @@ -1,213 +1,216 @@ package se.chalmers.tda367.std.cor...
false
true
public void releaseEnemy(){ if(nextEnemy == null){ nextEnemy = wave.getNext(); } IBoardTile startTile = board.getTileAt(board.getStartPos()); if(startTile instanceof IWalkableTile){ addEnemy(nextEnemy); nextEnemy = wave.getNext(); if(nextEnemy != null){ releaseTimer.setInitialDelay(nextEne...
public void releaseEnemy(){ if(nextEnemy == null){ nextEnemy = wave.getNext(); } IBoardTile startTile = board.getTileAt(board.getStartPos()); if(startTile instanceof IWalkableTile && nextEnemy != null){ addEnemy(nextEnemy); nextEnemy = wave.getNext(); if(nextEnemy != null){ releaseTimer.s...
diff --git a/rxjava-core/src/main/java/rx/operators/OperationThrottle.java b/rxjava-core/src/main/java/rx/operators/OperationThrottle.java index 282347a38..ebef4e728 100644 --- a/rxjava-core/src/main/java/rx/operators/OperationThrottle.java +++ b/rxjava-core/src/main/java/rx/operators/OperationThrottle.java @@ -1,311 +...
true
true
public void testThrottlingWithCompleted() { Observable<String> source = Observable.create(new Func1<Observer<String>, Subscription>() { @Override public Subscription call(Observer<String> observser) { publishNext(observser, 100, "one"); // Shoul...
public void testThrottlingWithCompleted() { Observable<String> source = Observable.create(new Func1<Observer<String>, Subscription>() { @Override public Subscription call(Observer<String> observer) { publishNext(observer, 100, "one"); // Should ...
diff --git a/TTP/src/ttp/model/TTPSolution.java b/TTP/src/ttp/model/TTPSolution.java index 68c033b..41374e3 100644 --- a/TTP/src/ttp/model/TTPSolution.java +++ b/TTP/src/ttp/model/TTPSolution.java @@ -1,155 +1,155 @@ package ttp.model; import ttp.util.TtpSolutionHelper; public class TTPSolution { // [round][...
true
true
public String toString() { StringBuilder sb = new StringBuilder(); sb.append("Round/Games\n"); for (int round = 0; round < schedule.length; round++) { sb.append(round); sb.append("|\t"); for (int team = 0; team < schedule[0].length; team++) { if (schedule[round][team] > 0) { sb.append(" "); ...
public String toString() { StringBuilder sb = new StringBuilder(); sb.append("Round/Games\n"); for (int round = 0; round < schedule.length; round++) { sb.append(round); sb.append("|\t"); for (int team = 0; team < schedule[0].length; team++) { if (schedule[round][team] >= 0) { sb.append(" "); ...
diff --git a/main/src/cgeo/geocaching/connector/gc/GCParser.java b/main/src/cgeo/geocaching/connector/gc/GCParser.java index 7fc06c1fa..9edc34ff3 100644 --- a/main/src/cgeo/geocaching/connector/gc/GCParser.java +++ b/main/src/cgeo/geocaching/connector/gc/GCParser.java @@ -1,1676 +1,1682 @@ package cgeo.geocaching.conn...
false
true
static SearchResult parseCacheFromText(final String page, final CancellableHandler handler) { CancellableHandler.sendLoadProgressDetail(handler, R.string.cache_dialog_loading_details_status_details); if (StringUtils.isBlank(page)) { Log.e("GCParser.parseCache: No page given"); ...
static SearchResult parseCacheFromText(final String page, final CancellableHandler handler) { CancellableHandler.sendLoadProgressDetail(handler, R.string.cache_dialog_loading_details_status_details); if (StringUtils.isBlank(page)) { Log.e("GCParser.parseCache: No page given"); ...
diff --git a/src/net/ab0oo/aprs/parser/PositionPacket.java b/src/net/ab0oo/aprs/parser/PositionPacket.java index e0505db..3e88f3e 100644 --- a/src/net/ab0oo/aprs/parser/PositionPacket.java +++ b/src/net/ab0oo/aprs/parser/PositionPacket.java @@ -1,169 +1,169 @@ /* * AVRS - http://avrs.sourceforge.net/ * * Copyrig...
true
true
public PositionPacket(byte[] msgBody, String destinationField) throws Exception { super(msgBody); positionSource = "Unknown"; char packetType = (char) msgBody[0]; int cursor = 0; switch (packetType) { case '\'' : case '`': // Possibly MICe // (char)packet.length >= 9 ? type = APRSTypes.T_POSITIO...
public PositionPacket(byte[] msgBody, String destinationField) throws Exception { super(msgBody); positionSource = "Unknown"; char packetType = (char) msgBody[0]; int cursor = 0; switch (packetType) { case '\'' : case '`': // Possibly MICe // (char)packet.length >= 9 ? type = APRSTypes.T_POSITIO...
diff --git a/grisu-client/src/main/java/Grisu.java b/grisu-client/src/main/java/Grisu.java index 8b3e6c4e..251ebf0e 100644 --- a/grisu-client/src/main/java/Grisu.java +++ b/grisu-client/src/main/java/Grisu.java @@ -1,115 +1,116 @@ import com.beust.jcommander.JCommander; import com.google.common.collect.Maps; import ...
true
true
protected void run() { try { if (getLoginParameters().isNologin()) { System.out.println("Doing nothing..."); System.exit(0); } else { credential = getCredential(); serviceInterface = getServiceInterface(); ...
protected void run() { try { if (getLoginParameters().isNologin()) { System.out.println("Doing nothing..."); System.exit(0); } else { credential = getCredential(); serviceInterface = getServiceInterface(); ...
diff --git a/java/kouchat/src/net/usikkert/kouchat/net/ConnectionWorker.java b/java/kouchat/src/net/usikkert/kouchat/net/ConnectionWorker.java index 08c89bc5..070b3bf5 100644 --- a/java/kouchat/src/net/usikkert/kouchat/net/ConnectionWorker.java +++ b/java/kouchat/src/net/usikkert/kouchat/net/ConnectionWorker.java @@ -1...
true
true
public void run() { LOG.log( Level.INFO, "Network is starting" ); while ( run ) { try { NetworkInterface netif = selectNetworkInterface(); // No network interface to connect with if ( !isUsable( netif ) ) { LOG.log( Level.WARNING, "Network is down, sleeping" ); // To avoid noti...
public void run() { LOG.log( Level.INFO, "Network is starting" ); while ( run ) { try { NetworkInterface netif = selectNetworkInterface(); // No network interface to connect with if ( !isUsable( netif ) ) { LOG.log( Level.WARNING, "Network is down, sleeping" ); // To avoid noti...
diff --git a/src/Homes.java b/src/Homes.java index 98e0e4d..6ef8866 100755 --- a/src/Homes.java +++ b/src/Homes.java @@ -1,216 +1,216 @@ import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.logging.Logger; public class Homes extends Plugin { private final...
true
true
public boolean onCommand(Player player, String[] split) { if (split[0].equalsIgnoreCase("/homes") && player.canUseCommand(split[0])) { boolean usage = false; String name = ""; if (split.length >= 3) { for (int i = 2; i < split.length; i++) name += split[i] + " "; name = name.trim(); ...
public boolean onCommand(Player player, String[] split) { if (split[0].equalsIgnoreCase("/homes") && player.canUseCommand(split[0])) { boolean usage = false; String name = ""; if (split.length >= 3) { for (int i = 2; i < split.length; i++) name += split[i] + " "; name = name.trim(); ...
diff --git a/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidatorTest.java b/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidatorTest.java index 5e17f3bf..6920eea7 100644 --- a/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidatorTest.java +++ b/doxia-core/src/...
true
true
public void testXmlFilesWithDoxiaNamespaces() throws Exception { for ( Iterator it = getScmRepositoryWrapper().iterator(); it.hasNext(); ) { ScmRepositoryWrapper wrapper = (ScmRepositoryWrapper) it.next(); for ( Iterator it2 = getXmlFiles( wrapper ).iterator(); i...
public void testXmlFilesWithDoxiaNamespaces() throws Exception { for ( Iterator it = getScmRepositoryWrapper().iterator(); it.hasNext(); ) { ScmRepositoryWrapper wrapper = (ScmRepositoryWrapper) it.next(); for ( Iterator it2 = getXmlFiles( wrapper ).iterator(); i...
diff --git a/org.mosaic.runner/src/main/java/org/mosaic/runner/boot/artifact/resolve/AbstractBootArtifactResolver.java b/org.mosaic.runner/src/main/java/org/mosaic/runner/boot/artifact/resolve/AbstractBootArtifactResolver.java index 8efae796..ef2295d3 100644 --- a/org.mosaic.runner/src/main/java/org/mosaic/runner/boot/...
true
true
protected final Set<Bundle> installOrUpdateBundle( BootArtifact artifact, File bundleFile ) throws CannotInstallBootArtifactException { String fileSymbolicName; Version fileVersion; boolean snapshot; try { JarFile jarFile = new JarFile( bundleFile, true, J...
protected final Set<Bundle> installOrUpdateBundle( BootArtifact artifact, File bundleFile ) throws CannotInstallBootArtifactException { String fileSymbolicName; Version fileVersion; boolean snapshot; try { JarFile jarFile = new JarFile( bundleFile, true, J...
diff --git a/deegree-misc/deegree-maven-plugin/src/main/java/org/deegree/maven/WorkspaceMojo.java b/deegree-misc/deegree-maven-plugin/src/main/java/org/deegree/maven/WorkspaceMojo.java index 9e5140c620..ae0b15a585 100644 --- a/deegree-misc/deegree-maven-plugin/src/main/java/org/deegree/maven/WorkspaceMojo.java +++ b/de...
true
true
public void execute() throws MojoExecutionException, MojoFailureException { Log log = getLog(); File dir = new File( project.getBasedir(), "src/main/webapp/WEB-INF/workspace" ); if ( !dir.isDirectory() ) { dir = new File( project.getBasedir(), "src/mai...
public void execute() throws MojoExecutionException, MojoFailureException { Log log = getLog(); File dir = new File( project.getBasedir(), "src/main/webapp/WEB-INF/workspace" ); if ( !dir.isDirectory() ) { dir = new File( project.getBasedir(), "src/mai...
diff --git a/src/share/classes/com/sun/tools/javafx/comp/JavafxToJava.java b/src/share/classes/com/sun/tools/javafx/comp/JavafxToJava.java index aab737e91..5abc3e1ed 100644 --- a/src/share/classes/com/sun/tools/javafx/comp/JavafxToJava.java +++ b/src/share/classes/com/sun/tools/javafx/comp/JavafxToJava.java @@ -1,3233 ...
false
true
public void visitClassDeclaration(JFXClassDeclaration tree) { JFXClassDeclaration prevClass = currentClass; JFXClassDeclaration prevEnclClass = attrEnv.enclClass; State prevState = state; state = new State(); currentClass = tree; new ForEachInClauseOwnerFixer().scan(...
public void visitClassDeclaration(JFXClassDeclaration tree) { JFXClassDeclaration prevClass = currentClass; JFXClassDeclaration prevEnclClass = attrEnv.enclClass; State prevState = state; state = new State(); currentClass = tree; new ForEachInClauseOwnerFixer().scan(...
diff --git a/org.eclipse.emf.emfstore.client/src/org/eclipse/emf/emfstore/client/model/changeTracking/merging/util/DescriptionProvider.java b/org.eclipse.emf.emfstore.client/src/org/eclipse/emf/emfstore/client/model/changeTracking/merging/util/DescriptionProvider.java index fd988b5fc..8eb1f158c 100644 --- a/org.eclipse...
true
true
private Properties load() { Properties properties = new Properties(); URL url; InputStream inputStream = null; try { url = new URL("platform:/plugin/de.vogella.rcp.plugin.filereader/files/test.txt"); inputStream = url.openConnection().getInputStream(); properties.load(inputStream); } catch (Malform...
private Properties load() { Properties properties = new Properties(); URL url; InputStream inputStream = null; try { url = new URL("platform:/plugin/org.eclipse.emf.emfstore.client/resources/conflictdescription.ini"); inputStream = url.openConnection().getInputStream(); properties.load(inputStream); ...
diff --git a/trunk/src/java/org/apache/commons/dbcp/BasicDataSourceFactory.java b/trunk/src/java/org/apache/commons/dbcp/BasicDataSourceFactory.java index cfe4124..331d867 100644 --- a/trunk/src/java/org/apache/commons/dbcp/BasicDataSourceFactory.java +++ b/trunk/src/java/org/apache/commons/dbcp/BasicDataSourceFactory....
true
true
public static DataSource createDataSource(Properties properties) throws Exception { BasicDataSource dataSource = new BasicDataSource(); String value = null; value = properties.getProperty(PROP_DEFAULTAUTOCOMMIT); if (value != null) { dataSource.setDefaultAutoCommit(Boole...
public static DataSource createDataSource(Properties properties) throws Exception { BasicDataSource dataSource = new BasicDataSource(); String value = null; value = properties.getProperty(PROP_DEFAULTAUTOCOMMIT); if (value != null) { dataSource.setDefaultAutoCommit(Boole...
diff --git a/src/test/java/org/elasticsearch/index/engine/robin/RobinEngineIntegrationTest.java b/src/test/java/org/elasticsearch/index/engine/robin/RobinEngineIntegrationTest.java index f646a9f0970..9ca9215b5ff 100644 --- a/src/test/java/org/elasticsearch/index/engine/robin/RobinEngineIntegrationTest.java +++ b/src/te...
true
true
public void test4093() { assertAcked(prepareCreate("test").setSettings(ImmutableSettings.settingsBuilder() .put("index.store.type", "memory") .put("cache.memory.large_cache_size", new ByteSizeValue(1, ByteSizeUnit.MB)) // no need to cache a lot .put("index.num...
public void test4093() { assertAcked(prepareCreate("test").setSettings(ImmutableSettings.settingsBuilder() .put("index.store.type", "memory") .put("cache.memory.large_cache_size", new ByteSizeValue(1, ByteSizeUnit.MB)) // no need to cache a lot .put("index.num...
diff --git a/Android/src/org/libsdl/app/SDLActivity.java b/Android/src/org/libsdl/app/SDLActivity.java index 2c2f109ac..61e3b2bcd 100644 --- a/Android/src/org/libsdl/app/SDLActivity.java +++ b/Android/src/org/libsdl/app/SDLActivity.java @@ -1,607 +1,606 @@ // Modified by Lasse Oorni for Urho3D package org.libsdl.ap...
true
true
public static boolean initEGL(int majorVersion, int minorVersion) { if (SDLActivity.mSingleton.mEGLDisplay == null) { //Log.v("SDL", "Starting up OpenGL ES " + majorVersion + "." + minorVersion); try { EGL10 egl = (EGL10)EGLContext.getEGL(); EGLDisp...
public static boolean initEGL(int majorVersion, int minorVersion) { if (SDLActivity.mSingleton.mEGLDisplay == null) { //Log.v("SDL", "Starting up OpenGL ES " + majorVersion + "." + minorVersion); try { EGL10 egl = (EGL10)EGLContext.getEGL(); EGLDisp...
diff --git a/Arctica/src/com/github/CubieX/Arctica/ArcSchedulerHandler.java b/Arctica/src/com/github/CubieX/Arctica/ArcSchedulerHandler.java index e1c32d0..5e63ee9 100644 --- a/Arctica/src/com/github/CubieX/Arctica/ArcSchedulerHandler.java +++ b/Arctica/src/com/github/CubieX/Arctica/ArcSchedulerHandler.java @@ -1,739 +...
true
true
void task_applyColdDamage() // this will be run as many ticks as needed to handle all players. { // this is a synchronous single task. It will be run once on the next tick. plugin.getServer().getScheduler().runTask(plugin, new Runnable() { @Override public void...
void task_applyColdDamage() // this will be run as many ticks as needed to handle all players. { // this is a synchronous single task. It will be run once on the next tick. plugin.getServer().getScheduler().runTask(plugin, new Runnable() { @Override public void...
diff --git a/src/RiseOfDeath/Help/Help.java b/src/RiseOfDeath/Help/Help.java index 9f82a49..ad8cb2d 100644 --- a/src/RiseOfDeath/Help/Help.java +++ b/src/RiseOfDeath/Help/Help.java @@ -1,624 +1,624 @@ /* This file is part of McCity Help. Copyright © 2011, 2012 Anton Belousov McCity Help is free softwar...
true
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { boolean isHavePage=false; int page = -1; String strBuf; if(label.equalsIgnoreCase("help")) { if(hasPerm((Player)sender,"mccityhelp.user", true)) { try { if(args.length!=0) { pa...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { boolean isHavePage=false; int page = -1; String strBuf; if(label.equalsIgnoreCase("help")) { if(hasPerm((Player)sender,"mccityhelp.user", true)) { try { if(args.length!=0) { pa...
diff --git a/appjar/src/main/java/com/google/gerrit/client/Link.java b/appjar/src/main/java/com/google/gerrit/client/Link.java index 193590fb6..ff776d5da 100644 --- a/appjar/src/main/java/com/google/gerrit/client/Link.java +++ b/appjar/src/main/java/com/google/gerrit/client/Link.java @@ -1,133 +1,133 @@ // Copyright 2...
true
true
private Screen select(final String token) { String p; if (token == null) { return null; } if (SETTINGS.equals(token)) { return new AccountSettings(); } if (MINE.equals(token)) { return new AccountDashboardScreen(RpcUtil.getAccountId()); } if (MINE_STARRED.equals(t...
private Screen select(final String token) { String p; if (token == null) { return null; } if (SETTINGS.equals(token)) { return new AccountSettings(); } if (MINE.equals(token)) { return new AccountDashboardScreen(RpcUtil.getAccountId()); } if (MINE_STARRED.equals(t...
diff --git a/jcr/core/src/main/java/org/crsh/jcr/SCPCommand.java b/jcr/core/src/main/java/org/crsh/jcr/SCPCommand.java index ba9f3d31..48ec1567 100644 --- a/jcr/core/src/main/java/org/crsh/jcr/SCPCommand.java +++ b/jcr/core/src/main/java/org/crsh/jcr/SCPCommand.java @@ -1,224 +1,224 @@ /* * Copyright (C) 2003-2009 e...
true
true
private void execute() throws Exception { Map<String, String> properties = new HashMap<String, String>(); // Need portal container name ? int pos1 = target.indexOf(':'); String path; String workspaceName; if (pos1 != -1) { int pos2 = target.indexOf(':', pos1 + 1); if (pos2 != -1) ...
private void execute() throws Exception { Map<String, String> properties = new HashMap<String, String>(); // Need portal container name ? int pos1 = target.indexOf(':'); String path; String workspaceName; if (pos1 != -1) { int pos2 = target.indexOf(':', pos1 + 1); if (pos2 != -1) ...
diff --git a/src/main/java/org/clarent/ivyidea/resolve/DependencyResolver.java b/src/main/java/org/clarent/ivyidea/resolve/DependencyResolver.java index 0b4c3a3..d2454bc 100644 --- a/src/main/java/org/clarent/ivyidea/resolve/DependencyResolver.java +++ b/src/main/java/org/clarent/ivyidea/resolve/DependencyResolver.java...
false
true
protected void extractDependencies(ResolveReport resolveReport, IntellijModuleDependencies moduleDependencies) { final String[] resolvedConfigurations = resolveReport.getConfigurations(); for (String resolvedConfiguration : resolvedConfigurations) { ConfigurationResolveReport configurati...
protected void extractDependencies(ResolveReport resolveReport, IntellijModuleDependencies moduleDependencies) throws IOException { final String[] resolvedConfigurations = resolveReport.getConfigurations(); for (String resolvedConfiguration : resolvedConfigurations) { ConfigurationResolv...
diff --git a/src/java/org/kisst/gft/filetransfer/Channel.java b/src/java/org/kisst/gft/filetransfer/Channel.java index b2c9f8a..33d85e5 100644 --- a/src/java/org/kisst/gft/filetransfer/Channel.java +++ b/src/java/org/kisst/gft/filetransfer/Channel.java @@ -1,42 +1,42 @@ package org.kisst.gft.filetransfer; import or...
true
true
public Channel(GftContainer gft, Props props) { this.action=new ActionList(gft, props); this.props=props; this.name=props.getLocalName(); Object errorProps=props.get("error"); if (errorProps instanceof Props) this.errorAction=new ActionList(gft, (Props) errorProps); else if (errorProps==null) this.e...
public Channel(GftContainer gft, Props props) { this.action=new ActionList(gft, props); this.props=props; this.name=props.getLocalName(); Object errorProps=props.get("error",null); if (errorProps instanceof Props) this.errorAction=new ActionList(gft, (Props) errorProps); else if (errorProps==null) t...
diff --git a/solver/src/main/java/solver/objective/ObjectiveStrategy.java b/solver/src/main/java/solver/objective/ObjectiveStrategy.java index acdfd5202..003fa6ac5 100644 --- a/solver/src/main/java/solver/objective/ObjectiveStrategy.java +++ b/solver/src/main/java/solver/objective/ObjectiveStrategy.java @@ -1,239 +1,23...
true
true
public Decision getDecision() { if (obj.instantiated() || solver.getMeasures().getSolutionCount() == 0 || (nbSols == solver.getMeasures().getSolutionCount() && optPolicy == OptimizationPolicy.DICHOTOMIC)) { return null; } if (firstCall) { firstCall = f...
public Decision getDecision() { if (solver.getMeasures().getSolutionCount() == 0 || (nbSols == solver.getMeasures().getSolutionCount() && optPolicy == OptimizationPolicy.DICHOTOMIC)) { return null; } if (firstCall) { firstCall = false; glob...
diff --git a/tregmine/src/info/tregmine/Tregmine.java b/tregmine/src/info/tregmine/Tregmine.java index 6240d88..60d7b1d 100644 --- a/tregmine/src/info/tregmine/Tregmine.java +++ b/tregmine/src/info/tregmine/Tregmine.java @@ -1,429 +1,429 @@ package info.tregmine; import info.tregmine.api.TregminePlayer; import i...
false
true
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) { String commandName = command.getName().toLowerCase(); Player from = null; TregminePlayer player = null; if(!(sender instanceof Player)) { if(commandName.equals("say")) { StringBuffer buf = new StringBuf...
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) { String commandName = command.getName().toLowerCase(); Player from = null; TregminePlayer player = null; if(!(sender instanceof Player)) { if(commandName.equals("say")) { StringBuffer buf = new StringBuf...
diff --git a/src/org/wikimedia/commons/UploadService.java b/src/org/wikimedia/commons/UploadService.java index 18b15700..de8752ea 100644 --- a/src/org/wikimedia/commons/UploadService.java +++ b/src/org/wikimedia/commons/UploadService.java @@ -1,275 +1,275 @@ package org.wikimedia.commons; import java.io.*; import ...
true
true
protected void onHandleIntent(Intent intent) { MWApi api = app.getApi(); InputStream file = null; long length = 0; ApiResult result; RemoteViews notificationView; Bundle extras = intent.getExtras(); Uri mediaUri = (Uri)extras.getParcelable(EXTRA_MEDIA_URI); ...
protected void onHandleIntent(Intent intent) { MWApi api = app.getApi(); InputStream file = null; long length = 0; ApiResult result; RemoteViews notificationView; Bundle extras = intent.getExtras(); Uri mediaUri = (Uri)extras.getParcelable(EXTRA_MEDIA_URI); ...
diff --git a/ufd/GreatestCommonDivisorModEval.java b/ufd/GreatestCommonDivisorModEval.java index ffef018e..3686d2ee 100644 --- a/ufd/GreatestCommonDivisorModEval.java +++ b/ufd/GreatestCommonDivisorModEval.java @@ -1,310 +1,318 @@ /* * $Id$ */ package edu.jas.ufd; import org.apache.log4j.Logger; impor...
false
true
public GenPolynomial<ModInteger> gcd( GenPolynomial<ModInteger> P, GenPolynomial<ModInteger> S ) { if ( S == null || S.isZERO() ) { return P; } if ( P == null || P.isZERO() ) { return S; } GenPolynomialRing<Mod...
public GenPolynomial<ModInteger> gcd( GenPolynomial<ModInteger> P, GenPolynomial<ModInteger> S ) { if ( S == null || S.isZERO() ) { return P; } if ( P == null || P.isZERO() ) { return S; } GenPolynomialRing<Mod...
diff --git a/drools-analytics/src/test/java/org/drools/analytics/AnalyzerTest.java b/drools-analytics/src/test/java/org/drools/analytics/AnalyzerTest.java index 4890347591..e026db6abb 100644 --- a/drools-analytics/src/test/java/org/drools/analytics/AnalyzerTest.java +++ b/drools-analytics/src/test/java/org/drools/analy...
false
true
public void fixmetestAnalyzer() throws Exception { Analyzer anal = new Analyzer(); DrlParser p = new DrlParser(); InputStreamReader reader = new InputStreamReader(this.getClass().getResourceAsStream("Misc3.drl")); PackageDescr pkg = p.parse(reader); assertFalse(p.hasErrors()); anal.addPackageDescr(pkg); ...
public void testAnalyzer() throws Exception { Analyzer anal = new Analyzer(); DrlParser p = new DrlParser(); InputStreamReader reader = new InputStreamReader(this.getClass().getResourceAsStream("Misc3.drl")); PackageDescr pkg = p.parse(reader); assertFalse(p.hasErrors()); anal.addPackageDescr(pkg); ana...
diff --git a/freeplane/src/org/freeplane/view/swing/map/ZoomableLabelUI.java b/freeplane/src/org/freeplane/view/swing/map/ZoomableLabelUI.java index 510844686..896ae3aa4 100644 --- a/freeplane/src/org/freeplane/view/swing/map/ZoomableLabelUI.java +++ b/freeplane/src/org/freeplane/view/swing/map/ZoomableLabelUI.java @@ ...
true
true
protected String layoutCL(final JLabel label, final FontMetrics fontMetrics, final String text, final Icon icon, final Rectangle viewR, final Rectangle iconR, final Rectangle textR) { final ZoomableLabel zLabel = (ZoomableLabel) label; View v = null; Number preferredWidth = null; if ...
protected String layoutCL(final JLabel label, final FontMetrics fontMetrics, final String text, final Icon icon, final Rectangle viewR, final Rectangle iconR, final Rectangle textR) { final ZoomableLabel zLabel = (ZoomableLabel) label; View v = null; Number preferredWidth = null; if ...
diff --git a/src/biz/bokhorst/xprivacy/XApplication.java b/src/biz/bokhorst/xprivacy/XApplication.java index 9a5b1278..954cdc77 100644 --- a/src/biz/bokhorst/xprivacy/XApplication.java +++ b/src/biz/bokhorst/xprivacy/XApplication.java @@ -1,117 +1,118 @@ package biz.bokhorst.xprivacy; import java.util.ArrayList; i...
true
true
protected void after(XParam param) throws Throwable { if (mMethod == Methods.onCreate) { // Install receiver for package management if (PrivacyManager.isApplication(Process.myUid()) && !mReceiverInstalled) try { Application app = (Application) param.thisObject; if (app != null) { mReceiverI...
protected void after(XParam param) throws Throwable { if (mMethod == Methods.onCreate) { // Install receiver for package management if (PrivacyManager.isApplication(Process.myUid()) && !mReceiverInstalled) try { Application app = (Application) param.thisObject; if (app != null) { mReceiverI...
diff --git a/src/web/app/src/main/java/org/geoserver/filters/SessionDebugFilter.java b/src/web/app/src/main/java/org/geoserver/filters/SessionDebugFilter.java index 22e9eb7fb1..2dae9ed44c 100644 --- a/src/web/app/src/main/java/org/geoserver/filters/SessionDebugFilter.java +++ b/src/web/app/src/main/java/org/geoserver/f...
false
true
public HttpSession getSession(boolean create) { // first off, try to grab an existing session HttpSession session = super.getSession(false); if (session != null || !create) { return session; } // ok, no session but the caller really w...
public HttpSession getSession(boolean create) { // first off, try to grab an existing session HttpSession session = super.getSession(false); if (session != null || !create) { return session; } // ok, no session but the caller really w...
diff --git a/helloworld/src/main/java/org/jboss/as/quickstarts/helloworld/HelloWorldServlet.java b/helloworld/src/main/java/org/jboss/as/quickstarts/helloworld/HelloWorldServlet.java index b052c7e0..e80f7e29 100644 --- a/helloworld/src/main/java/org/jboss/as/quickstarts/helloworld/HelloWorldServlet.java +++ b/helloworl...
true
true
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { PrintWriter writer = resp.getWriter(); writer.println(PAGE_HEADER); writer.println("<h1>" + helloService.createHelloMessage("World") + "</h1>"); writer.println(PAGE_FOOTER); wri...
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { resp.setContentType("text/html"); PrintWriter writer = resp.getWriter(); writer.println(PAGE_HEADER); writer.println("<h1>" + helloService.createHelloMessage("World") + "</h1>"); ...
diff --git a/modules/openlmis-web/src/test/java/org/openlmis/web/controller/ProgramControllerTest.java b/modules/openlmis-web/src/test/java/org/openlmis/web/controller/ProgramControllerTest.java index 32fe24fec5..b638cd2204 100644 --- a/modules/openlmis-web/src/test/java/org/openlmis/web/controller/ProgramControllerTes...
true
true
public void shouldGetListOfUserSupportedProgramsForAFacilityForGivenRights() { Program program = new Program(); List<Program> programs = new ArrayList<>(Arrays.asList(program)); Long facilityId = 12345L; when(programService.getProgramsSupportedByUserHomeFacilityWithRights(facilityId, USER_ID, VIEW_R...
public void shouldGetListOfUserSupportedProgramsForAFacilityForGivenRights() { Program program = new Program(); List<Program> programs = new ArrayList<>(Arrays.asList(program)); Long facilityId = 12345L; when(programService.getProgramsForUserByFacilityAndRights(facilityId, USER_ID, VIEW_REQUISITION)...
diff --git a/src/main/java/me/eccentric_nz/TARDIS/travel/TARDISTimeTravel.java b/src/main/java/me/eccentric_nz/TARDIS/travel/TARDISTimeTravel.java index c83e1c5bb..6eb38ba39 100644 --- a/src/main/java/me/eccentric_nz/TARDIS/travel/TARDISTimeTravel.java +++ b/src/main/java/me/eccentric_nz/TARDIS/travel/TARDISTimeTravel....
true
true
public Location randomDestination(Player p, byte rx, byte rz, byte ry, TARDISConstants.COMPASS d, String e, World this_world, boolean malfunction) { int startx, starty, startz, resetx, resetz, listlen, rw; World randworld = null; boolean danger = true; int count; // there nee...
public Location randomDestination(Player p, byte rx, byte rz, byte ry, TARDISConstants.COMPASS d, String e, World this_world, boolean malfunction) { int startx, starty, startz, resetx, resetz, listlen, rw; World randworld = null; boolean danger = true; int count; // there nee...
diff --git a/plugins/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/util/DriverLoader.java b/plugins/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/util/DriverLoader.java index 5854fee15..a044d0a5b 100644 --- a/plugins/org.eclipse.birt.report...
true
true
public static Connection getConnection( String driverClassName, String connectionString, String userId, String password ) throws SQLException { try { return JDBCDriverManager.getInstance( ) .getConnection( driverClassName, connectionString, userId, password ); } catch ( Exce...
public static Connection getConnection( String driverClassName, String connectionString, String userId, String password ) throws SQLException { try { return JDBCDriverManager.getInstance( ) .getConnection( driverClassName, connectionString, userId, password, null ); } catch ...
diff --git a/src/data/GameData.java b/src/data/GameData.java index 8d54e82..219f379 100644 --- a/src/data/GameData.java +++ b/src/data/GameData.java @@ -1,172 +1,172 @@ package data; import sun.reflect.generics.reflectiveObjects.NotImplementedException; /** * GameData is the class that will be used to keep tra...
false
true
public Object getContestant(String first, String last) { Contestant j; // loop through array for(int i = 0; i <= numContestants; i++){ j = activeContestants[i]; // get Contestant object for comparison if(first.equals(j.getFirstName()) && last.equals(j.getLastName())){ // ensure names match return j; //...
public Contestant getContestant(String first, String last) { Contestant j; // loop through array for(int i = 0; i <= numContestants; i++){ j = activeContestants[i]; // get Contestant object for comparison if(first.equals(j.getFirstName()) && last.equals(j.getLastName())){ // ensure names match return j...
diff --git a/com/ai/myplugin/sensor/PingSensor.java b/com/ai/myplugin/sensor/PingSensor.java index aafa161..426487a 100644 --- a/com/ai/myplugin/sensor/PingSensor.java +++ b/com/ai/myplugin/sensor/PingSensor.java @@ -1,116 +1,116 @@ /** * created by: Veselin Pizurica * Date: 06/03/12 */ package com.ai.myplugi...
true
true
public TestResult execute(TestSessionContext testSessionContext) { boolean reachable = false; boolean testSuccess = true; try { reachable = getAddress().isReachable(getTimeOut()); } catch (IOException e) { testSuccess = false; System.err.println(e...
public TestResult execute(TestSessionContext testSessionContext) { boolean reachable = false; boolean testSuccess = true; try { reachable = getAddress().isReachable(getTimeOut()); } catch (Exception e) { testSuccess = false; System.err.println(e.g...
diff --git a/src/edu/cuny/qc/speech/AuToBI/AuToBITrainer.java b/src/edu/cuny/qc/speech/AuToBI/AuToBITrainer.java index 7444bf1..3815ed2 100644 --- a/src/edu/cuny/qc/speech/AuToBI/AuToBITrainer.java +++ b/src/edu/cuny/qc/speech/AuToBI/AuToBITrainer.java @@ -1,116 +1,116 @@ /* AuToBITrainer.java Copyright (c) 20...
true
true
public void trainClassifier(Collection<String> filenames, FeatureSet fs, AuToBIClassifier classifier) throws Exception { for (String filename : filenames) { String file_stem = filename.substring(0, filename.lastIndexOf('.')); String wav_filename = file_stem + ".wav"; AuToBIWordReader re...
public void trainClassifier(Collection<String> filenames, FeatureSet fs, AuToBIClassifier classifier) throws Exception { for (String filename : filenames) { String file_stem = filename.substring(0, filename.lastIndexOf('.')); String wav_filename = file_stem + ".wav"; AuToBIWordReader re...
diff --git a/src/com/csipsimple/ui/dialpad/DialerLayout.java b/src/com/csipsimple/ui/dialpad/DialerLayout.java index e86ca996..08279fdd 100644 --- a/src/com/csipsimple/ui/dialpad/DialerLayout.java +++ b/src/com/csipsimple/ui/dialpad/DialerLayout.java @@ -1,129 +1,137 @@ /** * Copyright (C) 2010-2012 Regis Montoya (a...
true
true
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int height = MeasureSpec.getSize(heightMeasureSpec); DisplayMetrics dm = getResources().getDisplayMetrics(); float density = dm.density; // If we detect that height for pad will not be enough... force it...
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int height = MeasureSpec.getSize(heightMeasureSpec); DisplayMetrics dm = getResources().getDisplayMetrics(); float density = dm.density; // If we detect that height for pad will not be enough... force it...
diff --git a/src/main/java/net/crimsoncraft/portlistener/net/RequestHandler.java b/src/main/java/net/crimsoncraft/portlistener/net/RequestHandler.java index e473e69..94d0013 100644 --- a/src/main/java/net/crimsoncraft/portlistener/net/RequestHandler.java +++ b/src/main/java/net/crimsoncraft/portlistener/net/RequestHand...
true
true
private boolean parseRequest(String request) { String[] parts = request.split(";"); if (parts.length < 3) { return false; } String referer = parts[0]; String key = parts[1]; StringBuilder contentBuilder = new StringBuilder(parts[2]); for (int i = ...
private boolean parseRequest(String request) { String[] parts = request.split(";"); if (parts.length < 3) { return false; } String referer = parts[0]; String key = parts[1]; String content = parts[2]; if (referer.isEmpty()) { return f...