Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/main/java/adsim/handler/FloodingReplayer.java b/src/main/java/adsim/handler/FloodingReplayer.java index 3e73635..727b8c4 100644 --- a/src/main/java/adsim/handler/FloodingReplayer.java +++ b/src/main/java/adsim/handler/FloodingReplayer.java @@ -1,69 +1,69 @@ package adsim.handler; import java.util.C...
true
true
public void interval(Session sess, Node node) { for (val msg : node.getCreatedMessages()) { node.pushMessage(msg); } node.getCreatedMessages().clear(); val buffer = node.getBuffer(); if (!buffer.isEmpty()) { val nextPointer = (index + 1) % buffer.size(...
public void interval(Session sess, Node node) { for (val msg : node.getCreatedMessages()) { node.pushMessage(msg); } node.getCreatedMessages().clear(); val buffer = node.getBuffer(); if (!buffer.isEmpty()) { val nextPointer = (index++) % buffer.size();...
diff --git a/src/main/us/exultant/ahs/thread/WorkFuture.java b/src/main/us/exultant/ahs/thread/WorkFuture.java index 325d59d..519235d 100644 --- a/src/main/us/exultant/ahs/thread/WorkFuture.java +++ b/src/main/us/exultant/ahs/thread/WorkFuture.java @@ -1,321 +1,324 @@ package us.exultant.ahs.thread; import us.exult...
true
true
boolean scheduler_power() { if (!compareAndSetState(State.SCHEDULED.ordinal(), State.RUNNING.ordinal())) { // we were concurrently cancelled. weep. return false; } $runner = Thread.currentThread(); if (getState() == State.RUNNING.ordinal()) { // recheck after setting thread try { $re...
boolean scheduler_power() { if (!compareAndSetState(State.SCHEDULED.ordinal(), State.RUNNING.ordinal())) { // we were concurrently cancelled. weep. return false; } $runner = Thread.currentThread(); if (getState() == State.RUNNING.ordinal()) { // recheck after setting thread try { $re...
diff --git a/Evoting/src/com/rau/evoting/beans/MixNode.java b/Evoting/src/com/rau/evoting/beans/MixNode.java index a7c3594..68fed9a 100644 --- a/Evoting/src/com/rau/evoting/beans/MixNode.java +++ b/Evoting/src/com/rau/evoting/beans/MixNode.java @@ -1,122 +1,122 @@ package com.rau.evoting.beans; import java.util.Arr...
true
true
public String reencrypt() { Election election = ElectionDP.getElection(trustee.getElectId()); ElGamalHelper gamal = new ElGamalHelper(trustee.getPublicKey()); for (CutVote vote : votes) { vote.setAnswersSequence(gamal.encodeBigInt(vote .getAnswersSequence())); // change to reencrypt } ElectionVote...
public String reencrypt() { Election election = ElectionDP.getElection(trustee.getElectId()); ElGamalHelper gamal = new ElGamalHelper(trustee.getPublicKey()); for (CutVote vote : votes) { vote.setAnswersSequence(gamal.reEncodeBigInt(vote .getAnswersSequence())); // change to reencrypt } ElectionVo...
diff --git a/mini2Dx-dependency-injection/src/main/java/org/mini2Dx/context/Bean.java b/mini2Dx-dependency-injection/src/main/java/org/mini2Dx/context/Bean.java index d174ca9aa..b5579d10d 100644 --- a/mini2Dx-dependency-injection/src/main/java/org/mini2Dx/context/Bean.java +++ b/mini2Dx-dependency-injection/src/main/ja...
true
true
public static <T> String getClassKey(Class<T> clazz) { return clazz.getPackage().getName() + clazz.getSimpleName(); }
public static <T> String getClassKey(Class<T> clazz) { return clazz.getName(); }
diff --git a/impl/src/main/java/org/jboss/weld/servlet/ServletHelper.java b/impl/src/main/java/org/jboss/weld/servlet/ServletHelper.java index ec47f013e..9e2a7e7dc 100644 --- a/impl/src/main/java/org/jboss/weld/servlet/ServletHelper.java +++ b/impl/src/main/java/org/jboss/weld/servlet/ServletHelper.java @@ -1,43 +1,49 ...
false
true
public static BeanManagerImpl getModuleBeanManager(ServletContext ctx) { if (ctx == null) { throw new IllegalArgumentException("Must provide the Servlet Context"); } BeanDeploymentArchive beanDeploymentArchive = Container.instance().deploymentServices().get(ServletServices.class)....
public static BeanManagerImpl getModuleBeanManager(ServletContext ctx) { if (ctx == null) { throw new IllegalArgumentException("ServletContext is null"); } BeanDeploymentArchive beanDeploymentArchive = Container.instance().deploymentServices().get(ServletServices.class).getBeanDep...
diff --git a/src/de/todesbaum/jsite/application/ProjectInserter.java b/src/de/todesbaum/jsite/application/ProjectInserter.java index b14dadb..1859393 100644 --- a/src/de/todesbaum/jsite/application/ProjectInserter.java +++ b/src/de/todesbaum/jsite/application/ProjectInserter.java @@ -1,736 +1,736 @@ /* * jSite - Pro...
true
true
public void run() { fireProjectInsertStarted(); List<String> files = fileScanner.getFiles(); /* create connection to node */ synchronized (lockObject) { connection = freenetInterface.getConnection("project-insert-" + random + counter++); } connection.setTempDirectory(tempDirectory); boolean connected...
public void run() { fireProjectInsertStarted(); List<String> files = fileScanner.getFiles(); /* create connection to node */ synchronized (lockObject) { connection = freenetInterface.getConnection("project-insert-" + random + counter++); } connection.setTempDirectory(tempDirectory); boolean connected...
diff --git a/src/gov/nih/nci/nautilus/struts/form/BaseForm.java b/src/gov/nih/nci/nautilus/struts/form/BaseForm.java index bbfcada6..a3c24744 100755 --- a/src/gov/nih/nci/nautilus/struts/form/BaseForm.java +++ b/src/gov/nih/nci/nautilus/struts/form/BaseForm.java @@ -1,90 +1,90 @@ // Created by Xslt generator for Eclip...
false
true
public void setLookups() { diseaseType = new ArrayList(); geneTypeColl = new ArrayList(); // These are hardcoded but will come from DB diseaseType.add( new LabelValueBean( "Astrocytic", "astro" ) ); diseaseType.add( new LabelValueBean( "Oligodendroglial", "oligo" ) ); diseaseType.add( new LabelValueBean...
public void setLookups() { diseaseType = new ArrayList(); geneTypeColl = new ArrayList(); // These are hardcoded but will come from DB diseaseType.add( new LabelValueBean( "Astrocytic", "ASTROCYTOMA" ) ); diseaseType.add( new LabelValueBean( "Oligodendroglial", "OLIG" ) ); //diseaseType.add( new LabelVa...
diff --git a/com.uwusoft.timesheet/src/com/uwusoft/timesheet/TimesheetApp.java b/com.uwusoft.timesheet/src/com/uwusoft/timesheet/TimesheetApp.java index 9ca7d91..969e6b9 100644 --- a/com.uwusoft.timesheet/src/com/uwusoft/timesheet/TimesheetApp.java +++ b/com.uwusoft.timesheet/src/com/uwusoft/timesheet/TimesheetApp.java...
false
true
public Object start(IApplicationContext context) { Display display = PlatformUI.createDisplay(); final IPreferenceStore preferenceStore = Activator.getDefault().getPreferenceStore(); Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { preferenceStore.setValue(SYSTEM_SHUTDOWN, format...
public Object start(IApplicationContext context) { Display display = PlatformUI.createDisplay(); final IPreferenceStore preferenceStore = Activator.getDefault().getPreferenceStore(); Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { preferenceStore.setValue(SYSTEM_SHUTDOWN, format...
diff --git a/src/com/cloud4all/minimatchmaker/MiniMatchMakerService.java b/src/com/cloud4all/minimatchmaker/MiniMatchMakerService.java index e4e241c..28faab6 100644 --- a/src/com/cloud4all/minimatchmaker/MiniMatchMakerService.java +++ b/src/com/cloud4all/minimatchmaker/MiniMatchMakerService.java @@ -1,204 +1,204 @@ pa...
true
true
public int onStartCommand(Intent intent, int flags, int startId) { try { HashMap<String,String> list = new HashMap<String,String>(); CloudIntent cloudinfo = CloudIntent.intentToCloudIntent(intent); int event = cloudinfo.getIdEvent(); int id_action = cloudinfo.getIdAction(); manageArgumentsInPet...
public int onStartCommand(Intent intent, int flags, int startId) { try { HashMap<String,String> list = new HashMap<String,String>(); CloudIntent cloudinfo = CloudIntent.intentToCloudIntent(intent); int event = cloudinfo.getIdEvent(); int id_action = cloudinfo.getIdAction(); manageArgumentsInPet...
diff --git a/org.eclipse.jdt.core/compiler/org/jmlspecs/jml4/boogie/Boogie.java b/org.eclipse.jdt.core/compiler/org/jmlspecs/jml4/boogie/Boogie.java index b1b5f306..0539d716 100644 --- a/org.eclipse.jdt.core/compiler/org/jmlspecs/jml4/boogie/Boogie.java +++ b/org.eclipse.jdt.core/compiler/org/jmlspecs/jml4/boogie/Boogi...
true
true
private void process(Compiler compiler, CompilationUnitDeclaration unit) { if (compiler.options.jmlBoogieOutputOnly) { // debugging / testing BoogieSource source = BoogieVisitor.visit(unit); String results = source.getResults(); String[] resultsArray = results.split("/\\*!BOOGIESTART!\\*/"); //$NON-NLS-1...
private void process(Compiler compiler, CompilationUnitDeclaration unit) { if (compiler.options.jmlBoogieOutputOnly) { // debugging / testing BoogieSource source = BoogieVisitor.visit(unit); String results = source.getResults(); String[] resultsArray = results.split("/\\*!BOOGIESTART!\\*/"); //$NON-NLS-1...
diff --git a/src/be/ibridge/kettle/repository/dialog/RepositoryImportProgressDialog.java b/src/be/ibridge/kettle/repository/dialog/RepositoryImportProgressDialog.java index 742f2105..319dce32 100644 --- a/src/be/ibridge/kettle/repository/dialog/RepositoryImportProgressDialog.java +++ b/src/be/ibridge/kettle/repository/...
true
true
private void importAll() { wLabel.setText("Importing repository objects from an XML file"); try { boolean overwrite = false; boolean askOverwrite = true; boolean makeDirectory = false; boolean askDirectory = true; addLog("Import objects from file ["+filename+"]"); // To where? ...
private void importAll() { wLabel.setText("Importing repository objects from an XML file"); try { boolean overwrite = false; boolean askOverwrite = true; boolean makeDirectory = false; boolean askDirectory = true; addLog("Import objects from file ["+filename+"]"); // To where? ...
diff --git a/src/common/basiccomponents/tile/TileEntityBatteryBox.java b/src/common/basiccomponents/tile/TileEntityBatteryBox.java index 16a7c8a..793aeb4 100644 --- a/src/common/basiccomponents/tile/TileEntityBatteryBox.java +++ b/src/common/basiccomponents/tile/TileEntityBatteryBox.java @@ -1,673 +1,673 @@ package ba...
false
true
public void updateEntity() { super.updateEntity(); if (!this.isDisabled()) { /** * Receive Electricity */ if (this.powerProvider != null) { double receivedElectricity = this.powerProvider.useEnergy(50, 50, true) * UniversalElectricity.BC3_RATIO; this.setJoules(this.joules + receivedEle...
public void updateEntity() { super.updateEntity(); if (!this.isDisabled()) { /** * Receive Electricity */ if (this.powerProvider != null) { double receivedElectricity = this.powerProvider.useEnergy(50, 50, true) * UniversalElectricity.BC3_RATIO; this.setJoules(this.joules + receivedEle...
diff --git a/nephele/nephele-server/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGraph.java b/nephele/nephele-server/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGraph.java index 46e166ea4..4c8e5b916 100644 --- a/nephele/nephele-server/src/main/java/eu/stratosphere/nephele/executiongra...
true
true
private ExecutionVertex createVertex(AbstractJobVertex jobVertex, InstanceManager instanceManager, ExecutionStage initialExecutionStage) throws GraphConversionException { // If the user has requested instance type, check if the type is known by the current instance manager InstanceType instanceType = null; b...
private ExecutionVertex createVertex(AbstractJobVertex jobVertex, InstanceManager instanceManager, ExecutionStage initialExecutionStage) throws GraphConversionException { // If the user has requested instance type, check if the type is known by the current instance manager InstanceType instanceType = null; b...
diff --git a/serenity-app/src/main/java/us/nineworlds/serenity/core/services/ShowRetrievalIntentService.java b/serenity-app/src/main/java/us/nineworlds/serenity/core/services/ShowRetrievalIntentService.java index a9814fa6..9caebc48 100644 --- a/serenity-app/src/main/java/us/nineworlds/serenity/core/services/ShowRetriev...
true
true
protected void createBanners() { MediaContainer mc = null; String baseUrl = null; try { mc = retrieveVideos(); baseUrl = factory.baseURL(); } catch (IOException ex) { Log.e(getClass().getName(), "Unable to talk to server: ", ex); } catch (Exception e) { Log.e(getClass().getName(), "Oops.", e); ...
protected void createBanners() { MediaContainer mc = null; String baseUrl = null; try { mc = retrieveVideos(); baseUrl = factory.baseURL(); } catch (IOException ex) { Log.e(getClass().getName(), "Unable to talk to server: ", ex); } catch (Exception e) { Log.e(getClass().getName(), "Oops.", e); ...
diff --git a/src/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java b/src/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java index 033f0cc8..84aa71d5 100644 --- a/src/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java +++ b/src/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java @@ -1,871 +1,882 @@ ...
false
true
public Packet decodePacket(RTMP rtmp, ByteBuffer in) { final int remaining = in.remaining(); // We need at least one byte if (remaining < 1) { rtmp.bufferDecoding(1); return null; } final int position = in.position(); byte headerByte = in.get(); int headerValue; int byteCount; if ((header...
public Packet decodePacket(RTMP rtmp, ByteBuffer in) { final int remaining = in.remaining(); // We need at least one byte if (remaining < 1) { rtmp.bufferDecoding(1); return null; } final int position = in.position(); byte headerByte = in.get(); int headerValue; int byteCount; if ((header...
diff --git a/continuum-release/src/main/java/org/apache/maven/continuum/release/DefaultContinuumReleaseManager.java b/continuum-release/src/main/java/org/apache/maven/continuum/release/DefaultContinuumReleaseManager.java index d233ecffc..ae9d4b56f 100644 --- a/continuum-release/src/main/java/org/apache/maven/continuum/...
true
true
private ReleaseDescriptor getReleaseDescriptor( Project project, Properties releaseProperties, Map<String, String> relVersions, Map<String, String> devVersions, Map<String, String> environments, String workingDir...
private ReleaseDescriptor getReleaseDescriptor( Project project, Properties releaseProperties, Map<String, String> relVersions, Map<String, String> devVersions, Map<String, String> environments, String workingDir...
diff --git a/src/org/odk/collect/android/tasks/InstanceUploaderTask.java b/src/org/odk/collect/android/tasks/InstanceUploaderTask.java index c04ce4e..ac02cc0 100644 --- a/src/org/odk/collect/android/tasks/InstanceUploaderTask.java +++ b/src/org/odk/collect/android/tasks/InstanceUploaderTask.java @@ -1,168 +1,173 @@ /*...
false
true
protected ArrayList<String> doInBackground(String... values) { ArrayList<String> uploadedIntances = new ArrayList<String>(); int instanceCount = values.length; for (int i = 0; i < instanceCount; i++) { publishProgress(i + 1, instanceCount); // configure connection...
protected ArrayList<String> doInBackground(String... values) { ArrayList<String> uploadedIntances = new ArrayList<String>(); int instanceCount = values.length; for (int i = 0; i < instanceCount; i++) { publishProgress(i + 1, instanceCount); // configure connection...
diff --git a/dojo-server/src/main/java/org/automation/dojo/GameLogService.java b/dojo-server/src/main/java/org/automation/dojo/GameLogService.java index f791387..ca95bac 100644 --- a/dojo-server/src/main/java/org/automation/dojo/GameLogService.java +++ b/dojo-server/src/main/java/org/automation/dojo/GameLogService.java...
false
true
public List<BoardRecord> getBoardRecords() { lock.readLock().lock(); try { if (releases.isEmpty()) { return createBoardRecordsWithZeroScores(); } Map<String, Integer> gameScores = new HashMap<String, Integer>(); for (ReleaseLog release ...
public List<BoardRecord> getBoardRecords() { lock.readLock().lock(); try { Map<String, Integer> gameScores = new HashMap<String, Integer>(); for (ReleaseLog release : releases) { addReleaseScoresToGameScores(release, gameScores); } if (...
diff --git a/crescent_core_web/src/main/java/com/tistory/devyongsik/admin/IndexFileManageServiceImpl.java b/crescent_core_web/src/main/java/com/tistory/devyongsik/admin/IndexFileManageServiceImpl.java index 6d14f3b..6432fcd 100644 --- a/crescent_core_web/src/main/java/com/tistory/devyongsik/admin/IndexFileManageService...
false
true
public boolean reload(String collectionName, String topRankingField) throws Exception { if (collectionName == null) { return false; } CrescentCollectionHandler collectionHandler = SpringApplicationContext.getBean("crescentCollectionHandler", CrescentCollectionHandler.class); CrescentCollection coll...
public boolean reload(String collectionName, String topRankingField) throws Exception { if (collectionName == null) { return false; } CrescentCollectionHandler collectionHandler = SpringApplicationContext.getBean("crescentCollectionHandler", CrescentCollectionHandler.class); CrescentCollection coll...
diff --git a/src/main/java/net/frontlinesms/ui/handler/contacts/ContactsTabHandler.java b/src/main/java/net/frontlinesms/ui/handler/contacts/ContactsTabHandler.java index d515dea..ede8261 100644 --- a/src/main/java/net/frontlinesms/ui/handler/contacts/ContactsTabHandler.java +++ b/src/main/java/net/frontlinesms/ui/hand...
true
true
public void populateGroups(Object popUp, Object list) { Object[] selectedItems = this.ui.getSelectedItems(list); this.ui.setVisible(popUp, this.ui.getSelectedItems(list).length > 0); if (selectedItems.length == 0) { //Nothing selected boolean none = true; for (Object o : this.ui.getItems(popUp)) { i...
public void populateGroups(Object popUp, Object list) { Object[] selectedItems = this.ui.getSelectedItems(list); this.ui.setVisible(popUp, this.ui.getSelectedItems(list).length > 0); if (selectedItems.length == 0) { //Nothing selected boolean none = true; for (Object o : this.ui.getItems(popUp)) { i...
diff --git a/src/net/sourceforge/dvb/projectx/xinput/ftp/FtpServer.java b/src/net/sourceforge/dvb/projectx/xinput/ftp/FtpServer.java index 4521d9e..8b78b05 100644 --- a/src/net/sourceforge/dvb/projectx/xinput/ftp/FtpServer.java +++ b/src/net/sourceforge/dvb/projectx/xinput/ftp/FtpServer.java @@ -1,217 +1,215 @@ packag...
false
true
public boolean test() { int base = 0; boolean error = false; FTPFile[] ftpFiles; testMsg = null; try { int reply; ftpClient.connect(ftpVO.getServer()); // Check connection reply = ftpClient.getReplyCode(); if (!FTPReply.isPositiveCompletion(reply)) { ftpClient.disconnect(); testMsg...
public boolean test() { int base = 0; boolean error = false; FTPFile[] ftpFiles; testMsg = null; try { int reply; ftpClient.connect(ftpVO.getServer()); // Check connection reply = ftpClient.getReplyCode(); if (!FTPReply.isPositiveCompletion(reply)) { ftpClient.disconnect(); testMsg...
diff --git a/GoogleWrapperSample/src/org/osmdroid/google/sample/GoogleWrapperSample.java b/GoogleWrapperSample/src/org/osmdroid/google/sample/GoogleWrapperSample.java index cb27fc2..e93f8f2 100644 --- a/GoogleWrapperSample/src/org/osmdroid/google/sample/GoogleWrapperSample.java +++ b/GoogleWrapperSample/src/org/osmdroi...
false
true
private void setMapView() { if (mMapViewSelection == MapViewSelection.OSM) { final org.osmdroid.views.MapView mapView = new org.osmdroid.views.MapView(this, 256); setContentView(mapView); mMapView = mapView; final org.osmdroid.views.overlay.MyLocationOverlay mlo = new org.osmdroid.views.overlay.MyLocati...
private void setMapView() { if (mMapViewSelection == MapViewSelection.OSM) { final org.osmdroid.views.MapView mapView = new org.osmdroid.views.MapView(this, 256); setContentView(mapView); mMapView = mapView; final org.osmdroid.views.overlay.MyLocationOverlay mlo = new org.osmdroid.views.overlay.MyLocati...
diff --git a/src/com/tzachsolomon/spendingtracker/ViewEntriesSpent.java b/src/com/tzachsolomon/spendingtracker/ViewEntriesSpent.java index 17bef0a..326be79 100644 --- a/src/com/tzachsolomon/spendingtracker/ViewEntriesSpent.java +++ b/src/com/tzachsolomon/spendingtracker/ViewEntriesSpent.java @@ -1,675 +1,675 @@ packag...
false
true
private void menuItemSpentStatistics_Clicked() { // int rowIndex = m_Data.length - 1; HashMap<String, Float> stats = new HashMap<String, Float>(); HashMap<String, Integer> statsCounter = new HashMap<String, Integer>(); StringBuilder stringBuilder = new StringBuilder(); Log.i(TAG, "number of rows: " +...
private void menuItemSpentStatistics_Clicked() { // int rowIndex = m_Data.length - 1; HashMap<String, Float> stats = new HashMap<String, Float>(); HashMap<String, Integer> statsCounter = new HashMap<String, Integer>(); StringBuilder stringBuilder = new StringBuilder(); Log.i(TAG, "number of rows: " +...
diff --git a/src/View/Menu.java b/src/View/Menu.java index e253282..81b5f50 100644 --- a/src/View/Menu.java +++ b/src/View/Menu.java @@ -1,112 +1,112 @@ package View; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.IOException; import org.lwjgl.input.Mouse; import org.n...
true
true
public void update(GameContainer gc, StateBasedGame sbg, int delta) throws SlickException{ int xPos = Mouse.getX(); int yPos = 720 - Mouse.getY(); Input input = gc.getInput(); // Escape key quits the game if(input.isKeyDown(Input.KEY_ESCAPE)) gc.exit(); if((580<xPos && xPos<700) &...
public void update(GameContainer gc, StateBasedGame sbg, int delta) throws SlickException{ int xPos = Mouse.getX(); int yPos = 720 - Mouse.getY(); Input input = gc.getInput(); // Escape key quits the game if(input.isKeyDown(Input.KEY_ESCAPE)) gc.exit(); if((580<xPos && xPos<700) &...
diff --git a/src/com/michitsuchida/marketfavoritter/main/MarketFavoritterActivity.java b/src/com/michitsuchida/marketfavoritter/main/MarketFavoritterActivity.java index 602db41..10464b0 100644 --- a/src/com/michitsuchida/marketfavoritter/main/MarketFavoritterActivity.java +++ b/src/com/michitsuchida/marketfavoritter/ma...
true
true
public boolean onOptionsItemSelected(MenuItem item) { boolean ret = super.onOptionsItemSelected(item); switch (item.getItemId()) { // リストをソート case MENU_ID1: String[] orders = this.getResources().getStringArray(R.array.sort_order); AlertDialog....
public boolean onOptionsItemSelected(MenuItem item) { boolean ret = super.onOptionsItemSelected(item); switch (item.getItemId()) { // リストをソート case MENU_ID1: String[] orders = this.getResources().getStringArray(R.array.sort_order); AlertDialog....
diff --git a/src/com/android/mms/transaction/SmsMessageSender.java b/src/com/android/mms/transaction/SmsMessageSender.java index 0aee539b..c59f147e 100644 --- a/src/com/android/mms/transaction/SmsMessageSender.java +++ b/src/com/android/mms/transaction/SmsMessageSender.java @@ -1,204 +1,204 @@ /* * Copyright (C) 200...
true
true
private boolean queueMessage(long token) throws MmsException { if ((mMessageText == null) || (mNumberOfDests == 0)) { // Don't try to send an empty message. throw new MmsException("Null message body or dest."); } SharedPreferences prefs = PreferenceManager.getDefault...
private boolean queueMessage(long token) throws MmsException { if ((mMessageText == null) || (mNumberOfDests == 0)) { // Don't try to send an empty message. throw new MmsException("Null message body or dest."); } SharedPreferences prefs = PreferenceManager.getDefault...
diff --git a/impl/src/java/org/sakaiproject/clog/impl/ClogContentProducer.java b/impl/src/java/org/sakaiproject/clog/impl/ClogContentProducer.java index 2274715..15fc78c 100644 --- a/impl/src/java/org/sakaiproject/clog/impl/ClogContentProducer.java +++ b/impl/src/java/org/sakaiproject/clog/impl/ClogContentProducer.java...
false
true
public String getContent(String ref) { if(logger.isDebugEnabled()) logger.debug("getContent(" + ref + ")"); String[] parts = ref.split(Entity.SEPARATOR); String type = parts[2]; String id = parts[3]; if(parts.length == 5) { type = parts[3]; id = parts[4]; } try { Post post = ...
public String getContent(String ref) { if(logger.isDebugEnabled()) logger.debug("getContent(" + ref + ")"); String[] parts = ref.split(Entity.SEPARATOR); String type = parts[2]; String id = parts[3]; if(parts.length == 5) { type = parts[3]; id = parts[4]; } try { Post post = ...
diff --git a/app/controllers/PlanService.java b/app/controllers/PlanService.java index 099579d..4f50b75 100644 --- a/app/controllers/PlanService.java +++ b/app/controllers/PlanService.java @@ -1,41 +1,41 @@ package controllers; import models.RetrievalPlan; import models.User; import models.Video; import net.sf.o...
true
true
public static void getRetrievalPlan(@NotNull String videoId, @NotNull String userId){ if(validation.hasErrors()){ play.Logger.error("Invalid params: %s", params); jsonError("Invalid params"); } play.Logger.info("Retrieval plan requested by user: "+userId+" for video: "+videoId); User planRequester...
public static void getRetrievalPlan(@NotNull String videoId, @NotNull String userId){ if(validation.hasErrors()){ play.Logger.error("Invalid params: %s", params); jsonError("Invalid params"); } play.Logger.info("Retrieval plan requested by user: "+userId+" for video: "+videoId); User planRequester...
diff --git a/src/com/reelfx/Applet.java b/src/com/reelfx/Applet.java index 09894d2..2d5ae0e 100644 --- a/src/com/reelfx/Applet.java +++ b/src/com/reelfx/Applet.java @@ -1,563 +1,563 @@ package com.reelfx; import java.applet.AppletContext; import java.awt.GraphicsConfiguration; import java.awt.GraphicsDevice; i...
true
true
public void init() { try { // finish initializing all static variables RFX_FOLDER = new File(getRfxFolderPath()); // should be first BIN_FOLDER = new File(getBinFolderPath()); DESKTOP_FOLDER = new File(getDesktopFolderPath()); try { JS_BRIDGE = JSObject.getWindow(this); } catch(JSException e...
public void init() { try { // finish initializing all static variables RFX_FOLDER = new File(getRfxFolderPath()); // should be first BIN_FOLDER = new File(getBinFolderPath()); DESKTOP_FOLDER = new File(getDesktopFolderPath()); try { JS_BRIDGE = JSObject.getWindow(this); } catch(JSException e...
diff --git a/remoting/src/main/java/hudson/remoting/Which.java b/remoting/src/main/java/hudson/remoting/Which.java index 2fb29382d..d96b1ac8b 100644 --- a/remoting/src/main/java/hudson/remoting/Which.java +++ b/remoting/src/main/java/hudson/remoting/Which.java @@ -1,190 +1,192 @@ /* * The MIT License * * Copyri...
true
true
public static File jarFile(Class clazz) throws IOException { URL res = jarURL(clazz); String resURL = res.toExternalForm(); String originalURL = resURL; if(resURL.startsWith("jar:file:") || resURL.startsWith("wsjar:file:")) return fromJarUrlToFile(resURL); if(res...
public static File jarFile(Class clazz) throws IOException { URL res = jarURL(clazz); String resURL = res.toExternalForm(); String originalURL = resURL; if(resURL.startsWith("jar:file:") || resURL.startsWith("wsjar:file:")) return fromJarUrlToFile(resURL); if(res...
diff --git a/src/gov/nist/javax/sip/SipStackImpl.java b/src/gov/nist/javax/sip/SipStackImpl.java index 9189b9b4..a04fdfe0 100755 --- a/src/gov/nist/javax/sip/SipStackImpl.java +++ b/src/gov/nist/javax/sip/SipStackImpl.java @@ -1,1794 +1,1794 @@ /* * Conditions Of Use * * This software was developed by employees ...
false
true
public SipStackImpl(Properties configurationProperties) throws PeerUnavailableException { this(); configurationProperties = new MergedSystemProperties(configurationProperties); this.configurationProperties = configurationProperties; String address = configurationProperties .getProperty("javax.sip.IP_ADD...
public SipStackImpl(Properties configurationProperties) throws PeerUnavailableException { this(); configurationProperties = new MergedSystemProperties(configurationProperties); this.configurationProperties = configurationProperties; String address = configurationProperties .getProperty("javax.sip.IP_ADD...
diff --git a/src/main/java/com/threewks/thundr/rest/intercept/RestActionInterceptor.java b/src/main/java/com/threewks/thundr/rest/intercept/RestActionInterceptor.java index 6482530..a1f36be 100644 --- a/src/main/java/com/threewks/thundr/rest/intercept/RestActionInterceptor.java +++ b/src/main/java/com/threewks/thundr/r...
false
true
public <T> T exception(Rest annotation, Exception e, HttpServletRequest req, HttpServletResponse res) { int status = (e instanceof HttpStatusException) ? ((HttpStatusException) e).getStatus() : HttpServletResponse.SC_INTERNAL_SERVER_ERROR; Logger.error("Unhandled exception in REST controller method: %s", ...
public <T> T exception(Rest annotation, Exception e, HttpServletRequest req, HttpServletResponse res) { HttpStatusException statusException; if (e instanceof HttpStatusException) { statusException = (HttpStatusException) e; } else { statusException = new HttpStatusException(e, HttpServletResponse.SC_INTER...
diff --git a/onebusaway-api-webapp/src/main/java/org/onebusaway/api/actions/siri/StopMonitoringController.java b/onebusaway-api-webapp/src/main/java/org/onebusaway/api/actions/siri/StopMonitoringController.java index 5294af9f..015715f3 100644 --- a/onebusaway-api-webapp/src/main/java/org/onebusaway/api/actions/siri/Sto...
false
true
public DefaultHttpHeaders index() throws IOException { /* find the stop */ String stopId = _request.getParameter("MonitoringRef"); if (stopId == null) { throw new IllegalArgumentException("Expected parameter MonitoringRef"); } String agencyId = _request.getParameter("OperatorRef"); if (a...
public DefaultHttpHeaders index() throws IOException { /* find the stop */ String stopId = _request.getParameter("MonitoringRef"); if (stopId == null) { throw new IllegalArgumentException("Expected parameter MonitoringRef"); } String agencyId = _request.getParameter("OperatorRef"); if (a...
diff --git a/gdx/src/com/badlogic/gdx/scenes/scene2d/utils/DragAndDrop.java b/gdx/src/com/badlogic/gdx/scenes/scene2d/utils/DragAndDrop.java index 941c39186..eb2a85303 100644 --- a/gdx/src/com/badlogic/gdx/scenes/scene2d/utils/DragAndDrop.java +++ b/gdx/src/com/badlogic/gdx/scenes/scene2d/utils/DragAndDrop.java @@ -1,1...
false
true
public void addSource (final Source source) { DragListener listener = new DragListener() { public void dragStart (InputEvent event, float x, float y, int pointer) { payload = source.dragStart(event, getTouchDownX(), getTouchDownY(), pointer); event.stop(); } public void drag (InputEvent event, floa...
public void addSource (final Source source) { DragListener listener = new DragListener() { public void dragStart (InputEvent event, float x, float y, int pointer) { payload = source.dragStart(event, getTouchDownX(), getTouchDownY(), pointer); event.stop(); } public void drag (InputEvent event, floa...
diff --git a/bundles/extensions/event/src/main/java/org/apache/sling/event/impl/jobs/TopologyCapabilities.java b/bundles/extensions/event/src/main/java/org/apache/sling/event/impl/jobs/TopologyCapabilities.java index d2cdcc0842..755c7c007d 100644 --- a/bundles/extensions/event/src/main/java/org/apache/sling/event/impl/...
true
true
public String detectTarget(final String jobTopic, final Map<String, Object> jobProperties, final QueueInfo queueInfo) { final List<InstanceDescription> potentialTargets = this.getPotentialTargets(jobTopic, jobProperties); logger.debug("Potential targets for {} : {}", jobTopic, potentialT...
public String detectTarget(final String jobTopic, final Map<String, Object> jobProperties, final QueueInfo queueInfo) { final List<InstanceDescription> potentialTargets = this.getPotentialTargets(jobTopic, jobProperties); logger.debug("Potential targets for {} : {}", jobTopic, potentialT...
diff --git a/src/main/org/testng/TestRunner.java b/src/main/org/testng/TestRunner.java index f595d58..d23b72f 100644 --- a/src/main/org/testng/TestRunner.java +++ b/src/main/org/testng/TestRunner.java @@ -1,1077 +1,1076 @@ package org.testng; import java.io.File; import java.util.ArrayList; import java.util.Col...
true
true
private void initMethods() { // // Calculate all the methods we need to invoke // List<ITestNGMethod> beforeClassMethods = new ArrayList<ITestNGMethod>(); List<ITestNGMethod> testMethods = new ArrayList<ITestNGMethod>(); List<ITestNGMethod> afterClassMethods = new ArrayList<ITestNGMethod>(); ...
private void initMethods() { // // Calculate all the methods we need to invoke // List<ITestNGMethod> beforeClassMethods = new ArrayList<ITestNGMethod>(); List<ITestNGMethod> testMethods = new ArrayList<ITestNGMethod>(); List<ITestNGMethod> afterClassMethods = new ArrayList<ITestNGMethod>(); ...
diff --git a/org.openscada.ca.client.jaxws/src/org/openscada/ca/client/jaxws/RemoteConfigurationClient.java b/org.openscada.ca.client.jaxws/src/org/openscada/ca/client/jaxws/RemoteConfigurationClient.java index 9ca4cdfe1..9306921df 100644 --- a/org.openscada.ca.client.jaxws/src/org/openscada/ca/client/jaxws/RemoteConfi...
false
true
protected RemoteConfigurationAdministrator createPort ( final URL url ) { final Service service = javax.xml.ws.Service.create ( url, serviceName ); final RemoteConfigurationAdministrator port = service.getPort ( RemoteConfigurationAdministrator.class ); // adding "Accept-Encoding" ...
protected RemoteConfigurationAdministrator createPort ( final URL url ) { final Service service = javax.xml.ws.Service.create ( url, serviceName ); final RemoteConfigurationAdministrator port = service.getPort ( RemoteConfigurationAdministrator.class ); // adding "Accept-Encoding" ...
diff --git a/opentripplanner-graph-builder/src/test/java/org/opentripplanner/graph_builder/impl/osm/OpenStreetMapGraphBuilderTest.java b/opentripplanner-graph-builder/src/test/java/org/opentripplanner/graph_builder/impl/osm/OpenStreetMapGraphBuilderTest.java index 547272f9c..21cf3f341 100644 --- a/opentripplanner-graph...
true
true
public void testGraphBuilder() throws Exception { Graph gg = new Graph(); OpenStreetMapGraphBuilderImpl loader = new OpenStreetMapGraphBuilderImpl(); FileBasedOpenStreetMapProviderImpl provider = new FileBasedOpenStreetMapProviderImpl(); File file = new File(getClass().getResource...
public void testGraphBuilder() throws Exception { Graph gg = new Graph(); OpenStreetMapGraphBuilderImpl loader = new OpenStreetMapGraphBuilderImpl(); FileBasedOpenStreetMapProviderImpl provider = new FileBasedOpenStreetMapProviderImpl(); File file = new File(getClass().getResource...
diff --git a/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/eobject/ProximityEObjectMatcher.java b/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/eobject/ProximityEObjectMatcher.java index d5cc7616f..6708ba079 100644 --- a/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare...
true
true
public void createMatches(Comparison comparison, Iterator<? extends EObject> leftEObjects, Iterator<? extends EObject> rightEObjects, Iterator<? extends EObject> originEObjects, Monitor monitor) { // FIXME: how to create an EMF submonitor Monitor subMonitor = new BasicMonitor(); subMonitor.beginTask("inde...
public void createMatches(Comparison comparison, Iterator<? extends EObject> leftEObjects, Iterator<? extends EObject> rightEObjects, Iterator<? extends EObject> originEObjects, Monitor monitor) { // FIXME: how to create an EMF submonitor Monitor subMonitor = new BasicMonitor(); subMonitor.beginTask("inde...
diff --git a/hazelcast/src/main/java/com/hazelcast/transaction/impl/TransactionContextImpl.java b/hazelcast/src/main/java/com/hazelcast/transaction/impl/TransactionContextImpl.java index f68e1f1f97..8a72fb3949 100644 --- a/hazelcast/src/main/java/com/hazelcast/transaction/impl/TransactionContextImpl.java +++ b/hazelcas...
true
true
public TransactionalObject getTransactionalObject(String serviceName, Object id) { if (transaction.getState() != Transaction.State.ACTIVE) { throw new TransactionNotActiveException("No transaction is found while accessing " + "transactional object -> " + serviceName + "[" + i...
public TransactionalObject getTransactionalObject(String serviceName, Object id) { if (transaction.getState() != Transaction.State.ACTIVE) { throw new TransactionNotActiveException("No transaction is found while accessing " + "transactional object -> " + serviceName + "[" + i...
diff --git a/tests/src/org/jboss/test/messaging/tools/ServerManagement.java b/tests/src/org/jboss/test/messaging/tools/ServerManagement.java index cc9e3ed64..e5dfc2438 100644 --- a/tests/src/org/jboss/test/messaging/tools/ServerManagement.java +++ b/tests/src/org/jboss/test/messaging/tools/ServerManagement.java @@ -1,1...
true
true
private static synchronized Server spawn(final int i) throws Exception { if(isLocal()) { return null; } StringBuffer sb = new StringBuffer(); sb.append("java").append(' '); sb.append("-Xmx512M").append(' '); String moduleOutput = System.getProperty("module.ou...
private static synchronized Server spawn(final int i) throws Exception { if(isLocal()) { return null; } StringBuffer sb = new StringBuffer(); sb.append("java").append(' '); sb.append("-Xmx512M").append(' '); String moduleOutput = System.getProperty("module.ou...
diff --git a/tools/gem/org.eclipse.ptp.gem/src/org/eclipse/ptp/gem/handlers/GemHandler.java b/tools/gem/org.eclipse.ptp.gem/src/org/eclipse/ptp/gem/handlers/GemHandler.java index 66428169a..dfbcb1f15 100644 --- a/tools/gem/org.eclipse.ptp.gem/src/org/eclipse/ptp/gem/handlers/GemHandler.java +++ b/tools/gem/org.eclipse....
true
true
public Object execute(ExecutionEvent event) throws ExecutionException { // Process the command associated with the event final IWorkbench wb = PlatformUI.getWorkbench(); final IWorkbenchWindow window = wb.getActiveWorkbenchWindow(); final IWorkbenchPage page = window.getActivePage(); final Command cmd = eve...
public Object execute(ExecutionEvent event) throws ExecutionException { // Process the command associated with the event final IWorkbench wb = PlatformUI.getWorkbench(); final IWorkbenchWindow window = wb.getActiveWorkbenchWindow(); final IWorkbenchPage page = window.getActivePage(); final Command cmd = eve...
diff --git a/src/java/org/rapidcontext/core/data/Data.java b/src/java/org/rapidcontext/core/data/Data.java index ff917dc..1da089f 100644 --- a/src/java/org/rapidcontext/core/data/Data.java +++ b/src/java/org/rapidcontext/core/data/Data.java @@ -1,949 +1,949 @@ /* * RapidContext <http://www.rapidcontext.com/> * Cop...
true
true
public String toString() { StringBuffer buffer = new StringBuffer(); String[] keys; if (this.props != null) { keys = this.keys(); buffer.append("{ "); for (int i = 0; i < 3 && i < keys.length; i++) { if (i > 0) { ...
public String toString() { StringBuffer buffer = new StringBuffer(); String[] keys; if (this.props != null) { keys = this.keys(); buffer.append("{ "); for (int i = 0; i < 3 && i < keys.length; i++) { if (i > 0) { ...
diff --git a/Reversi/src/reversi/server/display/ReversiAsciiDisplayController.java b/Reversi/src/reversi/server/display/ReversiAsciiDisplayController.java index 15c5972..0880dd1 100644 --- a/Reversi/src/reversi/server/display/ReversiAsciiDisplayController.java +++ b/Reversi/src/reversi/server/display/ReversiAsciiDispla...
false
true
public static String drawBoard(ReversiBoard board) { Map<Position, BoardPiece<ReversiEntity>> boardPieces = board .getBoardElements(); StringBuilder builder = new StringBuilder(); builder.append(commentLine); builder.append(" "); for(int c = 0; c < 8; c += 1) { builder.append(boardEmptySpace);...
public static String drawBoard(ReversiBoard board) { Map<Position, BoardPiece<ReversiEntity>> boardPieces = board.getBoardElements(); StringBuilder builder = new StringBuilder(); builder.append(commentLine); builder.append(" "); for(int c = 0; c < 8; c += 1) { builder.append(boardEmptySpace); b...
diff --git a/android-xbmcremote/src/org/xbmc/android/remote/business/cm/ControlManager.java b/android-xbmcremote/src/org/xbmc/android/remote/business/cm/ControlManager.java index 93af406..c305cc8 100644 --- a/android-xbmcremote/src/org/xbmc/android/remote/business/cm/ControlManager.java +++ b/android-xbmcremote/src/org...
true
true
private ICurrentlyPlaying getCurrentlyPlaying( final ListModel.AllItems item, final PropertyValue propertyValue) { if (item == null) return IControlClient.NOTHING_PLAYING; if (item.file != null && item.file.contains("Nothing Playing")) { return IControlClient.NOTHING_PLAYING; } else { return new ICon...
private ICurrentlyPlaying getCurrentlyPlaying( final ListModel.AllItems item, final PropertyValue propertyValue) { if (item == null) return IControlClient.NOTHING_PLAYING; if (item.file != null && item.file.contains("Nothing Playing")) { return IControlClient.NOTHING_PLAYING; } else { return new ICon...
diff --git a/illacompiler/src/main/java/illarion/compile/Compiler.java b/illacompiler/src/main/java/illarion/compile/Compiler.java index 99fbef42..af90094e 100644 --- a/illacompiler/src/main/java/illarion/compile/Compiler.java +++ b/illacompiler/src/main/java/illarion/compile/Compiler.java @@ -1,101 +1,102 @@ package ...
false
true
public static void main(final String[] args) { Options options = new Options(); final Option npcDir = new Option("n", "npc-dir", true, "The where the compiled NPC files are stored."); npcDir.setArgs(1); npcDir.setArgName("directory"); npcDir.setRequired(true); option...
public static void main(final String[] args) { Options options = new Options(); final Option npcDir = new Option("n", "npc-dir", true, "The place where the compiled NPC files are stored."); npcDir.setArgs(1); npcDir.setArgName("directory"); npcDir.setRequired(true); ...
diff --git a/OHHClient/src/OperationHotHammer/Display/Hud.java b/OHHClient/src/OperationHotHammer/Display/Hud.java index 56730a6..492376b 100644 --- a/OHHClient/src/OperationHotHammer/Display/Hud.java +++ b/OHHClient/src/OperationHotHammer/Display/Hud.java @@ -1,35 +1,35 @@ package OperationHotHammer.Display; imp...
true
true
public void draw(int screenWidth, int screenHeight) { int line = 0; int column = 0; for (Map.Entry<String, String> entry : vars.entrySet()) { uifont.draw(10+column, 10+fontSize*line++, entry.getKey() + ": " + entry.getValue(), Color.white); ...
public void draw(int screenWidth, int screenHeight) { int line = 0; int column = 0; for (Map.Entry<String, String> entry : vars.entrySet()) { uifont.draw(10+column, 10+fontSize*line++, entry.getKey() + ": " + entry.getValue(), Color.white); ...
diff --git a/src/main/java/sce/finalprojects/sceprojectbackend/runnables/LifecycleSchedulerRunnable.java b/src/main/java/sce/finalprojects/sceprojectbackend/runnables/LifecycleSchedulerRunnable.java index b5cdc6d..7265d00 100644 --- a/src/main/java/sce/finalprojects/sceprojectbackend/runnables/LifecycleSchedulerRunnabl...
true
true
public Set<ClusterRepresentationDO> call() throws Exception { try{ if(runsCounter == 0){ System.out.println("LIFECYCLE: Initial Run"); DatabaseOperations.addNewArticle(this.articleID, this.articleUrl, this.intialAmountOfComments, this.commentsAmountURL,this.maintenanceURL); ArrayOfCommentsFactory comm...
public Set<ClusterRepresentationDO> call() throws Exception { try{ if(runsCounter == 0){ System.out.println("LIFECYCLE: Initial Run"); DatabaseOperations.addNewArticle(this.articleID, this.articleUrl, this.intialAmountOfComments, this.commentsAmountURL,this.maintenanceURL); ArrayOfCommentsFactory comm...
diff --git a/Model/src/java/fr/cg95/cvq/external/impl/ExternalService.java b/Model/src/java/fr/cg95/cvq/external/impl/ExternalService.java index 17d1eaba4..e524f1ab0 100644 --- a/Model/src/java/fr/cg95/cvq/external/impl/ExternalService.java +++ b/Model/src/java/fr/cg95/cvq/external/impl/ExternalService.java @@ -1,452 +...
true
true
public void sendRequest(XmlObject xmlObject, Set<IExternalProviderService> externalProviderServices) throws CvqException { RequestType xmlRequest = ExternalServiceUtils.getRequestTypeFromXmlObject(xmlObject); HomeFolderType xmlHomeFolder = xmlRequest.getHomeFolder(); for (IExte...
public void sendRequest(XmlObject xmlObject, Set<IExternalProviderService> externalProviderServices) throws CvqException { RequestType xmlRequest = ExternalServiceUtils.getRequestTypeFromXmlObject(xmlObject); HomeFolderType xmlHomeFolder = xmlRequest.getHomeFolder(); for (IExte...
diff --git a/src/org/geworkbench/bison/datastructure/biocollections/GoAnalysisResult.java b/src/org/geworkbench/bison/datastructure/biocollections/GoAnalysisResult.java index 9ba39311..b911be62 100644 --- a/src/org/geworkbench/bison/datastructure/biocollections/GoAnalysisResult.java +++ b/src/org/geworkbench/bison/data...
false
true
public static void parseAnnotation(String annotationFileName) { term2Gene.clear(); geneDetails.clear(); try { BufferedReader br = new BufferedReader(new FileReader(annotationFileName)); String line = br.readLine(); int count = 0; countUnexpectedEntrezId = 0; while(line!=null) { while(line.s...
public static void parseAnnotation(String annotationFileName) throws IOException { term2Gene.clear(); geneDetails.clear(); try { BufferedReader br = new BufferedReader(new FileReader(annotationFileName)); String line = br.readLine(); int count = 0; countUnexpectedEntrezId = 0; while(line!=null)...
diff --git a/wings/src/java/org/wings/plaf/css/DialogCG.java b/wings/src/java/org/wings/plaf/css/DialogCG.java index 01324a1..5ac3366 100644 --- a/wings/src/java/org/wings/plaf/css/DialogCG.java +++ b/wings/src/java/org/wings/plaf/css/DialogCG.java @@ -1,68 +1,68 @@ /* * Copyright 2000,2005 wingS development team. ...
true
true
public void writeInternal(Device device, SComponent component) throws IOException { SDialog dialog = (SDialog) component; SRootContainer owner = dialog.getOwner(); String name = dialog.getName(); device.print("\n\n" + "<div id=\"" + name + "\">\n" + ...
public void writeInternal(Device device, SComponent component) throws IOException { SDialog dialog = (SDialog) component; SRootContainer owner = dialog.getOwner(); String name = dialog.getName(); device.print("\n\n" + "<div id=\"" + name + "\">\n" + ...
diff --git a/src/org/opensolaris/opengrok/history/ClearCaseRepository.java b/src/org/opensolaris/opengrok/history/ClearCaseRepository.java index ab476056..fadf3567 100644 --- a/src/org/opensolaris/opengrok/history/ClearCaseRepository.java +++ b/src/org/opensolaris/opengrok/history/ClearCaseRepository.java @@ -1,328 +1,...
true
true
public InputStream getHistoryGet(String parent, String basename, String rev) { InputStream ret = null; String directoryName = getDirectoryName(); File directory = new File(directoryName); String filename = (new File(parent, basename)).getAbsolutePath().substring(directoryName.lengt...
public InputStream getHistoryGet(String parent, String basename, String rev) { InputStream ret = null; String directoryName = getDirectoryName(); File directory = new File(directoryName); String filename = (new File(parent, basename)).getAbsolutePath().substring(directoryName.lengt...
diff --git a/sandbox-providers/tmrk-enterprisecloud/src/test/java/org/jclouds/tmrk/enterprisecloud/xml/ComputePoolCpuUsageJAXBParsingTest.java b/sandbox-providers/tmrk-enterprisecloud/src/test/java/org/jclouds/tmrk/enterprisecloud/xml/ComputePoolCpuUsageJAXBParsingTest.java index 919d561bd6..7291b5ff58 100644 --- a/san...
true
true
public void testParseWithJAXB() throws Exception { Method method = ResourceAsyncClient.class.getMethod("getComputePoolCpuUsage", URI.class); HttpRequest request = factory(ResourceAsyncClient.class).createRequest(method,new URI("/1")); assertResponseParserClassEquals(method, request, ParseXMLWithJA...
public void testParseWithJAXB() throws Exception { Method method = ResourceAsyncClient.class.getMethod("getComputePoolCpuUsage", URI.class); HttpRequest request = factory(ResourceAsyncClient.class).createRequest(method,new URI("/1")); assertResponseParserClassEquals(method, request, ParseXMLWithJA...
diff --git a/ctomlabviewer/src/java/gov/nih/nci/caxchange/ctom/viewer/util/ParticipantSearchDecorator.java b/ctomlabviewer/src/java/gov/nih/nci/caxchange/ctom/viewer/util/ParticipantSearchDecorator.java index 212782b9..2c983f2c 100644 --- a/ctomlabviewer/src/java/gov/nih/nci/caxchange/ctom/viewer/util/ParticipantSearch...
true
true
public final String getFristName() { ParticipantSearchResult partSearchResult = (ParticipantSearchResult) getCurrentRowObject(); String fName = NBSP; if (partSearchResult.getFirstName() != null && !partSearchResult.getFirstName().equals("") && !partSearchResult.getFirstName().equals("null")) { fName =...
public final String getFirstName() { ParticipantSearchResult partSearchResult = (ParticipantSearchResult) getCurrentRowObject(); String fName = NBSP; if (partSearchResult.getFirstName() != null && !partSearchResult.getFirstName().equals("") && !partSearchResult.getFirstName().equals("null")) { fName =...
diff --git a/src/com/shreyaschand/MEDIC/Doctor/Display.java b/src/com/shreyaschand/MEDIC/Doctor/Display.java index 7e47394..d832356 100644 --- a/src/com/shreyaschand/MEDIC/Doctor/Display.java +++ b/src/com/shreyaschand/MEDIC/Doctor/Display.java @@ -1,103 +1,102 @@ package com.shreyaschand.MEDIC.Doctor; import java....
false
true
protected Boolean doInBackground(Socket... socket) { try { BufferedReader in = new BufferedReader(new InputStreamReader( socket[0].getInputStream())); PrintWriter out = new PrintWriter(socket[0].getOutputStream()); out.println("$DOC$" + user); out.flush(); out.close(); String message ...
protected Boolean doInBackground(Socket... socket) { try { BufferedReader in = new BufferedReader(new InputStreamReader(socket[0].getInputStream())); PrintWriter out = new PrintWriter(socket[0].getOutputStream()); out.println("$DOC$" + user); out.flush(); // out.close(); String message = in....
diff --git a/src/joshua/decoder/DecoderThread.java b/src/joshua/decoder/DecoderThread.java index a25891e9..4f471410 100644 --- a/src/joshua/decoder/DecoderThread.java +++ b/src/joshua/decoder/DecoderThread.java @@ -1,151 +1,151 @@ package joshua.decoder; import java.io.IOException; import java.util.ArrayList; imp...
true
true
public Translation translate(Sentence sentence) { logger.info("Translating sentence #" + sentence.id() + " [thread " + getId() + "]\n" + sentence.source()); if (sentence.target() != null) logger.info("Constraining to target sentence '" + sentence.target() + "'"); // skip blank sentences ...
public Translation translate(Sentence sentence) { logger.info("Translating sentence #" + sentence.id() + " [thread " + getId() + "]\n" + sentence.source()); if (sentence.target() != null) logger.info("Constraining to target sentence '" + sentence.target() + "'"); // skip blank sentences ...
diff --git a/src/ch/epfl/ad/milestone2/app/Query3.java b/src/ch/epfl/ad/milestone2/app/Query3.java index 32e5c8a..5ece1dd 100644 --- a/src/ch/epfl/ad/milestone2/app/Query3.java +++ b/src/ch/epfl/ad/milestone2/app/Query3.java @@ -1,85 +1,85 @@ package ch.epfl.ad.milestone2.app; import java.sql.ResultSet; import jav...
true
true
public void run(String[] args) throws SQLException, InterruptedException { if (args.length < 1) { System.out.println("Arguments: config-file [SEGMENT [DATE]]"); System.exit(1); } // Segment enum: AUTOMOBILE, BUILDING, FURNITURE, MACHINERY, HOUSEHOLD String querySegment = "BUILDING"; String ...
public void run(String[] args) throws SQLException, InterruptedException { if (args.length < 1) { System.out.println("Arguments: config-file [SEGMENT [DATE]]"); System.exit(1); } // Segment enum: AUTOMOBILE, BUILDING, FURNITURE, MACHINERY, HOUSEHOLD String querySegment = "BUILDING"; String ...
diff --git a/DataExtractionOSM/src/net/osmand/data/index/IndexBatchCreator.java b/DataExtractionOSM/src/net/osmand/data/index/IndexBatchCreator.java index f89f664b..a809920b 100644 --- a/DataExtractionOSM/src/net/osmand/data/index/IndexBatchCreator.java +++ b/DataExtractionOSM/src/net/osmand/data/index/IndexBatchCreato...
true
true
protected void uploadIndex(File f, Set<String> alreadyUploadedFiles){ if(!uploadIndexes){ return; } MessageFormat format = new MessageFormat("{0,date,dd.MM.yyyy} : {1, number,##.#} MB", Locale.US); String summary; double mbLengh = (double)f.length() / MB; boolean zip = true; String regionName; if(f....
protected void uploadIndex(File f, Set<String> alreadyUploadedFiles){ if(!uploadIndexes){ return; } MessageFormat format = new MessageFormat("{0,date,dd.MM.yyyy} : {1, number,##.#} MB", Locale.US); String summary; double mbLengh = (double)f.length() / MB; boolean zip = true; String regionName; if(f....
diff --git a/src/controller/CandyMonsterController.java b/src/controller/CandyMonsterController.java index dda49cb..7901427 100644 --- a/src/controller/CandyMonsterController.java +++ b/src/controller/CandyMonsterController.java @@ -1,52 +1,52 @@ package controller; import org.newdawn.slick.Color; import org.newda...
false
true
public boolean isDroppedOnMonster(Item item){ if(!item.isPickedUp() && item.CANDY_NUMBER == candyMonster.CANDY_NUMBER && (candyMonsterView.getShape().contains(inGameController.getItemControllers(). get(inGameController.getBlockMapController().getBlockMapView().getCandyMonsterNbrMap(). indexOf(cand...
public boolean isDroppedOnMonster(Item item){ if(!item.isPickedUp() && item.CANDY_NUMBER == candyMonster.CANDY_NUMBER && (candyMonsterView.getShape().contains(inGameController.getItemControllers(). get(inGameController.getBlockMapController().getBlockMapView().getItemNbrMap(). indexOf(candyMonster...
diff --git a/src/main/java/org/elasticsearch/percolator/PercolatorService.java b/src/main/java/org/elasticsearch/percolator/PercolatorService.java index a132548c81d..7d274398368 100644 --- a/src/main/java/org/elasticsearch/percolator/PercolatorService.java +++ b/src/main/java/org/elasticsearch/percolator/PercolatorServ...
true
true
private ParsedDocument parseRequest(IndexService documentIndexService, PercolateShardRequest request, PercolateContext context) throws ElasticSearchException { BytesReference source = request.source(); if (source == null || source.length() == 0) { return null; } // TODO:...
private ParsedDocument parseRequest(IndexService documentIndexService, PercolateShardRequest request, PercolateContext context) throws ElasticSearchException { BytesReference source = request.source(); if (source == null || source.length() == 0) { return null; } // TODO:...
diff --git a/javafx.project/src/org/netbeans/modules/javafx/project/ui/customizer/CustomizerApplet.java b/javafx.project/src/org/netbeans/modules/javafx/project/ui/customizer/CustomizerApplet.java index 58ca3b58..1e6acdf6 100644 --- a/javafx.project/src/org/netbeans/modules/javafx/project/ui/customizer/CustomizerApplet...
false
true
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; descriptionLabel = new javax.swing.JLabel(); noteLabel = new javax.swing.JLabel(); widthLabel = new javax.swing.JLabel(); widthSpinner = new javax.swing.JSpinner(); heightLabel = new java...
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; descriptionLabel = new javax.swing.JLabel(); noteLabel = new javax.swing.JLabel(); widthLabel = new javax.swing.JLabel(); widthSpinner = new javax.swing.JSpinner(); heightLabel = new java...
diff --git a/src/main/java/net/floodlightcontroller/perfmon/PerfMonToggleResource.java b/src/main/java/net/floodlightcontroller/perfmon/PerfMonToggleResource.java index 7bd31382..32af054d 100644 --- a/src/main/java/net/floodlightcontroller/perfmon/PerfMonToggleResource.java +++ b/src/main/java/net/floodlightcontroller/...
true
true
public String retrieve() { IPktInProcessingTimeService pktinProcTime = (IPktInProcessingTimeService)getContext().getAttributes(). get(IPktInProcessingTimeService.class.getCanonicalName()); String param = ((String)getRequestAttributes().get("perfmonstate"...
public String retrieve() { IPktInProcessingTimeService pktinProcTime = (IPktInProcessingTimeService)getContext().getAttributes(). get(IPktInProcessingTimeService.class.getCanonicalName()); String param = ((String)getRequestAttributes().get("perfmonstate"...
diff --git a/src/main/java/com/gitblit/manager/GitblitManager.java b/src/main/java/com/gitblit/manager/GitblitManager.java index 95d50ac1..9d096ddf 100644 --- a/src/main/java/com/gitblit/manager/GitblitManager.java +++ b/src/main/java/com/gitblit/manager/GitblitManager.java @@ -1,1115 +1,1116 @@ /* * Copyright 2013 ...
false
true
public RepositoryModel fork(RepositoryModel repository, UserModel user) throws GitBlitException { String cloneName = MessageFormat.format("{0}/{1}.git", user.getPersonalPath(), StringUtils.stripDotGit(StringUtils.getLastPathElement(repository.name))); String fromUrl = MessageFormat.format("file://{0}/{1}", reposit...
public RepositoryModel fork(RepositoryModel repository, UserModel user) throws GitBlitException { String cloneName = MessageFormat.format("{0}/{1}.git", user.getPersonalPath(), StringUtils.stripDotGit(StringUtils.getLastPathElement(repository.name))); String fromUrl = MessageFormat.format("file://{0}/{1}", reposit...
diff --git a/src/test/cli/cloudify/InternalUSMPuServiceDownTest.java b/src/test/cli/cloudify/InternalUSMPuServiceDownTest.java index e3cf2dcb..55bd66b8 100644 --- a/src/test/cli/cloudify/InternalUSMPuServiceDownTest.java +++ b/src/test/cli/cloudify/InternalUSMPuServiceDownTest.java @@ -1,179 +1,179 @@ package test.cli...
true
true
public void tomcatServiceDownAndCorruptedTest() throws IOException, InterruptedException, PackagingException { String serviceDir = ScriptUtils.getBuildPath() + "/recipes/services/tomcat"; String command = "connect " + this.restUrl + ";" + "install-service " + "--verbose -timeout 10 " + serviceDir; try { Lo...
public void tomcatServiceDownAndCorruptedTest() throws IOException, InterruptedException, PackagingException { String serviceDir = ScriptUtils.getBuildPath() + "/recipes/services/tomcat"; String command = "connect " + this.restUrl + ";" + "install-service " + "--verbose -timeout 10 " + serviceDir; try { Lo...
diff --git a/jOOQ-test/src/org/jooq/test/_/testcases/ExecuteListenerTests.java b/jOOQ-test/src/org/jooq/test/_/testcases/ExecuteListenerTests.java index 1cec066e7..37dea0dbc 100644 --- a/jOOQ-test/src/org/jooq/test/_/testcases/ExecuteListenerTests.java +++ b/jOOQ-test/src/org/jooq/test/_/testcases/ExecuteListenerTests....
false
true
public void testExecuteListenerFetchLazyTest() throws Exception { Factory create = create(new Settings().withExecuteListeners(FetchLazyListener.class.getName())); FetchLazyListener.reset(); create.selectFrom(TAuthor()).fetch(); assertEquals(1, FetchLazyListener.countStart); ...
public void testExecuteListenerFetchLazyTest() throws Exception { Factory create = create(new Settings().withExecuteListeners(FetchLazyListener.class.getName())); FetchLazyListener.reset(); create.selectFrom(TAuthor()).fetch(); assertEquals(1, FetchLazyListener.countStart); ...
diff --git a/src/main/java/org/vamdc/validator/gui/mainframe/QueryField.java b/src/main/java/org/vamdc/validator/gui/mainframe/QueryField.java index e54ea13..eb105c0 100644 --- a/src/main/java/org/vamdc/validator/gui/mainframe/QueryField.java +++ b/src/main/java/org/vamdc/validator/gui/mainframe/QueryField.java @@ -1,8...
true
true
protected void loadValues(){ super.loadValues(); if (data!=null && data.getSampleQueries()!=null) for (String query:data.getSampleQueries()){ if (query.length()>1){ validateQuery(query); this.addItem(query+";"); } } }
protected void loadValues(){ super.loadValues(); if (data!=null && data.getSampleQueries()!=null) for (String query:data.getSampleQueries()){ String trq=query.trim(); if (trq.length()>1){ validateQuery(trq); if (!trq.endsWith(";")) trq=trq+";"; this.addItem(trq); } } }
diff --git a/src/com/arantius/tivocommander/Explore.java b/src/com/arantius/tivocommander/Explore.java index 287eee5..3d13815 100644 --- a/src/com/arantius/tivocommander/Explore.java +++ b/src/com/arantius/tivocommander/Explore.java @@ -1,476 +1,477 @@ /* DVR Commander for TiVo allows control of a TiVo Premiere devic...
true
true
protected void finishRequest() { if (--mRequestCount != 0) { return; } getParent().setProgressBarIndeterminateVisibility(false); if (mRecordingId == null) { for (JsonNode recording : mContent.path("recordingForContentId")) { String state = recording.path("state").asText(); ...
protected void finishRequest() { if (--mRequestCount != 0) { return; } getParent().setProgressBarIndeterminateVisibility(false); if (mRecordingId == null) { for (JsonNode recording : mContent.path("recordingForContentId")) { String state = recording.path("state").asText(); ...
diff --git a/src/main/java/de/bbe_consulting/mavento/MagentoArtifactMojo.java b/src/main/java/de/bbe_consulting/mavento/MagentoArtifactMojo.java index c9b82a9..93837cc 100644 --- a/src/main/java/de/bbe_consulting/mavento/MagentoArtifactMojo.java +++ b/src/main/java/de/bbe_consulting/mavento/MagentoArtifactMojo.java @@ ...
false
true
private void createVanillaArtifact() throws MojoExecutionException { getLog().info("Working directory is: " + tempDirPath); try { FileUtil.unzipFile(magentoZip, tempDirPath.toString()); } catch (IOException e) { throw new MojoExecutionException(e.getMessage(), e); ...
private void createVanillaArtifact() throws MojoExecutionException { getLog().info("Working directory is: " + tempDirPath); try { FileUtil.unzipFile(magentoZip, tempDirPath.toString()); } catch (IOException e) { throw new MojoExecutionException(e.getMessage(), e); ...
diff --git a/src/org/cyanogenmod/nemesis/CameraManager.java b/src/org/cyanogenmod/nemesis/CameraManager.java index 0a1fb86..cfbba3b 100644 --- a/src/org/cyanogenmod/nemesis/CameraManager.java +++ b/src/org/cyanogenmod/nemesis/CameraManager.java @@ -1,783 +1,783 @@ /** * Copyright (C) 2013 The CyanogenMod Project *...
false
true
public boolean open(final int cameraId) { if (mCamera != null) { if (mPreviewPauseListener != null) { mPreviewPauseListener.onPreviewPause(); } // Close the previous camera releaseCamera(); } mCameraReady = false; // ...
public boolean open(final int cameraId) { if (mCamera != null) { if (mPreviewPauseListener != null) { mPreviewPauseListener.onPreviewPause(); } // Close the previous camera releaseCamera(); } mCameraReady = false; // ...
diff --git a/JSynthLib/org/jsynthlib/editorbuilder/widgets/Widget.java b/JSynthLib/org/jsynthlib/editorbuilder/widgets/Widget.java index d891ba8..070e667 100644 --- a/JSynthLib/org/jsynthlib/editorbuilder/widgets/Widget.java +++ b/JSynthLib/org/jsynthlib/editorbuilder/widgets/Widget.java @@ -1,85 +1,87 @@ package org....
true
true
protected void writeContent(XMLWriter xml) throws SAXException { Component kids[] = getComponents(); boolean started = false; if (kids != null && kids.length > 0) { for (int i = 0; i < kids.length; i++) { if (kids[i] instanceof Widget) { if (!started) xml.startElement("widgets"); ((Widget)...
protected void writeContent(XMLWriter xml) throws SAXException { Component kids[] = getComponents(); boolean started = false; if (kids != null && kids.length > 0) { for (int i = 0; i < kids.length; i++) { if (kids[i] instanceof Widget) { if (!started) { xml.startElement("widgets"); ...
diff --git a/java/ibrdtnlib/src/ibrdtn/api/object/NodeConnection.java b/java/ibrdtnlib/src/ibrdtn/api/object/NodeConnection.java index 7798a5ee..b45a9ebe 100644 --- a/java/ibrdtnlib/src/ibrdtn/api/object/NodeConnection.java +++ b/java/ibrdtnlib/src/ibrdtn/api/object/NodeConnection.java @@ -1,143 +1,143 @@ package ibrd...
true
true
private void parse(String data) { final Pattern pattern = Pattern.compile( "(\\d+)" // priority + "#" + "(\\w+)" // type + "#" + "(\\w+)" // protocol + "#" + "(.*)" // connection data ...
private void parse(String data) { final Pattern pattern = Pattern.compile( "(\\d+)" // priority + "#" + "(\\w+)" // type + "#" + "((\\w|:)+)" // protocol + "#" + "(.*)" // connection data ...
diff --git a/src/com/github/nutomic/controldlna/FileArrayAdapter.java b/src/com/github/nutomic/controldlna/FileArrayAdapter.java index fa5215c..47efbac 100644 --- a/src/com/github/nutomic/controldlna/FileArrayAdapter.java +++ b/src/com/github/nutomic/controldlna/FileArrayAdapter.java @@ -1,103 +1,104 @@ /* Copyright ...
false
true
public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) { LayoutInflater inflater = (LayoutInflater) getContext() .getSystemService(Context.LAYOUT_INFLATER_SERVICE); convertView = inflater.inflate(R.layout.list_item, parent, false); }...
public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) { LayoutInflater inflater = (LayoutInflater) getContext() .getSystemService(Context.LAYOUT_INFLATER_SERVICE); convertView = inflater.inflate(R.layout.list_item, parent, false); }...
diff --git a/liveDemo/core/source/org/openfaces/demo/beans/selectbooleancheckbox/PermissionSchema.java b/liveDemo/core/source/org/openfaces/demo/beans/selectbooleancheckbox/PermissionSchema.java index dbc2a39f2..68c7105e8 100644 --- a/liveDemo/core/source/org/openfaces/demo/beans/selectbooleancheckbox/PermissionSchema....
false
true
public Map<Permission, State> get(final Object key) { if (key == null) { return null; } final PermissionGroup permissionGroup; if (key instanceof PermissionGroup) { permissionGroup = (PermissionGroup) key; } else { ...
public Map<Permission, State> get(final Object key) { if (key == null) { return null; } final PermissionGroup permissionGroup; if (key instanceof PermissionGroup) { permissionGroup = (PermissionGroup) key; } else { ...
diff --git a/src/gool/generator/python/PythonGenerator.java b/src/gool/generator/python/PythonGenerator.java index 337f249..ccd177b 100644 --- a/src/gool/generator/python/PythonGenerator.java +++ b/src/gool/generator/python/PythonGenerator.java @@ -1,768 +1,772 @@ package gool.generator.python; import gool.ast.cons...
false
true
public String printClass(ClassDef classDef) { //StringBuilder code = new StringBuilder ("#!/usr/bin/env python\n\nimport goolHelper\n\n"); StringBuilder code = new StringBuilder (String.format("# Platform: %s\n\n", classDef.getPlatform())); code.append("import goolHelper\n"); Set<String> dependencies = G...
public String printClass(ClassDef classDef) { //StringBuilder code = new StringBuilder ("#!/usr/bin/env python\n\nimport goolHelper\n\n"); StringBuilder code = new StringBuilder (String.format("# Platform: %s\n\n", classDef.getPlatform())); code.append("import goolHelper\n"); Set<String> dependencies = G...
diff --git a/src/java/LGDEditTool/Templates/TemplatesUnmappedTags.java b/src/java/LGDEditTool/Templates/TemplatesUnmappedTags.java index dbaf39e..f1b4830 100644 --- a/src/java/LGDEditTool/Templates/TemplatesUnmappedTags.java +++ b/src/java/LGDEditTool/Templates/TemplatesUnmappedTags.java @@ -1,134 +1,134 @@ /* * ...
false
true
static public String unmappedTags(String ksite,String kvsite){ String s = new String(); //kmapping table String tableHead = "\t\t\t\t<h2>List of all Unmapped Tags</h2>\n"; tableHead += "\t\t\t\t<table class=\"table\">\n"; tableHead += "\t\t\t\t\t<tr class=mapping>\n"; tableHea...
static public String unmappedTags(String ksite,String kvsite){ String s = new String(); //kmapping table String tableHead = "\t\t\t\t<h2>List of all Unmapped Tags</h2>\n"; tableHead += "\t\t\t\t<table class=\"table\">\n"; tableHead += "\t\t\t\t\t<tr class=mapping>\n"; tableHea...
diff --git a/src/org/windycityrails/activities/SponsorDetail.java b/src/org/windycityrails/activities/SponsorDetail.java index caacc15..5a19685 100644 --- a/src/org/windycityrails/activities/SponsorDetail.java +++ b/src/org/windycityrails/activities/SponsorDetail.java @@ -1,57 +1,57 @@ package org.windycityrails.activ...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.v(Constants.LOGTAG, " " + SponsorDetail.CLASSTAG + " onCreate"); WindyCityRailsApplication app = (WindyCityRailsApplication) getApplication(); final Sponsor sponsor = app.getCurrentSponsor(); setContentView(R.layout.s...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.v(Constants.LOGTAG, " " + SponsorDetail.CLASSTAG + " onCreate"); WindyCityRailsApplication app = (WindyCityRailsApplication) getApplication(); final Sponsor sponsor = app.getCurrentSponsor(); setContentView(R.layout.s...
diff --git a/template/source/Template.java b/template/source/Template.java index 8dd834a..fabd1d5 100644 --- a/template/source/Template.java +++ b/template/source/Template.java @@ -1,149 +1,149 @@ import java.io.BufferedReader; import java.io.File; import java.io.FileOutputStream; import java.io.FileReader; import...
true
true
public Template() throws Exception { String problem = getClass().getSimpleName(); if (INPUT == null) { File input = findInput(problem); if (input == null) { throw new IOException("No input file found"); } File output = new File(input.ge...
public Template() throws Exception { String problem = getClass().getSimpleName(); if (INPUT == null) { File input = findInput(problem); if (input == null) { throw new IOException("No input file found"); } File output = new File(input.ge...
diff --git a/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageActionListener.java b/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageActionListener.java index de8427e3a..a65164312 100644 --- a/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageActionListener.java +++ ...
false
true
public void execute(Event<UIPortal> event) throws Exception { UIPortal showedUIPortal = event.getSource(); UIPortalApplication uiPortalApp = showedUIPortal.getAncestorOfType(UIPortalApplication.class); //This code snippet is to make sure that Javascript/Skin is fully loa...
public void execute(Event<UIPortal> event) throws Exception { UIPortal showedUIPortal = event.getSource(); UIPortalApplication uiPortalApp = showedUIPortal.getAncestorOfType(UIPortalApplication.class); //This code snippet is to make sure that Javascript/Skin is fully loa...
diff --git a/src/jumble/fast/SeanResultPrinter.java b/src/jumble/fast/SeanResultPrinter.java index 00ad09a..c9619e4 100644 --- a/src/jumble/fast/SeanResultPrinter.java +++ b/src/jumble/fast/SeanResultPrinter.java @@ -1,76 +1,76 @@ package jumble.fast; import java.io.PrintStream; import jumble.Mutation; /** ...
true
true
public void printResult(JumbleResult res) throws Exception { PrintStream out = getStream(); out.println("Mutating " + res.getClassName()); if (Class.forName(res.getClassName()).isInterface()) { out.println("Score: 100 (INTERFACE)"); return; } String[] testClasses = res.getTest...
public void printResult(JumbleResult res) throws Exception { PrintStream out = getStream(); out.println("Mutating " + res.getClassName()); if (res.isInterface()) { out.println("Score: 100 (INTERFACE)"); return; } String[] testClasses = res.getTestClasses(); out.print("Test...
diff --git a/src/com/yahoo/platform/yui/compressor/CssCompressor.java b/src/com/yahoo/platform/yui/compressor/CssCompressor.java index 3fb497a..c8c560f 100644 --- a/src/com/yahoo/platform/yui/compressor/CssCompressor.java +++ b/src/com/yahoo/platform/yui/compressor/CssCompressor.java @@ -1,382 +1,382 @@ /* * YUI Com...
true
true
public void compress(Writer out, int linebreakpos) throws IOException { Pattern p; Matcher m; String css = srcsb.toString(); int startIndex = 0; int endIndex = 0; int i = 0; int max = 0; ArrayList preservedTokens = new ArrayList(0); ...
public void compress(Writer out, int linebreakpos) throws IOException { Pattern p; Matcher m; String css = srcsb.toString(); int startIndex = 0; int endIndex = 0; int i = 0; int max = 0; ArrayList preservedTokens = new ArrayList(0); ...
diff --git a/src/es/jafs/jaiberdroid/QueryManager.java b/src/es/jafs/jaiberdroid/QueryManager.java index 873bc85..2396d04 100644 --- a/src/es/jafs/jaiberdroid/QueryManager.java +++ b/src/es/jafs/jaiberdroid/QueryManager.java @@ -1,312 +1,312 @@ package es.jafs.jaiberdroid; import java.util.ArrayList; import java.u...
false
true
public long executeUpdate(final Query query) throws JaiberdroidException { long rows = -1; try { final SQLiteDatabase database = getWritableDatabase(); if (query.isTransactional()) { database.beginTransaction(); } switch (query.getType()) { // Inserts a value into the database. case INSE...
public long executeUpdate(final Query query) throws JaiberdroidException { long rows = -1; try { final SQLiteDatabase database = getWritableDatabase(); if (query.isTransactional()) { database.beginTransaction(); } switch (query.getType()) { // Inserts a value into the database. case INSE...
diff --git a/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/libraries/Dojo102Test.java b/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/libraries/Dojo102Test.java index 21fee424e..51ddf41a3 100644 --- a/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/libraries/Dojo102Test.java +++ b/htmlunit/src/test/j...
true
true
public void testDojo() throws Exception { if (notYetImplemented()) { return; } final WebClient client = new WebClient(BrowserVersion.INTERNET_EXPLORER_7_0); final URL url = getClass().getClassLoader().getResource("dojo/1.0.2/util/doh/runner.html"); assertNotNull(url); ...
public void testDojo() throws Exception { if (notYetImplemented()) { return; } final WebClient client = new WebClient(BrowserVersion.INTERNET_EXPLORER_7_0); final URL url = getClass().getClassLoader().getResource("dojo/1.0.2/util/doh/runner.html"); assertNotNull(u...
diff --git a/src/helloworld/HelloWorld.java b/src/helloworld/HelloWorld.java index 6e109aa..475c84b 100644 --- a/src/helloworld/HelloWorld.java +++ b/src/helloworld/HelloWorld.java @@ -1,20 +1,20 @@ package helloworld; /** * * @author WASD */ public class HelloWorld { public static void main(String[] ar...
true
true
public static void main(String[] args) { System.out.println("Hello World!"); System.out.println("kuk"); System.out.println("kukar"); NewClass x = new NewClass(5, "Hello World!"); for(int i = 0; i < x.getX(); i++) { System.out.println(i + " of " + x.getX() + ": " + x.getName(...
public static void main(String[] args) { System.out.println("Hello World!"); System.out.println("kuk"); System.out.println("kukar"); NewClass x = new NewClass(5, "Hello World!"); for(int i = 0; i < x.getX(); i++) { System.out.println(i + " of " + x.getX() + ": " + x.getName...
diff --git a/de.neo.remote.mediaserver/src/de/neo/remote/mediaserver/impl/AbstractPlayer.java b/de.neo.remote.mediaserver/src/de/neo/remote/mediaserver/impl/AbstractPlayer.java index 4644dc7..6bf743f 100644 --- a/de.neo.remote.mediaserver/src/de/neo/remote/mediaserver/impl/AbstractPlayer.java +++ b/de.neo.remote.medias...
false
true
protected String openTemporaryArdFile(String url) throws RemoteException { if (tatortURL != null && tatortURL.equals(url)) return tempFolder + TATORT_TMP_FILE; try { String tempFile = tempFolder + TATORT_TMP_FILE; File file = new File(tempFile); System.out.println("-> destroy load process"); if (tat...
protected String openTemporaryArdFile(String url) throws RemoteException { if (tatortURL != null && tatortURL.equals(url)) return tempFolder + TATORT_TMP_FILE; try { String tempFile = tempFolder + TATORT_TMP_FILE; File file = new File(tempFile); System.out.println("-> destroy load process"); if (tat...
diff --git a/Pong/src/pong/PongGameView.java b/Pong/src/pong/PongGameView.java index b877a93..d77b932 100644 --- a/Pong/src/pong/PongGameView.java +++ b/Pong/src/pong/PongGameView.java @@ -1,71 +1,71 @@ package pong; import java.util.Collection; import java.util.List; import jgame.Context; import jgame.GContai...
true
true
public PongGameView(){ super(new GSprite(ImageCache.forClass(Pong.class).get("explosion.png"))); setSize(640,480); // Add the paddle to the game view. PongPaddle paddle = new PongPaddle(ControlScheme.WASD); add(paddle); paddle.setLocation(50, 480/2); // Create a puck. PongPuck puck...
public PongGameView(){ super(new GSprite(ImageCache.forClass(Pong.class).get("explosion.png"))); setSize(640,480); // Add the paddle to the game view. PongPaddle paddle = new PongPaddle(ControlScheme.WASD); add(paddle); paddle.setLocation(50, 480/2); // Create a puck. PongPuck puck...
diff --git a/src/main/java/io/github/alshain01/Flags/area/GriefPreventionClaim78.java b/src/main/java/io/github/alshain01/Flags/area/GriefPreventionClaim78.java index d00ab1f..bedbaa5 100644 --- a/src/main/java/io/github/alshain01/Flags/area/GriefPreventionClaim78.java +++ b/src/main/java/io/github/alshain01/Flags/area...
false
true
public int compareTo(Area a) { if (!(a instanceof GriefPreventionClaim78)) { return 3; } Claim testClaim = ((GriefPreventionClaim78)a).getClaim(); if(claim.equals(testClaim)) { return 0; } else if (claim.parent.equals(testClaim)) { return -1; } else if (testClaim.parent.equals(claim)) { retu...
public int compareTo(Area a) { if (!(a instanceof GriefPreventionClaim78)) { return 3; } Claim testClaim = ((GriefPreventionClaim78)a).getClaim(); if(claim.equals(testClaim)) { return 0; } else if (claim.parent != null && claim.parent.equals(testClaim)) { return -1; } else if (testClaim.parent ...
diff --git a/deepamehta-core/src/test/java/de/deepamehta/core/impl/service/JavaUtilsTest.java b/deepamehta-core/src/test/java/de/deepamehta/core/impl/service/JavaUtilsTest.java index 80e492852..71bc84d4f 100644 --- a/deepamehta-core/src/test/java/de/deepamehta/core/impl/service/JavaUtilsTest.java +++ b/deepamehta-core/...
true
true
public void isInRangeIPv4() { assertTrue(JavaUtils.isInRange("172.68.8.0", "172.68.8.0/24")); assertTrue(JavaUtils.isInRange("172.68.8.12", "172.68.8.0/24")); assertTrue(JavaUtils.isInRange("172.68.8.255", "172.68.8.0/24")); assertFalse(JavaUtils.isInRange("172.68.9.0", "172.68....
public void isInRangeIPv4() { assertTrue(JavaUtils.isInRange("0.0.0.0", "0.0.0.0/0")); assertTrue(JavaUtils.isInRange("255.255.255.255", "0.0.0.0/0")); assertTrue(JavaUtils.isInRange("0.0.0.0", "127.0.0.1/0")); assertTrue(JavaUtils.isInRange("255.255.255.255", "127.0....
diff --git a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/logicalstructures/JavaLogicalStructure.java b/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/logicalstructures/JavaLogicalStructure.java index 926fb89ab..5725562f0 100644 --- a/org.eclipse.jdt.debug/model/org/eclipse/jdt/inter...
false
true
public IValue getLogicalStructure(IValue value) { if (!(value instanceof IJavaObject)) { return null; } IJavaObject javaValue= (IJavaObject) value; try { IJavaReferenceType type = getType(javaValue); if (type == null) { return null; } IJavaStackFrame stackFrame= getStackFrame(javaValue); ...
public IValue getLogicalStructure(IValue value) { if (!(value instanceof IJavaObject)) { return value; } IJavaObject javaValue= (IJavaObject) value; try { IJavaReferenceType type = getType(javaValue); if (type == null) { return value; } IJavaStackFrame stackFrame= getStackFrame(javaValue); ...
diff --git a/org.dawb.workbench.plotting/src/org/dawb/workbench/plotting/tools/InfoPixelLabelProvider.java b/org.dawb.workbench.plotting/src/org/dawb/workbench/plotting/tools/InfoPixelLabelProvider.java index d5c40395d..17ba6ee38 100644 --- a/org.dawb.workbench.plotting/src/org/dawb/workbench/plotting/tools/InfoPixelLa...
true
true
public String getText(Object element) { double x = 0.0; double y = 0.0; try { if (element instanceof IRegion){ final IRegion region = (IRegion)element; if (region.getRegionType()==RegionType.POINT) { PointROI pr = (PointROI)tool.getBounds(region); x = pr.getPointX(); y = pr.get...
public String getText(Object element) { double x = 0.0; double y = 0.0; try { if (element instanceof IRegion){ final IRegion region = (IRegion)element; if (region.getRegionType()==RegionType.POINT) { PointROI pr = (PointROI)tool.getBounds(region); x = pr.getPointX(); y = pr.get...
diff --git a/src/main/java/dungeon/ui/screens/Canvas.java b/src/main/java/dungeon/ui/screens/Canvas.java index b47ea1d..f088d4a 100644 --- a/src/main/java/dungeon/ui/screens/Canvas.java +++ b/src/main/java/dungeon/ui/screens/Canvas.java @@ -1,82 +1,82 @@ package dungeon.ui.screens; import dungeon.load.messages.Leve...
false
true
protected void paintComponent (Graphics g) { super.paintComponent(g); if (this.world == null) { return; } Room room = this.world.getCurrentRoom(); int tileWidth = g.getClipBounds().width * Tile.SIZE / (int)room.getXSize(); int tileHeight = g.getClipBounds().height * Tile.SIZE / (int)r...
protected void paintComponent (Graphics g) { super.paintComponent(g); if (this.world == null) { return; } Room room = this.world.getCurrentRoom(); double xPixelPerUnit = (double)g.getClipBounds().width / room.getXSize(); double yPixelPerUnit = (double)g.getClipBounds().height / room.g...
diff --git a/src/main/java/com/spartansoftwareinc/globalsight/gscli/WebServiceCommand.java b/src/main/java/com/spartansoftwareinc/globalsight/gscli/WebServiceCommand.java index df3bff8..84d73d5 100755 --- a/src/main/java/com/spartansoftwareinc/globalsight/gscli/WebServiceCommand.java +++ b/src/main/java/com/spartansoft...
true
true
public void handle(CommandLine command, UserData userData) throws Exception { if (command.hasOption(PROFILE)) { profile = userData.getProfiles() .getProfile(command.getOptionValue(PROFILE)); } else { profile = userData....
public void handle(CommandLine command, UserData userData) throws Exception { if (command.hasOption(PROFILE)) { profile = userData.getProfiles() .getProfile(command.getOptionValue(PROFILE)); if (profile == null) { die("...
diff --git a/src/com/undeadscythes/udsplugin/Config.java b/src/com/undeadscythes/udsplugin/Config.java index 1b3af89..a7ce33c 100644 --- a/src/com/undeadscythes/udsplugin/Config.java +++ b/src/com/undeadscythes/udsplugin/Config.java @@ -1,158 +1,159 @@ package com.undeadscythes.udsplugin; import java.util.*; impor...
true
true
public static void loadConfig(final UDSPlugin plugin) { Config.plugin = plugin; plugin.saveDefaultConfig(); plugin.getConfig(); plugin.reloadConfig(); final FileConfiguration config = plugin.getConfig(); undoCount = config.getInt("range.undo"); buildCost = con...
public static void loadConfig(final UDSPlugin plugin) { Config.plugin = plugin; plugin.saveDefaultConfig(); plugin.getConfig(); plugin.reloadConfig(); final FileConfiguration config = plugin.getConfig(); undoCount = config.getInt("range.undo"); buildCost = con...
diff --git a/src/joshua/sarray/ExtractRules.java b/src/joshua/sarray/ExtractRules.java index 8bc173b4..82ee0d98 100644 --- a/src/joshua/sarray/ExtractRules.java +++ b/src/joshua/sarray/ExtractRules.java @@ -1,318 +1,318 @@ /* This file is part of the Joshua Machine Translation System. * * Joshua is free software;...
true
true
public static void main(String[] args) throws IOException { boolean finalConfirmation = false; try { CommandLineParser commandLine = new CommandLineParser(); Option<String> source = commandLine.addStringOption('f',"source","SOURCE_FILE","Source language training file"); Option<String> target = comman...
public static void main(String[] args) throws IOException { boolean finalConfirmation = false; try { CommandLineParser commandLine = new CommandLineParser(); Option<String> source = commandLine.addStringOption('f',"source","SOURCE_FILE","Source language training file"); Option<String> target = comman...
diff --git a/MainProject/src/se/chalmers/dat255/risk/model/BattleHandler.java b/MainProject/src/se/chalmers/dat255/risk/model/BattleHandler.java index 890cfe4..b5dfb8b 100644 --- a/MainProject/src/se/chalmers/dat255/risk/model/BattleHandler.java +++ b/MainProject/src/se/chalmers/dat255/risk/model/BattleHandler.java @@ ...
true
true
public int[] doBattle(int offensive, int defensive) { int[] lostArmies = new int[2]; int[] diceDefensive = rollDice(defensive); int[] diceOffensive = rollDice(offensive); for (int i = 0; (i < defensive) && (i < offensive); i++) { if (diceOffensive[i] < diceDefensive[i]) { lostArmies[0]++; } else {...
public int[] doBattle(int offensive, int defensive) { int[] lostArmies = new int[2]; int[] diceDefensive = rollDice(defensive); int[] diceOffensive = rollDice(offensive); for (int i = 0; (i < defensive) && (i < offensive); i++) { if (diceOffensive[i] <= diceDefensive[i]) { lostArmies[0]++; } else ...
diff --git a/src/elfville/server/model/Clan.java b/src/elfville/server/model/Clan.java index 1f66371..6338cde 100644 --- a/src/elfville/server/model/Clan.java +++ b/src/elfville/server/model/Clan.java @@ -1,201 +1,201 @@ package elfville.server.model; import java.util.ArrayList; import java.util.Arrays; import ja...
true
true
public void leaveClan(Elf elf) { if (isLeader(elf)) { return; } for (Integer pid : postIDs) { Post p = Database.getInstance().postDB.findByModelID(pid); if (p.getElf().equals(elf)) { postIDs.remove(pid); } } members.remove(elf.modelID); save(); }
public void leaveClan(Elf elf) { if (isLeader(elf)) { return; } for (Integer pid : postIDs.subList(0, postIDs.size())) { Post p = Database.getInstance().postDB.findByModelID(pid); if (p.getElf().equals(elf)) { postIDs.remove(pid); } } members.remove(elf.modelID); save(); }
diff --git a/src/org/kered/dko/ant/SchemaExtractor.java b/src/org/kered/dko/ant/SchemaExtractor.java index 0d1f301..0cca3fb 100644 --- a/src/org/kered/dko/ant/SchemaExtractor.java +++ b/src/org/kered/dko/ant/SchemaExtractor.java @@ -1,898 +1,898 @@ package org.kered.dko.ant; import java.io.BufferedReader; import j...
true
true
private Map<String, Map<String, Map<String, String>>> getSchemasMSSQL(final Connection conn) throws SQLException { final Map<String, Map<String, Map<String, String>>> schemas = new LinkedHashMap<String, Map<String, Map<String, String>>>(); final List<String> dbs = new ArrayList<String>(); final Statement s =...
private Map<String, Map<String, Map<String, String>>> getSchemasMSSQL(final Connection conn) throws SQLException { final Map<String, Map<String, Map<String, String>>> schemas = new LinkedHashMap<String, Map<String, Map<String, String>>>(); final List<String> dbs = new ArrayList<String>(); final Statement s =...
diff --git a/coin-selfservice-war/src/main/java/nl/surfnet/coin/selfservice/control/HomeController.java b/coin-selfservice-war/src/main/java/nl/surfnet/coin/selfservice/control/HomeController.java index be2665f9..22d1df52 100644 --- a/coin-selfservice-war/src/main/java/nl/surfnet/coin/selfservice/control/HomeController...
true
true
private List<Category> filterFacetValues(List<Service> services, Taxonomy taxonomy) { if (taxonomy == null || taxonomy.getCategories() == null) { return Collections.emptyList(); } for (Category category : taxonomy.getCategories()) { if (category.getValues() == null) { continue; ...
private List<Category> filterFacetValues(List<Service> services, Taxonomy taxonomy) { if (taxonomy == null || taxonomy.getCategories() == null) { return Collections.emptyList(); } for (Category category : taxonomy.getCategories()) { if (category.getValues() == null) { continue; ...
diff --git a/src/main/java/org/jahia/modules/location/LocationService.java b/src/main/java/org/jahia/modules/location/LocationService.java index 4519c7f..13d52bc 100644 --- a/src/main/java/org/jahia/modules/location/LocationService.java +++ b/src/main/java/org/jahia/modules/location/LocationService.java @@ -1,43 +1,43 ...
true
true
public void geocodeLocation(AddedNodeFact node, KnowledgeHelper drools) throws RepositoryException { final Geocoder geocoder = new Geocoder(); JCRNodeWrapper nodeWrapper = node.getNode(); StringBuffer address = new StringBuffer(); address.append(nodeWrapper.getProperty("j:street").g...
public void geocodeLocation(AddedNodeFact node, KnowledgeHelper drools) throws RepositoryException { final Geocoder geocoder = new Geocoder(); JCRNodeWrapper nodeWrapper = node.getNode(); StringBuffer address = new StringBuffer(); address.append(nodeWrapper.getProperty("j:street").g...
diff --git a/src/gov/nih/nci/caintegrator/analysis/server/CorrelationTaskR.java b/src/gov/nih/nci/caintegrator/analysis/server/CorrelationTaskR.java index ef133b4..5434cc7 100644 --- a/src/gov/nih/nci/caintegrator/analysis/server/CorrelationTaskR.java +++ b/src/gov/nih/nci/caintegrator/analysis/server/CorrelationTaskR....
false
true
public void run() { CorrelationRequest corrRequest = (CorrelationRequest) getRequest(); result = new CorrelationResult(getRequest().getSessionId(), getRequest().getTaskId()); logger.info(getExecutingThreadName() + " processing correlation request=" + corrRequest); try { String dataFileName = co...
public void run() { CorrelationRequest corrRequest = (CorrelationRequest) getRequest(); result = new CorrelationResult(getRequest().getSessionId(), getRequest().getTaskId()); logger.info(getExecutingThreadName() + " processing correlation request=" + corrRequest); try { String dataFileName = co...
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecoratorConfiguration.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecoratorConfiguration.java index a5790eb51..d79972968 100644 --- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/c...
true
true
public static void decorate(CVSDecoration decoration, String format, Map bindings) { StringBuffer prefix = new StringBuffer(80); StringBuffer suffix = new StringBuffer(80); StringBuffer output = prefix; int length = format.length(); int start = -1; int end = length; while (true) { if ((end = format...
public static void decorate(CVSDecoration decoration, String format, Map bindings) { StringBuffer prefix = new StringBuffer(); StringBuffer suffix = new StringBuffer(); StringBuffer output = prefix; int length = format.length(); int start = -1; int end = length; while (true) { if ((end = format.ind...