<commit_before>// Copyright 2010 The GoGo Authors. All rights reserved.
// Use of this source code is governed by the MIT
// license that can be found in the LICENSE file.


package main

import "./libgogo/_obj/libgogo"

func GenerateIfStart(item *libgogo.Item, ed ExpressionDescriptor) {
    var labelString string;
    var jmp string;
    labelString = GenerateIfLabel(ed.CurFile, ed.CurLine, 0, "END");
    jmp = GetJump(item.C, 1);
    PrintJump(jmp, labelString);
    labelString = GenerateIfLabel(ed.CurFile, ed.CurLine, ed.ExpressionDepth-1, "END");
    PrintLabel(labelString);<commit_msg>gen-if: Fix wrong cond. jump<commit_after>// Copyright 2010 The GoGo Authors. All rights reserved.
// Use of this source code is governed by the MIT
// license that can be found in the LICENSE file.


package main

import "./libgogo/_obj/libgogo"

func GenerateIfStart(item *libgogo.Item, ed ExpressionDescriptor) {
    var labelString string;
    var jmp string;
    // should not be needed
    //labelString = GenerateIfLabel(ed.CurFile, ed.CurLine, 0, "END");
    //jmp = GetJump(item.C, 1);
    //PrintJump(jmp, labelString);
    labelString = GenerateIfLabel(ed.CurFile, ed.CurLine, 0, "OK");
    jmp = GetJump(item.C, 0);
    PrintJump(jmp, labelString);
    labelString = GenerateIfLabel(ed.CurFile, ed.CurLine, ed.ExpressionDepth-1, "END");
    PrintLabel(labelString);
{'fraction_non_alphanumeric': 0.11499272197962154, 'fraction_numerical': 0.011644832605531296, 'mean_word_length': 3.824561403508772, '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': '2586372', 'n_tokens_mistral': 454, 'n_tokens_neox': 437, 'n_words': 135}