<commit_before>#!/usr/bin/env bash

set -euo pipefail

set_elisp()
{
	local file
	local buffer_filename
	local maybe_fill_72=""
	local maybe_goto_position=""
	local maybe_open_new_tab=""
	local position
	local line
	local column

	for arg; do
		if [[ "${arg}" == +* ]]; then
			position="${arg}"
		else
			file="${arg}"
        fi
	done

	case "${position:-}" in
		+*:*)
			line="${position#+}"<commit_msg>emacsclient-tty.sh: support handling filenames that start with a "+"<commit_after>#!/usr/bin/env bash

set -euo pipefail

set_elisp()
{
	local file
	local buffer_filename
	local maybe_fill_72=""
	local maybe_goto_position=""
	local maybe_open_new_tab=""
	local position
	local line
	local column

	for arg; do
		if [[ "${arg}" == +* ]] && (( $# > 1 )); then
			position="${arg}"
		else
			file="${arg}"
		fi
		shift
	done

	case "${position:-}" in
		+*:*)
			line="${position#+}"
{'fraction_non_alphanumeric': 0.17062146892655367, 'fraction_numerical': 0.005649717514124294, 'mean_word_length': 3.8152173913043477, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1276958', 'n_tokens_mistral': 351, 'n_tokens_neox': 319, 'n_words': 83}