<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""rna_pairs2SimRNArestrs.py - convert pairs to SimRNA restrs
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Example::

    rna_pairs2SimRNArestrs.py rp06_pairs_delta.txt -v
    # of pairs: 42
    SLOPE A/2/MB A/172/MB 0 6 1
    SLOPE A/2/MB A/172/MB 0 7 -1
    SLOPE A/3/MB A/169/MB 0 6 1
    SLOPE A/3/MB A/169/MB 0 7 -1
    SLOPE A/12/MB A/32/MB 0 6 1

"""
from __future__ import print_function
import argparse


def get_parser():
    parser = argparse.ArgumentParser(
        description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)

    parser.add_argument('pairs', help="a file with [[2, 172], [3, 169], [12, 32], [13, 31]]")
    parser.add_argument("--offset", help="can be -10", default=0, type=int)
    parser.add_argument("--weight", help="", default=1, type=float)<commit_msg>rna_pairs2SimRNArestrs.py:change default weight to 3<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""rna_pairs2SimRNArestrs.py - convert pairs to SimRNA restrs
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Example::

    rna_pairs2SimRNArestrs.py rp06_pairs_delta.txt -v
    # of pairs: 42
    SLOPE A/2/MB A/172/MB 0 6 1
    SLOPE A/2/MB A/172/MB 0 7 -1
    SLOPE A/3/MB A/169/MB 0 6 1
    SLOPE A/3/MB A/169/MB 0 7 -1
    SLOPE A/12/MB A/32/MB 0 6 1

"""
from __future__ import print_function
import argparse


def get_parser():
    parser = argparse.ArgumentParser(
        description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)

    parser.add_argument('pairs', help="a file with [[2, 172], [3, 169], [12, 32], [13, 31]]")
    parser.add_argument("--offset", help="can be -10", default=0, type=int)
    parser.add_argument("--weight", help="", default=3, type=float)
{'fraction_non_alphanumeric': 0.18696883852691218, 'fraction_numerical': 0.07138810198300283, 'mean_word_length': 3.551546391752577, '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': '6611006', 'n_tokens_mistral': 759, 'n_tokens_neox': 646, 'n_words': 165}