<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import struct, os
count_one, count_zero = 0,0
filename = 'example.txt'
for current_byte in list(open(filename,'rb').read()):
    count_one += bin(struct.unpack("B",current_byte)[0]).count('1')
count_zero = os.path.getsize(filename) * 8 - count_one
print 'One: ' + str(count_one) + ' times\nZero: ' + str(count_zero) + ' times\nOne/Zero: ' + str(float(count_one)/float(count_zero))<commit_msg>nothing.<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import struct, os
filename, count_one, count_zero = 'example.txt', 0, 0
for current_byte in list(open(filename,'rb').read()):
    count_one += bin(struct.unpack("B",current_byte)[0]).count('1')
count_zero = os.path.getsize(filename) * 8 - count_one
print 'One: ' + str(count_one) + ' times\nZero: ' + str(count_zero) + ' times\nOne/Zero: ' + str(float(count_one)/float(count_zero))
{'fraction_non_alphanumeric': 0.1973392461197339, 'fraction_numerical': 0.013303769401330377, 'mean_word_length': 5.359154929577465, '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': '6459275', 'n_tokens_mistral': 338, 'n_tokens_neox': 329, 'n_words': 58}