<commit_before>import AdhAngularHelpers = require("../AngularHelpers/AngularHelpers");
import AdhConfig = require("../Config/Config");
import AdhEmbed = require("../Embed/Embed");
import AdhHttp = require("../Http/Http");
import AdhImage = require("../Image/Image");
import AdhInject = require("../Inject/Inject");
import AdhPreliminaryNames = require("../PreliminaryNames/PreliminaryNames");
import AdhResourceArea = require("../ResourceArea/ResourceArea");
import AdhResourceWidgets = require("../ResourceWidgets/ResourceWidgets");
import AdhSticky = require("../Sticky/Sticky");
import AdhTopLevelState = require("../TopLevelState/TopLevelState");
import AdhUtil = require("../Util/Util");

import AdhCommentAdapter = require("../Comment/Adapter");

import RIDocument = require("../../Resources_/adhocracy_core/resources/document/IDocument");
import RIDocumentVersion = require("../../Resources_/adhocracy_core/resources/document/IDocumentVersion");
import RIParagraph = require("../../Resources_/adhocracy_core/resources/paragraph/IParagraph");
import RIParagraphVersion = require("../../Resources_/adhocracy_core/resources/paragraph/IParagraphVersion");
import SIDocument = require("../../Resources_/adhocracy_core/sheets/document/IDocument");
import SIMetadata = require("../../Resources_/adhocracy_core/sheets/metadata/IMetadata");
import SIImageReference = require("../../Resources_/adhocracy_core/sheets/image/IImageReference");
import SIName = require("../../Resources_/adhocracy_core/sheets/name/IName");
import SIParagraph = require("../../Resources_/adhocracy_core/sheets/document/IParagraph");
import SITitle = require("../../Resources_/adhocracy_core/sheets/title/ITitle");
import SIVersionable = require("../../Resources_/adhocracy_core/sheets/versions/IVersionable");

var pkgLocation = "/Document";


export interface IParagraph {
    body : string;
    commentCount? : number;
    path? : string;
}

export interface IScope extends angular.IScope {
    path? : string;
    options : AdhHttp.IOptions;
    errors? : AdhHttp.IBackendErrorItem[];
    data : {
        title : string;
        paragraphs? : IParagraph[];
        commentCountTotal? : number;
        picture? : string;
        creator? : string;
        creationDate? : string;
        modificationDate? : string;
    };
    selectedState? : string;
    resource: any;

    documentVersion? : RIDocumentVersion;
    paragraphVersions? : RIParagraphVersion[];
}

export interface IFormScope extends IScope {
    showError;
    addParagraph() : void;
    submit() : angular.IPromise<any>;
    cancel() : void;
    documentForm : any;
}

<commit_msg>Added new properties to document object for typescript<commit_after>import AdhAngularHelpers = require("../AngularHelpers/AngularHelpers");
import AdhConfig = require("../Config/Config");
import AdhEmbed = require("../Embed/Embed");
import AdhHttp = require("../Http/Http");
import AdhImage = require("../Image/Image");
import AdhInject = require("../Inject/Inject");
import AdhPreliminaryNames = require("../PreliminaryNames/PreliminaryNames");
import AdhResourceArea = require("../ResourceArea/ResourceArea");
import AdhResourceWidgets = require("../ResourceWidgets/ResourceWidgets");
import AdhSticky = require("../Sticky/Sticky");
import AdhTopLevelState = require("../TopLevelState/TopLevelState");
import AdhUtil = require("../Util/Util");

import AdhCommentAdapter = require("../Comment/Adapter");

import RIDocument = require("../../Resources_/adhocracy_core/resources/document/IDocument");
import RIDocumentVersion = require("../../Resources_/adhocracy_core/resources/document/IDocumentVersion");
import RIParagraph = require("../../Resources_/adhocracy_core/resources/paragraph/IParagraph");
import RIParagraphVersion = require("../../Resources_/adhocracy_core/resources/paragraph/IParagraphVersion");
import SIDocument = require("../../Resources_/adhocracy_core/sheets/document/IDocument");
import SIMetadata = require("../../Resources_/adhocracy_core/sheets/metadata/IMetadata");
import SIImageReference = require("../../Resources_/adhocracy_core/sheets/image/IImageReference");
import SIName = require("../../Resources_/adhocracy_core/sheets/name/IName");
import SIParagraph = require("../../Resources_/adhocracy_core/sheets/document/IParagraph");
import SITitle = require("../../Resources_/adhocracy_core/sheets/title/ITitle");
import SIVersionable = require("../../Resources_/adhocracy_core/sheets/versions/IVersionable");

var pkgLocation = "/Document";


export interface IParagraph {
    body : string;
    commentCount? : number;
    path? : string;
}

export interface IScope extends angular.IScope {
    path? : string;
    options : AdhHttp.IOptions;
    errors? : AdhHttp.IBackendErrorItem[];
    data : {
        title : string;
        titles? : {
            value? : string;
            title? : string;
        };
        paragraphs? : IParagraph[];
        commentCountTotal? : number;
        picture? : string;
        creator? : string;
        creationDate? : string;
        modificationDate? : string;
    };
    selectedState? : string;
    resource: any;

    toggleCreateForm() : void;
    showCreateForm? : boolean;

    documentVersion? : RIDocumentVersion;
    paragraphVersions? : RIParagraphVersion[];
}

export interface IFormScope extends IScope {
    showError;
    addParagraph() : void;
    submit() : angular.IPromise<any>;
    cancel() : void;
    documentForm : any;
}


{'fraction_non_alphanumeric': 0.14938520829510002, 'fraction_numerical': 0.0, 'mean_word_length': 4.215311004784689, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6275761', 'n_tokens_mistral': 1579, 'n_tokens_neox': 1545, 'n_words': 280}