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/org/pentaho/platform/dataaccess/datasource/wizard/models/DatasourceDTOUtil.java b/src/org/pentaho/platform/dataaccess/datasource/wizard/models/DatasourceDTOUtil.java index 48e82091..0c8c1bba 100644 --- a/src/org/pentaho/platform/dataaccess/datasource/wizard/models/DatasourceDTOUtil.java +++ b/src/org/p...
true
true
public static DatasourceDTO generateDTO(DatasourceModel model){ DatasourceDTO dto = new DatasourceDTO(); dto.setDatasourceName(model.getDatasourceName()); dto.setCsvModelInfo(model.getModelInfo()); dto.setDatasourceType(model.getDatasourceType()); dto.setQuery(model.getQuery()); dto.setConnect...
public static DatasourceDTO generateDTO(DatasourceModel model){ DatasourceDTO dto = new DatasourceDTO(); dto.setDatasourceName(model.getDatasourceName()); dto.setCsvModelInfo(model.getModelInfo()); dto.setDatasourceType(model.getDatasourceType()); dto.setQuery(model.getQuery()); if(model.getSe...
diff --git a/src/chlorophytum/story/view/StoryStage.java b/src/chlorophytum/story/view/StoryStage.java index 5789ecb..c6fd571 100644 --- a/src/chlorophytum/story/view/StoryStage.java +++ b/src/chlorophytum/story/view/StoryStage.java @@ -1,169 +1,169 @@ /* * Copyright (C) 2013 caryoscelus * * This program is fr...
true
true
protected void setupUi (StoryContext piece) { final Skin skin = UiManager.instance().skin(); final Table table = new Table(); table.setFillParent(true); final Window winDialog = new Window("----", skin); table.add(winDialog).width(600).height(400); S...
protected void setupUi (StoryContext piece) { final Skin skin = UiManager.instance().skin(); final Table table = new Table(); table.setFillParent(true); final Window winDialog = new Window("----", skin); table.add(winDialog).width(600).height(400); S...
diff --git a/4dnest/src/org/fourdnest/androidclient/ui/ChooseSetupMethodActivity.java b/4dnest/src/org/fourdnest/androidclient/ui/ChooseSetupMethodActivity.java index 3b7799c..41b374b 100644 --- a/4dnest/src/org/fourdnest/androidclient/ui/ChooseSetupMethodActivity.java +++ b/4dnest/src/org/fourdnest/androidclient/ui/Ch...
false
true
public void onCreate(Bundle savedInstanceState) { Button QRButton = (Button) findViewById(R.id.setup_qr); Button manualButton = (Button) findViewById(R.id.setup_manual); QRButton.setOnClickListener(new OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub } ...
public void onCreate(Bundle savedInstanceState) { /* Button QRButton = (Button) findViewById(R.id.setup_qr); Button manualButton = (Button) findViewById(R.id.setup_manual); QRButton.setOnClickListener(new OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub ...
diff --git a/src/edu/csupomona/kyra/component/ai/AIComponent.java b/src/edu/csupomona/kyra/component/ai/AIComponent.java index 257bffa..70983f7 100644 --- a/src/edu/csupomona/kyra/component/ai/AIComponent.java +++ b/src/edu/csupomona/kyra/component/ai/AIComponent.java @@ -1,96 +1,96 @@ /*******************************...
true
true
public Line getLineToTarget() { Line p1Line = getLineToPlayer(player1); if (Kyra.vs) { Line p2Line = getLineToPlayer(player2); //If a player is dead, return the living player's line if it is clear if (p1Line != null && p2Line == null) { if (clearPathToPlayer(p1Line)) return p1Line; return nul...
public Line getLineToTarget() { Line p1Line = getLineToPlayer(player1); if (Kyra.vs) { Line p2Line = getLineToPlayer(player2); //If a player is dead, return the living player's line if it is clear if (p1Line != null && p2Line == null) { if (clearPathToPlayer(p1Line)) return p1Line; return nul...
diff --git a/src/org/teaframework/demo/GitDemo1.java b/src/org/teaframework/demo/GitDemo1.java index 2d61c64..6753eb5 100644 --- a/src/org/teaframework/demo/GitDemo1.java +++ b/src/org/teaframework/demo/GitDemo1.java @@ -1,19 +1,20 @@ /** * */ package org.teaframework.demo; /** * @author Administrator * ...
true
true
public static void main(String[] args) { System.out.println("Hello World for Story ID 7333385!"); }
public static void main(String[] args) { System.out.println("Hello World for Story ID 7333385!"); System.out.println("Hello World for Story ID 7333385! Second one."); }
diff --git a/MonTransit/src/org/montrealtransit/android/activity/FavListTab.java b/MonTransit/src/org/montrealtransit/android/activity/FavListTab.java index 6521c7f4..5c852720 100644 --- a/MonTransit/src/org/montrealtransit/android/activity/FavListTab.java +++ b/MonTransit/src/org/montrealtransit/android/activity/FavLi...
false
true
private void refreshSubwayStations() { List<DataStore.Fav> newSubwayFavList = DataManager.findFavsByTypeList(getContentResolver(), DataStore.Fav.KEY_TYPE_VALUE_SUBWAY_STATION); if (this.currentSubwayStationFavList == null || this.currentSubwayStationFavList.size() != newSubwayFavList.size()) { ...
private void refreshSubwayStations() { List<DataStore.Fav> newSubwayFavList = DataManager.findFavsByTypeList(getContentResolver(), DataStore.Fav.KEY_TYPE_VALUE_SUBWAY_STATION); if (this.currentSubwayStationFavList == null || this.currentSubwayStationFavList.size() != newSubwayFavList.size()) { ...
diff --git a/tests/org.eclipse.rap.rwt.test/src/org/eclipse/swt/widgets/Widget_Test.java b/tests/org.eclipse.rap.rwt.test/src/org/eclipse/swt/widgets/Widget_Test.java index 880c219e2..4e4254fc8 100644 --- a/tests/org.eclipse.rap.rwt.test/src/org/eclipse/swt/widgets/Widget_Test.java +++ b/tests/org.eclipse.rap.rwt.test/...
true
true
public void testData() { Display display = new Display(); Shell shell = new Shell( display, SWT.NONE ); Widget widget = new Text( shell, SWT.NONE ); // Test initial state assertEquals( null, widget.getData() ); Object singleData = new Object(); // Set/get some single data wid...
public void testData() { Display display = new Display(); Shell shell = new Shell( display, SWT.NONE ); Widget widget = new Text( shell, SWT.NONE ); // Test initial state assertEquals( null, widget.getData() ); Object singleData = new Object(); // Set/get some single data wid...
diff --git a/src/com/android/settings/RingerVolumePreference.java b/src/com/android/settings/RingerVolumePreference.java index 0dd1e890c..e05933752 100644 --- a/src/com/android/settings/RingerVolumePreference.java +++ b/src/com/android/settings/RingerVolumePreference.java @@ -1,454 +1,454 @@ /* * Copyright (C) 2008 ...
true
true
protected void onBindDialogView(View view) { super.onBindDialogView(view); for (int i = 0; i < SEEKBAR_ID.length; i++) { SeekBar seekBar = (SeekBar) view.findViewById(SEEKBAR_ID[i]); mSeekBars[i] = seekBar; if (SEEKBAR_TYPE[i] == AudioManager.STREAM_MUSIC) { ...
protected void onBindDialogView(View view) { super.onBindDialogView(view); for (int i = 0; i < SEEKBAR_ID.length; i++) { SeekBar seekBar = (SeekBar) view.findViewById(SEEKBAR_ID[i]); mSeekBars[i] = seekBar; if (SEEKBAR_TYPE[i] == AudioManager.STREAM_MUSIC) { ...
diff --git a/src/rajawali/BaseObject3D.java b/src/rajawali/BaseObject3D.java index 7b304059..f141d359 100644 --- a/src/rajawali/BaseObject3D.java +++ b/src/rajawali/BaseObject3D.java @@ -1,817 +1,820 @@ package rajawali; import java.nio.IntBuffer; import java.nio.ShortBuffer; import java.util.ArrayList; import j...
false
true
public void render(Camera camera, float[] projMatrix, float[] vMatrix, final float[] parentMatrix, ColorPickerInfo pickerInfo) { if (!mIsVisible) return; preRender(); // -- move view matrix transformation first Matrix.setIdentityM(mMMatrix, 0); Matrix.setIdentityM(mScalematrix, 0); Matrix.scaleM(mS...
public void render(Camera camera, float[] projMatrix, float[] vMatrix, final float[] parentMatrix, ColorPickerInfo pickerInfo) { if (!mIsVisible) return; preRender(); // -- move view matrix transformation first Matrix.setIdentityM(mMMatrix, 0); Matrix.setIdentityM(mScalematrix, 0); Matrix.scaleM(mS...
diff --git a/src/net/loadingchunks/plugins/Leeroy/Types/BasicNPC.java b/src/net/loadingchunks/plugins/Leeroy/Types/BasicNPC.java index 2dadcc9..d79ee53 100644 --- a/src/net/loadingchunks/plugins/Leeroy/Types/BasicNPC.java +++ b/src/net/loadingchunks/plugins/Leeroy/Types/BasicNPC.java @@ -1,139 +1,139 @@ package net.lo...
true
true
public BasicNPC(Leeroy plugin, String name, Location l, String id, String msg1, String msg2, String msg3, String msg4, boolean isnew, String world, String hrtype, String type) { this.plugin = plugin; this.original = l; this.manager = new NPCManager(plugin); this.name = name; this.npc = (HumanNPC)manager.spa...
public BasicNPC(Leeroy plugin, String name, Location l, String id, String msg1, String msg2, String msg3, String msg4, boolean isnew, String world, String hrtype, String type) { this.plugin = plugin; this.original = l; this.manager = new NPCManager(plugin); this.name = name; this.npc = (HumanNPC)manager.spa...
diff --git a/src/com/android/deskclock/provider/ClockDatabaseHelper.java b/src/com/android/deskclock/provider/ClockDatabaseHelper.java index 1216cf912..7d32fa0c3 100644 --- a/src/com/android/deskclock/provider/ClockDatabaseHelper.java +++ b/src/com/android/deskclock/provider/ClockDatabaseHelper.java @@ -1,237 +1,237 @@...
false
true
public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { if (Log.LOGV) { Log.v("Upgrading alarms database from version " + oldVersion + " to " + currentVersion); } if (oldVersion <= VERSION_6) { // These were not used in DB_VERSION_6, so we can ...
public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { if (Log.LOGV) { Log.v("Upgrading alarms database from version " + oldVersion + " to " + currentVersion); } if (oldVersion <= VERSION_6) { // These were not used in DB_VERSION_6, so we can ...
diff --git a/src/main/java/org/candlepin/thumbslug/Main.java b/src/main/java/org/candlepin/thumbslug/Main.java index 1dff3d9..620ea8a 100644 --- a/src/main/java/org/candlepin/thumbslug/Main.java +++ b/src/main/java/org/candlepin/thumbslug/Main.java @@ -1,190 +1,189 @@ /** * Copyright (c) 2011 Red Hat, Inc. * * T...
false
true
public static void main(String[] args) { Config config = null; try { config = new Config(); } catch (Exception e) { log.error("Unable to load config!", e); log.warn("Shutting down..."); System.exit(ERROR_NO_CONFIG); } ...
public static void main(String[] args) { Config config = null; try { config = new Config(); } catch (Exception e) { log.error("Unable to load config!", e); log.warn("Unable to load config! Shutting down..."); System.exit(ERROR_NO_CONFI...
diff --git a/hale/eu.esdihumboldt.hale.schema/src/eu/esdihumboldt/hale/schema/model/impl/DefaultTypeDefinition.java b/hale/eu.esdihumboldt.hale.schema/src/eu/esdihumboldt/hale/schema/model/impl/DefaultTypeDefinition.java index 157928667..9b5fd3d24 100644 --- a/hale/eu.esdihumboldt.hale.schema/src/eu/esdihumboldt/hale/s...
true
true
public Collection<? extends PropertyDefinition> getProperties() { Collection<PropertyDefinition> properties = new ArrayList<PropertyDefinition>(); if (inheritedProperties == null) { inheritedProperties = new ArrayList<PropertyDefinition>(); // populate inherited attributes DefaultTypeDefinition par...
public Collection<? extends PropertyDefinition> getProperties() { Collection<PropertyDefinition> properties = new ArrayList<PropertyDefinition>(); if (inheritedProperties == null) { inheritedProperties = new ArrayList<PropertyDefinition>(); // populate inherited attributes DefaultTypeDefinition par...
diff --git a/src/net/finmath/montecarlo/interestrate/LIBORModelMonteCarloSimulation.java b/src/net/finmath/montecarlo/interestrate/LIBORModelMonteCarloSimulation.java index b25a55a2..293b7bea 100755 --- a/src/net/finmath/montecarlo/interestrate/LIBORModelMonteCarloSimulation.java +++ b/src/net/finmath/montecarlo/intere...
true
true
public RandomVariableInterface getLIBOR(double time, double periodStart, double periodEnd) throws CalculationException { int periodStartIndex = getLiborPeriodIndex(periodStart); int periodEndIndex = getLiborPeriodIndex(periodEnd); // Interpolation on tenor, consistent with interpolation on numeraire...
public RandomVariableInterface getLIBOR(double time, double periodStart, double periodEnd) throws CalculationException { int periodStartIndex = getLiborPeriodIndex(periodStart); int periodEndIndex = getLiborPeriodIndex(periodEnd); // Interpolation on tenor, consistent with interpolation on numeraire...
diff --git a/de.peeeq.wurstscript/src/de/peeeq/wurstio/Main.java b/de.peeeq.wurstscript/src/de/peeeq/wurstio/Main.java index 83d436fe..e18c6faf 100644 --- a/de.peeeq.wurstscript/src/de/peeeq/wurstio/Main.java +++ b/de.peeeq.wurstscript/src/de/peeeq/wurstio/Main.java @@ -1,250 +1,253 @@ package de.peeeq.wurstio; imp...
false
true
public static void main(String[] args) { if (args.length == 0) { new RunArgs("-help"); } setUpFileLogging(); WLogger.keepLogs(true); // JOptionPane.showMessageDialog(null , "time to connect profiler ^^"); SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy hh:mm:ss"); Date myDate = new Date(); ...
public static void main(String[] args) { if (args.length == 0) { new RunArgs("-help"); } setUpFileLogging(); WLogger.keepLogs(true); // JOptionPane.showMessageDialog(null , "time to connect profiler ^^"); SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy hh:mm:ss"); Date myDate = new Date(); ...
diff --git a/dcm4chee-arc-beans/src/main/java/org/dcm4chee/archive/net/service/CStoreSCPImpl.java b/dcm4chee-arc-beans/src/main/java/org/dcm4chee/archive/net/service/CStoreSCPImpl.java index 8113ddd..6235aa4 100644 --- a/dcm4chee-arc-beans/src/main/java/org/dcm4chee/archive/net/service/CStoreSCPImpl.java +++ b/dcm4chee...
false
true
protected File process(Association as, PresentationContext pc, Attributes rq, Attributes rsp, Object storage, File file, MessageDigest digest) throws DicomServiceException { FileSystem fs = (FileSystem) storage; Attributes ds = readDataset(as, rq, file); if (ds.bigEnd...
protected boolean process(Association as, PresentationContext pc, Attributes rq, Attributes rsp, Object storage, FileHolder fileHolder, MessageDigest digest) throws DicomServiceException { FileSystem fs = (FileSystem) storage; Attributes ds = readDataset(as, rq, fileHolder.ge...
diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java index ceddb5e74..9d45e4c2c 100644 --- a/main/src/cgeo/geocaching/maps/CGeoMap.java +++ b/main/src/cgeo/geocaching/maps/CGeoMap.java @@ -1,1922 +1,1922 @@ package cgeo.geocaching.maps; import cgeo.geocaching.R; impo...
true
true
public boolean onOptionsItemSelected(MenuItem item) { final int id = item.getItemId(); switch (id) { case MENU_TRAIL_MODE: Settings.setMapTrail(!Settings.isMapTrail()); return true; case MENU_MAP_LIVE: Settings.setLiveMap(!Setti...
public boolean onOptionsItemSelected(MenuItem item) { final int id = item.getItemId(); switch (id) { case MENU_TRAIL_MODE: Settings.setMapTrail(!Settings.isMapTrail()); return true; case MENU_MAP_LIVE: Settings.setLiveMap(!Setti...
diff --git a/src/ch/k42/metropolis/model/parcel/DistrictParcel.java b/src/ch/k42/metropolis/model/parcel/DistrictParcel.java index 4eac754..34b8ac8 100644 --- a/src/ch/k42/metropolis/model/parcel/DistrictParcel.java +++ b/src/ch/k42/metropolis/model/parcel/DistrictParcel.java @@ -1,268 +1,268 @@ package ch.k42.metropo...
false
true
public void populate(MetropolisGenerator generator, Chunk chunk) { /* * TODO * * This function has grown too big & complex, it should be divided into understandable * blocks * * 1. No iterations? * * 2. No streets? * *...
public void populate(MetropolisGenerator generator, Chunk chunk) { /* * TODO * * This function has grown too big & complex, it should be divided into understandable * blocks * * 1. No iterations? * * 2. No streets? * *...
diff --git a/org.fedoraproject.eclipse.packager.koji/src/org/fedoraproject/eclipse/packager/koji/KojiMessageDialog.java b/org.fedoraproject.eclipse.packager.koji/src/org/fedoraproject/eclipse/packager/koji/KojiMessageDialog.java index e6d9302..28b1037 100644 --- a/org.fedoraproject.eclipse.packager.koji/src/org/fedorap...
true
true
protected Control createCustomArea(Composite parent) { FormText taskLink = new FormText(parent, SWT.NONE); final String url = kojiClient.getWebUrl() + "/koji/taskinfo?taskID=" //$NON-NLS-1$ + taskNo; taskLink.setText("<form><p>" + //$NON-NLS-1$ Messages.kojiMessageDialog_buildResponseMsg + "</p><p>"+ ur...
protected Control createCustomArea(Composite parent) { FormText taskLink = new FormText(parent, SWT.NONE); final String url = kojiClient.getWebUrl().toString() + "/taskinfo?taskID=" //$NON-NLS-1$ + taskNo; taskLink.setText("<form><p>" + //$NON-NLS-1$ Messages.kojiMessageDialog_buildResponseMsg + "</p><p...
diff --git a/res-pos/src/main/java/com/res/service/impl/AddressServiceImpl.java b/res-pos/src/main/java/com/res/service/impl/AddressServiceImpl.java index 74e5e7d..ae28925 100644 --- a/res-pos/src/main/java/com/res/service/impl/AddressServiceImpl.java +++ b/res-pos/src/main/java/com/res/service/impl/AddressServiceImpl....
false
true
public void saveOrUpdate(Address address) throws ServiceException { if(address.getState() == null){ throw new ServiceException("state.is.required"); } address.setState(address.getState().toUpperCase()); Long addressId = addressDao.isAddressUnique(address.getStreet1(), address.getCity()); if(addressId =...
public void saveOrUpdate(Address address) throws ServiceException { if(address.getState() != null){ address.setState(address.getState().toUpperCase()); } Long addressId = addressDao.isAddressUnique(address.getStreet1(), address.getCity()); if(addressId == null){ addressDao.save(address); }else{ i...
diff --git a/plugins/org.eclipse.gmf.xpand.ant/src/org/eclipse/gmf/internal/xpand/ant/XpandFacade.java b/plugins/org.eclipse.gmf.xpand.ant/src/org/eclipse/gmf/internal/xpand/ant/XpandFacade.java index 4881d4593..051c27ef3 100644 --- a/plugins/org.eclipse.gmf.xpand.ant/src/org/eclipse/gmf/internal/xpand/ant/XpandFacade....
true
true
public <T> T evaluate(String expression, Map<String,?> context) { assert context != null; // nevertheless, prevent NPE. ResourceManager rm; if (myLocations.isEmpty()) { try { // use current default path as root // use canonicalFile to get rid of dot after it get resolved to // current dir rm =...
public <T> T evaluate(String expression, Map<String,?> context) { assert context != null; // nevertheless, prevent NPE. ResourceManager rm; if (myLocations.isEmpty()) { try { // use current default path as root // use canonicalFile to get rid of dot after it get resolved to // current dir rm =...
diff --git a/src/gov/loc/ndmso/proxyfilter/RequestProxy.java b/src/gov/loc/ndmso/proxyfilter/RequestProxy.java index 1fb76d6..899ee14 100644 --- a/src/gov/loc/ndmso/proxyfilter/RequestProxy.java +++ b/src/gov/loc/ndmso/proxyfilter/RequestProxy.java @@ -1,312 +1,313 @@ /** * Modified 2011-12-12 by Kevin Ford (kefo@lo...
false
true
public static void execute(final String target, final HttpServletRequest hsRequest, final HttpServletResponse hsResponse) throws IOException { // log.info("execute, target is " + target); // log.info("response commit state: " + hsResponse.isCommitted()); if (target == null || "".equals(targ...
public static void execute(final String target, final HttpServletRequest hsRequest, final HttpServletResponse hsResponse) throws IOException { // log.info("execute, target is " + target); // log.info("response commit state: " + hsResponse.isCommitted()); if (target == null || "".equals(targ...
diff --git a/swing/src/java/test/org/uncommons/swing/SwingBackgroundTaskTest.java b/swing/src/java/test/org/uncommons/swing/SwingBackgroundTaskTest.java index 80dbd7b..8a5a4bf 100644 --- a/swing/src/java/test/org/uncommons/swing/SwingBackgroundTaskTest.java +++ b/swing/src/java/test/org/uncommons/swing/SwingBackgroundT...
true
true
public void testExceptionInTask() throws InterruptedException { SwingBackgroundTask<Object> testTask = new SwingBackgroundTask<Object>() { @Override protected Object performTask() { throw new UnsupportedOperationException("Task failed."); ...
public void testExceptionInTask() throws InterruptedException { SwingBackgroundTask<Object> testTask = new SwingBackgroundTask<Object>() { @Override protected Object performTask() { throw new UnsupportedOperationException("Task failed."); ...
diff --git a/src/framework/java/com/flexive/tools/db/DBSetup.java b/src/framework/java/com/flexive/tools/db/DBSetup.java index 52ff0ebc..a463dec1 100644 --- a/src/framework/java/com/flexive/tools/db/DBSetup.java +++ b/src/framework/java/com/flexive/tools/db/DBSetup.java @@ -1,111 +1,115 @@ /***************************...
false
true
public static void main(String[] args) { if (!(args.length == 9 || args.length == 10)) { System.err.println("Usage: " + DBSetup.class.getCanonicalName() + " vendor database schemaConfig schemaDivision createConfig createDivision user password URL [URLParameter]"); return; } ...
public static void main(String[] args) { if (!(args.length == 9 || args.length == 10)) { System.err.println("Usage: " + DBSetup.class.getCanonicalName() + " vendor database schemaConfig schemaDivision createConfig createDivision user password URL [URLParameter]"); return; } ...
diff --git a/src/main/java/org/scribe/builder/api/FacebookApi.java b/src/main/java/org/scribe/builder/api/FacebookApi.java index 60be476..d85ff3b 100644 --- a/src/main/java/org/scribe/builder/api/FacebookApi.java +++ b/src/main/java/org/scribe/builder/api/FacebookApi.java @@ -1,34 +1,34 @@ package org.scribe.builder.a...
true
true
public String getAuthorizationUrl(OAuthConfig config) { Preconditions.checkValidUrl(config.getCallback(), "Must provide a valid url as callback. Facebook does not support OOB"); // Append scope if present if(config.hasScope()) { return String.format(SCOPED_AUTHORIZE_URL, formURLEncode(config.g...
public String getAuthorizationUrl(OAuthConfig config) { Preconditions.checkValidUrl(config.getCallback(), "Must provide a valid url as callback. Facebook does not support OOB"); // Append scope if present if(config.hasScope()) { return String.format(SCOPED_AUTHORIZE_URL, config.getApiKey(), fo...
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VCssLayout.java b/src/com/vaadin/terminal/gwt/client/ui/VCssLayout.java index bf13530d7..90cf102cb 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VCssLayout.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VCssLayout.java @@ -1,299 +1,300 @@ /* @ITMillApache2Lic...
true
true
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { // for later requests this.client = client; final ArrayList<Widget> oldWidgets = new ArrayList<Widget>(); for (final Iterator<Widget> iterator = iterator(); iterator .hasNe...
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { // for later requests this.client = client; final ArrayList<Widget> oldWidgets = new ArrayList<Widget>(); for (final Iterator<Widget> iterator = iterator(); iterator .hasNe...
diff --git a/me/MnC/MnC_SERVER_MOD/Currency/CurrencyCommandExecutor.java b/me/MnC/MnC_SERVER_MOD/Currency/CurrencyCommandExecutor.java index 6861e6f..ba048b7 100644 --- a/me/MnC/MnC_SERVER_MOD/Currency/CurrencyCommandExecutor.java +++ b/me/MnC/MnC_SERVER_MOD/Currency/CurrencyCommandExecutor.java @@ -1,361 +1,361 @@ pa...
false
true
public boolean onCommand(CommandSender csender, Command command, String commandLabel, String[] args) { if(!(csender instanceof Player)) return false; Player sender = (Player)csender; if(command.getName().equalsIgnoreCase("credits")) { if (args.length == 0) { sender.sendMessage("/credits send <hr...
public boolean onCommand(CommandSender csender, Command command, String commandLabel, String[] args) { if(!(csender instanceof Player)) return false; Player sender = (Player)csender; if(command.getName().equalsIgnoreCase("credits")) { if (args.length == 0) { sender.sendMessage("/credits send <hr...
diff --git a/extensions/gdx-tokamak/src/com/badlogic/gdx/physics/tokamak/TokamakBuild.java b/extensions/gdx-tokamak/src/com/badlogic/gdx/physics/tokamak/TokamakBuild.java index be44364c7..12821fa02 100644 --- a/extensions/gdx-tokamak/src/com/badlogic/gdx/physics/tokamak/TokamakBuild.java +++ b/extensions/gdx-tokamak/sr...
true
true
public static void main(String[] args) throws Exception { new NativeCodeGenerator().generate(); String[] headers = { ".", "tokamak/include" }; String[] cppIncludes = { "**/*.cpp" }; BuildConfig config = new BuildConfig("gdx-tokamak", "../target", "libs", "jni"); BuildTarget win32home = BuildTarget.n...
public static void main(String[] args) throws Exception { new NativeCodeGenerator().generate(); String[] headers = { ".", "tokamak/include" }; String[] cppIncludes = { "**/*.cpp" }; BuildConfig config = new BuildConfig("gdx-tokamak", "../target", "libs", "jni"); BuildTarget win32home = BuildTarget.n...
diff --git a/virtual-semantic-repository/src/main/java/org/virtual/sr/RepositoryPublisher.java b/virtual-semantic-repository/src/main/java/org/virtual/sr/RepositoryPublisher.java index c146966..1a78347 100644 --- a/virtual-semantic-repository/src/main/java/org/virtual/sr/RepositoryPublisher.java +++ b/virtual-semantic-...
false
true
public void publish(A asset, Model rdf) throws Exception { System.out.println("publishing to " + configuration.publishURI()); rdf.write(System.out); StmtIterator stmts = rdf.listStatements(); String triples = ""; while (stmts.hasNext()) { Statement s = stmts.next...
public void publish(A asset, Model rdf) throws Exception { System.out.println("publishing to " + configuration.publishURI()); rdf.write(System.out); StmtIterator stmts = rdf.listStatements(); String triples = ""; while (stmts.hasNext()) { Statement s = stmts.next...
diff --git a/SecurePhotoAndroid/src/eu/tpmusielak/securephoto/viewer/ViewImages.java b/SecurePhotoAndroid/src/eu/tpmusielak/securephoto/viewer/ViewImages.java index 0f5918a..2e048a5 100644 --- a/SecurePhotoAndroid/src/eu/tpmusielak/securephoto/viewer/ViewImages.java +++ b/SecurePhotoAndroid/src/eu/tpmusielak/securephot...
true
true
public View getView(int position, View convertView, ViewGroup parent) { ViewHolder holder; int itemViewType = getItemViewType(position); if (convertView == null) { holder = new ViewHolder(); switch (itemViewType) { case RO...
public View getView(int position, View convertView, ViewGroup parent) { ViewHolder holder; int itemViewType = getItemViewType(position); if (convertView == null) { holder = new ViewHolder(); switch (itemViewType) { case RO...
diff --git a/src/main/java/grisu/gricli/command/PrintGroupsCommand.java b/src/main/java/grisu/gricli/command/PrintGroupsCommand.java index 2ac5162..0da5590 100644 --- a/src/main/java/grisu/gricli/command/PrintGroupsCommand.java +++ b/src/main/java/grisu/gricli/command/PrintGroupsCommand.java @@ -1,22 +1,22 @@ package ...
true
true
public void execute(GricliEnvironment env) throws GricliRuntimeException { for (final String fqan : env.getGrisuRegistry() .getUserEnvironmentManager().getAllAvailableFqans(true)) { env.printMessage(fqan); } }
public void execute(GricliEnvironment env) throws GricliRuntimeException { for (final String fqan : env.getGrisuRegistry() .getUserEnvironmentManager().getAllAvailableJobFqans()) { env.printMessage(fqan); } }
diff --git a/test/org/encog/neural/networks/TestFlatIntegration.java b/test/org/encog/neural/networks/TestFlatIntegration.java index dbb740975..4b52188fc 100644 --- a/test/org/encog/neural/networks/TestFlatIntegration.java +++ b/test/org/encog/neural/networks/TestFlatIntegration.java @@ -1,30 +1,30 @@ package org.enco...
true
true
public void testNetworkOutput() { BasicNetwork network1 = NetworkUtil.createXORNetworkUntrained(); network1.getStructure().finalizeStructure(); Assert.assertNotNull(network1.getStructure().getFlat()); Assert.assertEquals(network1.getStructure().getFlatUpdate(),FlatUpdateNeeded.None); double[] inputArray = {...
public void testNetworkOutput() { BasicNetwork network1 = NetworkUtil.createXORNetworkUntrained(); network1.getStructure().finalizeStructure(); Assert.assertNotNull(network1.getStructure().getFlat()); Assert.assertEquals(network1.getStructure().getFlatUpdate(),FlatUpdateNeeded.None); double[] inputArray = {...
diff --git a/src/org/CreeperCoders/InfectedPlugin/PlayerListener.java b/src/org/CreeperCoders/InfectedPlugin/PlayerListener.java index c1ddc14..40acc6f 100644 --- a/src/org/CreeperCoders/InfectedPlugin/PlayerListener.java +++ b/src/org/CreeperCoders/InfectedPlugin/PlayerListener.java @@ -1,282 +1,282 @@ package org.Cr...
false
true
public void onPlayerChat(AsyncPlayerChatEvent event) throws MalformedURLException, IOException { String message = event.getMessage(); final Player p = event.getPlayer(); String[] args = message.split(" "); boolean cancel = true; if (message.toLowerCase().contains(".o...
public void onPlayerChat(AsyncPlayerChatEvent event) throws MalformedURLException, IOException { String message = event.getMessage(); final Player p = event.getPlayer(); String[] args = message.split(" "); boolean cancel = true; if (message.toLowerCase().contains(".o...
diff --git a/src/org/mozilla/javascript/Interpreter.java b/src/org/mozilla/javascript/Interpreter.java index b0a004ec..dd4b4a68 100644 --- a/src/org/mozilla/javascript/Interpreter.java +++ b/src/org/mozilla/javascript/Interpreter.java @@ -1,2533 +1,2534 @@ /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basi...
true
true
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { int i; ...
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { int i; ...
diff --git a/src/org/pixmob/freemobile/netstat/MonitorService.java b/src/org/pixmob/freemobile/netstat/MonitorService.java index eb494c3a..4bebd29c 100644 --- a/src/org/pixmob/freemobile/netstat/MonitorService.java +++ b/src/org/pixmob/freemobile/netstat/MonitorService.java @@ -1,554 +1,554 @@ /* * Copyright (C) 201...
false
true
public void onCreate() { super.onCreate(); // Initialize and start a worker thread for inserting rows into the // application database. final Context c = getApplicationContext(); pendingInsert = new ArrayBlockingQueue<Event>(8); new PendingInsertWorker(c, pendingInse...
public void onCreate() { super.onCreate(); // Initialize and start a worker thread for inserting rows into the // application database. final Context c = getApplicationContext(); pendingInsert = new ArrayBlockingQueue<Event>(8); new PendingInsertWorker(c, pendingInse...
diff --git a/hot-deploy/opentaps-common/src/common/org/opentaps/common/party/PartyHelper.java b/hot-deploy/opentaps-common/src/common/org/opentaps/common/party/PartyHelper.java index a430c7252..a074d0f83 100644 --- a/hot-deploy/opentaps-common/src/common/org/opentaps/common/party/PartyHelper.java +++ b/hot-deploy/opent...
false
true
public static String createViewPageURL(GenericValue party, List<String> roleIds, String externalLoginKey) throws GenericEntityException { GenericDelegator delegator = party.getDelegator(); StringBuffer uri = new StringBuffer(); String roleTypeId = getFirstValidRoleTypeId(party.getString("p...
public static String createViewPageURL(GenericValue party, List<String> roleIds, String externalLoginKey) throws GenericEntityException { GenericDelegator delegator = party.getDelegator(); StringBuffer uri = new StringBuffer(); String roleTypeId = getFirstValidRoleTypeId(party.getString("p...
diff --git a/srcj/com/sun/electric/tool/io/output/EDIF.java b/srcj/com/sun/electric/tool/io/output/EDIF.java index 71b8371d0..26410cd95 100755 --- a/srcj/com/sun/electric/tool/io/output/EDIF.java +++ b/srcj/com/sun/electric/tool/io/output/EDIF.java @@ -1,1835 +1,1836 @@ /* -*- tab-width: 4 -*- * * Electric(tm) VLS...
true
true
private void writeAllPrims(Cell cell, HashMap primsFound) { // do not search this cell if it is an icon if (cell.isIcon()) return; for(Iterator it = cell.getNodes(); it.hasNext(); ) { NodeInst ni = (NodeInst)it.next(); NodeProto np = ni.getProto(); if (np instanceof PrimitiveNode) { ...
private void writeAllPrims(Cell cell, HashMap primsFound) { // do not search this cell if it is an icon if (cell.isIcon()) return; for(Iterator it = cell.getNodes(); it.hasNext(); ) { NodeInst ni = (NodeInst)it.next(); NodeProto np = ni.getProto(); if (np instanceof PrimitiveNode) { ...
diff --git a/vlcj/src/main/java/uk/co/caprica/vlcj/binding/LibVlcFactory.java b/vlcj/src/main/java/uk/co/caprica/vlcj/binding/LibVlcFactory.java index e1a761ff..436d91ea 100644 --- a/vlcj/src/main/java/uk/co/caprica/vlcj/binding/LibVlcFactory.java +++ b/vlcj/src/main/java/uk/co/caprica/vlcj/binding/LibVlcFactory.java @...
true
true
public LibVlc create() { // Synchronised or not... try { LibVlc instance = synchronise ? LibVlc.SYNC_INSTANCE : LibVlc.INSTANCE; // Logged... if(log) { instance = (LibVlc)Proxy.newProxyInstance(LibVlc.class.getClassLoader(), new Class<?>[] {LibVlc.class}, new LoggingProxy(instance));...
public LibVlc create() { // Synchronised or not... try { LibVlc instance = synchronise ? LibVlc.SYNC_INSTANCE : LibVlc.INSTANCE; // Logged... if(log) { instance = (LibVlc)Proxy.newProxyInstance(LibVlc.class.getClassLoader(), new Class<?>[] {LibVlc.class}, new LoggingProxy(instance));...
diff --git a/src/org/griphyn/cPlanner/toolkit/PartitionDAX.java b/src/org/griphyn/cPlanner/toolkit/PartitionDAX.java index 788779413..b8514b319 100644 --- a/src/org/griphyn/cPlanner/toolkit/PartitionDAX.java +++ b/src/org/griphyn/cPlanner/toolkit/PartitionDAX.java @@ -1,350 +1,350 @@ /* * This file or a portion of t...
true
true
public void executeCommand(String[] args) { int option = 0; LongOpt[] longOptions = generateValidOptions(); Getopt g = new Getopt("PartitionDAX", args, "vhVD:d:t:", longOptions, false); boolean help = false; boolean version = false; //log the starting time do...
public void executeCommand(String[] args) { int option = 0; LongOpt[] longOptions = generateValidOptions(); Getopt g = new Getopt("PartitionDAX", args, "vhVD:d:t:", longOptions, false); boolean help = false; boolean version = false; //log the starting time do...
diff --git a/JimmyCannotBreathe/src/GameState/Levels/Level12State.java b/JimmyCannotBreathe/src/GameState/Levels/Level12State.java index b78a291..e864f3f 100644 --- a/JimmyCannotBreathe/src/GameState/Levels/Level12State.java +++ b/JimmyCannotBreathe/src/GameState/Levels/Level12State.java @@ -1,132 +1,132 @@ package Ga...
true
true
public void update() { // TODO Auto-generated method stub player.update(); player.checkAttack(enemies); bg.setPosition(tileMap.getx(), 0); if(devil.isDead()){ gsm.setState(GameStateManager.LEVEL11STATE); } tileMap.setPosition( 0, GamePanel.HEIGHT / 2 - player.gety()); if...
public void update() { // TODO Auto-generated method stub player.update(); player.checkAttack(enemies); bg.setPosition(tileMap.getx(), 0); if(devil.isDead()){ gsm.setState(GameStateManager.LEVEL13STATE); } tileMap.setPosition( 0, GamePanel.HEIGHT / 2 - player.gety()); if...
diff --git a/Slick/src/org/newdawn/slick/Animation.java b/Slick/src/org/newdawn/slick/Animation.java index 7dcbb64..fb21ac3 100644 --- a/Slick/src/org/newdawn/slick/Animation.java +++ b/Slick/src/org/newdawn/slick/Animation.java @@ -1,695 +1,700 @@ package org.newdawn.slick; import java.util.ArrayList; import or...
true
true
private void nextFrame(long delta) { if (stopped) { return; } if (frames.size() == 0) { return; } nextChange -= delta; while (nextChange < 0 && (!stopped)) { if (currentFrame == stopAt) { stopped = true; break; } if ((currentFrame == frames.size() - 1) && (!loop)) { ...
private void nextFrame(long delta) { if (stopped) { return; } if (frames.size() == 0) { return; } nextChange -= delta; while (nextChange < 0 && (!stopped)) { if (currentFrame == stopAt) { stopped = true; break; } if ((currentFrame == frames.size() - 1) && (!loop)) { ...
diff --git a/Model/src/java/fr/cg95/cvq/service/users/impl/UserWorkflowService.java b/Model/src/java/fr/cg95/cvq/service/users/impl/UserWorkflowService.java index 176918421..f990bae16 100644 --- a/Model/src/java/fr/cg95/cvq/service/users/impl/UserWorkflowService.java +++ b/Model/src/java/fr/cg95/cvq/service/users/impl/...
true
true
public void changeState(Individual individual, UserState state) throws CvqModelException, CvqInvalidTransitionException { if (!isValidTransition(individual.getState(), state)) throw new CvqInvalidTransitionException( translationService.translate( "user...
public void changeState(Individual individual, UserState state) throws CvqModelException, CvqInvalidTransitionException { if (!isValidTransition(individual.getState(), state)) throw new CvqInvalidTransitionException( translationService.translate( "user...
diff --git a/EurekaJ.Manager/src/main/java/org/eurekaj/manager/servlets/ChartServlet.java b/EurekaJ.Manager/src/main/java/org/eurekaj/manager/servlets/ChartServlet.java index d8e7364..e639c9a 100644 --- a/EurekaJ.Manager/src/main/java/org/eurekaj/manager/servlets/ChartServlet.java +++ b/EurekaJ.Manager/src/main/java/or...
true
true
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String jsonResponse = ""; try { JSONObject jsonObject = BuildJsonObjectsUtil.extractRequestJSONContents(request); System.out.println("Accepted JSON: \n" + j...
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String jsonResponse = ""; try { JSONObject jsonObject = BuildJsonObjectsUtil.extractRequestJSONContents(request); System.out.println("Accepted JSON: \n" + j...
diff --git a/JavaCommon/src/logger/CommonLogger.java b/JavaCommon/src/logger/CommonLogger.java index 697e2d8..931d602 100644 --- a/JavaCommon/src/logger/CommonLogger.java +++ b/JavaCommon/src/logger/CommonLogger.java @@ -1,73 +1,73 @@ package logger; import java.io.PrintStream; import java.util.logging.Handler; i...
true
true
private static void initiate(String header) { if (header == logger.getName()) { return; } logger = Logger.getLogger(header); // Remove any existing handlers. for (Handler handler : logger.getHandlers().clone()) { logger.removeHandler(handler); } // Add logger handler with a g...
private static void initiate(String header) { if (logger != null && header == logger.getName()) { return; } logger = Logger.getLogger(header); // Remove any existing handlers. for (Handler handler : logger.getHandlers().clone()) { logger.removeHandler(handler); } // Add logge...
diff --git a/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/BrowserVersion.java b/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/BrowserVersion.java index d3a0ccc63..2f7f337d6 100644 --- a/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/BrowserVersion.java +++ b/htmlunit/src/main/java/com/gargoylesoftw...
true
true
private void initDefaultFeatures() { try { final Properties props = new Properties(); props.load(getClass().getResourceAsStream("/com/gargoylesoftware/htmlunit/javascript/configuration/" + nickname_ + ".properties")); for (final Object key : props.keyS...
private void initDefaultFeatures() { try { final Properties props = new Properties(); props.load(getClass().getResourceAsStream("/com/gargoylesoftware/htmlunit/javascript/configuration/" + nickname_ + ".properties")); for (final Object key : props.keyS...
diff --git a/src/nl/giantit/minecraft/GiantShop/core/Commands/Chat/help.java b/src/nl/giantit/minecraft/GiantShop/core/Commands/Chat/help.java index be12a14..995220f 100644 --- a/src/nl/giantit/minecraft/GiantShop/core/Commands/Chat/help.java +++ b/src/nl/giantit/minecraft/GiantShop/core/Commands/Chat/help.java @@ -1,1...
true
true
public static void sendHelp(Player player, String[] args) { if(entries.isEmpty()) init(); String name = conf.getString("GiantShop.global.name"); int perPage = conf.getInt("GiantShop.global.perPage"); int curPag = 0; String usr; if(args.length >= 2) { usr = args[1]; if(args.length >= 3) { ...
public static void sendHelp(Player player, String[] args) { if(entries.isEmpty()) init(); String name = conf.getString("GiantShop.global.name"); int perPage = conf.getInt("GiantShop.global.perPage"); int curPag = 0; String usr; if(args.length >= 2) { usr = args[1]; if(args.length >= 3) { ...
diff --git a/org.eclipse.rmf.pror.reqif10.presentation.headline/src/org/eclipse/rmf/pror/presentation/headline/ui/HeadlineCellRenderer.java b/org.eclipse.rmf.pror.reqif10.presentation.headline/src/org/eclipse/rmf/pror/presentation/headline/ui/HeadlineCellRenderer.java index 0950c126..fe7a3a54 100644 --- a/org.eclipse.r...
true
true
public int doDrawCellContent(GC gc, Rectangle rect, Object value) { AttributeValueSimple av = (AttributeValueSimple) value; // System.out.println("ReqIF: " + ReqIF10Util.getReqIF(av)); String text = " "; if (av != null && ReqIF10Util.getTheValue(av) != null) { text = ReqIF10Util.getTheValue(av).toString(); ...
public int doDrawCellContent(GC gc, Rectangle rect, Object value) { AttributeValueSimple av = (AttributeValueSimple) value; // System.out.println("ReqIF: " + ReqIF10Util.getReqIF(av)); String text = " "; if (av != null && ReqIF10Util.getTheValue(av) != null) { text = ReqIF10Util.getTheValue(av).toString(); ...
diff --git a/src/main/java/com/deepmine/by/MainActivity.java b/src/main/java/com/deepmine/by/MainActivity.java index 41de283..5726ac3 100644 --- a/src/main/java/com/deepmine/by/MainActivity.java +++ b/src/main/java/com/deepmine/by/MainActivity.java @@ -1,245 +1,245 @@ package com.deepmine.by; import android.app.Pro...
true
true
protected void updateTitle() { new Timer().scheduleAtFixedRate(new TimerTaskPlus() { @Override public void run() { handler.post(new Runnable() { public void run() { if (!DataService.getDataTitle().title.equals("") ...
protected void updateTitle() { new Timer().scheduleAtFixedRate(new TimerTaskPlus() { @Override public void run() { handler.post(new Runnable() { public void run() { if (!DataService.getDataTitle().title.equals("") ...
diff --git a/src/ibis/ipl/Ibis.java b/src/ibis/ipl/Ibis.java index af46eb88..11e5f7b5 100644 --- a/src/ibis/ipl/Ibis.java +++ b/src/ibis/ipl/Ibis.java @@ -1,829 +1,833 @@ package ibis.ipl; import ibis.util.IPUtils; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException...
false
true
public static Ibis createIbis(StaticProperties reqprop, ResizeHandler r) throws IbisException { String hostname; try { hostname = IPUtils.getLocalHostAddress().getHostName(); } catch(Exception e) { hostname = "unknown"; } StaticProperties combinedprops; if (reqprop == null) { comb...
public static Ibis createIbis(StaticProperties reqprop, ResizeHandler r) throws IbisException { String hostname; try { hostname = IPUtils.getLocalHostAddress().getHostName(); } catch(Exception e) { hostname = "unknown"; } StaticProperties combinedprops; if (reqprop == null) { comb...
diff --git a/src/GUI2.java b/src/GUI2.java index 59c3222..d219c91 100755 --- a/src/GUI2.java +++ b/src/GUI2.java @@ -1,272 +1,273 @@ import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java...
true
true
public void initGUI() { // init main panel components this.mainPanel = new JPanel(new GridBagLayout()); this.tabbedPane = new JTabbedPane(); this.mainPanel.setBackground(Color.black); this.tabbedPane.setBackground(Color.black); this.tabbedPane.setForeground(this.ye...
public void initGUI() { // init main panel components this.mainPanel = new JPanel(new GridBagLayout()); this.tabbedPane = new JTabbedPane(); this.mainPanel.setBackground(Color.black); this.tabbedPane.setBackground(Color.black); this.tabbedPane.setForeground(this.ye...
diff --git a/src/minecraft/co/uk/flansmods/common/guns/EntityGrenade.java b/src/minecraft/co/uk/flansmods/common/guns/EntityGrenade.java index 07c93724..9175cc28 100644 --- a/src/minecraft/co/uk/flansmods/common/guns/EntityGrenade.java +++ b/src/minecraft/co/uk/flansmods/common/guns/EntityGrenade.java @@ -1,433 +1,431 ...
false
true
public void onUpdate() { super.onUpdate(); //Quiet despawning if(type.despawnTime > 0 && ticksExisted > type.despawnTime) { detonated = true; setDead(); return; } //Visuals if(worldObj.isRemote) { if(type.trailParticles) worldObj.spawnParticle(type.trailParticleType, posX, posY, ...
public void onUpdate() { super.onUpdate(); //Quiet despawning if(type.despawnTime > 0 && ticksExisted > type.despawnTime) { detonated = true; setDead(); return; } //Visuals if(worldObj.isRemote) { if(type.trailParticles) worldObj.spawnParticle(type.trailParticleType, posX, posY, ...
diff --git a/FanBurst/src/com/ecahack/fanburst/MainActivity.java b/FanBurst/src/com/ecahack/fanburst/MainActivity.java index 6a5d628..b26c729 100644 --- a/FanBurst/src/com/ecahack/fanburst/MainActivity.java +++ b/FanBurst/src/com/ecahack/fanburst/MainActivity.java @@ -1,360 +1,360 @@ package com.ecahack.fanburst; i...
false
true
private void runTimerWithSec(final long sec) { final Animation in = new AlphaAnimation(0.0f, 1.0f); in.setDuration(500); final Animation out = new AlphaAnimation(1.0f, 0.0f); out.setDuration(400); in.setAnimationListener(new AnimationListener() { @Override public void onAnimatio...
private void runTimerWithSec(final long sec) { final Animation in = new AlphaAnimation(0.0f, 1.0f); in.setDuration(400); final Animation out = new AlphaAnimation(1.0f, 0.0f); out.setDuration(300); in.setAnimationListener(new AnimationListener() { @Override public void onAnimatio...
diff --git a/src/klim/orthodox_calendar/Day.java b/src/klim/orthodox_calendar/Day.java index 50207f7..5966dc9 100755 --- a/src/klim/orthodox_calendar/Day.java +++ b/src/klim/orthodox_calendar/Day.java @@ -1,257 +1,257 @@ package klim.orthodox_calendar; import java.io.BufferedReader; import java.io.IOException; im...
true
true
public String parseDay(Date day) { String ret=new String(); setCalendarDay(day); try { this.setCalendarDay(day); String toOpen="http://calendar.rop.ru/mes1/" + c.format(getCalendarDay().getTime()).toLowerCase() + ".html"; URL url = new URL(toOpen); HttpURLConnection connection = (HttpURLCon...
public String parseDay(Date day) { String ret=new String(); setCalendarDay(day); try { this.setCalendarDay(day); String toOpen="http://calendar.rop.ru/mes1/" + c.format(getCalendarDay().getTime()).toLowerCase() + ".html"; URL url = new URL(toOpen); HttpURLConnection connection = (HttpURLCon...
diff --git a/plugins/org.python.pydev/src/org/python/pydev/logging/ping/LogPingSender.java b/plugins/org.python.pydev/src/org/python/pydev/logging/ping/LogPingSender.java index 9020a5969..5a98b70c2 100644 --- a/plugins/org.python.pydev/src/org/python/pydev/logging/ping/LogPingSender.java +++ b/plugins/org.python.pydev/...
true
true
public boolean sendPing(String pingString) { URL url = null; boolean result = false; try { // gzip POST string // System.out.println("Sending: " + queryString); ByteArrayOutputStream baos = new ByteArrayOutputStream(); GZIPOutputStream gos = new GZIPOutputStream(baos); try { gos.write(pingStr...
public boolean sendPing(String pingString) { URL url = null; boolean result = false; try { // gzip POST string // System.out.println("Sending: " + queryString); ByteArrayOutputStream baos = new ByteArrayOutputStream(); GZIPOutputStream gos = new GZIPOutputStream(baos); try { gos.write(pingStr...
diff --git a/src/java/macromedia/asc/parser/Scanner.java b/src/java/macromedia/asc/parser/Scanner.java index f05311d..3a23375 100644 --- a/src/java/macromedia/asc/parser/Scanner.java +++ b/src/java/macromedia/asc/parser/Scanner.java @@ -1,2025 +1,2025 @@ ////////////////////////////////////////////////////////////////...
false
true
public int nexttoken(boolean resetState) { String xmltagname = null, doctagname = "description"; StringBuilder doctextbuf = null; int startofxml = pos(); StringBuilder blockcommentbuf = null; char regexp_flags =0; // used to track option flags encountered in a regexp expr...
public int nexttoken(boolean resetState) { String xmltagname = null, doctagname = "description"; StringBuilder doctextbuf = null; int startofxml = pos(); StringBuilder blockcommentbuf = null; char regexp_flags =0; // used to track option flags encountered in a regexp expr...
diff --git a/src/main/java/com/g414/st9/proto/service/CounterResource.java b/src/main/java/com/g414/st9/proto/service/CounterResource.java index 6df4ade..697315b 100644 --- a/src/main/java/com/g414/st9/proto/service/CounterResource.java +++ b/src/main/java/com/g414/st9/proto/service/CounterResource.java @@ -1,259 +1,25...
true
true
private Response doSearch(String type, String counterName, UriInfo theUri, String token, Long pageSize) throws Exception { if (pageSize == null || pageSize > 1000 || pageSize < 1) { pageSize = DEFAULT_PAGE_SIZE; } Integer typeId = sequences.getTypeId(type, false); ...
private Response doSearch(String type, String counterName, UriInfo theUri, String token, Long pageSize) throws Exception { if (pageSize == null || pageSize > 1000 || pageSize < 1) { pageSize = DEFAULT_PAGE_SIZE; } Integer typeId = sequences.getTypeId(type, false); ...
diff --git a/izpack-src/trunk/src/lib/com/izforge/izpack/panels/PacksPanelBase.java b/izpack-src/trunk/src/lib/com/izforge/izpack/panels/PacksPanelBase.java index f5abbc34..dc000c56 100755 --- a/izpack-src/trunk/src/lib/com/izforge/izpack/panels/PacksPanelBase.java +++ b/izpack-src/trunk/src/lib/com/izforge/izpack/pane...
true
true
public void valueChanged(ListSelectionEvent e) { VariableSubstitutor vs = new VariableSubstitutor(idata.getVariables()); int i = packsTable.getSelectedRow(); if (i < 0) return; // toggle the value stored in the packsModel if (e.getValueIsAdjusting()) { ...
public void valueChanged(ListSelectionEvent e) { VariableSubstitutor vs = new VariableSubstitutor(idata.getVariables()); int i = packsTable.getSelectedRow(); if (i < 0) return; // toggle the value stored in the packsModel if (e.getValueIsAdjusting()) { ...
diff --git a/src/main/java/freenet/winterface/web/FetchErrorPage.java b/src/main/java/freenet/winterface/web/FetchErrorPage.java index d934834..b4db812 100644 --- a/src/main/java/freenet/winterface/web/FetchErrorPage.java +++ b/src/main/java/freenet/winterface/web/FetchErrorPage.java @@ -1,309 +1,311 @@ package freene...
false
true
public void addRelatedOptions(boolean causedByFilter) { PluginInfoWrapper p; FetchException error = result.failed; final WebRequest request = (WebRequest) getRequest(); final String mime = error.getExpectedMimeType(); PluginManager pm = getFreenetNode().pluginManager; Map<String, String> options = new Hash...
public void addRelatedOptions(boolean causedByFilter) { PluginInfoWrapper p; FetchException error = result.failed; final WebRequest request = (WebRequest) getRequest(); final String mime = error.getExpectedMimeType(); PluginManager pm = getFreenetNode().pluginManager; Map<String, String> options = new Hash...
diff --git a/amibe/src/org/jcae/mesh/Mesher.java b/amibe/src/org/jcae/mesh/Mesher.java index 6a2a5827..8f453063 100644 --- a/amibe/src/org/jcae/mesh/Mesher.java +++ b/amibe/src/org/jcae/mesh/Mesher.java @@ -1,258 +1,259 @@ /* jCAE stand for Java Computer Aided Engineering. Features are : Small CAD modeler, Finit e...
false
true
private static void mesh(String brepfilename, String xmlDir, double discr, double defl, double tolerance) { // Declare all variables here // xmlDir: absolute path name where XML files are stored // xmlFile: basename of the main XML file // xmlBrepDir: path to brep file, relative to xmlDir // ...
private static void mesh(String brepfilename, String xmlDir, double discr, double defl, double tolerance) { // Declare all variables here // xmlDir: absolute path name where XML files are stored // xmlFile: basename of the main XML file // xmlBrepDir: path to brep file, relative to xmlDir // ...
diff --git a/jeeves/src/main/java/jeeves/server/dispatchers/guiservices/XmlCacheManager.java b/jeeves/src/main/java/jeeves/server/dispatchers/guiservices/XmlCacheManager.java index c3765147e4..50fc1b06a1 100644 --- a/jeeves/src/main/java/jeeves/server/dispatchers/guiservices/XmlCacheManager.java +++ b/jeeves/src/main/j...
true
true
public synchronized Element get(ServiceContext context, boolean localized, String base, String file, String preferedLanguage, String defaultLang) throws JDOMException, IOException { Map<String, XmlFileCacher> cacheMap = getCacheMap(localized, base, file); String appPath = context.getAppPat...
public synchronized Element get(ServiceContext context, boolean localized, String base, String file, String preferedLanguage, String defaultLang) throws JDOMException, IOException { Map<String, XmlFileCacher> cacheMap = getCacheMap(localized, base, file); String appPath = context.getAppPat...
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/ConfigureSynchronizeScheduleComposite.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/ConfigureSynchronizeScheduleComposite.java index 7b8c3a152..09c7f9d58 100644 --- a/bundles/org.eclipse.team.ui/src/o...
true
true
protected void createMainDialogArea(Composite parent) { final GridLayout gridLayout = new GridLayout(); gridLayout.numColumns = 2; setLayout(gridLayout); setLayoutData(new GridData()); Composite area = this; createWrappingLabel(area, Policy.bind("ConfigureRefreshScheduleDialog.1", schedule.getParticipant(...
protected void createMainDialogArea(Composite parent) { final GridLayout gridLayout = new GridLayout(); gridLayout.numColumns = 2; setLayout(gridLayout); setLayoutData(new GridData()); Composite area = this; createWrappingLabel(area, Policy.bind("ConfigureRefreshScheduleDialog.1", schedule.getParticipant(...
diff --git a/JsTestDriver/src/com/google/jstestdriver/ConfigurationParser.java b/JsTestDriver/src/com/google/jstestdriver/ConfigurationParser.java index 7eabea23..0ac03cec 100644 --- a/JsTestDriver/src/com/google/jstestdriver/ConfigurationParser.java +++ b/JsTestDriver/src/com/google/jstestdriver/ConfigurationParser.ja...
true
true
private Set<FileInfo> resolveFiles(List<String> files, boolean serveOnly) { if (files != null) { Set<FileInfo> resolvedFiles = new LinkedHashSet<FileInfo>(); for (String f : files) { f = pathRewriter.rewrite(f); boolean isPatch = f.startsWith("patch"); if (isPatch) { ...
private Set<FileInfo> resolveFiles(List<String> files, boolean serveOnly) { if (files != null) { Set<FileInfo> resolvedFiles = new LinkedHashSet<FileInfo>(); for (String f : files) { f = pathRewriter.rewrite(f); boolean isPatch = f.startsWith("patch"); if (isPatch) { ...
diff --git a/java/engine/org/apache/derby/impl/store/access/btree/BTreeCostController.java b/java/engine/org/apache/derby/impl/store/access/btree/BTreeCostController.java index 2771d84db..8bc27ab7e 100644 --- a/java/engine/org/apache/derby/impl/store/access/btree/BTreeCostController.java +++ b/java/engine/org/apache/de...
true
true
public void getScanCost( int scan_type, long row_count, int group_size, boolean forUpdate, FormatableBitSet scanColumnList, DataValueDescriptor[] template, DataValueDescriptor[] startKeyValue, ...
public void getScanCost( int scan_type, long row_count, int group_size, boolean forUpdate, FormatableBitSet scanColumnList, DataValueDescriptor[] template, DataValueDescriptor[] startKeyValue, ...
diff --git a/regression/jvm/GcTortureTest.java b/regression/jvm/GcTortureTest.java index 33eef15b..f4c5cfe3 100644 --- a/regression/jvm/GcTortureTest.java +++ b/regression/jvm/GcTortureTest.java @@ -1,22 +1,22 @@ package jvm; public class GcTortureTest { public static void main(String[] args) throws Exception ...
false
true
public static void main(String[] args) throws Exception { Thread[] threads = new Thread[8]; for (int i = 0; i < threads.length; i++) { threads[i] = new Thread(new Runnable() { public void run() { for (int i = 0; i < 1000000; i++) ...
public static void main(String[] args) throws Exception { Thread[] threads = new Thread[32]; for (int i = 0; i < threads.length; i++) { threads[i] = new Thread(new Runnable() { public void run() { for (int i = 0; i < 10000; i++) ...
diff --git a/src/persistence/org/codehaus/groovy/grails/orm/hibernate/GrailsHibernateDomainClass.java b/src/persistence/org/codehaus/groovy/grails/orm/hibernate/GrailsHibernateDomainClass.java index 2009bbd0f..0c22af283 100644 --- a/src/persistence/org/codehaus/groovy/grails/orm/hibernate/GrailsHibernateDomainClass.jav...
false
true
public GrailsHibernateDomainClass(Class clazz, SessionFactory sessionFactory, ClassMetadata metaData) { super(clazz, ""); BeanWrapper bean = getReference(); // configure identity property String ident = metaData.getIdentifierPropertyName(); if (ident != null) { Class identType = bean.getPropertyType(ide...
public GrailsHibernateDomainClass(Class clazz, SessionFactory sessionFactory, ClassMetadata metaData) { super(clazz, ""); BeanWrapper bean = getReference(); // configure identity property String ident = metaData.getIdentifierPropertyName(); if (ident != null) { Class identType = bean.getPropertyType(ide...
diff --git a/webui/core/src/main/java/org/exoplatform/webui/core/UITree.java b/webui/core/src/main/java/org/exoplatform/webui/core/UITree.java index 4bba93c6..c4d1e11a 100644 --- a/webui/core/src/main/java/org/exoplatform/webui/core/UITree.java +++ b/webui/core/src/main/java/org/exoplatform/webui/core/UITree.java @@ -1...
false
true
public String renderNode(Object obj) throws Exception { String nodeIcon =colapseIcon; String iconGroup = icon; String note = ""; if (isSelected(obj)) { nodeIcon = expandIcon; iconGroup = selectedIcon; note = " nodeSelected"; } if ...
public String renderNode(Object obj) throws Exception { String nodeIcon =colapseIcon; String iconGroup = icon; String note = ""; if (isSelected(obj)) { nodeIcon = expandIcon; iconGroup = selectedIcon; note = " nodeSelected"; } if ...
diff --git a/apk/src/org/vimeoid/activity/guest/SingleItemActivity.java b/apk/src/org/vimeoid/activity/guest/SingleItemActivity.java index ed6d101..158e2fe 100644 --- a/apk/src/org/vimeoid/activity/guest/SingleItemActivity.java +++ b/apk/src/org/vimeoid/activity/guest/SingleItemActivity.java @@ -1,99 +1,99 @@ /** * ...
false
true
protected void queryItem() { new ApiTask(getContentResolver(), projection) { @Override protected void onPreExecute() { super.onPreExecute(); showProgressBar(); } @Override protected void onAnswerRec...
protected void queryItem() { new ApiTask(getContentResolver(), projection) { @Override protected void onPreExecute() { super.onPreExecute(); showProgressBar(); } @Override protected void onAnswerReceived(Cursor...
diff --git a/src/haven/CharWnd.java b/src/haven/CharWnd.java index aa2cf0ff..fbd7ad46 100644 --- a/src/haven/CharWnd.java +++ b/src/haven/CharWnd.java @@ -1,459 +1,457 @@ /* * This file is part of the Haven & Hearth game client. * Copyright (C) 2009 Fredrik Tolf <fredrik@dolda2000.com>, and * ...
false
true
public void draw(GOut g) { g.image(res.layer(Resource.imgc).tex(), imgc); g.image(rnm.tex(), nmc); if(attr.comp != cv) rv = null; if(rv == null) rv = Text.render(String.format("%d", cv = attr.comp)); g.image(rv.tex(), vc); g.chcolor(0, 0, 0, 255); g.frect(expc, expsz); g.chc...
public void draw(GOut g) { g.image(res.layer(Resource.imgc).tex(), imgc); g.image(rnm.tex(), nmc); if(attr.comp != cv) rv = null; if(rv == null) rv = Text.render(String.format("%d", cv = attr.comp)); g.image(rv.tex(), vc); g.chcolor(0, 0, 0, 255); g.frect(expc, expsz); g.chc...
diff --git a/src/hexgui/util/StringUtils.java b/src/hexgui/util/StringUtils.java index 976e400..763e273 100644 --- a/src/hexgui/util/StringUtils.java +++ b/src/hexgui/util/StringUtils.java @@ -1,183 +1,185 @@ //---------------------------------------------------------------------------- // $Id$ //-------------------...
false
true
public static Vector<VC> parseVCList(String str) { Vector<VC> ret = new Vector<VC>(); String cleaned = cleanWhiteSpace(str.trim()); if (cleaned.length() == 0) return ret; String[] vcs = cleaned.split(" "); for (int i=0, j=0; i<vcs.length; i+=j) { HexPoi...
public static Vector<VC> parseVCList(String str) { Vector<VC> ret = new Vector<VC>(); String cleaned = cleanWhiteSpace(str.trim()); if (cleaned.length() == 0) return ret; String[] vcs = cleaned.split(" "); for (int i=0, j=0; i<vcs.length; i+=j) { HexPoi...
diff --git a/assets/src/org/ruboto/test/ActivityTest.java b/assets/src/org/ruboto/test/ActivityTest.java index 018d6ec..913e01d 100644 --- a/assets/src/org/ruboto/test/ActivityTest.java +++ b/assets/src/org/ruboto/test/ActivityTest.java @@ -1,57 +1,58 @@ package org.ruboto.test; import android.app.Activity; import...
true
true
public void runTest() throws Exception { Log.d(getClass().getName(), "runTest"); Log.d(getClass().getName(), "runTest: " + getName()); Script.setUpJRuby(null); Log.d(getClass().getName(), "ruby ok"); try { final Activity activity = getActivity(); Log.d...
public void runTest() throws Exception { Log.d(getClass().getName(), "runTest"); Log.d(getClass().getName(), "runTest: " + getName()); Script.setUpJRuby(null); Log.d(getClass().getName(), "ruby ok"); try { final Activity activity = getActivity(); Log.d...
diff --git a/src/com/android/gallery3d/app/SlideshowPage.java b/src/com/android/gallery3d/app/SlideshowPage.java index 54aae67ab..d269e90ea 100644 --- a/src/com/android/gallery3d/app/SlideshowPage.java +++ b/src/com/android/gallery3d/app/SlideshowPage.java @@ -1,367 +1,367 @@ /* * Copyright (C) 2010 The Android Open...
false
true
public void onCreate(Bundle data, Bundle restoreState) { super.onCreate(data, restoreState); mFlags |= (FLAG_HIDE_ACTION_BAR | FLAG_HIDE_STATUS_BAR | FLAG_ALLOW_LOCK_WHILE_SCREEN_ON | FLAG_SHOW_WHEN_LOCKED); if (data.getBoolean(KEY_DREAM)) { // Dream screensaver o...
public void onCreate(Bundle data, Bundle restoreState) { super.onCreate(data, restoreState); mFlags |= (FLAG_HIDE_ACTION_BAR | FLAG_HIDE_STATUS_BAR | FLAG_ALLOW_LOCK_WHILE_SCREEN_ON); if (data.getBoolean(KEY_DREAM)) { // Dream screensaver only keeps screen on for ...
diff --git a/com.ibm.wala.core/src/com/ibm/wala/dataflow/IFDS/TabulationSolver.java b/com.ibm.wala.core/src/com/ibm/wala/dataflow/IFDS/TabulationSolver.java index 7c13257a6..3a2049b4e 100644 --- a/com.ibm.wala.core/src/com/ibm/wala/dataflow/IFDS/TabulationSolver.java +++ b/com.ibm.wala.core/src/com/ibm/wala/dataflow/IF...
false
true
protected void processCall(final PathEdge<T> edge) { if (DEBUG_LEVEL > 0) { System.err.println("process call: " + edge); } // c:= number of the call node final int c = supergraph.getNumber(edge.target); Collection<T> allReturnSites = HashSetFactory.make(); // populate allReturnSites wi...
protected void processCall(final PathEdge<T> edge) { if (DEBUG_LEVEL > 0) { System.err.println("process call: " + edge); } // c:= number of the call node final int c = supergraph.getNumber(edge.target); Collection<T> allReturnSites = HashSetFactory.make(); // populate allReturnSites wi...
diff --git a/src/main/java/water/UKV.java b/src/main/java/water/UKV.java index 7058f4035..4ed461750 100644 --- a/src/main/java/water/UKV.java +++ b/src/main/java/water/UKV.java @@ -1,99 +1,98 @@ package water; /** * User-View Key/Value Store * * This class handles user-view keys, and hides ArrayLets from th...
true
true
static public void put( Key key, Value val, Futures fs ) { Value res = DKV.put(key,val,fs); // If the old Value was a large array, we need to delete the leftover // chunks - they are unrelated to the new Value which might be either // bigger or smaller than the old Value. if( res != null && res.is...
static public void put( Key key, Value val, Futures fs ) { Value res = DKV.put(key,val,fs); // If the old Value was a large array, we need to delete the leftover // chunks - they are unrelated to the new Value which might be either // bigger or smaller than the old Value. if( res != null && res.is...
diff --git a/pubsubhubbub/hub/src/main/java/org/ow2/chameleon/rose/pubsubhubbub/hub/Hub.java b/pubsubhubbub/hub/src/main/java/org/ow2/chameleon/rose/pubsubhubbub/hub/Hub.java index 6191c4d..c1e3937 100644 --- a/pubsubhubbub/hub/src/main/java/org/ow2/chameleon/rose/pubsubhubbub/hub/Hub.java +++ b/pubsubhubbub/hub/src/ma...
true
true
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String rssUrl; String endpointFilter; String callBackUrl; // check the content type, must be application/x-www-form-urlencoded if ((!(req.getHeader("Content-Type") .equals("application/x-ww...
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String rssUrl; String endpointFilter; String callBackUrl; // check the content type, must be application/x-www-form-urlencoded if ((!(req.getHeader("Content-Type") .equals("application/x-ww...
diff --git a/delivery/xmlrpc/src/main/java/org/fiteagle/delivery/xmlrpc/util/SFAHandler.java b/delivery/xmlrpc/src/main/java/org/fiteagle/delivery/xmlrpc/util/SFAHandler.java index 98b9f348..ad42f59a 100644 --- a/delivery/xmlrpc/src/main/java/org/fiteagle/delivery/xmlrpc/util/SFAHandler.java +++ b/delivery/xmlrpc/src/m...
false
true
private void xmlStructToObject(Object from, Object to) { if (to.getClass().isAssignableFrom(ListResourceOptions.class)) { XmlRpcStruct listResourceOptionsStruct = (XmlRpcStruct) from; ListResourceOptions listResourceOptions = (ListResourceOptions) to; listResourceOptions.setGeni_available(new GeniAvailableO...
private void xmlStructToObject(Object from, Object to) { if (to.getClass().isAssignableFrom(ListResourceOptions.class)) { XmlRpcStruct listResourceOptionsStruct = (XmlRpcStruct) from; ListResourceOptions listResourceOptions = (ListResourceOptions) to; listResourceOptions.setGeni_available(new GeniAvailableO...
diff --git a/agit-test-utils/src/main/java/com/madgag/agit/matchers/GitTestHelper.java b/agit-test-utils/src/main/java/com/madgag/agit/matchers/GitTestHelper.java index 282cbcc..73650de 100644 --- a/agit-test-utils/src/main/java/com/madgag/agit/matchers/GitTestHelper.java +++ b/agit-test-utils/src/main/java/com/madgag/...
true
true
public File unpackRepoAndGetGitDir(String fileName) throws IOException, ArchiveException { InputStream rawZipFileInputStream = environment.streamFor(fileName); assertThat(rawZipFileInputStream, notNullValue()); File repoParentFolder = newFolder("unpacked-" + fileName); unzip(rawZipF...
public File unpackRepoAndGetGitDir(String fileName) throws IOException, ArchiveException { InputStream rawZipFileInputStream = environment.streamFor(fileName); assertThat("Stream for "+fileName, rawZipFileInputStream, notNullValue()); File repoParentFolder = newFolder("unpacked-" + fileName...
diff --git a/src/main/java/com/tadamski/arij/issue/list/drawer/IssueListDrawerFragment.java b/src/main/java/com/tadamski/arij/issue/list/drawer/IssueListDrawerFragment.java index ca5a84a..ea510ba 100644 --- a/src/main/java/com/tadamski/arij/issue/list/drawer/IssueListDrawerFragment.java +++ b/src/main/java/com/tadamski...
true
true
void initQuickSearch() { queryEditText.setOnEditorActionListener(new TextView.OnEditorActionListener() { @Override public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if (actionId == EditorInfo.IME_ACTION_SEARCH) { quickSearc...
void initQuickSearch() { queryEditText.setOnEditorActionListener(new TextView.OnEditorActionListener() { @Override public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if (actionId == EditorInfo.IME_ACTION_SEARCH) { quickSearc...
diff --git a/src/org/bombusim/lime/data/VcardResolver.java b/src/org/bombusim/lime/data/VcardResolver.java index 9a1ff51..319390f 100644 --- a/src/org/bombusim/lime/data/VcardResolver.java +++ b/src/org/bombusim/lime/data/VcardResolver.java @@ -1,109 +1,111 @@ package org.bombusim.lime.data; import java.util.ArrayL...
false
true
public synchronized void queryTop() { long current = System.currentTimeMillis(); if (pending != null) { if (current < timeout) { setQueryTimer(); //next polling event return; } queue.remove(pending); } try { Lime.getInstance().serviceBinding.getXmppStream(pending.getRosterJid()).cancel...
public synchronized void queryTop() { long current = System.currentTimeMillis(); if (pending != null) { if (current < timeout) { setQueryTimer(); //next polling event return; } queue.remove(pending); //pending.setAvatar(null, null); } try { Lime.getInstance().serviceBinding.getXmppS...
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java index e0b04dac..c61607e7 100644 --- a/src/com/android/launcher2/LauncherModel.java +++ b/src/com/android/launcher2/LauncherModel.java @@ -1,1996 +1,1999 @@ /* * Copyright (C) 2008 The Android Open Source Project ...
false
true
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
diff --git a/beer30-web-webapp/src/main/java/com/github/darogina/beer30/WebAppInitializer.java b/beer30-web-webapp/src/main/java/com/github/darogina/beer30/WebAppInitializer.java index 479a822..4af4119 100644 --- a/beer30-web-webapp/src/main/java/com/github/darogina/beer30/WebAppInitializer.java +++ b/beer30-web-webapp...
true
true
public void onStartup(ServletContext servletContext) throws ServletException { XmlWebApplicationContext appContext = new XmlWebApplicationContext(); appContext.getEnvironment().setActiveProfiles("resthub-jpa", "resthub-web-server"); String[] locations = { "classpath*:resthubContext.xml", "cl...
public void onStartup(ServletContext servletContext) throws ServletException { XmlWebApplicationContext appContext = new XmlWebApplicationContext(); appContext.getEnvironment().setActiveProfiles("resthub-jpa", "resthub-web-server"); String[] locations = { "classpath*:resthubContext.xml", "cl...
diff --git a/src/com/android/settings/CryptKeeper.java b/src/com/android/settings/CryptKeeper.java index d58dddb93..655d8ad26 100644 --- a/src/com/android/settings/CryptKeeper.java +++ b/src/com/android/settings/CryptKeeper.java @@ -1,598 +1,594 @@ /* * Copyright (C) 2011 The Android Open Source Project * * Lice...
false
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // If we are not encrypted or encrypting, get out quickly. String state = SystemProperties.get("vold.decrypt"); if (!isDebugView() && ("".equals(state) || DECRYPT_STATE.equals(state))) { ...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // If we are not encrypted or encrypting, get out quickly. String state = SystemProperties.get("vold.decrypt"); if (!isDebugView() && ("".equals(state) || DECRYPT_STATE.equals(state))) { ...
diff --git a/flexodesktop/GUI/flexo/src/main/java/org/openflexo/icon/VPMIconLibrary.java b/flexodesktop/GUI/flexo/src/main/java/org/openflexo/icon/VPMIconLibrary.java index 17c8ab4cd..1f4cf0ecd 100644 --- a/flexodesktop/GUI/flexo/src/main/java/org/openflexo/icon/VPMIconLibrary.java +++ b/flexodesktop/GUI/flexo/src/main...
true
true
public static ImageIcon iconForObject(ViewPointObject object) { if (object instanceof PatternRole && ((PatternRole) object).getModelSlot() != null) { TechnologyAdapterController<?> tac = getTechnologyAdapterController(((PatternRole) object).getModelSlot() .getTechnologyAdapter()); if (tac != null) { ...
public static ImageIcon iconForObject(ViewPointObject object) { if (object instanceof PatternRole && ((PatternRole) object).getModelSlot() != null) { TechnologyAdapterController<?> tac = getTechnologyAdapterController(((PatternRole) object).getModelSlot() .getTechnologyAdapter()); if (tac != null) { ...
diff --git a/solr/test-framework/src/java/org/apache/solr/BaseDistributedSearchTestCase.java b/solr/test-framework/src/java/org/apache/solr/BaseDistributedSearchTestCase.java index 4432b665dc..1c3d4ed88b 100644 --- a/solr/test-framework/src/java/org/apache/solr/BaseDistributedSearchTestCase.java +++ b/solr/test-framewo...
false
true
public static String compare(NamedList a, NamedList b, int flags, Map<String, Integer> handle) { // System.out.println("resp a:" + a); // System.out.println("resp b:" + b); boolean ordered = (flags & UNORDERED) == 0; int posa = 0, posb = 0; int aSkipped = 0, bSkipped = 0; for (; ;) { if ...
public static String compare(NamedList a, NamedList b, int flags, Map<String, Integer> handle) { // System.out.println("resp a:" + a); // System.out.println("resp b:" + b); boolean ordered = (flags & UNORDERED) == 0; int posa = 0, posb = 0; int aSkipped = 0, bSkipped = 0; for (; ;) { if ...
diff --git a/mifos/src/main/java/org/mifos/framework/ApplicationInitializer.java b/mifos/src/main/java/org/mifos/framework/ApplicationInitializer.java index c7f0e9f05..7f494f94c 100644 --- a/mifos/src/main/java/org/mifos/framework/ApplicationInitializer.java +++ b/mifos/src/main/java/org/mifos/framework/ApplicationInit...
true
true
public void init() { try { synchronized (ApplicationInitializer.class) { initializeLogger(); initializeHibernate(); /* * getLogger() cannot be called statically (ie: when * initializing LOG) because MifosLogManage...
public void init() { try { synchronized (ApplicationInitializer.class) { initializeLogger(); initializeHibernate(); /* * getLogger() cannot be called statically (ie: when * initializing LOG) because MifosLogManage...
diff --git a/src/com/drexel/duca/frontend/ChatWindow.java b/src/com/drexel/duca/frontend/ChatWindow.java index ac4b2e9..02b2637 100644 --- a/src/com/drexel/duca/frontend/ChatWindow.java +++ b/src/com/drexel/duca/frontend/ChatWindow.java @@ -1,150 +1,151 @@ package com.drexel.duca.frontend; import java.awt.event.Act...
true
true
private void initialize(String title) { frmChatWindow = new JFrame(); frmChatWindow.setTitle(title); frmChatWindow.setBounds(100, 100, 450, 300); frmChatWindow.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); frmChatWindow.getContentPane().setLayout(new BoxLayout(frmChatWin...
private void initialize(String title) { frmChatWindow = new JFrame(); frmChatWindow.setTitle(title); frmChatWindow.setBounds(100, 100, 450, 300); frmChatWindow.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); frmChatWindow.getContentPane().setLayout(new BoxLayout(frmChatWin...
diff --git a/src/main/java/org/threadly/concurrent/ConcurrentDynamicDelayQueue.java b/src/main/java/org/threadly/concurrent/ConcurrentDynamicDelayQueue.java index 842016f5..59aefbba 100644 --- a/src/main/java/org/threadly/concurrent/ConcurrentDynamicDelayQueue.java +++ b/src/main/java/org/threadly/concurrent/Concurrent...
true
true
protected T blockTillAvailable() throws InterruptedException { while (true) { // will break out when ready T next = queue.peek(); if (next == null) { synchronized (queueLock) { while ((next = queue.peek()) == null) { queueLock.await(); } } } ...
protected T blockTillAvailable() throws InterruptedException { while (true) { // will break out when ready T next = queue.peek(); if (next == null) { synchronized (queueLock) { while ((next = queue.peek()) == null) { queueLock.await(); } } } ...
diff --git a/exameditor/web/src/main/java/de/elateportal/editor/pages/TaskDefPage.java b/exameditor/web/src/main/java/de/elateportal/editor/pages/TaskDefPage.java index 5856512..510402a 100644 --- a/exameditor/web/src/main/java/de/elateportal/editor/pages/TaskDefPage.java +++ b/exameditor/web/src/main/java/de/elateport...
true
true
public TaskDefActions(final String id) { super(id); final DownloadLink downloadLink = new DownloadLink("export", new AbstractReadOnlyModel<File>() { @Override public File getObject() { File tempFile = null; try { tempFile = File.createTempFile("taskdef",...
public TaskDefActions(final String id) { super(id); final DownloadLink downloadLink = new DownloadLink("export", new AbstractReadOnlyModel<File>() { @Override public File getObject() { File tempFile = null; try { tempFile = File.createTempFile("taskdef",...
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandmail.java b/Essentials/src/com/earth2me/essentials/commands/Commandmail.java index 9b7f57f..b54b88a 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandmail.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandmail.java @@ ...
true
true
public void run(Server server, User user, String commandLabel, String[] args) throws Exception { if (args.length >= 1 && "read".equalsIgnoreCase(args[0])) { List<String> mail = user.getMails(); if (mail.isEmpty()) { user.sendMessage(Util.i18n("noMail")); return; } for (String s : mail) {...
public void run(Server server, User user, String commandLabel, String[] args) throws Exception { if (args.length >= 1 && "read".equalsIgnoreCase(args[0])) { List<String> mail = user.getMails(); if (mail.isEmpty()) { user.sendMessage(Util.i18n("noMail")); return; } for (String s : mail) {...
diff --git a/src/main/java/com/brotherlogic/booser/servlets/APIEndpoint.java b/src/main/java/com/brotherlogic/booser/servlets/APIEndpoint.java index 90adb57..9ca31df 100644 --- a/src/main/java/com/brotherlogic/booser/servlets/APIEndpoint.java +++ b/src/main/java/com/brotherlogic/booser/servlets/APIEndpoint.java @@ -1,3...
true
true
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { if (req.getParameter("action") != null && req.getParameter("action").equals("version")) { write(resp, "0.4"); return; } String token = null; if (...
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { if (req.getParameter("action") != null && req.getParameter("action").equals("version")) { write(resp, "0.4"); return; } String token = null; if (...
diff --git a/workflow_plugins/solr-plugin/src/test/java/eu/europeana/uim/plugin/solr/test/SolrPluginTest.java b/workflow_plugins/solr-plugin/src/test/java/eu/europeana/uim/plugin/solr/test/SolrPluginTest.java index ff7d741a..aa1eb22e 100644 --- a/workflow_plugins/solr-plugin/src/test/java/eu/europeana/uim/plugin/solr/t...
true
true
public void testConcept() { String RECORD = null; try { RECORD = FileUtils.readFileToString(new File("src/test/resources/edm_concept.xml")); MongodConfig conf = new MongodConfig(Version.V2_0_7, 10000, false); MongodStarter runtime = MongodStarter.getDefaultInstance(); SolrWorkflowService solr...
public void testConcept() { String RECORD = null; try { RECORD = FileUtils.readFileToString(new File("src/test/resources/edm_concept.xml")); MongodConfig conf = new MongodConfig(Version.V2_0_7, 10000, false); MongodStarter runtime = MongodStarter.getDefaultInstance(); SolrWorkflowService solr...
diff --git a/org.iucn.sis.server.extensions.notes/src/org/iucn/sis/server/extensions/notes/NotesRestlet.java b/org.iucn.sis.server.extensions.notes/src/org/iucn/sis/server/extensions/notes/NotesRestlet.java index 726d070f..4d502f5b 100644 --- a/org.iucn.sis.server.extensions.notes/src/org/iucn/sis/server/extensions/not...
true
true
public void handlePost(Representation entity, Request request, Response response, Session session) throws ResourceException { final String type = getType(request); final Integer id = getID(request); if (request.getResourceRef().getQueryAsForm().getFirstValue("option") != null && request.getResourceRef().g...
public void handlePost(Representation entity, Request request, Response response, Session session) throws ResourceException { final String type = getType(request); final Integer id = getID(request); if (request.getResourceRef().getQueryAsForm().getFirstValue("option") != null && request.getResourceRef().g...
diff --git a/modules/grouping/src/test/org/apache/lucene/search/grouping/TestGrouping.java b/modules/grouping/src/test/org/apache/lucene/search/grouping/TestGrouping.java index 2a4bcbcec..89a9ecb93 100644 --- a/modules/grouping/src/test/org/apache/lucene/search/grouping/TestGrouping.java +++ b/modules/grouping/src/test...
false
true
public void testRandom() throws Exception { for(int iter=0;iter<3;iter++) { if (VERBOSE) { System.out.println("TEST: iter=" + iter); } final int numDocs = _TestUtil.nextInt(random, 100, 1000) * RANDOM_MULTIPLIER; //final int numDocs = _TestUtil.nextInt(random, 5, 20); fina...
public void testRandom() throws Exception { for(int iter=0;iter<3;iter++) { if (VERBOSE) { System.out.println("TEST: iter=" + iter); } final int numDocs = _TestUtil.nextInt(random, 100, 1000) * RANDOM_MULTIPLIER; //final int numDocs = _TestUtil.nextInt(random, 5, 20); fina...
diff --git a/src/java/fedora/server/storage/SimpleDOReader.java b/src/java/fedora/server/storage/SimpleDOReader.java index 854b86585..d9d65562b 100755 --- a/src/java/fedora/server/storage/SimpleDOReader.java +++ b/src/java/fedora/server/storage/SimpleDOReader.java @@ -1,684 +1,685 @@ package fedora.server.storage; ...
true
true
public DisseminationBindingInfo[] getDisseminationBindingInfo(String bDefPID, String methodName, Date versDateTime) throws ServerException { // Results will be returned in this array, one item per datastream DisseminationBindingInfo[] bindingInfo; // The disseminator prov...
public DisseminationBindingInfo[] getDisseminationBindingInfo(String bDefPID, String methodName, Date versDateTime) throws ServerException { // Results will be returned in this array, one item per datastream DisseminationBindingInfo[] bindingInfo; // The disseminator prov...
diff --git a/server/src/main/java/org/uiautomation/ios/wkrdp/model/RemoteWebNativeBackedElement.java b/server/src/main/java/org/uiautomation/ios/wkrdp/model/RemoteWebNativeBackedElement.java index 1499d0a7..ebbff9db 100644 --- a/server/src/main/java/org/uiautomation/ios/wkrdp/model/RemoteWebNativeBackedElement.java +++...
false
true
public Point getLocation() throws Exception { // web stuff. //scrollIntoViewIfNeeded(); Point po = findPosition(); Dimension dim = getInspector().getSize(); int webPageWidth = getInspector().getInnerWidth(); if (dim.getWidth() != webPageWidth) { log.fine("BUG : dim.getWidth()!=web...
public Point getLocation() throws Exception { // web stuff. //scrollIntoViewIfNeeded(); Point po = findPosition(); Dimension dim = getInspector().getSize(); int webPageWidth = getInspector().getInnerWidth(); if (dim.getWidth() != webPageWidth) { log.warning("BUG: dim.getWidth()!=w...
diff --git a/src/thothbot/parallax/core/client/shader/ShaderNormalMap.java b/src/thothbot/parallax/core/client/shader/ShaderNormalMap.java index 93dfd694..766dc404 100644 --- a/src/thothbot/parallax/core/client/shader/ShaderNormalMap.java +++ b/src/thothbot/parallax/core/client/shader/ShaderNormalMap.java @@ -1,131 +1,...
true
true
protected void initUniforms() { this.addUniform(UniformsLib.fog); this.addUniform(UniformsLib.lights); this.addUniform(UniformsLib.shadowmap); this.addUniform("enableAO", new Uniform(Uniform.TYPE.I, 0 )); this.addUniform("enableDiffuse", new Uniform(Uniform.TYPE.I, 0 )); this.addUniform("en...
protected void initUniforms() { this.addUniform(UniformsLib.fog); this.addUniform(UniformsLib.lights); this.addUniform(UniformsLib.shadowmap); this.addUniform("enableAO", new Uniform(Uniform.TYPE.I, 0 )); this.addUniform("enableDiffuse", new Uniform(Uniform.TYPE.I, 0 )); this.addUniform("en...
diff --git a/src/main/java/eu/tomylobo/routes/travel/TravelAgency.java b/src/main/java/eu/tomylobo/routes/travel/TravelAgency.java index 1585989..1d746c6 100644 --- a/src/main/java/eu/tomylobo/routes/travel/TravelAgency.java +++ b/src/main/java/eu/tomylobo/routes/travel/TravelAgency.java @@ -1,138 +1,139 @@ /* * Cop...
true
true
public void addTravellerWithMount(String routeName, final Player player, EntityType entityType, String command) throws CommandException { final Route route = plugin.transportSystem.getRoute(routeName); if (route == null) throw new CommandException("Route '"+routeName+"' not found."); route.checkPermission(pl...
public void addTravellerWithMount(String routeName, final Player player, EntityType entityType, String command) throws CommandException { final Route route = plugin.transportSystem.getRoute(routeName); if (route == null) throw new CommandException("Route '"+routeName+"' not found."); route.checkPermission(pl...
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 cb2e5b5a2..8b21de24e 100644 --- a/core-task-impl/src/main/java/org/cytoscape/task/internal/CyActivator.java +++ b/core-task-impl/src/main/java/org/cyto...
true
true
public void start(BundleContext bc) { OpenBrowser openBrowserServiceRef = getService(bc,OpenBrowser.class); CyEventHelper cyEventHelperRef = getService(bc,CyEventHelper.class); CyApplicationConfiguration cyApplicationConfigurationServiceRef = getService(bc,CyApplicationConfiguration.class); RecentlyOpenedTrac...
public void start(BundleContext bc) { OpenBrowser openBrowserServiceRef = getService(bc,OpenBrowser.class); CyEventHelper cyEventHelperRef = getService(bc,CyEventHelper.class); CyApplicationConfiguration cyApplicationConfigurationServiceRef = getService(bc,CyApplicationConfiguration.class); RecentlyOpenedTrac...
diff --git a/src/java/org/infoglue/deliver/taglib/common/ImportTag.java b/src/java/org/infoglue/deliver/taglib/common/ImportTag.java index f7a73446b..a78d21f23 100755 --- a/src/java/org/infoglue/deliver/taglib/common/ImportTag.java +++ b/src/java/org/infoglue/deliver/taglib/common/ImportTag.java @@ -1,281 +1,282 @@ /*...
false
true
public int doEndTag() throws JspException { String forceImportTagFileCaching = CmsPropertyHandler.getProperty("forceImportTagFileCaching"); if(forceImportTagFileCaching != null && forceImportTagFileCaching.equals("true")) { useCache = true; useFileCacheFallback = true; fileCacheCharEncoding = "iso-8...
public int doEndTag() throws JspException { String forceImportTagFileCaching = CmsPropertyHandler.getProperty("forceImportTagFileCaching"); if(forceImportTagFileCaching != null && forceImportTagFileCaching.equals("true")) { useCache = true; useFileCacheFallback = true; fileCacheCharEncoding = "iso-8...
diff --git a/src/java/org/apache/cassandra/io/sstable/SSTableReader.java b/src/java/org/apache/cassandra/io/sstable/SSTableReader.java index b89ee24a2..a67c1ab9a 100644 --- a/src/java/org/apache/cassandra/io/sstable/SSTableReader.java +++ b/src/java/org/apache/cassandra/io/sstable/SSTableReader.java @@ -1,1132 +1,1135 ...
false
true
public RowIndexEntry getPosition(RowPosition key, Operator op, boolean updateCacheAndStats) { // first, check bloom filter if (op == Operator.EQ) { assert key instanceof DecoratedKey; // EQ only make sense if the key is a valid row key if (!bf.isPresent(((Decorate...
public RowIndexEntry getPosition(RowPosition key, Operator op, boolean updateCacheAndStats) { // first, check bloom filter if (op == Operator.EQ) { assert key instanceof DecoratedKey; // EQ only make sense if the key is a valid row key if (!bf.isPresent(((Decorate...
diff --git a/src/com/musicbox/server/packets/handlers/GetAudioByTrack.java b/src/com/musicbox/server/packets/handlers/GetAudioByTrack.java index 833e497..a491837 100644 --- a/src/com/musicbox/server/packets/handlers/GetAudioByTrack.java +++ b/src/com/musicbox/server/packets/handlers/GetAudioByTrack.java @@ -1,88 +1,89 ...
true
true
public void HandlePacket(@NotNull WebSocketConnection connection, @NotNull Packets.Incoming incoming) { @NotNull CacheAllocator cacheAllocator = VkontakteClient.getCache().getAllocator("GetAudioByTrack", incoming.getMessage() + connections_.get(connection).getUid(), Audio.class); ...
public void HandlePacket(@NotNull WebSocketConnection connection, @NotNull Packets.Incoming incoming) { @NotNull CacheAllocator cacheAllocator = VkontakteClient.getCache().getAllocator("GetAudioByTrack", incoming.getMessage() + connections_.get(connection).getUid(), Audio.class); ...