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/de.fxdiagram.core/xtend-gen/de/fxdiagram/core/tools/SelectionTool.java b/de.fxdiagram.core/xtend-gen/de/fxdiagram/core/tools/SelectionTool.java index 5fc49669..a8517bce 100644 --- a/de.fxdiagram.core/xtend-gen/de/fxdiagram/core/tools/SelectionTool.java +++ b/de.fxdiagram.core/xtend-gen/de/fxdiagram/core/to...
true
true
public SelectionTool(final XRootDiagram rootDiagram) { this.rootDiagram = rootDiagram; final EventHandler<MouseEvent> _function = new EventHandler<MouseEvent>() { public void handle(final MouseEvent event) { XRapidButton _targetButton = Extensions.getTargetButton(event); boolean _not = (...
public SelectionTool(final XRootDiagram rootDiagram) { this.rootDiagram = rootDiagram; final EventHandler<MouseEvent> _function = new EventHandler<MouseEvent>() { public void handle(final MouseEvent event) { XRapidButton _targetButton = Extensions.getTargetButton(event); boolean _not = (...
diff --git a/src/org/werti/uima/ae/LingPipeTokenizer.java b/src/org/werti/uima/ae/LingPipeTokenizer.java index 23a53e1..215635e 100644 --- a/src/org/werti/uima/ae/LingPipeTokenizer.java +++ b/src/org/werti/uima/ae/LingPipeTokenizer.java @@ -1,67 +1,68 @@ package org.werti.uima.ae; import java.util.Iterator; impo...
false
true
public void process(JCas cas) { log.info("Starting tokenization"); final FSIndex textIndex = cas.getAnnotationIndex(RelevantText.type); final Iterator<RelevantText> tit = textIndex.iterator(); int lskew = -1; while (tit.hasNext()) { final RelevantText rt = tit.next(); final int gskew = rt.getBegin();...
public void process(JCas cas) { log.info("Starting tokenization"); final FSIndex textIndex = cas.getAnnotationIndex(RelevantText.type); final Iterator<RelevantText> tit = textIndex.iterator(); int lskew = 0; while (tit.hasNext()) { final RelevantText rt = tit.next(); final int gskew = rt.getBegin(); ...
diff --git a/1.0/src/info/emptybrain/myna/MynaThread.java b/1.0/src/info/emptybrain/myna/MynaThread.java index 29396aa5..fb6a104d 100644 --- a/1.0/src/info/emptybrain/myna/MynaThread.java +++ b/1.0/src/info/emptybrain/myna/MynaThread.java @@ -1,1562 +1,1562 @@ package info.emptybrain.myna; import java.io.*; import...
true
true
public void handleRequest (String scriptPath) throws Exception{ runningThreads.add(this); runtimeStats.put("threadId",this.toString()); runtimeStats.put("started",this.started); int lastSlash = scriptPath.lastIndexOf("/"); this.currentDir = new URI(scriptPath.substring(0,lastSlash+1)).toString(); thi...
public void handleRequest (String scriptPath) throws Exception{ runningThreads.add(this); runtimeStats.put("threadId",this.toString()); runtimeStats.put("started",this.started); int lastSlash = scriptPath.lastIndexOf("/"); this.currentDir = new URI(scriptPath.substring(0,lastSlash+1)).toString(); thi...
diff --git a/bitrepository-audit-trail-service/src/main/java/org/bitrepository/audittrails/collector/IncrementalCollector.java b/bitrepository-audit-trail-service/src/main/java/org/bitrepository/audittrails/collector/IncrementalCollector.java index 9a415b82..e14c4ddd 100644 --- a/bitrepository-audit-trail-service/src/m...
false
true
public void handleEvent(OperationEvent event) { if(event instanceof AuditTrailResult) { AuditTrailResult auditResult = (AuditTrailResult) event; if (!auditResult.getCollectionID().equals(collectionID)) { log.warn("Received bad collection id! Expect...
public void handleEvent(OperationEvent event) { if(event instanceof AuditTrailResult) { AuditTrailResult auditResult = (AuditTrailResult) event; if (!auditResult.getCollectionID().equals(collectionID)) { log.warn("Received bad collection id! Expect...
diff --git a/eve/frontend/input/pojo-impl/src/java/org/apache/eve/input/DefaultInputManager.java b/eve/frontend/input/pojo-impl/src/java/org/apache/eve/input/DefaultInputManager.java index 0d0527f7fe..ead59062f8 100644 --- a/eve/frontend/input/pojo-impl/src/java/org/apache/eve/input/DefaultInputManager.java +++ b/eve/f...
true
true
void processInput() { /* * Process the selectors that are ready. For each selector that * is ready we read some data into a buffer we claim from a buffer * pool. Next we create an InputEvent using the buffer and publish * it using the event notifier/router. ...
void processInput() { /* * Process the selectors that are ready. For each selector that * is ready we read some data into a buffer we claim from a buffer * pool. Next we create an InputEvent using the buffer and publish * it using the event notifier/router. ...
diff --git a/importers/philips-hue/src/main/java/org/ow2/chameleon/fuchsia/philips/hue/importer/PhilipsHueGogoCommand.java b/importers/philips-hue/src/main/java/org/ow2/chameleon/fuchsia/philips/hue/importer/PhilipsHueGogoCommand.java index 938b79c9..ebf86a7c 100644 --- a/importers/philips-hue/src/main/java/org/ow2/cha...
true
true
public void phset(@Descriptor("[-name NAME] [-on true|false] [-i 0<=INTENSITY<=255] [-tt TRANSITION_TIME_IN_CENTISECONDS] [-r 0<=RED<=255] [-g 0<=GREEN<=255] [-b 0<=BLUE<=255]") String... parameters) { String valueStr=getArgumentValue("-on",parameters); String nameStr=getArgumentValue("-name",param...
public void phset(@Descriptor("[-name NAME] [-on true|false] [-i 0<=INTENSITY<=255] [-tt TRANSITION_TIME_IN_DECISECONDS] [-r 0<=RED<=255] [-g 0<=GREEN<=255] [-b 0<=BLUE<=255]") String... parameters) { String valueStr=getArgumentValue("-on",parameters); String nameStr=getArgumentValue("-name",parame...
diff --git a/java/src/com/android/inputmethod/keyboard/PointerTracker.java b/java/src/com/android/inputmethod/keyboard/PointerTracker.java index 80af37fb..ffaf3db6 100644 --- a/java/src/com/android/inputmethod/keyboard/PointerTracker.java +++ b/java/src/com/android/inputmethod/keyboard/PointerTracker.java @@ -1,539 +1,...
false
true
public void onMoveEvent(int x, int y, long eventTime) { if (DEBUG_MOVE_EVENT) printTouchEvent("onMoveEvent:", x, y, eventTime); if (mKeyAlreadyProcessed) return; final PointerTrackerKeyState keyState = mKeyState; final int keyIndex = keyState.onMoveKey(x, y); ...
public void onMoveEvent(int x, int y, long eventTime) { if (DEBUG_MOVE_EVENT) printTouchEvent("onMoveEvent:", x, y, eventTime); if (mKeyAlreadyProcessed) return; final PointerTrackerKeyState keyState = mKeyState; final int keyIndex = keyState.onMoveKey(x, y); ...
diff --git a/src/main/java/net/sf/hajdbc/logging/jboss/JBossLoggingProvider.java b/src/main/java/net/sf/hajdbc/logging/jboss/JBossLoggingProvider.java index 39d6ed3f..9adad4be 100644 --- a/src/main/java/net/sf/hajdbc/logging/jboss/JBossLoggingProvider.java +++ b/src/main/java/net/sf/hajdbc/logging/jboss/JBossLoggingPro...
true
true
public boolean isEnabled() { // If this class could be loaded, so can jboss logging. return true; }
public boolean isEnabled() { try { org.jboss.logging.Logger.getLogger(this.getClass()); return true; } catch (Throwable e) { return false; } }
diff --git a/sonar-batch/src/main/java/org/sonar/batch/rule/RulesProfileWrapper.java b/sonar-batch/src/main/java/org/sonar/batch/rule/RulesProfileWrapper.java index ffa23f300a..7011138d93 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/rule/RulesProfileWrapper.java +++ b/sonar-batch/src/main/java/org/sonar/batch...
true
true
public String getLanguage() { if (singleLanguageProfile == null) { // Multi-languages module // FIXME This is a hack for CommonChecksDecorator that call this method in its constructor LOG.debug("Please update your plugin to support multi-language analysis", new SonarException("Please update your...
public String getLanguage() { if (singleLanguageProfile == null) { // Multi-languages module // FIXME This is a hack for CommonChecksDecorator that call this method in its constructor LOG.debug("Please update your plugin to support multi-language analysis", new SonarException("Please update your...
diff --git a/src/edu/columbia/mipl/Main.java b/src/edu/columbia/mipl/Main.java index 782fbe5..e04f80d 100644 --- a/src/edu/columbia/mipl/Main.java +++ b/src/edu/columbia/mipl/Main.java @@ -1,182 +1,181 @@ /* * MIPL: Mining Integrated Programming Language * * File: Main.java * Author: YoungHoon Jung <yj2244@col...
true
true
public static void main(String[] args) { //Parser parser = new Parser(new Program(new SemanticChecker(), new ProgramExecutor())); // Interactive Mode //Parser parser = new Parser("test/input/multireturn.mipl", new Program(new SemanticChecker(), new ProgramExecutor())); // Interpreter Mode //Parser parser = new P...
public static void main(String[] args) { //Parser parser = new Parser(new Program(new SemanticChecker(), new ProgramExecutor())); // Interactive Mode //Parser parser = new Parser("test/input/multireturn.mipl", new Program(new SemanticChecker(), new ProgramExecutor())); // Interpreter Mode //Parser parser = new P...
diff --git a/flexoserver/flexoexternalbuilders/src/main/java/org/openflexo/builders/FlexoExternalMainWithProject.java b/flexoserver/flexoexternalbuilders/src/main/java/org/openflexo/builders/FlexoExternalMainWithProject.java index b86182662..eaaaedb18 100644 --- a/flexoserver/flexoexternalbuilders/src/main/java/org/ope...
true
true
protected void init(String[] args) throws MissingArgumentException { super.init(args); GeneralPreferences.setAutoSaveEnabled(false); GeneralPreferences.save(); if (args.length > 0) { for (int i = 0; i < args.length; i++) { if (args[i].startsWith(SERVER_URL)) { serverURL = args[i].substring(SERVER_U...
protected void init(String[] args) throws MissingArgumentException { super.init(args); GeneralPreferences.setAutoSaveEnabled(false); GeneralPreferences.save(); if (args.length > 0) { for (int i = 0; i < args.length; i++) { if (args[i].startsWith(SERVER_URL)) { serverURL = args[i].substring(SERVER_U...
diff --git a/src/com/lovamimi/MainActivity.java b/src/com/lovamimi/MainActivity.java index fce9275..47b3ed0 100644 --- a/src/com/lovamimi/MainActivity.java +++ b/src/com/lovamimi/MainActivity.java @@ -1,213 +1,213 @@ package com.lovamimi; import android.app.AlertDialog; import android.content.Context; import andr...
true
true
private void addOneSecretToLayout(LinearLayout mainLayout, LayoutInflater inflater, final Secret secret) { RelativeLayout incLayout = (RelativeLayout) inflater.inflate(R.layout.secret, null); TextView tv = (TextView) incLayout.findViewById(R.id.secret_body); tv.setText(secret.body); ...
private void addOneSecretToLayout(LinearLayout mainLayout, LayoutInflater inflater, final Secret secret) { RelativeLayout incLayout = (RelativeLayout) inflater.inflate(R.layout.secret, null); TextView tv = (TextView) incLayout.findViewById(R.id.secret_body); tv.setText(secret.body); ...
diff --git a/webClient/src/main/java/com/hael/beans/AutoCompleteBean.java b/webClient/src/main/java/com/hael/beans/AutoCompleteBean.java index 4328ff5..547e2b1 100644 --- a/webClient/src/main/java/com/hael/beans/AutoCompleteBean.java +++ b/webClient/src/main/java/com/hael/beans/AutoCompleteBean.java @@ -1,168 +1,172 @@...
false
true
public void findShortestPath() throws IOException_Exception { try { this.route = jumpCalculator.shortestRoute(this.currentSystem, this.toSystem, minSecurity, maxSecurity); } catch (NoPathExistsException_Exception e) { FacesContext.getCurrentInstance().addMessage( null, new FacesMessage("There...
public void findShortestPath() throws IOException_Exception { try { this.route = jumpCalculator.shortestRoute(this.currentSystem, this.toSystem, minSecurity, maxSecurity); } catch (NoPathExistsException_Exception e) { FacesMessage error = new FacesMessage("There is no path that satisfies these criteria...
diff --git a/src/net/majorkernelpanic/spydroid/SpydroidApplication.java b/src/net/majorkernelpanic/spydroid/SpydroidApplication.java index bbe3b2d..5bd948b 100644 --- a/src/net/majorkernelpanic/spydroid/SpydroidApplication.java +++ b/src/net/majorkernelpanic/spydroid/SpydroidApplication.java @@ -1,16 +1,16 @@ package ...
true
true
public void onCreate() { // The following line triggers the initialization of ACRA // Please do not uncomment this line unless you change the form id or I will receive your crash reports ! ACRA.init(this); super.onCreate(); }
public void onCreate() { // The following line triggers the initialization of ACRA // Please do not uncomment this line unless you change the form id or I will receive your crash reports ! //ACRA.init(this); super.onCreate(); }
diff --git a/src/main/java/org/apache/log4j/AsyncAppender.java b/src/main/java/org/apache/log4j/AsyncAppender.java index 1d9b3967..214ffa7b 100644 --- a/src/main/java/org/apache/log4j/AsyncAppender.java +++ b/src/main/java/org/apache/log4j/AsyncAppender.java @@ -1,595 +1,596 @@ /* * Licensed to the Apache Software F...
true
true
public void append(final LoggingEvent event) { // // if dispatcher thread has died then // append subsequent events synchronously // See bug 23021 if ((dispatcher == null) || !dispatcher.isAlive() || (bufferSize <= 0)) { synchronized (appenders) { appenders.appendLoopOnAppen...
public void append(final LoggingEvent event) { // // if dispatcher thread has died then // append subsequent events synchronously // See bug 23021 if ((dispatcher == null) || !dispatcher.isAlive() || (bufferSize <= 0)) { synchronized (appenders) { appenders.appendLoopOnAppen...
diff --git a/env/capedwarf/src/main/java/org/jboss/capedwarf/tck/CapeDwarfExecutionLifecycle.java b/env/capedwarf/src/main/java/org/jboss/capedwarf/tck/CapeDwarfExecutionLifecycle.java index 3e4df6c..448639d 100644 --- a/env/capedwarf/src/main/java/org/jboss/capedwarf/tck/CapeDwarfExecutionLifecycle.java +++ b/env/cape...
true
true
protected void doBefore(ExecutionLifecycleEvent event) { Class<?> caller = event.getCallerClass(); String name = caller.getName(); if (name.contains("Image") || name.contains("Sql")) { event.setExecute(true); } }
protected void doBefore(ExecutionLifecycleEvent event) { Class<?> caller = event.getCallerClass(); String name = caller.getName(); if (name.contains("Image") || name.contains("DriverTest")) { event.setExecute(true); } }
diff --git a/java/src/org/broadinstitute/sting/gatk/datasources/reads/BAMScheduler.java b/java/src/org/broadinstitute/sting/gatk/datasources/reads/BAMScheduler.java index 45aee6758..266232c0f 100644 --- a/java/src/org/broadinstitute/sting/gatk/datasources/reads/BAMScheduler.java +++ b/java/src/org/broadinstitute/sting/...
true
true
private void advance() { if(loci.isEmpty()) return; nextFilePointer = null; while(nextFilePointer == null && currentLocus != null) { // special case handling of the unmapped shard. if(currentLocus == GenomeLoc.UNMAPPED) { nextFilePointer =...
private void advance() { if(loci.isEmpty()) return; nextFilePointer = null; while(nextFilePointer == null && currentLocus != null) { // special case handling of the unmapped shard. if(currentLocus == GenomeLoc.UNMAPPED) { nextFilePointer =...
diff --git a/src/main/java/hudson/plugins/sshslaves/SSHLauncher.java b/src/main/java/hudson/plugins/sshslaves/SSHLauncher.java index ad83dd8..88c045b 100644 --- a/src/main/java/hudson/plugins/sshslaves/SSHLauncher.java +++ b/src/main/java/hudson/plugins/sshslaves/SSHLauncher.java @@ -1,881 +1,882 @@ /* * The MIT Lic...
true
true
protected void openConnection(TaskListener listener) throws IOException, InterruptedException { listener.getLogger().println(Messages.SSHLauncher_OpeningSSHConnection(getTimestamp(), host + ":" + port)); connection.connect(); String username = this.username; if(fixEmpty(username)==n...
protected void openConnection(TaskListener listener) throws IOException, InterruptedException { listener.getLogger().println(Messages.SSHLauncher_OpeningSSHConnection(getTimestamp(), host + ":" + port)); connection.setTCPNoDelay(true); connection.connect(); String username = this.us...
diff --git a/caintegrator2-war/test/src/gov/nih/nci/caintegrator2/application/study/GenomicDataSourceConfigurationGenerator.java b/caintegrator2-war/test/src/gov/nih/nci/caintegrator2/application/study/GenomicDataSourceConfigurationGenerator.java index fee634d6c..1c81f38d8 100644 --- a/caintegrator2-war/test/src/gov/ni...
true
true
public void compareFields(GenomicDataSourceConfiguration original, GenomicDataSourceConfiguration retrieved) { assertEquals(original.getExperimentIdentifier(), retrieved.getExperimentIdentifier()); ServerConnectionProfileGenerator.INSTANCE.compare(original.getServerProfile(), retrieved.getServerProf...
public void compareFields(GenomicDataSourceConfiguration original, GenomicDataSourceConfiguration retrieved) { assertEquals(original.getStudyConfiguration(), retrieved.getStudyConfiguration()); assertEquals(original.getExperimentIdentifier(), retrieved.getExperimentIdentifier()); ServerConne...
diff --git a/src/main/java/com/madalla/webapp/admin/pages/AdminErrorPage.java b/src/main/java/com/madalla/webapp/admin/pages/AdminErrorPage.java index d116243b..d138f913 100644 --- a/src/main/java/com/madalla/webapp/admin/pages/AdminErrorPage.java +++ b/src/main/java/com/madalla/webapp/admin/pages/AdminErrorPage.java @...
true
true
public AdminErrorPage() { add(homePageLink("homePageLink")); }
public AdminErrorPage() { add(homePageLink("homePageLink")); add(new AdminPageLink("profilePageLink", MainAdminPage.class)); }
diff --git a/cdi/plugins/org.jboss.tools.cdi.seam.text.ext/src/org/jboss/tools/cdi/seam/text/ext/hyperlink/CDISeamResourceLoadingHyperlinkDetector.java b/cdi/plugins/org.jboss.tools.cdi.seam.text.ext/src/org/jboss/tools/cdi/seam/text/ext/hyperlink/CDISeamResourceLoadingHyperlinkDetector.java index 4a5416183..2e9ac1525 ...
true
true
public IHyperlink[] detectHyperlinks(ITextViewer textViewer, IRegion region, boolean canShowMultipleHyperlinks) { ITextEditor textEditor= (ITextEditor)getAdapter(ITextEditor.class); if (region == null || !canShowMultipleHyperlinks || !(textEditor instanceof JavaEditor)) return null; int offset = region....
public IHyperlink[] detectHyperlinks(ITextViewer textViewer, IRegion region, boolean canShowMultipleHyperlinks) { ITextEditor textEditor= (ITextEditor)getAdapter(ITextEditor.class); if (region == null || !canShowMultipleHyperlinks || !(textEditor instanceof JavaEditor)) return null; int offset = region....
diff --git a/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/EclipseConnector.java b/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/EclipseConnector.java index 387e84ce2..ee9cb0fc3 100644 --- a/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/EclipseConnect...
false
true
public void transfer(HttpServletRequest req, HttpServletResponse resp) throws IOException { try { String url = getURL(req); if (url == null) return; // Redirect if the request includes PLUGINS_ROOT and is not a content request int index = url.lastIndexOf(HelpURLConnection.PLUGINS_ROOT); if (ind...
public void transfer(HttpServletRequest req, HttpServletResponse resp) throws IOException { try { String url = getURL(req); if (url == null) return; // Redirect if the request includes PLUGINS_ROOT and is not a content request int index = url.lastIndexOf(HelpURLConnection.PLUGINS_ROOT); if (ind...
diff --git a/src/com/ichi2/libanki/sync/Syncer.java b/src/com/ichi2/libanki/sync/Syncer.java index 7acaca29..90fd7738 100644 --- a/src/com/ichi2/libanki/sync/Syncer.java +++ b/src/com/ichi2/libanki/sync/Syncer.java @@ -1,874 +1,871 @@ /***********************************************************************************...
false
true
public Object[] sync(Connection con) { // if the deck has any pending changes, flush them first and bump mod time mCol.save(); // step 1: login & metadata HttpResponse ret = mServer.meta(); if (ret == null) { return null; } int returntype = ret.get...
public Object[] sync(Connection con) { // if the deck has any pending changes, flush them first and bump mod time mCol.save(); // step 1: login & metadata HttpResponse ret = mServer.meta(); if (ret == null) { return null; } int returntype = ret.get...
diff --git a/desktop/src/net/mms_projects/copyit/ui/SwtGui.java b/desktop/src/net/mms_projects/copyit/ui/SwtGui.java index 6fcb262..13437a1 100644 --- a/desktop/src/net/mms_projects/copyit/ui/SwtGui.java +++ b/desktop/src/net/mms_projects/copyit/ui/SwtGui.java @@ -1,162 +1,162 @@ package net.mms_projects.copyit.ui; ...
true
true
public void open() { if (this.settings.get("run.firsttime") == null) { MessageBox firstTimer = new MessageBox(this.activityShell); firstTimer .setMessage("It appairs this is the first time you started the app. " + "The preferences will open to setup your login."); firstTimer.open(); new Pref...
public void open() { if (this.settings.get("run.firsttime") == null) { MessageBox firstTimer = new MessageBox(this.activityShell); firstTimer .setMessage("It appairs this is the first time you started the app. " + "The preferences will open to setup your login."); firstTimer.open(); new Pref...
diff --git a/src/main/java/quickfix/mina/message/FIXMessageDecoder.java b/src/main/java/quickfix/mina/message/FIXMessageDecoder.java index f8da52a..a17844a 100644 --- a/src/main/java/quickfix/mina/message/FIXMessageDecoder.java +++ b/src/main/java/quickfix/mina/message/FIXMessageDecoder.java @@ -1,426 +1,425 @@ /*****...
false
true
private boolean parseMessage(ByteBuffer in, ProtocolDecoderOutput out) throws ProtocolCodecException { try { boolean messageFound = false; while (in.hasRemaining() && !messageFound) { if (state == SEEKING_HEADER) { BufPos bufPos = inde...
private boolean parseMessage(ByteBuffer in, ProtocolDecoderOutput out) throws ProtocolCodecException { try { boolean messageFound = false; while (in.hasRemaining() && !messageFound) { if (state == SEEKING_HEADER) { BufPos bufPos = inde...
diff --git a/beam-gpf/src/main/java/org/esa/beam/framework/gpf/main/Main.java b/beam-gpf/src/main/java/org/esa/beam/framework/gpf/main/Main.java index 78a7ac92b..d700cd996 100644 --- a/beam-gpf/src/main/java/org/esa/beam/framework/gpf/main/Main.java +++ b/beam-gpf/src/main/java/org/esa/beam/framework/gpf/main/Main.java...
true
true
public static void main(String[] args) throws Exception { try { Locale.setDefault(Locale.ENGLISH); // Force usage of english locale BeamLogManager.removeRootLoggerHandlers(); SystemUtils.init3rdPartyLibs(Main.class.getClassLoader()); new CommandLineTool().run(...
public static void main(String[] args) throws Exception { try { Locale.setDefault(Locale.ENGLISH); // Force usage of english locale BeamLogManager.removeRootLoggerHandlers(); SystemUtils.init3rdPartyLibs(Main.class.getClassLoader()); new CommandLineTool().run(...
diff --git a/src/main/java/org/jboss/modules/MavenArtifactUtil.java b/src/main/java/org/jboss/modules/MavenArtifactUtil.java index e060a922..cbd0ecb9 100755 --- a/src/main/java/org/jboss/modules/MavenArtifactUtil.java +++ b/src/main/java/org/jboss/modules/MavenArtifactUtil.java @@ -1,142 +1,144 @@ /* * JBoss, Home o...
true
true
public static File resolveJarArtifact(String qualifier) throws IOException { String[] split = qualifier.split(":"); if (split.length < 3) throw new IllegalArgumentException("Illegal artifact"); String groupId = split[0]; String artifactId = split[1]; String version = split[2]...
public static File resolveJarArtifact(String qualifier) throws IOException { String[] split = qualifier.split(":"); if (split.length < 3) { throw new IllegalArgumentException("Illegal artifact " + qualifier); } String groupId = split[0]; String artifactId = split[...
diff --git a/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/CTFTrace.java b/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/CTFTrace.java index 925a68458..a9ccc2bfa 100644 --- a/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/tra...
true
true
private void openStreamInput(File streamFile) throws CTFReaderException { MappedByteBuffer byteBuffer; BitBuffer streamBitBuffer; Stream stream; FileChannel fc; if (!streamFile.canRead()) { throw new CTFReaderException("Unreadable file : " //$NON-NLS-1$ ...
private void openStreamInput(File streamFile) throws CTFReaderException { MappedByteBuffer byteBuffer; BitBuffer streamBitBuffer; Stream stream; FileChannel fc; if (!streamFile.canRead()) { throw new CTFReaderException("Unreadable file : " //$NON-NLS-1$ ...
diff --git a/idea/src/org/napile/idea/plugin/highlighter/JetColorSettingsPage.java b/idea/src/org/napile/idea/plugin/highlighter/JetColorSettingsPage.java index 6ba5097d..24337243 100644 --- a/idea/src/org/napile/idea/plugin/highlighter/JetColorSettingsPage.java +++ b/idea/src/org/napile/idea/plugin/highlighter/JetColo...
true
true
public AttributesDescriptor[] getAttributeDescriptors() { return new AttributesDescriptor[]{ new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.keyword"), JetHighlightingColors.KEYWORD), new AttributesDescriptor(JetBundle.message("options.idea.attribute.descriptor.builtin.anno...
public AttributesDescriptor[] getAttributeDescriptors() { return new AttributesDescriptor[]{ new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.keyword"), JetHighlightingColors.KEYWORD), new AttributesDescriptor(JetBundle.message("options.idea.attribute.descriptor.builtin.anno...
diff --git a/src/scene/PartyCreationScene.java b/src/scene/PartyCreationScene.java index c7e222e..534566a 100644 --- a/src/scene/PartyCreationScene.java +++ b/src/scene/PartyCreationScene.java @@ -1,581 +1,581 @@ package scene; import java.util.*; import model.Party; import model.Party.Pace; import model.Party...
true
true
public void init(GameContainer container, StateBasedGame game) throws SlickException { super.init(container, game); Font fieldFont = GameDirector.sharedSceneListener().getFontManager().getFont(FontManager.FontID.FIELD); int buttonWidth = (container.getWidth() - PADDING * (NUM_PEOPLE + 1)) / NUM_PEOPLE; com...
public void init(GameContainer container, StateBasedGame game) throws SlickException { super.init(container, game); Font fieldFont = GameDirector.sharedSceneListener().getFontManager().getFont(FontManager.FontID.FIELD); int buttonWidth = (container.getWidth() - PADDING * (NUM_PEOPLE + 1)) / NUM_PEOPLE; com...
diff --git a/src/com/itmill/toolkit/demo/featurebrowser/SelectExample.java b/src/com/itmill/toolkit/demo/featurebrowser/SelectExample.java index 00f567578..819ad6b3b 100644 --- a/src/com/itmill/toolkit/demo/featurebrowser/SelectExample.java +++ b/src/com/itmill/toolkit/demo/featurebrowser/SelectExample.java @@ -1,100 +...
true
true
public SelectExample() { final OrderedLayout main = new OrderedLayout(); main.setMargin(true); setCompositionRoot(main); final OrderedLayout horiz = new OrderedLayout( OrderedLayout.ORIENTATION_HORIZONTAL); main.addComponent(horiz); final Panel single...
public SelectExample() { final OrderedLayout main = new OrderedLayout(); main.setMargin(true); setCompositionRoot(main); final OrderedLayout horiz = new OrderedLayout( OrderedLayout.ORIENTATION_HORIZONTAL); horiz.setWidth("100%"); main.addComponent(ho...
diff --git a/org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/businessprocess/TestresultSummaryBP.java b/org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/businessprocess/TestresultSummaryBP.java index 5b26e46db..377d4a05b 100644 --- a/org.eclipse.jubula.client.core/src/org/eclipse/jubu...
true
true
public void populateTestResultSummary(TestResult result, ITestResultSummary summary) { TestExecution te = TestExecution.getInstance(); ITestSuitePO ts = te.getStartedTestSuite(); IAUTMainPO startedAut = te.getConnectedAut(); if (result.getAutConfigMap() != null) { ...
public void populateTestResultSummary(TestResult result, ITestResultSummary summary) { TestExecution te = TestExecution.getInstance(); ITestSuitePO ts = te.getStartedTestSuite(); IAUTMainPO startedAut = te.getConnectedAut(); if (result.getAutConfigMap() != null && started...
diff --git a/src/hadoop/cascading/tuple/hadoop/collect/HadoopSpillableTupleMap.java b/src/hadoop/cascading/tuple/hadoop/collect/HadoopSpillableTupleMap.java index 15f06261..533fbbad 100644 --- a/src/hadoop/cascading/tuple/hadoop/collect/HadoopSpillableTupleMap.java +++ b/src/hadoop/cascading/tuple/hadoop/collect/Hadoop...
true
true
protected Spillable.SpillStrategy getSpillStrategy() { return new Spillable.SpillStrategy() { int minThreshold = (int) ( getMapThreshold() * .05 ); int current() { return Math.max( minThreshold, Math.min( getInitListThreshold(), getMapThreshold() / size() ) ); } @Override ...
protected Spillable.SpillStrategy getSpillStrategy() { return new Spillable.SpillStrategy() { int minThreshold = (int) ( getMapThreshold() * .05 ); int current() { return Math.max( minThreshold, Math.min( getInitListThreshold(), getMapThreshold() / size() ) ); } @Override ...
diff --git a/ttt2/src/java/capstone/game/GameSession.java b/ttt2/src/java/capstone/game/GameSession.java index 3a4168f..ad4a1be 100644 --- a/ttt2/src/java/capstone/game/GameSession.java +++ b/ttt2/src/java/capstone/game/GameSession.java @@ -1,188 +1,188 @@ package capstone.game; import capstone.player.*; import ...
true
true
public void move(Player player, Coordinates move){ //TODO implement int playerInt; if (player.equals(this.currentPlayer)) { if (GameRules.validMove(currentgame, move)) { if (currentPlayer.equals(player1)) { playerInt...
public void move(Player player, Coordinates move){ //TODO implement int playerInt; if (player.equals(this.currentPlayer)) { if (GameRules.validMove(currentgame, move)) { if (currentPlayer.equals(player1)) { playerInt...
diff --git a/org.eclipse.riena.tests/src/org/eclipse/riena/ui/core/uiprocess/ProgressProviderBridgeTest.java b/org.eclipse.riena.tests/src/org/eclipse/riena/ui/core/uiprocess/ProgressProviderBridgeTest.java index fa4b6cead..656ff64b5 100644 --- a/org.eclipse.riena.tests/src/org/eclipse/riena/ui/core/uiprocess/ProgressP...
true
true
public void testGetRunningUIProcesses() throws Exception { final ProgressProviderBridge bridge = new ProgressProviderBridge() { @Override protected void registerJobChangeListener() { //don�t register observer } }; final SingletonProvider<ProgressProviderBridge> singletonProvider = ReflectionUtils.ge...
public void testGetRunningUIProcesses() throws Exception { final ProgressProviderBridge bridge = new ProgressProviderBridge() { @Override protected void registerJobChangeListener() { //don�t register observer } }; final SingletonProvider<ProgressProviderBridge> singletonProvider = ReflectionUtils.ge...
diff --git a/src/com/redhat/qe/auto/testopia/TestopiaTestNGListener.java b/src/com/redhat/qe/auto/testopia/TestopiaTestNGListener.java index fccf8c5..f6133ec 100644 --- a/src/com/redhat/qe/auto/testopia/TestopiaTestNGListener.java +++ b/src/com/redhat/qe/auto/testopia/TestopiaTestNGListener.java @@ -1,184 +1,184 @@ /*...
true
true
public static void main(String args[]) throws Exception{ setLogConfig(); log.finer("Testing log setting."); Session session = new Session(TESTOPIA_USER, TESTOPIA_PW, new URL(TESTOPIA_URL)); session.login(); /*//tc.makeTestCase(id, 0, 0, true, 271, "This is a test of the testy test", 0); Map<String, Object>...
public static void main(String args[]) throws Exception{ setLogConfig(); log.finer("Testing log setting."); Session session = new Session(TESTOPIA_USER, TESTOPIA_PW, new URL(TESTOPIA_URL)); session.login(); /*//tc.makeTestCase(id, 0, 0, true, 271, "This is a test of the testy test", 0); Map<String, Object>...
diff --git a/src/main/java/org/elasticsearch/threadpool/ThreadPoolStats.java b/src/main/java/org/elasticsearch/threadpool/ThreadPoolStats.java index bdb288b3644..2dcf9c89186 100644 --- a/src/main/java/org/elasticsearch/threadpool/ThreadPoolStats.java +++ b/src/main/java/org/elasticsearch/threadpool/ThreadPoolStats.java...
true
true
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(name, XContentBuilder.FieldCaseConversion.NONE); if (threads != -1) { builder.field(Fields.THREADS, threads); } if (queue != -1) { ...
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(name, XContentBuilder.FieldCaseConversion.NONE); if (threads != -1) { builder.field(Fields.THREADS, threads); } if (queue != -1) { ...
diff --git a/src/java/org/apache/hadoop/hbase/master/ProcessServerShutdown.java b/src/java/org/apache/hadoop/hbase/master/ProcessServerShutdown.java index 5eadb41a9..084cc26b7 100644 --- a/src/java/org/apache/hadoop/hbase/master/ProcessServerShutdown.java +++ b/src/java/org/apache/hadoop/hbase/master/ProcessServerShutd...
true
true
protected void scanMetaRegion(HRegionInterface server, long scannerId, byte [] regionName) throws IOException { List<ToDoEntry> toDoList = new ArrayList<ToDoEntry>(); Set<HRegionInfo> regions = new HashSet<HRegionInfo>(); List<byte []> emptyRows = new ArrayList<byte []>(); try { while (tr...
protected void scanMetaRegion(HRegionInterface server, long scannerId, byte [] regionName) throws IOException { List<ToDoEntry> toDoList = new ArrayList<ToDoEntry>(); Set<HRegionInfo> regions = new HashSet<HRegionInfo>(); List<byte []> emptyRows = new ArrayList<byte []>(); try { while (tr...
diff --git a/bundles/org.eclipse.wst.xml.core/src-catalog/org/eclipse/wst/xml/core/internal/catalog/CatalogReader.java b/bundles/org.eclipse.wst.xml.core/src-catalog/org/eclipse/wst/xml/core/internal/catalog/CatalogReader.java index 719cc3a60..b875041b3 100644 --- a/bundles/org.eclipse.wst.xml.core/src-catalog/org/ecli...
true
true
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { // set base String base = attributes.getValue("", OASISCatalogConstants.ATTR_BASE); if (base != null && !base.equals("")) { baseURIStack.push(base); } ...
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { // set base String base = attributes.getValue("", OASISCatalogConstants.ATTR_BASE); if (base != null && !base.equals("")) { baseURIStack.push(base); } ...
diff --git a/lorian/graph/fileio/GraphFileReader.java b/lorian/graph/fileio/GraphFileReader.java index 9e24c87..f0d01bc 100644 --- a/lorian/graph/fileio/GraphFileReader.java +++ b/lorian/graph/fileio/GraphFileReader.java @@ -1,421 +1,425 @@ package lorian.graph.fileio; import java.awt.Color; import java.io.DataInp...
true
true
private String reconstructFactor(FactorData fd) { String s = ""; switch(fd.type) { case CONSTANT: { if(Math.rint(fd.value) == fd.value) s += (int) Math.rint(fd.value); else s += fd.value; break; } case ARGUMENT: { s += "" + argumentChar + '^'; if(fd.exponentfunc...
private String reconstructFactor(FactorData fd) { String s = ""; switch(fd.type) { case CONSTANT: { if(Math.rint(fd.value) == fd.value) s += (int) Math.rint(fd.value); else s += fd.value; break; } case ARGUMENT: { s += "" + argumentChar + '^'; if(fd.exponentfunc...
diff --git a/SWADroid/src/es/ugr/swad/swadroid/modules/notifications/NotificationsCursorAdapter.java b/SWADroid/src/es/ugr/swad/swadroid/modules/notifications/NotificationsCursorAdapter.java index 8e89505a..dab4d363 100644 --- a/SWADroid/src/es/ugr/swad/swadroid/modules/notifications/NotificationsCursorAdapter.java +++...
true
true
public void bindView(View view, Context context, Cursor cursor) { final Long notifCode = cursor.getLong(cursor.getColumnIndex("notifCode")); final Long eventCode = cursor.getLong(cursor.getColumnIndex("eventCode")); final String userPhoto = cursor.getString(cursor.getColumnIndex("userPhoto")...
public void bindView(View view, Context context, Cursor cursor) { final Long notifCode = cursor.getLong(cursor.getColumnIndex("notifCode")); final Long eventCode = cursor.getLong(cursor.getColumnIndex("eventCode")); final String userPhoto = cursor.getString(cursor.getColumnIndex("userPhoto")...
diff --git a/src/org/red5/server/stream/consumer/FileConsumer.java b/src/org/red5/server/stream/consumer/FileConsumer.java index b46e25e9..94af0881 100644 --- a/src/org/red5/server/stream/consumer/FileConsumer.java +++ b/src/org/red5/server/stream/consumer/FileConsumer.java @@ -1,171 +1,171 @@ package org.red5.server....
true
true
public void pushMessage(IPipe pipe, IMessage message) { if (!(message instanceof RTMPMessage)) return; if (writer == null) { try { init(); } catch (Exception e) { log.error("error init file consumer", e); } timestampDelta = ((RTMPMessage) message).getBody().getTimestamp(); } RTMPMessage rtm...
public void pushMessage(IPipe pipe, IMessage message) { if (!(message instanceof RTMPMessage)) return; if (writer == null) { try { init(); } catch (Exception e) { log.error("error init file consumer", e); } timestampDelta = ((RTMPMessage) message).getBody().getTimestamp(); } RTMPMessage rtm...
diff --git a/src/main/java/rigger/agent/RiggerAgent.java b/src/main/java/rigger/agent/RiggerAgent.java index 905fff4..a0b4211 100644 --- a/src/main/java/rigger/agent/RiggerAgent.java +++ b/src/main/java/rigger/agent/RiggerAgent.java @@ -1,83 +1,83 @@ /** * A Maven plugin to jury rig java class files with the Apache...
true
true
public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException { try { ClassParser cp = new ClassParser( new ByteArrayInputSt...
public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException { try { ClassParser cp = new ClassParser( new ByteArrayInputSt...
diff --git a/hadoop/src/edu/ub/bda/hadoop/jobs/DailyGet.java b/hadoop/src/edu/ub/bda/hadoop/jobs/DailyGet.java index 5af26e6..67102ab 100644 --- a/hadoop/src/edu/ub/bda/hadoop/jobs/DailyGet.java +++ b/hadoop/src/edu/ub/bda/hadoop/jobs/DailyGet.java @@ -1,313 +1,312 @@ package edu.ub.bda.hadoop.jobs; /** * This is...
true
true
public static void main(String[] args) { try { String year = null, month = null, day = null, hour = null, minute = null; if ( dev ) { year = "2013"; month = "11"; day = "05"; hour = "01";...
public static void main(String[] args) { try { String year = null, month = null, day = null, hour = null, minute = null; if ( dev ) { year = "2013"; month = "11"; day = "05"; hour = "01";...
diff --git a/tools/sos-boot/src/main/java/sorcer/boot/ServiceStarter.java b/tools/sos-boot/src/main/java/sorcer/boot/ServiceStarter.java index 734c4ac3..3da8698b 100644 --- a/tools/sos-boot/src/main/java/sorcer/boot/ServiceStarter.java +++ b/tools/sos-boot/src/main/java/sorcer/boot/ServiceStarter.java @@ -1,225 +1,225 ...
true
true
public void start(Collection<String> configs) throws Exception { List<String> riverServices = new LinkedList<String>(); List<File> cfgJars = new LinkedList<File>(); List<File> opstrings = new LinkedList<File>(); for (String path : configs) { File file = null; ...
public void start(Collection<String> configs) throws Exception { List<String> riverServices = new LinkedList<String>(); List<File> cfgJars = new LinkedList<File>(); List<File> opstrings = new LinkedList<File>(); for (String path : configs) { File file = null; ...
diff --git a/source/nl.esciencecenter.ptk.ui/src/nl/esciencecenter/ptk/ui/icons/IconProvider.java b/source/nl.esciencecenter.ptk.ui/src/nl/esciencecenter/ptk/ui/icons/IconProvider.java index a6256f67..e7227743 100644 --- a/source/nl.esciencecenter.ptk.ui/src/nl/esciencecenter/ptk/ui/icons/IconProvider.java +++ b/source...
true
true
public Icon createDefaultIcon(String iconUrl, boolean isComposite, boolean isLink, String mimetype, int size, boolean greyOut, boolean focus) { logger.debugPrintf("createDefaultIcon [%d,greyOut=%b,focus=%b,isComposite=%b,isLink=%b]\n", size, greyOut, isComposite, isLink); ...
public Icon createDefaultIcon(String iconUrl, boolean isComposite, boolean isLink, String mimetype, int size, boolean greyOut, boolean focus) { logger.debugPrintf("createDefaultIcon [size=%d, greyOut=%b, focus=%b, isComposite=%b, isLink=%b]\n", size, greyOut,focus, isComposi...
diff --git a/GAE/src/com/gallatinsystems/image/ImageUtils.java b/GAE/src/com/gallatinsystems/image/ImageUtils.java index 86e62b1b5..5620de4d6 100644 --- a/GAE/src/com/gallatinsystems/image/ImageUtils.java +++ b/GAE/src/com/gallatinsystems/image/ImageUtils.java @@ -1,44 +1,46 @@ package com.gallatinsystems.image; ...
true
true
public static String[] parseImageParts(String url) { String[] parts = new String[3]; url = url.replace("http://", ""); url = url.substring(0, url.indexOf("?")); String[] items = url.split("/"); if (items.length == 3) { // no country in path parts[0]=("http://:" + items[0] + "/"); parts[1]=(items[1] ...
public static String[] parseImageParts(String url) { String[] parts = new String[3]; url = url.replace("http://", ""); if(url.contains("?")){ url = url.substring(0, url.indexOf("?")); } String[] items = url.split("/"); if (items.length == 3) { // no country in path parts[0]=("http://:" + items[0] ...
diff --git a/ProbeLib/source/probes/CCVoltCurrent.java b/ProbeLib/source/probes/CCVoltCurrent.java index d73b7da..c2565e3 100644 --- a/ProbeLib/source/probes/CCVoltCurrent.java +++ b/ProbeLib/source/probes/CCVoltCurrent.java @@ -1,237 +1,237 @@ package org.concord.waba.extra.probware.probs; import org.concord.waba.ex...
false
true
public boolean dataArrived(DataEvent e) { dEvent.type = e.type; int nOffset = e.getDataOffset(); int ndata = e.getNumbSamples()*e.dataDesc.getChPerSample(); float t0 = e.getTime(); float[] dataEvent = e.getData(); if(calibrationListener != null){ switch(outputMode){ case CURRENT_OUT: d...
public boolean dataArrived(DataEvent e) { dEvent.type = e.type; int nOffset = e.getDataOffset(); int ndata = e.getNumbSamples()*e.dataDesc.getChPerSample(); float t0 = e.getTime(); float[] dataEvent = e.getData(); if(calibrationListener != null){ switch(outputMode){ case CURRENT_OUT: d...
diff --git a/TASServer.java b/TASServer.java index e551fb5..2135c5a 100644 --- a/TASServer.java +++ b/TASServer.java @@ -1,3297 +1,3301 @@ /* * Created on 2005.6.16 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates * * * ---- CHANG...
true
true
public static boolean tryToExecCommand(String command, Client client) { if (command.trim().equals("")) return false; String[] commands = command.split(" "); commands[0] = commands[0].toUpperCase(); if (DEBUG > 1) if (client.account.accessLevel() != Account.NIL_ACCESS) System.out.println("[<-" + client.a...
public static boolean tryToExecCommand(String command, Client client) { if (command.trim().equals("")) return false; String[] commands = command.split(" "); commands[0] = commands[0].toUpperCase(); if (DEBUG > 1) if (client.account.accessLevel() != Account.NIL_ACCESS) System.out.println("[<-" + client.a...
diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/HiddenFieldCheck.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/HiddenFieldCheck.java index b7b80b22..838025df 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/HiddenFieldCheck.java +++ b/src/checkstyle/com/puppycrawl/too...
false
true
private void processVariable(DetailAST aAST) { if (!ScopeUtils.inInterfaceBlock(aAST)) { if (ScopeUtils.inCodeBlock(aAST)) { //local variable or parameter. Does it shadow a field? final DetailAST nameAST = aAST.findFirstToken(TokenTypes.IDENT); ...
private void processVariable(DetailAST aAST) { if (!ScopeUtils.inInterfaceBlock(aAST)) { if (ScopeUtils.inCodeBlock(aAST)) { //local variable or parameter. Does it shadow a field? final DetailAST nameAST = aAST.findFirstToken(TokenTypes.IDENT); ...
diff --git a/runtime/src/com/sun/xml/bind/v2/model/impl/ElementInfoImpl.java b/runtime/src/com/sun/xml/bind/v2/model/impl/ElementInfoImpl.java index 0b28bd2c..018d6646 100644 --- a/runtime/src/com/sun/xml/bind/v2/model/impl/ElementInfoImpl.java +++ b/runtime/src/com/sun/xml/bind/v2/model/impl/ElementInfoImpl.java @@ -1...
true
true
public ElementInfoImpl(ModelBuilder<TypeT,ClassDeclT,FieldT,MethodT> builder, RegistryInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> registry, MethodT m ) throws IllegalAnnotationException { super(builder,registry); this.method = m; anno = reader().getMethodAnnotation(...
public ElementInfoImpl(ModelBuilder<TypeT,ClassDeclT,FieldT,MethodT> builder, RegistryInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> registry, MethodT m ) throws IllegalAnnotationException { super(builder,registry); this.method = m; anno = reader().getMethodAnnotation(...
diff --git a/patient-tools/src/main/java/edu/toronto/cs/cidb/tools/FormSection.java b/patient-tools/src/main/java/edu/toronto/cs/cidb/tools/FormSection.java index bc501d1ac..a4b521104 100644 --- a/patient-tools/src/main/java/edu/toronto/cs/cidb/tools/FormSection.java +++ b/patient-tools/src/main/java/edu/toronto/cs/cid...
false
true
public String display(DisplayMode mode, String fieldNames[]) { String displayedElements = super.display(mode, fieldNames); String customValueDisplay = this.customElements.display(mode, fieldNames); if (!DisplayMode.Edit.equals(mode) && StringUtils.isBlank(displayedElements) && StringUtils.isBlank(cus...
public String display(DisplayMode mode, String fieldNames[]) { String displayedElements = super.display(mode, fieldNames); String customValueDisplay = this.customElements.display(mode, fieldNames); if (!DisplayMode.Edit.equals(mode) && StringUtils.isBlank(displayedElements) && StringUtils.isBlank(cus...
diff --git a/src/org/apache/xerces/jaxp/SAXParserImpl.java b/src/org/apache/xerces/jaxp/SAXParserImpl.java index a8c7d4770..ec746e45e 100644 --- a/src/org/apache/xerces/jaxp/SAXParserImpl.java +++ b/src/org/apache/xerces/jaxp/SAXParserImpl.java @@ -1,198 +1,199 @@ /* * $Id$ * * The Apache Software License, Versi...
true
true
SAXParserImpl(SAXParserFactory spf, Hashtable features) throws SAXException { xmlReader = XMLReaderFactory.createXMLReader(DEFAULT_PARSER_NAME); // Validation validating = spf.isValidating(); String validation = "http://xml.org/sax/features/validation"; // If va...
SAXParserImpl(SAXParserFactory spf, Hashtable features) throws SAXException { xmlReader = XMLReaderFactory.createXMLReader(DEFAULT_PARSER_NAME); // Validation validating = spf.isValidating(); String validation = "http://xml.org/sax/features/validation"; // If va...
diff --git a/shell/impl/src/main/java/org/jboss/forge/addon/shell/aesh/completion/ForgeCompletion.java b/shell/impl/src/main/java/org/jboss/forge/addon/shell/aesh/completion/ForgeCompletion.java index b6ed8eaf2..139f4d886 100644 --- a/shell/impl/src/main/java/org/jboss/forge/addon/shell/aesh/completion/ForgeCompletion....
false
true
public void complete(CompleteOperation completeOperation) { String line = completeOperation.getBuffer(); // TODO: ConsoleOperation is not set ShellContext shellContext = shell.newShellContext(null); final AbstractShellInteraction cmd = shell.findCommand(shellContext, line); if (cmd =...
public void complete(CompleteOperation completeOperation) { String line = completeOperation.getBuffer(); // TODO: ConsoleOperation is not set ShellContext shellContext = shell.newShellContext(null); final AbstractShellInteraction cmd = shell.findCommand(shellContext, line); if (cmd =...
diff --git a/src/net/blogjava/aquarium/digitalclock/UpdateService.java b/src/net/blogjava/aquarium/digitalclock/UpdateService.java index a0dbd1e..f0f8281 100644 --- a/src/net/blogjava/aquarium/digitalclock/UpdateService.java +++ b/src/net/blogjava/aquarium/digitalclock/UpdateService.java @@ -1,199 +1,199 @@ package ne...
false
true
private static Bitmap createDateTimeBitmap(Context context) { Resources resources = context.getResources(); final float timeFontSize = resources.getDimension(R.dimen.time_font_size); final float timePosY = resources.getDimension(R.dimen.time_pos_y); final float dateFontSize = resources.getDimension(R.dim...
private static Bitmap createDateTimeBitmap(Context context) { Resources resources = context.getResources(); final float timeFontSize = resources.getDimension(R.dimen.time_font_size); final float timePosY = resources.getDimension(R.dimen.time_pos_y); final float dateFontSize = resources.getDimension(R.dim...
diff --git a/servers/jain-slee/core/transaction/src/main/java/org/mobicents/slee/runtime/transaction/SleeTransactionImpl.java b/servers/jain-slee/core/transaction/src/main/java/org/mobicents/slee/runtime/transaction/SleeTransactionImpl.java index f93d7041c..9c4c02356 100644 --- a/servers/jain-slee/core/transaction/src/...
true
true
private void beforeAsyncOperation() throws IllegalStateException, SecurityException { try { int status = transaction.getStatus(); if (status != Status.STATUS_ACTIVE && status != Status.STATUS_MARKED_ROLLBACK) { throw new IllegalStateException( "There is no active tx, tx is in state: " + statu...
private void beforeAsyncOperation() throws IllegalStateException, SecurityException { try { int status = transaction.getStatus(); if (asyncOperationInitiated || (status != Status.STATUS_ACTIVE && status != Status.STATUS_MARKED_ROLLBACK)) { throw new IllegalStateException( "There is no active ...
diff --git a/dbmsgsrc/src/org/riotfamily/dbmsgsrc/riot/ImportMessageEntriesCommand.java b/dbmsgsrc/src/org/riotfamily/dbmsgsrc/riot/ImportMessageEntriesCommand.java index 7a2af0877..cd46feed7 100644 --- a/dbmsgsrc/src/org/riotfamily/dbmsgsrc/riot/ImportMessageEntriesCommand.java +++ b/dbmsgsrc/src/org/riotfamily/dbmsgs...
true
true
private void updateMessages(byte[] data, boolean addNewMessages) throws IOException { HSSFWorkbook wb = new HSSFWorkbook(new ByteArrayInputStream(data)); HSSFSheet sheet = wb.getSheet("Translations"); if (isValid(sheet)) { for (int i = 1; i < sheet.getPhysicalNumberOfRows(); i++) { HSSFRow row = sheet....
private void updateMessages(byte[] data, boolean addNewMessages) throws IOException { HSSFWorkbook wb = new HSSFWorkbook(new ByteArrayInputStream(data)); HSSFSheet sheet = wb.getSheet("Translations"); if (isValid(sheet)) { for (int i = 1; i < sheet.getPhysicalNumberOfRows(); i++) { HSSFRow row = sheet....
diff --git a/JEAffections/src/org/andbible/modules/jeaffections/InsertSections.java b/JEAffections/src/org/andbible/modules/jeaffections/InsertSections.java index 36c2d2b..1b53855 100644 --- a/JEAffections/src/org/andbible/modules/jeaffections/InsertSections.java +++ b/JEAffections/src/org/andbible/modules/jeaffections...
true
true
public String filter(String in) { Matcher m = partHeadingPattern.matcher(in); StringBuffer retVal = new StringBuffer(); while (m.find()) { String section = m.group(1); long sectionNo = Roman.toLong(section); if (sectionNo<=lastSection) { partNumber++; } lastSection = sectionNo; String os...
public String filter(String in) { Matcher m = partHeadingPattern.matcher(in); StringBuffer retVal = new StringBuffer(); while (m.find()) { String section = m.group(1); long sectionNo = Roman.toLong(section); if (sectionNo<=lastSection) { partNumber++; } lastSection = sectionNo; String os...
diff --git a/src/master/src/org/drftpd/vfs/FileHandle.java b/src/master/src/org/drftpd/vfs/FileHandle.java index 20b568fd..bd47e67e 100644 --- a/src/master/src/org/drftpd/vfs/FileHandle.java +++ b/src/master/src/org/drftpd/vfs/FileHandle.java @@ -1,282 +1,282 @@ /* * This file is part of DrFTPD, Distributed FTP Daem...
true
true
public long getCheckSum() throws NoAvailableSlaveException, FileNotFoundException { long checksum = getInode().getChecksum(); if (checksum == 0L) { while (true) { RemoteSlave rslave = getASlaveForFunction(); try { checksum = rslave.getCheckSumForPath(getPath()); getInode().setChecksum(check...
public long getCheckSum() throws NoAvailableSlaveException, FileNotFoundException { long checksum = getInode().getChecksum(); if (checksum == 0L && getInode().getSize() != 0L) { while (true) { RemoteSlave rslave = getASlaveForFunction(); try { checksum = rslave.getCheckSumForPath(getPath()); ...
diff --git a/cyklotron-core/src/main/java/net/cyklotron/cms/files/FilesTool.java b/cyklotron-core/src/main/java/net/cyklotron/cms/files/FilesTool.java index 1dfea08ef..491359bf3 100644 --- a/cyklotron-core/src/main/java/net/cyklotron/cms/files/FilesTool.java +++ b/cyklotron-core/src/main/java/net/cyklotron/cms/files/Fi...
true
true
public String getLink(Resource resource, boolean absolute) throws FilesException { HttpContext httpContext = HttpContext.getHttpContext(context); if(!(resource instanceof FileResource)) { throw new FilesException("Resource is not the instance of cms.files.file class")...
public String getLink(Resource resource, boolean absolute) throws FilesException { HttpContext httpContext = HttpContext.getHttpContext(context); if(!(resource instanceof FileResource)) { throw new FilesException("Resource is not the instance of cms.files.file class")...
diff --git a/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/services/AbstractCloudService.java b/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/services/AbstractCloudService.java index 9cc2d749..8a0391ed 100644 --- a/src/main/java/org/cloudifysource/quality/iTests/test/...
false
true
public void teardownCloud() throws Exception { String[] restUrls = getRestUrls(); if (restUrls != null) { for(String url : restUrls){ LogUtils.log("rest url: " + url); } } Set<String> privateUrls = new HashSet<String>(); if (restUrl...
public void teardownCloud() throws Exception { String[] restUrls = getRestUrls(); if (restUrls != null) { for(String url : restUrls){ LogUtils.log("rest url: " + url); } } Set<String> privateUrls = new HashSet<String>(); if (restUrl...
diff --git a/examples/myfaces20-example/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/JSFUtilJava.java b/examples/myfaces20-example/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/JSFUtilJava.java index f81eacb8..a8340b95 100644 --- a/examples/myfaces20-example/src/main/webapp/WEB-INF/...
true
true
public static Object resolveVariable(String beanName) { Object facesContext = FacesContext.getCurrentInstance(); Object elContext = executeMethod(facesContext, "getELContext"); Object elResolver = executeMethod(elContext, "getELResolver"); /* if you want to enable this th...
public static Object resolveVariable(String beanName) { Object facesContext = FacesContext.getCurrentInstance(); Object elContext = executeMethod(facesContext, "getELContext"); Object elResolver = executeMethod(elContext, "getELResolver"); /* if you want to enable this th...
diff --git a/org_api_demo/src/org/ntpsync/apidemo/BaseActivity.java b/org_api_demo/src/org/ntpsync/apidemo/BaseActivity.java index ce24ed3..5b43fdb 100644 --- a/org_api_demo/src/org/ntpsync/apidemo/BaseActivity.java +++ b/org_api_demo/src/org/ntpsync/apidemo/BaseActivity.java @@ -1,275 +1,275 @@ /* * Copyright (C) 2...
false
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mActivity = this; // load preferences from xml addPreferencesFromResource(R.xml.base_preference); // find preferences mGetTime = (Preference) findPreference("get_time_key"); ...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mActivity = this; // load preferences from xml addPreferencesFromResource(R.xml.base_preference); // find preferences mGetTime = (Preference) findPreference("get_time_key"); ...
diff --git a/src/ch/amana/android/cputuner/view/activity/TriggersListActivity.java b/src/ch/amana/android/cputuner/view/activity/TriggersListActivity.java index ab0b331d..cd537a77 100644 --- a/src/ch/amana/android/cputuner/view/activity/TriggersListActivity.java +++ b/src/ch/amana/android/cputuner/view/activity/Trigger...
true
true
protected void onResume() { super.onResume(); SimpleCursorAdapter adapter; checkCursor.requery(); if (checkCursor.getCount() > 0) { adapter = new SimpleCursorAdapter(this, R.layout.trigger_item, displayCursor, new String[] { DB.Trigger.NAME_TRIGGER_NAME, DB.Trigger.NAME_BATTERY_LEVEL, DB.Trigger.NAME_B...
protected void onResume() { super.onResume(); SimpleCursorAdapter adapter; checkCursor.requery(); if (checkCursor.getCount() > 0) { adapter = new SimpleCursorAdapter(this, R.layout.trigger_item, displayCursor, new String[] { DB.Trigger.NAME_TRIGGER_NAME, DB.Trigger.NAME_BATTERY_LEVEL, DB.Trigger.NAME_B...
diff --git a/spring-batch-samples/src/test/java/org/springframework/batch/sample/TaskExecutorLauncher.java b/spring-batch-samples/src/test/java/org/springframework/batch/sample/TaskExecutorLauncher.java index 39e632388..bdbe8b96a 100644 --- a/spring-batch-samples/src/test/java/org/springframework/batch/sample/TaskExecu...
true
true
public static void main(String[] args) throws Exception { // Paths to individual job configurations. Each one must include the // step scope and the jobConfigurationRegistryBeanPostProcessor. final String[] paths = new String[] { "jobs/adhocLoopJob.xml", "jobs/footballJob.xml" }; // The simple execution ...
public static void main(String[] args) throws Exception { // Paths to individual job configurations. Each one must include the // step scope and the jobConfigurationRegistryBeanPostProcessor. final String[] paths = new String[] { "jobs/adhocLoopJob.xml", "jobs/footballJob.xml" }; // The simple execution ...
diff --git a/wicket-select2/src/main/java/com/vaynberg/wicket/select2/AbstractSelect2Choice.java b/wicket-select2/src/main/java/com/vaynberg/wicket/select2/AbstractSelect2Choice.java index bbe723f..d99037b 100755 --- a/wicket-select2/src/main/java/com/vaynberg/wicket/select2/AbstractSelect2Choice.java +++ b/wicket-sele...
true
true
public void onResourceRequested() { // this is the callback that retrieves matching choices used to populate the dropdown RequestCycle rc = RequestCycle.get(); Request request = rc.getRequest(); IRequestParameters params = request.getRequestParameters(); // retrieve choices matching the search term String...
public void onResourceRequested() { // this is the callback that retrieves matching choices used to populate the dropdown RequestCycle rc = RequestCycle.get(); Request request = rc.getRequest(); IRequestParameters params = request.getRequestParameters(); // retrieve choices matching the search term String...
diff --git a/Tetris/src/com/yinong/tetris/model/Block.java b/Tetris/src/com/yinong/tetris/model/Block.java index 6ccc861..11ad526 100644 --- a/Tetris/src/com/yinong/tetris/model/Block.java +++ b/Tetris/src/com/yinong/tetris/model/Block.java @@ -1,191 +1,191 @@ package com.yinong.tetris.model; import java.util.Rando...
true
true
public Point[] getSpaceNeeded(int direction) { // Rotation if( direction == ROTATE_RIGHT) { return getSpaces(orientation+1>=4?0:orientation+1); } Point[] spaces = getSpacesUsed(); // move down add Y if (direction == DOWN) { for (int i = 1; i < spaces.length; i++) { spaces[i].y++; } } e...
public Point[] getSpaceNeeded(int direction) { // Rotation if( direction == ROTATE_RIGHT) { return getSpaces(orientation+1>=4?0:orientation+1); } Point[] spaces = getSpacesUsed(); // move down add Y if (direction == DOWN) { for (int i = 0; i < spaces.length; i++) { spaces[i].y++; } } e...
diff --git a/frost-wot/source/frost/Frost.java b/frost-wot/source/frost/Frost.java index 88935409..93426229 100644 --- a/frost-wot/source/frost/Frost.java +++ b/frost-wot/source/frost/Frost.java @@ -1,338 +1,338 @@ /* Frost.java / Frost Copyright (C) 2001 Frost Project <jtcfrost.sourceforge.net> This progr...
false
true
private void initializeLookAndFeel() { LookAndFeel laf = null; try { // use cmd line setting if (lookAndFeel != null) { try { laf = (LookAndFeel) Class.forName(lookAndFeel).newInstance(); } catch(Throwable t) {} ...
private void initializeLookAndFeel() { LookAndFeel laf = null; try { // use cmd line setting if (lookAndFeel != null) { try { laf = (LookAndFeel) Class.forName(lookAndFeel).newInstance(); } catch(Throwable t) {t.printStackTr...
diff --git a/CubicRecorder/src/main/java/org/cubictest/recorder/JSONElementConverter.java b/CubicRecorder/src/main/java/org/cubictest/recorder/JSONElementConverter.java index 6d10aa42..7ce511f9 100644 --- a/CubicRecorder/src/main/java/org/cubictest/recorder/JSONElementConverter.java +++ b/CubicRecorder/src/main/java/or...
true
true
public PageElement createElementFromJson(JSONObject element) { try { JSONObject properties = getJSONObject(element, "properties"); if(pageElements.get(getString(properties, "cubicId")) != null) { return pageElements.get(getString(properties, "cubicId")); } PageElement pe = null; //creatin...
public PageElement createElementFromJson(JSONObject element) { try { JSONObject properties = getJSONObject(element, "properties"); if(pageElements.get(getString(properties, "cubicId")) != null) { return pageElements.get(getString(properties, "cubicId")); } PageElement pe = null; //creatin...
diff --git a/java/src/eu/semaine/components/dialogue/interpreters/TurnTakingInterpreter.java b/java/src/eu/semaine/components/dialogue/interpreters/TurnTakingInterpreter.java index 76ec5d81..491e649a 100644 --- a/java/src/eu/semaine/components/dialogue/interpreters/TurnTakingInterpreter.java +++ b/java/src/eu/semaine/c...
true
true
public int getSpeakingIntentionValue() { int speakingIntention = 0; /* The components of the speaking intention value */ int user_silence_time_value = 0; int emotion_value = 0; int agent_silence_time_value = 0; /* silence_time_value */ if( userSpeakingState == SILENT ) { double time = ((double)...
public int getSpeakingIntentionValue() { int speakingIntention = 0; /* The components of the speaking intention value */ int user_silence_time_value = 0; int emotion_value = 0; int agent_silence_time_value = 0; /* silence_time_value */ if( userSpeakingState == SILENT ) { double time = ((double)...
diff --git a/webmacro/src/org/webmacro/directive/IfDirective.java b/webmacro/src/org/webmacro/directive/IfDirective.java index 30182114..479ff654 100755 --- a/webmacro/src/org/webmacro/directive/IfDirective.java +++ b/webmacro/src/org/webmacro/directive/IfDirective.java @@ -1,168 +1,168 @@ package org.webmacro.directi...
false
true
public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { Object c = builder.getArg(IF_COND, bc); boolean cMacro = (c instanceof Macro); int elseifCount; DirectiveArgs elseArgs; DirectiveArgs[] elseifArgs = null; // If condition is static...
public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { Object c = builder.getArg(IF_COND, bc); boolean cMacro = (c instanceof Macro); int elseifCount; DirectiveArgs elseArgs; DirectiveArgs[] elseifArgs = null; // If condition is static...
diff --git a/webinos/common/android/app/src/org/webinos/app/anode/AnodeReceiver.java b/webinos/common/android/app/src/org/webinos/app/anode/AnodeReceiver.java index 3dbe8858..50fc38fc 100644 --- a/webinos/common/android/app/src/org/webinos/app/anode/AnodeReceiver.java +++ b/webinos/common/android/app/src/org/webinos/ap...
false
true
public void onReceive(Context ctx, Intent intent) { /* get the system options */ String action = intent.getAction(); if(ACTION_STOPALL.equals(action)) { if(Runtime.isInitialised()) { for(Isolate isolate : AnodeService.getAll()) stopInstance(isolate); } return; } if(ACTION_STOP.equals(action...
public void onReceive(Context ctx, Intent intent) { /* get the system options */ String action = intent.getAction(); if(ACTION_STOPALL.equals(action)) { if(Runtime.isInitialised()) { for(Isolate isolate : AnodeService.getAll()) stopInstance(isolate); } /* temporary ... kill the process */ Sy...
diff --git a/core/PImage.java b/core/PImage.java index 00221d79f..eee2daa9f 100644 --- a/core/PImage.java +++ b/core/PImage.java @@ -1,1664 +1,1664 @@ /* -*- mode: jde; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* Part of the Processing project - http://processing.org Copyright (c) 2004-05 Ben Fry and...
true
true
private void blit_resize(PImage img, int srcX1, int srcY1, int srcX2, int srcY2, int[] destPixels, int screenW, int screenH, int destX1, int destY1, int destX2, int destY2, int mode) { if (srcX1 < 0) srcX1 ...
private void blit_resize(PImage img, int srcX1, int srcY1, int srcX2, int srcY2, int[] destPixels, int screenW, int screenH, int destX1, int destY1, int destX2, int destY2, int mode) { if (srcX1 < 0) srcX1 ...
diff --git a/src/savant/view/swing/BookmarkSheet.java b/src/savant/view/swing/BookmarkSheet.java index 27cfa767..ca7dbd52 100644 --- a/src/savant/view/swing/BookmarkSheet.java +++ b/src/savant/view/swing/BookmarkSheet.java @@ -1,401 +1,403 @@ /* * Copyright 2009-2010 University of Toronto * * Licensed unde...
false
true
public BookmarkSheet(Savant parent, Container c) { JPanel subpanel = new JPanel(); // set the layout of the data sheet c.setLayout(new BorderLayout()); subpanel.setLayout(new BoxLayout(subpanel, BoxLayout.Y_AXIS)); /** * Create a toolbar. */ JPan...
public BookmarkSheet(Savant parent, Container c) { JPanel subpanel = new JPanel(); // set the layout of the data sheet c.setLayout(new BorderLayout()); subpanel.setLayout(new BoxLayout(subpanel, BoxLayout.Y_AXIS)); /** * Create a toolbar. */ JPan...
diff --git a/src/com/dmdirc/addons/ui_swing/dialogs/aliases/AliasManagerDialog.java b/src/com/dmdirc/addons/ui_swing/dialogs/aliases/AliasManagerDialog.java index 6b047de6..3e60d5d4 100644 --- a/src/com/dmdirc/addons/ui_swing/dialogs/aliases/AliasManagerDialog.java +++ b/src/com/dmdirc/addons/ui_swing/dialogs/aliases/A...
false
true
public void actionPerformed(final ActionEvent e) { if (e.getSource() == deleteButton) { delete(); } else if (e.getSource() == addButton) { add(); } else if (e.getSource() == getCancelButton()) { dispose(); } else if (e.getSource() == getOkButton())...
public void actionPerformed(final ActionEvent e) { if (e.getSource() == deleteButton) { delete(); } else if (e.getSource() == addButton) { add(); } else if (e.getSource() == getCancelButton()) { dispose(); } else if (e.getSource() == getOkButton())...
diff --git a/choco-parser/src/main/java/parser/flatzinc/ast/constraints/global/CountEqBuilder.java b/choco-parser/src/main/java/parser/flatzinc/ast/constraints/global/CountEqBuilder.java index e29d92158..b6b7173d9 100644 --- a/choco-parser/src/main/java/parser/flatzinc/ast/constraints/global/CountEqBuilder.java +++ b/c...
false
true
public Constraint[] build(Solver solver, String name, List<Expression> exps, List<EAnnotation> annotations, Datas datas) { IntVar[] x = exps.get(0).toIntVarArray(solver); IntVar c = exps.get(2).intVarValue(solver); if (exps.get(1) instanceof EInt) { int y = exps.get(1).intValue()...
public Constraint[] build(Solver solver, String name, List<Expression> exps, List<EAnnotation> annotations, Datas datas) { IntVar[] x = exps.get(0).toIntVarArray(solver); IntVar c = exps.get(2).intVarValue(solver); if (exps.get(1) instanceof EInt) { int y = exps.get(1).intValue(); ...
diff --git a/src/robot/Intake.java b/src/robot/Intake.java index aca1d6e..7b7c574 100644 --- a/src/robot/Intake.java +++ b/src/robot/Intake.java @@ -1,138 +1,145 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package robot; import edu.wpi.first.wpilibj.D...
false
true
public void doAction() { double beltSpeed = 0; double unobtaniumSpeed = 0; //Set the mode of the system, based on our button input if (joystick.getRawButton(3)) { //Intake Button if (intakeMode == 1) { //Mode is at intake, ergo stop. ...
public void doAction() { double beltSpeed = 0; double unobtaniumSpeed = 0; //Set the mode of the system, based on our button input if (joystick.getRawButton(3)) { //Intake Button if (intakeMode == 1) { //Mode is at intake, ergo stop. ...
diff --git a/editor/server/src/org/oryxeditor/server/XFormsExportServlet.java b/editor/server/src/org/oryxeditor/server/XFormsExportServlet.java index 2ee22d94..ec3a5cb7 100644 --- a/editor/server/src/org/oryxeditor/server/XFormsExportServlet.java +++ b/editor/server/src/org/oryxeditor/server/XFormsExportServlet.java @...
true
true
protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/xhtml"); String rdf = req.getParameter("data"); String cssUrl = req.getParameter("css"); try { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance()...
protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/xhtml"); String rdf = req.getParameter("data"); String cssUrl = req.getParameter("css"); try { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance()...
diff --git a/src/net/craftrepo/WeatherControl/weathercontrol.java b/src/net/craftrepo/WeatherControl/weathercontrol.java index d4dc368..daaeb62 100644 --- a/src/net/craftrepo/WeatherControl/weathercontrol.java +++ b/src/net/craftrepo/WeatherControl/weathercontrol.java @@ -1,200 +1,200 @@ package net.craftrepo.WeatherC...
false
true
public boolean onCommand(CommandSender sender, Command commandArg, String commandLabel, String[] arg) { Player player = (Player) sender; String command = commandArg.getName().toLowerCase(); Player target; //strike a player with lightning. if (command.equalsIgnoreCase("lightningstrike")) { if (player....
public boolean onCommand(CommandSender sender, Command commandArg, String commandLabel, String[] arg) { Player player = (Player) sender; String command = commandArg.getName().toLowerCase(); Player target; //strike a player with lightning. if (command.equalsIgnoreCase("lightningstrike")) { if (player....
diff --git a/state-machine/src/main/java/com/captaindebug/statemachine/tweettohtml/CheckHttpAction.java b/state-machine/src/main/java/com/captaindebug/statemachine/tweettohtml/CheckHttpAction.java index febaeb5..da62d94 100644 --- a/state-machine/src/main/java/com/captaindebug/statemachine/tweettohtml/CheckHttpAction.j...
true
true
public TweetState processByte(byte b, TweetState currentState) throws Exception { TweetState retVal = currentState; if (CHECK.charAt(pos++) != b) { retVal = returnToRunning(b); } else if (pos == CHECK.length()) { retVal = TweetState.URL; reset(); // fix 1 } else { buf[0] = b; tagStream.write(b...
public TweetState processByte(byte b, TweetState currentState) throws Exception { TweetState retVal = currentState; if (CHECK.charAt(pos++) != b) { retVal = returnToRunning(b); reset(); } else if (pos == CHECK.length()) { retVal = TweetState.URL; reset(); // fix 1 } else { buf[0] = b; tagSt...
diff --git a/src/de/uni_koblenz/jgralab/codegenerator/AttributedElementCodeGenerator.java b/src/de/uni_koblenz/jgralab/codegenerator/AttributedElementCodeGenerator.java index 1af78d8ec..9440c1a46 100755 --- a/src/de/uni_koblenz/jgralab/codegenerator/AttributedElementCodeGenerator.java +++ b/src/de/uni_koblenz/jgralab/c...
false
true
protected CodeBlock createSetter(Attribute attr, boolean createClass) { CodeSnippet code = new CodeSnippet(true); code.setVariable("name", attr.getName()); code.setVariable("tmpname", "_" + attr.getName()); code.setVariable("type", attr.getDomain() .getJavaAttributeImplementationTypeName(schemaRootPackageN...
protected CodeBlock createSetter(Attribute attr, boolean createClass) { CodeSnippet code = new CodeSnippet(true); code.setVariable("name", attr.getName()); code.setVariable("tmpname", "_" + attr.getName()); code.setVariable("type", attr.getDomain() .getJavaAttributeImplementationTypeName(schemaRootPackageN...
diff --git a/org.scala-ide.sdt.debug.tests/src/scala/tools/eclipse/debug/spy/TcpipSpy.java b/org.scala-ide.sdt.debug.tests/src/scala/tools/eclipse/debug/spy/TcpipSpy.java index 91094597a..03c5af5a7 100644 --- a/org.scala-ide.sdt.debug.tests/src/scala/tools/eclipse/debug/spy/TcpipSpy.java +++ b/org.scala-ide.sdt.debug.t...
false
true
public static void main(String[] args) { int inPort = 0; String serverHost = null; int outPort = 0; String outputFile = null; try { inPort = Integer.parseInt(args[0]); serverHost = args[1]; outPort = Integer.parseInt(args[2]); if (args.length > 3) { outputFile = args[3]; } } catch (Excep...
public static void main(String[] args) { boolean listenMode = false; int inPort = 0; String serverHost = null; int outPort = 0; String outputFile = null; try { listenMode = args[0].equals("-l"); int argIndex = listenMode ? 1 : 0; inPort = Integer.parseInt(args[argIndex ++]); serverHost...
diff --git a/src/ch/almana/android/stechkarte/model/DayAccess.java b/src/ch/almana/android/stechkarte/model/DayAccess.java index 2da8d87..49a4f2e 100644 --- a/src/ch/almana/android/stechkarte/model/DayAccess.java +++ b/src/ch/almana/android/stechkarte/model/DayAccess.java @@ -1,300 +1,304 @@ package ch.almana.android....
true
true
public void recalculate(Context context, Day day) { // if (dayRef < 1) { // return; // } // Day day = getOrCreateDay(dayRef); long dayRef = day.getDayRef(); Day previousDay = getDayBefore(day); if (previousDay == null) { previousDay = new Day(0); } Log.i(LOG_TAG, "Recalculating " + dayRef + " with...
public void recalculate(Context context, Day day) { // if (dayRef < 1) { // return; // } // Day day = getOrCreateDay(dayRef); long dayRef = day.getDayRef(); Day previousDay = getDayBefore(day); if (previousDay == null) { previousDay = new Day(0); } Log.i(LOG_TAG, "Recalculating " + dayRef + " with...
diff --git a/usling/usling-servlets/src/main/java/org/apache/sling/ujax/UjaxPostServlet.java b/usling/usling-servlets/src/main/java/org/apache/sling/ujax/UjaxPostServlet.java index bb46c69501..e2c4b1d2a2 100644 --- a/usling/usling-servlets/src/main/java/org/apache/sling/ujax/UjaxPostServlet.java +++ b/usling/usling-ser...
true
true
protected void createOrUpdateNodesFromRequest(SlingHttpServletRequest request, SlingHttpServletResponse response, Session s) throws RepositoryException, IOException { // find out the actual "save prefix" to use - only parameters starting with // this prefix are saved as Properties, when creatin...
protected void createOrUpdateNodesFromRequest(SlingHttpServletRequest request, SlingHttpServletResponse response, Session s) throws RepositoryException, IOException { // find out the actual "save prefix" to use - only parameters starting with // this prefix are saved as Properties, when creatin...
diff --git a/src/arithmea/shared/gematria/GematriaUtil.java b/src/arithmea/shared/gematria/GematriaUtil.java index 47f4a67..2401dd3 100644 --- a/src/arithmea/shared/gematria/GematriaUtil.java +++ b/src/arithmea/shared/gematria/GematriaUtil.java @@ -1,226 +1,231 @@ package arithmea.shared.gematria; import java.util....
true
true
private char getHebrewCharacter(boolean isFirst, final char current, final char next, final char afterNext) { if (current == 'A') { return HebrewLetter.Aleph.hebrew; } else if (current == 'B') {return HebrewLetter.Beth.hebrew; } else if (current == 'C') { if (next == 'H') { skipNext = true; return He...
private char getHebrewCharacter(boolean isFirst, final char current, final char next, final char afterNext) { if (current == 'A') { return HebrewLetter.Aleph.hebrew; } else if (current == 'B') {return HebrewLetter.Beth.hebrew; } else if (current == 'C') { if (next == 'H') { skipNext = true; return He...
diff --git a/org.dawb.passerelle.actors/src/org/dawb/passerelle/views/ActorValuePage.java b/org.dawb.passerelle.actors/src/org/dawb/passerelle/views/ActorValuePage.java index b6f2d64..75b13eb 100644 --- a/org.dawb.passerelle.actors/src/org/dawb/passerelle/views/ActorValuePage.java +++ b/org.dawb.passerelle.actors/src/o...
true
true
private void createColumns(final TableViewer viewer) { listIcon = Activator.getImageDescriptor("icons/list.png").createImage(); scalarIcon = Activator.getImageDescriptor("icons/scalar.png").createImage(); roiIcon = Activator.getImageDescriptor("icons/roi.png").createImage(); this.intTypeColumn = n...
private void createColumns(final TableViewer viewer) { listIcon = Activator.getImageDescriptor("icons/list.png").createImage(); scalarIcon = Activator.getImageDescriptor("icons/scalar.png").createImage(); roiIcon = Activator.getImageDescriptor("icons/roi.png").createImage(); this.intTypeColumn = n...
diff --git a/src/org/apache/xalan/xsltc/runtime/AbstractTranslet.java b/src/org/apache/xalan/xsltc/runtime/AbstractTranslet.java index b75e396c..9b4c431f 100644 --- a/src/org/apache/xalan/xsltc/runtime/AbstractTranslet.java +++ b/src/org/apache/xalan/xsltc/runtime/AbstractTranslet.java @@ -1,616 +1,616 @@ /* * @(#)$...
false
true
protected void transferOutputSettings(TransletOutputHandler output) { // It is an error if this method is called with anything else than // the translet post-processor (TextOutput) if (!(output instanceof TextOutput)) return; TextOutput handler = (TextOutput)output; // Transfer the output method setting if...
protected void transferOutputSettings(TransletOutputHandler output) { // It is an error if this method is called with anything else than // the translet post-processor (TextOutput) if (!(output instanceof TextOutput)) return; TextOutput handler = (TextOutput)output; // Transfer the output method setting if...
diff --git a/src/BarreOutils.java b/src/BarreOutils.java index 0ed4f87..e996b30 100755 --- a/src/BarreOutils.java +++ b/src/BarreOutils.java @@ -1,237 +1,238 @@ import java.awt.Dimension; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.Box; import javax.swing.BoxLayout...
true
true
BarreOutils(final Curseur curseur, final ZoneDessin zoneDessin){ this.curseur = curseur; this.zoneDessin = zoneDessin; boutonPoserCrayon = boutonPoserCrayon(); boutonGomme = boutonGomme(); slider = slider(); sliderRed = sliderRed(); sliderBlue = sliderBlue(); sliderGreen = sliderGreen(); vignetteCoul...
BarreOutils(final Curseur curseur, final ZoneDessin zoneDessin){ this.curseur = curseur; this.zoneDessin = zoneDessin; boutonPoserCrayon = boutonPoserCrayon(); boutonGomme = boutonGomme(); slider = slider(); sliderRed = sliderRed(); sliderBlue = sliderBlue(); sliderGreen = sliderGreen(); vignetteCoul...
diff --git a/orcc-gui/src/main/java/org/mcuosmipcuter/orcc/gui/Main.java b/orcc-gui/src/main/java/org/mcuosmipcuter/orcc/gui/Main.java index b53ff5c..1a1dfad 100644 --- a/orcc-gui/src/main/java/org/mcuosmipcuter/orcc/gui/Main.java +++ b/orcc-gui/src/main/java/org/mcuosmipcuter/orcc/gui/Main.java @@ -1,357 +1,363 @@ /*...
true
true
public static void main(String[] args) throws Exception { Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler() { public void uncaughtException(Thread thread, Throwable t) { System.err.println("UNCAUGHT Exception in " + thread); t.printStackTrace(); String msg = t.getClass().getS...
public static void main(String[] args) throws Exception { Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler() { public void uncaughtException(Thread thread, Throwable t) { System.err.println("UNCAUGHT Exception in " + thread); t.printStackTrace(); String msg = t.getClass().getS...
diff --git a/org.emftext.sdk/src/org/emftext/sdk/codegen/creators/ReferenceResolversCreator.java b/org.emftext.sdk/src/org/emftext/sdk/codegen/creators/ReferenceResolversCreator.java index 4663723d8..637708e68 100644 --- a/org.emftext.sdk/src/org/emftext/sdk/codegen/creators/ReferenceResolversCreator.java +++ b/org.emf...
true
true
public Collection<IArtifact> getArtifactsToCreate(GenerationContext context) { Collection<IArtifact> artifacts = new ArrayList<IArtifact>(); for (GenFeature proxyReference : context.getNonContainmentReferences()) { // TODO this looks stupid to me. adding the proxyReference to the // same list we iterate ...
public Collection<IArtifact> getArtifactsToCreate(GenerationContext context) { Collection<IArtifact> artifacts = new ArrayList<IArtifact>(); for (GenFeature proxyReference : context.getNonContainmentReferences()) { // TODO this looks stupid to me. adding the proxyReference to the // same list we iterate ...
diff --git a/plugins/org.eclipse.birt.report.engine.emitter.wpml/src/org/eclipse/birt/report/engine/emitter/wpml/WordUtil.java b/plugins/org.eclipse.birt.report.engine.emitter.wpml/src/org/eclipse/birt/report/engine/emitter/wpml/WordUtil.java index 1c9259008..ed05063c4 100644 --- a/plugins/org.eclipse.birt.report.engin...
true
true
public static String parseColor( String color ) { if ( "transparent".equalsIgnoreCase( color ) || color == null ) { return null; } else if ( color.equalsIgnoreCase( "Black" ) ) return "000000"; else if ( color.equalsIgnoreCase( "Gray" ) ) return "121212"; else if ( color.equalsIgnoreCase( "White"...
public static String parseColor( String color ) { if ( "transparent".equalsIgnoreCase( color ) || color == null ) { return null; } else if ( color.equalsIgnoreCase( "Black" ) ) return "000000"; else if ( color.equalsIgnoreCase( "Gray" ) ) return "121212"; else if ( color.equalsIgnoreCase( "White"...
diff --git a/common/src/net/myrrix/common/random/RandomUtils.java b/common/src/net/myrrix/common/random/RandomUtils.java index 60c2a60..a938b87 100644 --- a/common/src/net/myrrix/common/random/RandomUtils.java +++ b/common/src/net/myrrix/common/random/RandomUtils.java @@ -1,240 +1,242 @@ /* * Copyright Myrrix Ltd ...
true
true
public static float[] randomUnitVectorFarFrom(int dimensions, List<float[]> farFrom, RandomGenerator random) { int size = farFrom.size(); int numSamples = Math.min(100, size); float[] vector = new float[dimensi...
public static float[] randomUnitVectorFarFrom(int dimensions, List<float[]> farFrom, RandomGenerator random) { int size = farFrom.size(); int numSamples = Math.min(100, size); float[] vector = new float[dimensi...
diff --git a/software/base/src/test/java/brooklyn/entity/brooklynnode/BrooklynNodeIntegrationTest.java b/software/base/src/test/java/brooklyn/entity/brooklynnode/BrooklynNodeIntegrationTest.java index 569d49d20..d2ac86b88 100644 --- a/software/base/src/test/java/brooklyn/entity/brooklynnode/BrooklynNodeIntegrationTest....
false
true
public void testUsesLocation() throws Exception { String brooklynPropertiesContents = "brooklyn.location.named.mynamedloc=localhost"; Files.copy(BROOKLYN_PROPERTIES_PATH, BROOKLYN_PROPERTIES_BAK_PATH); try { BrooklynNode brooklynNode = app.createAndManageChild(EntitySpec.create(...
public void testUsesLocation() throws Exception { String brooklynPropertiesContents = "brooklyn.location.named.mynamedloc=localhost:(name=myname)"; Files.copy(BROOKLYN_PROPERTIES_PATH, BROOKLYN_PROPERTIES_BAK_PATH); try { BrooklynNode brooklynNode = app.createAndManageChild(Enti...
diff --git a/ghana-mtn-web/src/test/java/org/motechproject/ghana/mtn/service/SubscriptionServiceImplTest.java b/ghana-mtn-web/src/test/java/org/motechproject/ghana/mtn/service/SubscriptionServiceImplTest.java index 18bcf9b..0a33a5b 100644 --- a/ghana-mtn-web/src/test/java/org/motechproject/ghana/mtn/service/Subscriptio...
true
true
public void shouldPersistSubscriptionAndCampaignRequestForAValidSubscription() { SubscriptionRequest subscriptionRequest = TestSubscriptionRequest.with("1234567890", "P 25"); ProgramType programType = TestProgramType.with("Pregnancy", 3, 12, Arrays.asList("P")); Subscription subscription = T...
public void shouldPersistSubscriptionAndCampaignRequestForAValidSubscription() { SubscriptionRequest subscriptionRequest = TestSubscriptionRequest.with("1234567890", "P 25"); ProgramType programType = TestProgramType.with("Pregnancy", 3, 12, Arrays.asList("P")); Subscription subscription = T...
diff --git a/lucene/codecs/src/java/org/apache/lucene/codecs/compressing/CompressingStoredFieldsIndex.java b/lucene/codecs/src/java/org/apache/lucene/codecs/compressing/CompressingStoredFieldsIndex.java index 3262293abf..b7be254afe 100644 --- a/lucene/codecs/src/java/org/apache/lucene/codecs/compressing/CompressingStor...
true
true
MemoryChunkFieldsIndexReader(IndexInput fieldsIndexIn, SegmentInfo si) throws IOException { super(fieldsIndexIn); final int numChunks = fieldsIndexIn.readVInt(); final int bitsPerStartPointer = fieldsIndexIn.readByte() & 0xFF; if (bitsPerStartPointer > 64) { throw new CorruptIndexEx...
MemoryChunkFieldsIndexReader(IndexInput fieldsIndexIn, SegmentInfo si) throws IOException { super(fieldsIndexIn); final int numChunks = fieldsIndexIn.readVInt(); final int bitsPerStartPointer = fieldsIndexIn.readByte() & 0xFF; if (bitsPerStartPointer > 64) { throw new CorruptIndexEx...
diff --git a/src/persistence/org/codehaus/groovy/grails/orm/hibernate/cfg/GrailsHibernateUtil.java b/src/persistence/org/codehaus/groovy/grails/orm/hibernate/cfg/GrailsHibernateUtil.java index 30997a4eb..daef30107 100644 --- a/src/persistence/org/codehaus/groovy/grails/orm/hibernate/cfg/GrailsHibernateUtil.java +++ b/s...
true
true
public static void populateArgumentsForCriteria(Criteria c, Map argMap) { Integer maxParam = null; Integer offsetParam = null; if(argMap.containsKey(ARGUMENT_MAX)) { maxParam = (Integer)converter.convertIfNecessary(argMap.get(ARGUMENT_MAX),Integer.class); } if(ar...
public static void populateArgumentsForCriteria(Criteria c, Map argMap) { Integer maxParam = null; Integer offsetParam = null; if(argMap.containsKey(ARGUMENT_MAX)) { maxParam = (Integer)converter.convertIfNecessary(argMap.get(ARGUMENT_MAX),Integer.class); } if(ar...
diff --git a/src/ru/meowth/domain/Letter.java b/src/ru/meowth/domain/Letter.java index a24a39a..9ee6125 100644 --- a/src/ru/meowth/domain/Letter.java +++ b/src/ru/meowth/domain/Letter.java @@ -1,111 +1,113 @@ package ru.meowth.domain; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.P...
true
true
private static Date whenToShoot(DeliverySpan span) { Random r = new Random(); final float percents = (float)(r.nextInt(20) + 80)/100f; Calendar c = Calendar.getInstance(); switch(span){ case VerySoon: c.add(Calendar.DAY_OF_MONTH, (int)(percents * 7f)); break; case Soon: c.add(Calendar.D...
private static Date whenToShoot(DeliverySpan span) { Random r = new Random(); final float percents = (float)(r.nextInt(20) + 80)/100f; Calendar c = Calendar.getInstance(); switch(span){ case VerySoon: c.add(Calendar.DAY_OF_MONTH, (int)(percents * 7f)); break; case Soon: c.add(Calendar.D...
diff --git a/TCC/src/br/usp/ime/tcc/activities/filter/FilterActivity.java b/TCC/src/br/usp/ime/tcc/activities/filter/FilterActivity.java index 488c0c7..48202af 100644 --- a/TCC/src/br/usp/ime/tcc/activities/filter/FilterActivity.java +++ b/TCC/src/br/usp/ime/tcc/activities/filter/FilterActivity.java @@ -1,84 +1,85 @@ ...
true
true
private void loadComponents() { ComponentUtils componentUtils = new ComponentUtils(this); getSupportActionBar().setDisplayHomeAsUpEnabled(true); componentUtils.loadButton(R.id.galleryModeButton, new OnClickListener() { @Override public void onClick(View v) { startGalleryChooser();...
private void loadComponents() { ComponentUtils componentUtils = new ComponentUtils(this); if (getSupportActionBar() != null) getSupportActionBar().setDisplayHomeAsUpEnabled(true); componentUtils.loadButton(R.id.galleryModeButton, new OnClickListener() { @Override public void onClick(View v...
diff --git a/extension/app-schema/app-schema-test/src/test/java/org/geoserver/test/NestedIdSupportTestData.java b/extension/app-schema/app-schema-test/src/test/java/org/geoserver/test/NestedIdSupportTestData.java index e8c03b3c5..78f543cd2 100644 --- a/extension/app-schema/app-schema-test/src/test/java/org/geoserver/te...
true
true
public void addContent() { addFeatureType(GSML_PREFIX, "MappedFeature", "MappedFeaturePropertyfile.xml", "MappedFeaturePropertyfile.properties"); addFeatureType(GSML_PREFIX, "GeologicUnit", "GeologicUnit.xml", "GeologicUnit.properties", "CGITermValue.xml", "CGITermVal...
public void addContent() { addFeatureType(GSML_PREFIX, "MappedFeature", "MappedFeaturePropertyfile.xml", "MappedFeaturePropertyfile.properties"); addFeatureType(GSML_PREFIX, "GeologicUnit", "GeologicUnit.xml", "GeologicUnit.properties", "CGITermValue.xml", "CGITermVal...
diff --git a/src/java/com/yahoo/dtf/config/transform/ConvertTransformer.java b/src/java/com/yahoo/dtf/config/transform/ConvertTransformer.java index dc0d2bb..e7faa42 100644 --- a/src/java/com/yahoo/dtf/config/transform/ConvertTransformer.java +++ b/src/java/com/yahoo/dtf/config/transform/ConvertTransformer.java @@ -1,8...
true
true
public String apply(String data, String expression) throws ParseException { int bracketIndex = expression.indexOf('('); String operator = null; String result = null; int padding = 0; if ( bracketIndex != -1 ) { operator = expression.substring(0,bracketInd...
public String apply(String data, String expression) throws ParseException { int bracketIndex = expression.indexOf('('); String operator = null; String result = null; int padding = 0; if ( bracketIndex != -1 ) { operator = expression.substring(0,bracketInd...