<commit_before>"use strict";

import $ from "jquery";
import React from "react";

import ctx from "classnames";
import {Grid, Row, Col} from "react-bootstrap";

import Header from "./header";

import "./seminars.less";
import DefaultAvatar from "../../assets/img/jury/default.png";


export default React.createClass({
  displayName: "Seminars",

  getInitialState() {
    return {
      talks: []
    };
  },

  componentDidMount() {
    $.ajax({
      method: "GET",
      url: window.config.API_URL + "talks.json",
      success: this.onSuccess
    });
  },

  onSuccess(data) {
    this.setState({
      talks: data
    });
  },

  renderSeminar(talk, index) {
    let colors = ["green", "orange", "black"]
    let className = ctx("seminar-container", colors[index % colors.length]);

    return <Row key={index}>
      <Col mdOffset={2} md={8} smOffset={1} sm={10} xs={12}>
        <Row className="xsmall-spacing" />
        <Row>
          <Col className={className} xs={12}>
            <Row className="xsmall-spacing" />
            <Row>
              <Col xs={3} xsOffset={1}>
                <Row className="small-spacing" />
                <div className="seminar-image">
                  <img src={DefaultAvatar} />
                </div>
              </Col>
              <Col xs={8} >
                <h4 className="seminar-title">{talk.title}</h4>
                <p>{talk.description}</p>
                <Row className="xsmall-spacing" />
                <h5 className="seminar-name">{talk.author}</h5>
              </Col>
            </Row>
            <Row className="xsmall-spacing" />
          </Col>
        </Row>
      </Col>
    </Row>;
  },

  render() {
    return <div className="seminars">
      <div className="blue-section-wrapper">
        <Grid className="blue-section">
          <Row>
            <Col xs={12}>
              <Header isLoggedIn={this.props.isLoggedIn}
                      login={this.props.login}
                      logout={this.props.logout} />
            </Col>
          </Row>
          <Row>
            <Col xs={12}>
              <h1>Seminarii InfoEducație <br />
                  Ediția {this.props.current.edition.year}
              </h1>
            </Col>
          </Row>
          <Row className="big-spacing" />
        </Grid>
      </div>
      <Grid>
        {this.state.talks.map(this.renderSeminar)}
      </Grid>
   </div>;
  }
});
<commit_msg>Fix build. #164<commit_after>"use strict";

import $ from "jquery";
import React from "react";

import ctx from "classnames";
import {Grid, Row, Col} from "react-bootstrap";

import Header from "./header";

import "./seminars.less";
import DefaultAvatar from "../../assets/img/jury/default.png";


export default React.createClass({
  displayName: "Seminars",

  getInitialState() {
    return {
      talks: []
    };
  },

  componentDidMount() {
    $.ajax({
      method: "GET",
      url: window.config.API_URL + "talks.json",
      success: this.onSuccess
    });
  },

  onSuccess(data) {
    this.setState({
      talks: data
    });
  },

  renderSeminar(talk, index) {
    let colors = ["green", "orange", "black"];
    let className = ctx("seminar-container", colors[index % colors.length]);

    return <Row key={index}>
      <Col mdOffset={2} md={8} smOffset={1} sm={10} xs={12}>
        <Row className="xsmall-spacing" />
        <Row>
          <Col className={className} xs={12}>
            <Row className="xsmall-spacing" />
            <Row>
              <Col xs={3} xsOffset={1}>
                <Row className="small-spacing" />
                <div className="seminar-image">
                  <img src={DefaultAvatar} />
                </div>
              </Col>
              <Col xs={8} >
                <h4 className="seminar-title">{talk.title}</h4>
                <p>{talk.description}</p>
                <Row className="xsmall-spacing" />
                <h5 className="seminar-name">{talk.author}</h5>
              </Col>
            </Row>
            <Row className="xsmall-spacing" />
          </Col>
        </Row>
      </Col>
    </Row>;
  },

  render() {
    return <div className="seminars">
      <div className="blue-section-wrapper">
        <Grid className="blue-section">
          <Row>
            <Col xs={12}>
              <Header isLoggedIn={this.props.isLoggedIn}
                      login={this.props.login}
                      logout={this.props.logout} />
            </Col>
          </Row>
          <Row>
            <Col xs={12}>
              <h1>Seminarii InfoEducație <br />
                  Ediția {this.props.current.edition.year}
              </h1>
            </Col>
          </Row>
          <Row className="big-spacing" />
        </Grid>
      </div>
      <Grid>
        {this.state.talks.map(this.renderSeminar)}
      </Grid>
   </div>;
  }
});

{'fraction_non_alphanumeric': 0.16395803332647604, 'fraction_numerical': 0.009668792429541247, 'mean_word_length': 1.668496158068057, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, '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': '4303960', 'n_tokens_mistral': 1545, 'n_tokens_neox': 1466, 'n_words': 290}