<commit_before>import * as Expressions from "../../2_statements/expressions";
import {StatementNode} from "../../nodes";
import {CurrentScope} from "../_current_scope";
import {TypedIdentifier} from "../../types/_typed_identifier";
import {CharacterType} from "../../types/basic";

export class SelectionScreen {
  public runSyntax(node: StatementNode, _scope: CurrentScope, filename: string): TypedIdentifier | undefined {

    const field = node.findFirstExpression(Expressions.InlineField);
    if (field === undefined) {
      return undefined;
    }

    const name = field.getFirstToken();
    return new TypedIdentifier(name, filename, new CharacterType(70));
  }
}<commit_msg>Adjust length of generated screen fields (#982)<commit_after>import * as Expressions from "../../2_statements/expressions";
import {StatementNode} from "../../nodes";
import {CurrentScope} from "../_current_scope";
import {TypedIdentifier} from "../../types/_typed_identifier";
import {CharacterType} from "../../types/basic";

export class SelectionScreen {
  public runSyntax(node: StatementNode, _scope: CurrentScope, filename: string): TypedIdentifier | undefined {

    const field = node.findFirstExpression(Expressions.InlineField);
    if (field === undefined) {
      return undefined;
    }

    const name = field.getFirstToken();
    return new TypedIdentifier(name, filename, new CharacterType(83));
  }
}

{'fraction_non_alphanumeric': 0.13898788310762653, 'fraction_numerical': 0.006414825374198147, 'mean_word_length': 4.4, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3226620', 'n_tokens_mistral': 369, 'n_tokens_neox': 368, 'n_words': 106}