<commit_before># -*- coding: utf-8 -*-
"""
TODO fix the problem for 0 sphere, cyl, axis
"""
import re, os
import paramiko
import logging

_logger = logging.getLogger( __name__ )

# log path to file with datas
# on the remote host
# is define in listener_rt5100 
# outputfile
# log_path = '/home/lof/rt5100rs232/tmp.log'
log_path = '/home/lof/tmp.log'
# # Connect to remote host to fetch rt5100 datas
ssh_client = paramiko.SSHClient()
# # Autoaccept unknown inbound host keys
# # do this if you trust the remote machine
ssh_client.set_missing_host_key_policy( paramiko.AutoAddPolicy() )

try:
    ssh_client.connect( '192.168.1.209',
                                username = 'lof',
                                password = '<PASSWORD>' )
except paramiko.SSHException:
    print "connection failed"
    quit()
sftp_client = ssh_client.open_sftp()



cuttingSCA = [0, 2, 8, 14, 17]
cuttingADD = [0, 2, 8]
cuttingVA = [0, 2, 7]

# dict use by merge and substitute method.
# keys ('a','A','f','F','n','N') are the first character that code the line of the
# output file from rt5100

# RT datas after a line @RT before an other @:
# AR datas (autorefractometer datas)
#     O objective SCA
#     V corrected visual acuity
#     U corrected visual acuity extended format

# After à @RM before an other @
# Unaided visual acuity datas
#    W unaided visual acuity
#    M unaided visual acuity extended format<commit_msg>update for connecting to raspberry<commit_after># -*- coding: utf-8 -*-
"""
TODO fix the problem for 0 sphere, cyl, axis
"""
import re, os
import paramiko
import logging

_logger = logging.getLogger( __name__ )

# log path to file with datas
# on the remote host
# is define in listener_rt5100 
# outputfile
# log_path = '/home/lof/rt5100rs232/tmp.log'
log_path = '/home/listener/rt5100rs232/tmp.log'
# # Connect to remote host to fetch rt5100 datas
ssh_client = paramiko.SSHClient()
# # Autoaccept unknown inbound host keys
# # do this if you trust the remote machine
ssh_client.set_missing_host_key_policy( paramiko.AutoAddPolicy() )

try:
    ssh_client.connect( '192.168.1.226',
                                username = 'listener',
                                password = '<PASSWORD>' )
except paramiko.SSHException:
    print "connection failed"
    quit()
sftp_client = ssh_client.open_sftp()



cuttingSCA = [0, 2, 8, 14, 17]
cuttingADD = [0, 2, 8]
cuttingVA = [0, 2, 7]

# dict use by merge and substitute method.
# keys ('a','A','f','F','n','N') are the first character that code the line of the
# output file from rt5100

# RT datas after a line @RT before an other @:
# AR datas (autorefractometer datas)
#     O objective SCA
#     V corrected visual acuity
#     U corrected visual acuity extended format

# After à @RM before an other @
# Unaided visual acuity datas
#    W unaided visual acuity
#    M unaided visual acuity extended format
{'fraction_non_alphanumeric': 0.10191304347826087, 'fraction_numerical': 0.03304347826086956, 'mean_word_length': 3.2670623145400595, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5084009', 'n_tokens_mistral': 1001, 'n_tokens_neox': 895, 'n_words': 331}