Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/main/java/org/basex/data/Data.java b/src/main/java/org/basex/data/Data.java index 262c94619..5a396b8aa 100644 --- a/src/main/java/org/basex/data/Data.java +++ b/src/main/java/org/basex/data/Data.java @@ -1,934 +1,934 @@ package org.basex.data; import static org.basex.util.Token.*; import java.io...
true
true
public final void insert(final int ipre, final int ipar, final MemData md) { meta.update(); final int[] preStack = new int[IO.MAXHEIGHT]; int l = 0; final int ms = md.meta.size; final int buf = Math.min(ms, IO.BLOCKSIZE >> IO.NODEPOWER); // resize buffer to cache more entries buffer(buf)...
public final void insert(final int ipre, final int ipar, final MemData md) { meta.update(); final int[] preStack = new int[IO.MAXHEIGHT]; int l = 0; final int ms = md.meta.size; final int buf = Math.min(ms, IO.BLOCKSIZE >> IO.NODEPOWER); // resize buffer to cache more entries buffer(buf)...
diff --git a/src/com/dmdirc/config/prefs/PreferencesManager.java b/src/com/dmdirc/config/prefs/PreferencesManager.java index 253ab7b1b..8f7ad9a80 100644 --- a/src/com/dmdirc/config/prefs/PreferencesManager.java +++ b/src/com/dmdirc/config/prefs/PreferencesManager.java @@ -1,565 +1,565 @@ /* * Copyright (c) 2006-2008...
true
true
private void addGuiCategory() { final Map<String, String> lafs = new HashMap<String, String>(); final Map<String, String> framemanagers = new HashMap<String, String>(); final Map<String, String> fmpositions = new HashMap<String, String>(); final PreferencesCategory category = new Pre...
private void addGuiCategory() { final Map<String, String> lafs = new HashMap<String, String>(); final Map<String, String> framemanagers = new HashMap<String, String>(); final Map<String, String> fmpositions = new HashMap<String, String>(); final PreferencesCategory category = new Pre...
diff --git a/src/org/jruby/evaluator/EvaluationState.java b/src/org/jruby/evaluator/EvaluationState.java index 13f54f307..d693d2ceb 100644 --- a/src/org/jruby/evaluator/EvaluationState.java +++ b/src/org/jruby/evaluator/EvaluationState.java @@ -1,1785 +1,1785 @@ /* * Created on Sep 11, 2005 * * TODO To change th...
false
true
private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { Al...
private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { Al...
diff --git a/opentripplanner-graph-builder/src/main/java/org/opentripplanner/graph_builder/impl/osm/DefaultWayPropertySetSource.java b/opentripplanner-graph-builder/src/main/java/org/opentripplanner/graph_builder/impl/osm/DefaultWayPropertySetSource.java index 8eb7ff0f1..e0ecfa490 100644 --- a/opentripplanner-graph-bui...
true
true
public WayPropertySet getWayPropertySet() { WayPropertySet props = new WayPropertySet(); /* no bicycle tags */ /* NONE */ setProperties(props, "highway=raceway", StreetTraversalPermission.NONE); setProperties(props, "highway=construction", ...
public WayPropertySet getWayPropertySet() { WayPropertySet props = new WayPropertySet(); /* no bicycle tags */ /* NONE */ setProperties(props, "highway=raceway", StreetTraversalPermission.NONE); setProperties(props, "highway=construction", ...
diff --git a/app/src/processing/app/Editor.java b/app/src/processing/app/Editor.java index 65345016..7ed0103a 100644 --- a/app/src/processing/app/Editor.java +++ b/app/src/processing/app/Editor.java @@ -1,2744 +1,2746 @@ /* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* Part of the Processing...
true
true
public Editor(Base ibase, String path, int[] location) { super("Arduino"); this.base = ibase; Base.setIcon(this); // Install default actions for Run, Present, etc. resetHandlers(); // add listener to handle window close box hit event addWindowListener(new WindowAdapter() { publi...
public Editor(Base ibase, String path, int[] location) { super("Arduino"); this.base = ibase; Base.setIcon(this); // Install default actions for Run, Present, etc. resetHandlers(); // add listener to handle window close box hit event addWindowListener(new WindowAdapter() { publi...
diff --git a/src/com/flaptor/util/FileSerializer.java b/src/com/flaptor/util/FileSerializer.java index ef92bdb..7e979c6 100644 --- a/src/com/flaptor/util/FileSerializer.java +++ b/src/com/flaptor/util/FileSerializer.java @@ -1,75 +1,75 @@ package com.flaptor.util; import java.io.File; import org.apache.log4j.Log...
false
true
public Object deserialize(boolean compressed) { Object obj = null; boolean ok = false; if (tempFile.exists()) { try { obj = IOUtil.deserialize(tempFile.getAbsolutePath(), compressed); tempFile.renameTo(file); ok = true; ...
public Object deserialize(boolean compressed) { Object obj = null; boolean ok = false; if (tempFile.exists()) { try { obj = IOUtil.deserialize(tempFile.getAbsolutePath(), compressed); tempFile.renameTo(file); ok = true; ...
diff --git a/src/main/java/org/sagebionetworks/web/client/widget/entity/browse/PagesBrowserViewImpl.java b/src/main/java/org/sagebionetworks/web/client/widget/entity/browse/PagesBrowserViewImpl.java index 5d5b4890c..24165532e 100644 --- a/src/main/java/org/sagebionetworks/web/client/widget/entity/browse/PagesBrowserVie...
true
true
public void configure(boolean canEdit, TreeItem root) { this.removeAll(true); //this widget shows nothing if the user can't edit the entity and it doesn't have any pages! if (!canEdit && root == null) return; LayoutContainer lc = new LayoutContainer(); lc.addStyleName("span-24 notopmargin"); lc.setAutoW...
public void configure(boolean canEdit, TreeItem root) { this.removeAll(true); //this widget shows nothing if the user can't edit the entity and it doesn't have any pages! if (!canEdit && root == null) return; LayoutContainer lc = new LayoutContainer(); lc.addStyleName("span-24 notopmargin"); lc.setAutoW...
diff --git a/components/bio-formats/src/loci/formats/in/PSDReader.java b/components/bio-formats/src/loci/formats/in/PSDReader.java index cc3cef5dc..1b466a83c 100644 --- a/components/bio-formats/src/loci/formats/in/PSDReader.java +++ b/components/bio-formats/src/loci/formats/in/PSDReader.java @@ -1,305 +1,305 @@ // //...
true
true
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessInputStream(id); core[0].littleEndian = false; if (!in.readString(4).equals("8BPS")) { throw new FormatException("Not a valid Photoshop file."); } addGlobalMeta("Version", ...
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessInputStream(id); core[0].littleEndian = false; if (!in.readString(4).equals("8BPS")) { throw new FormatException("Not a valid Photoshop file."); } addGlobalMeta("Version", ...
diff --git a/src/com/evacipated/pesterdroid/MainActivity.java b/src/com/evacipated/pesterdroid/MainActivity.java index 20fee95..5e9fa3e 100644 --- a/src/com/evacipated/pesterdroid/MainActivity.java +++ b/src/com/evacipated/pesterdroid/MainActivity.java @@ -1,256 +1,257 @@ package com.evacipated.pesterdroid; import ...
true
true
public boolean onOptionsItemSelected(MenuItem item) { Intent intent; switch (item.getItemId()) { case R.id.menu_settings: intent = new Intent(this, SettingsActivity.class); startActivity(intent); return true; case R.id.menu_help: inten...
public boolean onOptionsItemSelected(MenuItem item) { Intent intent; switch (item.getItemId()) { case R.id.menu_settings: intent = new Intent(this, SettingsActivity.class); startActivity(intent); return true; case R.id.menu_help: inten...
diff --git a/twitter4j-core/src/main/java/twitter4j/internal/http/HttpResponseImpl.java b/twitter4j-core/src/main/java/twitter4j/internal/http/HttpResponseImpl.java index e805602c..0327237c 100644 --- a/twitter4j-core/src/main/java/twitter4j/internal/http/HttpResponseImpl.java +++ b/twitter4j-core/src/main/java/twitter...
true
true
HttpResponseImpl(HttpURLConnection con, HttpClientConfiguration conf) throws IOException { super(conf); this.con = con; this.statusCode = con.getResponseCode(); if (null == (is = con.getErrorStream())) { is = con.getInputStream(); } if (is != null && "gzip...
HttpResponseImpl(HttpURLConnection con, HttpClientConfiguration conf) throws IOException { super(conf); this.con = con; try { this.statusCode = con.getResponseCode(); } catch (IOException e) { /* * If the user has revoked the access token in use, then T...
diff --git a/src/com/youpony/amuse/SendStory.java b/src/com/youpony/amuse/SendStory.java index 5084f5c..959b290 100644 --- a/src/com/youpony/amuse/SendStory.java +++ b/src/com/youpony/amuse/SendStory.java @@ -1,140 +1,140 @@ package com.youpony.amuse; import java.io.ByteArrayOutputStream; import org.apache.http....
false
true
public void onClick(View arg0) { emailString = emailForm.getText().toString(); nameString = nameForm.getText().toString(); error = new AlertDialog.Builder(SendStory. this); error.setTitle("Wrong email!"); error.setMessage("Please check your email."); if(!emailString.contains("@")){ error.show();...
public void onClick(View arg0) { emailString = emailForm.getText().toString(); nameString = nameForm.getText().toString(); error = new AlertDialog.Builder(SendStory. this); error.setTitle("Wrong email!"); error.setMessage("Please check your email."); if(!emailString.contains("@")){ error.show();...
diff --git a/src/com/android/settings/TextToSpeechSettings.java b/src/com/android/settings/TextToSpeechSettings.java index 23959c87c..fa9ea583f 100644 --- a/src/com/android/settings/TextToSpeechSettings.java +++ b/src/com/android/settings/TextToSpeechSettings.java @@ -1,692 +1,714 @@ /* * Copyright (C) 2009 The Andr...
true
true
protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == VOICE_DATA_INTEGRITY_CHECK) { if (data == null){ // The CHECK_TTS_DATA activity for the plugin did not run properly; // disable the preview and install controls and ...
protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == VOICE_DATA_INTEGRITY_CHECK) { if (data == null){ // The CHECK_TTS_DATA activity for the plugin did not run properly; // disable the preview and install controls and ...
diff --git a/src/com/google/javascript/jscomp/JSModuleGraph.java b/src/com/google/javascript/jscomp/JSModuleGraph.java index 1ab58011..bac1570c 100644 --- a/src/com/google/javascript/jscomp/JSModuleGraph.java +++ b/src/com/google/javascript/jscomp/JSModuleGraph.java @@ -1,434 +1,434 @@ /* * Copyright 2008 The Closur...
true
true
List<CompilerInput> manageDependencies( List<String> entryPoints, List<CompilerInput> inputs) throws CircularDependencyException, MissingProvideException { SortedDependencies<CompilerInput> sorter = new SortedDependencies<CompilerInput>(inputs); Set<CompilerInput> entryPointInputs = ...
public List<CompilerInput> manageDependencies( List<String> entryPoints, List<CompilerInput> inputs) throws CircularDependencyException, MissingProvideException { SortedDependencies<CompilerInput> sorter = new SortedDependencies<CompilerInput>(inputs); Set<CompilerInput> entryPointIn...
diff --git a/src/main/gradeapp/GradeApp.java b/src/main/gradeapp/GradeApp.java index bffdd41..d346e1d 100644 --- a/src/main/gradeapp/GradeApp.java +++ b/src/main/gradeapp/GradeApp.java @@ -1,288 +1,293 @@ /* * GradeApp.java * * Created on Feb 9, 2010, 1:49:26 PM */ package gradeapp; import java.io.File; ...
true
true
private void initComponents() { loadButton = new javax.swing.JButton(); emailButton = new javax.swing.JButton(); printButton = new javax.swing.JButton(); goodGradePanel = new javax.swing.JPanel(); gradeSlider = new javax.swing.JSlider(); noiseSliderPanel = new javax....
private void initComponents() { loadButton = new javax.swing.JButton(); emailButton = new javax.swing.JButton(); printButton = new javax.swing.JButton(); goodGradePanel = new javax.swing.JPanel(); gradeSlider = new javax.swing.JSlider(); noiseSliderPanel = new javax....
diff --git a/extrabiomes/src/extrabiomes/module/fabrica/recipe/PlankOreDictionaryRecipes.java b/extrabiomes/src/extrabiomes/module/fabrica/recipe/PlankOreDictionaryRecipes.java index d39cbd36..f15727e6 100644 --- a/extrabiomes/src/extrabiomes/module/fabrica/recipe/PlankOreDictionaryRecipes.java +++ b/extrabiomes/src/ex...
true
true
private static void addPlankVanillaRecipes() { OreDictionary.registerOre("plankWood", Block.planks); IRecipe recipe = new ShapedOreRecipe(Block.chest, new String[] { "ppp", "p p", "ppp" }, 'p', "plankWood"); Extrabiomes.proxy.addRecipe(recipe); recipe = new ShapedOreRecipe(Block.workbench, new String[] {...
private static void addPlankVanillaRecipes() { OreDictionary.registerOre("plankWood", Block.planks); IRecipe recipe = new ShapedOreRecipe(Block.chest, new String[] { "ppp", "p p", "ppp" }, 'p', "plankWood"); Extrabiomes.proxy.addRecipe(recipe); recipe = new ShapedOreRecipe(Block.workbench, new String[] {...
diff --git a/SolarPowerCalc/src/com/qut/spc/calculations/ElectricityCalculator.java b/SolarPowerCalc/src/com/qut/spc/calculations/ElectricityCalculator.java index b5d580e..73d98a9 100644 --- a/SolarPowerCalc/src/com/qut/spc/calculations/ElectricityCalculator.java +++ b/SolarPowerCalc/src/com/qut/spc/calculations/Electr...
false
true
public double getElectricityProduction(double dailySun, double inverterEfficiency, double ageEfficiencyLoss, double solarPowerOutput,double dailyHours, double timespan) throws IllegalArgumentException { //formula: ( estimated watt need/timespan*1.25)*(invertefficiency) //assume that capacity(solarPowerO...
public double getElectricityProduction(double dailySun, double inverterEfficiency, double ageEfficiencyLoss, double solarPowerOutput,double dailyHours, double timespan) throws IllegalArgumentException { //formula: ( estimated watt need/timespan*1.25)*(invertefficiency) //assume that capacity(solarPowerO...
diff --git a/x10.compiler/src/x10cpp/debug/LineNumberMap.java b/x10.compiler/src/x10cpp/debug/LineNumberMap.java index 64abbc83a..65d12090b 100644 --- a/x10.compiler/src/x10cpp/debug/LineNumberMap.java +++ b/x10.compiler/src/x10cpp/debug/LineNumberMap.java @@ -1,1536 +1,1548 @@ /* * This file is part of the X10 pro...
false
true
public void exportForCPPDebugger(ClassifiedStream w, LineNumberMap m) { String debugSectionAttr = "__attribute__((_X10_DEBUG_SECTION))"; String debugDataSectionAttr = "__attribute__((_X10_DEBUG_DATA_SECTION))"; int size = m.size(); int offset = 0; int[] offsets = new int[size]; // All str...
public void exportForCPPDebugger(ClassifiedStream w, LineNumberMap m) { String debugSectionAttr = "__attribute__((_X10_DEBUG_SECTION))"; String debugDataSectionAttr = "__attribute__((_X10_DEBUG_DATA_SECTION))"; int size = m.size(); int offset = 0; int[] offsets = new int[size]; // All str...
diff --git a/src/net/sf/drftpd/master/command/plugins/DataConnectionHandler.java b/src/net/sf/drftpd/master/command/plugins/DataConnectionHandler.java index 9f556d19..7b803144 100644 --- a/src/net/sf/drftpd/master/command/plugins/DataConnectionHandler.java +++ b/src/net/sf/drftpd/master/command/plugins/DataConnectionHa...
true
true
private Reply transfer(BaseFtpConnection conn) throws ReplyException { TransferState ts = conn.getTransferState(); ReplacerEnvironment env = new ReplacerEnvironment(); if (!ts.getSendFilesEncrypted() && conn.getGlobalContext().getConfig().checkPermission("denydatauncrypt...
private Reply transfer(BaseFtpConnection conn) throws ReplyException { TransferState ts = conn.getTransferState(); ReplacerEnvironment env = new ReplacerEnvironment(); if (!ts.getSendFilesEncrypted() && conn.getGlobalContext().getConfig().checkPermission("denydatauncrypt...
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorAttachmentPart.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorAttachmentPart.java index 1296b715d..4ad44aca6 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/intern...
true
true
private void createAttachmentTable(FormToolkit toolkit, final Composite attachmentsComposite) { Table attachmentsTable = toolkit.createTable(attachmentsComposite, SWT.MULTI | SWT.FULL_SELECTION); attachmentsTable.setLinesVisible(true); attachmentsTable.setHeaderVisible(true); attachmentsTable.setLayout(new Gri...
private void createAttachmentTable(FormToolkit toolkit, final Composite attachmentsComposite) { Table attachmentsTable = toolkit.createTable(attachmentsComposite, SWT.MULTI | SWT.FULL_SELECTION); attachmentsTable.setLinesVisible(true); attachmentsTable.setHeaderVisible(true); attachmentsTable.setLayout(new Gri...
diff --git a/core/src/visad/python/JPythonMethods.java b/core/src/visad/python/JPythonMethods.java index dfc1a6bd7..bf736137f 100644 --- a/core/src/visad/python/JPythonMethods.java +++ b/core/src/visad/python/JPythonMethods.java @@ -1,3924 +1,3924 @@ // // JPythonMethods.java // /* VisAD system for interactive a...
true
true
public static FieldImpl mask(FieldImpl f, String op, Data v) throws VisADException, RemoteException { FlatField ff = null; FieldImpl fi = null; boolean isFI = false; int numItems; if (f instanceof FlatField) { numItems = 1; } else if (domainDimension(f) == 1) { i...
public static FieldImpl mask(FieldImpl f, String op, Data v) throws VisADException, RemoteException { FlatField ff = null; FieldImpl fi = null; boolean isFI = false; int numItems; if (f instanceof FlatField) { numItems = 1; } else if (domainDimension(f) == 1) { i...
diff --git a/web/src/main/java/org/eurekastreams/web/client/ui/common/stream/renderers/StreamMessageItemRenderer.java b/web/src/main/java/org/eurekastreams/web/client/ui/common/stream/renderers/StreamMessageItemRenderer.java index beac2ee74..c04834cd8 100644 --- a/web/src/main/java/org/eurekastreams/web/client/ui/commo...
false
true
public Panel render(final ActivityDTO msg) { if (msg.getDestinationStream().getUniqueIdentifier().equals(msg.getActor().getUniqueIdentifier())) { showRecipient = ShowRecipient.FOREIGN_ONLY; } else { showRecipient = showRecipientInStream; } ...
public Panel render(final ActivityDTO msg) { if (msg.getDestinationStream().getUniqueIdentifier().equals(msg.getActor().getUniqueIdentifier())) { showRecipient = ShowRecipient.FOREIGN_ONLY; } else { showRecipient = showRecipientInStream; } ...
diff --git a/nuxeo-platform-documentlink-core/src/test/java/org/nuxeo/ecm/platform/documentrepository/service/tests/TestService.java b/nuxeo-platform-documentlink-core/src/test/java/org/nuxeo/ecm/platform/documentrepository/service/tests/TestService.java index dd69a41..7d4787e 100644 --- a/nuxeo-platform-documentlink-c...
true
true
public void testRepoCreation() throws Exception { DocumentRepositoryManager service = Framework.getService(DocumentRepositoryManager.class); assertNotNull(service); // check repo creation and security settings DocumentModel doc = coreSession.createDocumentModel("/", "testFile"...
public void testRepoCreation() throws Exception { DocumentRepositoryManager service = Framework.getService(DocumentRepositoryManager.class); assertNotNull(service); // check repo creation and security settings DocumentModel doc = coreSession.createDocumentModel("/", "testFile"...
diff --git a/src/test/java/hudson/plugins/git/GitPublisherTest.java b/src/test/java/hudson/plugins/git/GitPublisherTest.java index c08e233..d8b5e3e 100644 --- a/src/test/java/hudson/plugins/git/GitPublisherTest.java +++ b/src/test/java/hudson/plugins/git/GitPublisherTest.java @@ -1,97 +1,97 @@ /* * The MIT License ...
true
true
public void testMatrixBuild() throws Exception { final int[] run = new int[1]; // count the number of times the perform is called commit("a", johnDoe, "commit #1"); MatrixProject mp = createMatrixProject("xyz"); mp.setAxes(new AxisList(new Axis("VAR", "a", "b"))); mp.setScm...
public void testMatrixBuild() throws Exception { final int[] run = new int[1]; // count the number of times the perform is called commit("a", johnDoe, "commit #1"); MatrixProject mp = createMatrixProject("xyz"); mp.setAxes(new AxisList(new Axis("VAR", "a", "b"))); mp.setScm...
diff --git a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/helpers/AbstractRepositoryManager.java b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/helpers/AbstractRepositoryManager.java index d97217b08..47af929c7 100644 --- a/bundles/o...
true
true
protected IRepository<T> loadRepository(URI location, IProgressMonitor monitor, String type, int flags) throws ProvisionException { checkValidLocation(location); if (monitor == null) monitor = new NullProgressMonitor(); boolean added = false; IRepository<T> result = null; try { enterLoad(location, mon...
protected IRepository<T> loadRepository(URI location, IProgressMonitor monitor, String type, int flags) throws ProvisionException { checkValidLocation(location); if (monitor == null) monitor = new NullProgressMonitor(); boolean added = false; IRepository<T> result = null; try { enterLoad(location, mon...
diff --git a/src/main/java/com/opencsi/SSLTunnel/App.java b/src/main/java/com/opencsi/SSLTunnel/App.java index 8fb735d..75c252b 100644 --- a/src/main/java/com/opencsi/SSLTunnel/App.java +++ b/src/main/java/com/opencsi/SSLTunnel/App.java @@ -1,44 +1,53 @@ package com.opencsi.SSLTunnel; import java.io.FileNotFoundExc...
false
true
public static void main( String[] args ) { try{ (new Core(args)).run(); } catch(FileNotFoundException e) { System.out.println(Message.getSSLError("FileNotFound")); System.out.println("[CRITICAL]: Closing server."); } catch(IOException e) { System.ou...
public static void main( String[] args ) { try{ (new Core(args)).run(); } catch(FileNotFoundException e) { System.out.println(Message.getSSLError("FileNotFound")); System.out.println("[CRITICAL]: Closing server."); } catch(java.net.ConnectException e) { ...
diff --git a/test/org-integration/com/sapienter/jbilling/server/task/PaymentTermPenaltyTaskTest.java b/test/org-integration/com/sapienter/jbilling/server/task/PaymentTermPenaltyTaskTest.java index 9a63cebf..ffa2f0a6 100644 --- a/test/org-integration/com/sapienter/jbilling/server/task/PaymentTermPenaltyTaskTest.java +++...
false
true
public void testPenalty() { try { System.out .println("Adding a new user with contact and country set to AU."); Integer user1 = api.createUser(createUserWS("testPenltTsk" + System.currentTimeMillis(), 1,1));//due date 1 month or 30 days assertNotNull("...
public void testPenalty() { try { System.out .println("Adding a new user with contact and country set to AU."); Integer user1 = api.createUser(createUserWS("testPenltTsk" + System.currentTimeMillis(), 1,1));//due date 1 month or 30 days assertNotNull("...
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/link/LinkedModeUI.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/link/LinkedModeUI.java index a9c97a2a1..c9f45dbbc 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/text/link/LinkedModeUI.java +++ b/org.eclipse.jface.text/src/org/eclipse/j...
true
true
void leave(final int flags) { if (!fIsActive) return; fIsActive= false; endCompoundChange(); Display display= null; if (fCurrentTarget.fWidget != null && !fCurrentTarget.fWidget.isDisposed()) display= fCurrentTarget.fWidget.getDisplay(); // // debug trace // JavaPlugin.log(new Status(IStatus.I...
void leave(final int flags) { if (!fIsActive) return; fIsActive= false; endCompoundChange(); Display display= null; if (fCurrentTarget.fWidget != null && !fCurrentTarget.fWidget.isDisposed()) display= fCurrentTarget.fWidget.getDisplay(); // // debug trace // JavaPlugin.log(new Status(IStatus.I...
diff --git a/src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java b/src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java index b13f6cdf..5e8e3f32 100644 --- a/src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java +++ b/src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java @@ -1,1296 +1,1298 @@ /* * Copyrig...
true
true
void addRoad(Way way, GType gt) { String oneWay = way.getTag("oneway"); if("-1".equals(oneWay) || "reverse".equals(oneWay)) { // it's a oneway street in the reverse direction // so reverse the order of the nodes and change // the oneway tag to "yes" way.reverse(); way.addTag("oneway", "yes"); } ...
void addRoad(Way way, GType gt) { String oneWay = way.getTag("oneway"); if("-1".equals(oneWay) || "reverse".equals(oneWay)) { // it's a oneway street in the reverse direction // so reverse the order of the nodes and change // the oneway tag to "yes" way.reverse(); way.addTag("oneway", "yes"); if...
diff --git a/Tanks/src/gfx/MenuField.java b/Tanks/src/gfx/MenuField.java index 295f01d..7e3fdcb 100644 --- a/Tanks/src/gfx/MenuField.java +++ b/Tanks/src/gfx/MenuField.java @@ -1,70 +1,70 @@ package gfx; import inputhandler.Action; import inputhandler.Key; import java.awt.Color; import java.awt.TextField; imp...
true
true
public void setUp() { setColumns(colums); addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent ae) { String tmpMsg = ae.getActionCommand(); if (type == FieldType.IP && tmpMsg.matches("^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9...
public void setUp() { setColumns(colums); addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent ae) { String tmpMsg = ae.getActionCommand(); if (type == FieldType.IP && tmpMsg.matches("^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9...
diff --git a/src/org/reprap/geometry/Producer.java b/src/org/reprap/geometry/Producer.java index f88b2b1..e0fc979 100644 --- a/src/org/reprap/geometry/Producer.java +++ b/src/org/reprap/geometry/Producer.java @@ -1,274 +1,275 @@ package org.reprap.geometry; import javax.media.j3d.*; import org.reprap.Preferences; ...
false
true
public void produce(boolean testPiece) throws Exception { // Fallback defaults int extrusionSpeed = 200; int extrusionTemp = 40; int movementSpeedXY = 230; int movementSpeedZ = 230; int coolingPeriod = Preferences.loadGlobalInt("CoolingPeriod"); boolean subtractive = Preferences.loadGlobalBool(...
public void produce(boolean testPiece) throws Exception { // Fallback defaults int extrusionSpeed = 200; int extrusionTemp = 40; int movementSpeedXY = 230; int movementSpeedZ = 230; int coolingPeriod = Preferences.loadGlobalInt("CoolingPeriod"); boolean subtractive = Preferences.loadGlobalBool(...
diff --git a/src/com/android/settings/SecuritySettings.java b/src/com/android/settings/SecuritySettings.java index e9e3a193e..ce59fddee 100644 --- a/src/com/android/settings/SecuritySettings.java +++ b/src/com/android/settings/SecuritySettings.java @@ -1,616 +1,618 @@ /* * Copyright (C) 2007 The Android Open Source ...
true
true
private PreferenceScreen createPreferenceHierarchy() { PreferenceScreen root = getPreferenceScreen(); if (root != null) { root.removeAll(); } addPreferencesFromResource(R.xml.security_settings); root = getPreferenceScreen(); // Add options for lock/unlock...
private PreferenceScreen createPreferenceHierarchy() { PreferenceScreen root = getPreferenceScreen(); if (root != null) { root.removeAll(); } addPreferencesFromResource(R.xml.security_settings); root = getPreferenceScreen(); // Add options for lock/unlock...
diff --git a/TP04/java/src/com/g4/java/configuration/factories/SelectionFactory.java b/TP04/java/src/com/g4/java/configuration/factories/SelectionFactory.java index 16bc638..733c96f 100644 --- a/TP04/java/src/com/g4/java/configuration/factories/SelectionFactory.java +++ b/TP04/java/src/com/g4/java/configuration/factori...
false
true
public List<Selection> loadSelectionMethods(){ List<Selection> selected = new ArrayList<Selection>(); String [] selections = properties.getProperty("selection").split("/"); for (int i = 0; i < selections.length; i++) { String selectedMethod = selections[i].trim().toUpperCase(); if (selectedMethod.equal...
public List<Selection> loadSelectionMethods(){ List<Selection> selected = new ArrayList<Selection>(); String [] selections = properties.getProperty("selection").split("/"); for (int i = 0; i < selections.length; i++) { String selectedMethod = selections[i].trim().toUpperCase(); if (selectedMethod.equal...
diff --git a/src/com/awevation/spuzzle/ControllerButton.java b/src/com/awevation/spuzzle/ControllerButton.java index 6597a31..22c5ffe 100755 --- a/src/com/awevation/spuzzle/ControllerButton.java +++ b/src/com/awevation/spuzzle/ControllerButton.java @@ -1,47 +1,47 @@ package com.awevation.spuzzle; import android.con...
true
true
public boolean onTouchEvent(final MotionEvent event) { switch(event.getAction()) { case MotionEvent.ACTION_DOWN: setPressed(true); performHapticFeedback(HapticFeedbackConstants.KEYBOARD_TAP, HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING); if(runmeDown != null) { runmeDown.run(); } break; ...
public boolean onTouchEvent(final MotionEvent event) { switch(event.getAction()) { case MotionEvent.ACTION_DOWN: setPressed(true); performHapticFeedback(HapticFeedbackConstants.KEYBOARD_TAP, HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING); if(runmeDown != null) { runmeDown.run(); } break; ...
diff --git a/src/com/bretth/osmosis/core/cli/CommandLineParser.java b/src/com/bretth/osmosis/core/cli/CommandLineParser.java index fecce30e..da891276 100644 --- a/src/com/bretth/osmosis/core/cli/CommandLineParser.java +++ b/src/com/bretth/osmosis/core/cli/CommandLineParser.java @@ -1,145 +1,145 @@ package com.bretth.o...
true
true
private int parseTask(String [] programArgs, int offset) { int i; String taskType; Map<String, String> taskArgs; Map<String, String> pipeArgs; String taskId; i = offset; // Extract the task type from the current argument. taskType = programArgs[i].substring(PipelineConstants.TASK_ARGUMENT_PREFIX....
private int parseTask(String [] programArgs, int offset) { int i; String taskType; Map<String, String> taskArgs; Map<String, String> pipeArgs; String taskId; i = offset; // Extract the task type from the current argument. taskType = programArgs[i++].substring(PipelineConstants.TASK_ARGUMENT_PREFI...
diff --git a/src/main/java/hudson/plugins/ec2/ssh/EC2UnixLauncher.java b/src/main/java/hudson/plugins/ec2/ssh/EC2UnixLauncher.java index 511ee3b..c67c403 100644 --- a/src/main/java/hudson/plugins/ec2/ssh/EC2UnixLauncher.java +++ b/src/main/java/hudson/plugins/ec2/ssh/EC2UnixLauncher.java @@ -1,270 +1,272 @@ /* * The...
false
true
protected void launch(EC2Computer computer, PrintStream logger, Instance inst) throws IOException, AmazonClientException, InterruptedException { final Connection bootstrapConn; final Connection conn; Connection cleanupConn = null; // java's code path analysis for final doesn't work that well. ...
protected void launch(EC2Computer computer, PrintStream logger, Instance inst) throws IOException, AmazonClientException, InterruptedException { final Connection bootstrapConn; final Connection conn; Connection cleanupConn = null; // java's code path analysis for final doesn't work that well. ...
diff --git a/loci/formats/in/ND2Reader.java b/loci/formats/in/ND2Reader.java index 6ed9abb98..22c77c605 100644 --- a/loci/formats/in/ND2Reader.java +++ b/loci/formats/in/ND2Reader.java @@ -1,794 +1,794 @@ // // ND2Reader.java // /* LOCI Bio-Formats package for reading and converting biological file formats. Cop...
true
true
protected void initFile(String id) throws FormatException, IOException { if (debug) debug("ND2Reader.initFile(" + id + ")"); if (noJ2k) throw new FormatException(NO_J2K_MSG); super.initFile(id); in = new RandomAccessStream(id); if (in.read() == -38 && in.read() == -50) { // newer version o...
protected void initFile(String id) throws FormatException, IOException { if (debug) debug("ND2Reader.initFile(" + id + ")"); if (noJ2k) throw new FormatException(NO_J2K_MSG); super.initFile(id); in = new RandomAccessStream(id); if (in.read() == -38 && in.read() == -50) { // newer version o...
diff --git a/src/main/java/com/forrst/api/ForrstAPIClient.java b/src/main/java/com/forrst/api/ForrstAPIClient.java index 9c33138..bc15550 100644 --- a/src/main/java/com/forrst/api/ForrstAPIClient.java +++ b/src/main/java/com/forrst/api/ForrstAPIClient.java @@ -1,380 +1,379 @@ package com.forrst.api; import java.sql...
false
true
public List<Post> userPosts(Map<String,String> userInfo, Map<String,String> options) { List<Post> posts = null; Map<String,String> params = new HashMap<String,String>(); if(userInfo.containsKey("id")) params.put("id", userInfo.get("id")); if(userInfo.containsKey("username")) params.p...
public List<Post> userPosts(Map<String,String> userInfo, Map<String,String> options) { List<Post> posts = new ArrayList<Post>(); Map<String,String> params = new HashMap<String,String>(); if(userInfo.containsKey("id")) params.put("id", userInfo.get("id")); if(userInfo.containsKey("username")) ...
diff --git a/job/controller/src/main/java/org/talend/esb/job/controller/internal/Configuration.java b/job/controller/src/main/java/org/talend/esb/job/controller/internal/Configuration.java index 63b41072b..fcb3dd253 100644 --- a/job/controller/src/main/java/org/talend/esb/job/controller/internal/Configuration.java +++ ...
true
true
public void setProperties(Dictionary<?, ?> properties) throws ConfigurationException { List<String> newArgumentList = new ArrayList<String>(); if (properties != null) { for (Enumeration<?> keysEnum = properties.keys(); keysEnum.hasMoreElements(); ) { String key = (String...
public void setProperties(Dictionary<?, ?> properties) throws ConfigurationException { List<String> newArgumentList = new ArrayList<String>(); if (properties != null) { for (Enumeration<?> keysEnum = properties.keys(); keysEnum.hasMoreElements();) { String key = (String)...
diff --git a/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/CopyOperation.java b/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/CopyOperation.java index 91843c4c87..5d1c16da15 100644 --- a/bundles/servlets/post/src/main/java/org/apache/sling/servle...
true
true
static void copy(Node src, Node dstParent, String name) throws RepositoryException { // ensure destination name if (name == null) { name = src.getName(); } // ensure new node creation if (dstParent.hasNode(name)) { dstParent.getNode(name)...
static void copy(Node src, Node dstParent, String name) throws RepositoryException { // ensure destination name if (name == null) { name = src.getName(); } // ensure new node creation if (dstParent.hasNode(name)) { dstParent.getNode(name)...
diff --git a/Alg1.java b/Alg1.java index ea00974..6729464 100644 --- a/Alg1.java +++ b/Alg1.java @@ -1,153 +1,156 @@ import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.LinkedList; public class Alg1 { /* * prints out the revisions that have some re...
true
true
public static void printIt(Process exec, String[] arg) throws IOException { BufferedReader stdInput= new BufferedReader(new InputStreamReader(exec.getInputStream())); System.out.println("Revision \t\t\t rating \t\t\t case \n"); String s; char c = ' '; String ss = "r";...
public static void printIt(Process exec, String[] arg) throws IOException { BufferedReader stdInput= new BufferedReader(new InputStreamReader(exec.getInputStream())); System.out.println("Revision \t\t\t rating \t\t\t case \n"); String s; char c = ' '; String ss = "r";...
diff --git a/src/main/java/com/kelsos/mbrc/fragments/SearchFragment.java b/src/main/java/com/kelsos/mbrc/fragments/SearchFragment.java index 5e0f1618..203d2330 100644 --- a/src/main/java/com/kelsos/mbrc/fragments/SearchFragment.java +++ b/src/main/java/com/kelsos/mbrc/fragments/SearchFragment.java @@ -1,252 +1,252 @@ ...
true
true
public boolean onContextItemSelected(android.view.MenuItem item) { AdapterView.AdapterContextMenuInfo mi = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo(); Object line = adapter.getItem(mi.position); String qContext = ""; String gSub = ""; String query = ""; ...
public boolean onContextItemSelected(android.view.MenuItem item) { AdapterView.AdapterContextMenuInfo mi = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo(); Object line = adapter.getItem(mi.position); String qContext = ""; String gSub = ""; String query = ""; ...
diff --git a/src/test/java/backlog4j/api/DeleteIssueTypeTest.java b/src/test/java/backlog4j/api/DeleteIssueTypeTest.java index 5730ba9..3b05738 100644 --- a/src/test/java/backlog4j/api/DeleteIssueTypeTest.java +++ b/src/test/java/backlog4j/api/DeleteIssueTypeTest.java @@ -1,33 +1,33 @@ package backlog4j.api; import...
true
true
public void testShouldWorkDeleteIssueType() throws Exception { final int projectId = 1073771652; BacklogClient client = new BacklogClientImpl(MutableSpaceConfigure.getInstance()); IssueType deletedIssueType = client.addIssueType().setProjectId(projectId).setName("deletedIssueType").setColor...
public void testShouldWorkDeleteIssueType() throws Exception { final int projectId = 1073771652; BacklogClient client = new BacklogClientImpl(MutableSpaceConfigure.getInstance()); IssueType deletedIssueType = client.addIssueType().setProjectId(projectId).setName("deletedIssueType").setColor...
diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/ui/CommentedActionDialog.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/ui/CommentedActionDialog.java index 263703e66..1095b668d 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/ui/CommentedActionDialog.java +++ b/gerrit-gwtui/...
false
true
public CommentedActionDialog(final String title, final String heading, AsyncCallback<T> callback) { super(/* auto hide */false, /* modal */true); this.callback = callback; setGlassEnabled(true); setText(title); addStyleName(Gerrit.RESOURCES.css().commentedActionDialog()); message = new...
public CommentedActionDialog(final String title, final String heading, AsyncCallback<T> callback) { super(/* auto hide */false, /* modal */true); this.callback = callback; setGlassEnabled(true); setText(title); addStyleName(Gerrit.RESOURCES.css().commentedActionDialog()); message = new...
diff --git a/src/com/android/nfc/ndefpush/NdefPushClient.java b/src/com/android/nfc/ndefpush/NdefPushClient.java index 8d7c9a8..2275620 100755 --- a/src/com/android/nfc/ndefpush/NdefPushClient.java +++ b/src/com/android/nfc/ndefpush/NdefPushClient.java @@ -1,140 +1,140 @@ /* * Copyright (C) 2010 The Android Open Sou...
true
true
public Void doInBackground(NdefMessage... msgs) { NfcService service = NfcService.getInstance(); // We only handle a single immediate action for now NdefPushProtocol msg = new NdefPushProtocol(msgs[0], NdefPushProtocol.ACTION_IMMEDIATE); byte[] buffer = msg.toByt...
public Void doInBackground(NdefMessage... msgs) { NfcService service = NfcService.getInstance(); // We only handle a single immediate action for now NdefPushProtocol msg = new NdefPushProtocol(msgs[0], NdefPushProtocol.ACTION_IMMEDIATE); byte[] buffer = msg.toByt...
diff --git a/msv/test/RELAXBatchTest.java b/msv/test/RELAXBatchTest.java index 8e88cd99..593b5d70 100644 --- a/msv/test/RELAXBatchTest.java +++ b/msv/test/RELAXBatchTest.java @@ -1,33 +1,33 @@ /* * @(#)$Id$ * * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved. * * This software is the proprietary i...
true
true
public static TestSuite suite() { StringTokenizer tokens = new StringTokenizer( System.getProperty("RELAXBatchTestDir"), ";" ); TestSuite s = new TestSuite(); while( tokens.hasMoreTokens() ) { BatchVerifyTester t = new BatchVerifyTester(); t.init("relax", tokens.nextToken(), ".relax", BatchTester.generi...
public static TestSuite suite() { StringTokenizer tokens = new StringTokenizer( System.getProperty("RELAXBatchTestDir"), ";" ); TestSuite s = new TestSuite(); while( tokens.hasMoreTokens() ) { BatchVerifyTester t = new BatchVerifyTester(); t.init("relax", tokens.nextToken(), ".rlx", BatchTester.genericL...
diff --git a/src/main/java/org/jbpm/designer/web/server/UUIDBasedRepositoryServlet.java b/src/main/java/org/jbpm/designer/web/server/UUIDBasedRepositoryServlet.java index 7f8b320c0..442e8a181 100644 --- a/src/main/java/org/jbpm/designer/web/server/UUIDBasedRepositoryServlet.java +++ b/src/main/java/org/jbpm/designer/we...
true
true
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String actionParam = req.getParameter("action"); String preProcessingParam = req.getParameter("pp"); if(actionParam != null && actionParam.equals("toXML")) { IDiagramPro...
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String actionParam = req.getParameter("action"); String preProcessingParam = req.getParameter("pp"); if(actionParam != null && actionParam.equals("toXML")) { IDiagramPro...
diff --git a/src/com/android/settings/RingerVolumePreference.java b/src/com/android/settings/RingerVolumePreference.java index d0494f5d..8911185d 100644 --- a/src/com/android/settings/RingerVolumePreference.java +++ b/src/com/android/settings/RingerVolumePreference.java @@ -1,432 +1,432 @@ /* * Copyright (C) 2008 Th...
true
true
protected void onBindDialogView(View view) { super.onBindDialogView(view); for (int i = 0; i < SEEKBAR_ID.length; i++) { SeekBar seekBar = (SeekBar) view.findViewById(SEEKBAR_ID[i]); mSeekBars[i] = seekBar; if (SEEKBAR_TYPE[i] == AudioManager.STREAM_MUSIC) { ...
protected void onBindDialogView(View view) { super.onBindDialogView(view); for (int i = 0; i < SEEKBAR_ID.length; i++) { SeekBar seekBar = (SeekBar) view.findViewById(SEEKBAR_ID[i]); mSeekBars[i] = seekBar; if (SEEKBAR_TYPE[i] == AudioManager.STREAM_MUSIC) { ...
diff --git a/src/share/classes/com/sun/tools/javafx/comp/JavafxBoundFiller.java b/src/share/classes/com/sun/tools/javafx/comp/JavafxBoundFiller.java index 962cf7f80..639b46790 100644 --- a/src/share/classes/com/sun/tools/javafx/comp/JavafxBoundFiller.java +++ b/src/share/classes/com/sun/tools/javafx/comp/JavafxBoundFil...
true
true
private void boundFunctionFiller(JFXFunctionDefinition tree) { /* * For bound functions, make a synthetic bound variable with * initialization expression to be the return expression and return * the Pointer of the synthetic variable as the result. */ JFXBlock blk ...
private void boundFunctionFiller(JFXFunctionDefinition tree) { /* * For bound functions, make a synthetic bound variable with * initialization expression to be the return expression and return * the Pointer of the synthetic variable as the result. */ JFXBlock blk ...
diff --git a/src/org/thialfihar/android/apg/DecryptActivity.java b/src/org/thialfihar/android/apg/DecryptActivity.java index 5f0a26451..f15886800 100644 --- a/src/org/thialfihar/android/apg/DecryptActivity.java +++ b/src/org/thialfihar/android/apg/DecryptActivity.java @@ -1,784 +1,786 @@ /* * Copyright (C) 2010 Thia...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.decrypt); mSource = (ViewFlipper) findViewById(R.id.source); mSourceLabel = (TextView) findViewById(R.id.sourceLabel); mSourcePrevious = (ImageView) findViewById(R.i...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.decrypt); mSource = (ViewFlipper) findViewById(R.id.source); mSourceLabel = (TextView) findViewById(R.id.sourceLabel); mSourcePrevious = (ImageView) findViewById(R.i...
diff --git a/src/org/mozilla/javascript/regexp/RegExpImpl.java b/src/org/mozilla/javascript/regexp/RegExpImpl.java index b1a5e4ff..cb9030f9 100644 --- a/src/org/mozilla/javascript/regexp/RegExpImpl.java +++ b/src/org/mozilla/javascript/regexp/RegExpImpl.java @@ -1,567 +1,569 @@ /* -*- Mode: java; tab-width: 8; indent-...
false
true
static SubString interpretDollar(Context cx, RegExpImpl res, char[] da, int dp, int bp, int[] skip) { char[] ca; int cp; char dc; int num, tmp; /* Allow a real backslash (literal "\\") to escape "$1" etc. */ if (da[dp] != '$'...
static SubString interpretDollar(Context cx, RegExpImpl res, char[] da, int dp, int bp, int[] skip) { char[] ca; int cp; char dc; int num, tmp; /* Allow a real backslash (literal "\\") to escape "$1" etc. */ if (da[dp] != '$'...
diff --git a/beam-binning2/src/main/java/org/esa/beam/binning/operator/BinningOp.java b/beam-binning2/src/main/java/org/esa/beam/binning/operator/BinningOp.java index d3f07d505..edc859db7 100644 --- a/beam-binning2/src/main/java/org/esa/beam/binning/operator/BinningOp.java +++ b/beam-binning2/src/main/java/org/esa/beam...
true
true
public void initialize() throws OperatorException { ProductData.UTC startDateUtc = getStartDateUtc("startDate"); ProductData.UTC endDateUtc = getEndDateUtc("endDate"); validateInput(startDateUtc, endDateUtc); StopWatch stopWatch = new StopWatch(); stopWatch.start(); ...
public void initialize() throws OperatorException { ProductData.UTC startDateUtc = getStartDateUtc("startDate"); ProductData.UTC endDateUtc = getEndDateUtc("endDate"); validateInput(startDateUtc, endDateUtc); StopWatch stopWatch = new StopWatch(); stopWatch.start(); ...
diff --git a/src/com/wolvencraft/prison/PrisonSuite.java b/src/com/wolvencraft/prison/PrisonSuite.java index ed31217..ad09ec1 100644 --- a/src/com/wolvencraft/prison/PrisonSuite.java +++ b/src/com/wolvencraft/prison/PrisonSuite.java @@ -1,176 +1,177 @@ package com.wolvencraft.prison; import java.io.File; import ja...
false
true
public void onEnable() { getConfig().options().copyDefaults(true); saveConfig(); settings = new Settings(this); getLanguageData().options().copyDefaults(true); saveLanguageData(); language = new Language(this); Message.debug("1. Loaded plugin configuration"); worldEditPlugin = (WorldEditPlugin) t...
public void onEnable() { getConfig().options().copyDefaults(true); saveConfig(); settings = new Settings(this); getLanguageData().options().copyDefaults(true); saveLanguageData(); language = new Language(this); Message.debug("1. Loaded plugin configuration"); worldEditPlugin = (WorldEditPlugin) t...
diff --git a/search-impl/impl/src/java/org/sakaiproject/search/indexer/impl/SearchBuilderQueueManager.java b/search-impl/impl/src/java/org/sakaiproject/search/indexer/impl/SearchBuilderQueueManager.java index ab9bfd15..de8df814 100644 --- a/search-impl/impl/src/java/org/sakaiproject/search/indexer/impl/SearchBuilderQue...
true
true
private void rebuildIndex(Connection connection, SearchBuilderItem controlItem) throws SQLException { // delete all and return the master action only // the caller will then rebuild the index from scratch log .debug("DELETE ALL RECORDS =========================================================="); //$NON-...
private void rebuildIndex(Connection connection, SearchBuilderItem controlItem) throws SQLException { // delete all and return the master action only // the caller will then rebuild the index from scratch log .debug("DELETE ALL RECORDS =========================================================="); //$NON-...
diff --git a/ResultExtractor.java b/ResultExtractor.java index 23f5f29..f9d43e6 100644 --- a/ResultExtractor.java +++ b/ResultExtractor.java @@ -1,95 +1,95 @@ import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.sql.Connection; import java.s...
false
true
public static void main(String[] args) { final String conStr = "jdbc:sqlite:" + args[0]; final List<Category> categories = new ArrayList<Category>(); final List<String> agegroups = new ArrayList<String>(); Scanner sc = new Scanner(System.in); final String[] fields = sc.nextLine().substring(2).spli...
public static void main(String[] args) { final String conStr = "jdbc:sqlite:" + args[0]; final List<Category> categories = new ArrayList<Category>(); final List<String> agegroups = new ArrayList<String>(); Scanner sc = new Scanner(System.in); final String[] fields = sc.nextLine().substring(2).spli...
diff --git a/xwiki-contrib-mailarchive-api/src/main/java/org/xwiki/contrib/mailarchive/internal/AggregatedLoggerManager.java b/xwiki-contrib-mailarchive-api/src/main/java/org/xwiki/contrib/mailarchive/internal/AggregatedLoggerManager.java index c5c8a7a..1206dcc 100644 --- a/xwiki-contrib-mailarchive-api/src/main/java/o...
true
true
public void addComponentLogger(Type roleType) { privateLogger.warn("addComponentLogger(Type=" + roleType + ')'); final String clazzName = roleType.getClass().getName(); privateLogger.warn("clazzName=" + clazzName); String packageName = clazzName.substring(0, clazzName.lastIndexOf...
public void addComponentLogger(Type roleType) { privateLogger.warn("addComponentLogger(Type=" + roleType + ')'); final String clazzName = ((Class< ? >) roleType).getCanonicalName(); privateLogger.warn("clazzName=" + clazzName); String packageName = clazzName.substring(0, clazzNam...
diff --git a/yapoolGWT/src/com/jsar/client/http/HttpInterface.java b/yapoolGWT/src/com/jsar/client/http/HttpInterface.java index 227cc70..a5dcc96 100644 --- a/yapoolGWT/src/com/jsar/client/http/HttpInterface.java +++ b/yapoolGWT/src/com/jsar/client/http/HttpInterface.java @@ -1,68 +1,69 @@ package com.jsar.client.http...
true
true
public static void doPostJson(String url, Json json,RequestCallback requestCallback) { RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, url); //builder.setRequestData(json); if(YapoolGWT.currentSession.getName()==null){ Window.alert("you need to be logged in to do this action"); }...
public static void doPostJson(String url, Json json,RequestCallback requestCallback) { RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, url); //builder.setRequestData(json); if(YapoolGWT.currentSession.getName()==null){ Window.alert("you need to be logged in to do this action"); ...
diff --git a/src/ru/spb/osll/json/JsonFilterChannelResponse.java b/src/ru/spb/osll/json/JsonFilterChannelResponse.java index 9188631..b991253 100644 --- a/src/ru/spb/osll/json/JsonFilterChannelResponse.java +++ b/src/ru/spb/osll/json/JsonFilterChannelResponse.java @@ -1,84 +1,84 @@ /* * Copyright 2012 OSLL * * R...
true
true
public void parseJson(JSONObject obj) { super.parseJson(obj); try { JSONObject jchannel = obj.getJSONObject("channel"); final String channelName = jchannel.getString("name"); Channel channel = new Channel(channelName); JSONArray jmarks = jchannel.getJSONArray("items"); for (int j = 0; j < jmar...
public void parseJson(JSONObject obj) { super.parseJson(obj); try { JSONObject jchannel = obj.getJSONObject("channel"); final String channelName = jchannel.getString("name"); Channel channel = new Channel(channelName); JSONArray jmarks = jchannel.getJSONArray("items"); for (int j = 0; j < jmar...
diff --git a/application/src/se/chalmers/dat255/sleepfighter/speech/TextToSpeechUtil.java b/application/src/se/chalmers/dat255/sleepfighter/speech/TextToSpeechUtil.java index 623eab69..95bc46f9 100644 --- a/application/src/se/chalmers/dat255/sleepfighter/speech/TextToSpeechUtil.java +++ b/application/src/se/chalmers/da...
true
true
public static Locale getBestLanguage(TextToSpeech tts, Context context) { Locale[] locales = Locale.getAvailableLocales(); List<Locale> localeList = new ArrayList<Locale>(); for (Locale locale : locales) { int res = tts.isLanguageAvailable(locale); if (res == TextToSpeech.LANG_COUNTRY_AVAILABLE) { ...
public static Locale getBestLanguage(TextToSpeech tts, Context context) { Locale[] locales = Locale.getAvailableLocales(); List<Locale> localeList = new ArrayList<Locale>(); for (Locale locale : locales) { int res = tts.isLanguageAvailable(locale); if (res == TextToSpeech.LANG_COUNTRY_AVAILABLE) { ...
diff --git a/src/org/connectbot/HostListActivity.java b/src/org/connectbot/HostListActivity.java index 6da7043..48ac235 100644 --- a/src/org/connectbot/HostListActivity.java +++ b/src/org/connectbot/HostListActivity.java @@ -1,567 +1,568 @@ /* ConnectBot: simple, powerful, open-source SSH client for Android Copyri...
true
true
public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.act_hostlist); this.setTitle(String.format("%s: %s", getResources().getText(R.string.app_name), getResources().getText(R.string.title_hosts_list))); ExceptionHandler.register(this); // check for eula agreement ...
public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.act_hostlist); this.setTitle(String.format("%s: %s", getResources().getText(R.string.app_name), getResources().getText(R.string.title_hosts_list))); ExceptionHandler.register(this); // check for eula agreement ...
diff --git a/src/be/ibridge/kettle/spoon/Spoon.java b/src/be/ibridge/kettle/spoon/Spoon.java index dbd0bb61..fb5a6483 100644 --- a/src/be/ibridge/kettle/spoon/Spoon.java +++ b/src/be/ibridge/kettle/spoon/Spoon.java @@ -1,8856 +1,8856 @@ /********************************************************************** ** ...
true
true
public void verifyCopyDistribute(TransMeta transMeta, StepMeta fr) { int nrNextSteps = transMeta.findNrNextSteps(fr); // don't show it for 3 or more hops, by then you should have had the message if (nrNextSteps==2) { boolean distributes = false; ...
public void verifyCopyDistribute(TransMeta transMeta, StepMeta fr) { int nrNextSteps = transMeta.findNrNextSteps(fr); // don't show it for 3 or more hops, by then you should have had the message if (nrNextSteps==2) { boolean distributes = false; ...
diff --git a/src/cytoscape/launcher/CytoscapeLauncher.java b/src/cytoscape/launcher/CytoscapeLauncher.java index 72717aea3..0535ad58c 100644 --- a/src/cytoscape/launcher/CytoscapeLauncher.java +++ b/src/cytoscape/launcher/CytoscapeLauncher.java @@ -1,153 +1,153 @@ package cytoscape.launcher; import java.io.Buffer...
true
true
static boolean runCytoscape(final ArrayList<String> execArgs, final boolean verbose) { if (verbose) { System.err.print("Attempting to run: "); for (final String arg : execArgs) System.err.print(arg + " "); System.err.println(); } try { final Process child = Runtime.getRuntime().exec( ...
static boolean runCytoscape(final ArrayList<String> execArgs, final boolean verbose) { if (verbose) { System.err.print("Attempting to run: "); for (final String arg : execArgs) System.err.print(arg + " "); System.err.println(); } try { final Process child = Runtime.getRuntime().exec( ...
diff --git a/src/com/albaniliu/chuangxindemo/util/Downloader.java b/src/com/albaniliu/chuangxindemo/util/Downloader.java index a1a373a..c5d81ef 100644 --- a/src/com/albaniliu/chuangxindemo/util/Downloader.java +++ b/src/com/albaniliu/chuangxindemo/util/Downloader.java @@ -1,125 +1,126 @@ package com.albaniliu.chuangxi...
true
true
void download(FInode parent, JSONArray json) throws Exception { for (int i = 0; i < json.length() && !Thread.currentThread().isInterrupted(); i++) { JSONObject obj = (JSONObject) json.get(i); if (obj.has("url")) { FInode inode = new FInode(parent); ...
void download(FInode parent, JSONArray json) throws Exception { for (int i = 0; i < json.length() && !Thread.currentThread().isInterrupted(); i++) { JSONObject obj = (JSONObject) json.get(i); if (obj.has("url")) { FInode inode = new FInode(parent); ...
diff --git a/src/actions/SimpleStep.java b/src/actions/SimpleStep.java index 4cd00fb..6a15d7c 100644 --- a/src/actions/SimpleStep.java +++ b/src/actions/SimpleStep.java @@ -1,277 +1,284 @@ package actions; import java.util.ArrayList; import world.World; import entities.Agent; import entities.Hero; import enti...
false
true
public void execute(Agent agent, World world, ArrayList<String> args) { //invalid arguments, do nothing if (args.size() < 1) { System.out.println("Invalid arguments to action SimpleStep."); System.out.println("SimpleStep must take 1 argument denoting direction, as either: {up, down, left, right}"); r...
public void execute(Agent agent, World world, ArrayList<String> args) { //invalid arguments, do nothing if (args.size() < 1) { System.out.println("Invalid arguments to action SimpleStep."); System.out.println("SimpleStep must take 1 argument denoting direction, as either: {up, down, left, right}"); r...
diff --git a/src/com/where/atlas/feed/yellowpages/YPdedupe/YPJSONMerger.java b/src/com/where/atlas/feed/yellowpages/YPdedupe/YPJSONMerger.java index fdcc9cd..ae17646 100644 --- a/src/com/where/atlas/feed/yellowpages/YPdedupe/YPJSONMerger.java +++ b/src/com/where/atlas/feed/yellowpages/YPdedupe/YPJSONMerger.java @@ -1,2...
false
true
public static void parseListings(String path) throws IOException, JSONException { BufferedReader br = new BufferedReader(new FileReader(path)); listings = new HashSet<JSONObject>(); int count =0 ; String line = null; while((line = br.readLine()) != null) { count++; listings.add(new JSONOb...
public static void parseListings(String path) throws IOException, JSONException { BufferedReader br = new BufferedReader(new FileReader(path)); listings = new HashSet<JSONObject>(); int count =0 ; String line = null; while((line = br.readLine()) != null) { count++; listings.add(new JSONOb...
diff --git a/src/main/java/scs/georesults/logic/utils/FormUtils.java b/src/main/java/scs/georesults/logic/utils/FormUtils.java index d616f09..025a159 100644 --- a/src/main/java/scs/georesults/logic/utils/FormUtils.java +++ b/src/main/java/scs/georesults/logic/utils/FormUtils.java @@ -1,153 +1,153 @@ package scs.geores...
true
true
public List getSablonok () throws IOException, SessionTimeoutException { try { List results = new List(); Properties sablonok = ConfigUtils.loadProperties( "sablonok.config" ); for ( Enumeration en = sablonok.propertyNames(); en.hasMoreElements(); ) { String filename = ( String ) en.ne...
public List getSablonok () throws IOException, SessionTimeoutException { try { List results = new List(); Properties sablonok = ConfigUtils.loadProperties( "sablonok.properties" ); for ( Enumeration en = sablonok.propertyNames(); en.hasMoreElements(); ) { String filename = ( String ) e...
diff --git a/pmd/src/net/sourceforge/pmd/SimpleRuleSetNameMapper.java b/pmd/src/net/sourceforge/pmd/SimpleRuleSetNameMapper.java index bc29658a9..090cae6f2 100644 --- a/pmd/src/net/sourceforge/pmd/SimpleRuleSetNameMapper.java +++ b/pmd/src/net/sourceforge/pmd/SimpleRuleSetNameMapper.java @@ -1,65 +1,66 @@ package net....
true
true
private void populateNameMap() { nameMap.put("basic", "rulesets/basic.xml"); nameMap.put("braces", "rulesets/braces.xml"); nameMap.put("clone", "rulesets/clone.xml"); nameMap.put("codesize", "rulesets/codesize.xml"); nameMap.put("controversial", "rulesets/controversial.xml");...
private void populateNameMap() { nameMap.put("basic", "rulesets/basic.xml"); nameMap.put("braces", "rulesets/braces.xml"); nameMap.put("clone", "rulesets/clone.xml"); nameMap.put("codesize", "rulesets/codesize.xml"); nameMap.put("controversial", "rulesets/controversial.xml");...
diff --git a/src/com/wolvencraft/prison/mines/cmd/EditCommand.java b/src/com/wolvencraft/prison/mines/cmd/EditCommand.java index 94dcdcb..e26dea8 100644 --- a/src/com/wolvencraft/prison/mines/cmd/EditCommand.java +++ b/src/com/wolvencraft/prison/mines/cmd/EditCommand.java @@ -1,223 +1,227 @@ package com.wolvencraft.pr...
true
true
public boolean run(String[] args) { Language language = PrisonMine.getLanguage(); Mine curMine = PrisonMine.getCurMine(); if(curMine == null && !args[0].equalsIgnoreCase("edit") && !args[0].equalsIgnoreCase("delete")) { Message.sendFormattedError(language.ERROR_MINENOTSELECTED); return false; ...
public boolean run(String[] args) { Language language = PrisonMine.getLanguage(); Mine curMine = PrisonMine.getCurMine(); if(curMine == null && !args[0].equalsIgnoreCase("edit") && !args[0].equalsIgnoreCase("delete")) { Message.sendFormattedError(language.ERROR_MINENOTSELECTED); return false; ...
diff --git a/src/web/org/openmrs/web/controller/observation/PersonObsFormController.java b/src/web/org/openmrs/web/controller/observation/PersonObsFormController.java index 085e6601..1b957d8e 100644 --- a/src/web/org/openmrs/web/controller/observation/PersonObsFormController.java +++ b/src/web/org/openmrs/web/controlle...
false
true
protected CommandObject formBackingObject(HttpServletRequest request) throws Exception { if (!Context.isAuthenticated()) return new CommandObject(); Person person = Context.getPersonService().getPerson(Integer.valueOf(request.getParameter("personId"))); Concept concept = null; if (request.getParameter("c...
protected CommandObject formBackingObject(HttpServletRequest request) throws Exception { if (!Context.isAuthenticated()) return new CommandObject(); Person person = Context.getPersonService().getPerson(Integer.valueOf(request.getParameter("personId"))); List<Concept> concepts = null; Concept concept = nu...
diff --git a/src/com/redhat/ceylon/compiler/java/loader/MethodOrValueReferenceVisitor.java b/src/com/redhat/ceylon/compiler/java/loader/MethodOrValueReferenceVisitor.java index b9839be0d..6898f18b2 100644 --- a/src/com/redhat/ceylon/compiler/java/loader/MethodOrValueReferenceVisitor.java +++ b/src/com/redhat/ceylon/com...
true
true
private void capture(Tree.Primary that, boolean methodSpecifier) { if (that instanceof Tree.MemberOrTypeExpression) { final Declaration decl = ((Tree.MemberOrTypeExpression) that).getDeclaration(); if (!(decl instanceof TypedDeclaration)) { return; } ...
private void capture(Tree.Primary that, boolean methodSpecifier) { if (that instanceof Tree.MemberOrTypeExpression) { final Declaration decl = ((Tree.MemberOrTypeExpression) that).getDeclaration(); if (!(decl instanceof TypedDeclaration)) { return; } ...
diff --git a/modules/jobs/src/main/java/org/immutant/jobs/ClojureJob.java b/modules/jobs/src/main/java/org/immutant/jobs/ClojureJob.java index 1bac1221..751ad968 100644 --- a/modules/jobs/src/main/java/org/immutant/jobs/ClojureJob.java +++ b/modules/jobs/src/main/java/org/immutant/jobs/ClojureJob.java @@ -1,50 +1,50 @@...
true
true
public void execute(JobExecutionContext context) throws JobExecutionException { try { this.runtime.invoke( this.fn ); } catch (Exception e) { throw new JobExecutionException( e ); } }
public void execute(JobExecutionContext context) throws JobExecutionException { try { this.runtime.invoke( this.fn, context ); } catch (Exception e) { throw new JobExecutionException( e ); } }
diff --git a/src/main/java/com/redhat/ceylon/compiler/js/InvocationGenerator.java b/src/main/java/com/redhat/ceylon/compiler/js/InvocationGenerator.java index b3b5c60a..4009c48b 100644 --- a/src/main/java/com/redhat/ceylon/compiler/js/InvocationGenerator.java +++ b/src/main/java/com/redhat/ceylon/compiler/js/Invocation...
false
true
List<String> generatePositionalArguments(Tree.ArgumentList that, List<Tree.PositionalArgument> args, final boolean forceSequenced, final boolean generateVars) { if (!args.isEmpty()) { final List<String> argvars = new ArrayList<String>(args.size()); boolean first=true; ...
List<String> generatePositionalArguments(Tree.ArgumentList that, List<Tree.PositionalArgument> args, final boolean forceSequenced, final boolean generateVars) { if (!args.isEmpty()) { final List<String> argvars = new ArrayList<String>(args.size()); boolean first=true; ...
diff --git a/projects/connector-manager/source/java/com/google/enterprise/connector/pusher/GsaFeedConnection.java b/projects/connector-manager/source/java/com/google/enterprise/connector/pusher/GsaFeedConnection.java index fd33f9d5..a0ce89b8 100644 --- a/projects/connector-manager/source/java/com/google/enterprise/conn...
false
true
public String sendData(String dataSource, FeedData feedData) throws FeedException, RepositoryException { String feedType = ((GsaFeedData)feedData).getFeedType(); InputStream data = ((GsaFeedData)feedData).getData(); OutputStream outputStream; URLConnection uc; try { LOGGER.finest("Open...
public String sendData(String dataSource, FeedData feedData) throws FeedException, RepositoryException { String feedType = ((GsaFeedData)feedData).getFeedType(); InputStream data = ((GsaFeedData)feedData).getData(); OutputStream outputStream; URLConnection uc; try { LOGGER.finest("Open...
diff --git a/neddybenchmark/src/main/java/com/fbudassi/neddy/benchmark/benchmarks/WebsocketBenchmark.java b/neddybenchmark/src/main/java/com/fbudassi/neddy/benchmark/benchmarks/WebsocketBenchmark.java index bdb1580..6685f6f 100644 --- a/neddybenchmark/src/main/java/com/fbudassi/neddy/benchmark/benchmarks/WebsocketBench...
true
true
public void execute() throws Exception { logger.info("Trying to generate {} listeners to the server", totalConnections); // Get the first three octets by one side and the last one by the other side. String clientIpBase = CLIENT_BASEADDRESS.substring(0, CLIENT_BASEADDRESS.lastIndexOf(".") + ...
public void execute() throws Exception { logger.info("Trying to generate {} listeners to the server", totalConnections); // Get the first three octets by one side and the last one by the other side. String clientIpBase = CLIENT_BASEADDRESS.substring(0, CLIENT_BASEADDRESS.lastIndexOf(".") + ...
diff --git a/src/cm/aptoide/pt/adapters/UpdatesAdapter.java b/src/cm/aptoide/pt/adapters/UpdatesAdapter.java index d4beb136..a022214a 100644 --- a/src/cm/aptoide/pt/adapters/UpdatesAdapter.java +++ b/src/cm/aptoide/pt/adapters/UpdatesAdapter.java @@ -1,136 +1,138 @@ /***************************************************...
true
true
public void bindView(View view, final Context context, Cursor cursor) { ViewHolder holder = (ViewHolder) view.getTag(); if (holder == null) { holder = new ViewHolder(); holder.name = (TextView) view.findViewById(R.id.app_name); holder.icon= (ImageView) view.findViewById(R....
public void bindView(View view, final Context context, Cursor cursor) { ViewHolder holder = (ViewHolder) view.getTag(); if (holder == null) { holder = new ViewHolder(); holder.name = (TextView) view.findViewById(R.id.app_name); holder.icon= (ImageView) view.findViewById(R....
diff --git a/modules/org.restlet.example/src/org/restlet/example/tutorial/OrderResource.java b/modules/org.restlet.example/src/org/restlet/example/tutorial/OrderResource.java index eeefe453d..6b2ac9706 100644 --- a/modules/org.restlet.example/src/org/restlet/example/tutorial/OrderResource.java +++ b/modules/org.restlet...
true
true
public void doInit() { this.orderId = (String) getRequestAttributes().get("order"); this.order = null; // Could be a lookup to a domain object. }
public void doInit() { super.doInit(); this.orderId = (String) getRequestAttributes().get("order"); this.order = null; // Could be a lookup to a domain object. }
diff --git a/atlassian-plugins-core/src/main/java/com/atlassian/plugin/factories/LegacyDynamicPluginFactory.java b/atlassian-plugins-core/src/main/java/com/atlassian/plugin/factories/LegacyDynamicPluginFactory.java index 48a5a049..f7a5f9f8 100644 --- a/atlassian-plugins-core/src/main/java/com/atlassian/plugin/factories...
true
true
public Plugin create(DeploymentUnit deploymentUnit, ModuleDescriptorFactory moduleDescriptorFactory) throws PluginParseException { Validate.notNull(deploymentUnit, "The deployment unit must not be null"); Validate.notNull(moduleDescriptorFactory, "The module descriptor factory must not be null")...
public Plugin create(DeploymentUnit deploymentUnit, ModuleDescriptorFactory moduleDescriptorFactory) throws PluginParseException { Validate.notNull(deploymentUnit, "The deployment unit must not be null"); Validate.notNull(moduleDescriptorFactory, "The module descriptor factory must not be null")...
diff --git a/com.vainolo.phd.opm.gef/src/com/vainolo/phd/opm/gef/action/ResizeToContentsAction.java b/com.vainolo.phd.opm.gef/src/com/vainolo/phd/opm/gef/action/ResizeToContentsAction.java index e2249f4..0fcfa35 100644 --- a/com.vainolo.phd.opm.gef/src/com/vainolo/phd/opm/gef/action/ResizeToContentsAction.java +++ b/co...
false
true
protected boolean calculateEnabled() { if (getSelectedObjects().isEmpty()) { return false; } for (Object selectedObject : getSelectedObjects()) { if (selectedObject instanceof OPMNodeEditPart) { return true; } } return false; }
protected boolean calculateEnabled() { if (getSelectedObjects().isEmpty()) { return false; } for (Object selectedObject : getSelectedObjects()) { if (!(selectedObject instanceof OPMNodeEditPart)) { return false; } } return true; }
diff --git a/tests/org.eclipse.xtext.xtend2.tests/src/org/eclipse/xtext/xtend2/tests/compiler/TestCaseCompiler.java b/tests/org.eclipse.xtext.xtend2.tests/src/org/eclipse/xtext/xtend2/tests/compiler/TestCaseCompiler.java index 58476c75c..f33f34183 100644 --- a/tests/org.eclipse.xtext.xtend2.tests/src/org/eclipse/xtext/...
true
true
public void compile(String qualifiedName) throws IOException { ResourceSet set = injector.getInstance(ResourceSet.class); final String from = "src/" + qualifiedName.replace('.', '/') + ".xtd"; final String to = "src-gen/" + qualifiedName.replace('.', '/') + ".java"; Resource res = set.getResource(org.eclipse....
public void compile(String qualifiedName) throws IOException { ResourceSet set = injector.getInstance(ResourceSet.class); final String from = "src/" + qualifiedName.replace('.', '/') + ".xtend"; final String to = "src-gen/" + qualifiedName.replace('.', '/') + ".java"; Resource res = set.getResource(org.eclips...
diff --git a/deprecated/org.atl.engine.vm/src/org/atl/engine/vm/nativelib/ASMTransientLinkSet.java b/deprecated/org.atl.engine.vm/src/org/atl/engine/vm/nativelib/ASMTransientLinkSet.java index 3f7c856b..361f05ef 100644 --- a/deprecated/org.atl.engine.vm/src/org/atl/engine/vm/nativelib/ASMTransientLinkSet.java +++ b/dep...
true
true
public static void addLink2(StackFrame frame, ASMTransientLinkSet self, ASMTransientLink link, ASMBoolean isDefault) { ASMOclAny rule = ASMTransientLink.getRule(frame, link); ASMSequence s = (ASMSequence)self.linksByRule.get(rule); if(s == null) { s = new ASMSequence(); self.linksByRule.put(rule, s); } ...
public static void addLink2(StackFrame frame, ASMTransientLinkSet self, ASMTransientLink link, ASMBoolean isDefault) { ASMOclAny rule = ASMTransientLink.getRule(frame, link); ASMSequence s = (ASMSequence)self.linksByRule.get(rule); if(s == null) { s = new ASMSequence(); self.linksByRule.put(rule, s); } ...
diff --git a/src/main/java/com/mysema/webmin/html/HTMLMinifierFilter.java b/src/main/java/com/mysema/webmin/html/HTMLMinifierFilter.java index b26621e..3b704b7 100644 --- a/src/main/java/com/mysema/webmin/html/HTMLMinifierFilter.java +++ b/src/main/java/com/mysema/webmin/html/HTMLMinifierFilter.java @@ -1,66 +1,66 @@ ...
true
true
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { String url = ((HttpServletRequest)request).getRequestURI(); String suffix = url.substring(url.lastIndexOf('.')+1); if (skipList.contains(suffix)){ ...
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { String url = ((HttpServletRequest)request).getRequestURI(); String suffix = url.substring(url.lastIndexOf('.')+1); if (skipList.contains(suffix)){ ...
diff --git a/MasterServer/src/domain/message/Message.java b/MasterServer/src/domain/message/Message.java index 57d12a1..2bf72a3 100644 --- a/MasterServer/src/domain/message/Message.java +++ b/MasterServer/src/domain/message/Message.java @@ -1,174 +1,174 @@ /** * SOEN 490 * Capstone 2011 * Message domain object. ...
true
true
public boolean equals(Object o) { // If the object is not null and is of the type User if ((o != null) && (o.getClass().equals(this.getClass()))) { // Test all of the particulars return ( ((Message)o).getMid().equals(this.getMid()) && ((Message)o).getMessage().equals(this.getMessage()) ...
public boolean equals(Object o) { // If the object is not null and is of the type User if ((o != null) && (o.getClass().equals(this.getClass()))) { // Test all of the particulars return ( ((Message)o).getMid().equals(this.getMid()) && ((Message)o).getMessage().equals(this.getMessage()) ...
diff --git a/src/java-common/org/xins/util/LongUtils.java b/src/java-common/org/xins/util/LongUtils.java index 4958cb293..a5ad73966 100644 --- a/src/java-common/org/xins/util/LongUtils.java +++ b/src/java-common/org/xins/util/LongUtils.java @@ -1,170 +1,170 @@ /* * $Id$ */ package org.xins.util; /** * Utilit...
true
true
public static long parseHexString(String s, int index) throws IllegalArgumentException, NumberFormatException { // Check preconditions if (s == null) { throw new IllegalArgumentException("s == null"); } else if (s.length() != 16) { throw new IllegalArgumentException("s.length(...
public static long parseHexString(String s, int index) throws IllegalArgumentException, NumberFormatException { // Check preconditions if (s == null) { throw new IllegalArgumentException("s == null"); } else if (s.length() < index + 16) { throw new IllegalArgumentException("s....
diff --git a/src/main/java/com/google/gwt/sample/contacts/client/presenter/ContactsPresenter.java b/src/main/java/com/google/gwt/sample/contacts/client/presenter/ContactsPresenter.java index 0fd6e66..3379290 100644 --- a/src/main/java/com/google/gwt/sample/contacts/client/presenter/ContactsPresenter.java +++ b/src/main...
false
true
private void deleteSelectedContacts() { final List<ContactDetails> selectedContacts = selectionModel.getSelectedItems(); final ArrayList<String> ids = new ArrayList<String>(); for ( final ContactDetails selected : selectedContacts ) { ids.add( selected.getId() ); } rpcService.deleteC...
private void deleteSelectedContacts() { final List<ContactDetails> selectedContacts = selectionModel.getSelectedItems(); final ArrayList<String> ids = new ArrayList<String>(); for ( final ContactDetails selected : selectedContacts ) { ids.add( selected.getId() ); } rpcService.deleteC...
diff --git a/src/main/java/com/philihp/weblabora/model/building/ShippingCompany.java b/src/main/java/com/philihp/weblabora/model/building/ShippingCompany.java index 59fe16b..f14a7f1 100644 --- a/src/main/java/com/philihp/weblabora/model/building/ShippingCompany.java +++ b/src/main/java/com/philihp/weblabora/model/build...
true
true
public void use(Board board, UsageParamDouble input) throws WeblaboraException { Player player = board.getPlayer(board.getActivePlayer()); if(input.getEnergy() < 3) { throw new WeblaboraException("Not enough energy. "+getName()+" needs 3 energy, but was only given "+input.getEnergy()); } player.subtractE...
public void use(Board board, UsageParamDouble input) throws WeblaboraException { Player player = board.getPlayer(board.getActivePlayer()); if(input.getEnergy() < 3) { throw new WeblaboraException("Not enough energy. "+getName()+" needs 3 energy, but was only given "+input.getEnergy()); } player.subtractE...
diff --git a/src/java/com/sapienter/jbilling/server/item/PlanBL.java b/src/java/com/sapienter/jbilling/server/item/PlanBL.java index f7ec63f9..c714567c 100644 --- a/src/java/com/sapienter/jbilling/server/item/PlanBL.java +++ b/src/java/com/sapienter/jbilling/server/item/PlanBL.java @@ -1,400 +1,402 @@ /* jBilling - ...
true
true
public void update(PlanDTO dto) { if (plan != null) { // un-subscribe existing customers before updating List<CustomerDTO> subscribers = getCustomersByPlan(plan.getId()); for (CustomerDTO customer : subscribers) { unsubscribe(customer.getBaseUser().getUse...
public void update(PlanDTO dto) { if (plan != null) { // un-subscribe existing customers before updating List<CustomerDTO> subscribers = getCustomersByPlan(plan.getId()); for (CustomerDTO customer : subscribers) { unsubscribe(customer.getBaseUser().getUse...
diff --git a/src/main/java/net/croxis/plugins/civilmineation/CivAPI.java b/src/main/java/net/croxis/plugins/civilmineation/CivAPI.java index c53b1da..f6b4296 100644 --- a/src/main/java/net/croxis/plugins/civilmineation/CivAPI.java +++ b/src/main/java/net/croxis/plugins/civilmineation/CivAPI.java @@ -1,607 +1,607 @@ pa...
false
true
public static void updateCityCharter(CityComponent city){ if (city == null){ Civilmineation.log("Error. No city at that charter"); return; } SignComponent signComp = getSign(SignType.CITY_CHARTER, city.getEntityID()); Block charter = plugin.getServer().getWorld(signComp.getWorld()).g...
public static void updateCityCharter(CityComponent city){ if (city == null){ Civilmineation.log("Error. No city at that charter"); return; } SignComponent signComp = getSign(SignType.CITY_CHARTER, city.getEntityID()); Block charter = plugin.getServer().getWorld(signComp.getWorld()).g...
diff --git a/src/com/scarredions/stab/STPersonListAdapter.java b/src/com/scarredions/stab/STPersonListAdapter.java index fbf5c1e..1a48436 100644 --- a/src/com/scarredions/stab/STPersonListAdapter.java +++ b/src/com/scarredions/stab/STPersonListAdapter.java @@ -1,39 +1,43 @@ package com.scarredions.stab; import andr...
true
true
public View getView(int position, View convertView, ViewGroup parent) { TextView tv = new TextView(mContext); tv.setText(items[position]); tv.setHeight(100); tv.setWidth(100); tv.setGravity(android.view.Gravity.CENTER); return tv; }
public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) { TextView tv = new TextView(mContext); tv.setText(items[position]); tv.setHeight(100); tv.setWidth(100); tv.setGravity(android.view.Gravity.CENTER); return ...
diff --git a/commons-gdx-core/src/main/java/com/gemserk/commons/gdx/gui/Container.java b/commons-gdx-core/src/main/java/com/gemserk/commons/gdx/gui/Container.java index 770cc0a..5209e2c 100644 --- a/commons-gdx-core/src/main/java/com/gemserk/commons/gdx/gui/Container.java +++ b/commons-gdx-core/src/main/java/com/gemser...
false
true
public <T extends Control> T findControl(String id) { for (int i = 0; i < controls.size(); i++) { Control control = controls.get(i); if (control.getId().equals(id)) return (T) control; if (control instanceof Container) { Container container = (Container) control; T child = container.findControl(...
public <T extends Control> T findControl(String id) { for (int i = 0; i < controls.size(); i++) { Control control = controls.get(i); if (control.getId().equals(id)) return (T) control; if (control instanceof Container) { Container container = (Container) control; T child = (T) container.findCont...
diff --git a/NoItem/src/net/worldoftomorrow/nala/ni/ToolListener.java b/NoItem/src/net/worldoftomorrow/nala/ni/ToolListener.java index c48181b..24135ff 100644 --- a/NoItem/src/net/worldoftomorrow/nala/ni/ToolListener.java +++ b/NoItem/src/net/worldoftomorrow/nala/ni/ToolListener.java @@ -1,70 +1,70 @@ package net.worl...
true
true
public void onLandFarm(PlayerInteractEvent event){ Block block = event.getClickedBlock(); if(event.getAction() == Action.RIGHT_CLICK_BLOCK){ if(block.getType().equals(Material.DIRT) || block.getType().equals(Material.GRASS)){ Player p = event.getPlayer(); ItemStack stack = p.getItemInHand(); int inH...
public void onLandFarm(PlayerInteractEvent event){ Block block = event.getClickedBlock(); if(event.getAction() == Action.RIGHT_CLICK_BLOCK){ if(block.getType().equals(Material.DIRT) || block.getType().equals(Material.GRASS)){ Player p = event.getPlayer(); ItemStack stack = new ItemStack(p.getItemInHand(...
diff --git a/shell/src/test/java/org/jboss/forge/shell/test/plugins/builtin/ChangeDirectoryPluginTest.java b/shell/src/test/java/org/jboss/forge/shell/test/plugins/builtin/ChangeDirectoryPluginTest.java index 70dbb60d1..5d01aa261 100644 --- a/shell/src/test/java/org/jboss/forge/shell/test/plugins/builtin/ChangeDirector...
true
true
public void testAbsolutePath() throws Exception { Shell shell = getShell(); shell.execute("cd ~"); Resource<?> currentDirectory = shell.getCurrentResource(); Resource<?> parent = currentDirectory.getParent(); String parentPath = parent.getFullyQualifiedName(); shell.execute(...
public void testAbsolutePath() throws Exception { Shell shell = getShell(); shell.execute("cd ~"); Resource<?> currentDirectory = shell.getCurrentResource(); Resource<?> parent = currentDirectory.getParent(); String parentPath = parent.getFullyQualifiedName(); if (parentPath...
diff --git a/src/com/joulespersecond/seattlebusbot/TripListActivity.java b/src/com/joulespersecond/seattlebusbot/TripListActivity.java index 7c18066f..c1d614be 100644 --- a/src/com/joulespersecond/seattlebusbot/TripListActivity.java +++ b/src/com/joulespersecond/seattlebusbot/TripListActivity.java @@ -1,217 +1,218 @@ ...
true
true
private void fillTrips() { ContentResolver cr = getContentResolver(); Cursor c = cr.query(ObaContract.Trips.CONTENT_URI, PROJECTION, null, null, ObaContract.Trips.NAME + " asc"); startManagingCursor(c); final String[] from = { ObaContract.Trips.NAME, ...
private void fillTrips() { ContentResolver cr = getContentResolver(); Cursor c = cr.query(ObaContract.Trips.CONTENT_URI, PROJECTION, null, null, ObaContract.Trips.NAME + " asc"); startManagingCursor(c); final String[] from = { ObaContract.Trips.NAME, ...
diff --git a/src/alpv/mwp/crawler/HttpConnectionImpl.java b/src/alpv/mwp/crawler/HttpConnectionImpl.java index 92fc4b3..97198e3 100644 --- a/src/alpv/mwp/crawler/HttpConnectionImpl.java +++ b/src/alpv/mwp/crawler/HttpConnectionImpl.java @@ -1,96 +1,96 @@ package alpv.mwp.crawler; import java.io.BufferedReader; imp...
true
true
public HttpConnectionImpl(HttpURL httpURL) throws UnknownHostException, IOException { Socket socket = new Socket(httpURL.getHost(), httpURL.getPort()); System.out.println("Connect to: " + httpURL.getHost() + ":" + httpURL.getPort()); // Send request String protocol = "HTTP/1.1"; String request = "GET "...
public HttpConnectionImpl(HttpURL httpURL) throws UnknownHostException, IOException { Socket socket = new Socket(httpURL.getHost(), httpURL.getPort()); System.out.println("Connect to: " + httpURL.getHost() + ":" + httpURL.getPort()); // Send request String protocol = "HTTP/1.1"; String request = "GET "...
diff --git a/src/main/java/com/griefcraft/util/matchers/WallMatcher.java b/src/main/java/com/griefcraft/util/matchers/WallMatcher.java index fbd21061..8d6073eb 100644 --- a/src/main/java/com/griefcraft/util/matchers/WallMatcher.java +++ b/src/main/java/com/griefcraft/util/matchers/WallMatcher.java @@ -1,157 +1,157 @@ ...
true
true
private Block tryMatchBlock(Block block, BlockFace matchingFace) { byte direction = block.getData(); // Blocks such as wall signs if (PROTECTABLES_WALL.contains(block.getType())) { byte EAST = 0x02; byte WEST = 0x03; byte SOUTH = 0x05; byte NO...
private Block tryMatchBlock(Block block, BlockFace matchingFace) { byte direction = block.getData(); // Blocks such as wall signs if (PROTECTABLES_WALL.contains(block.getType())) { byte EAST = 0x05; byte WEST = 0x04; byte SOUTH = 0x03; byte NO...
diff --git a/activeweb-testing/src/main/java/org/javalite/activeweb/AppIntegrationSpec.java b/activeweb-testing/src/main/java/org/javalite/activeweb/AppIntegrationSpec.java index 3ae2ad8..c83cf16 100644 --- a/activeweb-testing/src/main/java/org/javalite/activeweb/AppIntegrationSpec.java +++ b/activeweb-testing/src/main...
true
true
public void beforeAppIntegrationSpec() throws ServletException { requestDispatcher.init(new MockFilterConfig()); requestDispatcher.initApp(context); if(!suppressDb){ Configuration.setTesting(true); DBSpecHelper.openTestConnections(); } }
public void beforeAppIntegrationSpec() throws ServletException { requestDispatcher.init(new MockFilterConfig()); if(!suppressDb){ Configuration.setTesting(true); DBSpecHelper.openTestConnections(); } }
diff --git a/LNReader/src/com/erakk/lnreader/adapter/UpdateInfoModelAdapter.java b/LNReader/src/com/erakk/lnreader/adapter/UpdateInfoModelAdapter.java index 6146815..fbd3d53 100644 --- a/LNReader/src/com/erakk/lnreader/adapter/UpdateInfoModelAdapter.java +++ b/LNReader/src/com/erakk/lnreader/adapter/UpdateInfoModelAdap...
true
true
public View getView(int position, View convertView, ViewGroup parent) { View row = convertView; UpdateInfoModelHolder holder = null; final UpdateInfoModel page = data.get(position); boolean freshData = false; if (now.getTime() - page.getUpdateDate().getTime() <= repeatTime) { freshData = true; } Lay...
public View getView(int position, View convertView, ViewGroup parent) { View row = convertView; UpdateInfoModelHolder holder = null; final UpdateInfoModel page = data.get(position); boolean freshData = false; if (now.getTime() - page.getUpdateDate().getTime() <= repeatTime) { freshData = true; } Lay...
diff --git a/core/src/main/java/hudson/triggers/SCMTrigger.java b/core/src/main/java/hudson/triggers/SCMTrigger.java index f21c46002..ba68d3d11 100644 --- a/core/src/main/java/hudson/triggers/SCMTrigger.java +++ b/core/src/main/java/hudson/triggers/SCMTrigger.java @@ -1,290 +1,296 @@ package hudson.triggers; import...
true
true
private boolean runPolling() { try { // to make sure that the log file contains up-to-date text, // don't do buffering. OutputStream fos = new FileOutputStream(getLogFile()); TaskListener listener = new StreamTaskListener(fos); ...
private boolean runPolling() { try { // to make sure that the log file contains up-to-date text, // don't do buffering. OutputStream fos = new FileOutputStream(getLogFile()); TaskListener listener = new StreamTaskListener(fos); ...
diff --git a/sources/net.sf.j2s.java.core/src/java/util/Arrays.java b/sources/net.sf.j2s.java.core/src/java/util/Arrays.java index c045a4d..fd83e05 100644 --- a/sources/net.sf.j2s.java.core/src/java/util/Arrays.java +++ b/sources/net.sf.j2s.java.core/src/java/util/Arrays.java @@ -1,3124 +1,3130 @@ /* * @(#)Arrays.ja...
true
true
private static int binarySearch(double[] a, double key, int low,int high) { while (low <= high) { int mid = (low + high) >> 1; double midVal = a[mid]; int cmp; if (midVal < key) { cmp = -1; // Neither val is NaN, thisVal is smaller } else if (midVal ...
private static int binarySearch(double[] a, double key, int low,int high) { while (low <= high) { int mid = (low + high) >> 1; double midVal = a[mid]; int cmp; if (midVal < key) { cmp = -1; // Neither val is NaN, thisVal is smaller } else if (midVal ...
diff --git a/webapp/src/main/java/ch/windmobile/server/resource/ChatRoomResource.java b/webapp/src/main/java/ch/windmobile/server/resource/ChatRoomResource.java index 972faf5..3dada50 100644 --- a/webapp/src/main/java/ch/windmobile/server/resource/ChatRoomResource.java +++ b/webapp/src/main/java/ch/windmobile/server/re...
true
true
public void postMessage(String message) { try { String email; String pseudo; String emailHash; ChatService chatService = serviceLocator.getService(ChatService.class); if (SecurityHelper.hasRole(WindMobileAuthenticationProvider.roleUser) == false) ...
public void postMessage(String message) { try { String email; String pseudo; String emailHash; ChatService chatService = serviceLocator.getService(ChatService.class); if (SecurityHelper.hasRole(WindMobileAuthenticationProvider.roleUser) == false) ...
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/repo/RepositoryManager.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/repo/RepositoryManager.java index 3836cc0cf..35c71b192 100644 --- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui...
true
true
private void readOldState(DataInputStream dis) throws IOException, TeamException { int repoSize = dis.readInt(); boolean version1 = false; if (repoSize == STATE_FILE_VERSION_1) { version1 = true; repoSize = dis.readInt(); } for (int i = 0; i < repoSize; i++) { ICVSRepositoryLocation root = KnownRepo...
private void readOldState(DataInputStream dis) throws IOException, TeamException { int repoSize = dis.readInt(); boolean version1 = false; if (repoSize == STATE_FILE_VERSION_1) { version1 = true; repoSize = dis.readInt(); } for (int i = 0; i < repoSize; i++) { ICVSRepositoryLocation root = KnownRepo...
diff --git a/web-core/src/main/java/com/stratelia/silverpeas/peasCore/SessionManager.java b/web-core/src/main/java/com/stratelia/silverpeas/peasCore/SessionManager.java index aa0f666f73..45837e8e2b 100644 --- a/web-core/src/main/java/com/stratelia/silverpeas/peasCore/SessionManager.java +++ b/web-core/src/main/java/com...
false
true
public synchronized void doSessionManagement(Date currentDate) { try { long currentTime = currentDate.getTime(); List<SessionInfo> expiredSessions = new ArrayList<SessionInfo>(userDataSessions.size()); Collection<SessionInfo> allSI = userDataSessions.values(); for (SessionInfo si : allSI)...
public synchronized void doSessionManagement(Date currentDate) { try { long currentTime = currentDate.getTime(); List<SessionInfo> expiredSessions = new ArrayList<SessionInfo>(userDataSessions.size()); Collection<SessionInfo> allSI = userDataSessions.values(); for (SessionInfo si : allSI)...