id
stringlengths
19
22
content
stringlengths
187
14.2k
max_stars_repo_path
stringlengths
15
210
satd-removal_data_901
TODO: move this check outside this method? public void saveGroup(PlanetGroupData group) throws PlanetException { // TODO: move this check outside this method? if (group.getId() == null || getGroupById(group.getId()) == null) { // If new group, make sure hadnle is unique within Planet if (getGroup(group.getPlanet(), gr...
apps/planet/src/java/org/apache/roller/planet/business/hibernate/HibernatePlanetManagerImpl.java
satd-removal_data_902
TODO log this private void unregisterEntityManagerFactories() { //If we have registrations then unregister them if(registrations != null) { for(ServiceRegistration reg : registrations) { try { reg.unregister(); } catch (Exception e) { //TODO log this } } // remember to set registrations to be null registrations = null...
jpa/jpa-container/src/main/java/org/apache/aries/jpa/container/impl/EntityManagerFactoryManager.java
satd-removal_data_903
TODO do we need this? public void testAlternateExchange() throws IOException, InterruptedException { String q = declareQueue(); channel.exchangeDeclare("ae", "fanout", false, true, null); channel.queueBind(q, "ae", ""); Thread.sleep(DELAY); // TODO do we need this? basicPublishVolatile("has-ae", ""); Thread.sleep(DELA...
test/src/com/rabbitmq/client/test/functional/Policies.java
satd-removal_data_904
FIXME : fix this behavior (foobar<br> becomes <p>foobar</p>) public void testStyle() { typeText("foobar"); selectAllContent(); assertXHTML("foobar<br>"); applyStyleTitle1(); assertXHTML("<h1>foobar</h1>"); applyStyleTitle2(); assertXHTML("<h2>foobar</h2>"); applyStyleTitle3(); assertXHTML("<h3>foobar</h3>"); applyStyl...
distribution-test/wysiwyg-tests/src/test/it/com/xpn/xwiki/it/selenium/StandardFeaturesTest.java
satd-removal_data_905
TODO: Use zero-args constructor from other branch. @Override public void commitTask(final TaskAttemptContext taskContext) { LOG.info("Committing task."); // Get temporary file. Path tempFilePath = getTaskAttemptPath(taskContext); LOG.info("Committing from temporary file: " + tempFilePath.toString()); long filePos = 0,...
core/src/main/java/com/mongodb/hadoop/output/MongoOutputCommitter.java
satd-removal_data_906
TODO: try catch finally need to support async routing engine public void testAsyncEndpoint() throws Exception { // TODO: try catch finally need to support async routing engine getMockEndpoint("mock:before").expectedBodiesReceived("Hello Camel"); //getMockEndpoint("mock:after").expectedBodiesReceived("Bye Camel"); //ge...
camel-core/src/test/java/org/apache/camel/processor/async/AsyncEndpointTryCatchFinallyTest.java
satd-removal_data_907
TODO: Causin error private static void iterateSprites(ProjectFileContext c, ResNode root, Element node) { ProjectFile f = c.f; Document dom = c.dom; Vector<ResNode> children = root.getChildren(); if (children == null) { return; } for (Object obj : children) { if (!(obj instanceof ResNode)) { continue; } ResNode resNod...
org/lateralgm/file/GMXFileWriter.java
satd-removal_data_908
TODO: Add some UI to choose which product search to do private static Intent resultToIntent(ParsedResult result) { Intent intent = null; ParsedResultType type = result.getType(); if (type.equals(ParsedResultType.ADDRESSBOOK)) { AddressBookParsedResult addressResult = (AddressBookParsedResult) result; intent = new Inte...
android/src/com/android/barcodes/ResultHandler.java
satd-removal_data_909
XXX use SpringLayout instead... private void initDialog( final int aCursorIdx, final String aLabel ) { JLabel label = new JLabel( String.format( "Cursor label %d", Integer.valueOf( aCursorIdx ) ) ); this.labelEditor = new JTextField( aLabel, 10 ); final JButton okButton = new JButton( "Ok" ); okButton.addActionListene...
client/src/main/java/nl/lxtreme/ols/client/signaldisplay/action/EditCursorLabelAction.java
satd-removal_data_910
TODO: This is quite bogus! @Override public void onOpen(Session session, EndpointConfig endpointConfig) { if (!webSocketProcessor.handshake(request)) { try { session.close(new CloseReason(CloseReason.CloseCodes.CANNOT_ACCEPT, "Handshake not accepted.")); } catch (IOException e) { logger.trace("", e); } return; } if (m...
modules/cpr/src/main/java/org/atmosphere/container/JSR356Endpoint.java
satd-removal_data_911
TODO: unregister SE here @Override public void deactivate() throws Exception { log.info("Checking out SU having SE " + serviceUnit.getComponent().getComponentName()); // TODO: unregister SU here OpenEngSBComponent component = (OpenEngSBComponent) serviceUnit.getComponent(); component.removeCustomEndpoint(this); if (co...
core/core/src/main/java/org/openengsb/core/endpoints/OpenEngSBEndpoint.java
satd-removal_data_912
TODO add custom code on component opening @Override public void componentOpened() { // TODO add custom code on component opening // WindowManager.getDefault().findMode("floatingLeftBottom").dockInto(this); IngestManager.getDefault(); //create initial instance //TODO alternatively, reigster manager with lookup and inst...
Ingest/src/org/sleuthkit/autopsy/ingest/IngestMessageTopComponent.java
satd-removal_data_913
TODO IMAGING 4.5 public void setProductSceneView(ProductSceneView productSceneView) { if (this.productSceneView == productSceneView) { return; } if (this.productSceneView != null) { // TODO IMAGING 4.5 this.productSceneView.removeLayerContentListener(layerContentHandler); this.productSceneView.getProduct().removeProdu...
beam-visat-rcp/src/main/java/org/esa/beam/visat/toolviews/roi/RoiManagerToolView.java
satd-removal_data_914
TODO: Shouldn't happened private static Filter createFilter(BundleContext context, String applicationName) throws IllegalArgumentException { validateNotNull(context, "Context"); validateNotNull(applicationName, "applicationName"); String filterString = "(&(" + OBJECTCLASS + "=" + PageMounter.class.getName(...
service/src/main/java/org/ops4j/pax/wicket/internal/PageMounterTracker.java
satd-removal_data_915
TODO the schema is unordered after the extensions, but here we are imposing order public void writeContent(final XMLExtendedStreamWriter streamWriter) throws XMLStreamException { if (! extensions.isEmpty()) for (ExtensionElement element : extensions.values()) { streamWriter.writeStartElement("extension"); element.writ...
domain/src/main/java/org/jboss/as/model/Domain.java
satd-removal_data_916
TODO: Put swap code public void rebalanceStateChange(Cluster cluster, List<RebalancePartitionsInfo> rebalancePartitionsInfo, boolean swapRO, boolean changeClusterMetadata, ...
src/java/voldemort/server/rebalance/Rebalancer.java
satd-removal_data_917
TODO: from xml, add top padding. Same as in wifi private void updateContent(int bluetoothState) { final PreferenceScreen preferenceScreen = getPreferenceScreen(); getActivity().invalidateOptionsMenu(); int messageId = 0; switch (bluetoothState) { case BluetoothAdapter.STATE_ON: preferenceScreen.removeAll(); // Add bon...
src/com/android/settings/bluetooth/BluetoothSettings.java
satd-removal_data_918
TODO: reset back to 1s public void setUp() throws Exception { kernel = new Kernel("test.kernel", "simple.geronimo.test"); kernel.boot(); GBeanMBean gbean; // Create all the parts gbean = new GBeanMBean("org.apache.geronimo.security.jaas.JaasLoginService"); loginService = new ObjectName("geronimo.security:type=JaasLogi...
modules/security/src/test/org/apache/geronimo/security/jaas/TimeoutTest.java
satd-removal_data_919
TODO: Should this be pushed down into the buffer? @Override public void writeObjectId(final ObjectId objectId) { checkPreconditions("writeObjectId", State.VALUE); buffer.write(BsonType.OBJECT_ID.getValue()); writeCurrentName(); // TODO: Should this be pushed down into the buffer? buffer.writeIntBE(objectId.time()); bu...
bson/src/main/org/bson/BSONBinaryWriter.java
satd-removal_data_920
TODO rearrange POI build to allow this private static EvaluationWorkbook createEvaluationWorkbook(Workbook wb) { if (wb instanceof HSSFWorkbook) { return HSSFEvaluationWorkbook.create((HSSFWorkbook) wb); } // TODO rearrange POI build to allow this // if (wb instanceof XSSFWorkbook) { // return XSSFEvaluationWorkboo...
src/java/org/apache/poi/ss/formula/eval/forked/ForkedEvaluator.java
satd-removal_data_921
TODO this should be done with a CAS approach if possible @Override public void updateEntry(final PersistentEntity persistentEntity, final EntityAccess ea, final Object key, final DBObject entry) { mongoTemplate.execute(new DbCallback<Object>() { public Object doInDB(DB con) throws MongoExceptio...
grails-datastore-mongo/src/main/groovy/org/grails/datastore/mapping/mongo/engine/MongoEntityPersister.java
satd-removal_data_922
TODO: note that the use of getMoveOp restricts us to HIR void replaceLoadWithMove (OPT_Register r, OPT_Instruction load) { OPT_RegisterOperand dest = ResultCarrier.getResult(load); OPT_RegisterOperand rop = new OPT_RegisterOperand(r, dest.type); // TODO: note that the use of getMoveOp restricts us to HIR load.replace(...
rvm/src/vm/compilers/optimizing/optimizations/global/ssa/loadElimination/OPT_LoadElimination.java
satd-removal_data_923
TODO - this code never called private static void confirmExpectedResult(String msg, Cell expected, FormulaEvaluator.CellValue actual) { if (expected == null) { throw new AssertionFailedError(msg + " - Bad setup data expected value is null"); } if(actual == null) { throw new AssertionFailedError(msg + " - actual value ...
src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestFormulaEvaluatorOnXSSF.java
satd-removal_data_924
FIXME OK, why? and what's the point of not having a is/get? public final <T> void writeRequest(final Channel channel, final AsyncHttpClientConfig config, final NettyResponseFuture<T> future) { try { // if the channel is dead because it was pooled and the remote server decided to close it, // we just let it go and the ...
providers/netty/src/main/java/org/asynchttpclient/providers/netty/request/NettyRequestSender.java
satd-removal_data_925
TODO : transform IContext to JSON private static String getJSON( IContext context ) { // TODO : transform IContext to JSON return "{" +"\\\"project\\\": {\\\"name\\\": \\\"XDocReport\\\"}," +"\\\"developers\\\": [" +"{" +"\\\"name\\\": \\\"ZERR\\\"," +"\\\"mail\\\": \\\"angelo.zerr@gmail.com\\\"," +"\\\"lastName\\\": ...
integrationtests/fr.opensagres.xdocreport.core.test/src/test/java/fr/opensagres/xdocreport/document/dump/DumperWithFreemarker.java
satd-removal_data_926
TODO the credentials are stored somewhere else... protected void configureCredentials() { // If a credential entity has been explicitly configured, scan it if (credentialClass != null) { List<Property<Object>> props = PropertyQueries.createQuery(credentialClass) .addCriteria(new PropertyTypeCriteria(PropertyType.VALUE...
impl/src/main/java/org/jboss/seam/security/management/JpaIdentityStore.java
satd-removal_data_927
TODO: check Monitor annotations public static void validate(Object obj) { try { getMonitorId(obj); } catch (Exception e) { throw new IllegalArgumentException( "invalid MonitorId annotation on object " + obj, e); } try { getMonitorTags(obj); } catch (Exception e) { throw new IllegalArgumentException( ...
servo-core/src/main/java/com/netflix/servo/annotations/AnnotationUtils.java
satd-removal_data_928
TODO: What needs to be done here? public void writeCell(int columnIndex,Cell cell) throws IOException { if(cell==null) { _rowContainedNullCells=true; return; } String ref = new CellReference(_rownum, columnIndex).formatAsString(); _out.write("<c r=\""+ref+"\""); CellStyle cellStyle=cell.getCellStyle(); if(cellStyle!=n...
src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFSheet.java
satd-removal_data_929
TODO: code to save the changes made to the current card. @Override protected void onActivityResult(int requestCode, int resultCode, Intent intent) { super.onActivityResult(requestCode, resultCode, intent); if (requestCode == PICK_DECK_REQUEST) { //Clean the previous card before showing the first of the new loaded deck...
src/com/ichi2/anki/AnkiDroid.java
satd-removal_data_930
TODO: include which records failed. @Override public void bulkInsertNonFolders(Collection<BookmarkRecord> records) { // All of these records are *not* deleted and *not* folders, so we don't // need to update androidID at all! // TODO: persist records that fail to insert for later retry. ArrayList<Record> toStores = ne...
src/main/java/org/mozilla/gecko/sync/repositories/android/AndroidBrowserBookmarksRepositorySession.java
satd-removal_data_931
TODO this is actually not enough. we would also need to resubscribe @Override public void channelInactive(ChannelHandlerContext ctx) { log.info("WebSocket Client disconnected!"); client.setConnected(false); callback.onDisconnect(); if (client.isReconnectionEnabled()) { // TODO this is actually not enough. we would als...
yamcs-api/src/main/java/org/yamcs/api/ws/WebSocketClientHandler.java
satd-removal_data_932
TODO: ----- If the offer requires other items, check to see if the items are still unmarked @SuppressWarnings("unchecked") public void applyOffersToOrder(List<Offer> offers, Order order) throws PricingException { List<Offer> qualifiedOrderOffers = new ArrayList<Offer>(); List<CandidateItemOffer> qualifiedItemOffers = ...
BroadleafCommerce/src-framework/org/broadleafcommerce/offer/service/OfferServiceImpl.java
satd-removal_data_933
TODO: Are these needed with apklib artifacts? private void generateRForManifest(String pathToManifest) throws MojoExecutionException { // TODO: Are these needed with apklib artifacts? File[] overlayDirectories; if (resourceOverlayDirectories == null || resourceOverlayDirectories.length == 0) { overlayDirectories = new...
src/main/java/com/jayway/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java
satd-removal_data_934
TODO clean up threads? @Override public void matchEnded() { // TODO clean up threads? } @Override public void matchEnded() { for (final SandboxedRobotPlayer player : this.sandboxes.values()) { if (player != null && !player.getTerminated()) { player.terminate(); } } this.sandboxes.clear(); }
src/main/battlecode/world/control/PlayerControlProvider.java
satd-removal_data_935
TODO: read font modifiers public void next() { int dataOffset = myDataOffset; char[] data = myStorage.block(myDataIndex); if (dataOffset == data.length) { data = myStorage.block(++myDataIndex); dataOffset = 0; } byte type = (byte)data[dataOffset]; if (type == 0) { data = myStorage.block(++myDataIndex); dataOffset = 0;...
src/org/geometerplus/zlibrary/text/model/ZLTextPlainModel.java
satd-removal_data_936
TODO: What is this form used for? Doesnt make sence in the code below as form is never used public void populateExchangeFromRestletRequest(Request request, Exchange exchange) throws Exception { Message inMessage = exchange.getIn(); // extract headers from restlet for (Map.Entry<String, Object> entry : request.getAttr...
components/camel-restlet/src/main/java/org/apache/camel/component/restlet/DefaultRestletBinding.java
satd-removal_data_937
TODO We should probably remove the user from the directory? public void deliver(SmsMessageRecord message) throws IOException, UntrustedIdentityException { try { Recipient recipient = message.getIndividualRecipient(); long threadId = message.getThreadId(); PushServiceSocket socket = PushServiceSocketFactory.create(cont...
src/org/thoughtcrime/securesms/transport/PushTransport.java
satd-removal_data_938
TODO call1 in PROCESSED state. @Override public void doJoin() throws Exception { super.doJoin(); // TODO call1 in PROCESSED state. ((SIPOutgoingCall) _call2).call(_call1.getRemoteSdp()); } @Override public void doJoin() throws Exception { super.doJoin(); if (_call1.getSIPCallState() == SIPCall.State.PROGRESSED) { cal...
moho-impl/src/main/java/com/voxeo/moho/sip/DirectNI2AOJoinDelegate.java
satd-removal_data_939
TODO: find a way to handle add/remove of triggers private void changeSelectedServerInJobs(String oldName) { for (Job job : PluginImpl.getConfiguredJobs_(oldName)) { // TODO: find a way to handle add/remove of triggers if (!(job instanceof AbstractProject)) { return; } AbstractProject project = (AbstractProject)job; Ge...
src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/GerritServer.java
satd-removal_data_940
FIXME: Is ISO-8859-1 the right default? private void doFile(String href, String base) { try { DataStore store = runtime.getDataStore(); store.readEntry(href, base, "application/xml, text/xml, */*", overrideContentType, new DataReader() { public void load(URI id, String contentType, InputStream bodyStre...
src/main/java/com/xmlcalabash/library/HttpRequest.java
satd-removal_data_941
TODO avoid the use of side effect... @Command @NotifyChange({"selectedNode","tempFormObject","formObject","newNode","rootEntityCreation"}) public void applyChanges() { NodeDefinition editedNode; if ( newNode ) { editedNode = NodeType.createNodeDefinition(survey, nodeType, attributeType); } else { editedNode = selected...
collect-server/src/main/java/org/openforis/collect/designer/viewmodel/SurveySchemaEditVM.java
satd-removal_data_942
TODO: (Dec 7, 2007 11:16:24 AM) something that looks better public static void fail(String string) { // TODO: (Dec 7, 2007 11:16:24 AM) something that looks better assumeThat(string, nullValue()); } public static void fail(String string) { throw new AssumptionViolatedException(string); }
src/main/java/org/junit/Assume.java
satd-removal_data_943
TODO figure out something better to do here!!! public void returnConnection(ConnectionInfo connectionInfo, ConnectionReturnAction connectionReturnAction) { if (log.isTraceEnabled()) { log.trace("returning connection" + connectionInfo.getConnectionHandle()); } // not strictly synchroniz...
modules/geronimo-connector/src/main/java/org/apache/geronimo/connector/outbound/AbstractSinglePoolConnectionInterceptor.java
satd-removal_data_944
TODO(borud) create an exception for this public void write(Timber.LogEvent event) throws IOException { // Ensure that we have a RecordWriter if (null == currentWriter) { // Make sure we have not closed this Slot if (closed) { throw new IllegalStateException("Slot was closed"); } currentFile = findNextSlotFile(); if (n...
log/src/main/java/org/cloudname/log/archiver/Slot.java
satd-removal_data_945
TODO implement loading of Example model classes @Override public void refresh(Context context) { // TODO implement loading of Example model classes } @Override public void refresh() { }
Core/src/com/ushahidi/android/app/adapters/ListCheckinAdapter.java
satd-removal_data_946
TODO: Move the hard coded string to a string resource @Override public void executeTask(Intent intent) { log("checking scheduled message result services"); // TODO: Move the hard coded string to a string resource mFileManager.appendAndClose("Checking scheduled message result services"); mProcessMessageResult.processMe...
smssync/src/main/java/org/addhen/smssync/presentation/service/MessageResultsService.java
satd-removal_data_947
TODO: book author, title? public void renderBook( BookContext context ) throws BookDoxiaException { BookModel book = context.getBook(); if ( !context.getOutputDirectory().exists() ) { if ( !context.getOutputDirectory().mkdirs() ) { throw new BookDoxiaException( "Could not make directory: " + context.getOutputDirectory...
doxia-book/src/main/java/org/apache/maven/doxia/book/services/renderer/XHtmlBookRenderer.java
satd-removal_data_948
Wait for server-side event to arrive via long poll TODO: make it deterministic @Test public void testAcknowledgement() throws Exception { defineClass(Latch.class); evaluateScript("cometd.configure({url: '" + cometdURL + "', logLevel: '" + getLogLevel() + "'});"); evaluateScript("cometd.registerExtension('ack', new org...
cometd-javascript/common-test/src/test/java/org/cometd/javascript/extension/CometDAckExtensionTest.java
satd-removal_data_949
TODO : handle the exception private void compareEntries( Entry originalEntry, Entry destinationEntry, LdifEntry modificationEntry ) { // Creating a list to store the already evaluated attribute type List<AttributeType> evaluatedATs = new ArrayList<AttributeType>(); // Checking attributes of the original entry for ( At...
plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/jobs/PartitionsDiffComputer.java
satd-removal_data_950
TODO Drop item! @Override public void onUpdate(World world, int x, int y, int z) { if (!VanillaConfiguration.CACTUS_PHYSICS.getBoolean()) { return; } boolean destroy = false; BlockMaterial below = world.getBlockMaterial(x, y - 1, z); if (!below.equals(VanillaMaterials.SAND) && !below.equals(VanillaMaterials.CACTUS)) {...
src/main/java/org/spout/vanilla/material/block/Cactus.java
satd-removal_data_951
TODO Extract everything from bin folder? All needed for something... @SuppressWarnings("unchecked") private void generateTemporaryPropertiesAndSetClasspath() throws MojoExecutionException { //Generate expected directory structure this.workDir = new File(mavenProject.getBasedir() + File.separator + "target" + File.sep...
src/main/java/com/lazerycode/jmeter/JMeterMojo.java
satd-removal_data_952
TODO use multiple workers to warm each part instead of filling the thread pool private void prewarmCache() { if (prewarmCache) { final List<BlobStoreIndexShardSnapshot.FileInfo> cacheFiles = snapshot().indexFiles() .stream() .filter(file -> file.metadata().hashEqualsContents() == false) .filter(file -> isExcludedFromC...
x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/index/store/SearchableSnapshotDirectory.java
satd-removal_data_953
TODO on enter public View inflateView() { View child = View.inflate(getContext(), R.layout.floating_calculator, null); mPager = (ViewPager) child.findViewById(R.id.panelswitch); mPersist = new Persist(this); mPersist.load(); mHistory = mPersist.getHistory(); mDisplay = (AdvancedDisplay) child.findViewById(R.id.display...
src/com/android/calculator2/floating/FloatingCalculator.java
satd-removal_data_954
TODO: copy the metainfos public void copyFile(A_CmsUser currentUser, A_CmsProject currentProject, String source, String destination) throws CmsException { // read the source-file, to check readaccess A_CmsResource file = readFileHeader(currentUser, currentProject, source); // TODO: copy the me...
src/com/opencms/file/CmsResourceBroker.java
satd-removal_data_955
TODO: switch ProjectVersion.version to long protected void run() { logger.info("Running source update for project " + project.getName()); try { // This is the last version we actually know about ProjectVersion lastVersion = StoredProject.getLastProjectVersion(project, logger); SCMAccessor scm = tds.getAccessor(project...
alitheia/core/src/eu/sqooss/impl/service/updater/SourceUpdater.java
satd-removal_data_956
TODO @Ryan cast valid? @Override public void rowsModified(String tableName, Set<Object> rowKeys) { // This handles both rowInsert() and rowUpdate() log.debug("Modifying Table {}", tableName); HashMap<String, Map<String, OFFlowMod>> entriesToAdd = new HashMap<String, Map<String, OFFlowMod>>(); // build up list of w...
src/main/java/net/floodlightcontroller/staticflowentry/StaticFlowEntryPusher.java
satd-removal_data_957
TODO translate validation results into messages public void execute(Map<String, ? extends Object> sourceValues) { BindingResults bindingResults = binder.bind(sourceValues); if (validator != null && validationDecider.shouldValidateAfter(bindingResults)) { // TODO get validation results validator.validate(binder.getMode...
org.springframework.context/src/main/java/org/springframework/ui/lifecycle/BindAndValidateLifecycle.java
satd-removal_data_958
TODO confirm that this is reasonable for vehicle update intervals public void generateRunSim(Random random, SimulatorTask task, RunTripEntry runTrip, long serviceDate, int scheduleTime, int shiftStartTime, int trueTimeOffset, SortedMap<Double, Integer> scheduleDeviations, double locationSigma, Agenc...
onebusaway-nyc-vehicle-tracking/src/main/java/org/onebusaway/nyc/vehicle_tracking/impl/VehicleLocationSimulationServiceImpl.java
satd-removal_data_959
FIXME iterate over all outputs private void addUsageInformationToContext(VelocityContext context) { context.put("usageDescription", operation.getDescription()); if (operation.getInputs().getStdin() != null) { context.put("usageInputParameter", "-i STDIN"); context.put("usageInputParameterDescription", "-i STDIN >...
pc-as/toolwrapper/toolwrapper_bash/src/main/java/eu/scape_project/core/toolwrapper/bash/BashWrapperGenerator.java
satd-removal_data_960
TODO inject an application-scoped currentUser @EventHandler("saveButton") public void onSaveButtonClicked(ClickEvent event) { TypedQuery<Department> deptQuery = em.createNamedQuery("departmentByName", Department.class); deptQuery.setParameter("name", department.getText()); Department resolvedDepartment; List<Departmen...
errai-jpa/demos/errai-jpa-demo-grocery-list/src/main/java/org/jboss/errai/demo/grocery/client/local/ItemForm.java
satd-removal_data_961
TODO - temp sol. public void createAppSettingBarControls(Composite composite) { GridLayout layout = new GridLayout(1, false); layout.verticalSpacing = 9; composite.setLayout(layout); GridData textAligment = new GridData(GridData.FILL_VERTICAL | GridData.FILL_HORIZONTAL); GridData checkBoxAligment = new GridData(); che...
rhogen-wizard/src/rhogenwizard/wizards/rhohub/LinkProjectPage.java
satd-removal_data_962
XXX this fixes the issue with not updating child sections, but then there are lost field updates public void updateView(Notification notification) { EObject object = (EObject) notification.getNotifier(); if (object instanceof Model) { loadThis(); modulesEditor.refresh(); propertiesEditor.refresh(); // XXX this fixes t...
org.maven.ide.eclipse.editor/src/org/maven/ide/eclipse/editor/pom/OverviewPage.java
satd-removal_data_963
TODO: implement getPartition public void sendMessage(I destVertex, M msg) { LOG.info("Send bytes (" + msg.toString() + ") to " + destVertex); // TODO: implement getPartition //Partition<I> destPartition = service.getPartition(destVertex); Partition<I> destPartition = new Partition<I>(localHostname, ...
src/main/java/com/yahoo/hadoop_bsp/RPCCommunications.java
satd-removal_data_964
XXX connect to MBean through proxy: move to method public static void main(String args[]) { try { echo("\nInitialize the environment map"); HashMap<String, String[]> env = new HashMap<String, String[]>(); String[] credentials = new String[] { "karaf", "karaf" }; env.put("jmx.remote.credentials", credentials); echo("\n...
examples/karaf-jmx/client/src/main/java/org/talend/esb/examples/Client.java
satd-removal_data_965
TODO avoid: this makes the value mutable public void discard() { // TODO avoid: this makes the value mutable data = EMPTY_BYTE_ARRAY; } public void discard() { // do nothing // this object could still be referenced // the data will be garbage collected }
jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/BLOBInMemory.java
satd-removal_data_966
TODO remove when a workaround can be found @Test //TODO remove when a workaround can be found @Ignore("The new HtmlUnit borks the structured form submission on workflow jobs") public void testConfigRoundTrip() throws Exception { PatchsetCreated event = Setup.createPatchsetCreated(PluginImpl.DEFAULT_SERVER_NAME); Workf...
src/test/java/com/sonyericsson/hudson/plugins/gerrit/trigger/hudsontrigger/WorkflowTest.java
satd-removal_data_967
TODO: Is this a good idea to allow byte[] to be treated all special? @SuppressWarnings("unchecked") protected void writeValue(final BSONWriter bsonWriter, final Object value) { // TODO: is this a good idea to allow DBRef to be treated all special? if (value instanceof DBRef) { encodeDBRef(bsonWriter, (DBRef) value); }...
driver/src/main/org/mongodb/codecs/DocumentCodec.java
satd-removal_data_968
TODO: Why is $ allowed? private static String checkXMLName(String name) { // Cannot be empty or null if ((name == null) || (name.length() == 0) || (name.trim().equals(""))) { return "XML names cannot be null or empty"; } // Cannot start with a number char first = name.charAt(0); if (Character.isDigit(first)) { return ...
core/src/java/org/jdom/Verifier.java
satd-removal_data_969
TODO check if private void handle_group_begin(OtpErlangTuple msg) { final String group = msg.elementAt(1).toString(); final String description = msg.elementAt(2).toString(); if (group != null && !group.equals("[]") && !group.equals("undefined")) { TestTreeObject parent = model.findNode(group); if(parent == null){ mode...
org.erlide.cover.core/src/org/erlide/cover/core/EUnitEventHandler.java
satd-removal_data_970
FIXME: need to check for occurrences of this variable in the expanded type. private static boolean isRecursive(NameID root, Type type) { // FIXME: need to check for occurrences of this variable in the expanded type. return false; } private static boolean isRecursive(NameID root, Type type) { for(RecursiveType rt : ty...
wyjc/stages/TypeResolution.java
satd-removal_data_971
TODO this should be extracted to a custom solver phase before this phase private void initSelectedPlanningEntityList(AbstractSolverPhaseScope phaseScope) { List<Object> workingPlanningEntityList = phaseScope.getWorkingPlanningEntityList(); for (Iterator<Object> it = workingPlanningEntityList.iterator(); it.hasNext(); ...
drools-planner-core/src/main/java/org/drools/planner/core/heuristic/selector/entity/PlanningEntitySelector.java
satd-removal_data_972
TODO: configure importServices + exportServices private void setup(Manifest appManifest) { Map<String, String> appMap = readManifestIntoMap(appManifest); // configure the appSymbolicName and appVersion this.appSymbolicName = appMap.get(AppConstants.APPLICATION_SYMBOLIC_NAME); this.appVersion = new Version(appMap.get(A...
application/application-utils/src/main/java/org/apache/aries/application/impl/ApplicationMetadataImpl.java
satd-removal_data_973
TODO 3.0: configurable set of request mappers public void init(FilterConfig filterConfig) { this.requestMappers = new ArrayList(); // TODO 3.0: configurable set of request mappers this.requestMappers.add(new WeblogRequestMapper()); } public void init(FilterConfig filterConfig) { // lookup set of request mappers we ar...
src/org/apache/roller/ui/rendering/filters/RequestMappingFilter.java
satd-removal_data_974
X TODO invoke protected methods via reflection @Override protected void delegateInterceptedMethods(ClassLoader classLoader, ClassWriter cw, String proxyClassFileName, Class<?> classToProxy, Method[] interceptedMethods) throws ProxyGenerationException { //X TODO invoke prot...
webbeans-impl/src/main/java/org/apache/webbeans/proxy/NormalScopeProxyFactory.java
satd-removal_data_975
TODO: Put this test back in, and fix it @Test public void testLongStringMsgd() throws ConfigCompileException{ //TODO: Put this test back in, and fix it // SRun("msg('@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@')", fakePlayer); // verify(fakePlayer).sendMessage("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
src/test/java/com/laytonsmith/core/functions/EchoesTest.java
satd-removal_data_976
// TODO set the config @Override void executeRails() throws MojoExecutionException, ScriptException, IOException, GemException, RailsException { if (this.railsVersion.length() >= SMALLEST_ALLOWED_RAILS_VERSION.length() && this.railsVersion.compareTo(SMALLEST_ALLOWED_RAILS_VERSION) < 0) { getLog().warn("rai...
rails3-maven-plugin/src/main/java/de/saumya/mojo/rails3/RailsMojo.java
satd-removal_data_977
TODO: down-to-up filter, if (eventTime-downTime) is less than threshold, just ignore public void onMoveEvent(int x, int y, long eventTime, PointerTrackerQueue queue) { if (ENABLE_ASSERTION) checkAssertion(queue); if (DEBUG_MOVE_EVENT) printTouchEvent("onMoveEvent:", x, y, eventTime); if (mKeyAlreadyProcessed) return; ...
java/src/com/android/inputmethod/keyboard/PointerTracker.java
satd-removal_data_978
FIXME: update to string public void infer(int index, Code.Debug code, Block.Entry entry, Env environment) { // FIXME: update to string environment.push(Type.T_LIST(Type.T_INT)); } public void infer(int index, Code.Debug code, Block.Entry entry, Env environment) { environment.push(Type.T_STRING); }
src/wyil/transforms/BackPropagation.java
satd-removal_data_979
TODO: horrendous way of representing Map<String,String> @Test public void testMergeCatalogItemMetadataHref() { VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse, mergeItemMetadata, mergeItemMetadataResponse); // TODO: horrendous way of representing Map<String,String> Metadata metadata = Metad...
labs/vcloud-director/src/test/java/org/jclouds/vcloud/director/v1_5/features/CatalogApiExpectTest.java
satd-removal_data_980
TODO do this some other way... private void loadData(Uri dataUri) { if (dataUri.equals(mDataUri)) { Log.d(Constants.TAG, "Same URI, no need to load the data again!"); return; } getActivity().setProgressBarIndeterminateVisibility(Boolean.TRUE); mContainer.setVisibility(View.GONE); mDataUri = dataUri; Log.i(Constants.TA...
OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyMainFragment.java
satd-removal_data_981
TODO check if the labels are unique public static void validateForeignKeys(Model model) throws MolgenisModelException, DatabaseException { logger.debug("validate xref_field and xref_label references..."); // validate foreign key relations for (Entity entity : model.getEntities()) { String entityname = entity.getName()...
src/org/molgenis/model/MolgenisModelValidator.java
satd-removal_data_982
TODO Add a workaround public void decorate( Object element, IDecoration decoration ) { SchemaChecker schemaChecker = Activator.getDefault().getSchemaChecker(); if ( element instanceof AttributeTypeWrapper ) { AttributeTypeImpl at = ( ( AttributeTypeWrapper ) element ).getAttributeType(); if ( schemaChecker.hasErrors( ...
studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/SchemaEditorSchemaCheckerLabelDecorator.java
satd-removal_data_983
TODO: Support range queries for dates public void index(final Object value, final Long primaryKey) { if(value != null) { template.sadd(createRedisKey(value), primaryKey); // for numbers and dates we also create a list index in order to support range queries if(value instanceof Number) { String propSortKey = entityPers...
spring-datastore-redis/src/main/java/org/springframework/datastore/redis/engine/RedisPropertyValueIndexer.java
satd-removal_data_984
todo log it @ trace @SuppressWarnings({"unchecked"}) public void start() throws IOException { final int bindCount = bindAddresses.length; final MulticastSocket[] sockets = new MulticastSocket[bindCount]; boolean ok = false; try { channels = new BioMulticastChannelImpl[bindCount]; for (int i = 0; i < bindCount; i++) { ...
nio-impl/src/main/java/org/jboss/xnio/core/nio/BioMulticastServer.java
satd-removal_data_985
TODO actually correct errors! public void decode(int[] received, int numECCodewords) throws ChecksumException { ModulusPoly poly = new ModulusPoly(field, received); int[] syndromeCoefficients = new int[numECCodewords]; boolean noError = true; for (int i = 0; i < numECCodewords; i++) { int eval = poly.evaluateAt(field....
core/src/com/google/zxing/pdf417/decoder/ec/ErrorCorrection.java
satd-removal_data_986
TODO uninstall local features not on the cluster ? @Override public void pull(Group group) { if (group != null) { String groupName = group.getName(); LOGGER.debug("CELLAR FEATURE: pulling features repositories and features from cluster group {}", groupName); ClassLoader originalClassLoader = Thread.currentThread().get...
features/src/main/java/org/apache/karaf/cellar/features/FeaturesSynchronizer.java
satd-removal_data_987
TODO: test if options is supported protected void setUp() throws Exception { // TODO: test if options is supported //checkSupportedOption(Repository.OPTION_ACCESS_CONTROL_SUPPORTED); super.setUp(); // TODO: make sure, entries to ADD are not present yet. // TODO: retrieve principal name from tck-Configuration // TODO: ...
jackrabbit-core/src/test/java/org/apache/jackrabbit/api/jsr283/security/AccessControlListTest.java
satd-removal_data_988
TODO: Normal items public void useItemOnBlock(EntityRef item, EntityRef user, Vector3i targetBlock, Side surfaceDirection, Side secondaryDirection) { if (item == null) return; ItemComponent itemComp = item.getComponent(ItemComponent.class); if (itemComp == null) return; PlaceableBlockComponent placeableBlock = item.ge...
src/org/terasology/logic/systems/ItemSystem.java
satd-removal_data_989
TODO write tests for this public void purgeDeleted() throws NullCursorException { // TODO write tests for this queryStart = System.currentTimeMillis(); Uri uri = getUri().buildUpon().appendQueryParameter(BrowserContract.PARAM_SHOW_DELETED, "true").build(); Cursor cur = context.getContentResolver().query(uri, n...
src/main/java/org/mozilla/gecko/sync/repositories/android/AndroidBrowserRepositoryDataAccessor.java
satd-removal_data_990
TODO: Instead of using the path below, make a path to a folder I can access public static void initLogcat(Context context) { //uncomment below return statement to bypass log file creation, should allow regular console logging //may need to comment the rest of the method //TODO: Instead of using the path below, make a ...
enabler/src/main/java/com/openxc/enabler/LocalLogcat.java
satd-removal_data_991
TODO: stop is not yet supported public void testInterceptWithStop() throws Exception { // TODO: stop is not yet supported //getMockEndpoint("mock:foo").expectedMessageCount(0); //getMockEndpoint("mock:bar").expectedMessageCount(0); //getMockEndpoint("mock:result").expectedMessageCount(0); //getMockEndpoint("mock:inter...
camel-core/src/test/java/org/apache/camel/processor/intercept/InterceptSimpleRouteStopTest.java
satd-removal_data_992
TODO complicated distance-finding equation here! @Override public void updateProgress(Event event) { if (event instanceof PlayerMoveEvent) { PlayerMoveEvent ev = (PlayerMoveEvent) event; // TODO complicated distance-finding equation here! if (traveled >= distance) { completed = true; super.updateProgress(event); } } }...
src/com/fullwall/Citizens/NPCTypes/Questers/QuestTypes/DistanceQuest.java
satd-removal_data_993
TODO It we only wait for opening state, this test can hang @Test public void testActiveE2ECloseSimple() throws InterruptedException, IOException, FlumeSpecException { final String lnode = "e2eSimple"; final FlumeMaster master = new FlumeMaster(cfg); MasterRPC rpc = new DirectMasterRPC(master); final FlumeNode no...
flume-core/src/test/java/com/cloudera/flume/agent/diskfailover/TestDiskFailoverAgent.java
satd-removal_data_994
TODO:Custom Fields API to be tested with Mambu 3.3, see MBU-2486 public static void main(String[] args) { DemoUtil.setUp(); try { // TODO:Custom Fields API to be tested with Mambu 3.3, see MBU-2486 // testCustomField(); // testGetCustomFieldSetsByType(); testGetCentresByPage(); testGetCentre(); testGetCurrency(); test...
src/demo/DemoTestOrganizationService.java
satd-removal_data_995
TODO: Fix SpoutPlayer:190 -> handle null commands correctly @Override public void onEnable() { //Config config.load(); // Universal Plug and Play if (getEngine() instanceof Server) { for (PortBinding binding : ((Server) getEngine()).getBoundAddresses()) { if (binding.getProtocol() instanceof VanillaProtocol && binding...
src/main/java/org/spout/vanilla/VanillaPlugin.java
satd-removal_data_996
TODO: (Dec 7, 2007 10:14:35 AM) not right @SuppressWarnings("unchecked") public static Matcher<PrintableResult> hasFailureContaining(final String string) { return new BaseMatcher<PrintableResult>() { public boolean matches(Object item) { return item.toString().contains(string); } public void describeTo(Description ...
src/main/java/org/junit/experimental/results/ResultMatchers.java
satd-removal_data_997
TODO user authentication and authorization @Override protected void processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException { RpcRequest reqType = RpcRequest.fromName(request.getParameter("req")); lo...
src/com/gitblit/RpcServlet.java
satd-removal_data_998
todo: better predicate @NotNull private static List<GoMethodDeclaration> calcMethods(@NotNull GoTypeSpec o) { PsiDirectory dir = o.getContainingFile().getOriginalFile().getParent(); if (dir == null) return ContainerUtil.emptyList(); List<GoMethodDeclaration> result = ContainerUtil.newArrayList(); for (PsiFile psiFile ...
src/com/goide/psi/impl/GoPsiImplUtil.java
satd-removal_data_999
TODO: return specs as broadcast to WebSMS @Override public final void onReceive(final Context context, final Intent intent) { final String action = intent.getAction(); if (action == null) { return; } if (Constants.ACTION_CONNECTOR_UPDATE.equals(action)) { final ConnectorSpec specs = CommandReceiverSMS.getSpecs(context...
src/de/ub0r/android/websms/connector/sms/CommandReceiverSMS.java
satd-removal_data_1000
FIXME: Remove the following check when native events will be supported across all major platforms. @Test public void testTabInTableConfigDialog() { // FIXME: Remove the following check when native events will be supported across all major platforms. WebDriver driver = ((XWikiWrappingDriver) getDriver()).getWrappedDriv...
xwiki-enterprise-test/xwiki-enterprise-test-ui/src/test/it/org/xwiki/test/ui/EditWYSIWYGTest.java