<commit_before>import Component from '@glimmer/component'
import { task, timeout } from 'ember-concurrency'
import type { Task } from 'ember-concurrency'

// Define a Type task that takes a single number argument and returns a string
type MyTaskType = Task<string, [ms: number]>;

interface Args {
  fooTask: MyTaskType;
}

export default class extends Component<Args> {
  slowlyComputeStringLength: MyTaskType = task(this, async (ms: number) => {<commit_msg>Fix ts build errors (#475)<commit_after>import Component from '@glimmer/component';
import { task, timeout } from 'ember-concurrency';
import type { Task } from 'ember-concurrency';

// Define a Type task that takes a single number argument and returns a string
type MyTaskType = Task<string, [number]>;

interface Args {
  fooTask: MyTaskType;
}

export default class extends Component<Args> {
  slowlyComputeStringLength: MyTaskType = task(this, async (ms: number) => {
{'fraction_non_alphanumeric': 0.10215053763440861, 'fraction_numerical': 0.0032258064516129032, 'mean_word_length': 5.376712328767123, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '657765', 'n_tokens_mistral': 262, 'n_tokens_neox': 265, 'n_words': 99}