<commit_before>import { IRepository, RetrieveOptions } from "../data/IRepository";
import { AbstractRepository } from "./AbstractRepository";
import { IRepositoryEntity, RepositoryEntity } from "../entities/RepositoryEntity";
import { RepositoryDocument } from "../entities/documents/RepositoryDocument";
import { RepositorySchema } from "./schemas/RepositorySchema";
import { SinglePullRequestFilter } from "./filters/PullRequestFilter";
import * as mongoose from "mongoose";

/**
 * IRepositoryRepository interface.
 * Defines custom CRUD operations for a Repository.
 * 
 * @author <NAME> <<EMAIL>io[at]mjuez.<EMAIL>>
 */
export interface IRepositoryRepository extends IRepository<IRepositoryEntity, RepositoryDocument> {

    /**
     * Retrieves a repository list given its GitHub owner id.
     * @param id    Owner GitHub id.
     * @returns a list of repository entities.
     */
    findByOwnerId(id: number, page?: number, startingFrom?: number): Promise<IRepositoryEntity[]>;

    /**<commit_msg>removed unused import.<commit_after>import { IRepository, RetrieveOptions } from "../data/IRepository";
import { AbstractRepository } from "./AbstractRepository";
import { IRepositoryEntity, RepositoryEntity } from "../entities/RepositoryEntity";
import { RepositoryDocument } from "../entities/documents/RepositoryDocument";
import { RepositorySchema } from "./schemas/RepositorySchema";
import * as mongoose from "mongoose";

/**
 * IRepositoryRepository interface.
 * Defines custom CRUD operations for a Repository.
 * 
 * @author <NAME> <<EMAIL>io[at]m<EMAIL>>
 */
export interface IRepositoryRepository extends IRepository<IRepositoryEntity, RepositoryDocument> {

    /**
     * Retrieves a repository list given its GitHub owner id.
     * @param id    Owner GitHub id.
     * @returns a list of repository entities.
     */
    findByOwnerId(id: number, page?: number, startingFrom?: number): Promise<IRepositoryEntity[]>;

    /**
{'fraction_non_alphanumeric': 0.11710323574730354, 'fraction_numerical': 0.0, 'mean_word_length': 4.597701149425287, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '5883423', 'n_tokens_mistral': 512, 'n_tokens_neox': 500, 'n_words': 150}