The problemBag is confusing (with respect to multiple problems being
loaded), because it seems as though it is reloaded each time, making
each draw random rather than shuffled. Here is a proposed alternative,
based solely on the problemNum. If it’s not really important to be
precise with the weighting (that ouf of 10 draws, something with
probability .30 is chosen exactly three times), the last three lines
can be replaced with `problem = problems.eq(Math.floor(Math.random() *
typeIndex.length));` Otherwise, the ‘jostler’ substitutes for the
shuffle, preventing it from going in the sequential order except when
the weightSum is a mulitple of three. There probably are some slight
improvements that could be made, because when there are only two
equally weighted exercises, they alternate every time. One idea is to
duplicate the array if it is below some minimum length and than shuffle
according to a seed (so that it is deterministic). But it’s not clear
to me that this differs drastically from actual randomness.

Incompatible with:
- data-weight=“0”
- data-weight=“0.6” (permutations_1, permutations_and_combinations_2)
Change incompatible exercises; allow for data-weight="0"

- Changed all exercises with `data-weight` equal to some decimal.
- Deleted some exercises with `data-weight=“0”`
- Some exercises with `data-weight=“0”` used it as a template to reduce
redundancy. Since this is clever, I added the one line neccessary to
allow it.
- Deleted (inferior) alternative method that was commented out
- Included `id = $(problem).attr(“id”)` which was an oversight to not
be included the first time around.
- Changed `else if` to `else` because there should be no cases where
`typeof exerciseId === undefined` or `problems.length === 0`.
Fix problemId (to work without name) and 4-space indents (sorry)

Silly editor; tabs are for kids.
Update kas.js
Merge pull request #159247 from mauk81/fixTests

adjust calculator tests
Merge pull request #159367 from mauk81/patch-4

Update compiled version of kas.js
subkatex
Allow for whitespace in factoring polynomials

Summary:
Noted here: https://github.com/Khan/khan-exercises/issues/158683

If the solution was of the form (-Ax + E), the answer would be rejected if
there was any whitespace between '+' and E.

Test Plan:
* Go to a problem with an answer of this form
  * exercises/factoring_polynomials_by_grouping_1.html?debug&problem=0&seed=175 is one
* Check that the answer '(5x + 7)(-x + 5)' is accepted

Reviewers: alex

Reviewed By: alex

CC: alpert

Differential Revision: http://phabricator.khanacademy.org/D5983
Fix ordering_decimals hints

The `decimalPlaces` data structure defined in word-problems conflicted with the `KhanUtil.decimalPlaces()` function in utils/math.js

Test Plan: load ordering_decimals.html in local mode and take all hints

Auditors: peter
Allow decimals in dividing_polynomials_by_binomials_3

Test Plan: Give answer of x != -1.5 in http://exercises.ka.local/exercises/dividing_polynomials_by_binomials_3.html?seed=188&problem=coefficient-in-denominator

Auditors: peter
Fix local-only now that a bunch of paths have changed, and re-run it.

Test Plan:
Ran
   local-only/update_local.sh
and had it run to success (that's the rest of this commit!)  The only
file that has changed since the last run is qtip has been upgraded
from 2.0 to 2.2.

Reviewers: eater, alpert

Reviewed By: alpert

CC: alpert

Differential Revision: http://phabricator.khanacademy.org/D6020
Send all exercise issues to JIRA iwth increased metadata

Summary: See D6030

Test Plan: See D6030

Reviewers: jack

Reviewed By: jack

CC: alpert

Differential Revision: http://phabricator.khanacademy.org/D6031
Remove instruction to simplify

This is a 4th grade exercise

Test Plan: Look at a question in local mode

Auditors: alpert
correct hint label position, fix #160912
Merge pull request #161290 from mauk81/patch-4

correct hint label position, fix #160912
Restore attempt log in issues

Somehow this got dropped with my last change.

Test Plan: cross fingers

Auditors: jack
Merge pull request #132934 from Merbs/go-bagless

Going Bagless: changing out problemBag
MovableAngle: Add snapOffsetDeg parameter

Summary:
Adds a snap offset parameter, so that your angle rays can snap to,
for example:
    6, 11, 16, 21 with a snapDegrees of 5 and a snapOffsetDeg of 1
instead of only
    5, 10, 15, 20 with a snapDegrees of 5

Note: The angle between the rays must still be a multiple of
snapDegrees. I tried changing that to allow for more flexibility,
but it just ended up making the snap interaction clumsy and confusing
when paired with the angle wraparound behaviour.

Test Plan: Used in Perseus' interactive-graph angle widget

Reviewers: alex, justinjaffray

Reviewed By: alex

CC: alpert

Differential Revision: http://phabricator.khanacademy.org/D6127
Make the clock mo-pretty

Summary: Also swap out orange for red in telling_time_2 so the text isn't as light.

Test Plan: Load telling_time_0.5, telling_time, and telling_time_2 in local mode, take all the hints, answer, etc.

Reviewers: joel

Reviewed By: joel

CC: alpert

Differential Revision: http://phabricator.khanacademy.org/D6122
lint

Test Plan:
runlint.py shows no errors

Auditors: justinjaffray