<commit_before>import api from '../api';

var PollingMixin = {
  getInitialState() {
    return {
      pollingActive: true
    };
  },
  pushNotification(){
    let body;
    let {app, env, number} = this.props.params;
    let path = `/deploys/${app}/${env}/${number}`;

    let hostname = location.hostname
    let protocol = location.protocol
    let port     = location.port

    if(this.state.task == undefined){
      let {name} = this.state.deploys[0].app
      let {environment, number} = this.state.deploys[0]

      let path = `/deploys/${name}/${environment}/${number}`
    }

    if(hostname == "localhost"){
      var url  = `${protocol}//${hostname}:${port}${path}`
      var ourl = `${protocol}//${hostname}:${port}${path}`
    }else{
      var url  = `${protocol}//${hostname}${path}`
      var ourl = `${protocol}//${hostname}${path}`
    }

    if(this.state.task !== undefined){
      body = `${/[^@]*/.exec(this.state.task.user.name)}'s deploy ${this.state.task.status}`;
    }else{
      body = `${/[^@]*/.exec(this.state.deploys[0].user.name)}'s deploy ${this.state.deploys[0].status}`;
    }

    const options = {
      body: body,
      icon: "/static/favicon.png"<commit_msg>changed path from let to var.<commit_after>import api from '../api';

var PollingMixin = {
  getInitialState() {
    return {
      pollingActive: true
    };
  },
  pushNotification(){
    let body;
    let {app, env, number} = this.props.params;
    var path = `/deploys/${app}/${env}/${number}`;

    let hostname = location.hostname
    let protocol = location.protocol
    let port     = location.port

    if(this.state.task == undefined){
      let {name} = this.state.deploys[0].app
      let {environment, number} = this.state.deploys[0]

      var path = `/deploys/${name}/${environment}/${number}`
    }

    if(hostname == "localhost"){
      var url  = `${protocol}//${hostname}:${port}${path}`
      var ourl = `${protocol}//${hostname}:${port}${path}`
    }else{
      var url  = `${protocol}//${hostname}${path}`
      var ourl = `${protocol}//${hostname}${path}`
    }

    if(this.state.task !== undefined){
      body = `${/[^@]*/.exec(this.state.task.user.name)}'s deploy ${this.state.task.status}`;
    }else{
      body = `${/[^@]*/.exec(this.state.deploys[0].user.name)}'s deploy ${this.state.deploys[0].status}`;
    }

    const options = {
      body: body,
      icon: "/static/favicon.png"
{'fraction_non_alphanumeric': 0.20719602977667495, 'fraction_numerical': 0.0033085194375516956, 'mean_word_length': 2.785602503912363, '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': '6855766', 'n_tokens_mistral': 830, 'n_tokens_neox': 853, 'n_words': 152}