<commit_before>Staff Graded Assignment XBlock
==============================

This package provides an XBlock for use with the edX platform which
provides a staff graded assignment. Students are invited to upload files
which encapsulate their work on the assignment. Instructors are then
able to download the files and enter grades for the assignment.

Note that this package is both an XBlock and a Django application. 

Installation
============


1. Install Package 

   installing manually for evaluation and testing:

   -  ``sudo su - edxapp -s /bin/bash``
   -  ``. edxapp_env``
   -  ``pip install -e git+https://github.com/mitodl/edx-sga@release#egg=edx-sga``

   installing in production:
	
   - In ``/edx/app/edxapp/edx-platform/requirements/edx/github.txt``, add:
   
     .. code:: sh
   
          -e git+https://github.com/mitodl/edx-sga@release#egg=edx-sga

2. Enable advanced components in LMS and Studio (CMS).

   -  In ``/edx/app/edxapp/edx-platform/lms/envs/common.py``, uncomment:

      .. code:: sh

          # from xmodule.x_module import prefer_xmodules  
          # XBLOCK_SELECT_FUNCTION = prefer_xmodules  

   -  In ``/edx/app/edxapp/edx-platform/cms/envs/common.py``, uncomment:

      .. code:: sh

          # from xmodule.x_module import prefer_xmodules  
          # XBLOCK_SELECT_FUNCTION = prefer_xmodules  

   -  In ``/edx/app/edxapp/edx-platform/cms/envs/common.py``, change:

      .. code:: sh

          'ALLOW_ALL_ADVANCED_COMPONENTS': False,

      to

      .. code:: sh

          'ALLOW_ALL_ADVANCED_COMPONENTS': True,
          
3. Configure file storage<commit_msg>changing file storage settings affect more than just SGA<commit_after>Staff Graded Assignment XBlock
==============================

This package provides an XBlock for use with the edX platform which
provides a staff graded assignment. Students are invited to upload files
which encapsulate their work on the assignment. Instructors are then
able to download the files and enter grades for the assignment.

Note that this package is both an XBlock and a Django application. 

Installation
============


1. Install Package 

   installing manually for evaluation and testing:

   -  ``sudo su - edxapp -s /bin/bash``
   -  ``. edxapp_env``
   -  ``pip install -e git+https://github.com/mitodl/edx-sga@release#egg=edx-sga``

   installing in production:
	
   - In ``/edx/app/edxapp/edx-platform/requirements/edx/github.txt``, add:
   
     .. code:: sh
   
          -e git+https://github.com/mitodl/edx-sga@release#egg=edx-sga

2. Enable advanced components in LMS and Studio (CMS).

   -  In ``/edx/app/edxapp/edx-platform/lms/envs/common.py``, uncomment:

      .. code:: sh

          # from xmodule.x_module import prefer_xmodules  
          # XBLOCK_SELECT_FUNCTION = prefer_xmodules  

   -  In ``/edx/app/edxapp/edx-platform/cms/envs/common.py``, uncomment:

      .. code:: sh

          # from xmodule.x_module import prefer_xmodules  
          # XBLOCK_SELECT_FUNCTION = prefer_xmodules  

   -  In ``/edx/app/edxapp/edx-platform/cms/envs/common.py``, change:

      .. code:: sh

          'ALLOW_ALL_ADVANCED_COMPONENTS': False,

      to

      .. code:: sh

          'ALLOW_ALL_ADVANCED_COMPONENTS': True,
          
3. Configure file storage

   For file storage, SGA uses the same file storage configuration as other
   applications in edX, such as the comments server. If you change these
   settings to SGA it will also affect those other applications.
{'fraction_non_alphanumeric': 0.11744485820681753, 'fraction_numerical': 0.0017187052420509883, 'mean_word_length': 2.7997823721436346, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5651283', 'n_tokens_mistral': 1162, 'n_tokens_neox': 1085, 'n_words': 315}