Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F31876406
raw.txt
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
akosiaris
Jun 23 2020, 1:57 PM
2020-06-23 13:57:58 (UTC+0)
Size
820 B
Referenced Files
None
Subscribers
None
raw.txt
View Options
from locust import HttpUser, task, between
class OpusUser(HttpUser):
wait_time = between(1, 2)
@task
def translate(self):
self.client.post('/api/translate', None,
json={
"from": "en",
"to": "ml",
"source": "One morning, when Gregor Samsa woke from"
"troubled dreams, he found himself tranformed in his"
"bed into a horrible vermin",
},
headers={
"authority": "opusmt.wmflabs.org",
"content-type": "application/json",
"origin": "https://opusmt.wmflabs.org",
},
)
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8438840
Default Alt Text
raw.txt (820 B)
Attached To
Mode
P11640 opusmt locust
Attached
Detach File
Event Timeline
Log In to Comment