<commit_before>import collections
import os, os.path
import stat
import wx

import fileutil
from async import async_call, coroutine
from dirtree_constants import *
from menu import Menu, MenuItem, MenuSeparator
from util import iter_tree_children

file_context_menu = Menu("", [
    MenuItem(ID_NEW_FOLDER, "&New Folder"),
    MenuItem(ID_OPEN_FOLDER, "&Open Containing Folder"),
    MenuSeparator,
    MenuItem(ID_OPEN, "&Open"),
    MenuItem(ID_EDIT, "&Edit with Devo"),
    MenuItem(ID_RENAME, "&Rename"),
    MenuItem(ID_DELETE, "&Delete"),
    MenuSeparator,
    MenuItem(ID_EXPAND_ALL, "E&xpand All"),
    MenuItem(ID_COLLAPSE_ALL, "&Collapse All"),
])

dir_context_menu = Menu("", [
    MenuItem(ID_NEW_FOLDER, "&New Folder"),
    MenuSeparator,
    MenuItem(ID_OPEN, "&Open"),
    MenuItem(ID_RENAME, "&Rename"),
    MenuItem(ID_DELETE, "&Delete"),
    MenuSeparator,
    MenuItem(ID_EXPAND_ALL, "E&xpand All"),
    MenuItem(ID_COLLAPSE_ALL, "&Collapse All"),    <commit_msg>Added "Open Containing Folder" to folder context menu too.<commit_after>import collections
import os, os.path
import stat
import wx

import fileutil
from async import async_call, coroutine
from dirtree_constants import *
from menu import Menu, MenuItem, MenuSeparator
from util import iter_tree_children

file_context_menu = Menu("", [
    MenuItem(ID_NEW_FOLDER, "&New Folder"),
    MenuItem(ID_OPEN_FOLDER, "&Open Containing Folder"),
    MenuSeparator,
    MenuItem(ID_OPEN, "&Open"),
    MenuItem(ID_EDIT, "&Edit with Devo"),
    MenuItem(ID_RENAME, "&Rename"),
    MenuItem(ID_DELETE, "&Delete"),
    MenuSeparator,
    MenuItem(ID_EXPAND_ALL, "E&xpand All"),
    MenuItem(ID_COLLAPSE_ALL, "&Collapse All"),
])

dir_context_menu = Menu("", [
    MenuItem(ID_NEW_FOLDER, "&New Folder"),
    MenuItem(ID_OPEN_FOLDER, "&Open Containing Folder"),
    MenuSeparator,
    MenuItem(ID_OPEN, "&Open"),
    MenuItem(ID_RENAME, "&Rename"),
    MenuItem(ID_DELETE, "&Delete"),
    MenuSeparator,
    MenuItem(ID_EXPAND_ALL, "E&xpand All"),
    MenuItem(ID_COLLAPSE_ALL, "&Collapse All"),    
{'fraction_non_alphanumeric': 0.12572533849129594, 'fraction_numerical': 0.0, 'mean_word_length': 5.121301775147929, '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': '2705600', 'n_tokens_mistral': 730, 'n_tokens_neox': 714, 'n_words': 162}