<commit_before>import sublime, sublime_plugin
import subprocess, os
import threading
from queue import Queue

class CodeSearchIndexCommand(sublime_plugin.WindowCommand):
	def __init__(self, window):
		sublime_plugin.WindowCommand.__init__(self, window)
		self.path_cindex = None
		self.indexing = False

	def run(self):
		data = self.window.project_data()
		self.folders = []
		for folder in data["folders"]:
			self.folders.append(os.expanduser(folder["path"]))

		if "code_search" in data:
			if "csearchindex" in data["code_search"]:
				self.csearchindex = os.path.expanduser(data["code_search"]["csearchindex"])<commit_msg>Fix expanduser to use os.path.expanduser<commit_after>import sublime, sublime_plugin
import subprocess, os
import threading
from queue import Queue

class CodeSearchIndexCommand(sublime_plugin.WindowCommand):
	def __init__(self, window):
		sublime_plugin.WindowCommand.__init__(self, window)
		self.path_cindex = None
		self.indexing = False

	def run(self):
		data = self.window.project_data()
		self.folders = []
		for folder in data["folders"]:
			self.folders.append(os.path.expanduser(folder["path"]))

		if "code_search" in data:
			if "csearchindex" in data["code_search"]:
				self.csearchindex = os.path.expanduser(data["code_search"]["csearchindex"])
{'fraction_non_alphanumeric': 0.1172360248447205, 'fraction_numerical': 0.0, 'mean_word_length': 5.78421052631579, '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': '6127806', 'n_tokens_mistral': 455, 'n_tokens_neox': 422, 'n_words': 89}