<commit_before>/*@internal*/
namespace ts {
    export function transformESNext(context: TransformationContext) {
        return chainBundle(transformSourceFile);

        function transformSourceFile(node: SourceFile) {
            if (node.isDeclarationFile) {
                return node;
            }

            return visitEachChild(node, visitor, context);
        }

        function visitor(node: Node): VisitResult<Node> {
            if ((node.transformFlags & TransformFlags.ContainsESNext) === 0) {
                return node;
            }
            switch (node.kind) {
                case SyntaxKind.BinaryExpression:
                    const binaryExpression = <BinaryExpression>node;
                    if (isLogicalAssignmentOperator(binaryExpression.operatorToken.kind)) {
                        return transformLogicalAssignmentOperators(binaryExpression);
                    }
                    // falls through
                default:
                    return visitEachChild(node, visitor, context);
            }
        }

        function transformLogicalAssignmentOperators(binaryExpression: BinaryExpression): VisitResult<Node> {
            const operator = binaryExpression.operatorToken;
            if (isCompoundAssignment(operator.kind) && isLogicalAssignmentOperator(operator.kind)) {
                const nonAssignmentOperator = getNonAssignmentOperatorForCompoundAssignment(operator.kind);
                const left = visitNode(binaryExpression.left, visitor, isExpression);
                const right = visitNode(binaryExpression.right, visitor, isExpression);

                return createBinary(
                    left,
                    nonAssignmentOperator,
                    createParen(
                        createAssignment(
                            left,
                            right
                        )
                    )
                )

            }
            Debug.fail("unexpected operator: " + operator.kind);
        }
    }
}
<commit_msg>Add mission semi<commit_after>/*@internal*/
namespace ts {
    export function transformESNext(context: TransformationContext) {
        return chainBundle(transformSourceFile);

        function transformSourceFile(node: SourceFile) {
            if (node.isDeclarationFile) {
                return node;
            }

            return visitEachChild(node, visitor, context);
        }

        function visitor(node: Node): VisitResult<Node> {
            if ((node.transformFlags & TransformFlags.ContainsESNext) === 0) {
                return node;
            }
            switch (node.kind) {
                case SyntaxKind.BinaryExpression:
                    const binaryExpression = <BinaryExpression>node;
                    if (isLogicalAssignmentOperator(binaryExpression.operatorToken.kind)) {
                        return transformLogicalAssignmentOperators(binaryExpression);
                    }
                    // falls through
                default:
                    return visitEachChild(node, visitor, context);
            }
        }

        function transformLogicalAssignmentOperators(binaryExpression: BinaryExpression): VisitResult<Node> {
            const operator = binaryExpression.operatorToken;
            if (isCompoundAssignment(operator.kind) && isLogicalAssignmentOperator(operator.kind)) {
                const nonAssignmentOperator = getNonAssignmentOperatorForCompoundAssignment(operator.kind);
                const left = visitNode(binaryExpression.left, visitor, isExpression);
                const right = visitNode(binaryExpression.right, visitor, isExpression);

                return createBinary(
                    left,
                    nonAssignmentOperator,
                    createParen(
                        createAssignment(
                            left,
                            right
                        )
                    )
                );

            }
            Debug.fail("unexpected operator: " + operator.kind);
        }
    }
}

{'fraction_non_alphanumeric': 0.06938483547925609, 'fraction_numerical': 0.0004768717215069146, 'mean_word_length': 1.489614243323442, 'pattern_counts': {'":': 0, '<': 9, '<?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': '3086725', 'n_tokens_mistral': 905, 'n_tokens_neox': 853, 'n_words': 166}