Muennighoff
commited on
Scheduled Commit
Browse files
data/retrieval_battle-8d38bb89-1e1a-471a-8b9e-35c1f784690e.jsonl
CHANGED
@@ -98,3 +98,4 @@
|
|
98 |
{"tstamp": 1722376975.2919, "task_type": "retrieval", "type": "tievote", "models": ["", ""], "ip": "", "0_conv_id": "da0075c1961e4b8ebf9ae2ddb477945b", "0_model_name": "mixedbread-ai/mxbai-embed-large-v1", "0_prompt": "What's the purpose of `if __name__ == '__main__'`?", "0_output": [["What's the purpose of `if __name__ == '__main__'`?", "Stackoverflow Stackexchange\n\nQ: Why does it do this ? if - __name__ == '__main__' \nDuplicate of:\nWhat does if __name__== \"__main__\" do? \n\nConsider this code:\nif __name__ == '__main__':\n import pdb\n pdb.run(\"interact()\\n\")\n\nWhat does the following line mean?\nif(__name__=='__main__')\n\nI fainted.\n\nA: That is a check to see if you are directly running the script or if it is included in a library.\nWhen you run a python script like this:\npython myScript.py\n\nIt sends a parameter, telling you to run the programs first method, which is widely called \"main\", so when __name__ is __main__ you know that the program was executed from a command line or double clicked.\n"]], "0_corpus": "stackexchange", "1_conv_id": "c8fcde1158a34159a47f96dd0d875975", "1_model_name": "BAAI/bge-large-en-v1.5", "1_prompt": "What's the purpose of `if __name__ == '__main__'`?", "1_output": [["What's the purpose of `if __name__ == '__main__'`?", "Stackoverflow Stackexchange\n\nQ: Why does it do this ? if - __name__ == '__main__' \nDuplicate of:\nWhat does if __name__== \"__main__\" do? \n\nConsider this code:\nif __name__ == '__main__':\n import pdb\n pdb.run(\"interact()\\n\")\n\nWhat does the following line mean?\nif(__name__=='__main__')\n\nI fainted.\n\nA: That is a check to see if you are directly running the script or if it is included in a library.\nWhen you run a python script like this:\npython myScript.py\n\nIt sends a parameter, telling you to run the programs first method, which is widely called \"main\", so when __name__ is __main__ you know that the program was executed from a command line or double clicked.\n"]], "1_corpus": "stackexchange"}
|
99 |
{"tstamp": 1722377001.4436, "task_type": "retrieval", "type": "leftvote", "models": ["", ""], "ip": "", "0_conv_id": "0c814fff63a84fb3a1c44e294e648120", "0_model_name": "BM25", "0_prompt": "What's the purpose of `if __name__ == '__main__'`?", "0_output": [["What's the purpose of `if __name__ == '__main__'`?", "Stackoverflow Stackexchange\n\nQ: What is the purpose of __name__? What does __name__ do? I have only seen it paired with __main__ and nothing else.\nI know that the classic if __name__ == __main__: defines the behavior when acting as a package vs running as stand-alone.\nHowever what other usages are there for __name__?\n\nA: __name__ is \"__main__\" if you're executing the script directly. If you're importing a module, __name__ is the name of the module.\nfoo.py:\nprint(__name__)\n\nbar.py \nimport foo\n\nRun the scripts:\n$ python foo.py\n__main__\n$ python bar.py \nfoo\n\n"]], "0_corpus": "stackexchange", "1_conv_id": "5b826b21685643b8ae5929f7901487e6", "1_model_name": "sentence-transformers/all-MiniLM-L6-v2", "1_prompt": "What's the purpose of `if __name__ == '__main__'`?", "1_output": [["What's the purpose of `if __name__ == '__main__'`?", "Stackoverflow Stackexchange\n\nQ: Reading h264 stream in Python I am trying to read a video stream from a Parrot Bebop 2 drone. \nThe video stream is written as \"socket\" to a file as H264 stream.\n$ ffmpeg -i [STREAM]\nInput #0, h264, from 'stream_h264':\n Duration: N/A, bitrate: N/A\n Stream #0:0: Video: h264 (Constrained Baseline), 1 reference frame, yuv420p(progressive, left), 1280x720, 23.98 fps, 23.98 tbr, 1200k tbn, 47.95 tbc\n\nReading the video stream in MPlayer is not a problem using the parameters below. Playing it using VLC or ffmpeg should also not be too hard. For MPlayer the following works:\nmplayer -fs -demuxer h264es -benchmark stream_h264\n\nThis plays the stream in high-res. However my goal is to perform image processing on the frames using Python (mostly OpenCV). Therefore, I would like to read the frames into NumPy arrays. I have already considered using cv2.VideoCapture but this does not seem to work for my stream. Other (somewhat easy) to use options I am not aware of, therefore my question is whether someone recommend me how to read the video frames in Python? \nAll recommendations are more than welcome!\n"]], "1_corpus": "stackexchange"}
|
100 |
{"tstamp": 1722377013.7724, "task_type": "retrieval", "type": "leftvote", "models": ["", ""], "ip": "", "0_conv_id": "b2c3c98e7b134fd0a6a35908ff74cead", "0_model_name": "mixedbread-ai/mxbai-embed-large-v1", "0_prompt": "What's the purpose of `if __name__ == '__main__'`?", "0_output": [["What's the purpose of `if __name__ == '__main__'`?", "Stackoverflow Stackexchange\n\nQ: Why does it do this ? if - __name__ == '__main__' \nDuplicate of:\nWhat does if __name__== \"__main__\" do? \n\nConsider this code:\nif __name__ == '__main__':\n import pdb\n pdb.run(\"interact()\\n\")\n\nWhat does the following line mean?\nif(__name__=='__main__')\n\nI fainted.\n\nA: That is a check to see if you are directly running the script or if it is included in a library.\nWhen you run a python script like this:\npython myScript.py\n\nIt sends a parameter, telling you to run the programs first method, which is widely called \"main\", so when __name__ is __main__ you know that the program was executed from a command line or double clicked.\n"]], "0_corpus": "stackexchange", "1_conv_id": "b8e6e6da4fe04b8099786c2bb56904ec", "1_model_name": "BM25", "1_prompt": "What's the purpose of `if __name__ == '__main__'`?", "1_output": [["What's the purpose of `if __name__ == '__main__'`?", "Stackoverflow Stackexchange\n\nQ: What is the purpose of __name__? What does __name__ do? I have only seen it paired with __main__ and nothing else.\nI know that the classic if __name__ == __main__: defines the behavior when acting as a package vs running as stand-alone.\nHowever what other usages are there for __name__?\n\nA: __name__ is \"__main__\" if you're executing the script directly. If you're importing a module, __name__ is the name of the module.\nfoo.py:\nprint(__name__)\n\nbar.py \nimport foo\n\nRun the scripts:\n$ python foo.py\n__main__\n$ python bar.py \nfoo\n\n"]], "1_corpus": "stackexchange"}
|
|
|
|
98 |
{"tstamp": 1722376975.2919, "task_type": "retrieval", "type": "tievote", "models": ["", ""], "ip": "", "0_conv_id": "da0075c1961e4b8ebf9ae2ddb477945b", "0_model_name": "mixedbread-ai/mxbai-embed-large-v1", "0_prompt": "What's the purpose of `if __name__ == '__main__'`?", "0_output": [["What's the purpose of `if __name__ == '__main__'`?", "Stackoverflow Stackexchange\n\nQ: Why does it do this ? if - __name__ == '__main__' \nDuplicate of:\nWhat does if __name__== \"__main__\" do? \n\nConsider this code:\nif __name__ == '__main__':\n import pdb\n pdb.run(\"interact()\\n\")\n\nWhat does the following line mean?\nif(__name__=='__main__')\n\nI fainted.\n\nA: That is a check to see if you are directly running the script or if it is included in a library.\nWhen you run a python script like this:\npython myScript.py\n\nIt sends a parameter, telling you to run the programs first method, which is widely called \"main\", so when __name__ is __main__ you know that the program was executed from a command line or double clicked.\n"]], "0_corpus": "stackexchange", "1_conv_id": "c8fcde1158a34159a47f96dd0d875975", "1_model_name": "BAAI/bge-large-en-v1.5", "1_prompt": "What's the purpose of `if __name__ == '__main__'`?", "1_output": [["What's the purpose of `if __name__ == '__main__'`?", "Stackoverflow Stackexchange\n\nQ: Why does it do this ? if - __name__ == '__main__' \nDuplicate of:\nWhat does if __name__== \"__main__\" do? \n\nConsider this code:\nif __name__ == '__main__':\n import pdb\n pdb.run(\"interact()\\n\")\n\nWhat does the following line mean?\nif(__name__=='__main__')\n\nI fainted.\n\nA: That is a check to see if you are directly running the script or if it is included in a library.\nWhen you run a python script like this:\npython myScript.py\n\nIt sends a parameter, telling you to run the programs first method, which is widely called \"main\", so when __name__ is __main__ you know that the program was executed from a command line or double clicked.\n"]], "1_corpus": "stackexchange"}
|
99 |
{"tstamp": 1722377001.4436, "task_type": "retrieval", "type": "leftvote", "models": ["", ""], "ip": "", "0_conv_id": "0c814fff63a84fb3a1c44e294e648120", "0_model_name": "BM25", "0_prompt": "What's the purpose of `if __name__ == '__main__'`?", "0_output": [["What's the purpose of `if __name__ == '__main__'`?", "Stackoverflow Stackexchange\n\nQ: What is the purpose of __name__? What does __name__ do? I have only seen it paired with __main__ and nothing else.\nI know that the classic if __name__ == __main__: defines the behavior when acting as a package vs running as stand-alone.\nHowever what other usages are there for __name__?\n\nA: __name__ is \"__main__\" if you're executing the script directly. If you're importing a module, __name__ is the name of the module.\nfoo.py:\nprint(__name__)\n\nbar.py \nimport foo\n\nRun the scripts:\n$ python foo.py\n__main__\n$ python bar.py \nfoo\n\n"]], "0_corpus": "stackexchange", "1_conv_id": "5b826b21685643b8ae5929f7901487e6", "1_model_name": "sentence-transformers/all-MiniLM-L6-v2", "1_prompt": "What's the purpose of `if __name__ == '__main__'`?", "1_output": [["What's the purpose of `if __name__ == '__main__'`?", "Stackoverflow Stackexchange\n\nQ: Reading h264 stream in Python I am trying to read a video stream from a Parrot Bebop 2 drone. \nThe video stream is written as \"socket\" to a file as H264 stream.\n$ ffmpeg -i [STREAM]\nInput #0, h264, from 'stream_h264':\n Duration: N/A, bitrate: N/A\n Stream #0:0: Video: h264 (Constrained Baseline), 1 reference frame, yuv420p(progressive, left), 1280x720, 23.98 fps, 23.98 tbr, 1200k tbn, 47.95 tbc\n\nReading the video stream in MPlayer is not a problem using the parameters below. Playing it using VLC or ffmpeg should also not be too hard. For MPlayer the following works:\nmplayer -fs -demuxer h264es -benchmark stream_h264\n\nThis plays the stream in high-res. However my goal is to perform image processing on the frames using Python (mostly OpenCV). Therefore, I would like to read the frames into NumPy arrays. I have already considered using cv2.VideoCapture but this does not seem to work for my stream. Other (somewhat easy) to use options I am not aware of, therefore my question is whether someone recommend me how to read the video frames in Python? \nAll recommendations are more than welcome!\n"]], "1_corpus": "stackexchange"}
|
100 |
{"tstamp": 1722377013.7724, "task_type": "retrieval", "type": "leftvote", "models": ["", ""], "ip": "", "0_conv_id": "b2c3c98e7b134fd0a6a35908ff74cead", "0_model_name": "mixedbread-ai/mxbai-embed-large-v1", "0_prompt": "What's the purpose of `if __name__ == '__main__'`?", "0_output": [["What's the purpose of `if __name__ == '__main__'`?", "Stackoverflow Stackexchange\n\nQ: Why does it do this ? if - __name__ == '__main__' \nDuplicate of:\nWhat does if __name__== \"__main__\" do? \n\nConsider this code:\nif __name__ == '__main__':\n import pdb\n pdb.run(\"interact()\\n\")\n\nWhat does the following line mean?\nif(__name__=='__main__')\n\nI fainted.\n\nA: That is a check to see if you are directly running the script or if it is included in a library.\nWhen you run a python script like this:\npython myScript.py\n\nIt sends a parameter, telling you to run the programs first method, which is widely called \"main\", so when __name__ is __main__ you know that the program was executed from a command line or double clicked.\n"]], "0_corpus": "stackexchange", "1_conv_id": "b8e6e6da4fe04b8099786c2bb56904ec", "1_model_name": "BM25", "1_prompt": "What's the purpose of `if __name__ == '__main__'`?", "1_output": [["What's the purpose of `if __name__ == '__main__'`?", "Stackoverflow Stackexchange\n\nQ: What is the purpose of __name__? What does __name__ do? I have only seen it paired with __main__ and nothing else.\nI know that the classic if __name__ == __main__: defines the behavior when acting as a package vs running as stand-alone.\nHowever what other usages are there for __name__?\n\nA: __name__ is \"__main__\" if you're executing the script directly. If you're importing a module, __name__ is the name of the module.\nfoo.py:\nprint(__name__)\n\nbar.py \nimport foo\n\nRun the scripts:\n$ python foo.py\n__main__\n$ python bar.py \nfoo\n\n"]], "1_corpus": "stackexchange"}
|
101 |
+
{"tstamp": 1722377053.1992, "task_type": "retrieval", "type": "leftvote", "models": ["", ""], "ip": "", "0_conv_id": "0c86ee4780e04b2ea6fdf60fae0c0f37", "0_model_name": "intfloat/multilingual-e5-large-instruct", "0_prompt": "What's the purpose of `if __name__ == '__main__'`?", "0_output": [["What's the purpose of `if __name__ == '__main__'`?", "Stackoverflow Stackexchange\n\nQ: What's the point of a main function and/or __name__ == \"__main__\" check in Python? I occasionally notice something like the following in Python scripts:\nif __name__ == \"__main__\":\n # do stuff like call main()\n\nWhat's the point of this?\n\nA: This allows a python script to be imported or run standalone is a sane way.\nIf you run a python file directly, the __name__ variable will contain __main__. If you import the script that will not be the case. Normally, if you import the script you want to call functions or reference classes from the file.\nIf you did not have this check, any code that was not in a class or function would run when you import.\n"]], "0_corpus": "stackexchange", "1_conv_id": "edd98805b64543feadba189f88fb8283", "1_model_name": "jinaai/jina-embeddings-v2-base-en", "1_prompt": "What's the purpose of `if __name__ == '__main__'`?", "1_output": [["What's the purpose of `if __name__ == '__main__'`?", "Stackoverflow Stackexchange\n\nQ: html dangerous tags to avoid while developing a chat application I am developing a chat application using PHP and jQuery... all messages sent by the chat pair are appended to a <div>. While doing this, I found that tags such as <script> can be entered by users. What tags should I avoid while appending the user's message?\n\nA: Avoid tags that will inject content into the page:\n\n\n*\n\n*applet\n\n*script\n\n*style\n\n*link\n\n*iframe\n\n\nOther tags may be necessary to remove, as well. Maybe you don't want to embed images. These are things that you will need to determine. At the bare minimum, allow <p> and <br />.\n"]], "1_corpus": "stackexchange"}
|
data/retrieval_individual-8d38bb89-1e1a-471a-8b9e-35c1f784690e.jsonl
CHANGED
@@ -300,3 +300,5 @@
|
|
300 |
{"tstamp": 1722376995.1922, "task_type": "retrieval", "type": "chat", "model": "sentence-transformers/all-MiniLM-L6-v2", "gen_params": {}, "start": 1722376995.0811, "finish": 1722376995.1922, "ip": "", "conv_id": "5b826b21685643b8ae5929f7901487e6", "model_name": "sentence-transformers/all-MiniLM-L6-v2", "prompt": "What's the purpose of `if __name__ == '__main__'`?", "output": [["What's the purpose of `if __name__ == '__main__'`?", "Stackoverflow Stackexchange\n\nQ: Reading h264 stream in Python I am trying to read a video stream from a Parrot Bebop 2 drone. \nThe video stream is written as \"socket\" to a file as H264 stream.\n$ ffmpeg -i [STREAM]\nInput #0, h264, from 'stream_h264':\n Duration: N/A, bitrate: N/A\n Stream #0:0: Video: h264 (Constrained Baseline), 1 reference frame, yuv420p(progressive, left), 1280x720, 23.98 fps, 23.98 tbr, 1200k tbn, 47.95 tbc\n\nReading the video stream in MPlayer is not a problem using the parameters below. Playing it using VLC or ffmpeg should also not be too hard. For MPlayer the following works:\nmplayer -fs -demuxer h264es -benchmark stream_h264\n\nThis plays the stream in high-res. However my goal is to perform image processing on the frames using Python (mostly OpenCV). Therefore, I would like to read the frames into NumPy arrays. I have already considered using cv2.VideoCapture but this does not seem to work for my stream. Other (somewhat easy) to use options I am not aware of, therefore my question is whether someone recommend me how to read the video frames in Python? \nAll recommendations are more than welcome!\n"]], "corpus": "stackexchange"}
|
301 |
{"tstamp": 1722377006.9261, "task_type": "retrieval", "type": "chat", "model": "mixedbread-ai/mxbai-embed-large-v1", "gen_params": {}, "start": 1722377006.8552, "finish": 1722377006.9261, "ip": "", "conv_id": "b2c3c98e7b134fd0a6a35908ff74cead", "model_name": "mixedbread-ai/mxbai-embed-large-v1", "prompt": "What's the purpose of `if __name__ == '__main__'`?", "output": [["What's the purpose of `if __name__ == '__main__'`?", "Stackoverflow Stackexchange\n\nQ: Why does it do this ? if - __name__ == '__main__' \nDuplicate of:\nWhat does if __name__== \"__main__\" do? \n\nConsider this code:\nif __name__ == '__main__':\n import pdb\n pdb.run(\"interact()\\n\")\n\nWhat does the following line mean?\nif(__name__=='__main__')\n\nI fainted.\n\nA: That is a check to see if you are directly running the script or if it is included in a library.\nWhen you run a python script like this:\npython myScript.py\n\nIt sends a parameter, telling you to run the programs first method, which is widely called \"main\", so when __name__ is __main__ you know that the program was executed from a command line or double clicked.\n"]], "corpus": "stackexchange"}
|
302 |
{"tstamp": 1722377006.9261, "task_type": "retrieval", "type": "chat", "model": "BM25", "gen_params": {}, "start": 1722377006.8552, "finish": 1722377006.9261, "ip": "", "conv_id": "b8e6e6da4fe04b8099786c2bb56904ec", "model_name": "BM25", "prompt": "What's the purpose of `if __name__ == '__main__'`?", "output": [["What's the purpose of `if __name__ == '__main__'`?", "Stackoverflow Stackexchange\n\nQ: What is the purpose of __name__? What does __name__ do? I have only seen it paired with __main__ and nothing else.\nI know that the classic if __name__ == __main__: defines the behavior when acting as a package vs running as stand-alone.\nHowever what other usages are there for __name__?\n\nA: __name__ is \"__main__\" if you're executing the script directly. If you're importing a module, __name__ is the name of the module.\nfoo.py:\nprint(__name__)\n\nbar.py \nimport foo\n\nRun the scripts:\n$ python foo.py\n__main__\n$ python bar.py \nfoo\n\n"]], "corpus": "stackexchange"}
|
|
|
|
|
|
300 |
{"tstamp": 1722376995.1922, "task_type": "retrieval", "type": "chat", "model": "sentence-transformers/all-MiniLM-L6-v2", "gen_params": {}, "start": 1722376995.0811, "finish": 1722376995.1922, "ip": "", "conv_id": "5b826b21685643b8ae5929f7901487e6", "model_name": "sentence-transformers/all-MiniLM-L6-v2", "prompt": "What's the purpose of `if __name__ == '__main__'`?", "output": [["What's the purpose of `if __name__ == '__main__'`?", "Stackoverflow Stackexchange\n\nQ: Reading h264 stream in Python I am trying to read a video stream from a Parrot Bebop 2 drone. \nThe video stream is written as \"socket\" to a file as H264 stream.\n$ ffmpeg -i [STREAM]\nInput #0, h264, from 'stream_h264':\n Duration: N/A, bitrate: N/A\n Stream #0:0: Video: h264 (Constrained Baseline), 1 reference frame, yuv420p(progressive, left), 1280x720, 23.98 fps, 23.98 tbr, 1200k tbn, 47.95 tbc\n\nReading the video stream in MPlayer is not a problem using the parameters below. Playing it using VLC or ffmpeg should also not be too hard. For MPlayer the following works:\nmplayer -fs -demuxer h264es -benchmark stream_h264\n\nThis plays the stream in high-res. However my goal is to perform image processing on the frames using Python (mostly OpenCV). Therefore, I would like to read the frames into NumPy arrays. I have already considered using cv2.VideoCapture but this does not seem to work for my stream. Other (somewhat easy) to use options I am not aware of, therefore my question is whether someone recommend me how to read the video frames in Python? \nAll recommendations are more than welcome!\n"]], "corpus": "stackexchange"}
|
301 |
{"tstamp": 1722377006.9261, "task_type": "retrieval", "type": "chat", "model": "mixedbread-ai/mxbai-embed-large-v1", "gen_params": {}, "start": 1722377006.8552, "finish": 1722377006.9261, "ip": "", "conv_id": "b2c3c98e7b134fd0a6a35908ff74cead", "model_name": "mixedbread-ai/mxbai-embed-large-v1", "prompt": "What's the purpose of `if __name__ == '__main__'`?", "output": [["What's the purpose of `if __name__ == '__main__'`?", "Stackoverflow Stackexchange\n\nQ: Why does it do this ? if - __name__ == '__main__' \nDuplicate of:\nWhat does if __name__== \"__main__\" do? \n\nConsider this code:\nif __name__ == '__main__':\n import pdb\n pdb.run(\"interact()\\n\")\n\nWhat does the following line mean?\nif(__name__=='__main__')\n\nI fainted.\n\nA: That is a check to see if you are directly running the script or if it is included in a library.\nWhen you run a python script like this:\npython myScript.py\n\nIt sends a parameter, telling you to run the programs first method, which is widely called \"main\", so when __name__ is __main__ you know that the program was executed from a command line or double clicked.\n"]], "corpus": "stackexchange"}
|
302 |
{"tstamp": 1722377006.9261, "task_type": "retrieval", "type": "chat", "model": "BM25", "gen_params": {}, "start": 1722377006.8552, "finish": 1722377006.9261, "ip": "", "conv_id": "b8e6e6da4fe04b8099786c2bb56904ec", "model_name": "BM25", "prompt": "What's the purpose of `if __name__ == '__main__'`?", "output": [["What's the purpose of `if __name__ == '__main__'`?", "Stackoverflow Stackexchange\n\nQ: What is the purpose of __name__? What does __name__ do? I have only seen it paired with __main__ and nothing else.\nI know that the classic if __name__ == __main__: defines the behavior when acting as a package vs running as stand-alone.\nHowever what other usages are there for __name__?\n\nA: __name__ is \"__main__\" if you're executing the script directly. If you're importing a module, __name__ is the name of the module.\nfoo.py:\nprint(__name__)\n\nbar.py \nimport foo\n\nRun the scripts:\n$ python foo.py\n__main__\n$ python bar.py \nfoo\n\n"]], "corpus": "stackexchange"}
|
303 |
+
{"tstamp": 1722377043.6596, "task_type": "retrieval", "type": "chat", "model": "intfloat/multilingual-e5-large-instruct", "gen_params": {}, "start": 1722377043.5297, "finish": 1722377043.6596, "ip": "", "conv_id": "0c86ee4780e04b2ea6fdf60fae0c0f37", "model_name": "intfloat/multilingual-e5-large-instruct", "prompt": "What's the purpose of `if __name__ == '__main__'`?", "output": [["What's the purpose of `if __name__ == '__main__'`?", "Stackoverflow Stackexchange\n\nQ: What's the point of a main function and/or __name__ == \"__main__\" check in Python? I occasionally notice something like the following in Python scripts:\nif __name__ == \"__main__\":\n # do stuff like call main()\n\nWhat's the point of this?\n\nA: This allows a python script to be imported or run standalone is a sane way.\nIf you run a python file directly, the __name__ variable will contain __main__. If you import the script that will not be the case. Normally, if you import the script you want to call functions or reference classes from the file.\nIf you did not have this check, any code that was not in a class or function would run when you import.\n"]], "corpus": "stackexchange"}
|
304 |
+
{"tstamp": 1722377043.6596, "task_type": "retrieval", "type": "chat", "model": "jinaai/jina-embeddings-v2-base-en", "gen_params": {}, "start": 1722377043.5297, "finish": 1722377043.6596, "ip": "", "conv_id": "edd98805b64543feadba189f88fb8283", "model_name": "jinaai/jina-embeddings-v2-base-en", "prompt": "What's the purpose of `if __name__ == '__main__'`?", "output": [["What's the purpose of `if __name__ == '__main__'`?", "Stackoverflow Stackexchange\n\nQ: html dangerous tags to avoid while developing a chat application I am developing a chat application using PHP and jQuery... all messages sent by the chat pair are appended to a <div>. While doing this, I found that tags such as <script> can be entered by users. What tags should I avoid while appending the user's message?\n\nA: Avoid tags that will inject content into the page:\n\n\n*\n\n*applet\n\n*script\n\n*style\n\n*link\n\n*iframe\n\n\nOther tags may be necessary to remove, as well. Maybe you don't want to embed images. These are things that you will need to determine. At the bare minimum, allow <p> and <br />.\n"]], "corpus": "stackexchange"}
|