<commit_before>"use strict";

define(['logManager'], function (logManager) {

    var RepositoryLogControl;

    RepositoryLogControl = function (myClient, myView) {
        var self = this;

        this._client = myClient;
        this._view = myView;

        this._lastCommitID = null;

        //override view event handlers
        this._view.onLoadCommit = function (params) {
            self._client.selectCommitAsync(params.id, function (err) {
                if (err) {
                    self._logger.error(err);
                } else {
                    self._refreshActualCommit();
                }
            });
        };

        this._view.onDeleteBranchClick = function (branch) {
            self._client.deleteBranchAsync(branch, function (err) {
                if (err) {
                    self._logger.error(err);
                } else {
                    self._refreshBranches();
                }
            });
        };

        this._view.onCreateBranchFromCommit = function (params) {
            self._client.createBranchAsync(
                params.name,
                params.commitId,
                function (err) {
                    if (err) {
                        self._logger.error(err);
                    } else {
                        self._refreshBranches();
                    }
                });
        };

        this._view.onLoadMoreCommits = function (num) {
            self._loadMoreCommits(num);
        };<commit_msg>refresh bugfix<commit_after>"use strict";

define(['logManager'], function (logManager) {

    var RepositoryLogControl;

    RepositoryLogControl = function (myClient, myView) {
        var self = this;

        this._client = myClient;
        this._view = myView;

        this._lastCommitID = null;

        //override view event handlers
        this._view.onLoadCommit = function (params) {
            self._client.selectCommitAsync(params.id, function (err) {
                if (err) {
                    self._logger.error(err);
                }

                self._refreshActualCommit();
            });
        };

        this._view.onDeleteBranchClick = function (branch) {
            self._client.deleteBranchAsync(branch, function (err) {
                if (err) {
                    self._logger.error(err);
                }

                self._refreshBranches();
            });
        };

        this._view.onCreateBranchFromCommit = function (params) {
            self._client.createBranchAsync(
                params.name,
                params.commitId,
                function (err) {
                    if (err) {
                        self._logger.error(err);
                    }
                    self._refreshBranches();
                });
        };

        this._view.onLoadMoreCommits = function (num) {
            self._loadMoreCommits(num);
        };
{'fraction_non_alphanumeric': 0.10034364261168385, 'fraction_numerical': 0.0, 'mean_word_length': 1.2831372549019608, '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': '3748102', 'n_tokens_mistral': 749, 'n_tokens_neox': 709, 'n_words': 124}