<commit_before>(ns block-chain.utils
  (:require [cheshire.core :as json]
            [clojure.math.numeric-tower :as math]
            [clojure.java.io :as io]))

(defn cat-keys
  "take a map and a vector of keys and create a concatenated
   string of the value for each key"
  [keys m]
  (apply str (map (partial get m) keys)))<commit_msg>add sha256<commit_after>(ns block-chain.utils
  (:require [cheshire.core :as json]
            [clojure.math.numeric-tower :as math]
            [pandect.algo.sha256 :as pandect]
            [clojure.java.io :as io]))

(def sha256 pandect/sha256)

(defn cat-keys
  "take a map and a vector of keys and create a concatenated
   string of the value for each key"
  [keys m]
  (apply str (map (partial get m) keys)))
{'fraction_non_alphanumeric': 0.11140583554376658, 'fraction_numerical': 0.015915119363395226, 'mean_word_length': 2.8520408163265305, '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': '5254591', 'n_tokens_mistral': 268, 'n_tokens_neox': 255, 'n_words': 90}