<commit_before>(defmodule assembler
  (export (unwrap_label 1)
          (strip_comments 1)
          (assemble 2)))

(defun read_file_device (file)
  (case (file:open file '(read))
    ((tuple 'ok device)
     device)))

(defun flatten_decimal_num (d_num)
  (++ "0"
      (lists:flatten
       (io_lib:format "~15.2.0B" (list d_num)))))

(defun is_symbol (symbol_or_dec)
  'false)

(defun strip_surrounding_whitespace (line)
  (binary:bin_to_list
   (binary:list_to_bin
    (re:replace (string:strip line) "\\s+$" "" (list 'global)))))

(defun process_a_command (a_cmd)
  (let ((suffix (lists:sublist a_cmd 2 (- (string:len a_cmd) 1))))
    (if (is_symbol suffix)
      "not processing symbols yet"
      (let (((tuple i _) (string:to_integer suffix)))
        (flatten_decimal_num i)))))

(defun lookup_comp (comp)
  (mref (map
         "0"   "0101010"<commit_msg>Name change<commit_after>(defmodule assembler
  (export (unwrap_label 1)
          (strip_comments 1)
          (assemble 2)))

(defun read_file_device (file)
  (case (file:open file '(read))
    ((tuple 'ok device)
     device)))

(defun int_to_padded_binary (d_num)
  (++ "0"
      (lists:flatten
       (io_lib:format "~15.2.0B" (list d_num)))))

(defun is_symbol (symbol_or_dec)
  'false)

(defun strip_surrounding_whitespace (line)
  (binary:bin_to_list
   (binary:list_to_bin
    (re:replace (string:strip line) "\\s+$" "" (list 'global)))))

(defun process_a_command (a_cmd)
  (let ((suffix (lists:sublist a_cmd 2 (- (string:len a_cmd) 1))))
    (if (is_symbol suffix)
      "not processing symbols yet"
      (let (((tuple i _) (string:to_integer suffix)))
        (int_to_padded_binary i)))))

(defun lookup_comp (comp)
  (mref (map
         "0"   "0101010"
{'fraction_non_alphanumeric': 0.15242494226327943, 'fraction_numerical': 0.020785219399538105, 'mean_word_length': 3.5846560846560847, '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': '5158407', 'n_tokens_mistral': 688, 'n_tokens_neox': 659, 'n_words': 152}