Change inverse trig answer style to be consistent

Radians subproblem didn't require units physically typed in
but the degrees subproblem did, leading to confusion. Fixes #72185
Changed wording, degree symbol, format suggestion
Merge pull request #72193 from theinternetftw/make-itrig-answer-style-consistent

Change inverse trig answer style to be consistent
Remove radians
Lint JS

Auditors: benkomalo
Don't submit when clicking 'reflect'

Fixes #72054.

Auditors: eater
Lint answer-types

Auditors: alex
Get rid of cardinal() everywhere escept the exercise testing cardinality.

Summary:
In most places, I replaced cardinal with the simpler
cardinalThrough20() function, which shows a cardinal number if n is
between 0 and 20, and the digits of n otherwise.  In almost all uses,
n is provably between 0 and 20 so this should give mostly the same
results as before.

In a few cases, such as some of the age_word_problems, n can sometimes
be > 20.  However, in those exercises, we seem to be mixing cardinal
numbers with decimal numbers somewhat indisciminately anyway, so I
doubt anyone will notice the change.

Task T1060

Get rid of ordinal() as well, replacing it with ordinalThrough20().

This is enough to cover all the uses of ordinal to date.

Test Plan:
Ran python -mSimpleHTTPServer and visited
   http://localhost:8000/exercises/age_word_problems.html
and likewise for all the exercises in this commit, and looked at the
text and hints to make sure they read ok.  I reloaded until the
exercise(s) with the cardinal change came up.

Ran python -mSimpleHTTPServer and visited
   localhost:8000/exercises/integer_sums.html
and likewise for all the other exercises, and read the text and hints
to make sure the ordinal numbers were displayed correctly.

Reviewers: alpert, eater

Reviewed By: alpert

Maniphest Tasks: T1060

Differential Revision: http://phabricator.khanacademy.org/D3926
Fix up some exercises by running the linter.

Summary:
I ran
   build/lint_i18n_strings.py --fix exercises/*.html
This is the result.

The changes fall into a few categories:
1) \text{xxx} where xxx needs to be marked for translation
2) lxml changes to make things more 'proper' html (get rid of />, add
   ="" to some attributes, etc).
3) An upgrade to the new isSingular syntax.

I removed the following files from this changeset because I'm not sure
whether 'moles' should be translated or not, so I didn't want to
modify the files before I confirmed:
   exercises/ideal_stoichiometry.html
   exercises/limiting_reagent_stoichiometry.html

I also reverted exercises/inequalities_on_a_number_line.html which is
fine, but a bug in the linter wants to rewrite it anyway.

Fix dividing_fractions_word_problems to use plurals better.

I'm still not 100% sure it's always right, but it's better than
before, and any count-matching errors were there before as well.

Fix i18n-plural for degrees.

There are two degree problems, each of which can have a '1 degree'
number in one of the three vars (x, y, and z).  I fixed them up to use
the plural_form var.

Test Plan:
I ran
   python -mSimpleHTTPServer
and visited
   localhost:8000/exercises
and clicked on each exercise in this commit, and then clicked to see
all the hints, and read them to make sure there was no problem.  I
didn't check any foreign languages, but for English at least it all
looked ok.

Ran
   python -mSimpleHTTPServer
and visited
   http://localhost:8000/exercises/dividing_fractions_word_problems.html
and reloaded until I got a 'paint' problem.  I read the problem and
all the things and verified they were grammatical.

Then I repeated this by reloading until I got a 'swim team' question.

Ran python -mSimpleHTTPServer and visited
   http://localhost:8000/exercises/negative_number_word_problems.html
and reloaded until I got each of the two temperature problems.  For
each one, I clicked on the hints, and made sure everything read
grammatically.

Reviewers: eater, alpert

Reviewed By: alpert

Differential Revision: http://phabricator.khanacademy.org/D3902
Cast guess index to a number

Auditors: eater
Adding a movable polygon to interactive.js + ability to draw ray.

Test Plan: Verify expected behavior when using the Polygon and Ray subwidgets.

Reviewers: alpert

Reviewed By: alpert

Differential Revision: http://phabricator.khanacademy.org/D3928
Fix templating loops

I was silly, there was a return statement in this loop!

Fixes #73152.

Auditors: benkomalo
semicolon
Make cardinalThrough20 always return a string

Otherwise CardinalThrough20 dies when it tries to capitalize it.

Fixes #73456.

Auditors: csilvers
changed hints in properties of numbers 2 to be simpler.

Summary: removed references to real numbers.

Reviewers: alpert, eater

Reviewed By: alpert

Differential Revision: http://phabricator.khanacademy.org/D4067
Metacognitive experiment.

Summary:
These are the modified exercise files for Joseph's proposed metacognitive experiment,
where students are asked to engage in thought about what they need to do to answer the
question and/or why they need to do it.  There will be a corresponding checkin for the
webapp change to select these exercise files by GAE/Bingo condition.  The trailing
portion of the filenames describe which experimental condition each file corresponds to.

no extension -- Current exercise.
'Control' -- Only the what question.
'SelfRegulatingThinking' -- Introspective versions of the header questions.
'ReflectingOnMeaning' -- Inspective versions of the header questions.

'NoTextBox' -- There are no fields for the student to enter information in the problem hints.
'TextBox' -- There are fields for the student to enter information in the problem hints. This
contains custom validation code, which calls the standard validator, so that the contents of
the text fields are saved along with the answer.

This is a followup to the code review at http://phabricator.khanacademy.org/D2096 .  All of
the complaints in that code review have hopefully been addressed, and the code has otherwise
changed significantly.  I have only limited knowledge of javascript/html though, so I
apologize in advance for what I'm sure will be some ugly parts.

The code was written by Joseph, by me, and by an undergrad working with Joseph (whose name
I don't remember and don't have in email).

Test Plan:
I've made sure these exercise load correctly, that the answer validation works correctly for
the custom validator case, and that the timeline works correctly for them (even in the case
where the student is in one experimental condition and the coach is in another experimental
condition, and in the case that the timeline was saved prior to the start of the experiment).

Reviewers: jace, eater

Reviewed By: jace

CC: alpert, chris

Differential Revision: http://phabricator.khanacademy.org/D2809
Merge pull request #71849 from theinternetftw/small-tweaks-to-graphie-geo-fix

Small tweaks to earlier graphie-geometry fix
Revert "Metacognitive experiment."

This reverts commit 9fb4a9f7f78f89cad8b80f79c55928f730246f35.
Merge pull request #74742 from theinternetftw/one-last-geo-fix

One last graphie-geometry fix
Fix hint to use same verbs as used in word problem