<commit_before>import os
import socket
import getpass


infile = open('/home/SOROOT/dir.txt','a')

comando = 'hostname'
s = os.popen(comando).read()


print (s,' Ingrese su contrasena')
passw = getpass.getpass()

infile.write(socket.gethostbyname(socket.gethostname()))
infile.write(" ")
infile.write(s)
infile.write(" ")
infile.write(passw)

infile.close()

<commit_msg>fixed node<commit_after>#!/usr/bin/env python   

import os
import socket
import getpass
import sys

#get the device name
deviceName = str(sys.argv[1])
#get the IP
nodeIP = str(sys.argv[2])
#subprocess.call(["./netdummy.sh",deviceName,serverIP])
#Ingresar host
host = str(sys.argv[3])
#Ingresar password

print 'Iniciando el nodo'
#check if node file exists if not create it.
if not os.path.isfile('/home/SOROOT/nodo'+'.info') :
     open(('/home/SOROOT/nodo'+host+'.info'),'w').close()
     print 'node file didnt existed, creating empty file'
infile = open('/home/SOROOT/nodo'+host+'.info','a')
print (host,' Ingrese su contrasena')
passw = getpass.getpass()
infile.write(nodeIP)
infile.write(" ")
infile.write(host)
infile.write(" ")
infile.write(passw)
infile.write('\n')

infile.close()


{'fraction_non_alphanumeric': 0.17096219931271478, 'fraction_numerical': 0.002577319587628866, 'mean_word_length': 5.263440860215054, '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': '3028405', 'n_tokens_mistral': 445, 'n_tokens_neox': 445, 'n_words': 95}