<commit_before>import React, {PropTypes} from 'react'
import {Icon} from 'antd'
import styles from './weather.less'
import {classnames, request} from '../../utils'


const Weather = React.createClass({
  componentDidMount() {
    this.fetch()
  },
  fetch() {
    request('http://api.map.baidu.com/telematics/v3/weather?location=成都&output=json&ak=33MHEPwOLqG8YwynptbWCCFSqry9IEYb',{
      method:'get',
      dataType:'JSON',
      success: function (res) {
        console.log(res)
      }
    })
  },
  render() {
    return <div className={styles.weather}>
      天气
    </div>
  }
})

export default Weather<commit_msg>Weather<commit_after>import React, {PropTypes} from 'react'
import {Icon} from 'antd'
import styles from './weather.less'
import {classnames, request} from '../../utils'
const Ajax = require("robe-ajax")

const Weather = React.createClass({
  componentDidMount() {
    this.fetch()
  },
  fetch() {
    Ajax.getJSON("http://query.yahooapis.com/v1/public/yql", {
      q: "select * from json where url=\"http://www.zuimeitianqi.com/zuimei/myCity?flg=0\"",
      format: "json"
    }, function (data) {
      console.log(data)
    })
  },
  render() {
    return <div className={styles.weather}>
      天气
    </div>
  }
})

export default Weather
{'fraction_non_alphanumeric': 0.16587677725118483, 'fraction_numerical': 0.005529225908372828, 'mean_word_length': 3.223333333333333, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '6522181', 'n_tokens_mistral': 451, 'n_tokens_neox': 435, 'n_words': 87}