<commit_before>#! /usr/bin/env nix-shell
#! nix-shell --quiet -i bash -p bash gnused

set -u
set -e
set -o pipefail

nix_conf=/etc/nix/nix.conf
fracta_url=https://hydra.fractalide.com/
fracta_key="hydra.fractalide.com-1:EnGZBrRHPabgRET+umo2e+wNrw+c4QdbsxsnV5H7zs0="

nixos_url=https://cache.nixos.org/
nixos_key="<KEY>

mkdir -p $(dirname $nix_conf)
touch $nix_conf
{
  grep -vE 'substituters|public-keys' $nix_conf || true
  cat <<EOF
substituters = $nixos_url $fracta_url
trusted-substituters = $nixos_url $fracta_url
trusted-public-keys = $nixos_key $fracta_key
EOF
} > ${nix_conf}.new
mv ${nix_conf}.new $nix_conf<commit_msg>Problem: packages on fracta hydra are not signed<commit_after>#! /usr/bin/env nix-shell
#! nix-shell --quiet -i bash -p bash gnused

set -u
set -e
set -o pipefail

nix_conf=/etc/nix/nix.conf
fracta_url=https://hydra.fractalide.com/
fracta_key="hydra.fractalide.com-1:EnGZBrRHPabgRET+umo2e+wNrw+c4QdbsxsnV5H7zs0="

nixos_url=https://cache.nixos.org/
nixos_key="<KEY>

mkdir -p $(dirname $nix_conf)
touch $nix_conf
{
  grep -vE 'substituters|public-keys|require-sigs' $nix_conf || true
  cat <<EOF
substituters = $nixos_url $fracta_url
trusted-substituters = $nixos_url $fracta_url
trusted-public-keys = $nixos_key $fracta_key
require-sigs = false
EOF
} > ${nix_conf}.new
mv ${nix_conf}.new $nix_conf
{'fraction_non_alphanumeric': 0.1439336850037679, 'fraction_numerical': 0.00904295403165034, 'mean_word_length': 5.176744186046512, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '6335031', 'n_tokens_mistral': 646, 'n_tokens_neox': 593, 'n_words': 106}