<commit_before>(function (define) {
    define([
        'underscore',
        'backbone',
        'js/discovery/models/course_discovery',
        'js/discovery/collections/filters'
    ], function (_, Backbone, CourseDiscovery, Filters) {
        'use strict';


        return Backbone.Model.extend({

            page: 0,
            pageSize: 20,
            searchTerm: '',
            terms: {},
            jqhxr: null,

            initialize: function () {
                this.discovery = new CourseDiscovery();
                this.listenTo(this.discovery, 'sync', this.onSync, this);
                this.listenTo(this.discovery, 'error', this.onError, this);
            },
            performSearch: function (searchTerm, otherTerms) {
                // main 태그에 data-param 이 있으면 데이터에 값을 추가하고 선택된 형태르 변경후 data-param을 삭제
                let k, v;
                $("#main input[name='default_term']").each(function () {
                    k = $(this).data('key');
                    v = $(this).data('value');
                    var obj = new Object();
                    obj[k] = v;

                    _.extend(otherTerms, obj);

                    $(this).remove();
                });

                // 검색박스 표시
                if (k && v){
                    let e = this;
                    setTimeout(function(){

                        switch (k){
                            case 'fourth_industry_yn':
                                v = 'Y';
                                break;
                            case 'job_edu_yn':
                                v = 'Y';
                                break;
                            case 'linguistics':<commit_msg>링크 선택 기능 수정<commit_after>(function (define) {
    define([
        'underscore',
        'backbone',
        'js/discovery/models/course_discovery',
        'js/discovery/collections/filters'
    ], function (_, Backbone, CourseDiscovery, Filters) {
        'use strict';


        return Backbone.Model.extend({

            page: 0,
            pageSize: 20,
            searchTerm: '',
            terms: {},
            jqhxr: null,

            initialize: function () {
                this.discovery = new CourseDiscovery();
                this.listenTo(this.discovery, 'sync', this.onSync, this);
                this.listenTo(this.discovery, 'error', this.onError, this);
            },
            performSearch: function (searchTerm, otherTerms) {
                // main 태그에 data-param 이 있으면 데이터에 값을 추가하고 선택된 형태르 변경후 data-param을 삭제
                let k, v;
                $("#main input[name='default_term']").each(function () {
                    k = $(this).data('key');
                    v = $(this).data('value');
                    var obj = new Object();
                    obj[k] = v;

                    _.extend(otherTerms, obj);

                    $(this).remove();
                });

                // 검색박스 표시
                if (k && v){
                    let e = this;
                    setTimeout(function(){

                        switch (v){
                            case 'fourth_industry_y':
                                k = 'fourth_industry_yn';
                                v = 'Y';
                                break;
                            case 'job_edu_y':
                                k = 'job_edu_yn'
                                v = 'Y';
                                break;
                            case 'linguistics_y':
                                k = 'linguistics';
{'fraction_non_alphanumeric': 0.11157953906689151, 'fraction_numerical': 0.0016863406408094434, 'mean_word_length': 0.9827298050139276, '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': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3946096', 'n_tokens_mistral': 992, 'n_tokens_neox': 972, 'n_words': 196}