<commit_before>// Copyright 2015 tsuru authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Package repository contains types and function for git repository
// interaction.
package repository

import "github.com/tsuru/config"

const defaultManager = "gandalf"

var managers map[string]RepositoryManager

// Key represents a public key, that is added to a repository to allow access
// to it.
type Key struct {
	Name string
	Body string
}

// Repository represents a repository in the manager.
type Repository struct {
	Name         string
	ReadOnlyURL  string
	ReadWriteURL string
}
<commit_msg>repository: introduce some common errors variables<commit_after>// Copyright 2015 tsuru authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Package repository contains types and function for git repository
// interaction.
package repository

import (
	"errors"

	"github.com/tsuru/config"
)

const defaultManager = "gandalf"

var managers map[string]RepositoryManager

var (
	ErrKeyNotFound        = errors.New("key not found")
	ErrRepositoryNotFound = errors.New("repository not found")
	ErrUserNotFound       = errors.New("user not found")
)

// Key represents a public key, that is added to a repository to allow access
// to it.
type Key struct {
	Name string
	Body string
}

// Repository represents a repository in the manager.
type Repository struct {
	Name         string
	ReadOnlyURL  string
	ReadWriteURL string
}

{'fraction_non_alphanumeric': 0.06725329981143935, 'fraction_numerical': 0.00502828409805154, 'mean_word_length': 3.710059171597633, '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': '1172086', 'n_tokens_mistral': 426, 'n_tokens_neox': 418, 'n_words': 191}