<commit_before>proc write_timing_info {filename} {
    set fp [open $filename w]
    puts $fp "\["

    set nets [get_nets]
    foreach net $nets {
        if { $net == "<const0>" || $net == "<const1>" } {
            continue
        }

        if { [get_property ROUTE_STATUS [get_nets $net]] == "INTRASITE" } {
            continue
        }
        if { [get_property ROUTE_STATUS [get_nets $net]] == "NOLOADS" } {
            continue
        }

        puts $fp "{"
            puts $fp "\"net\":\"$net\","

            set route [get_property ROUTE $net]
            puts $fp "\"route\":\"$route\","<commit_msg>Add function comment to write_timing TCL.<commit_after>proc write_timing_info {filename} {
    # Writes timing data in JSON5 format to filename.
    #
    # Timing data is array of net objects, containing:
    #  - Node layout for each net
    #  - Route taking for each net
    #  - Interconnect delays from opin to each ipin
    #  - Slack and hold timing information for each ipin that has a timing
    #    path.
    set fp [open $filename w]
    puts $fp "\["

    set nets [get_nets]
    foreach net $nets {
        if { $net == "<const0>" || $net == "<const1>" } {
            continue
        }

        if { [get_property ROUTE_STATUS [get_nets $net]] == "INTRASITE" } {
            continue
        }
        if { [get_property ROUTE_STATUS [get_nets $net]] == "NOLOADS" } {
            continue
        }

        puts $fp "{"
            puts $fp "\"net\":\"$net\","

            set route [get_property ROUTE $net]
            puts $fp "\"route\":\"$route\","
{'fraction_non_alphanumeric': 0.13522012578616352, 'fraction_numerical': 0.0031446540880503146, 'mean_word_length': 1.8309608540925266, 'pattern_counts': {'":': 4, '<': 7, '<?xml version=': 0, '>': 7, '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': '1331359', 'n_tokens_mistral': 513, 'n_tokens_neox': 503, 'n_words': 148}