<commit_before>module Camel {
    export function SendMessageController($scope, workspace:Workspace) {
      var LANGUAGE_FORMAT_PREFERENCE = "defaultLanguageFormat";
      var sourceFormat = workspace.getLocalStorage(LANGUAGE_FORMAT_PREFERENCE) || "javascript";
      $scope.message = "Enter your message to send.";
      // TODO Remove this if possible
      $scope.codeMirror = undefined;
      var options = {
        mode: {
            name: sourceFormat
        },
        // Quick hack to get the codeMirror instance.
        onChange: function(codeMirror) {
          if(!$scope.codeMirror) {
            $scope.codeMirror = codeMirror;
          }
        }
      };
      $scope.codeMirrorOptions = CodeEditor.createEditorSettings(options);
<commit_msg>avoid folks having to clear the text area when sending messages re #116<commit_after>module Camel {
    export function SendMessageController($scope, workspace:Workspace) {
      var LANGUAGE_FORMAT_PREFERENCE = "defaultLanguageFormat";
      var sourceFormat = workspace.getLocalStorage(LANGUAGE_FORMAT_PREFERENCE) || "javascript";
      $scope.message = "";
      // TODO Remove this if possible
      $scope.codeMirror = undefined;
      var options = {
        mode: {
            name: sourceFormat
        },
        // Quick hack to get the codeMirror instance.
        onChange: function(codeMirror) {
          if(!$scope.codeMirror) {
            $scope.codeMirror = codeMirror;
          }
        }
      };
      $scope.codeMirrorOptions = CodeEditor.createEditorSettings(options);

{'fraction_non_alphanumeric': 0.09108402822322001, 'fraction_numerical': 0.001924310455420141, 'mean_word_length': 2.5779816513761467, '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': '5036703', 'n_tokens_mistral': 417, 'n_tokens_neox': 403, 'n_words': 97}