<commit_before>require("babel/polyfill");
var ChatApp = require('../../flux-chat/js/components/ChatApp.react');
var ChatRoomApp = require('../../flux-chat/js/components/ChatRoomApp.jsx');
var ChatWebAPIUtils = require('../../flux-chat/js/utils/ChatWebAPIUtils');
var SettingsWebAPIUtils = require('../../configuration/js/utils/SettingsWebAPIUtils');
var AvatarContainer = require('../../flux-chat/js/components/AvatarContainer.react.js');
var Status = require('../../flux-chat/js/components/Status.react.js');
var AvatarPicker = require('../../js/components/AvatarPicker.jsx');
var WhosOnline = require('../../flux-chat/js/components/WhosOnline.react');
var MessageComposer = require('../../flux-chat/js/components/MessageComposer.react');
var ChatModule = require('../../js/components/ChatModule.jsx');
var EvaluationSettings = require('../../configuration/js/components/EvaluationSettings.jsx');
var ChatroomSettings = require('../../configuration/js/components/ChatroomSettings.jsx');
var FormBuilder = require('../../formbuilder/js/components/FormBuilder.jsx');
var CaseNotes = require('../../casenotes/js/components/CaseNotes.jsx');
var UserAutocomplete = require('../../js/components/UserAutocomplete.jsx');
var TicketTable = require('../../tickets/js/components/TicketTable.jsx');
var UserTable = require('../../users/js/components/UserTable.jsx');


// Playing around with API handling to replace stuff in urlUtils.api and SettingsWebAPIUtils
import apiFactory, { list, detail, create } from '../../js/api';
import serverActions from '../../js/serverActions';
import APIStore from '../../js/APIStore';
var ChatAppDispatcher = require('../../flux-chat/js/dispatcher/ChatAppDispatcher');

let APIConf =     {
         chatrooms: {
            url: 'chat/rooms/',
            actions: [list, create]
         }
};

let api = apiFactory(APIConf);
let actions = serverActions(APIConf);
let store = new APIStore(APIConf, 'chatrooms', ChatAppDispatcher);

actions.chatrooms.list()
    .done(() => console.log(store.getAll()));
//////////////////////////////////////////////////

var React = require('react');
window.React = React; // export for http://fb.me/react-devtools

if (chatConf.me) {
    ChatWebAPIUtils.connect(<commit_msg>Remove testing code from base.js<commit_after>require("babel/polyfill");
var ChatApp = require('../../flux-chat/js/components/ChatApp.react');
var ChatRoomApp = require('../../flux-chat/js/components/ChatRoomApp.jsx');
var ChatWebAPIUtils = require('../../flux-chat/js/utils/ChatWebAPIUtils');
var SettingsWebAPIUtils = require('../../configuration/js/utils/SettingsWebAPIUtils');
var AvatarContainer = require('../../flux-chat/js/components/AvatarContainer.react.js');
var Status = require('../../flux-chat/js/components/Status.react.js');
var AvatarPicker = require('../../js/components/AvatarPicker.jsx');
var WhosOnline = require('../../flux-chat/js/components/WhosOnline.react');
var MessageComposer = require('../../flux-chat/js/components/MessageComposer.react');
var ChatModule = require('../../js/components/ChatModule.jsx');
var EvaluationSettings = require('../../configuration/js/components/EvaluationSettings.jsx');
var ChatroomSettings = require('../../configuration/js/components/ChatroomSettings.jsx');
var FormBuilder = require('../../formbuilder/js/components/FormBuilder.jsx');
var CaseNotes = require('../../casenotes/js/components/CaseNotes.jsx');
var UserAutocomplete = require('../../js/components/UserAutocomplete.jsx');
var TicketTable = require('../../tickets/js/components/TicketTable.jsx');
var UserTable = require('../../users/js/components/UserTable.jsx');
var React = require('react');
window.React = React; // export for http://fb.me/react-devtools

if (chatConf.me) {
    ChatWebAPIUtils.connect(
{'fraction_non_alphanumeric': 0.20515546106829657, 'fraction_numerical': 0.0, 'mean_word_length': 3.9138381201044385, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1754571', 'n_tokens_mistral': 1091, 'n_tokens_neox': 1056, 'n_words': 182}