<commit_before>package main

import (
	"context"
	"errors"
	"fmt"
	"os"
	"text/tabwriter"

	"github.com/sourcepods/sourcepods/cmd"
	"github.com/sourcepods/sourcepods/pkg/storage"
	"github.com/urfave/cli"
)

func treeAction(c *cli.Context) error {
	args := c.Args()
	if len(args) != 3 {
		return errors.New("need exactly 3 arguments: repo_hash rev path")
	}
	repoHash, rev, path := args[0], args[1], args[2]

	s, err := storage.NewLocalStorage(c.GlobalString(cmd.FlagRoot))
	if err != nil {
		return err
	}

	r, err := s.GetRepository(context.Background(), repoHash)
	if err != nil {
		return err
	}

	entries, err := r.Tree(context.Background(), rev, path)<commit_msg>truly rename things :rolling_eyes:<commit_after>package main

import (
	"context"
	"errors"
	"fmt"
	"os"
	"text/tabwriter"

	"github.com/sourcepods/sourcepods/cmd"
	"github.com/sourcepods/sourcepods/pkg/storage"
	"github.com/urfave/cli"
)

func treeAction(c *cli.Context) error {
	args := c.Args()
	if len(args) != 3 {
		return errors.New("need exactly 3 arguments: id rev path")
	}
	id, rev, path := args[0], args[1], args[2]

	s, err := storage.NewLocalStorage(c.GlobalString(cmd.FlagRoot))
	if err != nil {
		return err
	}

	r, err := s.GetRepository(context.Background(), id)
	if err != nil {
		return err
	}

	entries, err := r.Tree(context.Background(), rev, path)
{'fraction_non_alphanumeric': 0.16143497757847533, 'fraction_numerical': 0.007473841554559043, 'mean_word_length': 4.23046875, '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': '1502153', 'n_tokens_mistral': 531, 'n_tokens_neox': 510, 'n_words': 114}