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/webapp/src/test/java/org/apache/ivory/util/ResourcesReflectionUtilTest.java b/webapp/src/test/java/org/apache/ivory/util/ResourcesReflectionUtilTest.java index 236cf1a1..480ad226 100644 --- a/webapp/src/test/java/org/apache/ivory/util/ResourcesReflectionUtilTest.java +++ b/webapp/src/test/java/org/apache/i...
true
true
public void testMonitoredResources(){ Assert.assertEquals("submit",ResourcesReflectionUtil.getResourceMonitorName("EntityManager.submit")); Assert.assertEquals("entityType", ResourcesReflectionUtil.getResourceDimensionsName("EntityManager.submit").get(1)); Assert.assertEquals("submitAndSchedule",ResourcesRefl...
public void testMonitoredResources(){ Assert.assertEquals("submit",ResourcesReflectionUtil.getResourceMonitorName("EntityManager.submit")); Assert.assertEquals("entityType", ResourcesReflectionUtil.getResourceDimensionsName("EntityManager.submit").get(1)); Assert.assertEquals("submitAndSchedule",ResourcesRefl...
diff --git a/src/kfs/kfsDbi/kfsADb.java b/src/kfs/kfsDbi/kfsADb.java index 85fd9a0..8e858e8 100644 --- a/src/kfs/kfsDbi/kfsADb.java +++ b/src/kfs/kfsDbi/kfsADb.java @@ -1,537 +1,539 @@ package kfs.kfsDbi; import java.sql.*; import java.util.*; import java.util.logging.Level; import java.util.logging.Logger; /...
false
true
protected void createTables(String schema) { try { PreparedStatement psExistTable = conn.prepareStatement(getExist()); Statement executeStatement = conn.createStatement(); for (kfsDbiTable ie : getDbObjects()) { if (ie == null) { throw ...
protected void createTables(String schema) { try { PreparedStatement psExistTable = conn.prepareStatement(getExist()); Statement executeStatement = conn.createStatement(); for (kfsDbiTable ie : getDbObjects()) { if (ie == null) { throw ...
diff --git a/core/src/test/java/org/apache/mahout/df/split/OptIgSplitTest.java b/core/src/test/java/org/apache/mahout/df/split/OptIgSplitTest.java index 95eb33fd..3d83259f 100644 --- a/core/src/test/java/org/apache/mahout/df/split/OptIgSplitTest.java +++ b/core/src/test/java/org/apache/mahout/df/split/OptIgSplitTest.ja...
true
true
public void testComputeSplit() throws Exception { int n = 100; IgSplit ref = new DefaultIgSplit(); IgSplit opt = new OptIgSplit(); Random rng = RandomUtils.getRandom(); Data data = Utils.randomData(rng, nbAttributes, numInstances); for (int nloop = 0; nloop < n; nloop++) { int attr = ...
public void testComputeSplit() throws Exception { int n = 100; IgSplit ref = new DefaultIgSplit(); IgSplit opt = new OptIgSplit(); Random rng = RandomUtils.getRandom(); Data data = Utils.randomData(rng, nbAttributes, numInstances); for (int nloop = 0; nloop < n; nloop++) { int attr = ...
diff --git a/src/cz/cuni/mff/peckam/java/origamist/gui/listing/ListingTreeSelectionListener.java b/src/cz/cuni/mff/peckam/java/origamist/gui/listing/ListingTreeSelectionListener.java index ec13877..64df73d 100644 --- a/src/cz/cuni/mff/peckam/java/origamist/gui/listing/ListingTreeSelectionListener.java +++ b/src/cz/cuni...
true
true
public void valueChanged(final TreeSelectionEvent e) { if (!e.isAddedPath()) { return; } final Object selected = e.getPath().getLastPathComponent(); if (selected instanceof File) { final OrigamiViewer viewer = ServiceLocator.get(OrigamiViewer.class); ...
public void valueChanged(final TreeSelectionEvent e) { if (!e.isAddedPath()) { return; } final Object selected = e.getPath().getLastPathComponent(); if (selected instanceof File) { final OrigamiViewer viewer = ServiceLocator.get(OrigamiViewer.class); ...
diff --git a/src/main/java/de/take_weiland/mods/commons/net/DataBufImpl.java b/src/main/java/de/take_weiland/mods/commons/net/DataBufImpl.java index 1f6ecd27..f4806921 100644 --- a/src/main/java/de/take_weiland/mods/commons/net/DataBufImpl.java +++ b/src/main/java/de/take_weiland/mods/commons/net/DataBufImpl.java @@ -1...
true
true
public String getString() { int len = getVarInt(); if (len < 0) { return null; } checkRemaining(len << 1); int pos = this.pos; byte[] buf = this.buf; char[] chars = new char[len]; for (int i = 0; i < len; ++i) { int p = pos + i << 1; chars[i] = Chars.fromBytes(buf[p], buf[p + 1]); } return...
public String getString() { int len = getVarInt(); if (len < 0) { return null; } checkRemaining(len << 1); int pos = this.pos; byte[] buf = this.buf; char[] chars = new char[len]; for (int i = 0; i < len; ++i) { int p = pos + (i << 1); chars[i] = Chars.fromBytes(buf[p], buf[p + 1]); } retu...
diff --git a/cotrix/cotrix-web-manage/src/main/java/org/cotrix/web/manage/client/codelist/codes/marker/GradientClassGenerator.java b/cotrix/cotrix-web-manage/src/main/java/org/cotrix/web/manage/client/codelist/codes/marker/GradientClassGenerator.java index a5627b22..6dfaf75f 100644 --- a/cotrix/cotrix-web-manage/src/ma...
true
true
private String generate(Set<String> colors) { String name = NAME_PREFIX + seed++; StringBuilder cssBuilder = new StringBuilder("."+name+" { background: linear-gradient("); Iterator<String> colorsIterator = colors.iterator(); while(colorsIterator.hasNext()) { String color = colorsIterator.next(); cssB...
private String generate(Set<String> colors) { String name = NAME_PREFIX + seed++; StringBuilder cssBuilder = new StringBuilder("."+name+" { background: linear-gradient("); Iterator<String> colorsIterator = colors.iterator(); while(colorsIterator.hasNext()) { String color = colorsIterator.next(); cssB...
diff --git a/geopaparazzi.app/src/eu/hydrologis/geopaparazzi/dashboard/ActionBar.java b/geopaparazzi.app/src/eu/hydrologis/geopaparazzi/dashboard/ActionBar.java index 1b0c9113..c304a863 100755 --- a/geopaparazzi.app/src/eu/hydrologis/geopaparazzi/dashboard/ActionBar.java +++ b/geopaparazzi.app/src/eu/hydrologis/geopapa...
false
true
public void checkLogging() { Button gpsOnOffView = (Button) actionBarView.findViewById(R.id.gpsOnOff); gpsOnOffView.setOnClickListener(new View.OnClickListener(){ public void onClick( View v ) { Context context = v.getContext(); GpsManager.getInstance(cont...
public void checkLogging() { Button gpsOnOffView = (Button) actionBarView.findViewById(R.id.gpsOnOff); gpsOnOffView.setOnClickListener(new View.OnClickListener(){ public void onClick( View v ) { Context context = v.getContext(); GpsManager.getInstance(cont...
diff --git a/src/main/java/com/github/resource4j/resources/DefaultResources.java b/src/main/java/com/github/resource4j/resources/DefaultResources.java index 48f9128..bb29046 100644 --- a/src/main/java/com/github/resource4j/resources/DefaultResources.java +++ b/src/main/java/com/github/resource4j/resources/DefaultResour...
true
true
protected String lookup(ResourceKey key, Locale locale) { // first, try to get the value from cache CachedValue<String> cachedValue = valueCache.get(key, locale); if (cachedValue != null) { return cachedValue.get(); } // value not in cache, load related bundles t...
protected String lookup(ResourceKey key, Locale locale) { // first, try to get the value from cache CachedValue<String> cachedValue = valueCache.get(key, locale); if (cachedValue != null) { return cachedValue.get(); } // value not in cache, load related bundles t...
diff --git a/src/main/java/org/mozilla/gecko/sync/setup/activities/WebViewActivity.java b/src/main/java/org/mozilla/gecko/sync/setup/activities/WebViewActivity.java index f5200bc30..e1984c161 100644 --- a/src/main/java/org/mozilla/gecko/sync/setup/activities/WebViewActivity.java +++ b/src/main/java/org/mozilla/gecko/sy...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().requestFeature(Window.FEATURE_PROGRESS); setContentView(R.layout.sync_setup_webview); // Extract URI to launch from Intent. Uri uri = this.getIntent().getData(); if (uri == null) { Logger.de...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().requestFeature(Window.FEATURE_PROGRESS); setContentView(R.layout.sync_setup_webview); // Extract URI to launch from Intent. Uri uri = this.getIntent().getData(); if (uri == null) { Logger.de...
diff --git a/jbpm-form-modeler-core/jbpm-form-modeler-service/jbpm-form-modeler-form-editor/src/main/java/org/jbpm/formModeler/components/editor/DataHoldersFormFormatter.java b/jbpm-form-modeler-core/jbpm-form-modeler-service/jbpm-form-modeler-form-editor/src/main/java/org/jbpm/formModeler/components/editor/DataHolders...
false
true
public void renderPendingFields() throws Exception { WysiwygFormEditor wysiwygFormEditor = WysiwygFormEditor.lookup(); Form form = wysiwygFormEditor.getCurrentForm(); Set<DataHolder> holders=form.getHolders(); BindingManager bindingManager = wysiwygFormEditor.getBindingManager(); ...
public void renderPendingFields() throws Exception { WysiwygFormEditor wysiwygFormEditor = WysiwygFormEditor.lookup(); Form form = wysiwygFormEditor.getCurrentForm(); Set<DataHolder> holders=form.getHolders(); BindingManager bindingManager = wysiwygFormEditor.getBindingManager(); ...
diff --git a/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/NewIndividualFormGenerator.java b/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/NewIndividualFormGenerator.java index a7cf911a..de2bef2a 100644 --- a/src/edu/cornell/mannlib/vitro/webapp/edit/n3editi...
true
true
public EditConfigurationVTwo getEditConfiguration(VitroRequest vreq, HttpSession session) { EditConfigurationVTwo config = new EditConfigurationVTwo(); config.setTemplate( "newIndividualForm.ftl" ); config.setN3Required( list( "?newInd ?rdfType ?typeOfNew ." ));...
public EditConfigurationVTwo getEditConfiguration(VitroRequest vreq, HttpSession session) { EditConfigurationVTwo config = new EditConfigurationVTwo(); config.setTemplate( "newIndividualForm.ftl" ); config.setN3Required( list( "?newInd <" + VitroVocabulary.RDF_TYPE ...
diff --git a/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/WAIT.java b/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/WAIT.java index 84de151ee..94d331200 100644 --- a/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/WAIT.java +++ b/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/WAIT.java...
true
true
public final void run() { Date dueDate = null; try{ dueDate = getDueDate(); } catch(FaultException e){ __log.error("Fault while calculating due date: " + e.getQName() + "; Reason: " + e.getMessage()); _self.parent.co...
public final void run() { Date dueDate = null; try{ dueDate = getDueDate(); } catch(FaultException e){ __log.error("Fault while calculating due date: " + e.getQName() + "; Reason: " + e.getMessage()); _self.parent.co...
diff --git a/src/java/fedora/server/storage/SimpleDOReader.java b/src/java/fedora/server/storage/SimpleDOReader.java index 854b86585..d9d65562b 100755 --- a/src/java/fedora/server/storage/SimpleDOReader.java +++ b/src/java/fedora/server/storage/SimpleDOReader.java @@ -1,684 +1,685 @@ package fedora.server.storage; ...
true
true
public DisseminationBindingInfo[] getDisseminationBindingInfo(String bDefPID, String methodName, Date versDateTime) throws ServerException { // Results will be returned in this array, one item per datastream DisseminationBindingInfo[] bindingInfo; // The disseminator prov...
public DisseminationBindingInfo[] getDisseminationBindingInfo(String bDefPID, String methodName, Date versDateTime) throws ServerException { // Results will be returned in this array, one item per datastream DisseminationBindingInfo[] bindingInfo; // The disseminator prov...
diff --git a/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/xml/XMLHttpRequest.java b/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/xml/XMLHttpRequest.java index 9a0822741..54369046f 100644 --- a/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/xml/XMLHtt...
true
true
private void setState(final int state, Context context) { state_ = state; // Firefox doesn't trigger onreadystatechange handler for sync requests except for completed for FF10 final boolean noTriggerForSync = getBrowserVersion().hasFeature( BrowserVersionFeatures.XMLHTTPREQU...
private void setState(final int state, Context context) { state_ = state; // Firefox doesn't trigger onreadystatechange handler for sync requests except for completed for FF10 final boolean noTriggerForSync = getBrowserVersion().hasFeature( BrowserVersionFeatures.XMLHTTPREQU...
diff --git a/jython/org/python/util/InteractiveInterpreter.java b/jython/org/python/util/InteractiveInterpreter.java index 73f5d41e..28ce9680 100644 --- a/jython/org/python/util/InteractiveInterpreter.java +++ b/jython/org/python/util/InteractiveInterpreter.java @@ -1,156 +1,152 @@ // Copyright (c) Corporation for Nat...
false
true
public boolean runsource(String source, String filename, String symbol) { PyObject code; try { cflags.interactive = true; code = org.python.modules.codeop.compile_command_flags( source, filename, symbol,cflags); } catch (PyException exc) { ...
public boolean runsource(String source, String filename, String symbol) { PyObject code; try { code = Py.compile_command_flags(source, filename, symbol,cflags,true); } catch (PyException exc) { if (Py.matchException(exc, Py.SyntaxError)) { // Case 1 ...
diff --git a/drooms-game-impl/src/main/java/org/drooms/impl/XmlReport.java b/drooms-game-impl/src/main/java/org/drooms/impl/XmlReport.java index 8a8c3a1..42ddd05 100644 --- a/drooms-game-impl/src/main/java/org/drooms/impl/XmlReport.java +++ b/drooms-game-impl/src/main/java/org/drooms/impl/XmlReport.java @@ -1,169 +1,16...
true
true
public XmlReport(final Playground p, final Properties gameConfig, final String gameId) { this.reportFolder = new File(gameConfig.getProperty("reports.dir", "reports")); if (!this.reportFolder.exists()) { this.reportFolder.mkdirs(); } this.repor...
public XmlReport(final Playground p, final Properties gameConfig, final String gameId) { this.reportFolder = new File(gameConfig.getProperty("reports.dir", "reports"), gameId); if (!this.reportFolder.exists()) { this.reportFolder.mkdirs(); } th...
diff --git a/cometd-java/cometd-java-client/src/test/java/org/cometd/client/BayeuxLoadGenerator.java b/cometd-java/cometd-java-client/src/test/java/org/cometd/client/BayeuxLoadGenerator.java index 039a0c9d7..415a36cf7 100644 --- a/cometd-java/cometd-java-client/src/test/java/org/cometd/client/BayeuxLoadGenerator.java +...
true
true
public void generateLoad() throws Exception { BufferedReader console = new BufferedReader(new InputStreamReader(System.in)); System.err.print("protocol [http]: "); String value = console.readLine().trim(); if (value.length() == 0) value = "http"; String proto...
public void generateLoad() throws Exception { BufferedReader console = new BufferedReader(new InputStreamReader(System.in)); System.err.print("protocol [http]: "); String value = console.readLine().trim(); if (value.length() == 0) value = "http"; String proto...
diff --git a/src/main/java/org/tomighty/sound/SoundSupport.java b/src/main/java/org/tomighty/sound/SoundSupport.java index 967f0b8..e617933 100644 --- a/src/main/java/org/tomighty/sound/SoundSupport.java +++ b/src/main/java/org/tomighty/sound/SoundSupport.java @@ -1,62 +1,62 @@ /* * Copyright (c) 2010 Célio Cidral J...
true
true
public InputStream inputStream() throws FileNotFoundException { File file = options.sound().wind().file(); if(file == null) { return defaultSound(); } return new FileInputStream(file); }
public InputStream inputStream() throws FileNotFoundException { File file = configuration().file(); if(file == null) { return defaultSound(); } return new FileInputStream(file); }
diff --git a/Hivolts_Display.java b/Hivolts_Display.java index 988ce4e..3f64357 100755 --- a/Hivolts_Display.java +++ b/Hivolts_Display.java @@ -1,215 +1,215 @@ import java.io.*; import java.util.Random; public class Hivolts_Display { public static void main(String[] args) { showGUI(); } private...
true
true
private static void showGUI(){ int x=-1; int y=-1; Grid hivoltsgrid = new Grid(12); hivoltsgrid.drawAll(); byte[] input = new byte[2]; for(int i = 1; i < 11; i++){ for(int j =1; j<11; j++){ if(hivoltsgrid.whatsAt(i,j)!= null && hivoltsgrid.whatsAt(i,j).whoAmI()=='Y'){ x=i; y=...
private static void showGUI(){ int x=-1; int y=-1; Grid hivoltsgrid = new Grid(12); hivoltsgrid.drawAll(); byte[] input = new byte[2]; for(int i = 1; i < 11; i++){ for(int j =1; j<11; j++){ if(hivoltsgrid.whatsAt(i,j)!= null && hivoltsgrid.whatsAt(i,j).whoAmI()=='Y'){ x=i; y=...
diff --git a/src/org/apache/xalan/res/XSLTErrorResources_de.java b/src/org/apache/xalan/res/XSLTErrorResources_de.java index 7fdca0ae..6d25e79d 100644 --- a/src/org/apache/xalan/res/XSLTErrorResources_de.java +++ b/src/org/apache/xalan/res/XSLTErrorResources_de.java @@ -1,1530 +1,1530 @@ /* * Licensed to the Apache ...
false
true
public Object[][] getContents() { return new Object[][] { /** Error message ID that has a null message, but takes in a single object. */ {"ER0000" , "{0}" }, { ER_NO_CURLYBRACE, "Fehler: '{' darf nicht innerhalb des Ausdrucks stehen."}, { ER_ILLEGAL_ATTRIBUTE , "{0} hat ein unzul\u...
public Object[][] getContents() { return new Object[][] { /** Error message ID that has a null message, but takes in a single object. */ {"ER0000" , "{0}" }, { ER_NO_CURLYBRACE, "Fehler: '{' darf nicht innerhalb des Ausdrucks stehen."}, { ER_ILLEGAL_ATTRIBUTE , "{0} hat ein unzul\u...
diff --git a/src/main/java/org/sagebionetworks/web/client/widget/entity/AnnotationsWidgetViewImpl.java b/src/main/java/org/sagebionetworks/web/client/widget/entity/AnnotationsWidgetViewImpl.java index 8be9b7fd4..0a8a92257 100644 --- a/src/main/java/org/sagebionetworks/web/client/widget/entity/AnnotationsWidgetViewImpl....
false
true
public void configure(List<EntityRow<?>> rows, boolean canEdit) { this.clear(); //now add a button for every row Grid g = new Grid(rows.size(), 3); g.addStyleName("table nobottommargin"); int i = -1; for (final EntityRow<?> row : rows) { i++; if (row != null && row.getDislplayValue() != null) { ...
public void configure(List<EntityRow<?>> rows, boolean canEdit) { this.clear(); //now add a row for each annotation int rowCount = 0; for (final EntityRow<?> row : rows) { if (row != null && row.getDislplayValue() != null) rowCount++; } Grid g = new Grid(rowCount, 3); g.addStyleName("table nob...
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/FileModificationValidator.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/FileModificationValidator.java index 3b2ef9a6b..478aabfa0 100644 --- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/c...
true
true
private IStatus edit(final IFile[] files, final Shell shell) { try { if (shell != null && !promptToEditFiles(files, shell)) { // The user didn't want to edit. // OK is returned but the file remains read-only throw new InterruptedException(); } // Run the edit in a runnable in order to get a ...
private IStatus edit(final IFile[] files, final Shell shell) { try { if (shell != null && !promptToEditFiles(files, shell)) { // The user didn't want to edit. // OK is returned but the file remains read-only throw new InterruptedException(); } // Run the edit in a runnable in order to get a ...
diff --git a/tizzit-core/src/main/java/de/juwimm/cms/search/lucene/LuceneService.java b/tizzit-core/src/main/java/de/juwimm/cms/search/lucene/LuceneService.java index e9a3b629..898fb272 100644 --- a/tizzit-core/src/main/java/de/juwimm/cms/search/lucene/LuceneService.java +++ b/tizzit-core/src/main/java/de/juwimm/cms/se...
false
true
private void initializeIndex(){ StandardAnalyzer analyzer=new StandardAnalyzer(Version.LUCENE_36); try { index=FSDirectory.open(new File(indexLocation)); IndexWriterConfig indexWriterConfig=new IndexWriterConfig(Version.LUCENE_36, new StandardAnalyzer(Version.LUCENE_36)); writer = new IndexWriter(index,in...
private void initializeIndex(){ StandardAnalyzer analyzer=new StandardAnalyzer(Version.LUCENE_36); try { index=FSDirectory.open(new File(indexLocation)); reader = IndexReader.open(index); IndexWriterConfig indexWriterConfig=new IndexWriterConfig(Version.LUCENE_36, new StandardAnalyzer(Version.LUCENE_36));...
diff --git a/drools-eclipse/drools-eclipse-test/src/test/java/org/drools/eclipse/editors/completion/LocationDeterminatorTest.java b/drools-eclipse/drools-eclipse-test/src/test/java/org/drools/eclipse/editors/completion/LocationDeterminatorTest.java index 40a4a8682..4e74a1054 100644 --- a/drools-eclipse/drools-eclipse-t...
true
true
public void testCheckLHSLocationDetermination() { String input = "rule MyRule \n" + " when \n" + " "; Location location = LocationDeterminator.getLocation(input); assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType()); input =...
public void testCheckLHSLocationDetermination() { String input = "rule MyRule \n" + " when \n" + " "; Location location = LocationDeterminator.getLocation(input); assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType()); input =...
diff --git a/icy/sequence/SequenceUtil.java b/icy/sequence/SequenceUtil.java index 3d0c07d..21eadbc 100644 --- a/icy/sequence/SequenceUtil.java +++ b/icy/sequence/SequenceUtil.java @@ -1,1858 +1,1846 @@ /* * Copyright 2010-2013 Institut Pasteur. * * This file is part of Icy. * * Icy is free software: you c...
false
true
public static Sequence getSubSequence(Sequence source, Rectangle5D.Integer region) { final Sequence result = new Sequence(OMEUtil.createOMEMetadata(source.getMetadata())); final Rectangle region2d = region.toRectangle2D().getBounds(); final int startZ; final int endZ; fi...
public static Sequence getSubSequence(Sequence source, Rectangle5D.Integer region) { final Sequence result = new Sequence(OMEUtil.createOMEMetadata(source.getMetadata())); final Rectangle region2d = region.toRectangle2D().getBounds(); final int startZ; final int endZ; fi...
diff --git a/src/protocol/gcf/reference/classes/com/sun/midp/io/HttpUrl.java b/src/protocol/gcf/reference/classes/com/sun/midp/io/HttpUrl.java index afe95949..2e70fd43 100644 --- a/src/protocol/gcf/reference/classes/com/sun/midp/io/HttpUrl.java +++ b/src/protocol/gcf/reference/classes/com/sun/midp/io/HttpUrl.java @@ -1...
true
true
private void parseAfterScheme(String url, int afterScheme, int length) { int start; int startOfAuthority; int endOfUrl; int endOfAuthority; int endOfPath; int endOfQuery; int endOfHost; int startOfPort; int endOfPort; int lastDot; ...
private void parseAfterScheme(String url, int afterScheme, int length) { int start; int startOfAuthority; int endOfUrl; int endOfAuthority; int endOfPath; int endOfQuery; int endOfHost; int startOfPort; int endOfPort; int lastDot; ...
diff --git a/freeplane/src/org/freeplane/features/mindmapmode/nodestyle/MToolbarContributor.java b/freeplane/src/org/freeplane/features/mindmapmode/nodestyle/MToolbarContributor.java index e36996cb3..9fb1c7901 100644 --- a/freeplane/src/org/freeplane/features/mindmapmode/nodestyle/MToolbarContributor.java +++ b/freepla...
true
true
public MToolbarContributor(final MNodeStyleController styleController) { this.styleController = styleController; controller = styleController.getModeController().getController(); final GraphicsEnvironment gEnv = GraphicsEnvironment.getLocalGraphicsEnvironment(); final String[] envFonts = gEnv.getAvailableFontF...
public MToolbarContributor(final MNodeStyleController styleController) { this.styleController = styleController; controller = styleController.getModeController().getController(); final GraphicsEnvironment gEnv = GraphicsEnvironment.getLocalGraphicsEnvironment(); final String[] envFonts = gEnv.getAvailableFontF...
diff --git a/src/main/java/me/zford/jobs/config/JobConfig.java b/src/main/java/me/zford/jobs/config/JobConfig.java index 7c901dc..af14220 100644 --- a/src/main/java/me/zford/jobs/config/JobConfig.java +++ b/src/main/java/me/zford/jobs/config/JobConfig.java @@ -1,463 +1,477 @@ /* * Jobs Plugin for Bukkit * Copyrigh...
false
true
private void loadJobSettings(){ File f = new File(plugin.getDataFolder(), "jobConfig.yml"); this.jobs.clear(); if (!f.exists()) { try { f.createNewFile(); } catch (IOException e) { plugin.getLogger().severe("Unable to create jobConfig.y...
private void loadJobSettings(){ File f = new File(plugin.getDataFolder(), "jobConfig.yml"); this.jobs.clear(); if (!f.exists()) { try { f.createNewFile(); } catch (IOException e) { plugin.getLogger().severe("Unable to create jobConfig.y...
diff --git a/src/java/main/br/ufpe/cin/groundhog/http/Requests.java b/src/java/main/br/ufpe/cin/groundhog/http/Requests.java index cc8db1d..8f2a2e5 100644 --- a/src/java/main/br/ufpe/cin/groundhog/http/Requests.java +++ b/src/java/main/br/ufpe/cin/groundhog/http/Requests.java @@ -1,76 +1,76 @@ package br.ufpe.cin.grou...
true
true
public String getWithPreviewHeader(String urlStr) { try { RequestBuilder builder = new RequestBuilder("GET"); Request request = builder.setUrl(urlStr) .addHeader("X-GitHub-Media-Type", "application/vnd.github.manifold-preview") .build(); return this.httpClient.prepareRequest(request).execut...
public String getWithPreviewHeader(String urlStr) { try { RequestBuilder builder = new RequestBuilder("GET"); Request request = builder.setUrl(urlStr) .addHeader("Accept", "application/vnd.github.manifold-preview") .build(); return this.httpClient.prepareRequest(request).execute().get().get...
diff --git a/yabe/app/Bootstrap.java b/yabe/app/Bootstrap.java index 6aa7cef..10913cf 100644 --- a/yabe/app/Bootstrap.java +++ b/yabe/app/Bootstrap.java @@ -1,15 +1,15 @@ import models.User; import play.jobs.Job; import play.jobs.OnApplicationStart; import play.test.Fixtures; @OnApplicationStart public class Bo...
true
true
public void doJob() throws Exception { if (User.count() == 0) { Fixtures.loadYaml("initial-data.yml"); } }
public void doJob() throws Exception { if (User.count() == 0) { Fixtures.loadModels("initial-data.yml"); } }
diff --git a/src/com/android/browser/AddBookmarkPage.java b/src/com/android/browser/AddBookmarkPage.java index f773d062..74efdb81 100644 --- a/src/com/android/browser/AddBookmarkPage.java +++ b/src/com/android/browser/AddBookmarkPage.java @@ -1,253 +1,254 @@ /* * Copyright (C) 2006 The Android Open Source Project ...
false
true
boolean save() { String title = mTitle.getText().toString().trim(); String unfilteredUrl = BrowserActivity.fixUrl(mAddress.getText().toString()); boolean emptyTitle = title.length() == 0; boolean emptyUrl = unfilteredUrl.trim().length() == 0; Resources r = ge...
boolean save() { String title = mTitle.getText().toString().trim(); String unfilteredUrl = BrowserActivity.fixUrl(mAddress.getText().toString()); boolean emptyTitle = title.length() == 0; boolean emptyUrl = unfilteredUrl.trim().length() == 0; Resources r = ge...
diff --git a/test/org/jruby/test/TestObjectSpace.java b/test/org/jruby/test/TestObjectSpace.java index b8322ba88..b7328a726 100644 --- a/test/org/jruby/test/TestObjectSpace.java +++ b/test/org/jruby/test/TestObjectSpace.java @@ -1,90 +1,87 @@ /***** BEGIN LICENSE BLOCK ***** * Version: CPL 1.0/GPL 2.0/LGPL 2.1 * ...
false
true
public void testObjectSpace() { ObjectSpace os = new ObjectSpace(); IRubyObject o1 = runtime.newFixnum(10); IRubyObject o2 = runtime.newFixnum(20); IRubyObject o3 = runtime.newFixnum(30); IRubyObject o4 = runtime.newString("hello"); os.add(o1); os.add(o2); ...
public void testObjectSpace() { ObjectSpace os = new ObjectSpace(); IRubyObject o1 = runtime.newFixnum(10); IRubyObject o2 = runtime.newFixnum(20); IRubyObject o3 = runtime.newFixnum(30); IRubyObject o4 = runtime.newString("hello"); os.add(o1); os.add(o2); ...
diff --git a/src/com/herocraftonline/dev/heroes/api/HeroesWeaponDamageEvent.java b/src/com/herocraftonline/dev/heroes/api/HeroesWeaponDamageEvent.java index a8c7b993..fa17e173 100644 --- a/src/com/herocraftonline/dev/heroes/api/HeroesWeaponDamageEvent.java +++ b/src/com/herocraftonline/dev/heroes/api/HeroesWeaponDamage...
true
true
public HeroesWeaponDamageEvent(int damage, EntityDamageByEntityEvent event) { super("HeroesWeaponDamageEvent"); this.setDamage(damage); this.setDamager(event.getDamager()); this.setEntity(event.getEntity()); this.setCause(event.getCause()); }
public HeroesWeaponDamageEvent(int damage, EntityDamageByEntityEvent event) { super("HeroesWeaponDamageEvent"); this.damage = damage; this.damager = event.getDamager(); this.entity = event.getEntity(); this.cause = event.getCause(); }
diff --git a/src/main/java/com/drtshock/willie/command/utility/AuthorCommandHandler.java b/src/main/java/com/drtshock/willie/command/utility/AuthorCommandHandler.java index 944ce33..6f908c8 100644 --- a/src/main/java/com/drtshock/willie/command/utility/AuthorCommandHandler.java +++ b/src/main/java/com/drtshock/willie/c...
true
true
public void handle(Willie bot, Channel channel, User sender, String[] args) throws Exception { LOG.info("Started to handle !author command from " + sender.getNick() + "..."); if (args.length != 1 && args.length != 2) { nope(channel); return; } try { ...
public void handle(Willie bot, Channel channel, User sender, String[] args) throws Exception { LOG.info("Started to handle !author command from " + sender.getNick() + "..."); if (args.length != 1 && args.length != 2) { nope(channel); return; } try { ...
diff --git a/src/com/sonyericsson/chkbugreport/BugReport.java b/src/com/sonyericsson/chkbugreport/BugReport.java index 81ab71c..2c0a411 100644 --- a/src/com/sonyericsson/chkbugreport/BugReport.java +++ b/src/com/sonyericsson/chkbugreport/BugReport.java @@ -1,589 +1,593 @@ /* * Copyright (C) 2011 Sony Ericsson Mobile...
false
true
protected void load(InputStream is, boolean partial, String secName) throws IOException { printOut("Loading input..."); LineReader br = new LineReader(is); String buff; Section curSection = null; int lineNr = 0; int skipCount = 5; boolean formatOk = partial; ...
protected void load(InputStream is, boolean partial, String secName) throws IOException { printOut("Loading input..."); LineReader br = new LineReader(is); String buff; Section curSection = null; int lineNr = 0; int skipCount = 5; boolean formatOk = partial; ...
diff --git a/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildDefinitionAction.java b/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildDefinitionAction.java index 30fd688bb..72299f967 100644 --- a/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/Buil...
true
true
public String input() throws ContinuumException, ContinuumStoreException { try { if ( executor == null ) { if ( projectId != 0 ) { executor = getContinuum().getProject( projectId ).getExecutorId(); ...
public String input() throws ContinuumException, ContinuumStoreException { try { if ( executor == null ) { if ( projectId != 0 ) { executor = getContinuum().getProject( projectId ).getExecutorId(); ...
diff --git a/Games/KickBall/src/kickball/MapTest.java b/Games/KickBall/src/kickball/MapTest.java index 8893aec..848f917 100644 --- a/Games/KickBall/src/kickball/MapTest.java +++ b/Games/KickBall/src/kickball/MapTest.java @@ -1,55 +1,55 @@ /* * To change this template, choose Tools | Templates * and open the templa...
false
true
public static void main(String[] args){ String directory = System.getProperty("user.dir") + "\\src\\kickball\\Assets\\test1.map"; System.out.println(directory); TextReader reader = new TextReader(directory); String nextLine; nextLine = reader.get(); while (nextLine !=...
public static void main(String[] args){ String directory = System.getProperty("user.dir") + "\\src\\kickball\\Assets\\test1.map"; System.out.println(directory); TextReader reader = new TextReader(directory); String nextLine; nextLine = reader.get(); while (nextLine !=...
diff --git a/eclipse_files/src/DeviceGraphicsDisplay/GantryGraphicsDisplay.java b/eclipse_files/src/DeviceGraphicsDisplay/GantryGraphicsDisplay.java index bb7c7809..76231e7a 100644 --- a/eclipse_files/src/DeviceGraphicsDisplay/GantryGraphicsDisplay.java +++ b/eclipse_files/src/DeviceGraphicsDisplay/GantryGraphicsDispla...
false
true
public void draw(JComponent c, Graphics2D g) { // If robot is at incorrect Y location, first move bot to inital X location if (currentLocation.getY() != destinationLocation.getY() && currentLocation.getX() != Constants.GANTRY_ROBOT_LOC.getX()) { if(currentLocation.getX() < Constants.GANTRY_ROBOT_LOC.getX()) { ...
public void draw(JComponent c, Graphics2D g) { // If robot is at incorrect Y location, first move bot to inital X location if (currentLocation.getY() != destinationLocation.getY() && currentLocation.getX() != Constants.GANTRY_ROBOT_LOC.getX()) { if(currentLocation.getX() < Constants.GANTRY_ROBOT_LOC.getX()) { ...
diff --git a/src/main/java/hudson/plugins/sshslaves/SSHLauncher.java b/src/main/java/hudson/plugins/sshslaves/SSHLauncher.java index ecc0456..03278dd 100644 --- a/src/main/java/hudson/plugins/sshslaves/SSHLauncher.java +++ b/src/main/java/hudson/plugins/sshslaves/SSHLauncher.java @@ -1,660 +1,660 @@ package hudson.plu...
true
true
private void openConnection(TaskListener listener) throws IOException { listener.getLogger().println(Messages.SSHLauncher_OpeningSSHConnection(getTimestamp(), host + ":" + port)); connection.connect(); String username = this.username; if(fixEmpty(username)==null) { ...
private void openConnection(TaskListener listener) throws IOException { listener.getLogger().println(Messages.SSHLauncher_OpeningSSHConnection(getTimestamp(), host + ":" + port)); connection.connect(); String username = this.username; if(fixEmpty(username)==null) { ...
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java index d6058003..288e73dd 100644 --- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java +++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerAct...
true
true
private void load() { mLocation = null; String title = getResources().getString(R.string.title); boolean dontParse = false; boolean fromStart = false; String itemTitle = null; int itemPosition = -1; // Index in the media list as passed by AudioServer (used only for vo...
private void load() { mLocation = null; String title = getResources().getString(R.string.title); boolean dontParse = false; boolean fromStart = false; String itemTitle = null; int itemPosition = -1; // Index in the media list as passed by AudioServer (used only for vo...
diff --git a/src/safeguard/AccessController.java b/src/safeguard/AccessController.java index dcd4a10..ef88acf 100644 --- a/src/safeguard/AccessController.java +++ b/src/safeguard/AccessController.java @@ -1,126 +1,126 @@ package safeguard; public class AccessController { private static AccessController acces...
false
true
public static ClassLevel map(int val) { switch (val) { case 0: assert NOT_CONFIDENTIAL.value() == 0; return NOT_CONFIDENTIAL; case 1: assert CONFIDENTIAL.value() == 0; return CONFIDENTIAL;...
public static ClassLevel map(int val) { switch (val) { case 0: assert NOT_CONFIDENTIAL.value() == 0; return NOT_CONFIDENTIAL; case 1: assert CONFIDENTIAL.value() == 1; return CONFIDENTIAL;...
diff --git a/src/main/java/org/jenkinsci/plugins/sharedobjects/SharedObjectJobProperty.java b/src/main/java/org/jenkinsci/plugins/sharedobjects/SharedObjectJobProperty.java index d36b345..c1c6c7f 100644 --- a/src/main/java/org/jenkinsci/plugins/sharedobjects/SharedObjectJobProperty.java +++ b/src/main/java/org/jenkinsc...
false
true
public Map<String, String> getEnvVars(TaskListener listener) throws EnvInjectException { SharedObjectLogger logger = new SharedObjectLogger(listener); logger.info("Injecting shared objects as environment variables"); Map<String, String> result = new HashMap<String, String>(); if (pop...
public Map<String, String> getEnvVars(TaskListener listener) throws EnvInjectException { SharedObjectLogger logger = new SharedObjectLogger(listener); Map<String, String> result = new HashMap<String, String>(); if (populateSharedObjects) { logger.info("Injecting shared objects as...
diff --git a/forms/src/org/riotfamily/forms/element/select/AbstractChooser.java b/forms/src/org/riotfamily/forms/element/select/AbstractChooser.java index ab918149b..4d70b6816 100755 --- a/forms/src/org/riotfamily/forms/element/select/AbstractChooser.java +++ b/forms/src/org/riotfamily/forms/element/select/AbstractChoo...
false
true
protected void renderInternal(PrintWriter writer) { DocumentWriter doc = new DocumentWriter(writer); doc.start(Html.DIV) .attribute(Html.COMMON_CLASS, "chooser") .body(); renderLabel(object, writer); doc.start(Html.BUTTON).attribute(Html.COMMON_CLASS, "choose"); doc.body("Choose"); doc....
protected void renderInternal(PrintWriter writer) { DocumentWriter doc = new DocumentWriter(writer); doc.start(Html.DIV) .attribute(Html.COMMON_CLASS, "chooser") .body(); renderLabel(object, writer); doc.start(Html.BUTTON).attribute(Html.COMMON_CLASS, "choose"); doc.attribute(Html.INPUT_D...
diff --git a/development/EvenTrend/src/net/redgeek/android/eventrend/calendar/CalendarPlotMonth.java b/development/EvenTrend/src/net/redgeek/android/eventrend/calendar/CalendarPlotMonth.java index 8ced57b..2230d49 100644 --- a/development/EvenTrend/src/net/redgeek/android/eventrend/calendar/CalendarPlotMonth.java +++ b...
false
true
private void drawMonth(Canvas canvas) { Calendar tmp = Calendar.getInstance(); TimeSeries ts; Datapoint prev, current; int focusMonth; int firstPosition = 0; int lastPosition = 0; int i = 42; // as usual focusMonth = setStartTime(); Calendar cal = mDates.getCalendar(); long m...
private void drawMonth(Canvas canvas) { Calendar tmp = Calendar.getInstance(); TimeSeries ts; Datapoint prev, current; int focusMonth; int firstPosition = 0; int lastPosition = 0; int i = 42; // as usual focusMonth = setStartTime(); Calendar cal = mDates.getCalendar(); long m...
diff --git a/src/main/java/org/dynmap/DynmapPlugin.java b/src/main/java/org/dynmap/DynmapPlugin.java index 6fb852d5..d1e82645 100644 --- a/src/main/java/org/dynmap/DynmapPlugin.java +++ b/src/main/java/org/dynmap/DynmapPlugin.java @@ -1,784 +1,784 @@ package org.dynmap; import java.io.File; import java.io.FileInpu...
false
true
public void registerEvents() { final PluginManager pm = getServer().getPluginManager(); final MapManager mm = mapManager; // To trigger rendering. { BlockListener renderTrigger = new BlockListener() { @Override public void...
public void registerEvents() { final PluginManager pm = getServer().getPluginManager(); final MapManager mm = mapManager; // To trigger rendering. { BlockListener renderTrigger = new BlockListener() { @Override public void...
diff --git a/src/main/zipdiff/output/AbstractBuilder.java b/src/main/zipdiff/output/AbstractBuilder.java index 5985a70..d9ada09 100644 --- a/src/main/zipdiff/output/AbstractBuilder.java +++ b/src/main/zipdiff/output/AbstractBuilder.java @@ -1,30 +1,30 @@ /* * * */ package zipdiff.output; import zipdiff.Dif...
true
true
public void build(String filename, Differences d) throws IOException { FileOutputStream fos = null; fos = new FileOutputStream(filename); build(fos, d); fos.flush(); }
public void build(String filename, Differences d) throws IOException { FileOutputStream fos = null; fos = new FileOutputStream(filename); build(fos, d); fos.close(); }
diff --git a/modules/library/main/src/test/java/org/geotools/temporal/object/DefaultTemporalPrimitiveTest.java b/modules/library/main/src/test/java/org/geotools/temporal/object/DefaultTemporalPrimitiveTest.java index 7c5e6762b1..a2ac867336 100644 --- a/modules/library/main/src/test/java/org/geotools/temporal/object/Def...
true
true
public void testRelativePosition() { TemporalPrimitive other; //relative position between Instant objects cal.set(2000, 0, 1); Position position = new DefaultPosition(cal.getTime()); other = new DefaultInstant(position); RelativePosition result = temporalPrimitive1.r...
public void testRelativePosition() { TemporalPrimitive other; //relative position between Instant objects cal.set(2000, 0, 1); Position position = new DefaultPosition(cal.getTime()); other = new DefaultInstant(position); RelativePosition result = temporalPrimitive1.r...
diff --git a/bussiness/src/main/java/com/server/cx/service/cx/impl/RegisterServiceImpl.java b/bussiness/src/main/java/com/server/cx/service/cx/impl/RegisterServiceImpl.java index c8b4929..75e3c97 100644 --- a/bussiness/src/main/java/com/server/cx/service/cx/impl/RegisterServiceImpl.java +++ b/bussiness/src/main/java/co...
true
true
public RegisterOperationDescription register(RegisterDTO registerDTO, String phoneNo) { userinfo = userInfoDao.getUserInfoByImsi(registerDTO.getImsi()); RegisterOperationDescription operationDescription; if (userinfo == null) { addNewUserInfo(registerDTO); operationDe...
public RegisterOperationDescription register(RegisterDTO registerDTO, String phoneNo) { userinfo = userInfoDao.getUserInfoByImsi(registerDTO.getImsi()); RegisterOperationDescription operationDescription; if (userinfo == null) { addNewUserInfo(registerDTO); operationDe...
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/ComparePreferencePage.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/ComparePreferencePage.java index 4332ebcb5..fd247a11a 100644 --- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/C...
true
true
protected void createFieldEditors() { addField(new BooleanFieldEditor( ICVSUIConstants.PREF_CONSIDER_CONTENTS, Policy.bind("CVSPreferencePage.considerContentsInCompare"), //$NON-NLS-1$ BooleanFieldEditor.DEFAULT, getFieldEditorParent()) { protected Button getChangeControl(Comp...
protected void createFieldEditors() { addField(new BooleanFieldEditor( ICVSUIConstants.PREF_CONSIDER_CONTENTS, Policy.bind("ComparePreferencePage.4"), //$NON-NLS-1$ BooleanFieldEditor.DEFAULT, getFieldEditorParent()) { protected Button getChangeControl(Composite parent) { ...
diff --git a/src/org/eclipse/cdt/core/CommandLauncher.java b/src/org/eclipse/cdt/core/CommandLauncher.java index d0bcd1872..a37b0b0db 100644 --- a/src/org/eclipse/cdt/core/CommandLauncher.java +++ b/src/org/eclipse/cdt/core/CommandLauncher.java @@ -1,243 +1,256 @@ package org.eclipse.cdt.core; /* * (c) Copyright ...
false
true
public int waitAndRead(OutputStream output, OutputStream err, IProgressMonitor monitor) { if (fShowCommand) { printCommandLine(output); } if (fProcess == null) { return ILLEGAL_COMMAND; } PipedOutputStream errOutPipe = new PipedOutputStream(); PipedOutputStream outputPipe = new PipedOutputStream()...
public int waitAndRead(OutputStream output, OutputStream err, IProgressMonitor monitor) { if (fShowCommand) { printCommandLine(output); } if (fProcess == null) { return ILLEGAL_COMMAND; } PipedOutputStream errOutPipe = new PipedOutputStream(); PipedOutputStream outputPipe = new PipedOutputStream()...
diff --git a/src/biz/bokhorst/xprivacy/PrivacyService.java b/src/biz/bokhorst/xprivacy/PrivacyService.java index b22be746..4c39a714 100644 --- a/src/biz/bokhorst/xprivacy/PrivacyService.java +++ b/src/biz/bokhorst/xprivacy/PrivacyService.java @@ -1,1687 +1,1687 @@ package biz.bokhorst.xprivacy; import java.io.File;...
true
true
public List<PRestriction> getUsageList(int uid) throws RemoteException { List<PRestriction> result = new ArrayList<PRestriction>(); try { enforcePermission(); SQLiteDatabase db = getDatabase(); mLock.readLock().lock(); db.beginTransaction(); try { Cursor cursor; if (uid == 0) ...
public List<PRestriction> getUsageList(int uid) throws RemoteException { List<PRestriction> result = new ArrayList<PRestriction>(); try { enforcePermission(); SQLiteDatabase db = getDatabase(); mLock.readLock().lock(); db.beginTransaction(); try { Cursor cursor; if (uid == 0) ...
diff --git a/src/nl/giantit/minecraft/GiantShop/Executors/chat.java b/src/nl/giantit/minecraft/GiantShop/Executors/chat.java index 47559bf..16984e0 100644 --- a/src/nl/giantit/minecraft/GiantShop/Executors/chat.java +++ b/src/nl/giantit/minecraft/GiantShop/Executors/chat.java @@ -1,104 +1,104 @@ package nl.giantit.min...
false
true
public boolean exec(CommandSender sender, Command cmd, String commandLabel, String[] args) { Player player = (Player) sender; if(args.length == 0 || args[0].equalsIgnoreCase("help") || args[0].equalsIgnoreCase("h") || args[0].equalsIgnoreCase("?")) { if(plugin.useLoc && plugin.cmds.contains("help")) { if...
public boolean exec(CommandSender sender, Command cmd, String commandLabel, String[] args) { Player player = (Player) sender; if(args.length == 0 || args[0].equalsIgnoreCase("help") || args[0].equalsIgnoreCase("h") || args[0].equalsIgnoreCase("?")) { if(plugin.useLocation() && plugin.cmds.contains("help")) {...
diff --git a/src/noyau/Rail.java b/src/noyau/Rail.java index b292113..537722d 100644 --- a/src/noyau/Rail.java +++ b/src/noyau/Rail.java @@ -1,354 +1,356 @@ package noyau; import java.awt.Point; import java.awt.geom.Point2D; import java.util.Iterator; import java.util.LinkedList; import org.w3c.dom.Element; ...
true
true
public void avancerChariots() { Iterator<Chariot> it = listChariots.iterator(); Chariot prev = null; while ( it.hasNext() ) { Chariot c = it.next(); float distChariot = c.calculerNouvPos(); /* * Si il n'y a pas de chariot précédent, ou si on ne le dépasse pas. */ if(prev == ...
public void avancerChariots() { Iterator<Chariot> it = listChariots.iterator(); Chariot prev = null; while ( it.hasNext() ) { Chariot c = it.next(); float distChariot = c.calculerNouvPos(); /* * Si il n'y a pas de chariot précédent, ou si on ne le dépasse pas. */ if(prev == ...
diff --git a/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/bean/evaluation/HistogramScoresBean.java b/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/bean/evaluation/HistogramScoresBean.java index cb31c069b..57b2f37d6 100644 --- a/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/bean/evaluation...
true
true
public void setAssesmentParts(List<PublishedSectionData> assesmentParts) { this.assesmentParts = assesmentParts; selectItemParts.clear(); setPartNumber(assesmentParts.get(0).getSequence().toString()); /* * For parts from pools: * Part <part.sequence>: <part.title>, ...
public void setAssesmentParts(List<PublishedSectionData> assesmentParts) { this.assesmentParts = assesmentParts; selectItemParts.clear(); setPartNumber(assesmentParts.get(0).getSequence().toString()); /* * For parts from pools: * Part <part.sequence>: <part.title>, ...
diff --git a/src/com/android/phone/sip/SipSharedPreferences.java b/src/com/android/phone/sip/SipSharedPreferences.java index 1448a791..e15db64e 100644 --- a/src/com/android/phone/sip/SipSharedPreferences.java +++ b/src/com/android/phone/sip/SipSharedPreferences.java @@ -1,109 +1,109 @@ /* * Copyright (C) 2010 The An...
true
true
public boolean isReceivingCallsEnabled() { try { return (Settings.System.getInt(mContext.getContentResolver(), Settings.System.SIP_RECEIVE_CALLS) != 0); } catch (SettingNotFoundException e) { Log.d("SIP", "ReceiveCall option is not set; use default value",...
public boolean isReceivingCallsEnabled() { try { return (Settings.System.getInt(mContext.getContentResolver(), Settings.System.SIP_RECEIVE_CALLS) != 0); } catch (SettingNotFoundException e) { Log.d("SIP", "ReceiveCall option is not set; use default value")...
diff --git a/modules/amazon-ec2-provisioner/src/main/java/com/elasticgrid/platforms/ec2/EC2CloudPlatformManagerFactory.java b/modules/amazon-ec2-provisioner/src/main/java/com/elasticgrid/platforms/ec2/EC2CloudPlatformManagerFactory.java old mode 100644 new mode 100755 index 0b6286f7..1e0a52c7 --- a/modules/amazon-ec2-p...
true
true
public synchronized EC2CloudPlatformManager getInstance() throws IOException { if (instance == null) { Properties config = AWSUtils.loadEC2Configuration(); String awsAccessId = config.getProperty(EC2Configuration.AWS_ACCESS_ID); String awsSecretKey = config.getProperty(E...
public synchronized EC2CloudPlatformManager getInstance() throws IOException { if (instance == null) { Properties config = AWSUtils.loadEC2Configuration(); String awsAccessId = config.getProperty(EC2Configuration.AWS_ACCESS_ID); String awsSecretKey = config.getProperty(E...
diff --git a/src/com/herocraftonline/dev/heroes/command/CommandHandler.java b/src/com/herocraftonline/dev/heroes/command/CommandHandler.java index b9d81e5d..7833d349 100755 --- a/src/com/herocraftonline/dev/heroes/command/CommandHandler.java +++ b/src/com/herocraftonline/dev/heroes/command/CommandHandler.java @@ -1,111...
true
true
public boolean dispatch(CommandSender sender, String label, String[] args) { String input = label + " "; for (String s : args) { input += s + " "; } for (int argsIncluded = args.length; argsIncluded >= 0; argsIncluded--) { String identifier = label; ...
public boolean dispatch(CommandSender sender, String label, String[] args) { String input = label + " "; for (String s : args) { input += s + " "; } for (int argsIncluded = args.length; argsIncluded >= 0; argsIncluded--) { String identifier = label; ...
diff --git a/src/org/bennedum/transporter/GateCollection.java b/src/org/bennedum/transporter/GateCollection.java index 677ffdc..cd98d75 100644 --- a/src/org/bennedum/transporter/GateCollection.java +++ b/src/org/bennedum/transporter/GateCollection.java @@ -1,351 +1,353 @@ /* * Copyright 2011 frdfsnlght <frdfsnlght@g...
false
true
public void exportJSON() { String fileName = Global.config.getString("exportedGatesFile"); if (fileName == null) return; File file = new File(Global.plugin.getDataFolder(), fileName); try { PrintStream out = new PrintStream(file); out.println("["); ...
public void exportJSON() { String fileName = Global.config.getString("exportedGatesFile"); if (fileName == null) return; File file = new File(fileName); if (! file.isAbsolute()) file = new File(Global.plugin.getDataFolder(), fileName); try { PrintStrea...
diff --git a/core/console/src/main/java/org/openrdf/console/Console.java b/core/console/src/main/java/org/openrdf/console/Console.java index c6001ddf3..f3d0eefec 100644 --- a/core/console/src/main/java/org/openrdf/console/Console.java +++ b/core/console/src/main/java/org/openrdf/console/Console.java @@ -1,395 +1,395 @@...
false
true
public static void main(final String[] args) throws IOException { final Console console = new Console(); final Option helpOption = new Option("h", "help", false, "print this help"); final Option versionOption = new Option("v", "version", false, "print version information"); final Option serverURLOption = ne...
public static void main(final String[] args) throws IOException { final Console console = new Console(); final Option helpOption = new Option("h", "help", false, "print this help"); final Option versionOption = new Option("v", "version", false, "print version information"); final Option serverURLOption = ne...
diff --git a/liblouisxml-calabash/src/main/java/org/daisy/common/xproc/calabash/steps/liblouisxml/XML2BRL.java b/liblouisxml-calabash/src/main/java/org/daisy/common/xproc/calabash/steps/liblouisxml/XML2BRL.java index d777cbac..4697fe5e 100755 --- a/liblouisxml-calabash/src/main/java/org/daisy/common/xproc/calabash/step...
true
true
public void run() throws SaxonApiException { super.run(); try { // Get options Map<String,String> settings = new HashMap<String,String>(); RuntimeValue paged = getOption(_pages); RuntimeValue pageHeight = getOption(_page_height); RuntimeValue lineWidth = getOption(_line_width); if (paged != nu...
public void run() throws SaxonApiException { super.run(); try { // Get options Map<String,String> settings = new HashMap<String,String>(); RuntimeValue paged = getOption(_paged); RuntimeValue pageHeight = getOption(_page_height); RuntimeValue lineWidth = getOption(_line_width); if (paged != nu...
diff --git a/Solfege/src/ear.java b/Solfege/src/ear.java index 801f21d..ff7cb7e 100644 --- a/Solfege/src/ear.java +++ b/Solfege/src/ear.java @@ -1,69 +1,69 @@ //import java.lang.reflect.Array; import java.util.ArrayList; import java.util.Scanner; import java.util.Vector; import java.awt.*; import java.awt.event.*...
true
true
public static void main(String[] args) { //*******************declarations*****************// Vector tab = new Vector() ; Vector reponse = new Vector(); MainGauche gauche = new MainGauche(); int[] temp2; //*************saisie*******************// System.out.println("Degre ? "); Scanner temp ...
public static void main(String[] args) { //*******************declarations*****************// Vector tab = new Vector() ; Vector reponse = new Vector(); MainGauche gauche = new MainGauche(); int[] temp2; //*************saisie*******************// System.out.println("Degre ? "); Scanner temp ...
diff --git a/conan-biosd-processes/src/main/java/uk/ac/ebi/fgpt/conan/process/biosd/SampleTabRelationalLSFProcess.java b/conan-biosd-processes/src/main/java/uk/ac/ebi/fgpt/conan/process/biosd/SampleTabRelationalLSFProcess.java index c88d687..be54351 100644 --- a/conan-biosd-processes/src/main/java/uk/ac/ebi/fgpt/conan/...
true
true
protected String getCommand(Map<ConanParameter, String> parameters) throws IllegalArgumentException { getLog().info( "Executing " + getName() + " with the following parameters: " + parameters.toString()); // deal with parameters SampleTabAccessionParameter accession = new SampleTabAccessionParamete...
protected String getCommand(Map<ConanParameter, String> parameters) throws IllegalArgumentException { getLog().info( "Executing " + getName() + " with the following parameters: " + parameters.toString()); // deal with parameters SampleTabAccessionParameter accession = new SampleTabAccessionParamete...
diff --git a/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/NodesPage.java b/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/serv...
true
true
protected void render(Block html) { TBODY<TABLE<Hamlet>> tbody = html.table("#nodes"). thead(). tr(). th(".rack", "Rack"). th(".nodeid", "Node ID"). th(".host", "Host"). th(".healthStatus", "Health-status"). th(".lastHealthUpdate", "Last he...
protected void render(Block html) { TBODY<TABLE<Hamlet>> tbody = html.table("#nodes"). thead(). tr(). th(".rack", "Rack"). th(".nodeaddress", "Node Address"). th(".nodehttpaddress", "Node HTTP Address"). th(".healthStatus", "Health-status"). ...
diff --git a/bundles/org.eclipse.equinox.frameworkadmin.equinox/src/org/eclipse/equinox/internal/frameworkadmin/equinox/EquinoxFwConfigFileParser.java b/bundles/org.eclipse.equinox.frameworkadmin.equinox/src/org/eclipse/equinox/internal/frameworkadmin/equinox/EquinoxFwConfigFileParser.java index 0bf78c294..23cc06d63 10...
true
true
public void saveFwConfig(BundleInfo[] bInfos, Manipulator manipulator, boolean backup, boolean relative) throws IOException {//{ ConfigData configData = manipulator.getConfigData(); LauncherData launcherData = manipulator.getLauncherData(); File fwJar = EquinoxBundlesState.getFwJar(launcherData, configData); l...
public void saveFwConfig(BundleInfo[] bInfos, Manipulator manipulator, boolean backup, boolean relative) throws IOException {//{ ConfigData configData = manipulator.getConfigData(); LauncherData launcherData = manipulator.getLauncherData(); File fwJar = EquinoxBundlesState.getFwJar(launcherData, configData); l...
diff --git a/src/de/enough/glaze/style/background/HorizontalGradientBackground.java b/src/de/enough/glaze/style/background/HorizontalGradientBackground.java index 29841f2..1ffcc95 100644 --- a/src/de/enough/glaze/style/background/HorizontalGradientBackground.java +++ b/src/de/enough/glaze/style/background/HorizontalGra...
true
true
public void draw(Graphics graphics, XYRect rect) { int width = rect.width; int height = rect.height; int startGradientPixels = this.startPosition.getValue(width); int endGradientPixels = this.endPosition.getValue(width); // remember original color int originalColor = graphics.getColor(); // Draw...
public void draw(Graphics graphics, XYRect rect) { int width = rect.width; int height = rect.height; int startGradientPixels = this.startPosition.getValue(width); int endGradientPixels = this.endPosition.getValue(width); // remember original color int originalColor = graphics.getColor(); // Draw...
diff --git a/src/main/java/net/pms/encoders/MEncoderVideo.java b/src/main/java/net/pms/encoders/MEncoderVideo.java index b64e1c7d6..dc3a68051 100644 --- a/src/main/java/net/pms/encoders/MEncoderVideo.java +++ b/src/main/java/net/pms/encoders/MEncoderVideo.java @@ -1,2610 +1,2610 @@ /* * PS3 Media Server, for streami...
true
true
public ProcessWrapper launchTranscode( String fileName, DLNAResource dlna, DLNAMediaInfo media, OutputParams params ) throws IOException { params.manageFastStart(); boolean avisynth = avisynth(); setAudioAndSubs(fileName, media, params, configuration); String subString = null; if (params.sid != n...
public ProcessWrapper launchTranscode( String fileName, DLNAResource dlna, DLNAMediaInfo media, OutputParams params ) throws IOException { params.manageFastStart(); boolean avisynth = avisynth(); setAudioAndSubs(fileName, media, params, configuration); String subString = null; if (params.sid != n...
diff --git a/src/me/confuserr/banmanager/scheduler/databaseAsync.java b/src/me/confuserr/banmanager/scheduler/databaseAsync.java index b4b2bac..ed78b29 100644 --- a/src/me/confuserr/banmanager/scheduler/databaseAsync.java +++ b/src/me/confuserr/banmanager/scheduler/databaseAsync.java @@ -1,114 +1,114 @@ package me.con...
true
true
public void run() { // Get current time as a unix timestamp long now = System.currentTimeMillis() / 1000; // First, the player bans localConn.query("INSERT INTO " + localConn.bansRecordTable + " (banned, banned_by, ban_reason, ban_time, ban_expired_on, unbanned_by, unbanned_time, server) SELECT b.banned, b.ba...
public void run() { // Get current time as a unix timestamp long now = System.currentTimeMillis() / 1000; // First, the player bans localConn.query("INSERT INTO " + localConn.bansRecordTable + " (banned, banned_by, ban_reason, ban_time, ban_expired_on, unbanned_by, unbanned_time, server) SELECT b.banned, b.ba...
diff --git a/xjc/src/com/sun/tools/xjc/generator/bean/ObjectFactoryGeneratorImpl.java b/xjc/src/com/sun/tools/xjc/generator/bean/ObjectFactoryGeneratorImpl.java index 95de2eeb..b74c29f8 100644 --- a/xjc/src/com/sun/tools/xjc/generator/bean/ObjectFactoryGeneratorImpl.java +++ b/xjc/src/com/sun/tools/xjc/generator/bean/O...
true
true
protected final void populate( CElementInfo ei, Aspect impl, Aspect exposed ) { JType exposedElementType = ei.toType(outline,exposed); JType exposedType = ei.getContentInMemoryType().toType(outline,exposed); JType implType = ei.getContentInMemoryType().toType(outline,impl); String na...
protected final void populate( CElementInfo ei, Aspect impl, Aspect exposed ) { JType exposedElementType = ei.toType(outline,exposed); JType exposedType = ei.getContentInMemoryType().toType(outline,exposed); JType implType = ei.getContentInMemoryType().toType(outline,impl); String na...
diff --git a/grails-datastore-core/src/main/groovy/org/grails/datastore/mapping/keyvalue/mapping/config/KeyValuePersistentEntity.java b/grails-datastore-core/src/main/groovy/org/grails/datastore/mapping/keyvalue/mapping/config/KeyValuePersistentEntity.java index 7ad26a39..9287e9d9 100644 --- a/grails-datastore-core/src...
true
true
public PersistentProperty getPropertyByName(String name) { if(name.contains(".")) { String[] props = name.split("\\."); // Get the embedded property type PersistentProperty embeddedProp = super.getPropertyByName(props[0]); if( embeddedProp instanceof Embedded...
public PersistentProperty getPropertyByName(String name) { if(name != null && name.contains(".")) { String[] props = name.split("\\."); // Get the embedded property type PersistentProperty embeddedProp = super.getPropertyByName(props[0]); if( embeddedProp ins...
diff --git a/fog/src/de/tuilmenau/ics/fog/util/BlockingEventHandling.java b/fog/src/de/tuilmenau/ics/fog/util/BlockingEventHandling.java index f0555020..1a95fbfd 100644 --- a/fog/src/de/tuilmenau/ics/fog/util/BlockingEventHandling.java +++ b/fog/src/de/tuilmenau/ics/fog/util/BlockingEventHandling.java @@ -1,94 +1,94 @@...
true
true
public synchronized Event waitForEvent(double pTimeout) { Event res = null; boolean tInterrupted = false; int tAttempt = 0; do { if(firstEvent != null) { res = firstEvent; firstEvent = null; } else { if(events != null) { if(!events.isEmpty()) { res = events.removeFirst(); ...
public synchronized Event waitForEvent(double pTimeout) { Event res = null; boolean tInterrupted = false; int tAttempt = 0; do { if(firstEvent != null) { res = firstEvent; firstEvent = null; } else { if(events != null) { if(!events.isEmpty()) { res = events.removeFirst(); ...
diff --git a/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/FileSystemHelpers.java b/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/FileSystemHelpers.java index 04bb5137..2ba05a89 100644 --- a/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/b...
false
true
public static String getRelativePath(URI base, URI path, boolean goUpIfNeeded) { if (base==null || path==null) return null; if (!bothNullOrEqual(base.scheme(),path.scheme())) return null; if (!base.hasAbsolutePath()) return null; if (!path.hasAbsolutePath()) return null; if (!path.dev...
public static String getRelativePath(URI base, URI path, boolean goUpIfNeeded) { if (base==null || path==null) return null; if (!bothNullOrEqual(base.scheme(),path.scheme())) return null; if (!base.hasAbsolutePath()) return null; if (!path.hasAbsolutePath()) return null; if (!bothNull...
diff --git a/src/team/win/DataStore.java b/src/team/win/DataStore.java index 36aa341..640b550 100644 --- a/src/team/win/DataStore.java +++ b/src/team/win/DataStore.java @@ -1,78 +1,78 @@ package team.win; import java.io.IOException; import java.io.InputStream; import java.io.ObjectInputStream; import java.io.Obj...
true
true
public String getAllPrimitivesAsJSON() { try { JSONArray primitives = new JSONArray(); for (Primitive primitive : mPrimitiveList) { JSONArray pointArray = new JSONArray(); for (Point point : primitive.mPoints) { pointArray.put(point.mX); pointArray.put(point.mY); } JSONObject primObje...
public String getAllPrimitivesAsJSON() { try { JSONArray primitives = new JSONArray(); for (Primitive primitive : mPrimitiveList) { JSONArray pointArray = new JSONArray(); for (Point point : primitive.mPoints) { pointArray.put(point.mX); pointArray.put(point.mY); } JSONObject primObje...
diff --git a/src/com/darwinsys/lang/GetOpt.java b/src/com/darwinsys/lang/GetOpt.java index 31dd840..8a1a07b 100644 --- a/src/com/darwinsys/lang/GetOpt.java +++ b/src/com/darwinsys/lang/GetOpt.java @@ -1,270 +1,270 @@ package com.darwinsys.lang; import com.darwinsys.util.Debug; import java.util.Map; import java....
true
true
public char getopt(String argv[]) { Debug.println("getopt", "optind=" + optind + ", argv.length="+argv.length); if (optind >= (argv.length)-1) { done = true; } // If we are (now) finished, bail. if (done) { return DONE; } // XXX TODO - two-pass, 1st check long args, 2nd check for // char, m...
public char getopt(String argv[]) { Debug.println("getopt", "optind=" + optind + ", argv.length="+argv.length); if (optind >= (argv.length)-1) { done = true; } // If we are (now) finished, bail. if (done) { return DONE; } // XXX TODO - two-pass, 1st check long args, 2nd check for // char, m...
diff --git a/BOLT/src/render/util/ShaderLoader.java b/BOLT/src/render/util/ShaderLoader.java index 1e47d3c..d1ce49f 100644 --- a/BOLT/src/render/util/ShaderLoader.java +++ b/BOLT/src/render/util/ShaderLoader.java @@ -1,96 +1,104 @@ package render.util; import static org.lwjgl.opengl.GL20.*; import static org.lwjgl...
false
true
public static int loadProgram(String vertexName, String fragmentName) { int program = glCreateProgram(); int vertex = glCreateShader(GL_VERTEX_SHADER); int fragment = glCreateShader(GL_FRAGMENT_SHADER); StringBuilder vertexSource = new StringBuilder(); StringBuilder fragmentSource = new StringBuilder(); ...
public static int loadProgram(String vertexName, String fragmentName) { int program = glCreateProgram(); int vertex = glCreateShader(GL_VERTEX_SHADER); int fragment = glCreateShader(GL_FRAGMENT_SHADER); StringBuilder vertexSource = new StringBuilder(); StringBuilder fragmentSource = new StringBuilder(); ...
diff --git a/src/main/java/hudson/scm/SubversionRepositoryStatus.java b/src/main/java/hudson/scm/SubversionRepositoryStatus.java index 5728ebb..fb11b54 100644 --- a/src/main/java/hudson/scm/SubversionRepositoryStatus.java +++ b/src/main/java/hudson/scm/SubversionRepositoryStatus.java @@ -1,157 +1,158 @@ package hudson...
true
true
public void doNotifyCommit(StaplerRequest req, StaplerResponse rsp) throws ServletException, IOException { requirePOST(); // compute the affected paths Set<String> affectedPath = new HashSet<String>(); String line; BufferedReader r = new BufferedReader(req.getReader()); ...
public void doNotifyCommit(StaplerRequest req, StaplerResponse rsp) throws ServletException, IOException { requirePOST(); // compute the affected paths Set<String> affectedPath = new HashSet<String>(); String line; BufferedReader r = new BufferedReader(req.getReader()); ...
diff --git a/demos/src/main/java/com/datatorrent/demos/visualdata/ChartValueGenerator.java b/demos/src/main/java/com/datatorrent/demos/visualdata/ChartValueGenerator.java index f3338a1e8..f4a58c322 100644 --- a/demos/src/main/java/com/datatorrent/demos/visualdata/ChartValueGenerator.java +++ b/demos/src/main/java/com/d...
true
true
private int nextValue(int oldValue) { int nextValue = oldValue + (int) (Math.random() * randomIncrement); nextValue = nextValue < 0 ? 0 : nextValue > 100 ? 0 : nextValue; return nextValue; }
private int nextValue(int oldValue) { int nextValue = oldValue + (int) (Math.random() * randomIncrement - randomIncrement / 2); nextValue = nextValue < 0 ? 0 : nextValue > 100 ? 0 : nextValue; return nextValue; }
diff --git a/src/java/org/codehaus/groovy/grails/orm/hibernate/metaclass/ExecuteQueryPersistentMethod.java b/src/java/org/codehaus/groovy/grails/orm/hibernate/metaclass/ExecuteQueryPersistentMethod.java index 009f06c14..adf8ffd2c 100644 --- a/src/java/org/codehaus/groovy/grails/orm/hibernate/metaclass/ExecuteQueryPersi...
true
true
protected Object doInvokeInternal(Class clazz, String methodName, Closure additionalCriteria, Object[] arguments) { checkMethodSignature(clazz, arguments); final String query = arguments[0].toString(); final Map paginateParams = extractPaginateParams(arguments); final List positiona...
protected Object doInvokeInternal(Class clazz, String methodName, Closure additionalCriteria, Object[] arguments) { checkMethodSignature(clazz, arguments); final String query = arguments[0].toString(); final Map paginateParams = extractPaginateParams(arguments); final List positiona...
diff --git a/odcleanstore/engine/src/main/java/cz/cuni/mff/odcleanstore/engine/outputws/MetadataQueryExecutorResource.java b/odcleanstore/engine/src/main/java/cz/cuni/mff/odcleanstore/engine/outputws/MetadataQueryExecutorResource.java index 67c8508c..04cf337a 100644 --- a/odcleanstore/engine/src/main/java/cz/cuni/mff/o...
true
true
protected Representation execute() throws QueryExecutionException, ResultEmptyException, TransformerException { String namedGraphURI = getFormValue("uri"); // Get metadata MetadataQueryResult metadataResult = getQueryExecution().findNamedGraphMetadata(namedGraphURI); if (metadataRes...
protected Representation execute() throws QueryExecutionException, ResultEmptyException, TransformerException { String namedGraphURI = getFormValue("uri"); // Get metadata MetadataQueryResult metadataResult = getQueryExecution().findNamedGraphMetadata(namedGraphURI); if (metadataRes...
diff --git a/de.fxdiagram.core/xtend-gen/de/fxdiagram/core/layout/LayoutTransitionFactory.java b/de.fxdiagram.core/xtend-gen/de/fxdiagram/core/layout/LayoutTransitionFactory.java index 48244f06..4d1c960e 100644 --- a/de.fxdiagram.core/xtend-gen/de/fxdiagram/core/layout/LayoutTransitionFactory.java +++ b/de.fxdiagram.co...
false
true
public PathTransition createTransition(final XShape shape, final double endX, final double endY, final boolean curve, final Duration duration) { PathTransition _xblockexpression = null; { Group _group = new Group(); final Group dummyNode = _group; PathTransition _pathTransition = new PathTra...
public PathTransition createTransition(final XShape shape, final double endX, final double endY, final boolean curve, final Duration duration) { PathTransition _xblockexpression = null; { Group _group = new Group(); final Procedure1<Group> _function = new Procedure1<Group>() { public voi...
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/launcher/AddVMDialog.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/launcher/AddVMDialog.java index 4e1de7ae0..eee66422a 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/launcher/AddVMDialog.java +...
true
true
protected void createDialogFields() { fVMTypeCombo= new ComboDialogField(SWT.READ_ONLY); fVMTypeCombo.setLabelText(LauncherMessages.getString("addVMDialog.jreType")); //$NON-NLS-1$ if (fEditedVM == null) { fVMTypeCombo.setDialogFieldListener(new IDialogFieldListener() { public void dialogFieldChanged(Dial...
protected void createDialogFields() { fVMTypeCombo= new ComboDialogField(SWT.READ_ONLY); fVMTypeCombo.setLabelText(LauncherMessages.getString("addVMDialog.jreType")); //$NON-NLS-1$ fVMTypeCombo.setItems(getVMTypeNames()); fVMTypeCombo.setDialogFieldListener(new IDialogFieldListener() { public void dialogFie...
diff --git a/trunk/java/com/xerox/amazonws/sdb/Item.java b/trunk/java/com/xerox/amazonws/sdb/Item.java index 9eb2963..86474c5 100755 --- a/trunk/java/com/xerox/amazonws/sdb/Item.java +++ b/trunk/java/com/xerox/amazonws/sdb/Item.java @@ -1,316 +1,316 @@ // // typica - A client library for Amazon Web Services // Copyr...
true
true
public Map<String, List<String>> getAttributesMap(List<String> attributes) throws SDBException { Map<String, String> params = new HashMap<String, String>(); params.put("DomainName", domainName); params.put("ItemName", identifier); int idx = 1; if (attributes != null) { for (String attr : attributes) { ...
public Map<String, List<String>> getAttributesMap(List<String> attributes) throws SDBException { Map<String, String> params = new HashMap<String, String>(); params.put("DomainName", domainName); params.put("ItemName", identifier); int idx = 1; if (attributes != null) { for (String attr : attributes) { ...
diff --git a/MockHttpServer.java b/MockHttpServer.java index 6c4f3fe..085028a 100644 --- a/MockHttpServer.java +++ b/MockHttpServer.java @@ -1,138 +1,139 @@ package com.artcom.y60.http; import java.io.IOException; import java.util.HashMap; import java.util.UUID; import com.artcom.y60.Logger; public class Mo...
true
true
private Response handleRequest(ClientRequest request) { try { Thread.sleep(mResponseDelay); } catch (InterruptedException e) { Logger.e(LOG_TAG, e); } String acceptedMimeType = request.header.getProperty("accept", NanoHTTPD.MIME_PLAINTEXT); if (!accep...
private Response handleRequest(ClientRequest request) { try { Thread.sleep(mResponseDelay); } catch (InterruptedException e) { Logger.e(LOG_TAG, e); } String acceptedMimeType = request.header.getProperty("accept", NanoHTTPD.MIME_PLAINTEXT); if (!accep...
diff --git a/src/com/gmail/altakey/mint/Schema.java b/src/com/gmail/altakey/mint/Schema.java index e180abe..76db163 100644 --- a/src/com/gmail/altakey/mint/Schema.java +++ b/src/com/gmail/altakey/mint/Schema.java @@ -1,36 +1,36 @@ package com.gmail.altakey.mint; import android.content.Context; import android.datab...
true
true
public void onCreate(SQLiteDatabase db) { db.execSQL("CREATE TABLE IF NOT EXISTS tasks (_id INTEGER PRIMARY KEY AUTOINCREMENT, cookie VARCHAR UNIQUE, task BIGINT UNIQUE, title TEXT, note TEXT, modified BIGINT, completed TEXT, folder BIGINT, context BIGINT, priority INTEGER, star INTEGER, duedate BIG...
public void onCreate(SQLiteDatabase db) { db.execSQL("CREATE TABLE IF NOT EXISTS tasks (_id INTEGER PRIMARY KEY AUTOINCREMENT, cookie VARCHAR UNIQUE, task BIGINT UNIQUE, title TEXT, note TEXT, modified BIGINT, completed TEXT, folder BIGINT, context BIGINT, priority INTEGER, star INTEGER, duedate BIG...
diff --git a/src/main/src/org/compass/core/impl/DefaultCompassDetachedHits.java b/src/main/src/org/compass/core/impl/DefaultCompassDetachedHits.java index 4b19cfcd..bee2adb0 100644 --- a/src/main/src/org/compass/core/impl/DefaultCompassDetachedHits.java +++ b/src/main/src/org/compass/core/impl/DefaultCompassDetachedHit...
true
true
public DefaultCompassDetachedHits(InternalCompassHits hits, InternalCompassSession session, int from, int size) throws CompassException, IllegalArgumentException { this.length = size; if (from < 0) { throw new IllegalArgumentException("Can't preload with negative from [" + fr...
public DefaultCompassDetachedHits(InternalCompassHits hits, InternalCompassSession session, int from, int size) throws CompassException, IllegalArgumentException { this.length = size; if (from < 0) { throw new IllegalArgumentException("Can't preload with negative from [" + fr...
diff --git a/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/TestNoJobSetupCleanup.java b/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/TestNoJobSetupCleanup.java index 583572505..1116d4cda 100644 --- a/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/Test...
false
true
private Job submitAndValidateJob(Configuration conf, int numMaps, int numReds) throws IOException, InterruptedException, ClassNotFoundException { Job job = MapReduceTestUtil.createJob(conf, inDir, outDir, numMaps, numReds); job.setJobSetupCleanupNeeded(false); job.setOutputFormatCl...
private Job submitAndValidateJob(Configuration conf, int numMaps, int numReds) throws IOException, InterruptedException, ClassNotFoundException { Job job = MapReduceTestUtil.createJob(conf, inDir, outDir, numMaps, numReds); job.setJobSetupCleanupNeeded(false); job.setOutputFormatCl...
diff --git a/src/org/red5/server/net/rtmp/event/Aggregate.java b/src/org/red5/server/net/rtmp/event/Aggregate.java index 04d0d0d3..e671e016 100644 --- a/src/org/red5/server/net/rtmp/event/Aggregate.java +++ b/src/org/red5/server/net/rtmp/event/Aggregate.java @@ -1,263 +1,276 @@ /* * RED5 Open Source Flash Server - h...
false
true
public LinkedList<IRTMPEvent> getParts() { LinkedList<IRTMPEvent> parts = new LinkedList<IRTMPEvent>(); //log.debug("Aggregate data length: {}", data.limit()); int position = data.position(); do { try { // read the header //log.trace("Hex: {}", data.getHexDump()); byte subType = data.get(); ...
public LinkedList<IRTMPEvent> getParts() { LinkedList<IRTMPEvent> parts = new LinkedList<IRTMPEvent>(); log.trace("Aggregate data length: {}", data.limit()); int position = data.position(); do { try { // read the header //log.trace("Hex: {}", data.getHexDump()); byte subType = data.get(); //...
diff --git a/EvolutionChamber/src/java/com/fray/evo/action/build/EcActionBuildOverseer.java b/EvolutionChamber/src/java/com/fray/evo/action/build/EcActionBuildOverseer.java index 47b63d3..52b5fb8 100644 --- a/EvolutionChamber/src/java/com/fray/evo/action/build/EcActionBuildOverseer.java +++ b/EvolutionChamber/src/java/...
false
true
public void execute(final EcBuildOrder s, final EcEvolver e) { s.minerals -= 50; s.gas -= 100; s.overlords -= 1; s.addFutureAction(17, new Runnable() { @Override public void run() { if (e.debug) e.obtained(s," Overseer+1"); s.overseers += 1; } }); }
public void execute(final EcBuildOrder s, final EcEvolver e) { s.minerals -= 50; s.gas -= 100; s.addFutureAction(17, new Runnable() { @Override public void run() { if (e.debug) e.obtained(s," Overseer+1"); s.overlords -= 1; s.overseers += 1; } }); }
diff --git a/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/internal/context/ContextToObjectLink.java b/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/internal/context/ContextToObjectLink.java index 7e318f518..8f02fc6a0 100644 --- a/bundles/org.eclipse.e4.core.services/src/...
true
true
public boolean notify(final IEclipseContext notifyContext, final String name, final int eventType, final Object[] args) { if (eventType == IRunAndTrack.DISPOSE) { for (Iterator it = userObjects.iterator(); it.hasNext();) { WeakReference ref = (WeakReference) it.next(); Object referent = ref.get(); ...
public boolean notify(final IEclipseContext notifyContext, final String name, final int eventType, final Object[] args) { if (eventType == IRunAndTrack.DISPOSE) { for (Iterator it = userObjects.iterator(); it.hasNext();) { WeakReference ref = (WeakReference) it.next(); Object referent = ref.get(); ...
diff --git a/src/main/java/com/celements/photo/BarcodeScriptService.java b/src/main/java/com/celements/photo/BarcodeScriptService.java index bb5a7ec..70e9e11 100644 --- a/src/main/java/com/celements/photo/BarcodeScriptService.java +++ b/src/main/java/com/celements/photo/BarcodeScriptService.java @@ -1,48 +1,49 @@ pack...
false
true
public void generate(String number, OutputStream out) { BitmapCanvasProvider provider = new BitmapCanvasProvider( out, "image/png", 300, BufferedImage.TYPE_BYTE_GRAY, true, 0); DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder(); String xmlConf = "<?xml version=\"1.0\" encoding...
public void generate(String number, OutputStream out) { BitmapCanvasProvider provider = new BitmapCanvasProvider( out, "image/png", 300, BufferedImage.TYPE_BYTE_GRAY, true, 0); DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder(); String xmlConf = "<?xml version=\"1.0\" encoding...
diff --git a/src/edu/wpi/cs/jburge/SEURAT/inference/RequirementInferences.java b/src/edu/wpi/cs/jburge/SEURAT/inference/RequirementInferences.java index 5b7a481..4ab0692 100644 --- a/src/edu/wpi/cs/jburge/SEURAT/inference/RequirementInferences.java +++ b/src/edu/wpi/cs/jburge/SEURAT/inference/RequirementInferences.java...
true
true
public Vector<RationaleStatus> updateRequirement(Requirement req) { Vector<RationaleStatus> status; status = new Vector<RationaleStatus>(); UpdateManager manager = UpdateManager.getHandle(); manager.addUpdate(req.getID(), req.getName(), RationaleElementType.REQUIREMENT); RationaleDB db = RationaleDB.g...
public Vector<RationaleStatus> updateRequirement(Requirement req) { Vector<RationaleStatus> status; status = new Vector<RationaleStatus>(); UpdateManager manager = UpdateManager.getHandle(); manager.addUpdate(req.getID(), req.getName(), RationaleElementType.REQUIREMENT); RationaleDB db = RationaleDB.g...
diff --git a/hslpushdroid/src/main/java/com/hypermurea/hslpushdroid/reittiopas/FindLinesServiceImpl.java b/hslpushdroid/src/main/java/com/hypermurea/hslpushdroid/reittiopas/FindLinesServiceImpl.java index 0ca23f4..c44cb70 100644 --- a/hslpushdroid/src/main/java/com/hypermurea/hslpushdroid/reittiopas/FindLinesServiceImp...
true
true
public void findLinesByName(final FindLinesResultListener resultListener, String... query) { Set<TransportLine> cachedResults = new HashSet<TransportLine>(); Set<String> refinedQuery = new HashSet<String>(); for(String queryString : query) { TransportLine line = cache.getTransportLine(queryString); if(line...
public void findLinesByName(final FindLinesResultListener resultListener, String... query) { Set<TransportLine> cachedResults = new HashSet<TransportLine>(); Set<String> refinedQuery = new HashSet<String>(); for(String queryString : query) { TransportLine line = cache.getTransportLine(queryString); if(line...
diff --git a/uk.ac.diamond.scisoft.analysis/src/uk/ac/diamond/scisoft/analysis/dataset/function/Median.java b/uk.ac.diamond.scisoft.analysis/src/uk/ac/diamond/scisoft/analysis/dataset/function/Median.java index da99cbfa9..eadd91fed 100644 --- a/uk.ac.diamond.scisoft.analysis/src/uk/ac/diamond/scisoft/analysis/dataset/f...
false
true
public List<AbstractDataset> value(IDataset... datasets) { if (datasets.length == 0) return null; List<AbstractDataset> result = new ArrayList<AbstractDataset>(); for (IDataset idataset : datasets) { AbstractDataset dataset = DatasetUtils.convertToAbstractDataset(idataset); final int dt = dataset...
public List<AbstractDataset> value(IDataset... datasets) { if (datasets.length == 0) return null; List<AbstractDataset> result = new ArrayList<AbstractDataset>(); for (IDataset idataset : datasets) { AbstractDataset dataset = DatasetUtils.convertToAbstractDataset(idataset); final int dt = dataset...
diff --git a/src/groovy/org/pillarone/riskanalytics/core/output/AbstractCollectingModeStrategy.java b/src/groovy/org/pillarone/riskanalytics/core/output/AbstractCollectingModeStrategy.java index 5dd50c96..74780e20 100644 --- a/src/groovy/org/pillarone/riskanalytics/core/output/AbstractCollectingModeStrategy.java +++ b/...
true
true
protected List<SingleValueResult> createSingleValueResults(Map<String, Number> valueMap, int valueIndex) { List<SingleValueResult> results = new ArrayList(valueMap.size()); for (Map.Entry<String, Number> entry : valueMap.entrySet()) { String name = entry.getKey(); Double valu...
protected List<SingleValueResult> createSingleValueResults(Map<String, Number> valueMap, int valueIndex) { List<SingleValueResult> results = new ArrayList(valueMap.size()); for (Map.Entry<String, Number> entry : valueMap.entrySet()) { String name = entry.getKey(); Double valu...
diff --git a/plugin/src/com/facebook/buck/plugin/intellij/commands/BuckRunner.java b/plugin/src/com/facebook/buck/plugin/intellij/commands/BuckRunner.java index 251e41a31f..616b684be2 100644 --- a/plugin/src/com/facebook/buck/plugin/intellij/commands/BuckRunner.java +++ b/plugin/src/com/facebook/buck/plugin/intellij/co...
true
true
private int execute(ImmutableList<String> command, ImmutableMap<String, String> environment) { Preconditions.checkNotNull(command); ProcessBuilder processBuilder = new ProcessBuilder(command); processBuilder.directory(workingDirectory); for (ImmutableMap.Entry<String, String> entry : environment.entry...
private int execute(ImmutableList<String> command, ImmutableMap<String, String> environment) { Preconditions.checkNotNull(command); ProcessBuilder processBuilder = new ProcessBuilder(command); processBuilder.directory(workingDirectory); for (ImmutableMap.Entry<String, String> entry : environment.entry...
diff --git a/src/rajawali/animation/RotateAroundAnimation3D.java b/src/rajawali/animation/RotateAroundAnimation3D.java index 44392baa..d057ec27 100644 --- a/src/rajawali/animation/RotateAroundAnimation3D.java +++ b/src/rajawali/animation/RotateAroundAnimation3D.java @@ -1,44 +1,44 @@ package rajawali.animation; imp...
true
true
protected void applyTransformation(float interpolatedTime) { float radians = 360f * interpolatedTime * PI_DIV_180; float cosVal = FloatMath.cos(radians) * mDistance; float sinVal = FloatMath.sin(radians) * mDistance; if(mAxis == Axis.Z) { mTransformable3D.setX(mCenter.x + cosVal); mTransformable3D....
protected void applyTransformation(float interpolatedTime) { float radians = 360f * interpolatedTime * PI_DIV_180; float cosVal = FloatMath.cos(radians) * mDistance; float sinVal = FloatMath.sin(radians) * mDistance; if(mAxis == Axis.Z) { mTransformable3D.setX(mCenter.x + cosVal); mTransformable3D....
diff --git a/Java/org/thymeleaf/presentation/dialect/SayHelloProcessor.java b/Java/org/thymeleaf/presentation/dialect/SayHelloProcessor.java index 9078bf7..d241404 100644 --- a/Java/org/thymeleaf/presentation/dialect/SayHelloProcessor.java +++ b/Java/org/thymeleaf/presentation/dialect/SayHelloProcessor.java @@ -1,69 +1...
true
true
protected ProcessorResult processAttribute(Arguments args, Element el, String attrname) { String attrvalue = el.getAttributeValue(attrname); Element paragraph = new Element("p"); paragraph.addChild(new Text("Hello " + attrvalue)); el.insertChild(0, paragraph); return ProcessorResult.OK; }
protected ProcessorResult processAttribute(Arguments args, Element el, String attrname) { String attrvalue = el.getAttributeValue(attrname); Element paragraph = new Element("p"); paragraph.addChild(new Text("Hello " + attrvalue)); el.insertChild(0, paragraph); el.removeAttribute(attrname); return Proce...
diff --git a/gpswinggui/src/main/java/org/geopublishing/geopublisher/export/gphoster/GpFtpAtlasExport.java b/gpswinggui/src/main/java/org/geopublishing/geopublisher/export/gphoster/GpFtpAtlasExport.java index ff9e1ffb..cb5e318c 100644 --- a/gpswinggui/src/main/java/org/geopublishing/geopublisher/export/gphoster/GpFtpAt...
true
true
public void export() throws Exception { GpSync gpSync = new GpSync(ace.getAtlasDir(), ace.getBaseName()); log.info("Contacting " + getSelectedGpHosterServerSettings().getRestUrl()); progress.setBusy(GeopublisherGUI.R("GpFtpAtlasExport.ContactingServer", getSelectedGpHosterServerSettings().getRestUrl())...
public void export() throws Exception { GpSync gpSync = new GpSync(ace.getAtlasDir(), ace.getBaseName()); log.info("Contacting " + getSelectedGpHosterServerSettings().getRestUrl()); progress.setBusy(GeopublisherGUI.R("GpFtpAtlasExport.ContactingServer", getSelectedGpHosterServerSettings().getRestUrl())...
diff --git a/src/net/sf/freecol/client/gui/panel/ReportLabourPanel.java b/src/net/sf/freecol/client/gui/panel/ReportLabourPanel.java index be7e98e3b..e9e852ae9 100644 --- a/src/net/sf/freecol/client/gui/panel/ReportLabourPanel.java +++ b/src/net/sf/freecol/client/gui/panel/ReportLabourPanel.java @@ -1,680 +1,682 @@ /*...
true
true
private int addLocationData(LabourData.LocationData data, Colony colony, int row) { boolean allColonists = data.getUnitData().isSummary(); LabourData.UnitData unit = data.getUnitData(); UnitType unitType = unit.getUnitType(); String unitName = unit.getUnitName(); String wor...
private int addLocationData(LabourData.LocationData data, Colony colony, int row) { boolean allColonists = data.getUnitData().isSummary(); LabourData.UnitData unit = data.getUnitData(); UnitType unitType = unit.getUnitType(); String unitName = unit.getUnitName(); String wor...
diff --git a/TaxonDNA/com/ggvaidya/TaxonDNA/SequenceMatrix/FileManager.java b/TaxonDNA/com/ggvaidya/TaxonDNA/SequenceMatrix/FileManager.java index 06cbc05..171e394 100644 --- a/TaxonDNA/com/ggvaidya/TaxonDNA/SequenceMatrix/FileManager.java +++ b/TaxonDNA/com/ggvaidya/TaxonDNA/SequenceMatrix/FileManager.java @@ -1,845 +...
true
true
private void addNextFile(File file, FormatHandler handler) throws DelayAbortedException { SequenceList sequences = null; boolean sets_were_added = false; // ask the user how he'd like to specify the species or column names (?!), // and save the output for future use. checkNameToUse(); try { if(handler...
private void addNextFile(File file, FormatHandler handler) throws DelayAbortedException { SequenceList sequences = null; boolean sets_were_added = false; // ask the user how he'd like to specify the species or column names (?!), // and save the output for future use. checkNameToUse(); try { if(handler...
diff --git a/org.eclipse.mylyn.monitor.tests/src/org/eclipse/mylyn/monitor/tests/StatisticsLoggingTest.java b/org.eclipse.mylyn.monitor.tests/src/org/eclipse/mylyn/monitor/tests/StatisticsLoggingTest.java index 98765561..5f010ad4 100644 --- a/org.eclipse.mylyn.monitor.tests/src/org/eclipse/mylyn/monitor/tests/Statistic...
true
true
public void testFileReading() { logger.interactionObserved(mockSelection()); mockUserDelay(); logger.interactionObserved(mockSelection()); logger.stopMonitoring(); report.getStatisticsFromInteractionHistory(logFile, new JobChangeAdapter() { public void done(IJobChangeEvent event) { List<InteractionEv...
public void testFileReading() { logger.interactionObserved(mockSelection()); mockUserDelay(); logger.interactionObserved(mockSelection()); logger.stopMonitoring(); report.getStatisticsFromInteractionHistory(logFile, new JobChangeAdapter() { @Override public void done(IJobChangeEvent event) { List<...