<commit_before>(ns status-im.contacts.validations
  (:require [cljs.spec.alpha :as s]
            [clojure.string :as str]
            [status-im.data-store.contacts :as contacts]))


(defn is-address? [s]
  (.isAddress web3.prototype s))

(defn contact-can-be-added? [identity]
  (if (contacts/exists? identity)<commit_msg>fix #1458<commit_after>(ns status-im.contacts.validations
  (:require [cljs.spec.alpha :as s]
            [clojure.string :as str]
            [status-im.data-store.contacts :as contacts]
            [status-im.js-dependencies :as dependencies]))

(defn is-address? [s]
  (.isAddress dependencies/Web3.prototype s))

(defn contact-can-be-added? [identity]
  (if (contacts/exists? identity)
{'fraction_non_alphanumeric': 0.14866760168302945, 'fraction_numerical': 0.008415147265077139, 'mean_word_length': 3.3012048192771086, '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': '5311382', 'n_tokens_mistral': 254, 'n_tokens_neox': 244, 'n_words': 51}