<commit_before>import React from 'react'
import Transmit from 'react-transmit'
import request from 'superagent-bluebird-promise'

import './App.css'
import Editor from '../Editor/Editor.jsx'

class App extends React.Component {
  constructor(props) { super(props)
    this.state = { }
  }
  componentWillMount() {
    var sessionId = localStorage.getItem("id")
    this.props.setQueryParams({ id: sessionId });

  }
  handleNext() {
    var sessionId = Math.floor(Math.random() * 780) + 1;
    localStorage.setItem("id", sessionId);
    this.props.setQueryParams({ id: sessionId });
  }
  render() {
    var {doc} = this.props;
    return (
      <div className="App">
        <div className="App-title">立院公報註記小幫手</div>
        <div className="App-body">
          <p>移動滑鼠到你心儀的那一行，按下滑鼠左鍵，就期待著有什麼事情會發生。</p>
          <Editor
            meta={doc.meta}
            lines={doc.raw.split('\n') }
            handleNext={this.handleNext.bind(this)} />
        </div>
      </div>
    );
  }
}

App.displayName = 'App'

export default Transmit.createContainer(App, {
  queries: {
    doc({id}) {
      if (!id) {
        id = Math.floor(Math.random() * 780) + 1
        localStorage.setItem("id", id);

      }
      return request.get(`http://gapi.musou.tw/${id}`).then((res) => res.body.data).catch(()=>{ return {meta:[], raw:""};})
    }
  }
});<commit_msg>Use https<commit_after>import React from 'react'
import Transmit from 'react-transmit'
import request from 'superagent-bluebird-promise'

import './App.css'
import Editor from '../Editor/Editor.jsx'

class App extends React.Component {
  constructor(props) { super(props)
    this.state = { }
  }
  componentWillMount() {
    var sessionId = localStorage.getItem("id")
    this.props.setQueryParams({ id: sessionId });

  }
  handleNext() {
    var sessionId = Math.floor(Math.random() * 780) + 1;
    localStorage.setItem("id", sessionId);
    this.props.setQueryParams({ id: sessionId });
  }
  render() {
    var {doc} = this.props;
    return (
      <div className="App">
        <div className="App-title">立院公報註記小幫手</div>
        <div className="App-body">
          <p>移動滑鼠到你心儀的那一行，按下滑鼠左鍵，就期待著有什麼事情會發生。</p>
          <Editor
            meta={doc.meta}
            lines={doc.raw.split('\n') }
            handleNext={this.handleNext.bind(this)} />
        </div>
      </div>
    );
  }
}

App.displayName = 'App'

export default Transmit.createContainer(App, {
  queries: {
    doc({id}) {
      if (!id) {
        id = Math.floor(Math.random() * 780) + 1
        localStorage.setItem("id", id);

      }
      return request.get(`https://gapi.musou.tw/${id}`).then((res) => res.body.data).catch(()=>{ return {meta:[], raw:""};})
    }
  }
});
{'fraction_non_alphanumeric': 0.17510158847432583, 'fraction_numerical': 0.005910602142593277, 'mean_word_length': 2.7095890410958905, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 25, 'https://': 1, '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': '1149874', 'n_tokens_mistral': 984, 'n_tokens_neox': 1001, 'n_words': 165}