<commit_before>// Copyright 2015 Google Inc. All Rights Reserved.
// Author: <EMAIL> (<NAME>)

package fs

import (
	"bazil.org/fuse/fs"
	"github.com/jacobsa/gcloud/gcs"
)

type fileSystem struct {
	bucket gcs.Bucket
}

func (fs *fileSystem) Root() (fs.Node, error) {
	d := &dir{
		bucket: fs.bucket,
	}

	return d, nil
}<commit_msg>Added FS wiring code.<commit_after>// Copyright 2015 Google Inc. All Rights Reserved.
// Author: <EMAIL> (<NAME>)

package fs

import (
	"bazil.org/fuse/fs"
	"github.com/jacobsa/gcloud/gcs"
)

type fileSystem struct {
	bucket gcs.Bucket
}

func (fs *fileSystem) Root() (fs.Node, error) {
	d := &dir{
		bucket: fs.bucket,
	}

	return d, nil
}

// Create a fuse file system whose root directory is the root of the supplied
// bucket.
func NewFuseFS(bucket gcs.Bucket) (fs.FS, error) {
	return &fileSystem{bucket}, nil
}
{'fraction_non_alphanumeric': 0.14470588235294118, 'fraction_numerical': 0.009411764705882352, 'mean_word_length': 3.650273224043716, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6373808', 'n_tokens_mistral': 339, 'n_tokens_neox': 316, 'n_words': 94}