query stringlengths 8 204k | positive_id stringlengths 15 222 | positive_code stringlengths 62 77.7k | negative_ids sequencelengths 0 100 | negative_codes sequencelengths 0 100 | repo stringlengths 8 55 | base_commit stringlengths 40 40 | instance_id stringlengths 12 59 | negative_code_scores sequencelengths 0 100 | negative_code_rank sequencelengths 0 100 | positive_code_score float64 -0.05 0.88 | positive_code_rank int64 0 100k |
|---|---|---|---|---|---|---|---|---|---|---|---|
Broken compatibility
In this scenario the contents of PDF file [ANNOTATED.pdf](https://github.com/py-pdf/pypdf/files/10793798/ANNOTATED.pdf) comes from 3 sources:
- a template form
- fields from a database
- handwritten annotations
Whenever fields in the database change, we could generate an updated [ANNOTATED.p... | pypdf/_writer.py/PdfWriter/remove_links | pypdf/_writer.py/PdfWriter/remove_links
class PdfWriter: def remove_links(self) -> None:
"""Remove links and annotations from this output."""
pg_dict = cast(DictionaryObject, self.get_object(self._pages))
pages = cast(ArrayObject, pg_dict[PA.KIDS])
for page in pages:
page_... | [
"doc_438",
"doc_133",
"doc_439",
"doc_192",
"doc_137",
"doc_430",
"doc_437",
"doc_446",
"doc_74",
"doc_69",
"doc_441",
"doc_450",
"doc_71",
"doc_188",
"doc_132",
"doc_445",
"doc_449",
"doc_436",
"doc_195",
"doc_67",
"doc_452",
"doc_75",
"doc_47",
"doc_442",
"doc_129",... | [
"pypdf/_page.py/PageObject/_merge_page\nclass PageObject: def _merge_page(\n self,\n page2: \"PageObject\",\n page2transformation: Optional[Callable[[Any], ContentStream]] = None,\n ctm: Optional[CompressedTransformationMatrix] = None,\n over: bool = True,\n expand: bool... | py-pdf/pypdf | b14dabb63c4e6aa75d52e7582bb6f840e35a3a1b | py-pdf__pypdf-1648 | [
0.6145302057266235,
0.5840045213699341,
0.5681087970733643,
0.5563446879386902,
0.5264245271682739,
0.5248456001281738,
0.5165107250213623,
0.5164287686347961,
0.5057941675186157,
0.4995516538619995,
0.4958963990211487,
0.4887349009513855,
0.4885357618331909,
0.48495379090309143,
0.48117... | [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55... | 0.434515 | 37 |
"Use `black` for code auto formatting\nIt would be good to use auto formatting for our current Pytho(...TRUNCATED) | tensorflow_io/core/python/ops/io_dataset_ops.py/_StreamIODataset/_inputs | "tensorflow_io/core/python/ops/io_dataset_ops.py/_StreamIODataset/_inputs\nclass _StreamIODataset: (...TRUNCATED) | ["doc_46","doc_0","doc_35","doc_47","doc_48","doc_31","doc_44","doc_43","doc_50","doc_29","doc_30","(...TRUNCATED) | ["tensorflow_io/core/python/ops/io_tensor_ops.py/_Function/__init__\nclass _Function: def __ini(...TRUNCATED) | tensorflow/io | 5a54e6f94ac175f677d933040ae9be5bcb3a403e | tensorflow__io-860 | [0.44273295998573303,0.3975346088409424,0.3784221410751343,0.36922404170036316,0.36680662631988525,0(...TRUNCATED) | [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,(...TRUNCATED) | 0.550622 | 0 |
"install from source code found error\n### Steps to reproduce\r\n1.git clone https://github.com/pyth(...TRUNCATED) | telegram/bot.py/Bot/forward_message | "telegram/bot.py/Bot/forward_message\nclass Bot: def forward_message(self,\n (...TRUNCATED) | ["doc_174","doc_17","doc_175","doc_136","doc_106","doc_13","doc_429","doc_46","doc_159","doc_95","do(...TRUNCATED) | ["telegram/__main__.py/print_ver_info\ndef print_ver_info():\n print('python-telegram-bot {0}'.fo(...TRUNCATED) | python-telegram-bot/python-telegram-bot | 4f2ea5b0f1f40f639dd77e6fa1993dda75882320 | python-telegram-bot__python-telegram-bot-614 | [0.5146827697753906,0.5058932304382324,0.48671573400497437,0.45244649052619934,0.4437197744846344,0.(...TRUNCATED) | [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,3(...TRUNCATED) | 0 | 99,999 |
"Type-hinting for IDEs\nHi there,\r\n\r\nI like to use the Message.reply_* functions but it's kind o(...TRUNCATED) | telegram/ext/filters.py/_Forwarded/filter | "telegram/ext/filters.py/_Forwarded/filter\nclass _Forwarded: def filter(self, message: Message) (...TRUNCATED) | ["doc_94","doc_159","doc_151","doc_157","doc_90","doc_282","doc_179","doc_170","doc_547","doc_95","d(...TRUNCATED) | ["telegram/_reply.py/ReplyParameters/__init__\nclass ReplyParameters: def __init__(\n self(...TRUNCATED) | python-telegram-bot/python-telegram-bot | beb770c299cb7236d9fdc32fd287e7e13df0eb3d | python-telegram-bot__python-telegram-bot-1920 | [0.3653685450553894,0.3560307025909424,0.32765260338783264,0.30342888832092285,0.29809999465942383,0(...TRUNCATED) | [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,3(...TRUNCATED) | 0 | 99,999 |
"AsyncKernelClient.is_alive() returns non-awaited coroutine?\n[async is_alive()](https://github.com/(...TRUNCATED) | jupyter_client/consoleapp.py/JupyterConsoleApp/init_ssh | "jupyter_client/consoleapp.py/JupyterConsoleApp/init_ssh\nclass JupyterConsoleApp: def init_ssh(s(...TRUNCATED) | ["doc_35","doc_113","doc_110","doc_111","doc_114","doc_79","doc_13","doc_76","doc_38","doc_80","doc_(...TRUNCATED) | ["jupyter_client/managerabc.py/KernelManagerABC/is_alive\nclass KernelManagerABC: def is_alive(se(...TRUNCATED) | jupyter/jupyter_client | 50dff2e809cf7b67128e7e2f0cb422e751011ef9 | jupyter__jupyter_client-623 | [0.42474424839019775,0.4208373427391052,0.4176020622253418,0.41410642862319946,0.4116164445877075,0.(...TRUNCATED) | [0,1,2,3,4,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,3(...TRUNCATED) | 0.381479 | 12 |
"@_MetricWrapper breaks pylint argument checks\n`@_MetricWrapper` changes the call signature of the (...TRUNCATED) | prometheus_client/core.py/Metric/__init__ | "prometheus_client/core.py/Metric/__init__\nclass Metric: def __init__(self, name, documentation,(...TRUNCATED) | ["doc_50","doc_20","doc_8","doc_24","doc_63","doc_21","doc_7","doc_49","doc_51","doc_23","doc_65","d(...TRUNCATED) | ["prometheus_client/core.py/init\n def init(name, documentation, labelnames=(), namespace='', sub(...TRUNCATED) | prometheus/client_python | 33bc65ba9faacaac7e88058bfe8f690b531984f8 | prometheus__client_python-344 | [0.6225473880767822,0.4617709219455719,0.4359426200389862,0.42148661613464355,0.42042213678359985,0.(...TRUNCATED) | [0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,(...TRUNCATED) | 0.547943 | 1 |
missing some attributes for `Iframe`?
- frameborder
- scrolling
| dash_html_components/Abbr.py/Abbr/__init__ | "dash_html_components/Abbr.py/Abbr/__init__\nclass Abbr: def __init__(self, children=None, id=Com(...TRUNCATED) | [] | [] | plotly/dash-html-components | 2f55aa7bb0eabc17684ee1e3155fad98fd6f34af | plotly__dash-html-components-185 | [] | [] | 0.1961 | 0 |
"GradsScalarHandler logs 0 gradients if default update function is used\n## 🐛 Bug description\r\n(...TRUNCATED) | ignite/engine/__init__.py/supervised_training_step_apex | "ignite/engine/__init__.py/supervised_training_step_apex\ndef supervised_training_step_apex(\n mo(...TRUNCATED) | ["doc_443","doc_442","doc_349","doc_379","doc_407","doc_983","doc_439","doc_378","doc_348","doc_445"(...TRUNCATED) | ["ignite/contrib/handlers/tensorboard_logger.py/GradsScalarHandler/__call__\nclass GradsScalarHandle(...TRUNCATED) | pytorch/ignite | b1a1a4adcde0c1883b8ebc6ba1422e298180d8f5 | pytorch__ignite-2560 | [0.6650209426879883,0.6069328784942627,0.6053653359413147,0.5974036455154419,0.575520932674408,0.572(...TRUNCATED) | [0,1,2,3,4,5,6,7,8,9,10,11,12,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,3(...TRUNCATED) | 0.507368 | 13 |
"Cache Param For get_json() Leading to Contradictory Behavior\nThe location of interest:\r\nhttps://(...TRUNCATED) | src/werkzeug/wrappers/base_response.py/BaseResponse/get_app_iter | "src/werkzeug/wrappers/base_response.py/BaseResponse/get_app_iter\nclass BaseResponse: def get_ap(...TRUNCATED) | ["doc_883","doc_881","doc_874","doc_1048","doc_691","doc_652","doc_901","doc_1144","doc_896","doc_87(...TRUNCATED) | ["src/werkzeug/utils.py/cached_property/__get__\nclass cached_property: def __get__(self, obj: ob(...TRUNCATED) | pallets/werkzeug | 8606f8616e7d96211d3dfac54b6ccfa8da75613d | pallets__werkzeug-2003 | [0.4134080410003662,0.387849897146225,0.37909436225891113,0.3779372572898865,0.3693527579307556,0.36(...TRUNCATED) | [0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,(...TRUNCATED) | 0.388187 | 1 |
"Make it possible to save more often than an epoch\none epoch can take 24h\r\n\r\nor maybe should I (...TRUNCATED) | src/open_clip/model.py/ModifiedResNet/set_grad_checkpointing | "src/open_clip/model.py/ModifiedResNet/set_grad_checkpointing\nclass ModifiedResNet: def set_grad(...TRUNCATED) | ["doc_38","doc_21","doc_39","doc_1","doc_20","doc_29","doc_5","doc_30","doc_32","doc_51","doc_36","d(...TRUNCATED) | ["src/training/train.py/train_one_epoch\ndef train_one_epoch(model, data, epoch, optimizer, scaler, (...TRUNCATED) | mlfoundations/open_clip | 08f69656e8d2fa09e58e08cdd90e31eb21653ee5 | mlfoundations__open_clip-178 | [0.44165459275245667,0.404660165309906,0.3961913287639618,0.3718869686126709,0.3563166856765747,0.35(...TRUNCATED) | [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,3(...TRUNCATED) | 0.095489 | 80 |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 76