prompt
large_stringlengths
72
9.34k
completion
large_stringlengths
0
7.61k
<|file_name|>test_shipments.py<|end_file_name|><|fim▁begin|># This file is part of Shuup. # # Copyright (c) 2012-2016, Shoop Ltd. All rights reserved. # # This source code is licensed under the AGPLv3 license found in the # LICENSE file in the root directory of this source tree. import decimal import pytest from djan...
test_shipment_identifier
<|file_name|>test_shipments.py<|end_file_name|><|fim▁begin|># This file is part of Shuup. # # Copyright (c) 2012-2016, Shoop Ltd. All rights reserved. # # This source code is licensed under the AGPLv3 license found in the # LICENSE file in the root directory of this source tree. import decimal import pytest from djan...
test_shipment_creation_from_unsaved_shipment
<|file_name|>test_shipments.py<|end_file_name|><|fim▁begin|># This file is part of Shuup. # # Copyright (c) 2012-2016, Shoop Ltd. All rights reserved. # # This source code is licensed under the AGPLv3 license found in the # LICENSE file in the root directory of this source tree. import decimal import pytest from djan...
test_shipment_creation_without_supplier_and_shipment
<|file_name|>test_shipments.py<|end_file_name|><|fim▁begin|># This file is part of Shuup. # # Copyright (c) 2012-2016, Shoop Ltd. All rights reserved. # # This source code is licensed under the AGPLv3 license found in the # LICENSE file in the root directory of this source tree. import decimal import pytest from djan...
test_shipment_creation_with_invalid_unsaved_shipment
<|file_name|>test_shipments.py<|end_file_name|><|fim▁begin|># This file is part of Shuup. # # Copyright (c) 2012-2016, Shoop Ltd. All rights reserved. # # This source code is licensed under the AGPLv3 license found in the # LICENSE file in the root directory of this source tree. import decimal import pytest from djan...
test_partially_shipped_order_status
<|file_name|>test_shipments.py<|end_file_name|><|fim▁begin|># This file is part of Shuup. # # Copyright (c) 2012-2016, Shoop Ltd. All rights reserved. # # This source code is licensed under the AGPLv3 license found in the # LICENSE file in the root directory of this source tree. import decimal import pytest from djan...
test_shipment_delete
<|file_name|>test_shipments.py<|end_file_name|><|fim▁begin|># This file is part of Shuup. # # Copyright (c) 2012-2016, Shoop Ltd. All rights reserved. # # This source code is licensed under the AGPLv3 license found in the # LICENSE file in the root directory of this source tree. import decimal import pytest from djan...
test_shipment_with_insufficient_stock
<|file_name|>test_shipments.py<|end_file_name|><|fim▁begin|># This file is part of Shuup. # # Copyright (c) 2012-2016, Shoop Ltd. All rights reserved. # # This source code is licensed under the AGPLv3 license found in the # LICENSE file in the root directory of this source tree. import decimal import pytest from djan...
_get_order
<|file_name|>test_shipments.py<|end_file_name|><|fim▁begin|># This file is part of Shuup. # # Copyright (c) 2012-2016, Shoop Ltd. All rights reserved. # # This source code is licensed under the AGPLv3 license found in the # LICENSE file in the root directory of this source tree. import decimal import pytest from djan...
_get_product_data
<|file_name|>delete_specialist_pool_sample.py<|end_file_name|><|fim▁begin|># Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/L...
# def make_name(name: str) -> str: # Sample function parameter name in delete_specialist_pool_sample
<|file_name|>delete_specialist_pool_sample.py<|end_file_name|><|fim▁begin|># Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/L...
name = name return name
<|file_name|>delete_specialist_pool_sample.py<|end_file_name|><|fim▁begin|># Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/L...
make_name
<|file_name|>stata.py<|end_file_name|><|fim▁begin|>import pandas as pd from larray.core.array import Array from larray.inout.pandas import from_frame __all__ = ['read_stata'] def read_stata(filepath_or_buffer, index_col=None, sort_rows=False, sort_columns=False, **kwargs) -> Array: r""" Reads Stata .dta fil...
Whether or not to sort the rows alphabetically (sorting is more efficient than not sorting). This only makes sense in combination with index_col. Defaults to False.
<|file_name|>stata.py<|end_file_name|><|fim▁begin|>import pandas as pd from larray.core.array import Array from larray.inout.pandas import from_frame __all__ = ['read_stata'] def read_stata(filepath_or_buffer, index_col=None, sort_rows=False, sort_columns=False, **kwargs) -> Array: <|fim_middle|> <|fim▁end|>
r""" Reads Stata .dta file and returns an Array with the contents Parameters ---------- filepath_or_buffer : str or file-like object Path to .dta file or a file handle. index_col : str or None, optional Name of column to set as index. Defaults to None. sort_rows : bool, opti...
<|file_name|>stata.py<|end_file_name|><|fim▁begin|>import pandas as pd from larray.core.array import Array from larray.inout.pandas import from_frame __all__ = ['read_stata'] def <|fim_middle|>(filepath_or_buffer, index_col=None, sort_rows=False, sort_columns=False, **kwargs) -> Array: r""" Reads Stata .dta...
read_stata
<|file_name|>Stixai.py<|end_file_name|><|fim▁begin|>import random class ai: def __init__(self, actions, responses): self.IN = actions self.OUT = responses def get_act(self, action, valres): if action in self.IN: mList = {} <|fim▁hole|> mList[respon...
for response in self.OUT: if self.IN[self.OUT.index(response)] == action and not response in mList: mList[response] = 1 elif response in mList:
<|file_name|>Stixai.py<|end_file_name|><|fim▁begin|>import random class ai: <|fim_middle|> def test(): stix = ai(['attack', 'retreat', 'eat', 'attack', 'attack'], ['run', 'cheer', 'share lunch', 'fall', 'run']) print stix.get_act('attack', 0) #test() ...
def __init__(self, actions, responses): self.IN = actions self.OUT = responses def get_act(self, action, valres): if action in self.IN: mList = {} for response in self.OUT: if self.IN[self.OUT.index(response)] == action and not response in m...
<|file_name|>Stixai.py<|end_file_name|><|fim▁begin|>import random class ai: def __init__(self, actions, responses): <|fim_middle|> def get_act(self, action, valres): if action in self.IN: mList = {} for response in self.OUT: if self.IN[self.OUT....
self.IN = actions self.OUT = responses
<|file_name|>Stixai.py<|end_file_name|><|fim▁begin|>import random class ai: def __init__(self, actions, responses): self.IN = actions self.OUT = responses def get_act(self, action, valres): <|fim_middle|> def update(ins, outs): self.IN = ins self.OUT = out...
if action in self.IN: mList = {} for response in self.OUT: if self.IN[self.OUT.index(response)] == action and not response in mList: mList[response] = 1 elif response in mList: mList[response] += 1 ...
<|file_name|>Stixai.py<|end_file_name|><|fim▁begin|>import random class ai: def __init__(self, actions, responses): self.IN = actions self.OUT = responses def get_act(self, action, valres): if action in self.IN: mList = {} for response in self.OUT: ...
self.IN = ins self.OUT = outs
<|file_name|>Stixai.py<|end_file_name|><|fim▁begin|>import random class ai: def __init__(self, actions, responses): self.IN = actions self.OUT = responses def get_act(self, action, valres): if action in self.IN: mList = {} for response in self.OUT: ...
stix = ai(['attack', 'retreat', 'eat', 'attack', 'attack'], ['run', 'cheer', 'share lunch', 'fall', 'run']) print stix.get_act('attack', 0)
<|file_name|>Stixai.py<|end_file_name|><|fim▁begin|>import random class ai: def __init__(self, actions, responses): self.IN = actions self.OUT = responses def get_act(self, action, valres): if action in self.IN: <|fim_middle|> else: ...
mList = {} for response in self.OUT: if self.IN[self.OUT.index(response)] == action and not response in mList: mList[response] = 1 elif response in mList: mList[response] += 1 print mList keys ...
<|file_name|>Stixai.py<|end_file_name|><|fim▁begin|>import random class ai: def __init__(self, actions, responses): self.IN = actions self.OUT = responses def get_act(self, action, valres): if action in self.IN: mList = {} for response in self.OUT: ...
mList[response] = 1
<|file_name|>Stixai.py<|end_file_name|><|fim▁begin|>import random class ai: def __init__(self, actions, responses): self.IN = actions self.OUT = responses def get_act(self, action, valres): if action in self.IN: mList = {} for response in self.OUT: ...
mList[response] += 1
<|file_name|>Stixai.py<|end_file_name|><|fim▁begin|>import random class ai: def __init__(self, actions, responses): self.IN = actions self.OUT = responses def get_act(self, action, valres): if action in self.IN: mList = {} for response in self.OUT: ...
keys.append(k) vals.append(v)
<|file_name|>Stixai.py<|end_file_name|><|fim▁begin|>import random class ai: def __init__(self, actions, responses): self.IN = actions self.OUT = responses def get_act(self, action, valres): if action in self.IN: mList = {} for response in self.OUT: ...
resp = random.choice(self.OUT)
<|file_name|>Stixai.py<|end_file_name|><|fim▁begin|>import random class ai: def <|fim_middle|>(self, actions, responses): self.IN = actions self.OUT = responses def get_act(self, action, valres): if action in self.IN: mList = {} for response in self.OUT:...
__init__
<|file_name|>Stixai.py<|end_file_name|><|fim▁begin|>import random class ai: def __init__(self, actions, responses): self.IN = actions self.OUT = responses def <|fim_middle|>(self, action, valres): if action in self.IN: mList = {} for response in self.OUT...
get_act
<|file_name|>Stixai.py<|end_file_name|><|fim▁begin|>import random class ai: def __init__(self, actions, responses): self.IN = actions self.OUT = responses def get_act(self, action, valres): if action in self.IN: mList = {} for response in self.OUT: ...
update
<|file_name|>Stixai.py<|end_file_name|><|fim▁begin|>import random class ai: def __init__(self, actions, responses): self.IN = actions self.OUT = responses def get_act(self, action, valres): if action in self.IN: mList = {} for response in self.OUT: ...
test
<|file_name|>preprocess.py<|end_file_name|><|fim▁begin|><|fim▁hole|> def dummyPreprocessInput(image): image -= 127.5 return image def getPreprocessFunction(preprocessType): if preprocessType == "dummy": return dummyPreprocessInput elif preprocessType == "mobilenet": return mobilenet.p...
from keras.applications import imagenet_utils from keras.applications import mobilenet
<|file_name|>preprocess.py<|end_file_name|><|fim▁begin|>from keras.applications import imagenet_utils from keras.applications import mobilenet def dummyPreprocessInput(image): <|fim_middle|> def getPreprocessFunction(preprocessType): if preprocessType == "dummy": return dummyPreprocessInput el...
image -= 127.5 return image
<|file_name|>preprocess.py<|end_file_name|><|fim▁begin|>from keras.applications import imagenet_utils from keras.applications import mobilenet def dummyPreprocessInput(image): image -= 127.5 return image def getPreprocessFunction(preprocessType): <|fim_middle|> <|fim▁end|>
if preprocessType == "dummy": return dummyPreprocessInput elif preprocessType == "mobilenet": return mobilenet.preprocess_input elif preprocessType == "imagenet": return imagenet_utils.preprocess_input else: raise Exception(preprocessType + " not supported")
<|file_name|>preprocess.py<|end_file_name|><|fim▁begin|>from keras.applications import imagenet_utils from keras.applications import mobilenet def dummyPreprocessInput(image): image -= 127.5 return image def getPreprocessFunction(preprocessType): if preprocessType == "dummy": <|fim_midd...
return dummyPreprocessInput
<|file_name|>preprocess.py<|end_file_name|><|fim▁begin|>from keras.applications import imagenet_utils from keras.applications import mobilenet def dummyPreprocessInput(image): image -= 127.5 return image def getPreprocessFunction(preprocessType): if preprocessType == "dummy": return dummyPrepro...
return mobilenet.preprocess_input
<|file_name|>preprocess.py<|end_file_name|><|fim▁begin|>from keras.applications import imagenet_utils from keras.applications import mobilenet def dummyPreprocessInput(image): image -= 127.5 return image def getPreprocessFunction(preprocessType): if preprocessType == "dummy": return dummyPrepro...
return imagenet_utils.preprocess_input
<|file_name|>preprocess.py<|end_file_name|><|fim▁begin|>from keras.applications import imagenet_utils from keras.applications import mobilenet def dummyPreprocessInput(image): image -= 127.5 return image def getPreprocessFunction(preprocessType): if preprocessType == "dummy": return dummyPrepro...
raise Exception(preprocessType + " not supported")
<|file_name|>preprocess.py<|end_file_name|><|fim▁begin|>from keras.applications import imagenet_utils from keras.applications import mobilenet def <|fim_middle|>(image): image -= 127.5 return image def getPreprocessFunction(preprocessType): if preprocessType == "dummy": return dummyPreprocessIn...
dummyPreprocessInput
<|file_name|>preprocess.py<|end_file_name|><|fim▁begin|>from keras.applications import imagenet_utils from keras.applications import mobilenet def dummyPreprocessInput(image): image -= 127.5 return image def <|fim_middle|>(preprocessType): if preprocessType == "dummy": return dummyPreprocessInp...
getPreprocessFunction
<|file_name|>my_music.py<|end_file_name|><|fim▁begin|>from feeluown.utils.dispatch import Signal from feeluown.gui.widgets.my_music import MyMusicModel class MyMusicItem(object): def __init__(self, text): self.text = text self.clicked = Signal() class MyMusicUiManager: """ .. note:: ...
我们希望,MyMusic 中的 items 应该和 provider 保持关联。provider 是 MyMusic
<|file_name|>my_music.py<|end_file_name|><|fim▁begin|>from feeluown.utils.dispatch import Signal from feeluown.gui.widgets.my_music import MyMusicModel class MyMusicItem(object): <|fim_middle|> class MyMusicUiManager: """ .. note:: 目前,我们用数组的数据结构来保存 items,只提供 add_item 和 clear 方法。 我们希望,...
def __init__(self, text): self.text = text self.clicked = Signal()
<|file_name|>my_music.py<|end_file_name|><|fim▁begin|>from feeluown.utils.dispatch import Signal from feeluown.gui.widgets.my_music import MyMusicModel class MyMusicItem(object): def __init__(self, text): <|fim_middle|> class MyMusicUiManager: """ .. note:: 目前,我们用数组的数据结构来保存 items,只提供 ...
self.text = text self.clicked = Signal()
<|file_name|>my_music.py<|end_file_name|><|fim▁begin|>from feeluown.utils.dispatch import Signal from feeluown.gui.widgets.my_music import MyMusicModel class MyMusicItem(object): def __init__(self, text): self.text = text self.clicked = Signal() class MyMusicUiManager: <|fim_middle|> <|fim▁e...
""" .. note:: 目前,我们用数组的数据结构来保存 items,只提供 add_item 和 clear 方法。 我们希望,MyMusic 中的 items 应该和 provider 保持关联。provider 是 MyMusic 的上下文。 而 Provider 是比较上层的对象,我们会提供 get_item 这种比较精细的控制方法。 """ def __init__(self, app): self._app = app self._items = [] self.mod...
<|file_name|>my_music.py<|end_file_name|><|fim▁begin|>from feeluown.utils.dispatch import Signal from feeluown.gui.widgets.my_music import MyMusicModel class MyMusicItem(object): def __init__(self, text): self.text = text self.clicked = Signal() class MyMusicUiManager: """ .. note:: ...
MyMusicItem(text) def add_item(self, item): self.model.add(item)
<|file_name|>my_music.py<|end_file_name|><|fim▁begin|>from feeluown.utils.dispatch import Signal from feeluown.gui.widgets.my_music import MyMusicModel class MyMusicItem(object): def __init__(self, text): self.text = text self.clicked = Signal() class MyMusicUiManager: """ .. note:: ...
self._items.clear()
<|file_name|>my_music.py<|end_file_name|><|fim▁begin|>from feeluown.utils.dispatch import Signal from feeluown.gui.widgets.my_music import MyMusicModel class MyMusicItem(object): def __init__(self, text): self.text = text self.clicked = Signal() class MyMusicUiManager: """ .. note:: ...
<|file_name|>my_music.py<|end_file_name|><|fim▁begin|>from feeluown.utils.dispatch import Signal from feeluown.gui.widgets.my_music import MyMusicModel class MyMusicItem(object): def __init__(self, text): self.text = text self.clicked = Signal() class MyMusicUiManager: """ .. note:: ...
<|file_name|>my_music.py<|end_file_name|><|fim▁begin|>from feeluown.utils.dispatch import Signal from feeluown.gui.widgets.my_music import MyMusicModel class MyMusicItem(object): def <|fim_middle|>(self, text): self.text = text self.clicked = Signal() class MyMusicUiManager: """ .. note...
__init__
<|file_name|>my_music.py<|end_file_name|><|fim▁begin|>from feeluown.utils.dispatch import Signal from feeluown.gui.widgets.my_music import MyMusicModel class MyMusicItem(object): def __init__(self, text): self.text = text self.clicked = Signal() class MyMusicUiManager: """ .. note:: ...
em(cls,
<|file_name|>my_music.py<|end_file_name|><|fim▁begin|>from feeluown.utils.dispatch import Signal from feeluown.gui.widgets.my_music import MyMusicModel class MyMusicItem(object): def __init__(self, text): self.text = text self.clicked = Signal() class MyMusicUiManager: """ .. note:: ...
item)
<|file_name|>my_music.py<|end_file_name|><|fim▁begin|>from feeluown.utils.dispatch import Signal from feeluown.gui.widgets.my_music import MyMusicModel class MyMusicItem(object): def __init__(self, text): self.text = text self.clicked = Signal() class MyMusicUiManager: """ .. note:: ...
lf.model
<|file_name|>my_music.py<|end_file_name|><|fim▁begin|>from feeluown.utils.dispatch import Signal from feeluown.gui.widgets.my_music import MyMusicModel class MyMusicItem(object): def __init__(self, text): self.text = text self.clicked = Signal() class MyMusicUiManager: """ .. note:: ...
<|file_name|>pipelines.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html from scrapy.conf import settings import pymongo from datetime import dat...
# self.insert_in_db(questions)
<|file_name|>pipelines.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html from scrapy.conf import settings import pymongo from datetime import dat...
def __init__(self): self.connection = None def process_item(self, items, spider): if spider.name == "ls_questions": questions = items['questions'] # self.insert_in_db(questions) else: raise ValueError("Invalid collection:", spider.name) re...
<|file_name|>pipelines.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html from scrapy.conf import settings import pymongo from datetime import dat...
self.connection = None
<|file_name|>pipelines.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html from scrapy.conf import settings import pymongo from datetime import dat...
if spider.name == "ls_questions": questions = items['questions'] # self.insert_in_db(questions) else: raise ValueError("Invalid collection:", spider.name) return items
<|file_name|>pipelines.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html from scrapy.conf import settings import pymongo from datetime import dat...
with PQDataModel.batch_write() as batch: records = [] for q in questions: record = PQDataModel() record.question_number = q['question_number'] record.question_origin = q['question_origin'] record.question_type = q['question_...
<|file_name|>pipelines.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html from scrapy.conf import settings import pymongo from datetime import dat...
questions = items['questions'] # self.insert_in_db(questions)
<|file_name|>pipelines.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html from scrapy.conf import settings import pymongo from datetime import dat...
raise ValueError("Invalid collection:", spider.name)
<|file_name|>pipelines.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html from scrapy.conf import settings import pymongo from datetime import dat...
__init__
<|file_name|>pipelines.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html from scrapy.conf import settings import pymongo from datetime import dat...
process_item
<|file_name|>pipelines.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html from scrapy.conf import settings import pymongo from datetime import dat...
insert_in_db
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|># This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ s...
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
def setUp(self): fixture_path = "spec/fixtures/responses/whois.nic.pw/status_available.txt" host = "whois.nic.pw" part = yawhois.record.Part(open(fixture_path, "r").read(), host) self.record = yawhois.record.Record(None, [part]) def test_status(self): eq...
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
fixture_path = "spec/fixtures/responses/whois.nic.pw/status_available.txt" host = "whois.nic.pw" part = yawhois.record.Part(open(fixture_path, "r").read(), host) self.record = yawhois.record.Record(None, [part])
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
eq_(self.record.status, [])
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
eq_(self.record.available, True)
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
eq_(self.record.domain, None)
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
eq_(self.record.nameservers.__class__.__name__, 'list') eq_(self.record.nameservers, [])
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
eq_(self.record.admin_contacts.__class__.__name__, 'list') eq_(self.record.admin_contacts, [])
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
eq_(self.record.registered, False)
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
eq_(self.record.created_on, None)
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
eq_(self.record.registrar, None)
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
eq_(self.record.registrant_contacts.__class__.__name__, 'list') eq_(self.record.registrant_contacts, [])
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
eq_(self.record.technical_contacts.__class__.__name__, 'list') eq_(self.record.technical_contacts, [])
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
eq_(self.record.updated_on, None)
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
eq_(self.record.domain_id, None)
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
eq_(self.record.expires_on, None)
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
eq_(self.record.disclaimer, None)
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
setUp
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
test_status
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
test_available
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
test_domain
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
test_nameservers
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
test_admin_contacts
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
test_registered
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
test_created_on
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
test_registrar
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
test_registrant_contacts
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
test_technical_contacts
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
test_updated_on
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
test_domain_id
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
test_expires_on
<|file_name|>test_response_whois_nic_pw_status_available.py<|end_file_name|><|fim▁begin|> # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ ...
test_disclaimer
<|file_name|>message.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # # Cloud Robotics FX 会話理解API用メッセージ # # @author: Osamu Noguchi <noguchi@headwaters.co.jp> # @version: 0.0.1 import cloudrobotics.message as message APP_ID = 'SbrApiServices' PROCESSING_ID = 'RbAppConversationApi' # 会話メッセージ # class Conversati...
'visitor': visitor,
<|file_name|>message.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # # Cloud Robotics FX 会話理解API用メッセージ # # @author: Osamu Noguchi <noguchi@headwaters.co.jp> # @version: 0.0.1 import cloudrobotics.message as message APP_ID = 'SbrApiServices' PROCESSING_ID = 'RbAppConversationApi' # 会話メッセージ # class Conversati...
r_id, talkByMe, type): super(ConversationMessage, self).__init__() self.header['RoutingType'] = message.ROUTING_TYPE_CALL self.header['AppProcessingId'] = PROCESSING_ID self.header['MessageId'] = type self.body = { 'visitor': visitor, 'visitor_id': v...
<|file_name|>message.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # # Cloud Robotics FX 会話理解API用メッセージ # # @author: Osamu Noguchi <noguchi@headwaters.co.jp> # @version: 0.0.1 import cloudrobotics.message as message APP_ID = 'SbrApiServices' PROCESSING_ID = 'RbAppConversationApi' # 会話メッセージ # class Conversati...
_init__() self.header['RoutingType'] = message.ROUTING_TYPE_CALL self.header['AppProcessingId'] = PROCESSING_ID self.header['MessageId'] = type self.body = { 'visitor': visitor, 'visitor_id': visitor_id, 'talkByMe': talkByMe }
<|file_name|>message.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # # Cloud Robotics FX 会話理解API用メッセージ # # @author: Osamu Noguchi <noguchi@headwaters.co.jp> # @version: 0.0.1 import cloudrobotics.message as message APP_ID = 'SbrApiServices' PROCESSING_ID = 'RbAppConversationApi' # 会話メッセージ # class Conversati...
, talkBy
<|file_name|>region_BG.py<|end_file_name|><|fim▁begin|>"""Auto-generated file, do not edit by hand. BG metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_BG = PhoneMetadata(id='BG', country_code=359, international_prefix='00', general_desc=PhoneNumberDesc(national_n...
standard_rate=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'), no_international_dialling=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'), national_prefix='0', national_prefix_for_parsing='0',
<|file_name|>utils.py<|end_file_name|><|fim▁begin|># -*- encoding: utf-8 -*- # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # ...
elif part in multiple_operators: