id
stringlengths
19
22
content
stringlengths
187
14.2k
max_stars_repo_path
stringlengths
15
210
satd-removal_data_1
TODO: make this a big red scary button @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (mDisk == null) { finish(); return; } setContentView(R.layout.storage_wizard_generic); mFormatPrivate = getIntent().getBooleanExtra(EXTRA_FORMAT_PRIVATE, false); if (mFormatPriva...
src/com/android/settings/deviceinfo/StorageWizardFormatConfirm.java
satd-removal_data_2
TODO: catch expectation failures and resignal correctly public void invokeWithJavaArgs(Object[] args) throws Throwable { IokeObject msg = ioke.newMessage("invoke"); Message invoke = (Message) IokeObject.data(msg); // TODO: catch expectation failures and resignal correctly List<Runtime.RescueInfo> pendingRescues = new ...
cuke4duke/src/main/java/cuke4duke/internal/ik/IkStepDefinition.java
satd-removal_data_3
FIXME: this is broken and untested (it should set the mark instead of limit) public void mark() { // FIXME: this is broken and untested (it should set the mark instead of limit) this.limit = position.duplicate(); } public void mark() { this.mark = position.duplicate(); }
codec/src/main/java/org/apache/mina/codec/IoBuffer.java
satd-removal_data_4
TODO support unicode! private static StringBuilder ioListToStringBuilder(final OtpErlangObject o, final StringBuilder sb0, final int maxLength) { StringBuilder sb = sb0; if (sb.length() >= maxLength) { return sb; } if (o instanceof OtpErlangLong) { final OtpErlangLong l = (OtpErlangLong) o; try { sb.append...
org.erlide.util/src/org/erlide/util/Util.java
satd-removal_data_5
todo: need a reciprocal stop protected void internalNonBlockingStart() throws IOException { try { // copy TezConfiguration workingConf = new TezConfiguration( currentConf ); prepareEnsureStagingDir( workingConf ); tezClient = TezClient.create( flowStep.getName(), workingConf, Collections.<String, LocalResource>e...
cascading-hadoop2-tez/src/main/java/cascading/flow/tez/planner/Hadoop2TezFlowStepJob.java
satd-removal_data_6
XXX: REMOVE THIS SYNCHRONIZED: once threading issues in AS7 WS are fixed public void start() throws WebServicePublishException { ClassLoader origLoader = Thread.currentThread().getContextClassLoader(); //XXX: REMOVE THIS SYNCHRONIZED: once threading issues in AS7 WS are fixed synchronized (BaseWebService.class) { try ...
soap/src/main/java/org/switchyard/component/soap/InboundHandler.java
satd-removal_data_7
TODO 428889 extract root feature seeds on this class loader side @Test public void testPublishingWithRootFeatures() { File productDefinition = resourceFile("publishers/products/rootFeatures.product"); subject = initPublisher(createFeatureIU("org.eclipse.rcp", "4.4.0.v20140128"), createFeatureIU("org.ec...
tycho-bundles/org.eclipse.tycho.p2.tools.tests/src/test/java/org/eclipse/tycho/p2/tools/publisher/PublishProductToolTest.java
satd-removal_data_8
TODO Check for existence of the getter and skip it (+ warn) if it's already there. @Override public void handle(AnnotationValues<Getter> annotation, JCAnnotation ast, JavacAST.Node annotationNode) { //TODO Check for existence of the getter and skip it (+ warn) if it's already there. if ( annotationNode.up().getKind() ...
src/lombok/javac/handlers/HandleGetter.java
satd-removal_data_9
TODO: Web Hosting #118779 @Test public void testListImagesDetail() throws Exception { List<Image> response = connection.listImageDetails(); assert null != response; long imageCount = response.size(); assertTrue(imageCount >= 0); for (Image image : response) { assertTrue(image.getId() >= 1); assert null != image.getNam...
rackspace/cloudservers/core/src/test/java/org/jclouds/rackspace/cloudservers/CloudServersConnectionLiveTest.java
satd-removal_data_10
TODO record duration @Override public void callRecordComplete(ResourceEvent event) { Qualifier q = event.getQualifier(); RecordCompleteEvent.Cause cause = RecordCompleteEvent.Cause.UNKNOWN; String errorText = null; if (q == SpeechDetectorConstants.INITIAL_TIMEOUT_EXPIRED) { cause = RecordCompleteEvent.Cause.INI_TIMEOU...
moho-impl/src/main/java/com/voxeo/moho/media/GenericMediaService.java
satd-removal_data_11
TODO: Is this where we should handle this? public void generateTables(String schemaName, String tableName, Connection conn, DatabaseMetaData meta) throws SQLException { fireGenerationEvent(_loc.get("generating-columns", schemaName, tableName)); if (_log.isTraceEnabled()) _log.trace(_loc.get("gen-ta...
openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaGenerator.java
satd-removal_data_12
TODO it might be nice to move these calculations somewhere else since they will need to be reused @Override public void handle(Session session, GlowPlayer player, BlockPlacementMessage message) { if (player == null) return; GlowWorld world = player.getWorld(); int x = message.getX(); int z = message.getZ(); int y = me...
src/main/java/net/glowstone/msg/handler/BlockPlacementMessageHandler.java
satd-removal_data_13
TODO set the owner property @Override public void add(IdentityContext context, AttributedType value) { if (IdentityType.class.isInstance(value)) { EntityGraph graph = EntityGraph.create(value, config.getIdentityModel()); graph.setProperty(config.getIdentityModel().getIdentityClassProperty(), value.getClass().getName()...
modules/idm/impl/src/main/java/org/picketlink/idm/jpa/internal/JPAIdentityStore.java
satd-removal_data_14
TODO: fix this (BATCH-1030) @Test public void testFailedStepRestarted() throws Exception { SimpleFlow flow = new SimpleFlow("job"); List<StateTransition> transitions = new ArrayList<StateTransition>(); transitions.add(StateTransition.createStateTransition(new StepState(new StepSupport("step1") { @Override public vo...
spring-batch-core/src/test/java/org/springframework/batch/core/job/flow/FlowJobTests.java
satd-removal_data_15
TODO: debug view for candidate strip needed. private void updateSuggestions() { final SuggestedWords suggestions = mSuggestions; final List<SuggestedWordInfo> suggestedWordInfoList = suggestions.mSuggestedWordInfoList; clear(); final int paneWidth = getWidth(); final int dividerWidth = mDividers.get(0).getMeasuredWidt...
java/src/com/android/inputmethod/latin/CandidateView.java
satd-removal_data_16
todo log & ignore public void run() { final Selector selector = this.selector; for (; ;) { try { keyLoad = selector.keys().size(); selector.select(); synchronized (selectorWorkQueue) { while (! selectorWorkQueue.isEmpty()) { final SelectorTask task = selectorWorkQueue.remove(); try { task.run(selector); } catch (Throw...
nio-impl/src/main/java/org/jboss/xnio/core/nio/NioSelectorRunnable.java
satd-removal_data_17
FIXME Should be refactored when OPENENGSB-1931 is fixed public void init() { new Thread() { @Override public void run() { try { Collection<ConnectorConfiguration> configs; try { Map<String, String> emptyMap = Collections.emptyMap(); configs = configPersistence.load(emptyMap); } catch (InvalidConfigurationE...
components/services/src/main/java/org/openengsb/core/services/internal/ConnectorManagerImpl.java
satd-removal_data_18
TODO CHECK BIZARE D'AVOIR KER = ENVELOPE @Override public void propagate(int evtmask) throws ContradictionException { int k = set.getKernelSize(); card.updateLowerBound(k, aCause); int e = set.getEnvelopeSize(); card.updateUpperBound(e, aCause); if (card.instantiated()) { int c = card.getValue(); ISet env = set.getEnv...
choco-solver/src/main/java/solver/constraints/propagators/set/PropCardinality.java
satd-removal_data_19
TODO: setForeground / startForeground public void register(final Intent intent) { Log.d(TAG, "register(" + intent.getAction() + ")"); // TODO: setForeground / startForeground if (this.helperAPI5s == null) { this.setForeground(true); } else { // TODO: fix me } synchronized (this.pendingIOOps) { Log.d(TAG, "currentIOOps...
src/de/ub0r/android/websms/connector/common/ConnectorService.java
satd-removal_data_20
Remove those meaningless options for now. TODO: delete them for good @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setInputMethodSettingsCategoryTitle(R.string.language_selection_title); setSubtypeEnablerTitle(R.string.select_language); addPreferencesFromResource(R.xml.prefs); final Resources...
java/src/com/android/inputmethod/latin/Settings.java
satd-removal_data_21
TODO: include last social snippet after update private Dialog createNameDialog() { // Build set of all available display names final ArrayList<ValuesDelta> allNames = new ArrayList<ValuesDelta>(); for (EntityDelta entity : this.mEntities) { final ArrayList<ValuesDelta> displayNames = entity .getMimeEntries(StructuredN...
src/com/android/contacts/ui/EditContactActivity.java
satd-removal_data_22
todo: should support more that List/Set @SuppressWarnings("unchecked") public void injectValueIntoField(Object instance, InvocationProviders invocationProviders, AeshContext aeshContext, boolean doValidation) throws OptionValidatorException { if(converter == null || instance == nul...
src/main/java/org/aesh/command/impl/internal/ProcessedOption.java
satd-removal_data_23
TODO: Confirm correct delete policy for exchange private void onExchange() { Account account = SetupData.getAccount(); HostAuth recvAuth = account.getOrCreateHostAuthRecv(this); recvAuth.setConnection(HostAuth.SCHEME_EAS, recvAuth.mAddress, recvAuth.mPort, recvAuth.mFlags | HostAuth.FLAG_SSL); HostAuth...
src/com/android/email/activity/setup/AccountSetupAccountType.java
satd-removal_data_24
TODO: Log exception public void performSimpleAction(SimpleSessionAction action) { final Session session = sessionManager.getSession(); Transaction tx = null; try { tx = session.beginTransaction(); action.perform(session); tx.commit(); } catch (Exception ex) { //TODO: Log exception if (tx != null) { tx.rollback(); } } ...
adapters/hibernate/src/main/java/org/atomhopper/hibernate/HibernateFeedRepository.java
satd-removal_data_25
TODO: THIS IS INEFFICIENT BECAUSE FOR EACH PROPERTY WE DITHER AGAIN @Override public void addToLaserJob(LaserJob job, GraphicSet objects) { //TODO for (LaserProperty prop : this.getLaserProperties()) { Rectangle2D bb = objects.getBoundingBox(); if (bb != null && bb.getWidth() > 0 && bb.getHeight() > 0) { BufferedImage...
src/com/t_oster/visicut/model/RasterProfile.java
satd-removal_data_26
todo - also allow src from files here public void execute() throws BuildException { log("execute()", Project.MSG_VERBOSE); command = command.trim(); try { if (srcFile == null && command.length() == 0 && filesets.isEmpty()) { throw new BuildException("Source file does not exist!", getLocation()); } if (srcFile != null ...
src/main/org/codehaus/groovy/ant/Groovy.java
satd-removal_data_27
TODO add uninitialized entities immediately again public Iterator<Move> moveIterator(final Object planningEntity) { scoreDirector.beforeEntityAdded(planningEntity); // TODO add uninitialized entities immediately again scoreDirector.afterEntityAdded(planningEntity); if (planningValueWalkerList.size() == 1) { PlanningVa...
drools-planner-core/src/main/java/org/drools/planner/core/heuristic/selector/variable/PlanningVariableWalker.java
satd-removal_data_28
FIXME throw assertion exception if constraintValidatorType == null private static Class<?> extractType(Class<? extends ConstraintValidator<?, ?>> validator) { Map<Type, Type> resolvedTypes = new HashMap<Type, Type>(); Type constraintValidatorType = resolveTypes( resolvedTypes, validator ); //we now have all bind from ...
hibernate-validator/src/main/java/org/hibernate/validation/util/ValidatorTypeHelper.java
satd-removal_data_29
TODO group by ANKI private void setOutputProductsGridContent(final ViewDefinitionState viewDefinitionState, final Entity order) { GridComponent outputProducts = (GridComponent) viewDefinitionState.getComponentByReference("outputProductsGrid"); List<Entity> outputProductsList = new ArrayList<Entity>(); for (Entity prod...
mes-plugins/mes-plugins-production-counting/src/main/java/com/qcadoo/mes/productionCounting/internal/ProductionBalanceViewService.java
satd-removal_data_30
todo: HTTPS values public void processAction(ActionRequest actionRequest, ActionResponse actionResponse) throws PortletException, IOException { String mode = actionRequest.getParameter("mode"); WebContainer container = PortletManager.getCurrentWebContainer(actionRequest); String server = "generic"; if(cont...
applications/console-standard/src/java/org/apache/geronimo/console/webmanager/ConnectorPortlet.java
satd-removal_data_31
FIXME: Make a static with the default search provider private void loadSearchProvider( final Properties properties ) { // See if we're using Lucene, and if so, ensure that its index directory is up to date. final String providerClassName = TextUtil.getStringProperty( properties, PROP_SEARCHPROVIDER, DEFAULT_SEARCHPROV...
jspwiki-main/src/main/java/org/apache/wiki/search/DefaultSearchManager.java
satd-removal_data_32
todo sync this @Override public void processResult(int i, String s, Object o, String s1) { KeeperException.Code returnCode = KeeperException.Code.get(i); ZkLocalStatusAndEndpoints statusAndEndpoints = (ZkLocalStatusAndEndpoints) o; log.info("Claim callback " + returnCode.name() + " " + s); switch (returnCode) { case...
cn/src/main/java/org/cloudname/zk/ZkLocalStatusAndEndpoints.java
satd-removal_data_33
TODO - use type NAMEDRANGE public void setRefersToFormula(String formulaText) { XSSFEvaluationWorkbook fpb = XSSFEvaluationWorkbook.create(workbook); Ptg[] ptgs; try { ptgs = FormulaParser.parse(formulaText, fpb, FormulaType.CELL); // TODO - use type NAMEDRANGE } catch (RuntimeException e) { if (e.getClass().getName()...
src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFName.java
satd-removal_data_34
TODO add description private void ingestWork(ContentContainerObject parent, Resource parentResc, Resource childResc) throws DepositException { PID childPid = PIDs.get(childResc.getURI()); WorkObject obj; boolean skip = skipResumed(childResc); if (skip) { obj = repository.getWorkObject(childPid); ingestChildren(obj, ch...
deposit/src/main/java/edu/unc/lib/deposit/fcrepo4/IngestContentObjectsJob.java
satd-removal_data_35
TODO(kevinb): why does the source come out as unknown?? public void testInjectInnerClass() throws Exception { Injector injector = Guice.createInjector(); try { injector.getInstance(InnerClass.class); fail(); } catch (Exception expected) { // TODO(kevinb): why does the source come out as unknown?? assertContains(expect...
test/com/google/inject/ErrorMessagesTest.java
satd-removal_data_36
TODO Copy as Image to Clipboard. But not on Linux 64-bit. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=283960 private void makeLocalToolBar() { IActionBars bars = getViewSite().getActionBars(); IToolBarManager manager = bars.getToolBarManager(); fDrillDownManager.addNavigationActions(manager); manager.add(new Sep...
com.archimatetool.zest/src/com/archimatetool/zest/ZestView.java
satd-removal_data_37
XXX lang is not checked?? private void walk(Node n, Parse parse, HTMLMetaTags metaTags, String base, List outlinks) { if (n instanceof Element) { String name = n.getNodeName(); if (name.equalsIgnoreCase("script")) { String lang = null; Node lNode = n.getAttributes().getNamedItem("language"); if (lNode == null) lang = ...
src/plugin/parse-js/src/java/org/apache/nutch/parse/js/JSParseFilter.java
satd-removal_data_38
TODO: implement this! public void removeUserFromGroup(A_CmsUser currentUser, A_CmsProject currentProject, String username, String groupname) throws CmsException { // TODO: implement this! return ; } public void removeUserFromGroup(A_CmsUser currentUser, A_CmsProject currentProject, String username...
src/com/opencms/file/CmsResourceBroker.java
satd-removal_data_39
TODO what about placeholder for null? should be in searchresult (transient field?) @Override public void writeTo(SearchResponse searchResponse, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOExc...
graylog2-server/src/main/java/org/graylog2/rest/resources/search/responses/SearchResponseCsvWriter.java
satd-removal_data_40
TODO: multicast properties @Override public void execute(final AsyncCallback<List<SocketBinding>> callback) { // /socket-binding-group=standard-sockets:read-resource(recursive=true) ModelNode operation = new ModelNode(); operation.get(ADDRESS).add("socket-binding-group", groupName); operation.get(OP).set(READ_RESOURCE...
gui/src/main/java/org/jboss/as/console/client/shared/general/model/LoadSocketBindingsCmd.java
satd-removal_data_41
todo log message public void handleEvent(final ConnectedMessageChannel channel) { final Pooled<ByteBuffer> pooledBuffer = connection.allocate(); try { final ByteBuffer buffer = pooledBuffer.getResource(); final int res; try { res = channel.receive(buffer); } catch (IOException e) { connection.handleException(e); retur...
src/main/java/org/jboss/remoting3/remote/ClientConnectionOpenListener.java
satd-removal_data_42
TODO: Support exchange headers for wait and timeout values, see Exchange constants public void process(final Exchange exchange) throws Exception { final Processor output = getProcessor(); if (output == null) { // no output then return return; } // use a new copy of the exchange to route async final Exchange copy = exc...
camel-core/src/main/java/org/apache/camel/processor/AsyncProcessor.java
satd-removal_data_43
TODO: Implement remove @Override public void remove(IdentityType value) throws IdentityManagementException { //TODO: Implement remove } @Override public void remove(IdentityType value) throws IdentityManagementException { storeSelector.getStoreForIdentityOperation(this, IdentityStore.class, IdentityType.class, Identi...
modules/idm/impl/src/main/java/org/picketlink/idm/internal/ContextualIdentityManager.java
satd-removal_data_44
TODO Add an error and a log public static void saveProjects() { ProjectsHandler projectsHandler = Activator.getDefault().getProjectsHandler(); File projectsFile = getProjectsFile(); try { BufferedWriter buffWriter = new BufferedWriter( new FileWriter( projectsFile ) ); buffWriter.write( ProjectsExporter.toXml(...
studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/PluginUtils.java
satd-removal_data_45
TODO should we do time out check between each object call? @Override public void initializeObjects(EntityInfo[] entityInfos, Criteria criteria, Class<?> entityType, SearchFactoryImplementor searchFactoryImplementor, TimeoutManager timeoutManager, Session session) { boo...
orm/src/main/java/org/hibernate/search/query/hibernate/impl/LookupObjectInitializer.java
satd-removal_data_46
TODO: Do we really need to display this twice? Not like there are any associated stats. @Override protected void statsDisplay() { if (canTreasureHunt) { player.sendMessage(LocaleLoader.getString("Fishing.Ability.Rank", new Object[] { lootTier })); } if (canMagicHunt) { player.sendMessage(LocaleLoader.getString("Fishin...
src/main/java/com/gmail/nossr50/commands/skills/FishingCommand.java
satd-removal_data_47
TODO: TL this. @Override public void run(final Server server, final CommandSender sender, final String commandLabel, final String[] args) throws Exception { if (args.length < 2) { throw new NotEnoughArgumentsException(); } final ItemStack stack = ess.getItemDb().get(args[1]); final String itemname = stack.getType().to...
Essentials/src/com/earth2me/essentials/commands/Commandgive.java
satd-removal_data_48
todo - use config to construct a BinningGrid instance of the correct type @Override public void setConf(Configuration conf) { this.conf = conf; // todo - use config to construct a BinningGrid instance of the correct type int numRows = conf.getInt(L3Tool.CONFNAME_L3_NUM_ROWS, -1); binningGrid = new IsinBinningGrid(numR...
calvalus-experiments/src/main/java/com/bc/calvalus/b3/job/L3Partitioner.java
satd-removal_data_49
TODO: it's confusing that request has fields that get populated but not accepted as input (eg, groupId) public void execute() throws MojoExecutionException, MojoFailureException { Properties executionProperties = session.getExecutionProperties(); ArchetypeGenerationRequest request = new ArchetypeGenerationRequest() .s...
archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/CreateProjectFromArchetypeMojo.java
satd-removal_data_50
@TODO DIRSERVER-1030 make this conditional based on the presence of the CascadeControl public void rename( NextInterceptor next, RenameOperationContext opContext ) throws NamingException { LdapDN name = opContext.getDn(); String newRdn = opContext.getNewRdn(); boolean deleteOldRn = opContext.getDelOldDn(); Attributes ...
core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
satd-removal_data_51
TODO: write better code public void scan(InetAddress address, ScanningResult result) { // create a scanning subject object, which will be used by fetchers // to cache common information ScanningSubject scanningSubject = new ScanningSubject(address); // populate results boolean continueScanning = true; int fetcherIndex...
src/net/azib/ipscan/core/Scanner.java
satd-removal_data_52
FIXME: Should this also include the classifier? private void processNativeLibraries(final List<String> commands) throws MojoExecutionException { // Examine the native libraries directory for content. This will only be true if: // a) the directory exists // b) it contains at least 1 file final boolean hasValidNativeLib...
src/main/java/com/jayway/maven/plugins/android/phase09package/ApkMojo.java
satd-removal_data_53
TODO: check if in reactor @Override public void execute() throws MojoExecutionException, MojoFailureException { JangarooApps jangarooApps = createJangarooApps(project); Map<String, List<File>> appNamesToDir = new HashMap<>(); for (JangarooApp jangarooApp : jangarooApps.apps) { String senchaAppName = SenchaUtils.getSen...
jangaroo-maven/jangaroo-maven-plugin/src/main/java/net/jangaroo/jooc/mvnplugin/PackageAppsMojo.java
satd-removal_data_54
TODO fix this @Test public void getObjectInstance() throws Exception { Reference resource = new Reference("CassandraClientFactory"); resource.add(new StringRefAddr("url", cassandraUrl)); resource.add(new StringRefAddr("port", Integer.toString(cassandraPort))); Name jndiName = mock(Name.class); Context context = new In...
core/src/test/java/me/prettyprint/cassandra/jndi/CassandraClientJndiResourceFactoryTest.java
satd-removal_data_55
TODO hosting.com throws 400 when we try to delete a vApp @Test(enabled = true, dependsOnMethods = "testCompareSizes") public void testCreateTwoNodesWithRunScript() throws Exception { try { client.destroyNodesMatching(withTag(tag)); } catch (HttpResponseException e) { // TODO hosting.com throws 400 when we try to delet...
compute/src/test/java/org/jclouds/compute/BaseComputeServiceLiveTest.java
satd-removal_data_56
TODO merge SMS into secondary action private void populateContactAndAboutCard() { Trace.beginSection("bind contact card"); final List<Entry> contactCardEntries = new ArrayList<>(); final List<Entry> aboutCardEntries = new ArrayList<>(); int topContactIndex = 0; for (int i = 0; i < mDataItemsList.size(); ++i) { final L...
src/com/android/contacts/quickcontact/QuickContactActivity.java
satd-removal_data_57
TODO check possible weld bug @Test @SpecAssertions({ @SpecAssertion(section = "5.6", id = "e"), @SpecAssertion(section = "5.6.3", id = "b") }) @SuppressWarnings("serial") public void testNewBean() { // TODO check possible weld bug // Instance<List<String>> instance = getInstanceByType(ObtainsNewInstanceBean.class).get...
impl/src/main/java/org/jboss/cdi/tck/tests/lookup/dynamic/DynamicLookupTest.java
satd-removal_data_58
todo: alias sub-index public synchronized void initializeCommands() { // ** Load topics from highest to lowest priority order ** // todo: ignore specified plugins Set<String> ignoredPlugins = Collections.emptySet(); // Don't load any automatic help topics if All is ignored if (ignoredPlugins.contains("All")) { return;...
src/main/java/net/glowstone/util/GlowHelpMap.java
satd-removal_data_59
TODO srowen says cluster is not used? public void testFuzzyKMeansMapper() throws Exception { List<Vector> points = TestKmeansClustering .getPoints(TestKmeansClustering.reference); DistanceMeasure measure = new EuclideanDistanceMeasure(); SoftCluster.config(measure, 0.001); for (int k = 0; k < points.size(); k++) { Sys...
core/src/test/java/org/apache/mahout/clustering/fuzzykmeans/TestFuzzyKmeansClustering.java
satd-removal_data_60
TODO: get previous document private void saveDocument(String comment) throws SAXException { try { XWikiContext context = getXWikiContext(); XWikiDocument document = getDocument(); XWikiDocument dbDocument = getDatabaseDocument(); // TODO: get previous document // TODO: diff previous and new document // TODO: if there ...
xwiki-commons-core/xwiki-commons-extension/xwiki-platform-extension-handlers/xwiki-platform-extension-handler-xar/src/main/java/org/xwiki/extension/xar/internal/handler/packager/xml/DocumentImporterHandler.java
satd-removal_data_61
TODO: use return value to determine container exit status @Override protected void runInternal() { // TODO: use return value to determine container exit status ContainerHandler containerHandler = beanFactory.getBean(ContainerHandler.class); try { Object result = containerHandler.handle(this); log.info("Result from con...
spring-yarn/spring-yarn-core/src/main/java/org/springframework/yarn/container/DefaultYarnContainer.java
satd-removal_data_62
TODO switch to DOM4J for simplicity and consistency public void transformPom(MavenCoordinates coreCoordinates) throws PomTransformationException{ File pom = new File(rootDir.getAbsolutePath()+"/"+pomFileName); File backupedPom = new File(rootDir.getAbsolutePath()+"/"+pomFileName+".backup"); try { FileUtils.rename(pom,...
plugins-compat-tester/src/main/java/org/jenkins/tools/test/model/MavenPom.java
satd-removal_data_63
TODO fill in address index public void indexingAddresses(final IProgress progress){ File file = new File(Environment.getExternalStorageDirectory(), ADDRESS_PATH); closeAddresses(); if (file.exists() && file.canRead()) { for (File f : file.listFiles()) { if (f.getName().endsWith(IndexConstants.ADDRESS_INDEX_EXT)) { // ...
OsmAnd/src/com/osmand/ResourceManager.java
satd-removal_data_64
TODO: read all contacts part of this aggregate and hook into tabs @Override protected void onCreate(Bundle icicle) { super.onCreate(icicle); final Context context = this; mInflater = getLayoutInflater(); mResolver = getContentResolver(); mContentView = (ViewGroup)mInflater.inflate(R.layout.act_edit, null); mTabContent...
src/com/android/contacts/ui/EditContactActivity.java
satd-removal_data_65
TODO: Better player check! public void run() { synchronized (sessions) { for (Iterator<Map.Entry<String, Map<Class<? extends PersistentSession>, PersistentSession>>> i = sessions.entrySet().iterator(); i.hasNext();) { Map.Entry<String, Map<Class<? extends PersistentSession>, PersistentSession>> entry = i.next(); if (e...
src/main/java/com/sk89q/commandbook/session/SessionComponent.java
satd-removal_data_66
TODO: make non-hardwired public void start() { // TODO: make non-hardwired setFilePattern( "hbmlint-result.txt" ); getProperties().put(TEMPLATE_NAME, TEXT_REPORT_FTL); super.start(); } public void start() { getProperties().put(TEMPLATE_NAME, TEXT_REPORT_FTL); getProperties().put(FILE_PATTERN, "hbmlint-result.txt"); ...
orm/src/main/java/org/hibernate/tool/internal/export/lint/HbmLintExporter.java
satd-removal_data_67
FIXME: this is just wrong for implementing members() protected void init(){ com.redhat.ceylon.compiler.typechecker.model.ClassOrInterface declaration = (com.redhat.ceylon.compiler.typechecker.model.ClassOrInterface) this.declaration; ProducedType superType = declaration.getExtendedType(); if(superType != null) this.su...
runtime/com/redhat/ceylon/compiler/java/runtime/metamodel/FreeClassOrInterface.java
satd-removal_data_68
TODO: This is not a real implementation we want to work with private void resolve(final IPackageFragmentRoot packageRoot) { // TODO: This is not a real implementation we want to work with if (packageRoot instanceof JarPackageFragmentRoot) { final String name = packageRoot.getPath().lastSegment(); if (name.matches("org...
org.eclipse.recommenders.rcp.codecompletion.calls/src/org/eclipse/recommenders/internal/rcp/codecompletion/calls/store/LibraryIdentifierResolverJob.java
satd-removal_data_69
XXX implement actions private void createProfilesSection(FormToolkit toolkit, Composite body) { Section profilesSection = toolkit.createSection(body, Section.TITLE_BAR); profilesSection.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 1, 3)); profilesSection.setText("Profiles"); profilesEditor = new ListEd...
org.maven.ide.eclipse.editor/src/org/maven/ide/eclipse/editor/pom/ProfilesPage.java
satd-removal_data_70
TODO: Should re-factored as described in OPENNLP-193 public void run(String[] args) { if (args.length < 8) { System.out.println(getHelp()); throw new TerminateToolException(1); } TrainingParameters parameters = new TrainingParameters(args); if(!parameters.isValid()) { System.out.println(getHelp()); throw new Terminate...
opennlp-tools/src/main/java/opennlp/tools/cmdline/postag/POSTaggerTrainerTool.java
satd-removal_data_71
TODO: clear out the SyncState private void modifyCalendarSubscription(long id, boolean syncEvents) { // get the account, url, and current selected state // for this calendar. Cursor cursor = query(ContentUris.withAppendedId(Calendars.CONTENT_URI, id), new String[] {Calendars._SYNC_ACCOUNT, Calendars._S...
src/com/android/providers/calendar/CalendarProvider2.java
satd-removal_data_72
TODO should support deletion of profile with children public void deleteProfile(int profileId) { // TODO should support deletion of profile with children RulesProfile profile = getSession().getEntity(RulesProfile.class, profileId); if (profile != null && !profile.getProvided()) { String hql = "UPDATE " + ResourceModel...
sonar-server/src/main/java/org/sonar/server/configuration/ProfilesManager.java
satd-removal_data_73
FIXME check whether thread has been cancelled or not before refresh() and refreshAction.call() void refresh() { // FIXME check whether thread has been cancelled or not before refresh() and refreshAction.call() // FIXME protect this call, or at least log some error this.credentialsProvider.refresh(); Iterator<Registrat...
src/main/java/com/rabbitmq/client/impl/DefaultCredentialsRefreshService.java
satd-removal_data_74
TODO add in IProblem stuff here protected void usingClause(IASTScope scope) throws Backtrack { IToken firstToken = consume(IToken.t_using); if (LT(1) == IToken.t_namespace) { // using-directive consume(IToken.t_namespace); // optional :: and nested classes handled in name TokenDuple duple = null; if (LT(1) == IToken.t...
core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java
satd-removal_data_75
TODO: NPE once occurred on line below. @EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true) public void payForAction(FactionsEventMembershipChange event) { Double cost = null; String desc = null; if (event.getReason() == MembershipChangeReason.JOIN) { cost = UConf.get(event.getSender()).econCostJoin; d...
src/com/massivecraft/factions/listeners/FactionsListenerEcon.java
satd-removal_data_76
TODO: add code here @Override public void addGenotypeCall(GenotypeCall locus) { // TODO: add code here } @Override public void addGenotypeCall(GenotypeOutput locus) { SSGGenotypeCall call = (SSGGenotypeCall)locus; LikelihoodObject obj = new LikelihoodObject(call.getLikelihoods(), LikelihoodObject.LIKELIHOOD_TYPE.LOG)...
java/src/org/broadinstitute/sting/utils/genotype/geli/GeliAdapter.java
satd-removal_data_77
TODO Use wildcard constructor once BV API is updated (BVAL-358) @Test @SpecAssertion(section = "4.5.2", id = "a") public void testConstructorParameterConstraintsAreDeclaredByAnnotingParameters() throws Exception { //TODO Use wildcard constructor once BV API is updated (BVAL-358) //Constructor<?> constructor = getParam...
tests/src/main/java/org/hibernate/beanvalidation/tck/tests/constraints/application/method/MethodValidationRequirementTest.java
satd-removal_data_78
@todo Use WagonManager#getWagon(Repository) when available. It's available in Maven 2.0.5. public void execute() throws MojoExecutionException { if ( !inputDirectory.exists() ) { throw new MojoExecutionException( "The site does not exist, please run site:site first" ); } DistributionManagement distributionManagement =...
maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteDeployMojo.java
satd-removal_data_79
TODO: Handle context flags public static CommandSpec getOptionCommand(PermissionsEx pex) { return CommandSpec.builder() .setAliases("options", "option", "opt", "o") .setArguments(seq(string(_("key")), optional(string(_("val"))))) .setExecutor(new PermissionsExExecutor(pex) { @Override public <TextT...
src/main/java/ninja/leaping/permissionsex/command/OptionCommands.java
satd-removal_data_80
TODO: Add to poison queue private void startProcessor(final int id) { executor.submit(new Runnable() { @Override public void run() { String name = StringUtils.join(Lists.newArrayList(messageQueue.getName(), "Processor", Integer.toString(id)), ":"); Thread.currentThread().setName(name); LOG.info("Starting m...
src/main/java/com/netflix/astyanax/recipes/queue/MessageQueueDispatcher.java
satd-removal_data_81
TODO replace this with Imps.ProviderSettings.QueryMap settings.getUseTor() void signIn() { Intent intent = new Intent(MainActivity.this, SigningInActivity.class); intent.setData(mAccountUri); intent.putExtra(ImServiceConstants.EXTRA_INTENT_PROVIDER_ID, mProviderId); intent.putExtra(ImServiceConstants.EXTRA_INTENT_ACCO...
src/info/guardianproject/otr/app/im/ui/MainActivity.java
satd-removal_data_82
TODO Add scope check @Test public void testBrokenScope() { WebBeansConfigurationException result = null; try { defineEjbBean(Babus_Broken.class); } catch (WebBeansConfigurationException e) { result = e; } //TODO Add scope check Assert.assertNull(result); } @Test public void testBrokenScope() { WebBeansConfigu...
webbeans-ejb/src/test/java/org/apache/webbeans/ejb/definition/scope/EjbScopeTypeTest.java
satd-removal_data_83
TODO: display result? private void createQueue(final Shell parent) { final Shell shell = ViewUtility.createModalDialogShell(parent, "Create Queue"); Composite nameComposite = _toolkit.createComposite(shell, SWT.NONE); nameComposite.setBackground(shell.getBackground()); nameComposite.setLayoutData(new GridData(SWT.FILL...
qpid/java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/views/vhost/VHostTabControl.java
satd-removal_data_84
TODO: Created is put into the bread crumb as well, so this check fails. public void testFilterWithData() { final JobConfigHistory jch = hudson.getPlugin(JobConfigHistory.class); jch.setSaveSystemConfiguration(true); //create some config history data try { final FreeStyleProject project = createFreeStyleProject("Test1"...
src/test/java/hudson/plugins/jobConfigHistory/JobConfigHistoryRootActionIT.java
satd-removal_data_85
TODO: Remove this hard-coded value when the GadgetInfo is real. void addGadgetView(int gadgetId, GadgetInfo gadget) { // TODO: Remove this hard-coded value when the GadgetInfo is real. gadget.initialLayout = R.layout.test_gadget; // Inflate the gadget's RemoteViews GadgetHostView view = mHost.createView(this, gadgetId...
tests/GadgetHost/src/com/android/gadgethost/GadgetHostActivity.java
satd-removal_data_86
TODO remove, as long as bnd does not support the multiple entries on sourcepath @Override public void validateProject(Project model) throws Exception { // // We must have, a project and assume this is already reported // if (model == null) { return; } IJavaProject javaProject = Central.getJavaProject(model); if (javaP...
bndtools.builder/src/org/bndtools/builder/validate/ProjectPathsValidator.java
satd-removal_data_87
TODO: init all default-resources private void fillDefaults() throws CmsException { // TODO: init all default-resources // set the mimetypes addSystemProperty(C_SYSTEMPROPERTY_MIMETYPES,initMimetypes()); CmsGroup guests = createGroup(C_GROUP_GUEST, "the guest-group", C_FLAG_ENABLED, null); CmsGroup administrators = cre...
src/com/opencms/file/genericSql/CmsDbAccess.java
satd-removal_data_88
TODO rayo doesn't support this yes. @Override public void acceptWithEarlyMedia(Observer... observer) throws SignalException, MediaException { // TODO rayo doesn't support this yes. } @Override public void acceptWithEarlyMedia(Observer... observer) throws SignalException, MediaException { addObserver(observer); accept...
moho-remote/src/main/java/com/voxeo/moho/remote/impl/IncomingCallImpl.java
satd-removal_data_89
FIXME use the datacenter UUID private void send(final Datacenter datacenter, final DatacenterTasks tasks, final EventType event) { // FIXME use the datacenter UUID TarantinoRequestProducer producer = new TarantinoRequestProducer(datacenter.getName()); try { producer.openChannel(); producer.publish(task...
api/src/main/java/com/abiquo/api/services/stub/TarantinoService.java
satd-removal_data_90
TODO: fixme -- how do we use this logger? protected <T> void printOnTraversalDone(final String type, T sum) { printProgress(true, type, null); System.out.println("Traversal reduce result is " + sum); // TODO: fixme -- how do we use this logger? final long curTime = System.currentTimeMillis(); final double elapsed = (c...
java/src/org/broadinstitute/sting/gatk/TraversalEngine.java
satd-removal_data_91
TODO: need some way to not dispose chunks being edited (or do so safely) @Override public void update() { for (CacheRegion cacheRegion : regions) { cacheRegion.update(); if (cacheRegion.isDirty()) { cacheRegion.setUpToDate(); final Region3i reviewRegion = cacheRegion.getRegion().expand(new Vector3i(1, 0, 1)); CoreRegi...
src/main/java/org/terasology/logic/world/LocalChunkProvider.java
satd-removal_data_92
TODO: Cache summaries from old categories somehow. private void rebuildUI() { if (!isAdded()) { Log.w(TAG, "Cannot build the DashboardSummary UI yet as the Fragment is not added"); return; } long start = System.currentTimeMillis(); // TODO: Cache summaries from old categories somehow. List<DashboardCategory> categorie...
src/com/android/settings/dashboard/DashboardSummary.java
satd-removal_data_93
TODO exclude Class properties from consideration @SuppressWarnings("rawtypes") public void write(Object obj, DBObject dbo) { BeanWrapper bw = PropertyAccessorFactory.forBeanPropertyAccess(obj); // This will leverage the conversion service. initBeanWrapper(bw); PropertyDescriptor[] propertyDescriptors = BeanUtils .getP...
spring-data-mongodb/src/main/java/org/springframework/data/document/mongodb/SimpleMongoConverter.java
satd-removal_data_94
TODO: context mojo more appropriate? public void execute() throws MojoExecutionException { getLog().warn( "This goal is deprecated. Please use mvn archetype:generate instead" ); // TODO: prompt for missing values // TODO: configurable license // ---------------------------------------------------------------------- //...
archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/MavenArchetypeMojo.java
satd-removal_data_95
TODO: oldParentState is overlayed state from workspace. do not use! public void checkIsSelfContained() throws ItemStateException { Set affectedStates = new HashSet(); affectedStates.addAll(modifiedStates); affectedStates.addAll(deletedStates); affectedStates.addAll(addedStates); Iterator it = new IteratorChain(modifie...
contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/ChangeLog.java
satd-removal_data_96
TODO: packaging2extension mapping, now we default to JAR public void storeArtifact( GAVRequest gavRequest, InputStream is ) throws UnsupportedStorageOperationException, NoSuchResourceStoreException, RepositoryNotAvailableException, StorageException, AccessDeniedException...
nexus/nexus-proxy/src/main/java/org/sonatype/nexus/proxy/maven/ArtifactStoreHelper.java
satd-removal_data_97
FIXME: we really need to behave better than this public void destroy() { if (lock.isHeld()) { throw new GLException("Can not destroy context while it is current"); } if (tracker != null) { // Don't need to do anything for contexts that haven't been // created yet if (isCreated()) { // If we are tracking creation and d...
src/classes/com/sun/opengl/impl/GLContextImpl.java
satd-removal_data_98
check for xpath validation - old style with direct attribute TODO: remove with next major version private void parseValidationElements(Element messageElement, XmlMessageValidationContext context) { //check for validate elements, these elements can either have script, xpath or namespace validation information //script ...
modules/citrus-core/src/main/java/com/consol/citrus/config/xml/ReceiveMessageActionParser.java
satd-removal_data_99
TODO handle error. public void postMessage() { StreamScope scope = postToPanel.getPostScope(); if (scope != null) { if (scope.getScopeType().equals(ScopeType.PERSON)) { recipientType = EntityType.PERSON; } else { recipientType = EntityType.GROUP; } actionKeys.put(EntityType.GROUP, "postGroupActivityService...
web/src/main/java/org/eurekastreams/web/client/ui/common/stream/PostToStreamModel.java
satd-removal_data_100
TODO: Improve this @EventHandler public void onPlayerDropItem(PlayerDropItemEvent event) { Player player = event.getPlayer(); Mage apiMage = getMage(player); if (!(apiMage instanceof com.elmakers.mine.bukkit.magic.Mage)) return; com.elmakers.mine.bukkit.magic.Mage mage = (com.elmakers.mine.bukkit.magic.Mage)apiMage; f...
src/main/java/com/elmakers/mine/bukkit/magic/MagicController.java