<commit_before>/** @jsx React.DOM */
'use strict'
require("../css/moviepreview.css")
var React = require('react');
var $ = require('jquery');

module.exports = React.createClass({
    displayName: 'MoviePreview',
    getInitialState: function(){
        return {
            thumb: null
        };
    },
    componentDidMount: function() {
        var self = this;
        $.getJSON('http://vimeo.com/api/v2/video/' + this.props.videoId + '.json').done(function(response){
            self.setState({thumb: response[0].thumbnail_medium});
        });
    },
    render: function(){
    	return (
            <a className="moviepreview" href={'https://vimeo.com/' + this.props.videoId} style={{'backgroundImage': this.state.thumb ? 'url(' + this.state.thumb + ')' : ""}} target="_blank"><span>{this.props.name}</span></a>
		)
    }
});<commit_msg>Use same protocol as host page<commit_after>/** @jsx React.DOM */
'use strict'
require("../css/moviepreview.css")
var React = require('react');
var $ = require('jquery');

module.exports = React.createClass({
    displayName: 'MoviePreview',
    getInitialState: function(){
        return {
            thumb: null
        };
    },
    componentDidMount: function() {
        var self = this;
        $.getJSON('//vimeo.com/api/v2/video/' + this.props.videoId + '.json').done(function(response){
            self.setState({thumb: response[0].thumbnail_medium});
        });
    },
    render: function(){
    	return (
            <a className="moviepreview" href={'https://vimeo.com/' + this.props.videoId} style={{'backgroundImage': this.state.thumb ? 'url(' + this.state.thumb + ')' : ""}} target="_blank"><span>{this.props.name}</span></a>
		)
    }
});
{'fraction_non_alphanumeric': 0.1951934349355217, 'fraction_numerical': 0.0023446658851113715, 'mean_word_length': 2.8972602739726026, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '891671', 'n_tokens_mistral': 527, 'n_tokens_neox': 524, 'n_words': 89}