<commit_before>#!/bin/sh

title="$1"
localeditor="$2"

# Example: "2016-12-30-example_name"
postname="$(date +'%Y-%m-%d')-${title}"

# Create image dir for current post
if [ ! -d "./images/posts/${postname}" ] ; then
	mkdir "./images/posts/${postname}"
fi

# Open editor
$localeditor "./posts/${postname}.md"<commit_msg>Update create-post.sh<commit_after>#!/bin/bash

title="$1"
postname="$(date +'%Y-%m-%d')-${title}"  # Example: "2016-12-30-example_name"

# Create image dir for current post
if [ ! -d "./images/posts/${postname}" ] ; then
	mkdir "./images/posts/${postname}"
fi

# Open editor
touch "./posts/${postname}.md"
{'fraction_non_alphanumeric': 0.23482428115015974, 'fraction_numerical': 0.03035143769968051, 'mean_word_length': 4.452173913043478, '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': '1623168', 'n_tokens_mistral': 244, 'n_tokens_neox': 232, 'n_words': 47}