instance_id
stringlengths
13
45
pull_number
int64
7
30.1k
repo
stringclasses
83 values
version
stringclasses
68 values
base_commit
stringlengths
40
40
created_at
stringdate
2013-05-16 18:15:55
2025-01-08 15:12:50
patch
stringlengths
347
35.2k
test_patch
stringlengths
432
113k
non_py_patch
stringlengths
0
18.3k
new_components
listlengths
0
40
FAIL_TO_PASS
listlengths
1
2.53k
PASS_TO_PASS
listlengths
0
1.7k
problem_statement
stringlengths
607
52.7k
hints_text
stringlengths
0
57.4k
environment_setup_commit
stringclasses
167 values
tornadoweb__tornado-789
789
tornadoweb/tornado
null
833d6975c320836ddc3a20fde681fdccbdcb82ed
2013-05-16T18:15:55Z
diff --git a/tornado/options.py b/tornado/options.py index faf0e164cc..04692f7a83 100644 --- a/tornado/options.py +++ b/tornado/options.py @@ -101,6 +101,44 @@ def __setattr__(self, name, value): return self._options[name].set(value) raise AttributeError("Unrecognized option %r" % name) + def...
diff --git a/tornado/test/options_test.py b/tornado/test/options_test.py index dc52a82a49..23ce0fe458 100644 --- a/tornado/test/options_test.py +++ b/tornado/test/options_test.py @@ -113,6 +113,47 @@ def test_setattr_with_callback(self): options.foo = 2 self.assertEqual(values, [2]) + def _sample...
[ { "components": [ { "doc": "", "lines": [ 104, 105 ], "name": "OptionParser.__iter__", "signature": "def __iter__(self):", "type": "function" }, { "doc": "", "lines": [ 107, 108 ], ...
[ "tornado/test/options_test.py::OptionsTest::test_as_dict", "tornado/test/options_test.py::OptionsTest::test_getitem", "tornado/test/options_test.py::OptionsTest::test_group_dict", "tornado/test/options_test.py::OptionsTest::test_items", "tornado/test/options_test.py::OptionsTest::test_iter" ]
[ "tornado/test/options_test.py::OptionsTest::test_help", "tornado/test/options_test.py::OptionsTest::test_mock_patch", "tornado/test/options_test.py::OptionsTest::test_multiple_int", "tornado/test/options_test.py::OptionsTest::test_multiple_string", "tornado/test/options_test.py::OptionsTest::test_parse_call...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Make options instance more dict-like. In my Motor-Blog application, I find myself copying a lot of options from tornado.options into Application(). I thought this would be nice: application = Applica...
b5dad636aaba94f86a3c00ca6ec49c79ff4313b2