<commit_before>.. _section-mobiweb-mobile-about:

===============
About This Site
===============


Table view that drills down to the following screens:

* What’s New
* Background Information
* System Requirements
* Credits
* Send us feedback (just a mailto: link)

Additionally, a Statistics page is available, but not shown to the
user as a link.  The statistics page displays totals views (of the
website), messages (incoming/outgoing SMS), and API requests (from
native apps) over selected time periods, as well as corresponding
figures brokend down by platform/carrier and module.

The internal ID for this module is ``mobile-about`` because ``about``
is the name of the desktop about site.

----------------------------
Data Sources / Configuration
----------------------------

^^^^^^^^^^^^^^^^^^^^^^^^^^
"What's New" Announcements
^^^^^^^^^^^^^^^^^^^^^^^^^^

Published via Drupal at http://localhost/drupal/whats_new/rss.xml.
This is configured inside the :ref:`subsubsection-mobiweb-whatsnew`
class


^^^^^^^^^^^^^^^^^^
Website Statistics
^^^^^^^^^^^^^^^^^^

Page View (website) data come from the MySQL table PageViews.


^^^^^^^^^^^^^^
SMS Statistics
^^^^^^^^^^^^^^

SMS data are generated on the SMS server http://sms1.mit.edu and
fetched via a web call. The SMS server returns a JSON string similar
to the following:

.. code-block:: javascript

  {"days": [  
      {"date":"2009-07-25","count":"8"},  
      {"date":"2009-07-27","count":"14"}  
   ],  
   "sent": [  
      {"date":"2009-07-25","count":"11"},  
      {"date":"2009-07-27","count":"30"}  
   ],  
   "modules": [  
      {"module":"shuttleschedule","count":"15"},  
      {"module":"people","count":"3"},  
      {"module":"calendar","count":"1"},  
      {"module":"stop","count":"1"},  
      {"module":"info","count":"1"},  
      {"module":"emergency","count":"1"}  
   ],  
   "carriers": [  
      {"carrier_information":"31002","count":"18","carrier":"AT&T"},  
      {"carrier_information":"31004","count":"4","carrier":"Tmobile"}  
   ]}



^^^^^^^^^^^^^^^^^^^^^
mobi-lib dependencies
^^^^^^^^^^^^^^^^^^^^^

* :ref:`subsection-mobiweb-rss-services`

-----------
Logic Files
-----------



^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
mobi-web/mobile-about/index.php
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

content for all sections of this module (requested via the ``page``
query parameter in the GET request), except What’s New.

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
mobi-web/mobile-about/new.php
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
mobi-web/page_builder/counter.php
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. method:: PageViews::view_past($system, $interval_type, $duration)
   
   :param $system:  "web" or "api", web versus native app
   :param $interval_type: "day", "week", "month", or "quarter"
   :param $duration: length of interval in days

   Queries the MySQL table PageViews and returns an array similar to the following:
 

   .. code-block:: php

      Array(  
        [0] => Array(  
          "people" => 10,  
          "shuttleschedule" => 90,  
          "iphone" => 70,  
          "android" => 20,  
          "webos" => 10,
          "blackberry" => 5,
          "featurephone" => 10,
          "computer" => 13,  
          "date" => 1234567890,  
          "name" => "Fri",  
          "total" => 100,  
        ),  
      )

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<commit_msg>sample output I made up was confusing<commit_after>.. _section-mobiweb-mobile-about:

===============
About This Site
===============


Table view that drills down to the following screens:

* What’s New
* Background Information
* System Requirements
* Credits
* Send us feedback (just a mailto: link)

Additionally, a Statistics page is available, but not shown to the
user as a link.  The statistics page displays totals views (of the
website), messages (incoming/outgoing SMS), and API requests (from
native apps) over selected time periods, as well as corresponding
figures brokend down by platform/carrier and module.

The internal ID for this module is ``mobile-about`` because ``about``
is the name of the desktop about site.

----------------------------
Data Sources / Configuration
----------------------------

^^^^^^^^^^^^^^^^^^^^^^^^^^
"What's New" Announcements
^^^^^^^^^^^^^^^^^^^^^^^^^^

Published via Drupal at http://localhost/drupal/whats_new/rss.xml.
This is configured inside the :ref:`subsubsection-mobiweb-whatsnew`
class


^^^^^^^^^^^^^^^^^^
Website Statistics
^^^^^^^^^^^^^^^^^^

Page View (website) data come from the MySQL table PageViews.


^^^^^^^^^^^^^^
SMS Statistics
^^^^^^^^^^^^^^

SMS data are generated on the SMS server http://sms1.mit.edu and
fetched via a web call. The SMS server returns a JSON string similar
to the following:

.. code-block:: javascript

  {"days": [  
      {"date":"2009-07-25","count":"8"},  
      {"date":"2009-07-27","count":"14"}  
   ],  
   "sent": [  
      {"date":"2009-07-25","count":"11"},  
      {"date":"2009-07-27","count":"30"}  
   ],  
   "modules": [  
      {"module":"shuttleschedule","count":"15"},  
      {"module":"people","count":"3"},  
      {"module":"calendar","count":"1"},  
      {"module":"stop","count":"1"},  
      {"module":"info","count":"1"},  
      {"module":"emergency","count":"1"}  
   ],  
   "carriers": [  
      {"carrier_information":"31002","count":"18","carrier":"AT&T"},  
      {"carrier_information":"31004","count":"4","carrier":"Tmobile"}  
   ]}



^^^^^^^^^^^^^^^^^^^^^
mobi-lib dependencies
^^^^^^^^^^^^^^^^^^^^^

* :ref:`subsection-mobiweb-rss-services`

-----------
Logic Files
-----------



^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
mobi-web/mobile-about/index.php
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

content for all sections of this module (requested via the ``page``
query parameter in the GET request), except What’s New.

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
mobi-web/mobile-about/new.php
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
mobi-web/page_builder/counter.php
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. method:: PageViews::view_past($system, $interval_type, $duration)
   
   :param $system:  "web" or "api", web versus native app
   :param $interval_type: "day", "week", "month", or "quarter"
   :param $duration: length of interval in days

   Queries the MySQL table PageViews and returns an array similar to the following:
 

   .. code-block:: php

      Array(  
        [0] => Array(  
          "people" => 10,  
          "shuttleschedule" => 90,  
          "iphone" => 50,  
          "android" => 20,  
          "webos" => 5,
          "blackberry" => 5,
          "featurephone" => 10,
          "computer" => 10,  
          "date" => 1234567890,  
          "name" => "Fri",  
          "total" => 100,  
        ),  
      )

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
{'fraction_non_alphanumeric': 0.26974555081629653, 'fraction_numerical': 0.026033240182379763, 'mean_word_length': 3.2001235330450895, 'pattern_counts': {'":': 60, '<': 3, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4653187', 'n_tokens_mistral': 2208, 'n_tokens_neox': 2014, 'n_words': 536}