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

from moviepy.editor import *
from techmeme.config import TechnicalMemeConfig
source_clip = VideoFileClip("tests/WANO.mp4")
timestamps = [0] + TechnicalMemeConfig("tests/sample_config.txt").timestamps + [source_clip.end]
subclips = [source_clip.subclip(*timestamps[i:i+2]) for i in range(len(timestamps) - 1)]
for exponent, subclip in enumerate(subclips):
	subclips[exponent] = vfx.speedx(subclip, 1.05**exponent)

for number, subclip in enumerate(subclips):
	subclip = subclip.without_audio()
	subclip = subclip.resize(480,360)
	subclip.write_videofile('tests/{}.mp4'.format(number))

#memed = CompositeVideoClip(subclips)
#memed.without_audio().resize(480,360).write_videofile('tests/WANO but every time they say "one" it gets 5% faster.mp4')<commit_msg>some brief changes<commit_after>#!/usr/bin/env python3

from moviepy.editor import *
from techmeme.config import TechnicalMemeConfig
source_clip = VideoFileClip("tests/WANO.mp4")
timestamps = [0] + TechnicalMemeConfig("tests/sample_config.txt").timestamps + [source_clip.end]
subclips = [source_clip.subclip(*timestamps[i:i+2]) for i in range(len(timestamps) - 1)]
	
for exponent, subclip in enumerate(subclips):
	vfx.speedx(subclip, 1.05**exponent).write_videofile("tests/{}.mp4".format(exponent))


# memed = CompositeVideoClip(subclips)
# memed.without_audio().write_videofile('tests/WANO but every time they say "one" it gets 5% faster.mp4')
{'fraction_non_alphanumeric': 0.13898540653231412, 'fraction_numerical': 0.0236275191104934, 'mean_word_length': 7.044692737430168, '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': '5142980', 'n_tokens_mistral': 541, 'n_tokens_neox': 517, 'n_words': 96}