<commit_before>declare module "dynamodb-wrapper" {

    // ------------------------------------------------------------------------
    // DynamoDBWrapper public API
    // ------------------------------------------------------------------------

    export class DynamoDBWrapper {
        constructor(dynamoDB: any, options?: DynamoDBWrapper.IDynamoDBWrapperOptions);
        getItem(params: DynamoDBWrapper.GetItemInput): Promise<DynamoDBWrapper.GetItemOutput>;
        updateItem(params: DynamoDBWrapper.UpdateItemInput): Promise<DynamoDBWrapper.UpdateItemOutput>;
        putItem(params: DynamoDBWrapper.PutItemInput): Promise<DynamoDBWrapper.PutItemOutput>;
        deleteItem(params: DynamoDBWrapper.DeleteItemInput): Promise<DynamoDBWrapper.DeleteItemOutput>;
        query(params: DynamoDBWrapper.QueryInput): Promise<DynamoDBWrapper.QueryOutput>;
        scan(params: DynamoDBWrapper.ScanInput): Promise<DynamoDBWrapper.ScanOutput>;
        batchWriteItem(params: DynamoDBWrapper.BatchWriteItemInput, options?: DynamoDBWrapper.IBatchWriteItemOptions): Promise<DynamoDBWrapper.BatchWriteItemOutput>;
    }

    export module DynamoDBWrapper {

        export interface IDynamoDBWrapperOptions {

            // A prefix to add to all requests and remove from all responses.
            tableNamePrefix?: string;

            // The DynamoDBWrapper methods query(), scan(), and batchWriteItem() make multiple requests when necessary.
            // This setting is the delay (in millseconds) between individual requests made by these operations.
            groupDelayMs?: number;

            // The maximum amount of retries to attempt with a request.
            // @see http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB.html#constructor-property
            maxRetries?: number;

            // A set of options to configure the retry delay on retryable errors. Currently supported options are:
            // @see http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB.html#constructor-property
            retryDelayOptions?: {
                // The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms.
                base?: number;
                // A custom function that accepts a retry count and returns the amount of time to delay in milliseconds.
                // The base option will be ignored if this option is supplied.
                customBackoff?: Function;
            };

        }

        export interface IBatchWriteItemOptions {
            partitionStrategy?: 'EqualItemCount' | 'EvenlyDistributedGroupWCU';
            targetItemCount?: number;
            targetGroupWCU?: number;
            groupDelayMs?: number;
        }

        export interface IQueryOptions {
            groupDelayMs?: number;
        }

        export interface IScanOptions {
            groupDelayMs?: number;
        }

        // ------------------------------------------------------------------------
        // Copy/pasted from aws-dynamodb.d.ts
        // ------------------------------------------------------------------------

        export type AttributeAction = string;
        export type AttributeDefinitions = AttributeDefinition[];
        export type AttributeMap = {[key: string]: AttributeValue};
        export type AttributeName = string;    // max: 65535
        export type AttributeNameList = AttributeName[];    // min: 1
        export type AttributeUpdates = {[key: string]: AttributeValueUpdate};
        export type AttributeValueList = AttributeValue[];
        export type Backfilling = boolean;
        export type BatchGetRequestMap = {[key: string]: KeysAndAttributes};    // max: 100, min: 1
        export type BatchGetResponseMap = {[key: string]: ItemList};
        export type BatchWriteItemRequestMap = {[key: string]: WriteRequests};    // max: 25, min: 1
        export type BinaryAttributeValue = any;    // type: blob
        export type BinarySetAttributeValue = BinaryAttributeValue[];
        export type BooleanAttributeValue = boolean;
        export type BooleanObject = boolean;
        export type ComparisonOperator = string;
        export type ConditionExpression = string;
        export type ConditionalOperator = string;
        export type ConsistentRead = boolean;
        export type ConsumedCapacityMultiple = ConsumedCapacity[];
        export type ConsumedCapacityUnits = number;<commit_msg>bugfix: update public API typings<commit_after>declare module "dynamodb-wrapper" {

    // ------------------------------------------------------------------------
    // DynamoDBWrapper public API
    // ------------------------------------------------------------------------

    export class DynamoDBWrapper {
        constructor(dynamoDB: any, options?: DynamoDBWrapper.IDynamoDBWrapperOptions);
        createTable(params: DynamoDBWrapper.CreateTableInput): Promise<DynamoDBWrapper.CreateTableOutput>;
        updateTable(params: DynamoDBWrapper.UpdateTableInput): Promise<DynamoDBWrapper.UpdateTableOutput>;
        describeTable(params: DynamoDBWrapper.DescribeTableInput): Promise<DynamoDBWrapper.DescribeTableOutput>;
        deleteTable(params: DynamoDBWrapper.DeleteTableInput): Promise<DynamoDBWrapper.DeleteTableOutput>;
        getItem(params: DynamoDBWrapper.GetItemInput): Promise<DynamoDBWrapper.GetItemOutput>;
        updateItem(params: DynamoDBWrapper.UpdateItemInput): Promise<DynamoDBWrapper.UpdateItemOutput>;
        putItem(params: DynamoDBWrapper.PutItemInput): Promise<DynamoDBWrapper.PutItemOutput>;
        deleteItem(params: DynamoDBWrapper.DeleteItemInput): Promise<DynamoDBWrapper.DeleteItemOutput>;
        query(params: DynamoDBWrapper.QueryInput, options?: DynamoDBWrapper.IQueryOptions): Promise<DynamoDBWrapper.QueryOutput>;
        scan(params: DynamoDBWrapper.ScanInput, options?: DynamoDBWrapper.IScanOptions): Promise<DynamoDBWrapper.ScanOutput>;
        batchWriteItem(params: DynamoDBWrapper.BatchWriteItemInput, options?: DynamoDBWrapper.IBatchWriteItemOptions): Promise<DynamoDBWrapper.BatchWriteItemOutput>;
    }

    export module DynamoDBWrapper {

        export interface IDynamoDBWrapperOptions {

            // A prefix to add to all requests and remove from all responses.
            tableNamePrefix?: string;

            // The DynamoDBWrapper methods query(), scan(), and batchWriteItem() make multiple requests when necessary.
            // This setting is the delay (in millseconds) between individual requests made by these operations.
            groupDelayMs?: number;

            // The maximum amount of retries to attempt with a request.
            // @see http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB.html#constructor-property
            maxRetries?: number;

            // A set of options to configure the retry delay on retryable errors. Currently supported options are:
            // @see http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB.html#constructor-property
            retryDelayOptions?: {
                // The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms.
                base?: number;
                // A custom function that accepts a retry count and returns the amount of time to delay in milliseconds.
                // The base option will be ignored if this option is supplied.
                customBackoff?: Function;
            };

        }

        export interface IBatchWriteItemOptions {
            partitionStrategy?: 'EqualItemCount' | 'EvenlyDistributedGroupWCU';
            targetItemCount?: number;
            targetGroupWCU?: number;
            groupDelayMs?: number;
        }

        export interface IQueryOptions {
            groupDelayMs?: number;
        }

        export interface IScanOptions {
            groupDelayMs?: number;
        }

        // ------------------------------------------------------------------------
        // Copy/pasted from aws-sdk typings (aws-dynamodb.d.ts)
        // ------------------------------------------------------------------------

        export type AttributeAction = string;
        export type AttributeDefinitions = AttributeDefinition[];
        export type AttributeMap = {[key: string]: AttributeValue};
        export type AttributeName = string;    // max: 65535
        export type AttributeNameList = AttributeName[];    // min: 1
        export type AttributeUpdates = {[key: string]: AttributeValueUpdate};
        export type AttributeValueList = AttributeValue[];
        export type Backfilling = boolean;
        export type BatchGetRequestMap = {[key: string]: KeysAndAttributes};    // max: 100, min: 1
        export type BatchGetResponseMap = {[key: string]: ItemList};
        export type BatchWriteItemRequestMap = {[key: string]: WriteRequests};    // max: 25, min: 1
        export type BinaryAttributeValue = any;    // type: blob
        export type BinarySetAttributeValue = BinaryAttributeValue[];
        export type BooleanAttributeValue = boolean;
        export type BooleanObject = boolean;
        export type ComparisonOperator = string;
        export type ConditionExpression = string;
        export type ConditionalOperator = string;
        export type ConsistentRead = boolean;
        export type ConsumedCapacityMultiple = ConsumedCapacity[];
        export type ConsumedCapacityUnits = number;
{'fraction_non_alphanumeric': 0.1339257378609965, 'fraction_numerical': 0.003385168729503861, 'mean_word_length': 2.271280276816609, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '4378363', 'n_tokens_mistral': 2265, 'n_tokens_neox': 2147, 'n_words': 623}