<commit_before>// I18N
// Ember.String.loc('_request_submitted_email_will_be_sent');

FLOW.SurveyBootstrap = FLOW.View.extend({
  surveysPreview: Ember.A([]),
  includeDBInstructions: false,
  dbInstructions: '',
  notificationEmail: '',

  init: function () {
    this._super();
    FLOW.selectedControl.set('selectedSurveys', null);
  },

  selectAllSurveys: function () {
    var selected = Ember.A([]);
    FLOW.surveyControl.get('content').forEach(function (item) {
      selected.pushObject(item);
    });
    FLOW.selectedControl.set('selectedSurveys', selected);
  },

  deselectAllSurveys: function () {
    FLOW.selectedControl.set('selectedSurveys', []);
  },

  addSelectedSurveys: function () {
    var sgName = FLOW.selectedControl.selectedSurveyGroup.get('code');
<commit_msg>Issue #326 - fix all survey selection for bootstrap tab<commit_after>// I18N
// Ember.String.loc('_request_submitted_email_will_be_sent');

FLOW.SurveyBootstrap = FLOW.View.extend({
  surveysPreview: Ember.A([]),
  includeDBInstructions: false,
  dbInstructions: '',
  notificationEmail: '',

  init: function () {
    this._super();
    FLOW.selectedControl.set('selectedSurveys', null);
  },

  selectAllSurveys: function () {
	var selected = FLOW.surveyControl.get('content').filter(function (item) {
	  return item.get('status') === "PUBLISHED";
    });
	FLOW.selectedControl.set('selectedSurveys', selected);
  },

  deselectAllSurveys: function () {
    FLOW.selectedControl.set('selectedSurveys', []);
  },

  addSelectedSurveys: function () {
    var sgName = FLOW.selectedControl.selectedSurveyGroup.get('code');

{'fraction_non_alphanumeric': 0.15437073775573465, 'fraction_numerical': 0.0043397396156230625, 'mean_word_length': 4.623693379790941, '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': '6437655', 'n_tokens_mistral': 542, 'n_tokens_neox': 525, 'n_words': 77}