<commit_before>CodeOceanEditorSubmissions = {
  FILENAME_URL_PLACEHOLDER: '{filename}',

  AUTOSAVE_INTERVAL: 15 * 1000,
  autosaveTimer: null,
  autosaveLabel: "#autosave-label span",

  /**
   * Submission-Creation
   */
  createSubmission: function (initiator, filter, callback) {
    this.showSpinner(initiator);
    var url = $(initiator).data('url') || $('#editor').data('submissions-url');
    var jqxhr = this.ajax({
      data: {
        submission: {
          cause: $(initiator).data('cause') || $(initiator).prop('id'),
          exercise_id: $('#editor').data('exercise-id'),
          files_attributes: (filter || _.identity)(this.collectFiles())
        },
        annotations_arr: []<commit_msg>Prevent submission creation if url is undefined<commit_after>CodeOceanEditorSubmissions = {
  FILENAME_URL_PLACEHOLDER: '{filename}',

  AUTOSAVE_INTERVAL: 15 * 1000,
  autosaveTimer: null,
  autosaveLabel: "#autosave-label span",

  /**
   * Submission-Creation
   */
  createSubmission: function (initiator, filter, callback) {
    this.showSpinner(initiator);
    var url = $(initiator).data('url') || $('#editor').data('submissions-url');

    if (url === undefined) {
        const data = {
            initiator: initiator,
            filter: filter,
        }
        Sentry.captureException(JSON.stringify(data));
        return;
    }
    var jqxhr = this.ajax({
      data: {
        submission: {
          cause: $(initiator).data('cause') || $(initiator).prop('id'),
          exercise_id: $('#editor').data('exercise-id'),
          files_attributes: (filter || _.identity)(this.collectFiles())
        },
        annotations_arr: []
{'fraction_non_alphanumeric': 0.15903614457831325, 'fraction_numerical': 0.007228915662650603, 'mean_word_length': 3.081081081081081, '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': '359997', 'n_tokens_mistral': 540, 'n_tokens_neox': 500, 'n_words': 89}