<commit_before>|Cyclus|
==========

.. raw:: html

    <div style="text-align:center;"><br /><br />

.. image:: logos/logo2_bike.gif
    :align: center
    :alt: Cyclus

.. raw:: html

    </div>

.. raw:: html

    <div style="text-align:center;">
    <h2><a href="https://github.com/cyclus/cyclus/releases/tag/1.1.0">
    v1.1.0 has been released!</a></h2><br></div>

|cyclus| is the next-generation agent-based nuclear :doc:`fuel cycle simulator
<basics/fcs_background>`, providing flexibility to users and developers
through a :term:`dynamic resource exchange` solver and :term:`plug-in`,
user-developed :term:`agent` framework.

The goal of |cyclus| is to enable a broad spectrum of :term:`fuel cycle
simulation <fuel cycle simulator>` while providing a low barrier to entry for
new users and agent developers. |Cyclus| engages with potential module
developers and encourages them to join a vibrant community in an
:doc:`expanding ecosystem <basics/ecosystem>`.  Users and developers are
always welcome and encouraged to use or contribute to the |cyclus| project. 

The |Cyclus| project repository is located at http://github.com/cyclus/cyclus.

Learn More
----------

.. toctree::
    :maxdepth: 1

    basics/index
    user/index
    arche/index
    kernel/index
    cep/cep0
    previous/index
    cite/index

.. _try-it:

Try It
-------

You can run a simulation right now from the comfort of your own
browser.  Just paste in any |cyclus| input file (or use the default one below)
into the text box below and click submit.  A job ID will be created and
displayed - you should keep track of this in order to retrieve your results.
The job table below updates automatically every 30 seconds, or you can refresh
this page.  It contains all submitted jobs - their status, output, and database
(if completed) with some useful links:

* Clicking on the job ID link downloads the input file for the job.

* Clicking on the Status link shows the simulation output - useful for
  diagnosing failures.

* For completed jobs, download the database in a tar file by clicking the
  Results link. You can check out :doc:`user/dbdoc` for information on working
  with the data.

.. raw:: html

    <br>
    <div id="infile-form">
    Cyclus input file: <br>
    <textarea id="infile-box" name="infile" rows=10></textarea>
    <br><button onclick="submitJob()">Submit</button><label>    Job ID: </label><label id="jobid"></label>
    </div>

    <br>
    <div id="dashboard"></div>
    <br>

    <script> 
        var server = "http://cycrun.fuelcycle.org"

        function submitJob() {
            var text = $('#infile-box').val();
            $.post(server + "/job/submit-infile", text, function(data) {
                $('#jobid').text(data);
                $('#dashboard').load(server + "/dashboard");<commit_msg>update to new dashboard cycrun api<commit_after>|Cyclus|
==========

.. raw:: html

    <div style="text-align:center;"><br /><br />

.. image:: logos/logo2_bike.gif
    :align: center
    :alt: Cyclus

.. raw:: html

    </div>

.. raw:: html

    <div style="text-align:center;">
    <h2><a href="https://github.com/cyclus/cyclus/releases/tag/1.1.0">
    v1.1.0 has been released!</a></h2><br></div>

|cyclus| is the next-generation agent-based nuclear :doc:`fuel cycle simulator
<basics/fcs_background>`, providing flexibility to users and developers
through a :term:`dynamic resource exchange` solver and :term:`plug-in`,
user-developed :term:`agent` framework.

The goal of |cyclus| is to enable a broad spectrum of :term:`fuel cycle
simulation <fuel cycle simulator>` while providing a low barrier to entry for
new users and agent developers. |Cyclus| engages with potential module
developers and encourages them to join a vibrant community in an
:doc:`expanding ecosystem <basics/ecosystem>`.  Users and developers are
always welcome and encouraged to use or contribute to the |cyclus| project. 

The |Cyclus| project repository is located at http://github.com/cyclus/cyclus.

Learn More
----------

.. toctree::
    :maxdepth: 1

    basics/index
    user/index
    arche/index
    kernel/index
    cep/cep0
    previous/index
    cite/index

.. _try-it:

Try It
-------

You can run a simulation right now from the comfort of your own
browser.  Just paste in any |cyclus| input file (or use the default one below)
into the text box below and click submit.  A job ID will be created and
displayed - you should keep track of this in order to retrieve your results.
The job table below updates automatically every 30 seconds, or you can refresh
this page.  It contains all submitted jobs - their status, output, and database
(if completed) with some useful links:

* Clicking on the job ID link downloads the input file for the job.

* Clicking on the Status link shows the simulation output - useful for
  diagnosing failures.

* For completed jobs, download the database in a tar file by clicking the
  Results link. You can check out :doc:`user/dbdoc` for information on working
  with the data.

.. raw:: html

    <br>
    <div id="infile-form">
    Cyclus input file: <br>
    <textarea id="infile-box" name="infile" rows=10></textarea>
    <br><button onclick="submitJob()">Submit</button><label>    Job ID: </label><label id="jobid"></label>
    </div>

    <br>
    <div id="dashboard"></div>
    <br>

    <script> 
        var server = "http://cycrun.fuelcycle.org"

        function submitJob() {
            var text = $('#infile-box').val();
            $.post(server + "/api/v1/job-infile", text, function(data) {
                var resp = JSON.parse(data)
				var jid = ""
				for (var i = 0; i < resp.Id.length; i++) {
					jid += resp.Id[i].toString(16)
				}
                $('#jobid').text(jid);
                $('#dashboard').load(server + "/dashboard");
{'fraction_non_alphanumeric': 0.1252155915833046, 'fraction_numerical': 0.005864091065884788, 'mean_word_length': 3.168943206326384, 'pattern_counts': {'":': 0, '<': 68, '<?xml version=': 0, '>': 67, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '717221', 'n_tokens_mistral': 1795, 'n_tokens_neox': 1697, 'n_words': 656}