id stringlengths 13 54 | prompt stringlengths 708 2.91M | answer stringlengths 110 352k | prompt_input_token_count int64 206 1.14M | metadata dict |
|---|---|---|---|---|
liqd__a4-meinberlin-5443 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: liqd/a4-meinberlin
Base commit: 29d7eb32c7c24e479c4e5d1a2f61cf84ace34863
Changed files:
- meinberlin/apps/projects... | diff --git a/meinberlin/apps/projects/templatetags/meinberlin_project_tags.py b/meinberlin/apps/projects/templatetags/meinberlin_project_tags.py
index 0000000..0000000 100644
--- a/meinberlin/apps/projects/templatetags/meinberlin_project_tags.py
+++ b/meinberlin/apps/projects/templatetags/meinberlin_project_tags.py
@@ ... | 2,265 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "liqd__a4-meinberlin-5443",
"repo": "liqd/a4-meinberlin",
"base_commit": "29d7eb32c7c24e479c4e5d1a2f61cf84ace34863",
"pull_number": 5443,
"issue_numbers": ... |
sql-machine-learning__elasticdl-38 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: e272265d3e94de38e22c472975da05821fe00b45
Changed files:
- tensorflow/p... | diff --git a/tensorflow/ps/ps.py b/tensorflow/ps/ps.py
index 0000000..0000000 100644
--- a/tensorflow/ps/ps.py
+++ b/tensorflow/ps/ps.py
@@ -1,9 +1,9 @@
+import threading
+import queue
+import numpy as np
+import tensorflow.contrib.eager as tfe
import tensorflow as tf
tf.enable_eager_execution()
-import tensorflow.co... | 1,917 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-38",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "e272265d3e94de38e22c472975da05821fe00b45",
"pull_number": 38,... |
sql-machine-learning__elasticdl-47 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: b5897de7277f8d2bcd8462d67a8ab007a6d69446
Changed files:
- python/tflib... | diff --git a/python/tflib/ps/ps_client.py b/python/tflib/ps/ps_client.py
index 0000000..0000000 100644
--- a/python/tflib/ps/ps_client.py
+++ b/python/tflib/ps/ps_client.py
@@ -1,5 +1,4 @@
-import future
-
+from binascii import crc32
# No partition, all in the first ps
def no_partition(v, ps_size):
@@ -8,6 +7,10 @@... | 2,001 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-47",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "b5897de7277f8d2bcd8462d67a8ab007a6d69446",
"pull_number": 47,... |
sql-machine-learning__elasticdl-57 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 4bd5c6375e657f6f16c10f1a2ef2898c05062663
Changed files:
- python/elast... | diff --git a/python/elasticdl/tflib/ps/ps.py b/python/elasticdl/tflib/ps/ps.py
index 0000000..0000000 100644
--- a/python/elasticdl/tflib/ps/ps.py
+++ b/python/elasticdl/tflib/ps/ps.py
@@ -1,22 +1,12 @@
import threading
import queue
import numpy as np
-import tensorflow.contrib.eager as tfe
import tensorflow as tf
... | 2,196 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-57",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "4bd5c6375e657f6f16c10f1a2ef2898c05062663",
"pull_number": 57,... |
sql-machine-learning__elasticdl-58 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 00710fb82a76968435e22aadc14bec8d30281d49
Changed files:
- python/elast... | diff --git a/python/elasticdl/system/__init__.py b/python/elasticdl/system/__init__.py
new file mode 100644
index 0000000..0000000
diff --git a/python/elasticdl/system/master.py b/python/elasticdl/system/master.py
new file mode 100644
index 0000000..0000000
--- /dev/null
+++ b/python/elasticdl/system/master.py
@@ -0,0 ... | 1,557 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-58",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "00710fb82a76968435e22aadc14bec8d30281d49",
"pull_number": 58,... |
sql-machine-learning__elasticdl-128 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 3eabac325344e47b4e189c6ca6a6a89c2a0c23b4
Changed files:
- experimental... | diff --git a/experimental/swamp-optimization/mnist/mnist.py b/experimental/swamp-optimization/mnist/mnist.py
index 0000000..0000000 100644
--- a/experimental/swamp-optimization/mnist/mnist.py
+++ b/experimental/swamp-optimization/mnist/mnist.py
@@ -46,6 +46,12 @@ class TrainedModel(object):
self.version = vers... | 10,495 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-128",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "3eabac325344e47b4e189c6ca6a6a89c2a0c23b4",
"pull_number": 12... |
sql-machine-learning__elasticdl-133 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 2f464b6cddbeb249f19c8f2a94ebbf388befbd83
Changed files:
- experimental... | diff --git a/experimental/swamp-optimization/mnist/mnist.py b/experimental/swamp-optimization/mnist/mnist.py
index 0000000..0000000 100644
--- a/experimental/swamp-optimization/mnist/mnist.py
+++ b/experimental/swamp-optimization/mnist/mnist.py
@@ -144,7 +144,12 @@ class Trainer(object):
def _pull_model(self):
... | 11,125 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-133",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "2f464b6cddbeb249f19c8f2a94ebbf388befbd83",
"pull_number": 13... |
sql-machine-learning__elasticdl-264 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: acc4c46326732d9b778b097ac5ee927f37a02fb4
Changed files:
- elasticdl/ma... | diff --git a/elasticdl/master/servicer.py b/elasticdl/master/servicer.py
index 0000000..0000000 100644
--- a/elasticdl/master/servicer.py
+++ b/elasticdl/master/servicer.py
@@ -1,5 +1,7 @@
import threading
+import numpy as np
+import tensorflow as tf
from proto import master_pb2
from proto import master_pb2_grpc
... | 2,533 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-264",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "acc4c46326732d9b778b097ac5ee927f37a02fb4",
"pull_number": 26... |
sql-machine-learning__elasticdl-265 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: df33b5685a3b169a47785bc9a948535309dad9b8
Changed files:
- elasticdl/ma... | diff --git a/elasticdl/master/servicer.py b/elasticdl/master/servicer.py
index 0000000..0000000 100644
--- a/elasticdl/master/servicer.py
+++ b/elasticdl/master/servicer.py
@@ -2,6 +2,8 @@ import threading
import numpy as np
import tensorflow as tf
+assert tf.executing_eagerly()
+
from proto import master_pb2
fro... | 2,895 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-265",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "df33b5685a3b169a47785bc9a948535309dad9b8",
"pull_number": 26... |
sql-machine-learning__elasticdl-268 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: df33b5685a3b169a47785bc9a948535309dad9b8
Changed files:
- elasticdl/wo... | diff --git a/elasticdl/worker/worker.py b/elasticdl/worker/worker.py
index 0000000..0000000 100644
--- a/elasticdl/worker/worker.py
+++ b/elasticdl/worker/worker.py
@@ -1,4 +1,6 @@
import tensorflow as tf
+assert tf.executing_eagerly()
+
from tensorflow.python.ops import math_ops
from proto import master_pb2
from p... | 1,981 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-268",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "df33b5685a3b169a47785bc9a948535309dad9b8",
"pull_number": 26... |
sql-machine-learning__elasticdl-282 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: c978ea987f0d92a3ca6e723ea2d6a96cccded8fc
Changed files:
- elasticdl/ma... | diff --git a/elasticdl/master/servicer.py b/elasticdl/master/servicer.py
index 0000000..0000000 100644
--- a/elasticdl/master/servicer.py
+++ b/elasticdl/master/servicer.py
@@ -66,7 +66,7 @@ class MasterServicer(master_pb2_grpc.MasterServicer):
self._gradient_sum.clear()
self._grad_n = 0
- def Re... | 2,936 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-282",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "c978ea987f0d92a3ca6e723ea2d6a96cccded8fc",
"pull_number": 28... |
sql-machine-learning__elasticdl-286 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: a697709bb385322be1a7f2309f6982efdd4b8e19
Changed files:
- elasticdl/da... | diff --git a/elasticdl/data/tf_example_codec.py b/elasticdl/data/tf_example_codec.py
new file mode 100644
index 0000000..0000000
--- /dev/null
+++ b/elasticdl/data/tf_example_codec.py
@@ -0,0 +1,53 @@
+from enum import Enum
+import tensorflow as tf
+
+class TFExampleCodec(object):
+
+ def __init__(self, feature_sch... | 1,008 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-286",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "a697709bb385322be1a7f2309f6982efdd4b8e19",
"pull_number": 28... |
sql-machine-learning__elasticdl-306 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: fee2559b583fcbcc04ead3fe3557578449099d4a
Changed files:
- elasticdl/ma... | diff --git a/elasticdl/master/main.py b/elasticdl/master/main.py
index 0000000..0000000 100644
--- a/elasticdl/master/main.py
+++ b/elasticdl/master/main.py
@@ -13,7 +13,7 @@ from recordio import File
from proto import master_pb2_grpc
from .servicer import MasterServicer
from .task_queue import _TaskQueue
-from comm... | 5,608 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-306",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "fee2559b583fcbcc04ead3fe3557578449099d4a",
"pull_number": 30... |
sql-machine-learning__elasticdl-308 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: a8e410c60ef414ae1645db2c2812fc7c2c57cccf
Changed files:
- elasticdl/ex... | diff --git a/elasticdl/examples/mnist/mnist.py b/elasticdl/examples/mnist/mnist.py
index 0000000..0000000 100644
--- a/elasticdl/examples/mnist/mnist.py
+++ b/elasticdl/examples/mnist/mnist.py
@@ -25,13 +25,14 @@ class MnistModel(tf.keras.Model):
self._flatten = tf.keras.layers.Flatten()
self._dense =... | 6,077 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-308",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "a8e410c60ef414ae1645db2c2812fc7c2c57cccf",
"pull_number": 30... |
sql-machine-learning__elasticdl-322 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 64f928e7aa72d6e3f8f0e4d85cf7bfa1a73eee19
Changed files:
- elasticdl/cl... | diff --git a/elasticdl/client/client.py b/elasticdl/client/client.py
index 0000000..0000000 100644
--- a/elasticdl/client/client.py
+++ b/elasticdl/client/client.py
@@ -4,6 +4,8 @@ import shutil
import time
import getpass
from string import Template
+import docker
+
def run(model_class, train_data_dir=None,
... | 2,370 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-322",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "64f928e7aa72d6e3f8f0e4d85cf7bfa1a73eee19",
"pull_number": 32... |
sql-machine-learning__elasticdl-323 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: b2a4ea6a4c7df6c663b13083b59a24001811bc36
Changed files:
- elasticdl/cl... | diff --git a/elasticdl/client/client.py b/elasticdl/client/client.py
index 0000000..0000000 100644
--- a/elasticdl/client/client.py
+++ b/elasticdl/client/client.py
@@ -5,6 +5,9 @@ import time
import getpass
from string import Template
import docker
+import yaml
+from kubernetes.client.apis import core_v1_api
+from ... | 2,472 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-323",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "b2a4ea6a4c7df6c663b13083b59a24001811bc36",
"pull_number": 32... |
sql-machine-learning__elasticdl-332 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 3616a1e3dc939f5f9db1db2455b0c977ba5d7ce0
Changed files:
- elasticdl/re... | diff --git a/elasticdl/recordio_ds_gen/cifar10/gen_data.py b/elasticdl/recordio_ds_gen/cifar10/gen_data.py
index 0000000..0000000 100755
--- a/elasticdl/recordio_ds_gen/cifar10/gen_data.py
+++ b/elasticdl/recordio_ds_gen/cifar10/gen_data.py
@@ -11,7 +11,7 @@ import sys
from recordio import File
from tensorflow.python... | 2,578 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-332",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "3616a1e3dc939f5f9db1db2455b0c977ba5d7ce0",
"pull_number": 33... |
sql-machine-learning__elasticdl-334 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 435ebb722e824d8294ee967480b554bd43d8daea
Changed files:
- elasticdl/cl... | diff --git a/elasticdl/client/client.py b/elasticdl/client/client.py
index 0000000..0000000 100644
--- a/elasticdl/client/client.py
+++ b/elasticdl/client/client.py
@@ -1,6 +1,6 @@
import os
import inspect
-import shutil
+import tempfile
import time
import getpass
from string import Template
@@ -13,32 +13,29 @@ fr... | 2,423 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-334",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "435ebb722e824d8294ee967480b554bd43d8daea",
"pull_number": 33... |
sql-machine-learning__elasticdl-344 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: abd9f38ee52dfe1c8e0d2fb09cbbe74d7e3459bf
Changed files:
- edl_k8s_exam... | diff --git a/edl_k8s_examples/mnist_model.py b/edl_k8s_examples/mnist_model.py
index 0000000..0000000 100644
--- a/edl_k8s_examples/mnist_model.py
+++ b/edl_k8s_examples/mnist_model.py
@@ -41,7 +41,7 @@ input_names = ['image']
def loss(output, labels):
return tf.reduce_mean(
tf.nn.sparse_softmax_cross_en... | 5,967 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-344",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "abd9f38ee52dfe1c8e0d2fb09cbbe74d7e3459bf",
"pull_number": 34... |
sql-machine-learning__elasticdl-352 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 7e8b25c4e5204913de1dfb3c6754de21184ca1dc
Changed files:
- elasticdl/cl... | diff --git a/elasticdl/client/client.py b/elasticdl/client/client.py
index 0000000..0000000 100644
--- a/elasticdl/client/client.py
+++ b/elasticdl/client/client.py
@@ -16,7 +16,8 @@ def _m_file_in_docker(model_file):
return "/model/" + os.path.basename(model_file)
def _build_docker_image(
- m_file, timestam... | 2,071 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-352",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "7e8b25c4e5204913de1dfb3c6754de21184ca1dc",
"pull_number": 35... |
sql-machine-learning__elasticdl-354 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 080814308fe717b336474f3d9d79e60a1cc82bd6
Changed files:
- record_codec... | diff --git a/record_codec/__init__.py b/record_codec/__init__.py
index 0000000..0000000 100644
--- a/record_codec/__init__.py
+++ b/record_codec/__init__.py
@@ -0,0 +1,3 @@
+from record_codec.tf_example_codec import TFExampleCodec
+
+__all__=[TFExampleCodec]
diff --git a/record_codec/tf_example_codec.py b/record_codec/... | 1,007 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-354",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "080814308fe717b336474f3d9d79e60a1cc82bd6",
"pull_number": 35... |
sql-machine-learning__elasticdl-355 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 3b245cbf30537b2e594404f3e8028eee6172fbcd
Changed files:
- record_codec... | diff --git a/record_codec/__init__.py b/record_codec/__init__.py
index 0000000..0000000 100644
--- a/record_codec/__init__.py
+++ b/record_codec/__init__.py
@@ -1,3 +1,4 @@
+from record_codec.bytes_codec import BytesCodec
from record_codec.tf_example_codec import TFExampleCodec
-__all__=[TFExampleCodec]
+__all__=[By... | 1,109 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-355",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "3b245cbf30537b2e594404f3e8028eee6172fbcd",
"pull_number": 35... |
sql-machine-learning__elasticdl-368 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: e51ef15c0abbf86f7972df1b2efb4268769ce22e
Changed files:
- elasticdl/ma... | diff --git a/elasticdl/master/main.py b/elasticdl/master/main.py
index 0000000..0000000 100644
--- a/elasticdl/master/main.py
+++ b/elasticdl/master/main.py
@@ -65,6 +65,7 @@ def _parse_args():
parser.add_argument(
"--codec-type",
default=None,
+ choices=["tf_example"],
help="Type... | 3,262 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-368",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "e51ef15c0abbf86f7972df1b2efb4268769ce22e",
"pull_number": 36... |
sql-machine-learning__elasticdl-369 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: e51ef15c0abbf86f7972df1b2efb4268769ce22e
Changed files:
- elasticdl/cl... | diff --git a/elasticdl/client/client.py b/elasticdl/client/client.py
index 0000000..0000000 100644
--- a/elasticdl/client/client.py
+++ b/elasticdl/client/client.py
@@ -28,11 +28,15 @@ COPY {} {}
df.write(DOCKER_TEMPLATE.format(image_base, m_file, _m_file_in_docker(m_file)))
client = docker.APIClient(ba... | 3,461 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-369",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "e51ef15c0abbf86f7972df1b2efb4268769ce22e",
"pull_number": 36... |
sql-machine-learning__elasticdl-373 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: e0fd75134601e5943b9e95d17c185591a1f43cff
Changed files:
- elasticdl/cl... | diff --git a/elasticdl/client/client.py b/elasticdl/client/client.py
index 0000000..0000000 100644
--- a/elasticdl/client/client.py
+++ b/elasticdl/client/client.py
@@ -32,12 +32,14 @@ COPY {} {}
for line in client.build(
dockerfile=df.name, path=".", rm=True, tag=image_name, decode=True
):
+ ... | 2,600 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-373",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "e0fd75134601e5943b9e95d17c185591a1f43cff",
"pull_number": 37... |
sql-machine-learning__elasticdl-397 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: c2d8cc43d0a6d4e77bea1ede54fabbb235cee132
Changed files:
- elasticdl/wo... | diff --git a/elasticdl/worker/worker.py b/elasticdl/worker/worker.py
index 0000000..0000000 100644
--- a/elasticdl/worker/worker.py
+++ b/elasticdl/worker/worker.py
@@ -30,15 +30,21 @@ class Worker(object):
channel: grpc channel
max_retrain_num: max number of a minibatch retrain as its gradien... | 5,175 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-397",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "c2d8cc43d0a6d4e77bea1ede54fabbb235cee132",
"pull_number": 39... |
sql-machine-learning__elasticdl-436 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: fbc2cedc08f3e72440120fcb8c358638b0ff0ad0
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/master/main.py b/elasticdl/python/elasticdl/master/main.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/master/main.py
+++ b/elasticdl/python/elasticdl/master/main.py
@@ -163,13 +163,7 @@ def main():
if args.num_worker:
# TODO: worker_manager.remov... | 3,849 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-436",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "fbc2cedc08f3e72440120fcb8c358638b0ff0ad0",
"pull_number": 43... |
sql-machine-learning__elasticdl-451 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: c76395d165ec493d93d53d12ac8d188317de23ee
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/master/servicer.py b/elasticdl/python/elasticdl/master/servicer.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/master/servicer.py
+++ b/elasticdl/python/elasticdl/master/servicer.py
@@ -58,7 +58,7 @@ class MasterServicer(master_pb2_grpc.MasterServicer):
... | 10,033 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-451",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "c76395d165ec493d93d53d12ac8d188317de23ee",
"pull_number": 45... |
sql-machine-learning__elasticdl-452 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 15f0c7337439d60f22aa5928544e5044bd46f2af
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/master/k8s_worker_manager.py b/elasticdl/python/elasticdl/master/k8s_worker_manager.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/master/k8s_worker_manager.py
+++ b/elasticdl/python/elasticdl/master/k8s_worker_manager.py
@@ -6,8 +6,8 @@ from collections import... | 7,404 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-452",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "15f0c7337439d60f22aa5928544e5044bd46f2af",
"pull_number": 45... |
sql-machine-learning__elasticdl-510 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 00b9747979b66dc2b600fcd0d03cfb40c019efb9
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/master/servicer.py b/elasticdl/python/elasticdl/master/servicer.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/master/servicer.py
+++ b/elasticdl/python/elasticdl/master/servicer.py
@@ -39,6 +39,7 @@ class MasterServicer(elasticdl_pb2_grpc.MasterServicer):
... | 3,983 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-510",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "00b9747979b66dc2b600fcd0d03cfb40c019efb9",
"pull_number": 51... |
sql-machine-learning__elasticdl-514 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: f990b7abdb56ab60c1f00c5d00f9920e78692b12
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/master/k8s.py b/elasticdl/python/elasticdl/master/k8s.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/master/k8s.py
+++ b/elasticdl/python/elasticdl/master/k8s.py
@@ -109,7 +109,7 @@ class Client(object):
worker_id, resource_requests, resource_limit... | 9,740 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-514",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "f990b7abdb56ab60c1f00c5d00f9920e78692b12",
"pull_number": 51... |
sql-machine-learning__elasticdl-526 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: f3516a5885f9ebaf41c756a9adaa58ce8cd5ae7c
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/master/servicer.py b/elasticdl/python/elasticdl/master/servicer.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/master/servicer.py
+++ b/elasticdl/python/elasticdl/master/servicer.py
@@ -214,8 +214,9 @@ class MasterServicer(elasticdl_pb2_grpc.MasterServicer):
... | 11,367 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-526",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "f3516a5885f9ebaf41c756a9adaa58ce8cd5ae7c",
"pull_number": 52... |
sql-machine-learning__elasticdl-532 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 94a6f4f5f19a1409223f91ae5c89d5818edb3ecd
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/master/main.py b/elasticdl/python/elasticdl/master/main.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/master/main.py
+++ b/elasticdl/python/elasticdl/master/main.py
@@ -157,7 +157,9 @@ def main():
"--master_addr",
master_addr,
... | 4,356 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-532",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "94a6f4f5f19a1409223f91ae5c89d5818edb3ecd",
"pull_number": 53... |
sql-machine-learning__elasticdl-535 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: dc4f915feabb0a29c7036b46bf55379c3adf0854
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/common/model_helper.py b/elasticdl/python/elasticdl/common/model_helper.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/common/model_helper.py
+++ b/elasticdl/python/elasticdl/common/model_helper.py
@@ -1,5 +1,6 @@
# common helper methods for model manipulation... | 9,900 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-535",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "dc4f915feabb0a29c7036b46bf55379c3adf0854",
"pull_number": 53... |
sql-machine-learning__elasticdl-537 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: a0290a22875423e09ef50d19469111ad84d7f33a
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/master/servicer.py b/elasticdl/python/elasticdl/master/servicer.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/master/servicer.py
+++ b/elasticdl/python/elasticdl/master/servicer.py
@@ -77,6 +77,10 @@ class MasterServicer(elasticdl_pb2_grpc.MasterServicer):
... | 4,193 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-537",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "a0290a22875423e09ef50d19469111ad84d7f33a",
"pull_number": 53... |
sql-machine-learning__elasticdl-541 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 66101d5d81fe1a91ab841f51703b4805d9542b37
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/client/client.py b/elasticdl/python/elasticdl/client/client.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/client/client.py
+++ b/elasticdl/python/elasticdl/client/client.py
@@ -14,9 +14,9 @@ from kubernetes import config
def _m_file_in_docker(model_file):
... | 10,395 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-541",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "66101d5d81fe1a91ab841f51703b4805d9542b37",
"pull_number": 54... |
sql-machine-learning__elasticdl-545 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 01f46ef3c12dc979418334c32c6b5ef2f44c64ee
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/worker/main.py b/elasticdl/python/elasticdl/worker/main.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/worker/main.py
+++ b/elasticdl/python/elasticdl/worker/main.py
@@ -33,6 +33,18 @@ def _parse_args():
default='WARNING',
help="Set the loggin... | 8,206 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-545",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "01f46ef3c12dc979418334c32c6b5ef2f44c64ee",
"pull_number": 54... |
sql-machine-learning__elasticdl-560 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 80ac61d4a749cb691bf1d6eadddfc7b193fcb149
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/master/main.py b/elasticdl/python/elasticdl/master/main.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/master/main.py
+++ b/elasticdl/python/elasticdl/master/main.py
@@ -79,6 +79,11 @@ def _parse_args():
help="the number of workers used in training",
... | 10,627 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-560",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "80ac61d4a749cb691bf1d6eadddfc7b193fcb149",
"pull_number": 56... |
sql-machine-learning__elasticdl-580 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: be16bb6cacebabce91c2282ae4178a08e21d3b59
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/master/k8s_client.py b/elasticdl/python/elasticdl/master/k8s_client.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/master/k8s_client.py
+++ b/elasticdl/python/elasticdl/master/k8s_client.py
@@ -5,6 +5,8 @@ import traceback
from kubernetes import client, conf... | 7,143 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-580",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "be16bb6cacebabce91c2282ae4178a08e21d3b59",
"pull_number": 58... |
sql-machine-learning__elasticdl-622 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: c6be3ef2e2fd9cddc0841da995a58ace52ffcd47
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/data/codec/bytes_codec.py b/elasticdl/python/data/codec/bytes_codec.py
index 0000000..0000000 100644
--- a/elasticdl/python/data/codec/bytes_codec.py
+++ b/elasticdl/python/data/codec/bytes_codec.py
@@ -12,7 +12,10 @@ class BytesCodec(object):
# Check that all columns are present.... | 8,640 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-622",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "c6be3ef2e2fd9cddc0841da995a58ace52ffcd47",
"pull_number": 62... |
sql-machine-learning__elasticdl-636 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 18e1d26b0b863f6f25aedd518e42eb4d16ae97b2
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/data/codec/__init__.py b/elasticdl/python/data/codec/__init__.py
index 0000000..0000000 100644
--- a/elasticdl/python/data/codec/__init__.py
+++ b/elasticdl/python/data/codec/__init__.py
@@ -1,4 +1,4 @@
from elasticdl.python.data.codec.bytes_codec import BytesCodec
from elasticdl.python.... | 7,832 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-636",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "18e1d26b0b863f6f25aedd518e42eb4d16ae97b2",
"pull_number": 63... |
sql-machine-learning__elasticdl-638 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 44231b97d5caab7d9b6615fff4736ac56a186f28
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/client/client.py b/elasticdl/python/elasticdl/client/client.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/client/client.py
+++ b/elasticdl/python/elasticdl/client/client.py
@@ -11,6 +11,131 @@ from kubernetes.client.apis import core_v1_api
from kubernetes imp... | 6,172 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-638",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "44231b97d5caab7d9b6615fff4736ac56a186f28",
"pull_number": 63... |
sql-machine-learning__elasticdl-643 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 04596d37428c4568838587aae3fc9611dcf86fc9
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/master/k8s_client.py b/elasticdl/python/elasticdl/master/k8s_client.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/master/k8s_client.py
+++ b/elasticdl/python/elasticdl/master/k8s_client.py
@@ -103,6 +103,16 @@ class Client(object):
if priority is not ... | 3,663 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-643",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "04596d37428c4568838587aae3fc9611dcf86fc9",
"pull_number": 64... |
sql-machine-learning__elasticdl-657 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 1699ec83a50ef523d04b67eecf2274178d798e39
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/data/codec/__init__.py b/elasticdl/python/data/codec/__init__.py
index 0000000..0000000 100644
--- a/elasticdl/python/data/codec/__init__.py
+++ b/elasticdl/python/data/codec/__init__.py
@@ -1,4 +1,4 @@
from elasticdl.python.data.codec.bytes_codec import BytesCodec
from elasticdl.python.... | 2,530 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-657",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "1699ec83a50ef523d04b67eecf2274178d798e39",
"pull_number": 65... |
sql-machine-learning__elasticdl-659 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: d5dd3c6dc3a70f8e8cb6df1c35610731d05cebf9
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/worker/worker.py b/elasticdl/python/elasticdl/worker/worker.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/worker/worker.py
+++ b/elasticdl/python/elasticdl/worker/worker.py
@@ -166,6 +166,7 @@ class Worker(object):
return self.report_evaluation_metric... | 5,422 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-659",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "d5dd3c6dc3a70f8e8cb6df1c35610731d05cebf9",
"pull_number": 65... |
sql-machine-learning__elasticdl-669 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 004f8c70168a4c631bc83054362e293d2aa27009
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/client/client.py b/elasticdl/python/elasticdl/client/client.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/client/client.py
+++ b/elasticdl/python/elasticdl/client/client.py
@@ -5,6 +5,8 @@ import sys
import docker
import yaml
+import shutil
+from string im... | 6,854 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-669",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "004f8c70168a4c631bc83054362e293d2aa27009",
"pull_number": 66... |
sql-machine-learning__elasticdl-710 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: cd813d68d51edc2904ed9ff84c0708ef14e70207
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/client/client.py b/elasticdl/python/elasticdl/client/client.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/client/client.py
+++ b/elasticdl/python/elasticdl/client/client.py
@@ -95,6 +95,13 @@ def _add_train_params(parser):
parser.add_argument(
"-... | 17,176 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-710",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "cd813d68d51edc2904ed9ff84c0708ef14e70207",
"pull_number": 71... |
sql-machine-learning__elasticdl-727 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: eb489e466ff658e0a97f07780f36cb277fbae64a
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/common/constants.py b/elasticdl/python/elasticdl/common/constants.py
new file mode 100644
index 0000000..0000000
--- /dev/null
+++ b/elasticdl/python/elasticdl/common/constants.py
@@ -0,0 +1,5 @@
+class GRPC(object):
+ # gRPC limits the size of message by default to 4MB.
+ ... | 8,677 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-727",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "eb489e466ff658e0a97f07780f36cb277fbae64a",
"pull_number": 72... |
sql-machine-learning__elasticdl-728 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: eafb9556e633567019c93bfadf64231c1671e64a
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/worker/worker.py b/elasticdl/python/elasticdl/worker/worker.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/worker/worker.py
+++ b/elasticdl/python/elasticdl/worker/worker.py
@@ -234,7 +234,11 @@ class Worker(object):
err_msg = ""
try:
... | 6,067 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-728",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "eafb9556e633567019c93bfadf64231c1671e64a",
"pull_number": 72... |
sql-machine-learning__elasticdl-742 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: c062cfe14459883d0fcc908fe175fefdf15b6151
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/client/client.py b/elasticdl/python/elasticdl/client/client.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/client/client.py
+++ b/elasticdl/python/elasticdl/client/client.py
@@ -236,17 +236,16 @@ def _submit(image_name, model_file, job_name, args, argv):
... | 14,057 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-742",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "c062cfe14459883d0fcc908fe175fefdf15b6151",
"pull_number": 74... |
sql-machine-learning__elasticdl-761 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 18381d011e291466c7d2edb50dcbe1a8ad8e89ab
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/common/k8s_utils.py b/elasticdl/python/elasticdl/common/k8s_utils.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/common/k8s_utils.py
+++ b/elasticdl/python/elasticdl/common/k8s_utils.py
@@ -2,6 +2,10 @@ import re
_ALLOWED_RESOURCE_TYPES = ["memory", "disk"... | 1,898 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-761",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "18381d011e291466c7d2edb50dcbe1a8ad8e89ab",
"pull_number": 76... |
sql-machine-learning__elasticdl-773 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 841133d68ae88a0282a9a8a1d1a5cc620b53ef7e
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/master/tensorboard_service.py b/elasticdl/python/elasticdl/master/tensorboard_service.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/master/tensorboard_service.py
+++ b/elasticdl/python/elasticdl/master/tensorboard_service.py
@@ -34,7 +34,10 @@ class Tensorboar... | 1,673 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-773",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "841133d68ae88a0282a9a8a1d1a5cc620b53ef7e",
"pull_number": 77... |
sql-machine-learning__elasticdl-831 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 537950b5801fe6a212a6b9d5a0456f6276096635
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/master/servicer.py b/elasticdl/python/master/servicer.py
index 0000000..0000000 100644
--- a/elasticdl/python/master/servicer.py
+++ b/elasticdl/python/master/servicer.py
@@ -103,6 +103,9 @@ class MasterServicer(elasticdl_pb2_grpc.MasterServicer):
# For evaluation task, it wil... | 11,994 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-831",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "537950b5801fe6a212a6b9d5a0456f6276096635",
"pull_number": 83... |
sql-machine-learning__elasticdl-838 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 7d77ff1140709a52283acb8c04e3d76c7e294728
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/client/client.py b/elasticdl/python/client/client.py
index 0000000..0000000 100644
--- a/elasticdl/python/client/client.py
+++ b/elasticdl/python/client/client.py
@@ -1,14 +1,10 @@
import argparse
import os
-import shutil
-import sys
-import tempfile
-
-import docker
+from elasticdl.py... | 8,516 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-838",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "7d77ff1140709a52283acb8c04e3d76c7e294728",
"pull_number": 83... |
sql-machine-learning__elasticdl-856 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 6835a379412cc05b30fda227bb5536b42b1c01df
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/master/evaluation_service.py b/elasticdl/python/master/evaluation_service.py
index 0000000..0000000 100644
--- a/elasticdl/python/master/evaluation_service.py
+++ b/elasticdl/python/master/evaluation_service.py
@@ -81,7 +81,7 @@ class _EvaluationTrigger(Thread):
time_now = tim... | 15,079 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-856",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "6835a379412cc05b30fda227bb5536b42b1c01df",
"pull_number": 85... |
sql-machine-learning__elasticdl-860 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: ceab5027ac65f2e7ec2748010b13a1c1f48fa7ef
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/api.py b/elasticdl/python/elasticdl/api.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/api.py
+++ b/elasticdl/python/elasticdl/api.py
@@ -8,77 +8,58 @@ from elasticdl.python.elasticdl.image_builder import (
MODEL_ROOT_PATH = "/model_zoo"
-def train(
- j... | 12,219 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-860",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "ceab5027ac65f2e7ec2748010b13a1c1f48fa7ef",
"pull_number": 86... |
sql-machine-learning__elasticdl-887 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 726f4b24ec29ef9b6f8856e65cbeed814de30103
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/common/constants.py b/elasticdl/python/common/constants.py
index 0000000..0000000 100644
--- a/elasticdl/python/common/constants.py
+++ b/elasticdl/python/common/constants.py
@@ -3,3 +3,9 @@ class GRPC(object):
# It's too small to send model parameters.
MAX_SEND_MESSAGE_LENGTH = ... | 9,055 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-887",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "726f4b24ec29ef9b6f8856e65cbeed814de30103",
"pull_number": 88... |
sql-machine-learning__elasticdl-904 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 56ab16f714b944fa533f89d4d518c1500f2f792e
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/examples/resnet50_subclass/resnet50_subclass.py b/elasticdl/python/examples/resnet50_subclass/resnet50_subclass.py
index 0000000..0000000 100644
--- a/elasticdl/python/examples/resnet50_subclass/resnet50_subclass.py
+++ b/elasticdl/python/examples/resnet50_subclass/resnet50_subclass.py
@@ ... | 10,153 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-904",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "56ab16f714b944fa533f89d4d518c1500f2f792e",
"pull_number": 90... |
sql-machine-learning__elasticdl-910 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 56ab16f714b944fa533f89d4d518c1500f2f792e
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/image_builder.py b/elasticdl/python/elasticdl/image_builder.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/image_builder.py
+++ b/elasticdl/python/elasticdl/image_builder.py
@@ -143,6 +143,15 @@ def _generate_unique_image_name(prefix):
)
+def _print_do... | 4,647 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-910",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "56ab16f714b944fa533f89d4d518c1500f2f792e",
"pull_number": 91... |
sql-machine-learning__elasticdl-923 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 983fc5d45081ccb49a33b1217960714637b41c0c
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/api.py b/elasticdl/python/elasticdl/api.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/api.py
+++ b/elasticdl/python/elasticdl/api.py
@@ -85,21 +85,7 @@ def train(args):
else args.master_resource_request
)
- k8s.Client(
- image_name=im... | 4,011 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-923",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "983fc5d45081ccb49a33b1217960714637b41c0c",
"pull_number": 92... |
sql-machine-learning__elasticdl-948 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 649b2c9b92e619a7888df449b89934059cbd6e32
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/common/constants.py b/elasticdl/python/common/constants.py
index 0000000..0000000 100644
--- a/elasticdl/python/common/constants.py
+++ b/elasticdl/python/common/constants.py
@@ -9,3 +9,10 @@ class WorkerManagerStatus(object):
PENDING = "Pending"
RUNNING = "Running"
FINISHED... | 4,031 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-948",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "649b2c9b92e619a7888df449b89934059cbd6e32",
"pull_number": 94... |
sql-machine-learning__elasticdl-952 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 4ecc9f9c7ec0c07789c7f2043e7e6668683e2778
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/worker/worker.py b/elasticdl/python/worker/worker.py
index 0000000..0000000 100644
--- a/elasticdl/python/worker/worker.py
+++ b/elasticdl/python/worker/worker.py
@@ -155,7 +155,8 @@ class Worker(object):
self.report_variable()
self._var_created = True
- def _run_tra... | 6,455 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-952",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "4ecc9f9c7ec0c07789c7f2043e7e6668683e2778",
"pull_number": 95... |
sql-machine-learning__elasticdl-973 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 97f17b93628919ebbabae98ee9db2ddae16e9d85
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/common/dataset.py b/elasticdl/python/common/dataset.py
new file mode 100644
index 0000000..0000000
--- /dev/null
+++ b/elasticdl/python/common/dataset.py
@@ -0,0 +1,33 @@
+from contextlib import closing
+
+import recordio
+import tensorflow as tf
+
+
+def recordio_dataset(recordio_shards):... | 11,045 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-973",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "97f17b93628919ebbabae98ee9db2ddae16e9d85",
"pull_number": 97... |
sql-machine-learning__elasticdl-1005 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 36f41eaaf7a202abb87f4b4ba37d89b6c51e8ce3
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/common/ndarray.py b/elasticdl/python/common/ndarray.py
index 0000000..0000000 100644
--- a/elasticdl/python/common/ndarray.py
+++ b/elasticdl/python/common/ndarray.py
@@ -1,4 +1,5 @@
import numpy as np
+import tensorflow as tf
from elasticdl.proto import elasticdl_pb2
@@ -23,15 +24,2... | 15,334 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1005",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "36f41eaaf7a202abb87f4b4ba37d89b6c51e8ce3",
"pull_number": 1... |
sql-machine-learning__elasticdl-1028 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: a1088244fc175daa0bba7140436ce9db0fce7903
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/layers/embedding.py b/elasticdl/python/layers/embedding.py
new file mode 100644
index 0000000..0000000
--- /dev/null
+++ b/elasticdl/python/layers/embedding.py
@@ -0,0 +1,57 @@
+import tensorflow as tf
+from tensorflow.python.keras.utils import tf_utils
+
+
+class EdlEmbedding(tf.keras.lay... | 795 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1028",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "a1088244fc175daa0bba7140436ce9db0fce7903",
"pull_number": 1... |
sql-machine-learning__elasticdl-1030 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: bad02461320189ed392caec7b937ccd0e800b897
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/common/tensor_helper.py b/elasticdl/python/common/tensor_helper.py
new file mode 100644
index 0000000..0000000
--- /dev/null
+++ b/elasticdl/python/common/tensor_helper.py
@@ -0,0 +1,8 @@
+import tensorflow as tf
+
+
+def merge_indexed_slices(*args):
+ return tf.IndexedSlices(
+ ... | 16,705 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1030",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "bad02461320189ed392caec7b937ccd0e800b897",
"pull_number": 1... |
sql-machine-learning__elasticdl-1032 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 8b9574706b730172e9ed8b161309a302e35c8dce
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/layers/embedding.py b/elasticdl/python/elasticdl/layers/embedding.py
new file mode 100644
index 0000000..0000000
--- /dev/null
+++ b/elasticdl/python/elasticdl/layers/embedding.py
@@ -0,0 +1,57 @@
+import tensorflow as tf
+from tensorflow.python.keras.utils import tf_utils
+
+
+c... | 18,039 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1032",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "8b9574706b730172e9ed8b161309a302e35c8dce",
"pull_number": 1... |
sql-machine-learning__elasticdl-1035 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 8a172a45b095c5a2ab3cbb5858c8da773ec7e377
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/worker/worker.py b/elasticdl/python/worker/worker.py
index 0000000..0000000 100644
--- a/elasticdl/python/worker/worker.py
+++ b/elasticdl/python/worker/worker.py
@@ -6,6 +6,7 @@ from elasticdl.proto import elasticdl_pb2, elasticdl_pb2_grpc
from elasticdl.python.common.constants import Jo... | 9,558 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1035",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "8a172a45b095c5a2ab3cbb5858c8da773ec7e377",
"pull_number": 1... |
sql-machine-learning__elasticdl-1037 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: a34e1ce920183146a9cc05b5dfd3c806b60d3604
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/layers/embedding.py b/elasticdl/python/elasticdl/layers/embedding.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/layers/embedding.py
+++ b/elasticdl/python/elasticdl/layers/embedding.py
@@ -33,15 +33,23 @@ class Embedding(tf.keras.layers.Layer):
def get_ke... | 11,297 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1037",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "a34e1ce920183146a9cc05b5dfd3c806b60d3604",
"pull_number": 1... |
sql-machine-learning__elasticdl-1038 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 2f4c7faf611b81bae236aa4412e68eaca7766835
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/master/servicer.py b/elasticdl/python/master/servicer.py
index 0000000..0000000 100644
--- a/elasticdl/python/master/servicer.py
+++ b/elasticdl/python/master/servicer.py
@@ -5,6 +5,7 @@ import tensorflow as tf
from google.protobuf import empty_pb2
from elasticdl.proto import elasticdl... | 9,051 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1038",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "2f4c7faf611b81bae236aa4412e68eaca7766835",
"pull_number": 1... |
sql-machine-learning__elasticdl-1044 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 23f3091b9eefc49e2940b7d188745835a546bf4c
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/common/args.py b/elasticdl/python/common/args.py
index 0000000..0000000 100644
--- a/elasticdl/python/common/args.py
+++ b/elasticdl/python/common/args.py
@@ -1,3 +1,19 @@
+def pos_int(arg):
+ res = int(arg)
+ if res <= 0:
+ raise ValueError("Positive integer argument required... | 6,790 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1044",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "23f3091b9eefc49e2940b7d188745835a546bf4c",
"pull_number": 1... |
sql-machine-learning__elasticdl-1051 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: ee3f60b035b5b6ba164d745659110546b8f0195a
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/layers/embedding.py b/elasticdl/python/elasticdl/layers/embedding.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/layers/embedding.py
+++ b/elasticdl/python/elasticdl/layers/embedding.py
@@ -6,24 +6,77 @@ class Embedding(tf.keras.layers.Layer):
"""
Inp... | 2,468 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1051",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "ee3f60b035b5b6ba164d745659110546b8f0195a",
"pull_number": 1... |
sql-machine-learning__elasticdl-1054 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 2f4c7faf611b81bae236aa4412e68eaca7766835
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/api.py b/elasticdl/python/elasticdl/api.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/api.py
+++ b/elasticdl/python/elasticdl/api.py
@@ -28,6 +28,10 @@ def train(args):
_cluster_spec_def_in_docker(args.cluster_spec),
"--num_workers",
... | 11,100 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1054",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "2f4c7faf611b81bae236aa4412e68eaca7766835",
"pull_number": 1... |
sql-machine-learning__elasticdl-1057 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: a0946f9981d22311f4431c20d61c6a92acfd9fe4
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/worker/worker.py b/elasticdl/python/worker/worker.py
index 0000000..0000000 100644
--- a/elasticdl/python/worker/worker.py
+++ b/elasticdl/python/worker/worker.py
@@ -1,9 +1,11 @@
import traceback
+import numpy as np
import tensorflow as tf
from elasticdl.proto import elasticdl_pb2,... | 10,737 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1057",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "a0946f9981d22311f4431c20d61c6a92acfd9fe4",
"pull_number": 1... |
sql-machine-learning__elasticdl-1061 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 93a98cce3c8c456f34c6ef2a0a254467c0777d5b
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/master/main.py b/elasticdl/python/master/main.py
index 0000000..0000000 100644
--- a/elasticdl/python/master/main.py
+++ b/elasticdl/python/master/main.py
@@ -167,6 +167,29 @@ def main():
evaluation_service.start()
task_d.set_evaluation_service(evaluation_service)
+ ... | 18,828 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1061",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "93a98cce3c8c456f34c6ef2a0a254467c0777d5b",
"pull_number": 1... |
sql-machine-learning__elasticdl-1065 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 1efd20f3f85514c85a738c4ef3975fa979991483
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/layers/embedding.py b/elasticdl/python/elasticdl/layers/embedding.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/layers/embedding.py
+++ b/elasticdl/python/elasticdl/layers/embedding.py
@@ -41,7 +41,6 @@ class Embedding(tf.keras.layers.Layer):
self.o... | 4,400 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1065",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "1efd20f3f85514c85a738c4ef3975fa979991483",
"pull_number": 1... |
sql-machine-learning__elasticdl-1067 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: dec3ebaec1dedd838c44dac9ae15f68f65dfa0b9
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/layers/embedding.py b/elasticdl/python/elasticdl/layers/embedding.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/layers/embedding.py
+++ b/elasticdl/python/elasticdl/layers/embedding.py
@@ -87,8 +87,8 @@ class Embedding(tf.keras.layers.Layer):
return "... | 4,426 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1067",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "dec3ebaec1dedd838c44dac9ae15f68f65dfa0b9",
"pull_number": 1... |
sql-machine-learning__elasticdl-1068 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 78a963c10f37bf4cf76ee525c4de13aa202c9417
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/layers/embedding.py b/elasticdl/python/elasticdl/layers/embedding.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/layers/embedding.py
+++ b/elasticdl/python/elasticdl/layers/embedding.py
@@ -88,7 +88,10 @@ class Embedding(tf.keras.layers.Layer):
def looku... | 15,754 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1068",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "78a963c10f37bf4cf76ee525c4de13aa202c9417",
"pull_number": 1... |
sql-machine-learning__elasticdl-1071 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 645255f2b27eafbd806fe2d5cf1a1e15edc08837
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/layers/embedding.py b/elasticdl/python/elasticdl/layers/embedding.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/layers/embedding.py
+++ b/elasticdl/python/elasticdl/layers/embedding.py
@@ -112,9 +112,12 @@ class Embedding(tf.keras.layers.Layer):
s... | 4,501 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1071",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "645255f2b27eafbd806fe2d5cf1a1e15edc08837",
"pull_number": 1... |
sql-machine-learning__elasticdl-1073 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 78a963c10f37bf4cf76ee525c4de13aa202c9417
Changed files:
- model_zoo/de... | diff --git a/model_zoo/deepfm_edl_embedding/deepfm_edl_embedding.py b/model_zoo/deepfm_edl_embedding/deepfm_edl_embedding.py
new file mode 100644
index 0000000..0000000
--- /dev/null
+++ b/model_zoo/deepfm_edl_embedding/deepfm_edl_embedding.py
@@ -0,0 +1,114 @@
+import tensorflow as tf
+import tensorflow.keras.backend ... | 1,540 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1073",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "78a963c10f37bf4cf76ee525c4de13aa202c9417",
"pull_number": 1... |
sql-machine-learning__elasticdl-1077 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: b51601bac7fa7661b261acdf7c10b5cf3d4845e2
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/common/embedding_service.py b/elasticdl/python/common/embedding_service.py
index 0000000..0000000 100644
--- a/elasticdl/python/common/embedding_service.py
+++ b/elasticdl/python/common/embedding_service.py
@@ -296,7 +296,7 @@ class EmbeddingService(object):
if (
keys... | 17,187 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1077",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "b51601bac7fa7661b261acdf7c10b5cf3d4845e2",
"pull_number": 1... |
sql-machine-learning__elasticdl-1087 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: d45c8763cdebbc18cba89fa0e2ab9a450c32c3bf
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/master/optimizer_wrapper.py b/elasticdl/python/master/optimizer_wrapper.py
new file mode 100644
index 0000000..0000000
--- /dev/null
+++ b/elasticdl/python/master/optimizer_wrapper.py
@@ -0,0 +1,265 @@
+"""Optimizer Wrapper for ElasticDL"""
+
+
+import numpy as np
+import tensorflow as tf
... | 3,418 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1087",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "d45c8763cdebbc18cba89fa0e2ab9a450c32c3bf",
"pull_number": 1... |
sql-machine-learning__elasticdl-1091 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: ca1824ef57f5c5984e69afaa2e7f14d43f2bf7d2
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/layers/embedding.py b/elasticdl/python/elasticdl/layers/embedding.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/layers/embedding.py
+++ b/elasticdl/python/elasticdl/layers/embedding.py
@@ -45,7 +45,7 @@ class Embedding(tf.keras.layers.Layer):
self.inp... | 16,058 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1091",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "ca1824ef57f5c5984e69afaa2e7f14d43f2bf7d2",
"pull_number": 1... |
sql-machine-learning__elasticdl-1098 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 424a9b45999fe77eb671d7cfe86d7e22130f263b
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/master/optimizer_wrapper.py b/elasticdl/python/master/optimizer_wrapper.py
index 0000000..0000000 100644
--- a/elasticdl/python/master/optimizer_wrapper.py
+++ b/elasticdl/python/master/optimizer_wrapper.py
@@ -61,6 +61,32 @@ def _get_slot_name_from_key(key):
return key.split("-")[-2]... | 8,555 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1098",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "424a9b45999fe77eb671d7cfe86d7e22130f263b",
"pull_number": 1... |
sql-machine-learning__elasticdl-1101 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 424a9b45999fe77eb671d7cfe86d7e22130f263b
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/common/odps_recordio_conversion_utils.py b/elasticdl/python/common/odps_recordio_conversion_utils.py
index 0000000..0000000 100644
--- a/elasticdl/python/common/odps_recordio_conversion_utils.py
+++ b/elasticdl/python/common/odps_recordio_conversion_utils.py
@@ -50,9 +50,7 @@ def _find_fea... | 4,657 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1101",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "424a9b45999fe77eb671d7cfe86d7e22130f263b",
"pull_number": 1... |
sql-machine-learning__elasticdl-1103 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 98b66cf33ba3608ce30d354fe6eb5e974991bba2
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/master/optimizer_wrapper.py b/elasticdl/python/master/optimizer_wrapper.py
index 0000000..0000000 100644
--- a/elasticdl/python/master/optimizer_wrapper.py
+++ b/elasticdl/python/master/optimizer_wrapper.py
@@ -168,9 +168,11 @@ class OptimizerWrapper(object):
)
self._set_... | 10,789 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1103",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "98b66cf33ba3608ce30d354fe6eb5e974991bba2",
"pull_number": 1... |
sql-machine-learning__elasticdl-1127 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 6f5c0894e13639599fa0f00f3e8eb14793a1392c
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/common/model_helper.py b/elasticdl/python/common/model_helper.py
index 0000000..0000000 100644
--- a/elasticdl/python/common/model_helper.py
+++ b/elasticdl/python/common/model_helper.py
@@ -14,9 +14,6 @@ def load_module(module_file):
return module
-# TODO: Discuss whether we need... | 3,652 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1127",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "6f5c0894e13639599fa0f00f3e8eb14793a1392c",
"pull_number": 1... |
sql-machine-learning__elasticdl-1130 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 182910187eb9fb1d0bbf68d15890ac667a26558f
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/common/args.py b/elasticdl/python/common/args.py
index 0000000..0000000 100644
--- a/elasticdl/python/common/args.py
+++ b/elasticdl/python/common/args.py
@@ -1,3 +1,44 @@
+from elasticdl.python.common.log_util import default_logger as logger
+
+MODEL_SPEC_GROUP = [
+ "dataset_fn",
+ ... | 10,871 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1130",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "182910187eb9fb1d0bbf68d15890ac667a26558f",
"pull_number": 1... |
sql-machine-learning__elasticdl-1135 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 1727e2368abffe5b8179c26c9aefa420e4bbc8cd
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/common/args.py b/elasticdl/python/common/args.py
index 0000000..0000000 100644
--- a/elasticdl/python/common/args.py
+++ b/elasticdl/python/common/args.py
@@ -161,6 +161,17 @@ def add_common_params(parser):
help="The file that contains user-defined cluster specification",
... | 16,140 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1135",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "1727e2368abffe5b8179c26c9aefa420e4bbc8cd",
"pull_number": 1... |
sql-machine-learning__elasticdl-1145 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 5770cab6c170a74da23add40fa4ca76809598428
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/elasticdl/layers/embedding.py b/elasticdl/python/elasticdl/layers/embedding.py
index 0000000..0000000 100644
--- a/elasticdl/python/elasticdl/layers/embedding.py
+++ b/elasticdl/python/elasticdl/layers/embedding.py
@@ -161,6 +161,7 @@ class Embedding(tf.keras.layers.Layer):
def rese... | 16,068 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1145",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "5770cab6c170a74da23add40fa4ca76809598428",
"pull_number": 1... |
sql-machine-learning__elasticdl-1158 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 77cc87a90eec54db565849f0ae07d271fd957190
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/master/optimizer_wrapper.py b/elasticdl/python/master/optimizer_wrapper.py
index 0000000..0000000 100644
--- a/elasticdl/python/master/optimizer_wrapper.py
+++ b/elasticdl/python/master/optimizer_wrapper.py
@@ -3,7 +3,16 @@
import numpy as np
import tensorflow as tf
-from tensorflow.ke... | 11,509 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1158",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "77cc87a90eec54db565849f0ae07d271fd957190",
"pull_number": 1... |
sql-machine-learning__elasticdl-1164 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 7295b883385c2143ab208738adee0d49cbac299b
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/master/servicer.py b/elasticdl/python/master/servicer.py
index 0000000..0000000 100644
--- a/elasticdl/python/master/servicer.py
+++ b/elasticdl/python/master/servicer.py
@@ -185,7 +185,10 @@ class MasterServicer(elasticdl_pb2_grpc.MasterServicer):
# (grad, var) pairs excluding ke... | 10,273 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1164",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "7295b883385c2143ab208738adee0d49cbac299b",
"pull_number": 1... |
sql-machine-learning__elasticdl-1172 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 9cb31a6bfbef4e5fcad317627cc32c1a47007e22
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/master/lr_modulation.py b/elasticdl/python/master/lr_modulation.py
new file mode 100644
index 0000000..0000000
--- /dev/null
+++ b/elasticdl/python/master/lr_modulation.py
@@ -0,0 +1,43 @@
+import threading
+
+
+class LearningRateModulation:
+ """
+ Modify learning rate with a multip... | 10,596 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1172",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "9cb31a6bfbef4e5fcad317627cc32c1a47007e22",
"pull_number": 1... |
sql-machine-learning__elasticdl-1184 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 7ebcea845bbb898d3278af4bbfff33b51bdaeb23
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/common/model_helper.py b/elasticdl/python/common/model_helper.py
index 0000000..0000000 100644
--- a/elasticdl/python/common/model_helper.py
+++ b/elasticdl/python/common/model_helper.py
@@ -152,3 +152,15 @@ def find_layer(model, layer_class):
# search in nested layers
... | 15,977 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1184",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "7ebcea845bbb898d3278af4bbfff33b51bdaeb23",
"pull_number": 1... |
sql-machine-learning__elasticdl-1189 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: db0a1de92f3550878745feaea90c2f9fa0a2454b
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/common/model_helper.py b/elasticdl/python/common/model_helper.py
index 0000000..0000000 100644
--- a/elasticdl/python/common/model_helper.py
+++ b/elasticdl/python/common/model_helper.py
@@ -160,7 +160,7 @@ def get_non_embedding_trainable_vars(model, embedding_layers):
"""
embedd... | 21,660 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1189",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "db0a1de92f3550878745feaea90c2f9fa0a2454b",
"pull_number": 1... |
sql-machine-learning__elasticdl-1195 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: f51ff08bac0ef5c1a11e0166accbcd7a6c2436ef
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/master/servicer.py b/elasticdl/python/master/servicer.py
index 0000000..0000000 100644
--- a/elasticdl/python/master/servicer.py
+++ b/elasticdl/python/master/servicer.py
@@ -310,7 +310,7 @@ class MasterServicer(elasticdl_pb2_grpc.MasterServicer):
return empty_pb2.Empty()
d... | 10,222 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1195",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "f51ff08bac0ef5c1a11e0166accbcd7a6c2436ef",
"pull_number": 1... |
sql-machine-learning__elasticdl-1200 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: e779d577b6bca3383d6dfc2e86631a389bb21bec
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/master/servicer.py b/elasticdl/python/master/servicer.py
index 0000000..0000000 100644
--- a/elasticdl/python/master/servicer.py
+++ b/elasticdl/python/master/servicer.py
@@ -201,12 +201,6 @@ class MasterServicer(elasticdl_pb2_grpc.MasterServicer):
)
def _update_model(s... | 10,326 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1200",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "e779d577b6bca3383d6dfc2e86631a389bb21bec",
"pull_number": 1... |
sql-machine-learning__elasticdl-1210 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 7266aee9645d629ac762a65467794410f7ece455
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/common/args.py b/elasticdl/python/common/args.py
index 0000000..0000000 100644
--- a/elasticdl/python/common/args.py
+++ b/elasticdl/python/common/args.py
@@ -1,4 +1,5 @@
import argparse
+from itertools import chain
from elasticdl.python.common.log_util import default_logger as logger
... | 23,020 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1210",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "7266aee9645d629ac762a65467794410f7ece455",
"pull_number": 1... |
sql-machine-learning__elasticdl-1214 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 276ec7d062fb049d56011b0f8d794065239628b5
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/master/main.py b/elasticdl/python/master/main.py
index 0000000..0000000 100644
--- a/elasticdl/python/master/main.py
+++ b/elasticdl/python/master/main.py
@@ -6,7 +6,11 @@ import grpc
from kubernetes.client import V1EnvVar
from elasticdl.proto import elasticdl_pb2_grpc
-from elasticdl.... | 7,024 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1214",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "276ec7d062fb049d56011b0f8d794065239628b5",
"pull_number": 1... |
sql-machine-learning__elasticdl-1217 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: sql-machine-learning/elasticdl
Base commit: 276ec7d062fb049d56011b0f8d794065239628b5
Changed files:
- elasticdl/py... | diff --git a/elasticdl/python/master/servicer.py b/elasticdl/python/master/servicer.py
index 0000000..0000000 100644
--- a/elasticdl/python/master/servicer.py
+++ b/elasticdl/python/master/servicer.py
@@ -200,25 +200,21 @@ class MasterServicer(elasticdl_pb2_grpc.MasterServicer):
embedding_service_endpo... | 10,560 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "sql-machine-learning__elasticdl-1217",
"repo": "sql-machine-learning/elasticdl",
"base_commit": "276ec7d062fb049d56011b0f8d794065239628b5",
"pull_number": 1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.