<commit_before>import { Syntax } from "../interfaces/Syntax";
import { useApiData } from "./useApiData";

export const useSyntaxes = () =>
  (useApiData<Syntax[]>("/api/directory/syntaxes") || []).sort((a: Syntax, b: Syntax) =>
    a.name.localeCompare(b.name)
  );<commit_msg>fix(web): 🐛🎨 prettier --write web\src\hooks\useSyntaxes.tsx<commit_after>import { Syntax } from "../interfaces/Syntax";
import { useApiData } from "./useApiData";

export const useSyntaxes = () =>
  (
    useApiData<Syntax[]>("/api/directory/syntaxes") || []
  ).sort((a: Syntax, b: Syntax) => a.name.localeCompare(b.name));
{'fraction_non_alphanumeric': 0.2079866888519135, 'fraction_numerical': 0.0, 'mean_word_length': 4.574074074074074, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '641531', 'n_tokens_mistral': 217, 'n_tokens_neox': 212, 'n_words': 38}