<commit_before>extern mod euler;

use euler::extnum::{ one, from_uint };
use euler::bigint::{ BigInt };

fn main() {
    let mut i = one::<BigInt>();
    for uint::range(0, 1000) |_n| {
        i = i.mul(from_uint(2));
    }
    let sum = do str::byte_slice(i.to_str()) |buf| {
        buf.map(|c| *c - ('0' as u8)).foldl(0, |s, e| s + (e as uint))
    };
    io::println(fmt!("%u", sum));
}
<commit_msg>use * operator instead of mul method<commit_after>extern mod euler;

use euler::extnum::{ one, from_uint };
use euler::bigint::{ BigInt };

fn main() {
    let mut i = one::<BigInt>();
    for uint::range(0, 1000) |_n| {
        i = i * from_uint(2);
    }
    let sum = do str::byte_slice(i.to_str()) |buf| {
        buf.map(|c| *c - ('0' as u8)).foldl(0, |s, e| s + (e as uint))
    };
    io::println(fmt!("%u", sum));
}

{'fraction_non_alphanumeric': 0.22342995169082125, 'fraction_numerical': 0.021739130434782608, 'mean_word_length': 2.985576923076923, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4472191', 'n_tokens_mistral': 345, 'n_tokens_neox': 340, 'n_words': 86}