This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package integration_test | |
import ( | |
"adc-backend/config" | |
"adc-backend/internal/tarantoolx/ttconfig" | |
"adc-backend/tests/testcontainersx" | |
"github.com/stretchr/testify/suite" | |
"github.com/testcontainers/testcontainers-go" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REQUEST | |
&{POST http://88.255.240.242:5161/api/shipmentv4/api.php HTTP/1.1 1 1 map[Content-Type:[text/xml] Soapaction:[urn:server/urn:server#addShipmentVariantJoom]] {<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas. | |
xmlsoap.org/soap/envelope/" xmlns:ns="urn:server" xmlns:tns="urn:server" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Body><tns:addShipmentVariantJoom><kullanici>DEV-26411057274683399</kull | |
anici><sifre>a0ca2c33-3068-11ea-b304-005056b8b965</sifre><ptsno>0</ptsno><servis>E</servis><yetkili>Testing Reciever12345678901233456579049045645654635836794856938645967394865934679857643987698436986327693679 | |
865948953</yetkili><sirketadi></sirketadi><adres>Test Street 1-1-1</adres><sehir></sehir><eyalet></eyalet><postakodu>08120</postakodu><ulkekodu>ES</ulkekodu><telefon></telefon><email></email><kimlik_kart_kod> | |
</kimlik_kart_kod><kimlik_kart_seri></kimlik_kart_seri><kimlik_kart_numara></kimlik_kart_numara><kimlik_kart_tarih></kimlik_kart_tarih><gonderici_yetkili>JoomTest</gonderici_yetkil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl http://88.255.240.242:5161/api/ptsawb/2250286391_1633031914.pdf | |
<!-- IE friendly error message walkround. | |
if error message from server is less than | |
512 bytes IE v5+ will use its own error | |
message instead of the one returned by | |
server. --> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LinkedList: | |
class Node: | |
def __init__(self, v): | |
self.v = v | |
self.next = None | |
def __init__(self): | |
self.head = None | |
def __iter__(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def max_calls_count(max_count): | |
def counter(f): | |
def wrapper(*args, **kwargs): | |
wrapper.calls_count += 1 | |
if wrapper.calls_count < max_count + 1: | |
return f(*args, **kwargs) | |
else: | |
raise RuntimeError('Only {} calls allowed'.format(max_count)) | |
wrapper.calls_count = 0 | |
return wrapper |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstring> | |
#include <stddef.h> | |
#include <stdio.h> | |
void Swap(char& a, char& b) { | |
char c = a; | |
a = b; | |
b = c; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <thread> | |
#include <mutex> | |
#include <iostream> | |
class PPWriter { | |
public: | |
void WritePingPong(); | |
private: | |
enum State { | |
PING = 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import multiprocessing | |
from multiprocessing.dummy import Pool as ThreadPool | |
def calc_sum(k): | |
return sum(xrange(k)) | |
def dummy_threads_calc(): | |
pool = ThreadPool(50) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/third_party/catapult/telemetry/telemetry/decorators.py b/src/third_party/catapult/telemetry/telemetry/decorators.py | |
index ecc97fb..1bbc5d69 100644 | |
--- a/src/third_party/catapult/telemetry/telemetry/decorators.py | |
+++ b/src/third_party/catapult/telemetry/telemetry/decorators.py | |
@@ -220,6 +220,27 @@ def Isolated(*args): | |
return _Isolated | |
+def Timeout(timeout_sec): | |
+ def _Timeout(func): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/third_party/catapult/common/py_trace_event/py_trace_event/trace_event_impl/multiprocessing_shim.py b/src/third_party/catapult/common/py_trace_event/py_trace_event/trace_event_impl/multiprocessing_shim.py | |
index 9796bdf..e82ac09 100644 | |
--- a/src/third_party/catapult/common/py_trace_event/py_trace_event/trace_event_impl/multiprocessing_shim.py | |
+++ b/src/third_party/catapult/common/py_trace_event/py_trace_event/trace_event_impl/multiprocessing_shim.py | |
@@ -3,6 +3,7 @@ | |
# found in the LICENSE file. | |
import multiprocessing | |
import log | |
+import os | |
import time |
NewerOlder