<commit_before>use x2data
SELECT
  'course_number',
  'course_description',
  'school_local_id',
  'section_number',
  'term_local_id',
  'section_schedule',
  'section_room_number'
UNION ALL
SELECT
  CSK_COURSE_NUMBER,
  CSK_COURSE_DESCRIPTION,
  SKL_SCHOOL_ID,
  MST_COURSE_VIEW,
  MST_TERM_VIEW,
  MST_SCHEDULE_DISPLAY,
  MST_ROOM_VIEW
FROM district_school_year_context
LEFT JOIN SCHEDULE
  ON district_school_year_context.CTX_OID = schedule.SCH_CTX_OID
LEFT JOIN schedule_master
  ON schedule.SCH_OID = schedule_master.MST_SCH_OID
LEFT JOIN course_school
  ON schedule_master.MST_CSK_OID = course_school.CSK_OID
INNER JOIN school
  ON course_school.CSK_SKL_OID = school.SKL_OID
AND CTX_SCHOOL_YEAR=2017
  INTO OUTFILE "E:/_BACKUP_MYSQL/CodeForAmerica/courses_sections_export.txt"
  FIELDS TERMINATED BY ','
  ENCLOSED BY '"'
  LINES TERMINATED BY '\r\n'
<commit_msg>Incrementing the school year to 2018 following X2 school year rollover.<commit_after>use x2data
SELECT
  'course_number',
  'course_description',
  'school_local_id',
  'section_number',
  'term_local_id',
  'section_schedule',
  'section_room_number'
UNION ALL
SELECT
  CSK_COURSE_NUMBER,
  CSK_COURSE_DESCRIPTION,
  SKL_SCHOOL_ID,
  MST_COURSE_VIEW,
  MST_TERM_VIEW,
  MST_SCHEDULE_DISPLAY,
  MST_ROOM_VIEW
FROM district_school_year_context
LEFT JOIN SCHEDULE
  ON district_school_year_context.CTX_OID = schedule.SCH_CTX_OID
LEFT JOIN schedule_master
  ON schedule.SCH_OID = schedule_master.MST_SCH_OID
LEFT JOIN course_school
  ON schedule_master.MST_CSK_OID = course_school.CSK_OID
INNER JOIN school
  ON course_school.CSK_SKL_OID = school.SKL_OID
AND CTX_SCHOOL_YEAR=2018
  INTO OUTFILE "E:/_BACKUP_MYSQL/CodeForAmerica/courses_sections_export.txt"
  FIELDS TERMINATED BY ','
  ENCLOSED BY '"'
  LINES TERMINATED BY '\r\n'

{'fraction_non_alphanumeric': 0.06618464961067853, 'fraction_numerical': 0.008342602892102336, 'mean_word_length': 5.9192307692307695, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5309477', 'n_tokens_mistral': 753, 'n_tokens_neox': 708, 'n_words': 130}