<commit_before>module Euler where

import Data.Digits
import Data.List

pandigitals :: [[Int]]
pandigitals = filter ((/= 0).head) (permutations [1, 2, 3, 4, 5, 6, 7, 8, 9, 0])

sublist :: Int -> Int -> [a] -> [a]
sublist idx len = take len . drop idx

isSubstringDivisible :: [Int] -> Bool<commit_msg>Use [0..9] instead of [1, 2, ... , 9, 0]<commit_after>module Euler where

import Data.Digits
import Data.List

pandigitals :: [[Int]]
pandigitals = filter ((/= 0).head) (permutations [0..9])

sublist :: Int -> Int -> [a] -> [a]
sublist idx len = take len . drop idx

isSubstringDivisible :: [Int] -> Bool
{'fraction_non_alphanumeric': 0.18181818181818182, 'fraction_numerical': 0.03305785123966942, 'mean_word_length': 3.6615384615384614, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '1669347', 'n_tokens_mistral': 244, 'n_tokens_neox': 229, 'n_words': 73}