<commit_before>define(function (require) {

  var React = require('react/addons'),
    stores = require('stores'),
    ResourceActions = require('actions/ResourceActions'),
    Router = require('react-router');

  return React.createClass({
    displayName: "MyResourceRequestsPage",

    mixins: [Router.State],

    closeRequest: function(request){
      var closedStatus = stores.StatusStore.findWhere({"name": "closed"}).models[0].id;
      ResourceActions.close({request: request, status: closedStatus});
    },

    render: function() {
      var username = stores.ProfileStore.get().id,
          statusTypes = stores.StatusStore.getAll();
      
      if(username == null || !statusTypes){
        return <div className="loading"></div>
      }

      var requests = stores.ResourceRequestStore.fetchWhere({"created_by__username": username});

      
      if(requests == null){
        return <div className = "loading"></div>;
      }

      if(!requests.models[0]){
        return (
          <div className="container">
            <p>You have not made any resource requests.</p>
          </div>
        );
      }

      var displayRequests = requests.map(function(request){<commit_msg>clean up spacing (again)<commit_after>define(function (require) {

  var React = require('react/addons'),
    stores = require('stores'),
    ResourceActions = require('actions/ResourceActions'),
    Router = require('react-router');

  return React.createClass({
    displayName: "MyResourceRequestsPage",

    mixins: [Router.State],

    closeRequest: function(request){
      var closedStatus = stores.StatusStore.findWhere({"name": "closed"}).models[0].id;
      ResourceActions.close({request: request, status: closedStatus});
    },

    render: function() {
      var username = stores.ProfileStore.get().id,
          statusTypes = stores.StatusStore.getAll();
      
      if(username == null || !statusTypes){
        return <div className="loading"></div>
      }

      var requests = stores.ResourceRequestStore.fetchWhere({"created_by__username": username});

      
      if(requests == null){
        return <div className="loading"></div>;
      }

      if(!requests.models[0]){
        return (
          <div className="container">
            <p>You have not made any resource requests.</p>
          </div>
        );
      }

      var displayRequests = requests.map(function(request){
{'fraction_non_alphanumeric': 0.141137401411374, 'fraction_numerical': 0.0016604400166044002, 'mean_word_length': 2.899676375404531, 'pattern_counts': {'":': 4, '<': 19, '<?xml version=': 0, '>': 19, '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': '2894535', 'n_tokens_mistral': 656, 'n_tokens_neox': 637, 'n_words': 131}