Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
77be91ba
Commit
77be91ba
authored
Dec 12, 2016
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Related to javascriptresponse, which was already deleted.
I missed these files the first time around.
parent
aa8d2226
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
54 deletions
+0
-54
common/lib/capa/capa/javascript_problem_generator.js
+0
-28
common/lib/capa/capa/javascript_problem_grader.js
+0
-26
No files found.
common/lib/capa/capa/javascript_problem_generator.js
deleted
100644 → 0
View file @
aa8d2226
require
(
'coffee-script'
);
var
importAll
=
function
(
modulePath
)
{
module
=
require
(
modulePath
);
for
(
key
in
module
)
{
global
[
key
]
=
module
[
key
];
}
};
importAll
(
'mersenne-twister-min'
);
importAll
(
'xproblem'
);
generatorModulePath
=
process
.
argv
[
2
];
dependencies
=
JSON
.
parse
(
process
.
argv
[
3
]);
seed
=
JSON
.
parse
(
process
.
argv
[
4
]);
params
=
JSON
.
parse
(
process
.
argv
[
5
]);
if
(
seed
==
null
)
{
seed
=
4
;
}
for
(
var
i
=
0
;
i
<
dependencies
.
length
;
i
++
)
{
importAll
(
dependencies
[
i
]);
}
generatorModule
=
require
(
generatorModulePath
);
generatorClass
=
generatorModule
.
generatorClass
;
generator
=
new
generatorClass
(
seed
,
params
);
console
.
log
(
JSON
.
stringify
(
generator
.
generate
()));
common/lib/capa/capa/javascript_problem_grader.js
deleted
100644 → 0
View file @
aa8d2226
require
(
'coffee-script'
);
var
importAll
=
function
(
modulePath
)
{
module
=
require
(
modulePath
);
for
(
key
in
module
)
{
global
[
key
]
=
module
[
key
];
}
};
importAll
(
'xproblem'
);
graderModulePath
=
process
.
argv
[
2
];
dependencies
=
JSON
.
parse
(
process
.
argv
[
3
]);
submission
=
JSON
.
parse
(
process
.
argv
[
4
]);
problemState
=
JSON
.
parse
(
process
.
argv
[
5
]);
params
=
JSON
.
parse
(
process
.
argv
[
6
]);
for
(
var
i
=
0
;
i
<
dependencies
.
length
;
i
++
)
{
importAll
(
dependencies
[
i
]);
}
graderModule
=
require
(
graderModulePath
);
graderClass
=
graderModule
.
graderClass
;
grader
=
new
graderClass
(
submission
,
problemState
,
params
);
console
.
log
(
JSON
.
stringify
(
grader
.
grade
()));
console
.
log
(
JSON
.
stringify
(
grader
.
evaluation
));
console
.
log
(
JSON
.
stringify
(
grader
.
solution
));
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment