Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/com/dmdirc/updater/components/PluginComponent.java b/src/com/dmdirc/updater/components/PluginComponent.java index 200173fef..348bf8d50 100644 --- a/src/com/dmdirc/updater/components/PluginComponent.java +++ b/src/com/dmdirc/updater/components/PluginComponent.java @@ -1,122 +1,122 @@ /* * Copyright (...
false
true
public boolean doInstall(final String path) throws Throwable { final File target = new File(plugin.getFullFilename()); if (plugin.isUnloadable() && target.exists()) { target.delete(); } if (!plugin.isUnloadable() || !new File(path).renameTo(target)) { ...
public boolean doInstall(final String path) throws Throwable { final File target = new File(plugin.getFullFilename()); if ((plugin.isUnloadable() || !plugin.isLoaded()) && target.exists()) { target.delete(); } if ((!plugin.isUnloadable() && plugin.isLoad...
diff --git a/webapp/src/main/java/org/vaadin/tori/thread/ThreadViewImpl.java b/webapp/src/main/java/org/vaadin/tori/thread/ThreadViewImpl.java index 89fbae0b..1e482c83 100644 --- a/webapp/src/main/java/org/vaadin/tori/thread/ThreadViewImpl.java +++ b/webapp/src/main/java/org/vaadin/tori/thread/ThreadViewImpl.java @@ -1...
true
true
public void displayNewThreadFormFor(final Category category) { layout.removeAllComponents(); final HeadingLabel heading = new HeadingLabel("Start a New Thread", HeadingLevel.H2); layout.addComponent(heading); getRoot().scrollIntoView(heading); final Horizonta...
public void displayNewThreadFormFor(final Category category) { layout.removeAllComponents(); final HeadingLabel heading = new HeadingLabel("Start a New Thread", HeadingLevel.H2); layout.addComponent(heading); getRoot().scrollIntoView(heading); final Horizonta...
diff --git a/ev/endrov/imageWindow/ImageWindowView.java b/ev/endrov/imageWindow/ImageWindowView.java index 7f9b2436..be2b3a85 100644 --- a/ev/endrov/imageWindow/ImageWindowView.java +++ b/ev/endrov/imageWindow/ImageWindowView.java @@ -1,825 +1,826 @@ /*** * Copyright (C) 2010 Johan Henriksson * This code is under ...
false
true
public BufferedImage apply(EvPixels p) { double contrastR=contrast*color.getRedDouble(); double contrastG=contrast*color.getGreenDouble(); double contrastB=contrast*color.getBlueDouble(); if(1==1) { int w=p.getWidth(); int h=p.getHeight(); double[] aPixels=p.convertToDouble(tru...
public BufferedImage apply(EvPixels p) { double contrastR=contrast*color.getRedDouble(); double contrastG=contrast*color.getGreenDouble(); double contrastB=contrast*color.getBlueDouble(); //if(1==1) //{ int w=p.getWidth(); int h=p.getHeight(); double[] aPixels=p.convertToDouble...
diff --git a/edu/wisc/ssec/mcidasv/chooser/adde/AddePointDataChooser.java b/edu/wisc/ssec/mcidasv/chooser/adde/AddePointDataChooser.java index 056e5f20e..3d6d1500a 100644 --- a/edu/wisc/ssec/mcidasv/chooser/adde/AddePointDataChooser.java +++ b/edu/wisc/ssec/mcidasv/chooser/adde/AddePointDataChooser.java @@ -1,740 +1,74...
true
true
protected void handleConnectionError(Exception excp) { //System.out.println("handleConnectionError:"); String aes = excp.toString(); if ((aes.indexOf("Accounting data")) >= 0) { JTextField projFld = null; JTextField userFld = null; JComponent contents ...
protected void handleConnectionError(Exception excp) { //System.out.println("handleConnectionError:"); String aes = excp.toString(); if ((aes.indexOf("Accounting data")) >= 0) { JTextField projFld = null; JTextField userFld = null; JComponent contents ...
diff --git a/marathon-runtime-api/src/net/sourceforge/marathon/util/EventQueueRunner.java b/marathon-runtime-api/src/net/sourceforge/marathon/util/EventQueueRunner.java index cc04f265..f38e737f 100644 --- a/marathon-runtime-api/src/net/sourceforge/marathon/util/EventQueueRunner.java +++ b/marathon-runtime-api/src/net/s...
true
true
public Object invokeMethod(final Method method, final Object object, final Object[] parameters) { Runnable doRun = new Runnable() { public void run() { try { returnValue = method.invoke(object, parameters); } catch (IllegalArgumentException e) ...
public Object invokeMethod(final Method method, final Object object, final Object[] parameters) { Runnable doRun = new Runnable() { public void run() { try { returnValue = method.invoke(object, parameters); } catch (IllegalArgumentException e) ...
diff --git a/OsmAnd/src/net/osmand/activities/SettingsActivity.java b/OsmAnd/src/net/osmand/activities/SettingsActivity.java index dcd65d37..4209385f 100644 --- a/OsmAnd/src/net/osmand/activities/SettingsActivity.java +++ b/OsmAnd/src/net/osmand/activities/SettingsActivity.java @@ -1,705 +1,705 @@ package net.osmand.a...
true
true
public void updateAllSettings(){ SharedPreferences prefs = getSharedPreferences(OsmandSettings.SHARED_PREFERENCES_NAME, Context.MODE_WORLD_READABLE); for(BooleanPreference b : booleanPreferences){ b.getPref().setChecked(prefs.getBoolean(b.getId(), b.getDefValue())); } userName.setText(OsmandS...
public void updateAllSettings(){ SharedPreferences prefs = getSharedPreferences(OsmandSettings.SHARED_PREFERENCES_NAME, Context.MODE_WORLD_READABLE); for(BooleanPreference b : booleanPreferences){ b.getPref().setChecked(prefs.getBoolean(b.getId(), b.getDefValue())); } userName.setText(OsmandS...
diff --git a/src/java/nightcode/Main.java b/src/java/nightcode/Main.java index 5dcbad3..5ae5cc9 100644 --- a/src/java/nightcode/Main.java +++ b/src/java/nightcode/Main.java @@ -1,76 +1,76 @@ package nightcode; import java.awt.SplashScreen; import java.lang.reflect.Method; import java.util.Properties; /** * T...
true
true
private void init(String[] args) throws Exception { SplashScreen splash = null; if (hasFullScreenButton()) { splash = SplashScreen.getSplashScreen(); } if (splash == null) { System.err.println("Cannot launch splash screen. Proceeding."); } Meth...
private void init(String[] args) throws Exception { SplashScreen splash = null; if (!hasFullScreenButton()) { splash = SplashScreen.getSplashScreen(); } if (splash == null) { System.err.println("Cannot launch splash screen. Proceeding."); } Met...
diff --git a/core/src/main/java/com/metsci/glimpse/support/settings/SwingLookAndFeel.java b/core/src/main/java/com/metsci/glimpse/support/settings/SwingLookAndFeel.java index a9a37344..d9dda203 100644 --- a/core/src/main/java/com/metsci/glimpse/support/settings/SwingLookAndFeel.java +++ b/core/src/main/java/com/metsci/...
true
true
public SwingLookAndFeel( ) { map.put( CROSSHAIR_COLOR, getBlack( ) ); map.put( PLOT_BACKGROUND_COLOR, fromColorAwt( SystemColor.control ) ); map.put( FRAME_BACKGROUND_COLOR, fromColorAwt( SystemColor.controlHighlight ) ); map.put( AXIS_FONT, getDefaultPlain( 11 ) ); map....
public SwingLookAndFeel( ) { map.put( CROSSHAIR_COLOR, getBlack( ) ); map.put( PLOT_BACKGROUND_COLOR, fromColorAwt( SystemColor.windowBorder ) ); map.put( FRAME_BACKGROUND_COLOR, fromColorAwt( SystemColor.window ) ); map.put( AXIS_FONT, getDefaultPlain( 11 ) ); map.put( ...
diff --git a/GShelf/Gshelf/src/com/derpicons/gshelf/SearchActivity.java b/GShelf/Gshelf/src/com/derpicons/gshelf/SearchActivity.java index b9f3175..35f7bed 100644 --- a/GShelf/Gshelf/src/com/derpicons/gshelf/SearchActivity.java +++ b/GShelf/Gshelf/src/com/derpicons/gshelf/SearchActivity.java @@ -1,104 +1,103 @@ packag...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_search); //ActionBar actionBar = getActionBar(); //actionBar.setDisplayHomeAsUpEnabled(true); final EditText SearchText = (EditText) findViewById(R.id.editTextSearch); Button Sear...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_search); //ActionBar actionBar = getActionBar(); //actionBar.setDisplayHomeAsUpEnabled(true); final EditText SearchText = (EditText) findViewById(R.id.editTextSearch); Button Sear...
diff --git a/com.palantir.typescript/src/com/palantir/typescript/BuildUtils.java b/com.palantir.typescript/src/com/palantir/typescript/BuildUtils.java index 2f7dd4f..2912920 100644 --- a/com.palantir.typescript/src/com/palantir/typescript/BuildUtils.java +++ b/com.palantir.typescript/src/com/palantir/typescript/BuildUt...
true
true
public static void rebuildWorkspace() { final String name = Resources.BUNDLE.getString("preferences.compiler.rebuild.job.name"); final Job job = new Job(name) { @Override protected IStatus run(final IProgressMonitor monitor) { final IWorkspace workspace = Reso...
public static void rebuildWorkspace() { final String name = Resources.BUNDLE.getString("preferences.compiler.rebuild.job.name"); final Job job = new Job(name) { @Override protected IStatus run(final IProgressMonitor monitor) { final IWorkspace workspace = Reso...
diff --git a/src/org/ruhlendavis/mc/communitybridge/PermissionHandlerPermissionsEx.java b/src/org/ruhlendavis/mc/communitybridge/PermissionHandlerPermissionsEx.java index 62aabc8..be2e717 100644 --- a/src/org/ruhlendavis/mc/communitybridge/PermissionHandlerPermissionsEx.java +++ b/src/org/ruhlendavis/mc/communitybridge...
true
true
public boolean isMemberOfGroup(String playerName, String groupName) { try { return PermissionsEx.getUser(playerName).inGroup(groupName); } catch (Error e) { Main.log.severe(e.getMessage()); } return false; }
public boolean isMemberOfGroup(String playerName, String groupName) { try { return PermissionsEx.getUser(playerName).inGroup(groupName, false); } catch (Error e) { Main.log.severe(e.getMessage()); } return false; }
diff --git a/src/model/phase2/minimal_interleaving/GKMModel/src/Model.java b/src/model/phase2/minimal_interleaving/GKMModel/src/Model.java index 2bbd9cd..ddf4e4a 100644 --- a/src/model/phase2/minimal_interleaving/GKMModel/src/Model.java +++ b/src/model/phase2/minimal_interleaving/GKMModel/src/Model.java @@ -1,953 +1,95...
false
true
public static void main(String[] args) throws Exception { if (args.length != 5) { System.err.println("usage: java Model k m n p1 p2"); System.exit(-1); } // int k = 2; // num children // int m = 2; // num messages // int n = 5; // num nodes int k = Integer.parseInt(args[0]); int m = Integer....
public static void main(String[] args) throws Exception { if (args.length != 5) { System.err.println("usage: java Model k m n p1 p2"); System.exit(-1); } // int k = 2; // num children // int m = 2; // num messages // int n = 5; // num nodes int k = Integer.parseInt(args[0]); int m = Integer....
diff --git a/extension/richfaces/src/main/java/org/jboss/portletbridge/richfaces/application/resource/RichFacesPortletResource.java b/extension/richfaces/src/main/java/org/jboss/portletbridge/richfaces/application/resource/RichFacesPortletResource.java index d8086f1..59d78c0 100644 --- a/extension/richfaces/src/main/ja...
true
true
public String getRequestPath() { String path = wrapped.getRequestPath(); if (null != path) { int pos = path.indexOf(RICHFACES_PATH_TOKEN); FacesContext facesContext = FacesContext.getCurrentInstance(); ExternalContext externalContext = facesContext.getExternalCont...
public String getRequestPath() { String path = wrapped.getRequestPath(); if (null != path) { int pos = path.indexOf(RICHFACES_PATH_TOKEN); FacesContext facesContext = FacesContext.getCurrentInstance(); ExternalContext externalContext = facesContext.getExternalCont...
diff --git a/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/acquisitions/refund/activities/CancelRefundProcess.java b/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/acquisitions/refund/activities/CancelRefundProcess.java index a148a9ae..f7a1a15f 100644 --- a/expenditure-tracking/src/...
true
true
protected boolean isAccessible(RefundProcess process) { Person loggedPerson = Person.getLoggedPerson(); return ((process.isInGenesis() || process.isInAuthorizedState()) && isCurrentUserRequestor(process)) || (process.isPendingApproval() && isUserResponsibleForUnit(process)) || (process.isResponsibleForUnit(lo...
protected boolean isAccessible(RefundProcess process) { Person loggedPerson = Person.getLoggedPerson(); return ((process.isInGenesis() || process.isInAuthorizedState()) && isCurrentUserRequestor(process)) || (process.isPendingApproval() && isUserResponsibleForUnit(process)) || (process.isResponsibleForUnit(lo...
diff --git a/sokoban/solvers/Puller.java b/sokoban/solvers/Puller.java index d30ac7e..0d0a38d 100644 --- a/sokoban/solvers/Puller.java +++ b/sokoban/solvers/Puller.java @@ -1,181 +1,181 @@ /** * */ package sokoban.solvers; import java.util.ArrayList; import java.util.Random; import sokoban.Board; /** ...
true
true
private PlayerPosDir choosePosition() { final int boxCount = boxes.length; final int max = 4*boxCount; final int[] stepX = { 0, 1, 0,-1}; final int[] stepY = {-1, 0, 1, 0}; int triesLeft = max; int p = rand.nextInt(max); while (triesLeft > 0) { ...
private PlayerPosDir choosePosition() { final int boxCount = boxes.length; final int max = 4*boxCount; final int[] stepX = { 0, 1, 0,-1}; final int[] stepY = {-1, 0, 1, 0}; int triesLeft = max; int p = rand.nextInt(max); while (triesLeft > 0) { ...
diff --git a/src/com/vividsolutions/jump/workbench/ui/plugin/clipboard/PasteItemsPlugIn.java b/src/com/vividsolutions/jump/workbench/ui/plugin/clipboard/PasteItemsPlugIn.java index 3a92faab..daed39bb 100644 --- a/src/com/vividsolutions/jump/workbench/ui/plugin/clipboard/PasteItemsPlugIn.java +++ b/src/com/vividsolution...
true
true
public static MultiEnableCheck createEnableCheck( final WorkbenchContext workbenchContext) { EnableCheckFactory checkFactory = new EnableCheckFactory(workbenchContext); return new MultiEnableCheck().add( checkFactory.createWindowWithLayerNamePanelMustBeActiveCheck()).add( checkFactory.createE...
public static MultiEnableCheck createEnableCheck( final WorkbenchContext workbenchContext) { EnableCheckFactory checkFactory = new EnableCheckFactory(workbenchContext); return new MultiEnableCheck().add( checkFactory.createWindowWithLayerNamePanelMustBeActiveCheck()).add( checkFactory.createE...
diff --git a/src/main/java/com/redhat/ceylon/compiler/js/CeylonRunJsTool.java b/src/main/java/com/redhat/ceylon/compiler/js/CeylonRunJsTool.java index bb00d3ef..60dbde0b 100644 --- a/src/main/java/com/redhat/ceylon/compiler/js/CeylonRunJsTool.java +++ b/src/main/java/com/redhat/ceylon/compiler/js/CeylonRunJsTool.java @...
false
true
static ProcessBuilder buildProcess(String module, String func, List<String> args, String exepath, List<String> repos, PrintStream output) { final String node = exepath == null ? findNode() : exepath; if (exepath != null) { File _f = new File(exepath); if (!(_f.exi...
static ProcessBuilder buildProcess(String module, String func, List<String> args, String exepath, List<String> repos, PrintStream output) { final String node = exepath == null ? findNode() : exepath; if (exepath != null) { File _f = new File(exepath); if (!(_f.exi...
diff --git a/src/com/example/prolog/EditContactFragment.java b/src/com/example/prolog/EditContactFragment.java index eb451ff..f89d838 100644 --- a/src/com/example/prolog/EditContactFragment.java +++ b/src/com/example/prolog/EditContactFragment.java @@ -1,320 +1,318 @@ package com.example.prolog; import java.io.File...
false
true
public void onActivityCreated(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onActivityCreated(savedInstanceState); final HashMap<Integer, Integer> customFieldIDs = new HashMap<Integer, Integer>(); contactId = getArguments().getLong("contactId"); datasource = new ContactsDataSo...
public void onActivityCreated(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onActivityCreated(savedInstanceState); final HashMap<Integer, Integer> customFieldIDs = new HashMap<Integer, Integer>(); contactId = getArguments().getLong("contactId"); datasource = new ContactsDataSo...
diff --git a/org.dawnsci.plotting/src/org/dawnsci/plotting/system/dialog/ImageTraceComposite.java b/org.dawnsci.plotting/src/org/dawnsci/plotting/system/dialog/ImageTraceComposite.java index 61369c5e4..5faa85481 100644 --- a/org.dawnsci.plotting/src/org/dawnsci/plotting/system/dialog/ImageTraceComposite.java +++ b/org....
false
true
public ImageTraceComposite(final Composite parent, final Dialog dialog, final IPlottingSystem plottingSystem, final IImageTrace imageTrace) { super(parent, SWT.NONE); this.imageTrace = imageTrace; setLayoutData(new Gr...
public ImageTraceComposite(final Composite parent, final Dialog dialog, final IPlottingSystem plottingSystem, final IImageTrace imageTrace) { super(parent, SWT.NONE); this.imageTrace = imageTrace; setLayoutData(new Gr...
diff --git a/modules/unsupported/jdbc-teradata/src/test/java/org/geotools/data/teradata/TeradataTestSetup.java b/modules/unsupported/jdbc-teradata/src/test/java/org/geotools/data/teradata/TeradataTestSetup.java index c13e7fde5..eeb8516b6 100644 --- a/modules/unsupported/jdbc-teradata/src/test/java/org/geotools/data/ter...
true
true
protected void setUpData() throws Exception { runSafe("DELETE FROM SYSSPATIAL.GEOMETRY_COLUMNS WHERE F_TABLE_NAME = 'ft1'"); runSafe("DELETE FROM SYSSPATIAL.GEOMETRY_COLUMNS WHERE F_TABLE_NAME = 'ft2'"); runSafe("DROP TRIGGER \"ft1_geometry_mi\""); runSafe("DROP TRIGGER \"ft1_geometry_mu\""); ...
protected void setUpData() throws Exception { runSafe("DELETE FROM SYSSPATIAL.GEOMETRY_COLUMNS WHERE F_TABLE_NAME = 'ft1'"); runSafe("DELETE FROM SYSSPATIAL.GEOMETRY_COLUMNS WHERE F_TABLE_NAME = 'ft2'"); runSafe("DROP TRIGGER \"ft1_geometry_mi\""); runSafe("DROP TRIGGER \"ft1_geometry_mu\""); ...
diff --git a/src/main/java/org/guanxi/idp/service/shibboleth/AttributeAuthority.java b/src/main/java/org/guanxi/idp/service/shibboleth/AttributeAuthority.java index 704b08c..293ed1f 100644 --- a/src/main/java/org/guanxi/idp/service/shibboleth/AttributeAuthority.java +++ b/src/main/java/org/guanxi/idp/service/shibboleth...
true
true
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object object) throws Exception { // Load up the config file IdpDocument.Idp idpConfig = (IdpDocument.Idp)servletContext.getAttribute(Guanxi.CONTEXT_ATTR_IDP_CONFIG); String nameIdentifier = null; RequestType samlR...
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object object) throws Exception { // Load up the config file IdpDocument.Idp idpConfig = (IdpDocument.Idp)servletContext.getAttribute(Guanxi.CONTEXT_ATTR_IDP_CONFIG); String nameIdentifier = null; RequestType samlR...
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/HcrTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/HcrTests.java index cadd94df9..f2d1e115c 100644 --- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/HcrTests.java +++ b/org.eclipse.jdt....
true
true
public void testSimpleHcr() throws Exception { String typeName = "org.eclipse.debug.tests.targets.HcrClass"; createLineBreakpoint(39, typeName); IJavaThread thread= null; try { thread= launchToBreakpoint(typeName); assertNotNull("Breakpoint not hit within timeout period", thread); IJavaDebugT...
public void testSimpleHcr() throws Exception { String typeName = "org.eclipse.debug.tests.targets.HcrClass"; createLineBreakpoint(39, typeName); IJavaThread thread= null; try { thread= launchToBreakpoint(typeName); assertNotNull("Breakpoint not hit within timeout period", thread); IJavaDebugT...
diff --git a/backup-core/src/main/java/info/mikaelsvensson/ftpbackup/log/report/ConsoleReport.java b/backup-core/src/main/java/info/mikaelsvensson/ftpbackup/log/report/ConsoleReport.java index 79d0529..28e0905 100644 --- a/backup-core/src/main/java/info/mikaelsvensson/ftpbackup/log/report/ConsoleReport.java +++ b/backu...
true
true
public void generate() { try { stream.print(getFormattedText(template, destinationTemplate)); } catch (UnknownNamedArgumentException e) { e.printStackTrace(stream); } }
public void generate() { try { stream.print(getFormattedText(template, destinationTemplate)); } catch (UnknownNamedArgumentException e) { LOGGER.warn("The text template contains an invalid argument name", e); } }
diff --git a/src/freemail/MailHeaderFilter.java b/src/freemail/MailHeaderFilter.java index 5480593..6781a1d 100644 --- a/src/freemail/MailHeaderFilter.java +++ b/src/freemail/MailHeaderFilter.java @@ -1,138 +1,141 @@ /* * MailHeaderFilter.java * This file is part of Freemail, copyright (C) 2006 Dave Baker * * ...
true
true
private String filterHeader(String name, String val) { // simple blacklist filter for now // a whitelist filter is probably excessive if (name.equalsIgnoreCase("Date")) { // the norm is to put the sender's local time here, with the sender's local time offset // at the end. Rather than giving away what time...
private String filterHeader(String name, String val) { // simple blacklist filter for now // a whitelist filter is probably excessive if (name.equalsIgnoreCase("Date")) { // the norm is to put the sender's local time here, with the sender's local time offset // at the end. Rather than giving away what time...
diff --git a/couteau-enhancer/src/main/java/com/agileapes/couteau/enhancer/model/AnnotationFieldGetterMethod.java b/couteau-enhancer/src/main/java/com/agileapes/couteau/enhancer/model/AnnotationFieldGetterMethod.java index 4815fb8..82bd144 100644 --- a/couteau-enhancer/src/main/java/com/agileapes/couteau/enhancer/model...
true
true
private String getString(Object value) { if (value instanceof String) { return '"' + ((String) value).replaceAll("\\\\", "\\\\").replaceAll("\"", "\\\"") + '"'; } else if (value instanceof Character) { final Character ch = (Character) value; if (ch == '\\') { ...
private String getString(Object value) { if (value instanceof String) { return '"' + ((String) value).replaceAll("\\\\", "\\\\").replaceAll("\"", "\\\"") + '"'; } else if (value instanceof Character) { final Character ch = (Character) value; if (ch == '\\') { ...
diff --git a/src/ibis/ipl/Ibis.java b/src/ibis/ipl/Ibis.java index b4a36112..9d4157ca 100644 --- a/src/ibis/ipl/Ibis.java +++ b/src/ibis/ipl/Ibis.java @@ -1,772 +1,772 @@ /* $Id$ */ package ibis.ipl; import ibis.util.ClassLister; import ibis.util.IPUtils; import ibis.util.TypedProperties; import java.io.Fil...
false
true
public static Ibis createIbis(StaticProperties reqprop, ResizeHandler r) throws IbisException { String hostname; try { hostname = IPUtils.getLocalHostAddress().getHostName(); } catch (Exception e) { hostname = "unknown"; } StaticPropertie...
public static Ibis createIbis(StaticProperties reqprop, ResizeHandler r) throws IbisException { String hostname; try { hostname = IPUtils.getLocalHostAddress().getHostName(); } catch (Exception e) { hostname = "unknown"; } StaticPropertie...
diff --git a/crypto/src/org/bouncycastle/bcpg/SignatureSubpacket.java b/crypto/src/org/bouncycastle/bcpg/SignatureSubpacket.java index a70b0ed9..3c55776b 100644 --- a/crypto/src/org/bouncycastle/bcpg/SignatureSubpacket.java +++ b/crypto/src/org/bouncycastle/bcpg/SignatureSubpacket.java @@ -1,80 +1,80 @@ package org.bo...
true
true
public void encode( OutputStream out) throws IOException { int bodyLen = data.length + 1; if (bodyLen < 192) { out.write((byte)bodyLen); } else if (bodyLen <= 8383) { bodyLen -= 192; o...
public void encode( OutputStream out) throws IOException { int bodyLen = data.length + 1; if (bodyLen < 192) { out.write((byte)bodyLen); } else if (bodyLen <= 8383) { bodyLen -= 192; o...
diff --git a/src/no/hild1/bank/TelepayParser.java b/src/no/hild1/bank/TelepayParser.java index b3f8d1a..753f3d9 100644 --- a/src/no/hild1/bank/TelepayParser.java +++ b/src/no/hild1/bank/TelepayParser.java @@ -1,153 +1,160 @@ package no.hild1.bank; import no.hild1.bank.telepay.*; import java.io.File; import java.i...
true
true
public Betfor parseRecord(int recordNum) throws TelepayParserException { int startLine = (recordNum-1)*4; String recordString = lines[startLine] + lines[startLine+1] + lines[startLine+2] + lines[startLine+3]; if (recordString.length() != 320) { throw new TelepayParserException("Reco...
public Betfor parseRecord(int recordNum) throws TelepayParserException { int startLine = (recordNum-1)*4; String recordString = lines[startLine] + lines[startLine+1] + lines[startLine+2] + lines[startLine+3]; if (recordString.length() != 320) { throw new TelepayParserException("Reco...
diff --git a/openejb3/container/openejb-core/src/main/java/org/apache/openejb/ClassLoaderUtil.java b/openejb3/container/openejb-core/src/main/java/org/apache/openejb/ClassLoaderUtil.java index 7382a3d88..bc4390df3 100644 --- a/openejb3/container/openejb-core/src/main/java/org/apache/openejb/ClassLoaderUtil.java +++ b/o...
true
true
public static void clearSunJarFileFactoryCache(String jarLocation) { logger.debug("Clearing Sun JarFileFactory cache for directory " + jarLocation); try { Class jarFileFactory = Class.forName("sun.net.www.protocol.jar.JarFileFactory"); Field fileCacheField = jarFileFactory....
public static void clearSunJarFileFactoryCache(String jarLocation) { logger.debug("Clearing Sun JarFileFactory cache for directory " + jarLocation); try { Class jarFileFactory = Class.forName("sun.net.www.protocol.jar.JarFileFactory"); Field fileCacheField = jarFileFactory....
diff --git a/src/main/java/net/fortytwo/twitlogic/services/twitter/StatusStreamParser.java b/src/main/java/net/fortytwo/twitlogic/services/twitter/StatusStreamParser.java index 82b959b..d8805bf 100644 --- a/src/main/java/net/fortytwo/twitlogic/services/twitter/StatusStreamParser.java +++ b/src/main/java/net/fortytwo/tw...
true
true
public ExitReason parse(final InputStream is) throws IOException, TweetHandlerException { BufferedReader b = new BufferedReader(new InputStreamReader(is)); ExitReason exitReason = ExitReason.EXCEPTION_THROWN; int lines = 0; int emptyLines = 0; try { LOGGER.info("...
public ExitReason parse(final InputStream is) throws IOException, TweetHandlerException { BufferedReader b = new BufferedReader(new InputStreamReader(is)); ExitReason exitReason = ExitReason.EXCEPTION_THROWN; int lines = 0; int emptyLines = 0; try { LOGGER.info("...
diff --git a/plugins/org.eclipse.xtext.xtend2.ui/src/org/eclipse/xtext/xtend2/ui/contentassist/ContentProposalAppendable.java b/plugins/org.eclipse.xtext.xtend2.ui/src/org/eclipse/xtext/xtend2/ui/contentassist/ContentProposalAppendable.java index 7f081c0d4..63c9c9ce7 100644 --- a/plugins/org.eclipse.xtext.xtend2.ui/src...
true
true
public ContentProposalAppendable get(IXtextDocument document, EObject context, int offset) { try { XtendFile xtendFile = EcoreUtil2.getContainerOfType(context, XtendFile.class); if (xtendFile != null) { ImportManager importManager = new ImportManager(true); for (XtendImport xImport : xtendFile.ge...
public ContentProposalAppendable get(IXtextDocument document, EObject context, int offset) { try { XtendFile xtendFile = EcoreUtil2.getContainerOfType(context, XtendFile.class); if (xtendFile != null) { ImportManager importManager = new ImportManager(true); for (XtendImport xImport : xtendFile.ge...
diff --git a/src/uk/org/ponder/rsf/state/scope/ScopedBeanCoordinator.java b/src/uk/org/ponder/rsf/state/scope/ScopedBeanCoordinator.java index 7cb6860..f5177b1 100644 --- a/src/uk/org/ponder/rsf/state/scope/ScopedBeanCoordinator.java +++ b/src/uk/org/ponder/rsf/state/scope/ScopedBeanCoordinator.java @@ -1,96 +1,96 @@ ...
true
true
public void setApplicationContext(ApplicationContext applicationContext) { String[] mannames = applicationContext.getBeanNamesForType( ScopedBeanManager.class, false, true); strategies = new TSHPreservationStrategy[mannames.length]; managers = new ScopedBeanManager[mannames.length]; for (int i...
public void setApplicationContext(ApplicationContext applicationContext) { String[] mannames = applicationContext.getBeanNamesForType( ScopedBeanManager.class, false, false); strategies = new TSHPreservationStrategy[mannames.length]; managers = new ScopedBeanManager[mannames.length]; for (int ...
diff --git a/seqware-queryengine-backend/src/test/java/com/github/seqware/queryengine/model/test/TableSetupTest.java b/seqware-queryengine-backend/src/test/java/com/github/seqware/queryengine/model/test/TableSetupTest.java index 02ee5105..819b388e 100644 --- a/seqware-queryengine-backend/src/test/java/com/github/seqwar...
true
true
public static void setupTest(){ CreateUpdateManager manager = SWQEFactory.getModelManager(); aSet = manager.buildFeatureSet().setReference(manager.buildReference().setName("DummyReference").build()).build(); a1 = manager.buildFeature().setSeqid("chr1").setStart(100).setStop(101).setScore(100.0).setStrand(Feature...
public void setupTest(){ CreateUpdateManager manager = SWQEFactory.getModelManager(); aSet = manager.buildFeatureSet().setReference(manager.buildReference().setName("DummyReference").build()).build(); a1 = manager.buildFeature().setSeqid("chr1").setStart(100).setStop(101).setScore(100.0).setStrand(Feature.Strand...
diff --git a/src/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java b/src/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java index 56cf53a..808ec2b 100644 --- a/src/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java +++ b/src/java/com/android/internal/telephony/gsm/Gsm...
false
true
private void pollStateDone() { if (DBG) { log("Poll ServiceState done: " + " oldSS=[" + ss + "] newSS=[" + newSS + "] oldGprs=" + gprsState + " newData=" + newGPRSState + " oldMaxDataCalls=" + mMaxDataCalls + " mNewMaxDataCalls=" + ...
private void pollStateDone() { if (DBG) { log("Poll ServiceState done: " + " oldSS=[" + ss + "] newSS=[" + newSS + "] oldGprs=" + gprsState + " newData=" + newGPRSState + " oldMaxDataCalls=" + mMaxDataCalls + " mNewMaxDataCalls=" + ...
diff --git a/android/demo/src/vgdemo/testview/view/GraphView1.java b/android/demo/src/vgdemo/testview/view/GraphView1.java index 5717d88..0fbb0ad 100644 --- a/android/demo/src/vgdemo/testview/view/GraphView1.java +++ b/android/demo/src/vgdemo/testview/view/GraphView1.java @@ -1,34 +1,35 @@ // Copyright (c) 2012-2013, ...
true
true
public GraphView1(Context context) { super(context); int flags = ((Activity) context).getIntent().getExtras().getInt("flags"); final GraphViewHelper helper = new GraphViewHelper(this); if ((flags & 32) != 0) { helper.addShapesForTest(); } ...
public GraphView1(Context context) { super(context); int flags = ((Activity) context).getIntent().getExtras().getInt("flags"); final GraphViewHelper helper = new GraphViewHelper(this); if ((flags & 32) != 0) { helper.addShapesForTest(); flags...
diff --git a/src/java/org/apache/log4j/chainsaw/ChainsawAppender.java b/src/java/org/apache/log4j/chainsaw/ChainsawAppender.java index e409661..1301678 100755 --- a/src/java/org/apache/log4j/chainsaw/ChainsawAppender.java +++ b/src/java/org/apache/log4j/chainsaw/ChainsawAppender.java @@ -1,177 +1,175 @@ /* * Copyrig...
false
true
public void activateOptions() { if (viewerClassname == null) { viewerClassname = "org.apache.log4j.chainsaw.DefaultViewer"; } OptionConverter oc = new OptionConverter(); oc.setLoggerRepository(repository); ChainsawViewer viewer = (ChainsawViewer) oc.instantiateByClassName(viewe...
public void activateOptions() { if (viewerClassname == null) { viewerClassname = "org.apache.log4j.chainsaw.DefaultViewer"; } ChainsawViewer viewer = (ChainsawViewer) OptionConverter.instantiateByClassName(viewerClassname, ChainsawViewer.class, null); if (viewer !...
diff --git a/org.emftext.runtime.ui/src/org/emftext/runtime/ui/editor/bg_parsing/DelayedBackgroundParsingStrategy.java b/org.emftext.runtime.ui/src/org/emftext/runtime/ui/editor/bg_parsing/DelayedBackgroundParsingStrategy.java index e52f1c203..5ea2a22de 100644 --- a/org.emftext.runtime.ui/src/org/emftext/runtime/ui/edi...
false
true
public void parse(DocumentEvent event, final ITextResource resource, final EMFTextEditor editor) { final String contents = event.getDocument().get(); synchronized (timer) { // cancel old task if (task != null) { task.cancel(); // TODO stop current parser (if there is one) } timer.purge(); ...
public void parse(DocumentEvent event, final ITextResource resource, final EMFTextEditor editor) { final String contents = event.getDocument().get(); synchronized (timer) { // cancel old task if (task != null) { // stop current parser (if there is one) task.cancel(); } timer.purge(); // s...
diff --git a/core-task-impl/src/main/java/org/cytoscape/task/internal/CyActivator.java b/core-task-impl/src/main/java/org/cytoscape/task/internal/CyActivator.java index a926f33d9..0d96abc98 100644 --- a/core-task-impl/src/main/java/org/cytoscape/task/internal/CyActivator.java +++ b/core-task-impl/src/main/java/org/cyto...
false
true
public void start(BundleContext bc) { CyEventHelper cyEventHelperRef = getService(bc,CyEventHelper.class); RecentlyOpenedTracker recentlyOpenedTrackerServiceRef = getService(bc,RecentlyOpenedTracker.class); CyNetworkNaming cyNetworkNamingServiceRef = getService(bc,CyNetworkNaming.class); UndoSupport undoSuppo...
public void start(BundleContext bc) { CyEventHelper cyEventHelperRef = getService(bc,CyEventHelper.class); RecentlyOpenedTracker recentlyOpenedTrackerServiceRef = getService(bc,RecentlyOpenedTracker.class); CyNetworkNaming cyNetworkNamingServiceRef = getService(bc,CyNetworkNaming.class); UndoSupport undoSuppo...
diff --git a/protostuff-json/src/main/java/com/dyuproject/protostuff/JsonOutput.java b/protostuff-json/src/main/java/com/dyuproject/protostuff/JsonOutput.java index 78cfbe3..fc8d8a3 100644 --- a/protostuff-json/src/main/java/com/dyuproject/protostuff/JsonOutput.java +++ b/protostuff-json/src/main/java/com/dyuproject/pr...
true
true
public <T> void writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) throws IOException { JsonGenerator generator = this.generator; Schema<?> lastSchema = this.schema; if(lastNumber != fieldNumber) { if(lastRepeated) ...
public <T> void writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) throws IOException { JsonGenerator generator = this.generator; Schema<?> lastSchema = this.schema; if(lastNumber != fieldNumber) { if(lastRepeated) ...
diff --git a/src/edu/isi/pegasus/planner/code/generator/condor/CondorGenerator.java b/src/edu/isi/pegasus/planner/code/generator/condor/CondorGenerator.java index d8de882b9..a76ade364 100644 --- a/src/edu/isi/pegasus/planner/code/generator/condor/CondorGenerator.java +++ b/src/edu/isi/pegasus/planner/code/generator/con...
true
true
public Collection<File> generateCode( ADag dag ) throws CodeGeneratorException{ DagInfo ndi = dag.dagInfo; Vector vSubInfo = dag.vJobSubInfos; if ( mInitializeGridStart ){ mConcreteWorkflow = dag; mGridStartFactory.initialize( mBag, dag ); mInit...
public Collection<File> generateCode( ADag dag ) throws CodeGeneratorException{ DagInfo ndi = dag.dagInfo; Vector vSubInfo = dag.vJobSubInfos; if ( mInitializeGridStart ){ mConcreteWorkflow = dag; mGridStartFactory.initialize( mBag, dag ); mInit...
diff --git a/source/RMG/jing/chem/GATP_Solvation.java b/source/RMG/jing/chem/GATP_Solvation.java index 8b3a1b6e..b031e945 100644 --- a/source/RMG/jing/chem/GATP_Solvation.java +++ b/source/RMG/jing/chem/GATP_Solvation.java @@ -1,107 +1,107 @@ // /////////////////////////////////////////////////////////////////////////...
true
true
public ThermoData generateSolvThermoData(ChemGraph p_chemGraph) { /* * AJ 16JULY2010 The Pierotti method has now been replaced with the method of MIntz et al. based on some recent * comparisons between the 2 methods */ double R = 8.314; // Gas constant units J/mol K ...
public ThermoData generateSolvThermoData(ChemGraph p_chemGraph) { /* * AJ 16JULY2010 The Pierotti method has now been replaced with the method of MIntz et al. based on some recent * comparisons between the 2 methods */ double R = 8.314; // Gas constant units J/mol K ...
diff --git a/src/plugins/WebOfTrust/WebOfTrust.java b/src/plugins/WebOfTrust/WebOfTrust.java index 85b21f70..a5e08896 100644 --- a/src/plugins/WebOfTrust/WebOfTrust.java +++ b/src/plugins/WebOfTrust/WebOfTrust.java @@ -1,3566 +1,3567 @@ /* This code is part of WoT, a plugin for Freenet. It is distributed * under th...
false
true
private synchronized void deleteDuplicateObjects() { synchronized(mPuzzleStore) { // Needed for deleteWithoutCommit(Identity) synchronized(mFetcher) { // Needed for deleteWithoutCommit(Identity) synchronized(mSubscriptionManager) { // Needed for deleteWithoutCommit(Identity) synchronized(Persistent.transaction...
private synchronized void deleteDuplicateObjects() { synchronized(mPuzzleStore) { // Needed for deleteWithoutCommit(Identity) synchronized(mFetcher) { // Needed for deleteWithoutCommit(Identity) synchronized(mSubscriptionManager) { // Needed for deleteWithoutCommit(Identity) synchronized(Persistent.transaction...
diff --git a/aa-server/src/main/java/edu/umich/eecs/tac/sim/TACAASimulation.java b/aa-server/src/main/java/edu/umich/eecs/tac/sim/TACAASimulation.java index 4aa9622..1235f2b 100644 --- a/aa-server/src/main/java/edu/umich/eecs/tac/sim/TACAASimulation.java +++ b/aa-server/src/main/java/edu/umich/eecs/tac/sim/TACAASimulat...
true
true
private void initializeAdvertisers() { ConfigManager config = getConfig(); Random r = new Random(); SimulationAgent[] publishers = getAgents(PUBLISHER); String publisherAddress = "publisher"; if (publishers != null && publishers.length > 0 && publishers[0] != null) { publisherAddress = publishers[0]...
private void initializeAdvertisers() { ConfigManager config = getConfig(); Random r = new Random(); SimulationAgent[] publishers = getAgents(PUBLISHER); String publisherAddress = "publisher"; if (publishers != null && publishers.length > 0 && publishers[0] != null) { publisherAddress = publishers[0]...
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 7b28020..944ce33 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/utils/org/eclipse/cdt/utils/spawner/EnvironmentReader.java b/utils/org/eclipse/cdt/utils/spawner/EnvironmentReader.java index 285370a6b..a3289822a 100644 --- a/utils/org/eclipse/cdt/utils/spawner/EnvironmentReader.java +++ b/utils/org/eclipse/cdt/utils/spawner/EnvironmentReader.java @@ -1,89 +1,90 @@ pack...
false
true
public static Properties getEnvVars() { if (null != envVars) return (Properties)envVars.clone(); String OS = System.getProperty("os.name").toLowerCase(); Process p = null; envVars = new Properties(); rawVars = new Vector(32); String command = "env"; InputStream in = null; boolean check_ready = fal...
public static Properties getEnvVars() { if (null != envVars) return (Properties)envVars.clone(); String OS = System.getProperty("os.name").toLowerCase(); Process p = null; envVars = new Properties(); rawVars = new Vector(32); String command = "env"; InputStream in = null; boolean check_ready = fal...
diff --git a/src/main/java/hef/IRCTransport/IrcAgent.java b/src/main/java/hef/IRCTransport/IrcAgent.java index a006577..501e701 100644 --- a/src/main/java/hef/IRCTransport/IrcAgent.java +++ b/src/main/java/hef/IRCTransport/IrcAgent.java @@ -1,211 +1,212 @@ /** * */ package hef.IRCTransport; import java.util.l...
true
true
protected void onServerResponse(int code, String response) { Pattern responsePattern = Pattern.compile("(\\S*) (\\S*) :(.*)"); Matcher responseMatcher = responsePattern.matcher(response); responseMatcher.find(); switch(code) { case ERR_NOSUCHNICK: //TODO this needs a clearer error message case ERR_NOS...
protected void onServerResponse(int code, String response) { Pattern responsePattern = Pattern.compile("(\\S*) (\\S*) :(.*)"); Matcher responseMatcher = responsePattern.matcher(response); responseMatcher.find(); switch(code) { case ERR_NOSUCHNICK: //TODO this needs a clearer error message case ERR_NOS...
diff --git a/src/main/java/org/pandora/PandoraWorldGenerator.java b/src/main/java/org/pandora/PandoraWorldGenerator.java index 6680ab0..2a52a30 100644 --- a/src/main/java/org/pandora/PandoraWorldGenerator.java +++ b/src/main/java/org/pandora/PandoraWorldGenerator.java @@ -1,1280 +1,1280 @@ /* * Copyright (c) 2012-20...
true
true
public boolean placeBlocks(Location start, boolean fastFail) { if (plugin == null || start == null || modifiedBlocks == null) return false; else if (!modifiedBlocks.containsKey(start)) return false; Map<Block, BlockValues> modified = modifiedBlocks.get(start); if(modified.isEmpty()) return true; ...
public boolean placeBlocks(Location start, boolean fastFail) { if (plugin == null || start == null || modifiedBlocks == null) return false; else if (!modifiedBlocks.containsKey(start)) return false; Map<Block, BlockValues> modified = modifiedBlocks.get(start); if(modified.isEmpty()) return true; ...
diff --git a/src/test/java/org/jboss/dcp/api/rest/SearchRestServiceTest.java b/src/test/java/org/jboss/dcp/api/rest/SearchRestServiceTest.java index acba5ff..f4f125a 100644 --- a/src/test/java/org/jboss/dcp/api/rest/SearchRestServiceTest.java +++ b/src/test/java/org/jboss/dcp/api/rest/SearchRestServiceTest.java @@ -1,1...
true
true
public void handleSearchInicesAndTypes() { SearchRestService tested = new SearchRestService(); tested.providerService = Mockito.mock(ProviderService.class); tested.log = Logger.getLogger("testlogger"); tested.indexNamesCache = Mockito.mock(IndexNamesCache.class); QuerySettings querySettings = new QuerySetti...
public void handleSearchIndicesAndTypes() { SearchRestService tested = new SearchRestService(); tested.providerService = Mockito.mock(ProviderService.class); tested.log = Logger.getLogger("testlogger"); tested.indexNamesCache = Mockito.mock(IndexNamesCache.class); QuerySettings querySettings = new QuerySett...
diff --git a/java/src/game/stepper/SingleStepper.java b/java/src/game/stepper/SingleStepper.java index 34a8a27..c4714cf 100644 --- a/java/src/game/stepper/SingleStepper.java +++ b/java/src/game/stepper/SingleStepper.java @@ -1,344 +1,344 @@ package game.stepper; import game.Board; import game.Cell; import game.Co...
true
true
protected boolean moveRobot(State st, Command cmd) { int nextCol; int nextRow; switch (cmd) { case Left: nextCol = st.robotCol - 1; nextRow = st.robotRow; break; case Right: nextCol = st.robotCol + 1; nextRow = st.robotRow; break; case Up: nextCol...
protected boolean moveRobot(State st, Command cmd) { int nextCol; int nextRow; switch (cmd) { case Left: nextCol = st.robotCol - 1; nextRow = st.robotRow; break; case Right: nextCol = st.robotCol + 1; nextRow = st.robotRow; break; case Up: nextCol...
diff --git a/SolarPowerCalcAndroid/src/au/edu/qut/inn372/greenhat/activity/PowerGeneration.java b/SolarPowerCalcAndroid/src/au/edu/qut/inn372/greenhat/activity/PowerGeneration.java index fad8dd3..6cf760a 100644 --- a/SolarPowerCalcAndroid/src/au/edu/qut/inn372/greenhat/activity/PowerGeneration.java +++ b/SolarPowerCalc...
false
true
public void generateView() { TextView dailyField = (TextView)findViewById(R.id.TextViewDailyField); TextView annualField = (TextView)findViewById(R.id.TextViewAnnualField); TextView quaterlyField = (TextView)findViewById(R.id.TextViewQuaterlyField); TextView netField = (TextView)findViewById(R.id.T...
public void generateView() { TextView dailyField = (TextView)findViewById(R.id.TextViewDailyField); TextView annualField = (TextView)findViewById(R.id.TextViewAnnualField); TextView quaterlyField = (TextView)findViewById(R.id.TextViewQuaterlyField); TextView netField = (TextView)findViewById(R.id.T...
diff --git a/src/no/uib/ii/algo/st8/algorithms/GraphInformation.java b/src/no/uib/ii/algo/st8/algorithms/GraphInformation.java index 80628a9..849683c 100644 --- a/src/no/uib/ii/algo/st8/algorithms/GraphInformation.java +++ b/src/no/uib/ii/algo/st8/algorithms/GraphInformation.java @@ -1,96 +1,99 @@ package no.uib.ii.al...
true
true
public static String graphInfo( SimpleGraph<DefaultVertex, DefaultEdge<DefaultVertex>> graph) { int vertexCount = graph.vertexSet().size(); if (vertexCount == 0) { return "The empty graph"; } int edgeCount = graph.edgeSet().size(); if (edgeCount == 0) { if (vertexCount == 1) { return "K1"; } ...
public static String graphInfo( SimpleGraph<DefaultVertex, DefaultEdge<DefaultVertex>> graph) { int vertexCount = graph.vertexSet().size(); if (vertexCount == 0) { return "The empty graph"; } int edgeCount = graph.edgeSet().size(); if (edgeCount == 0) { if (vertexCount == 1) { return "K1"; } ...
diff --git a/moskito-webui/java/net/java/dev/moskito/webui/action/BaseMoskitoUIAction.java b/moskito-webui/java/net/java/dev/moskito/webui/action/BaseMoskitoUIAction.java index 326a749f..801fb37a 100644 --- a/moskito-webui/java/net/java/dev/moskito/webui/action/BaseMoskitoUIAction.java +++ b/moskito-webui/java/net/java...
true
true
public void preProcess(ActionMapping mapping, HttpServletRequest req, HttpServletResponse res) throws Exception { String currentIntervalName = getCurrentInterval(req); ///////////// prepare intervals List<IntervalInfo> intervalInfos = getAPI().getPresentIntervals(); List<IntervalBean> intervalBeans = new...
public void preProcess(ActionMapping mapping, HttpServletRequest req, HttpServletResponse res) throws Exception { String currentIntervalName = getCurrentInterval(req); ///////////// prepare intervals List<IntervalInfo> intervalInfos = getAPI().getPresentIntervals(); List<IntervalBean> intervalBeans = new...
diff --git a/onebusaway-nyc-presentation/src/main/java/org/onebusaway/nyc/presentation/model/DistanceAway.java b/onebusaway-nyc-presentation/src/main/java/org/onebusaway/nyc/presentation/model/DistanceAway.java index de22714..6c88e77 100644 --- a/onebusaway-nyc-presentation/src/main/java/org/onebusaway/nyc/presentation...
true
true
private String addModifiers(String s) { StringBuilder b = new StringBuilder(s); if(new Date().getTime() - timestamp.getTime() > 1000 * this.staleTimeoutSeconds) { switch(currentMode) { case SMS: b.insert(0, "~"); break; case MOBILE_WEB: b.append(" (estimated)"); break; default: ...
private String addModifiers(String s) { StringBuilder b = new StringBuilder(s); if(new Date().getTime() - timestamp.getTime() > 1000 * this.staleTimeoutSeconds) { switch(currentMode) { case SMS: b.insert(0, "~"); break; case MOBILE_WEB: b.append(" (location data is old)"); break; ...
diff --git a/web-core/src/main/java/com/stratelia/silverpeas/peasCore/servlets/ComponentRequestRouter.java b/web-core/src/main/java/com/stratelia/silverpeas/peasCore/servlets/ComponentRequestRouter.java index 9f1c1dad9c..f567ecca6d 100644 --- a/web-core/src/main/java/com/stratelia/silverpeas/peasCore/servlets/Component...
true
true
private String computeDestination(HttpServletRequest request, HttpServletResponse response) { String destination = null; request.getParameterNames(); // flush for orion // get the main session controller HttpSession session = request.getSession(true); MainSessionController mainSessionCtrl = (MainS...
private String computeDestination(HttpServletRequest request, HttpServletResponse response) { String destination = null; request.getParameterNames(); // flush for orion // get the main session controller HttpSession session = request.getSession(true); MainSessionController mainSessionCtrl = (MainS...
diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index 9a63631bd..bbde1fcef 100755 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -1,15709 +1,15710 @@ /* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* Part o...
false
true
public PImage loadImage(String filename, String extension) { //, Object params) { if (extension == null) { String lower = filename.toLowerCase(); int dot = filename.lastIndexOf('.'); if (dot == -1) { extension = "unknown"; // no extension found } extension = lower.substring(...
public PImage loadImage(String filename, String extension) { //, Object params) { if (extension == null) { String lower = filename.toLowerCase(); int dot = filename.lastIndexOf('.'); if (dot == -1) { extension = "unknown"; // no extension found } extension = lower.substring(...
diff --git a/openejb3/assembly/openejb-tomcat/openejb-tomcat-catalina/src/main/java/org/apache/openejb/tomcat/catalina/TomcatLoader.java b/openejb3/assembly/openejb-tomcat/openejb-tomcat-catalina/src/main/java/org/apache/openejb/tomcat/catalina/TomcatLoader.java index 0ee5b111d..7b4e4dfce 100644 --- a/openejb3/assembly...
true
true
public void init(Properties properties) throws Exception { // Enable System EJBs like the MEJB and DeployerEJB properties.setProperty("openejb.deployments.classpath", "true"); properties.setProperty("openejb.deployments.classpath.filter.systemapps", "false"); System.setProperty("open...
public void init(Properties properties) throws Exception { // Enable System EJBs like the MEJB and DeployerEJB properties.setProperty("openejb.deployments.classpath", "true"); properties.setProperty("openejb.deployments.classpath.filter.systemapps", "false"); System.setProperty("open...
diff --git a/Harvester/branches/Development/src/main/java/org/vivoweb/harvester/fetch/JDBCFetch.java b/Harvester/branches/Development/src/main/java/org/vivoweb/harvester/fetch/JDBCFetch.java index cf854310..65a25385 100644 --- a/Harvester/branches/Development/src/main/java/org/vivoweb/harvester/fetch/JDBCFetch.java +++...
true
true
public void execute() throws IOException { // For each Table try { for(String tableName : getTableNames()) { StringBuilder sb = new StringBuilder(); // For each Record ResultSet rs = this.cursor.executeQuery(buildSelect(tableName)); // ResultSetMetaData rsmd = rs.getMetaData(); // int Column...
public void execute() throws IOException { // For each Table try { for(String tableName : getTableNames()) { StringBuilder sb = new StringBuilder(); // For each Record ResultSet rs = this.cursor.executeQuery(buildSelect(tableName)); // ResultSetMetaData rsmd = rs.getMetaData(); // int Column...
diff --git a/web-core/src/test/java/com/silverpeas/profile/web/UserProfileTestResources.java b/web-core/src/test/java/com/silverpeas/profile/web/UserProfileTestResources.java index 6f8a00428d..cc2bf598ac 100644 --- a/web-core/src/test/java/com/silverpeas/profile/web/UserProfileTestResources.java +++ b/web-core/src/test...
false
true
public void whenSearchUsersByCriteriaThenReturn(final UserDetailsSearchCriteria criteria, final UserDetail[] users) { OrganizationController mock = getOrganizationControllerMock(); doAnswer(new Answer<UserDetail[]>() { @Override public UserDetail[] answer(InvocationOnMock invocation) th...
public void whenSearchUsersByCriteriaThenReturn(final UserDetailsSearchCriteria criteria, final UserDetail[] users) { OrganizationController mock = getOrganizationControllerMock(); doAnswer(new Answer<UserDetail[]>() { @Override public UserDetail[] answer(InvocationOnMock invocation) th...
diff --git a/src/togos/schemaschemademo/SchemaProcessor.java b/src/togos/schemaschemademo/SchemaProcessor.java index 3d45e6a..49186f0 100644 --- a/src/togos/schemaschemademo/SchemaProcessor.java +++ b/src/togos/schemaschemademo/SchemaProcessor.java @@ -1,213 +1,213 @@ package togos.schemaschemademo; import java.io....
true
true
public static void main( String[] args ) throws Exception { String sourceFilename = "-"; String phpSchemaClassNamespace = "TOGoS_Schema"; File outputSchemaPhpFile = null; File outputCreateTablesScriptFile = null; File outputDropTablesScriptFile = null; Function<String,String> tableNamer = POSTGRES_CASIFIER...
public static void main( String[] args ) throws Exception { String sourceFilename = "-"; String phpSchemaClassNamespace = "TOGoS_Schema"; File outputSchemaPhpFile = null; File outputCreateTablesScriptFile = null; File outputDropTablesScriptFile = null; Function<String,String> tableNamer = POSTGRES_CASIFIER...
diff --git a/src/com/android/gallery3d/app/TrimVideo.java b/src/com/android/gallery3d/app/TrimVideo.java index 09a2abdf..01fe462c 100644 --- a/src/com/android/gallery3d/app/TrimVideo.java +++ b/src/com/android/gallery3d/app/TrimVideo.java @@ -1,436 +1,435 @@ /* * Copyright (C) 2012 The Android Open Source Project ...
true
true
private void trimVideo() { int delta = mTrimEndTime - mTrimStartTime; // Considering that we only trim at sync frame, we don't want to trim // when the time interval is too short or too close to the origin. if (delta < 100 ) { Toast.makeText(getApplicationContext(), ...
private void trimVideo() { int delta = mTrimEndTime - mTrimStartTime; // Considering that we only trim at sync frame, we don't want to trim // when the time interval is too short or too close to the origin. if (delta < 100 ) { Toast.makeText(getApplicationContext(), ...
diff --git a/enduro-project/src/enduro/racer/printer/LapRacePrinter.java b/enduro-project/src/enduro/racer/printer/LapRacePrinter.java index f9ccce5..f066a73 100644 --- a/enduro-project/src/enduro/racer/printer/LapRacePrinter.java +++ b/enduro-project/src/enduro/racer/printer/LapRacePrinter.java @@ -1,258 +1,258 @@ pa...
true
true
private void printLaps(Racer r, StringBuilder out, StringBuilder errorTrail) { int i = 0; if(r.startTimes.get(1).size() > 0) { Time before = r.startTimes.get(1).first(); Iterator<Time> itr = r.finishTimes.get(1).iterator(); for(; i < Math.min(r.finishTimes.get(1).size(), numLaps); i++) { Time next...
private void printLaps(Racer r, StringBuilder out, StringBuilder errorTrail) { int i = 0; if(r.startTimes.get(1).size() > 0) { Time before = r.startTimes.get(1).first(); Iterator<Time> itr = r.finishTimes.get(1).iterator(); for(; i < Math.min(r.finishTimes.get(1).size(), numLaps); i++) { Time next...
diff --git a/src/plugins/Library/Library.java b/src/plugins/Library/Library.java index 6f9ed72..8790e56 100644 --- a/src/plugins/Library/Library.java +++ b/src/plugins/Library/Library.java @@ -1,765 +1,765 @@ /* This code is part of Freenet. It is distributed under the GNU General * Public License, version 2 (or at ...
true
true
private Library(PluginRespirator pr){ this.pr = pr; PluginStore ps; if(pr!=null) { this.exec = pr.getNode().executor; try { ps = pr.getStore(); } catch (DatabaseDisabledException e) { ps = null; } } else { this.exec = null; ps = null; } USKManager uskManager = pr.getNode().clientC...
private Library(PluginRespirator pr){ this.pr = pr; PluginStore ps; if(pr!=null) { this.exec = pr.getNode().executor; try { ps = pr.getStore(); } catch (DatabaseDisabledException e) { ps = null; } } else { this.exec = null; ps = null; } USKManager uskManager = pr.getNode().clientC...
diff --git a/src/main/java/uk/co/jacekk/bukkit/almostflatlands/generator/ChunkProvider.java b/src/main/java/uk/co/jacekk/bukkit/almostflatlands/generator/ChunkProvider.java index 7cefc54..f3ac51a 100755 --- a/src/main/java/uk/co/jacekk/bukkit/almostflatlands/generator/ChunkProvider.java +++ b/src/main/java/uk/co/jacekk...
true
true
public byte[][] generateBlockSections(World world, Random random, int chunkX, int chunkZ, BiomeGrid biomes){ byte[][] chunk = new byte[world.getMaxHeight() / 16][]; SimplexOctaveGenerator gen = new SimplexOctaveGenerator(new Random(world.getSeed()), 8); gen.setScale(1 / 64.0); for (int x = 0...
public byte[][] generateBlockSections(World world, Random random, int chunkX, int chunkZ, BiomeGrid biomes){ byte[][] chunk = new byte[world.getMaxHeight() / 16][]; SimplexOctaveGenerator gen = new SimplexOctaveGenerator(new Random(world.getSeed()), 8); gen.setScale(1 / 64.0); for (int x = 0...
diff --git a/src/hello/FizzBuzz.java b/src/hello/FizzBuzz.java index f18dea1..b665795 100644 --- a/src/hello/FizzBuzz.java +++ b/src/hello/FizzBuzz.java @@ -1,22 +1,21 @@ package hello; public class FizzBuzz { public static String fizzbuzz(int i) { - if (i % 15 == 0) return "FizzBuzz"; - if (i % 3 == 0) retur...
true
true
public static String fizzbuzz(int i) { if (i % 15 == 0) return "FizzBuzz"; if (i % 3 == 0) return "Fizz"; if (i % 5 == 0) return "Buzz"; return String.valueOf(i); }
public static String fizzbuzz(int i) { String fb = fizz(i) + buzz(i); if (fb.isEmpty()) return String.valueOf(i); else return fb; }
diff --git a/src/WMPlayerListener.java b/src/WMPlayerListener.java index daba395..85f13a0 100644 --- a/src/WMPlayerListener.java +++ b/src/WMPlayerListener.java @@ -1,50 +1,50 @@ import java.io.IOException; public class WMPlayerListener extends PluginListener { public void onLogin(Player player) { try { ...
true
true
public void onLogin(Player player) { try { if(Updater.isUpdateAvailable()) { player.sendMessage(Colors.Navy + "WorldManager" + Colors.White + " is out of date, please download the newest Version (" + Colors.Green + "v" + Updater.getNewestVersion() + Colors.White + ")"); } else { player.sendMessage(C...
public void onLogin(Player player) { try { if(Updater.isUpdateAvailable()) { player.sendMessage(Colors.Navy + "WorldManager" + Colors.White + " is out of date, please download the newest Version (" + Colors.Green + "v" + Updater.getNewestVersion() + Colors.White + ")"); } else { player.sendMessage(C...
diff --git a/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/NodeViewDefaultSupport.java b/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/NodeViewDefaultSupport.java index c8a32ed7e..1bf174526 100644 --- a/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/i...
true
true
protected <V> void setViewDefault(final VisualProperty<V> vpOriginal, V value) { final VisualProperty<V> vp = vpOriginal; // Null means set value to VP's default. if (value == null) value = vp.getDefault(); if (vp == DVisualLexicon.NODE_SHAPE) { setShape(((NodeShape) value)); } else if (vp == DVisual...
protected <V> void setViewDefault(final VisualProperty<V> vpOriginal, V value) { final VisualProperty<V> vp = vpOriginal; // Null means set value to VP's default. if (value == null) value = vp.getDefault(); if (vp == DVisualLexicon.NODE_SHAPE) { setShape(((NodeShape) value)); } else if (vp == DVisual...
diff --git a/Spiral-Polygonization/s2.java b/Spiral-Polygonization/s2.java index e87c122..b46079d 100644 --- a/Spiral-Polygonization/s2.java +++ b/Spiral-Polygonization/s2.java @@ -1,63 +1,63 @@ package com; import java.util.ArrayList; public class s2 { public static void main() { } public static...
false
true
public static LinkedList polygonize(Double[][] input) { //hershberg is the class of the delete-only datastructure Hershberg poly = new Hershberg(input); ArrayList<Double[]> hull = poly.inspect(); LinkedList<Double[]> convex = new LinkedList(hull[0]); LinkedList<Double[]> concave = new LinkedList(); ...
public static LinkedList polygonize(Double[][] input) { //hershberg is the class of the delete-only datastructure Hershberg poly = new Hershberg(input); ArrayList<Double[]> hull = poly.inspect(); LinkedList<Double[]> convex = new LinkedList(hull[0]); LinkedList<Double[]> concave = new LinkedList(); ...
diff --git a/htroot/ConfigBasic.java b/htroot/ConfigBasic.java index a168ed3e9..f936c2501 100644 --- a/htroot/ConfigBasic.java +++ b/htroot/ConfigBasic.java @@ -1,246 +1,246 @@ // ConfigBasic_p.java // ----------------------- // part of YaCy // (C) by Michael Peter Christen; mc@yacy.net // first published on http...
true
true
public static serverObjects respond(final httpRequestHeader header, final serverObjects post, final serverSwitch<?> env) { // return variable that accumulates replacements final plasmaSwitchboard sb = (plasmaSwitchboard) env; final serverObjects prop = new serverObjects(); f...
public static serverObjects respond(final httpRequestHeader header, final serverObjects post, final serverSwitch<?> env) { // return variable that accumulates replacements final plasmaSwitchboard sb = (plasmaSwitchboard) env; final serverObjects prop = new serverObjects(); f...
diff --git a/test/com/eteks/sweethome3d/junit/PrintTest.java b/test/com/eteks/sweethome3d/junit/PrintTest.java index 45abef55..76924f92 100644 --- a/test/com/eteks/sweethome3d/junit/PrintTest.java +++ b/test/com/eteks/sweethome3d/junit/PrintTest.java @@ -1,286 +1,290 @@ /* * PrintTest.java 27 aout 2007 * * Copy...
true
true
public void testPageSetupAndPrintPreview() throws ComponentSearchException, InterruptedException, NoSuchFieldException, IllegalAccessException, InvocationTargetException, IOException { UserPreferences preferences = new DefaultUserPreferences(); ViewFactory viewFactory = new SwingViewFactory(); Home...
public void testPageSetupAndPrintPreview() throws ComponentSearchException, InterruptedException, NoSuchFieldException, IllegalAccessException, InvocationTargetException, IOException { UserPreferences preferences = new DefaultUserPreferences(); ViewFactory viewFactory = new SwingViewFactory(); Home...
diff --git a/src/com/karhatsu/suosikkipysakit/domain/Departure.java b/src/com/karhatsu/suosikkipysakit/domain/Departure.java index 73f89ea..68560be 100644 --- a/src/com/karhatsu/suosikkipysakit/domain/Departure.java +++ b/src/com/karhatsu/suosikkipysakit/domain/Departure.java @@ -1,72 +1,72 @@ package com.karhatsu.suo...
true
true
public int getMinutesToGo() { Calendar now = Calendar.getInstance(); Calendar departure = Calendar.getInstance(); departure.set(Calendar.HOUR_OF_DAY, Integer.parseInt(time.substring(0, 2))); departure.set(Calendar.MINUTE, Integer.parseInt(time.substring(3, 5))); if (now.get(Calendar.HOUR_OF_DAY) > depart...
public int getMinutesToGo() { Calendar now = Calendar.getInstance(); Calendar departure = (Calendar) now.clone(); departure.set(Calendar.HOUR_OF_DAY, Integer.parseInt(time.substring(0, 2))); departure.set(Calendar.MINUTE, Integer.parseInt(time.substring(3, 5))); if (now.get(Calendar.HOUR_OF_DAY) > depart...
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index 82f5aea0..ee9e7a87 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -1,3536 +1,3538 @@ /* * Copyright (C) 2008 The Android Open Source Project * * Licensed u...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (LauncherApplication.isInPlaceRotationEnabled()) { // hide the status bar (temporary until we get the status bar design figured out) getWindow().setFlags(WindowManager.LayoutParams.FL...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (LauncherApplication.isInPlaceRotationEnabled()) { // hide the status bar (temporary until we get the status bar design figured out) getWindow().setFlags(WindowManager.LayoutParams.FL...
diff --git a/java/opennlp/textgrounder/gazetteers/TRGazetteer.java b/java/opennlp/textgrounder/gazetteers/TRGazetteer.java index 95c2fcc6..95fe0ba9 100644 --- a/java/opennlp/textgrounder/gazetteers/TRGazetteer.java +++ b/java/opennlp/textgrounder/gazetteers/TRGazetteer.java @@ -1,266 +1,269 @@ ////////////////////////...
false
true
protected void initialize(String location) throws FileNotFoundException, IOException, ClassNotFoundException, SQLException { System.out.println("Populating TR-Gazetteer from " + location + " ..."); Class.forName("org.sqlite.JDBC"); conn = DriverManager.getConnection("jdbc:sqlite...
protected void initialize(String location) throws FileNotFoundException, IOException, ClassNotFoundException, SQLException { System.out.println("Populating TR-Gazetteer from " + location + " ..."); Class.forName("org.sqlite.JDBC"); conn = DriverManager.getConnection("jdbc:sqlite...
diff --git a/sc_client/src/no/ebakke/studycaster/api/StudyCaster.java b/sc_client/src/no/ebakke/studycaster/api/StudyCaster.java index 1a63a29..048a461 100644 --- a/sc_client/src/no/ebakke/studycaster/api/StudyCaster.java +++ b/sc_client/src/no/ebakke/studycaster/api/StudyCaster.java @@ -1,199 +1,199 @@ package no.eba...
true
true
public StudyCaster() throws StudyCasterException { NonBlockingOutputStream consoleStream = new NonBlockingOutputStream(1024 * 128); ServerTimeLogFormatter logFormatter = new ServerTimeLogFormatter(); consoleTee = new ConsoleTee(consoleStream, logFormatter); try { serverContext = new ServerConte...
public StudyCaster() throws StudyCasterException { NonBlockingOutputStream consoleStream = new NonBlockingOutputStream(1024 * 128); ServerTimeLogFormatter logFormatter = new ServerTimeLogFormatter(); consoleTee = new ConsoleTee(consoleStream, logFormatter); try { serverContext = new ServerConte...
diff --git a/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/nmr/flow/jms/AbstractJMSFlow.java b/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/nmr/flow/jms/AbstractJMSFlow.java index 554f278cd..819249ecf 100644 --- a/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/nmr/flow/jms/A...
false
true
public void doRouting(MessageExchangeImpl me) throws MessagingException { // let ActiveMQ do the routing ... try { String destination; if (me.getRole() == Role.PROVIDER) { if (me.getDestinationId() == null) { destination = INBOUND_PREFIX + ...
public void doRouting(MessageExchangeImpl me) throws MessagingException { // let ActiveMQ do the routing ... try { String destination; if (me.getRole() == Role.PROVIDER) { if (me.getDestinationId() == null) { destination = INBOUND_PREFIX + ...
diff --git a/tests/src/com/vaadin/tests/components/table/ItemClickEvents.java b/tests/src/com/vaadin/tests/components/table/ItemClickEvents.java index 77b628957..537461ce0 100644 --- a/tests/src/com/vaadin/tests/components/table/ItemClickEvents.java +++ b/tests/src/com/vaadin/tests/components/table/ItemClickEvents.java...
true
true
public void setup() { log.setDebugId("log"); HorizontalLayout ol = createHorizontalLayout(table); Button b = new Button("icon", new Button.ClickListener() { public void buttonClick(ClickEvent event) { if (tree.getItemIconPropertyId() == null) { ...
public void setup() { log.setDebugId("log"); HorizontalLayout ol = createHorizontalLayout(tree); Button b = new Button("icon", new Button.ClickListener() { public void buttonClick(ClickEvent event) { if (tree.getItemIconPropertyId() == null) { ...
diff --git a/src/main/java/net/sourceforge/sizeof/SizeOf.java b/src/main/java/net/sourceforge/sizeof/SizeOf.java index 2f99633..a6e6569 100644 --- a/src/main/java/net/sourceforge/sizeof/SizeOf.java +++ b/src/main/java/net/sourceforge/sizeof/SizeOf.java @@ -1,340 +1,340 @@ package net.sourceforge.sizeof; import java...
true
true
private static long deepSizeOf(Object o, Map<Object, Object> doneObj, int depth) { if(o == null) { if(debug) print("null\n"); return 0; } long size = 0; if(doneObj.containsKey(o)) { if(debug) print("\n%s{ already i...
private static long deepSizeOf(Object o, Map<Object, Object> doneObj, int depth) { if(o == null) { if(debug) print("null\n"); return 0; } long size = 0; if(doneObj.containsKey(o)) { if(debug) print("\n%s{ already i...
diff --git a/src/au/com/addstar/birthdaygift/Database.java b/src/au/com/addstar/birthdaygift/Database.java index 35124b4..9148b55 100644 --- a/src/au/com/addstar/birthdaygift/Database.java +++ b/src/au/com/addstar/birthdaygift/Database.java @@ -1,251 +1,252 @@ package au.com.addstar.birthdaygift; /* * BirthdayGift ...
true
true
public boolean OpenDatabase() { try { Conn = DriverManager.getConnection("jdbc:sqlite:plugins/" + plugin.getName() + "/" + DBFilename); IsConnected = true; if (TableExists(Conn, "birthdaygift")) { // Check/update existing table if (!ColumnExists(Conn, "birthdaygift", "lastAnnouncedDate")) { ...
public boolean OpenDatabase() { try { Class.forName("org.sqlite.JDBC"); Conn = DriverManager.getConnection("jdbc:sqlite:plugins/" + plugin.getName() + "/" + DBFilename); IsConnected = true; if (TableExists(Conn, "birthdaygift")) { // Check/update existing table if (!ColumnExists(Conn, "birthd...
diff --git a/nuxeo-platform-webapp-base/src/main/java/org/nuxeo/ecm/webapp/clipboard/ClipboardActionsBean.java b/nuxeo-platform-webapp-base/src/main/java/org/nuxeo/ecm/webapp/clipboard/ClipboardActionsBean.java index b79b2639..4f8ecfd5 100644 --- a/nuxeo-platform-webapp-base/src/main/java/org/nuxeo/ecm/webapp/clipboard...
true
true
public String exportWorklistAsZip(List<DocumentModel> documents, boolean exportAllBlobs) throws ClientException { try { SummaryImpl summary = new SummaryImpl(); SummaryEntry summaryRoot = new SummaryEntry("", SUMMARY_HEADER, new Date(), "", "", null);...
public String exportWorklistAsZip(List<DocumentModel> documents, boolean exportAllBlobs) throws ClientException { try { SummaryImpl summary = new SummaryImpl(); SummaryEntry summaryRoot = new SummaryEntry("", SUMMARY_HEADER, new Date(), "", "", null);...
diff --git a/src/test/java/npanday/its/NPandayIT0020Test.java b/src/test/java/npanday/its/NPandayIT0020Test.java index 6a2053c..f888b4a 100644 --- a/src/test/java/npanday/its/NPandayIT0020Test.java +++ b/src/test/java/npanday/its/NPandayIT0020Test.java @@ -1,52 +1,52 @@ package npanday.its; /* * Copyright 2010 ...
true
true
public void testEmbeddedResources() throws Exception { File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/NPandayIT0020" ); Verifier verifier = getVerifier( testDir ); verifier.executeGoal( "install" ); verifier.assertFilePresent( ...
public void testEmbeddedResources() throws Exception { File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/NPandayIT0020" ); Verifier verifier = getVerifier( testDir ); verifier.executeGoal( "install" ); verifier.assertFilePresent( ...
diff --git a/src/tw/edu/chu/csie/e_learning/util/LearningUtils.java b/src/tw/edu/chu/csie/e_learning/util/LearningUtils.java index af49cb3..a2ca03b 100644 --- a/src/tw/edu/chu/csie/e_learning/util/LearningUtils.java +++ b/src/tw/edu/chu/csie/e_learning/util/LearningUtils.java @@ -1,118 +1,118 @@ package tw.edu.chu.csi...
true
true
public void getPointIdOfLearningPoint(String userID,String pointNumber) throws ServerException, JSONException, ClientProtocolException, IOException, HttpException { String message = connect.getPointIdOfLearningPoint(userID, pointNumber); if(message.equals(null)) { decode.DecodeJSONData(message,"first"); ...
public void getPointIdOfLearningPoint(String userID,String pointNumber) throws ServerException, JSONException, ClientProtocolException, IOException, HttpException { String message = connect.getPointIdOfLearningPoint(userID, pointNumber); if(!message.equals("null")) { decode.DecodeJSONData(message,"first");...
diff --git a/src/ooxml/testcases/org/apache/poi/xssf/model/TestMapInfo.java b/src/ooxml/testcases/org/apache/poi/xssf/model/TestMapInfo.java index 35c80f06d..465a5beba 100755 --- a/src/ooxml/testcases/org/apache/poi/xssf/model/TestMapInfo.java +++ b/src/ooxml/testcases/org/apache/poi/xssf/model/TestMapInfo.java @@ -1,8...
true
true
public void testMapInfoExists() throws Exception { XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("CustomXmlMappings.xlsx"); MapInfo mapInfo = null; SingleXmlCells singleXMLCells = null; for (POIXMLDocumentPart p : wb.getRelations()) { if (p instanceof Map...
public void testMapInfoExists() throws Exception { XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("CustomXmlMappings.xlsx"); MapInfo mapInfo = null; SingleXmlCells singleXMLCells = null; for (POIXMLDocumentPart p : wb.getRelations()) { if (p instanceof Map...
diff --git a/src/main/java/it/nuccioservizi/as400querier/AppCli.java b/src/main/java/it/nuccioservizi/as400querier/AppCli.java index 57199b9..3be90f7 100644 --- a/src/main/java/it/nuccioservizi/as400querier/AppCli.java +++ b/src/main/java/it/nuccioservizi/as400querier/AppCli.java @@ -1,109 +1,110 @@ package it.nuccios...
true
true
public static void main(final String[] args) throws IOException, SQLException { final ArgsParser argsParser = new ArgsParser(args); final AppProperties properties = loadProperties(); final String host = properties.get(Property.AS400_HOST); final String user = properties.get(Property.AS400_USERNAME); ...
public static void main(final String[] args) throws IOException, SQLException { final ArgsParser argsParser = new ArgsParser(args); final AppProperties properties = loadProperties(); final String host = properties.get(Property.AS400_HOST); final String user = properties.get(Property.AS400_USERNAME); ...
diff --git a/srcj/com/sun/electric/tool/user/ui/EditWindow.java b/srcj/com/sun/electric/tool/user/ui/EditWindow.java index 1ffd64d20..c3011aa47 100755 --- a/srcj/com/sun/electric/tool/user/ui/EditWindow.java +++ b/srcj/com/sun/electric/tool/user/ui/EditWindow.java @@ -1,3847 +1,3849 @@ /* -*- tab-width: 4 -*- * * ...
true
true
public void upHierarchy() { if (cell == null) return; Cell oldCell = cell; // determine which export is selected so it can be shown in the upper level Export selectedExport = null; Set<Network> nets = highlighter.getHighlightedNetworks(); for(Network net : nets) ...
public void upHierarchy() { if (cell == null) return; Cell oldCell = cell; // determine which export is selected so it can be shown in the upper level Export selectedExport = null; Set<Network> nets = highlighter.getHighlightedNetworks(); for(Network net : nets) ...
diff --git a/alitheia/web-services/src/eu/sqooss/impl/service/web/services/ProjectManager.java b/alitheia/web-services/src/eu/sqooss/impl/service/web/services/ProjectManager.java index 94db6c15..71c000cd 100644 --- a/alitheia/web-services/src/eu/sqooss/impl/service/web/services/ProjectManager.java +++ b/alitheia/web-se...
true
true
public WSProjectVersion[] getFirstProjectVersions(String userName, String password, long[] projectsIds) { db.startDBSession(); StringBuilder b = new StringBuilder(); for (long l : projectsIds) { b.append(l); b.append(","); } logger.info("R...
public WSProjectVersion[] getFirstProjectVersions(String userName, String password, long[] projectsIds) { db.startDBSession(); StringBuilder b = new StringBuilder(); for (long l : projectsIds) { b.append(l); b.append(","); } logger.info("R...
diff --git a/src/main/java/hudson/plugins/greenballs/GreenBallFilter.java b/src/main/java/hudson/plugins/greenballs/GreenBallFilter.java index f3f28b8..f468116 100644 --- a/src/main/java/hudson/plugins/greenballs/GreenBallFilter.java +++ b/src/main/java/hudson/plugins/greenballs/GreenBallFilter.java @@ -1,56 +1,57 @@ ...
true
true
public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException, ServletException { if (req instanceof HttpServletRequest && resp instanceof HttpServletResponse) { final HttpServletRequest httpServletRequest = (HttpServletRequest) req; ...
public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException, ServletException { if (req instanceof HttpServletRequest && resp instanceof HttpServletResponse) { final HttpServletRequest httpServletRequest = (HttpServletRequest) req; ...
diff --git a/Hog/src/util/ast/node/ConstantNode.java b/Hog/src/util/ast/node/ConstantNode.java index 82f05f2..1096ef5 100644 --- a/Hog/src/util/ast/node/ConstantNode.java +++ b/Hog/src/util/ast/node/ConstantNode.java @@ -1,45 +1,45 @@ package util.ast.node; import java.util.ArrayList; import java.util.List; imp...
true
true
public ConstantNode(Types.Primitive type, String value) { super(new ArrayList<Node>(), new PrimitiveTypeNode(type)); this.value = value; ConstantNode.LOGGER.info("Constructing ConstantNode"); }
public ConstantNode(Types.Primitive type, String value) { super(new PrimitiveTypeNode(type), new ArrayList<Node>()); this.value = value; ConstantNode.LOGGER.info("Constructing ConstantNode"); }
diff --git a/src/com/simPL/visitor/SimPL.java b/src/com/simPL/visitor/SimPL.java index 3963448..28aceb5 100644 --- a/src/com/simPL/visitor/SimPL.java +++ b/src/com/simPL/visitor/SimPL.java @@ -1,94 +1,96 @@ package com.simPL.visitor; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStre...
true
true
public static void main(String[] args) { // TODO Auto-generated method stub String banner = ""; try { BufferedReader reader = new BufferedReader(new FileReader("banner")); String tmpstring = ""; while((tmpstring = reader.readLine()) != null) banner = banner + tmpstring + '\n'; } catch (FileNotFoun...
public static void main(String[] args) { // TODO Auto-generated method stub String banner = ""; try { BufferedReader reader = new BufferedReader(new FileReader("banner")); String tmpstring = ""; while((tmpstring = reader.readLine()) != null) banner = banner + tmpstring + '\n'; } catch (FileNotFoun...
diff --git a/src/supermecado/Util.java b/src/supermecado/Util.java index e5d04fb..ca9953d 100644 --- a/src/supermecado/Util.java +++ b/src/supermecado/Util.java @@ -1,81 +1,81 @@ package supermecado; import java.lang.reflect.Field; import java.text.ParseException; import java.text.SimpleDateFormat; import java.u...
true
true
public static void valida(Object obj)throws ValidaException{ StringBuffer msg = new StringBuffer(); Field[] atributos = obj.getClass().getFields(); for(Field f : atributos){ f.setAccessible(true); Validacao val = f.getAnnotation(Validacao.class); if (val!= null && val.requerido()) { try { if (f...
public static void valida(Object obj)throws ValidaException{ StringBuffer msg = new StringBuffer(); Field[] atributos = obj.getClass().getDeclaredFields(); for(Field f : atributos){ f.setAccessible(true); Validacao val = f.getAnnotation(Validacao.class); if (val!= null && val.requerido()) { try { ...
diff --git a/nuxeo-drive-server/nuxeo-drive-core/src/test/java/org/nuxeo/drive/service/TestNuxeoDriveManager.java b/nuxeo-drive-server/nuxeo-drive-core/src/test/java/org/nuxeo/drive/service/TestNuxeoDriveManager.java index a3444c9b..2fc56715 100644 --- a/nuxeo-drive-server/nuxeo-drive-core/src/test/java/org/nuxeo/drive...
false
true
public void testSynchronizeRootMultiUsers() throws Exception { Principal user1 = user1Session.getPrincipal(); Principal user2 = user2Session.getPrincipal(); // by default no user has any synchronization registered checkRootsCount(user1, 0); checkRootsCount(user2, 0); ...
public void testSynchronizeRootMultiUsers() throws Exception { Principal user1 = user1Session.getPrincipal(); Principal user2 = user2Session.getPrincipal(); // by default no user has any synchronization registered checkRootsCount(user1, 0); checkRootsCount(user2, 0); ...
diff --git a/srcj/com/sun/electric/tool/ncc/basic/CompareList.java b/srcj/com/sun/electric/tool/ncc/basic/CompareList.java index 24af32f49..1a215f752 100755 --- a/srcj/com/sun/electric/tool/ncc/basic/CompareList.java +++ b/srcj/com/sun/electric/tool/ncc/basic/CompareList.java @@ -1,176 +1,176 @@ /* -*- tab-width: 4 -*...
true
true
public CompareList(Cell cell, CellUsage use1, CellUsage use2, Set<CellGroup> visitedGroups) { NccCellAnnotations ann = NccCellAnnotations.getAnnotations(cell); Cell.CellGroup group = cell.getCellGroup(); // if a Cell is moving to another group then explore that group // instead of the Cell's cur...
public CompareList(Cell cell, CellUsage use1, CellUsage use2, Set<CellGroup> visitedGroups) { NccCellAnnotations ann = NccCellAnnotations.getAnnotations(cell); Cell.CellGroup group = cell.getCellGroup(); // if a Cell is moving to another group then explore that group // instead of the Cell's cur...
diff --git a/app/src/org/jraf/android/bikey/backend/compass/CompassManager.java b/app/src/org/jraf/android/bikey/backend/compass/CompassManager.java index 5f35014..b86f1fe 100644 --- a/app/src/org/jraf/android/bikey/backend/compass/CompassManager.java +++ b/app/src/org/jraf/android/bikey/backend/compass/CompassManager....
true
true
public void onSensorChanged(SensorEvent event) { // Log.d(); // if (event.accuracy == SensorManager.SENSOR_STATUS_UNRELIABLE) return; if (System.currentTimeMillis() - mLastDate < RATE) return; float[] values = event.values.clone(); ...
public void onSensorChanged(SensorEvent event) { // Log.d(); // if (event.accuracy == SensorManager.SENSOR_STATUS_UNRELIABLE) return; if (System.currentTimeMillis() - mLastDate < RATE) return; float[] values = event.values.clone(); ...
diff --git a/src/gtna/networks/model/Regular.java b/src/gtna/networks/model/Regular.java index b03d1776..dc4d11d1 100644 --- a/src/gtna/networks/model/Regular.java +++ b/src/gtna/networks/model/Regular.java @@ -1,178 +1,178 @@ /* * =========================================================== * GTNA : Graph-Theoreti...
false
true
private boolean addRingEdges(Node[] nodes, Edges edges, int toAdd){ for(int i = 0; i < nodes.length; i++){ for(int j = 0; j < DEGREE; j++){ int src = i; int dst = i+j; // get the next neighbor if (src == dst) { continue; } if (this.BIDIRECTIONAL) { edges.add(src, dst); edges.a...
private boolean addRingEdges(Node[] nodes, Edges edges, int toAdd){ for(int i = 0; i < nodes.length; i++){ for(int j = 1; j <= DEGREE; j++){ int src = i; int dst = (i+j)%(nodes.length-1); // get the next neighbor if (src == dst) { continue; } if (this.BIDIRECTIONAL) { edges.add(src...
diff --git a/src/ru/spbau/bioinf/tagfinder/AllDataGenerator.java b/src/ru/spbau/bioinf/tagfinder/AllDataGenerator.java index 7fbb38a..b7cbd25 100644 --- a/src/ru/spbau/bioinf/tagfinder/AllDataGenerator.java +++ b/src/ru/spbau/bioinf/tagfinder/AllDataGenerator.java @@ -1,148 +1,148 @@ package ru.spbau.bioinf.tagfinder;...
true
true
public static void main(String[] args) throws Exception { //ValidTags.main(args); System.out.println("\\documentclass{article}[12pt]\n" + "\n" + "\\usepackage{amsmath}\n" + "\\usepackage{amsthm}\n" + "\\usepackage{booktabs}\n" + ...
public static void main(String[] args) throws Exception { ValidTags2.main(args); System.out.println("\\documentclass{article}[12pt]\n" + "\n" + "\\usepackage{amsmath}\n" + "\\usepackage{amsthm}\n" + "\\usepackage{booktabs}\n" + ...
diff --git a/src/V1.java b/src/V1.java index b762472..3334b42 100644 --- a/src/V1.java +++ b/src/V1.java @@ -1,6 +1,7 @@ public class V1 { public static void main(String args[]){ System.out.println("This is the master code"); + System.out.println("\n"+"This is the bug fix. Now Version 1.1"); } }
true
true
public static void main(String args[]){ System.out.println("This is the master code"); }
public static void main(String args[]){ System.out.println("This is the master code"); System.out.println("\n"+"This is the bug fix. Now Version 1.1"); }
diff --git a/model/br/zero/controlefinanceiro/model/ContaDAO.java b/model/br/zero/controlefinanceiro/model/ContaDAO.java index 98fd030..28e1000 100644 --- a/model/br/zero/controlefinanceiro/model/ContaDAO.java +++ b/model/br/zero/controlefinanceiro/model/ContaDAO.java @@ -1,85 +1,85 @@ package br.zero.controlefinancei...
true
true
public List<String> getReferenciaExtratoList(Conta banco, Conta conta) { StringBuilder listaReferenciaExtratoList = new StringBuilder(); listaReferenciaExtratoList.append("select\n"); listaReferenciaExtratoList.append(" re\n"); listaReferenciaExtratoList.append("\n"); listaReferenciaExtratoList.append("fro...
public List<String> getReferenciaExtratoList(Conta banco, Conta conta) { StringBuilder listaReferenciaExtratoList = new StringBuilder(); listaReferenciaExtratoList.append("select\n"); listaReferenciaExtratoList.append(" re\n"); listaReferenciaExtratoList.append("\n"); listaReferenciaExtratoList.append("fro...
diff --git a/src/org/nbphpcouncil/modules/php/yii/editor/YiiGoToFileHyperlinkProvider.java b/src/org/nbphpcouncil/modules/php/yii/editor/YiiGoToFileHyperlinkProvider.java index 299a89b..884fcf3 100644 --- a/src/org/nbphpcouncil/modules/php/yii/editor/YiiGoToFileHyperlinkProvider.java +++ b/src/org/nbphpcouncil/modules/...
true
true
private List<GoToItem> createGoToTItems(PhpModule phpModule, TokenSequence<PHPTokenId> ts, int offset) { List<GoToItem> items = new ArrayList<GoToItem>(); YiiModule yiiModule = YiiModuleFactory.create(phpModule); FileObject application = yiiModule.getApplication(); if (application =...
private List<GoToItem> createGoToTItems(PhpModule phpModule, TokenSequence<PHPTokenId> ts, int offset) { List<GoToItem> items = new ArrayList<GoToItem>(); YiiModule yiiModule = YiiModuleFactory.create(phpModule); FileObject application = yiiModule.getApplication(); if (application =...
diff --git a/src/com/lunasoft/dynasty/tools/mapeditor/HexGridDimensions.java b/src/com/lunasoft/dynasty/tools/mapeditor/HexGridDimensions.java index 1a11ed2..24011db 100644 --- a/src/com/lunasoft/dynasty/tools/mapeditor/HexGridDimensions.java +++ b/src/com/lunasoft/dynasty/tools/mapeditor/HexGridDimensions.java @@ -1,1...
true
true
public Point getHexContaining(double x, double y) { double gridWidth = hexDimensions.getInRadius(); double gridHeight = hexDimensions.getCircumRadius() / 2; int iGrid = (int) (x / gridWidth); int jGrid = (int) (y / gridHeight); double iGridX = x - iGrid * gridWidth; double iGridY = y - jGrid * gridHeight; ...
public Point getHexContaining(double x, double y) { double gridWidth = hexDimensions.getInRadius(); double gridHeight = hexDimensions.getCircumRadius() / 2; int iGrid = (int) (x / gridWidth); int jGrid = (int) (y / gridHeight); double iGridX = x - iGrid * gridWidth; double iGridY = y - jGrid * gridHeight; ...
diff --git a/2115RobotCode/src/Jordan/bau5/FRC2115/OI.java b/2115RobotCode/src/Jordan/bau5/FRC2115/OI.java index 01cbbc5..17d9053 100644 --- a/2115RobotCode/src/Jordan/bau5/FRC2115/OI.java +++ b/2115RobotCode/src/Jordan/bau5/FRC2115/OI.java @@ -1,27 +1,27 @@ package Jordan.bau5.FRC2115; import Jordan.bau5.FRC2115.c...
true
true
public OI() { j1 = new Joystick(JOYSTICK_ONE_PORT); j2 = new Joystick(JOYSTICK_TWO_PORT); plungerButton = new JoystickButton(j1, 1); bridgeButton = new JoystickButton(j1, 2); rollerButton = new JoystickButton(j1, 3); plungerButton.whenPressed(new DeployPlunger(50...
public OI() { j1 = new Joystick(JOYSTICK_ONE_PORT); j2 = new Joystick(JOYSTICK_TWO_PORT); plungerButton = new JoystickButton(j1, 1); bridgeButton = new JoystickButton(j1, 2); rollerButton = new JoystickButton(j1, 3); plungerButton.whenPressed(new DeployPlunger(0....
diff --git a/examples/RunScript3.java b/examples/RunScript3.java index 7baeba8a..d7bcc89a 100644 --- a/examples/RunScript3.java +++ b/examples/RunScript3.java @@ -1,88 +1,88 @@ /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL...
true
true
public static void main(String args[]) { Context cx = Context.enter(); try { Scriptable scope = cx.initStandardObjects(); // Collect the arguments into a single string. String s = ""; for (int i=0; i < args.length; i++) { s += args...
public static void main(String args[]) { Context cx = Context.enter(); try { Scriptable scope = cx.initStandardObjects(); // Collect the arguments into a single string. String s = ""; for (int i=0; i < args.length; i++) { s += args...
diff --git a/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/JobNotificationThread.java b/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/JobNotificationThread.java index 5b29b47a9..ea8b1ce29 100644 --- a/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/sy...
false
true
public void run() { resetManager.registerMe(); try { // Create a thread context object. IThreadContext threadContext = ThreadContextFactory.make(); IJobManager jobManager = JobManagerFactory.make(threadContext); IOutputConnectionManager connectionManager = OutputConnectionManage...
public void run() { resetManager.registerMe(); try { // Create a thread context object. IThreadContext threadContext = ThreadContextFactory.make(); IJobManager jobManager = JobManagerFactory.make(threadContext); IOutputConnectionManager connectionManager = OutputConnectionManage...