function stringlengths 11 56k | repo_name stringlengths 5 60 | features list |
|---|---|---|
def extractSweetjamtranslationsCom(item):
'''
Parser for 'sweetjamtranslations.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('PRC', 'PRC', 'translated'),
('Loi... | fake-name/ReadableWebProxy | [
191,
16,
191,
3,
1437712243
] |
def extractMiratlsWordpressCom(item):
'''
Parser for 'miratls.wordpress.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('PRC', 'PRC', 'translated'),
('Loiterous'... | fake-name/ReadableWebProxy | [
191,
16,
191,
3,
1437712243
] |
def create(kernel):
result = Building()
result.template = "object/building/player/shared_player_city_bank_corellia_style_01.iff"
result.attribute_template_id = -1
result.stfName("","") | anhstudios/swganh | [
62,
37,
62,
37,
1297996365
] |
def create(kernel):
result = Building()
result.template = "object/building/poi/shared_corellia_solitude_medium3.iff"
result.attribute_template_id = -1
result.stfName("poi_n","base_poi_building") | anhstudios/swganh | [
62,
37,
62,
37,
1297996365
] |
def create(kernel):
result = Tangible()
result.template = "object/tangible/inventory/shared_creature_inventory_6.iff"
result.attribute_template_id = -1
result.stfName("item_n","inventory") | anhstudios/swganh | [
62,
37,
62,
37,
1297996365
] |
def __init__(self, plotly_name="pad", parent_name="layout.title", **kwargs):
super(PadValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
data_class_str=kwargs.pop("data_class_str", "Pad"),
data_docs=kwargs.pop(
"data_docs"... | plotly/python-api | [
13052,
2308,
13052,
1319,
1385013188
] |
def setUp(self):
super().setUp()
self.course = CourseFactory.create()
self.instructor = AdminFactory.create()
self.user = UserFactory() | eduNEXT/edunext-platform | [
28,
7,
28,
10,
1414072000
] |
def test_wiki_enabled_and_public(self):
"""
Test wiki tab when Enabled setting is True and the wiki is open to
the public.
"""
settings.WIKI_ENABLED = True
self.course.allow_public_wiki_access = True
assert self.get_wiki_tab(self.user, self.course) is not None | eduNEXT/edunext-platform | [
28,
7,
28,
10,
1414072000
] |
def test_wiki_enabled_false(self):
"""Test wiki tab when Enabled setting is False"""
settings.WIKI_ENABLED = False
assert self.get_wiki_tab(self.user, self.course) is None
assert self.get_wiki_tab(self.instructor, self.course) is None | eduNEXT/edunext-platform | [
28,
7,
28,
10,
1414072000
] |
def __init__(self, magics_manager, ignore=None):
self.ignore = ignore if ignore else []
self.magics_manager = magics_manager | unnikrishnankgs/va | [
1,
5,
1,
10,
1496432585
] |
def _lsmagic(self):
"""The main implementation of the %lsmagic"""
mesc = magic_escapes['line']
cesc = magic_escapes['cell']
mman = self.magics_manager
magics = mman.lsmagic()
out = ['Available line magics:',
mesc + (' '+mesc).join(sorted([m for m,v in magi... | unnikrishnankgs/va | [
1,
5,
1,
10,
1496432585
] |
def __str__(self):
return self._lsmagic() | unnikrishnankgs/va | [
1,
5,
1,
10,
1496432585
] |
def _jsonable(self):
"""turn magics dict into jsonable dict of the same structure | unnikrishnankgs/va | [
1,
5,
1,
10,
1496432585
] |
def _repr_json_(self):
return self._jsonable() | unnikrishnankgs/va | [
1,
5,
1,
10,
1496432585
] |
def alias_magic(self, line=''):
"""Create an alias for an existing line or cell magic.
Examples
--------
::
In [1]: %alias_magic t timeit
Created `%t` as an alias for `%timeit`.
Created `%%t` as an alias for `%%timeit`.
In [2]: %t -n1 pass
... | unnikrishnankgs/va | [
1,
5,
1,
10,
1496432585
] |
def lsmagic(self, parameter_s=''):
"""List currently available magic functions."""
return MagicsDisplay(self.shell.magics_manager, ignore=[self.pip]) | unnikrishnankgs/va | [
1,
5,
1,
10,
1496432585
] |
def magic(self, parameter_s=''):
"""Print information about the magic function system.
Supported formats: -latex, -brief, -rest
"""
mode = ''
try:
mode = parameter_s.split()[0][1:]
except IndexError:
pass
brief = (mode == 'brief')
... | unnikrishnankgs/va | [
1,
5,
1,
10,
1496432585
] |
def page(self, parameter_s=''):
"""Pretty print the object and display it through a pager.
%page [options] OBJECT
If no object is given, use _ (last output).
Options:
-r: page str(object), don't pretty-print it."""
# After a function contributed by Olivier Aubert, ... | unnikrishnankgs/va | [
1,
5,
1,
10,
1496432585
] |
def profile(self, parameter_s=''):
"""Print your currently active IPython profile.
See Also
--------
prun : run code using the Python profiler
(:meth:`~IPython.core.magics.execution.ExecutionMagics.prun`)
"""
raise UsageError("The `%profile` magic has been... | unnikrishnankgs/va | [
1,
5,
1,
10,
1496432585
] |
def pprint(self, parameter_s=''):
"""Toggle pretty printing on/off."""
ptformatter = self.shell.display_formatter.formatters['text/plain']
ptformatter.pprint = bool(1 - ptformatter.pprint)
print('Pretty printing has been turned',
['OFF','ON'][ptformatter.pprint]) | unnikrishnankgs/va | [
1,
5,
1,
10,
1496432585
] |
def colors(self, parameter_s=''):
"""Switch color scheme for prompts, info system and exception handlers.
Currently implemented schemes: NoColor, Linux, LightBG.
Color scheme names are not case-sensitive.
Examples
--------
To get a plain black and white terminal::
... | unnikrishnankgs/va | [
1,
5,
1,
10,
1496432585
] |
def xmode(self, parameter_s=''):
"""Switch modes for the exception handlers.
Valid modes: Plain, Context and Verbose.
If called without arguments, acts as a toggle."""
def xmode_switch_err(name):
warn('Error changing %s exception modes.\n%s' %
(name,sys.ex... | unnikrishnankgs/va | [
1,
5,
1,
10,
1496432585
] |
def pip(self, args=''):
"""
Intercept usage of ``pip`` in IPython and direct user to run command outside of IPython.
"""
print(textwrap.dedent('''
The following command must be run outside of the IPython shell:
$ pip {args}
The Python package manager (pip) c... | unnikrishnankgs/va | [
1,
5,
1,
10,
1496432585
] |
def quickref(self, arg):
""" Show a quick reference sheet """
from IPython.core.usage import quick_reference
qr = quick_reference + self._magic_docs(brief=True)
page.page(qr) | unnikrishnankgs/va | [
1,
5,
1,
10,
1496432585
] |
def doctest_mode(self, parameter_s=''):
"""Toggle doctest mode on and off.
This mode is intended to make IPython behave as much as possible like a
plain Python shell, from the perspective of how its prompts, exceptions
and output look. This makes it easy to copy and paste parts of a
... | unnikrishnankgs/va | [
1,
5,
1,
10,
1496432585
] |
def gui(self, parameter_s=''):
"""Enable or disable IPython GUI event loop integration.
%gui [GUINAME]
This magic replaces IPython's threaded shells that were activated
using the (pylab/wthread/etc.) command line flags. GUI toolkits
can now be enabled at runtime and keyboard
... | unnikrishnankgs/va | [
1,
5,
1,
10,
1496432585
] |
def precision(self, s=''):
"""Set floating point precision for pretty printing.
Can set either integer precision or a format string.
If numpy has been imported and precision is an int,
numpy display precision will also be set, via ``numpy.set_printoptions``.
If no argument is ... | unnikrishnankgs/va | [
1,
5,
1,
10,
1496432585
] |
def setUp(self): # pylint: disable=arguments-differ
"""
Test Setup
"""
super().setUp()
self.url = reverse('mfe_context')
self.query_params = {'next': '/dashboard'}
hostname = socket.gethostname()
ip_address = socket.gethostbyname(hostname)
self.... | edx/edx-platform | [
6290,
3437,
6290,
280,
1369945238
] |
def get_provider_data(self, params):
"""
Returns the expected provider data based on providers enabled in test setup
"""
return [
{
'id': 'oa2-facebook',
'name': 'Facebook',
'iconClass': 'fa-facebook',
'iconImage... | edx/edx-platform | [
6290,
3437,
6290,
280,
1369945238
] |
def test_no_third_party_auth_providers(self):
"""
Test that if third party auth is enabled, context returned by API contains
the provider information
"""
response = self.client.get(self.url, self.query_params)
assert response.status_code == 200
assert response.dat... | edx/edx-platform | [
6290,
3437,
6290,
280,
1369945238
] |
def test_running_pipeline(self, current_backend, current_provider, add_user_details):
"""
Test that when third party pipeline is running, the api returns details
of current provider
"""
email = 'test@test.com' if add_user_details else None
params = {
'next': s... | edx/edx-platform | [
6290,
3437,
6290,
280,
1369945238
] |
def test_user_country_code(self):
"""
Test api that returns country code of user
"""
response = self.client.get(self.url, self.query_params)
assert response.status_code == 200
assert response.data['countryCode'] == self.country_code | edx/edx-platform | [
6290,
3437,
6290,
280,
1369945238
] |
def setUp(self):
"""
Create a user, then log in.
"""
super().setUp()
self.user = UserFactory()
Registration().register(self.user)
result = self.client.login(username=self.user.username, password="test")
assert result, 'Could not log in'
self.path =... | edx/edx-platform | [
6290,
3437,
6290,
280,
1369945238
] |
def __init__(self, job, function_handle_string, trace_canonical_url,
failure_type_name, description, stack):
assert isinstance(job, job_module.Job)
self.job = job
self.function_handle_string = function_handle_string
self.trace_canonical_url = trace_canonical_url
self.failure_type_nam... | catapult-project/catapult | [
1835,
570,
1835,
1039,
1429033745
] |
def AsDict(self):
return {
'job_guid': str(self.job.guid),
'function_handle_string': self.function_handle_string,
'trace_canonical_url': self.trace_canonical_url,
'type': self.failure_type_name,
'description': self.description,
'stack': self.stack
} | catapult-project/catapult | [
1835,
570,
1835,
1039,
1429033745
] |
def fetch_spec(props):
url = 'https://chromium.googlesource.com/devtools/devtools-frontend.git'
solution = {
'name' : 'devtools-frontend',
'url' : url,
'deps_file' : 'DEPS',
'managed' : False,
'custom_deps' : {},
}
spec = {
'solutions': ... | endlessm/chromium-browser | [
21,
16,
21,
3,
1435959644
] |
def expected_root(_props):
return 'devtools-frontend' | endlessm/chromium-browser | [
21,
16,
21,
3,
1435959644
] |
def __init__(self, key = None, padding = padWithPadLen(), keySize=16, blockSize=16 ):
self.name = 'RIJNDAEL'
self.keySize = keySize
self.strength = keySize*8
self.blockSize = blockSize # blockSize is in bytes
self.padding = padding # change default to noPadding... | felipenaselva/felipe.repository | [
2,
6,
2,
1,
1474110890
] |
def encryptBlock(self, plainTextBlock):
""" Encrypt a block, plainTextBlock must be a array of bytes [Nb by 4] """
self.state = self._toBlock(plainTextBlock)
AddRoundKey(self, self.__expandedKey[0:self.Nb])
for round in range(1,self.Nr): #for round = 1 step 1 to Nr1
... | felipenaselva/felipe.repository | [
2,
6,
2,
1,
1474110890
] |
def _toBlock(self, bs):
""" Convert binary string to array of bytes, state[col][row]"""
assert ( len(bs) == 4*self.Nb ), 'Rijndarl blocks must be of size blockSize'
return [[ord(bs[4*i]),ord(bs[4*i+1]),ord(bs[4*i+2]),ord(bs[4*i+3])] for i in range(self.Nb)] | felipenaselva/felipe.repository | [
2,
6,
2,
1,
1474110890
] |
def keyExpansion(algInstance, keyString):
""" Expand a string of size keySize into a larger array """
Nk, Nb, Nr = algInstance.Nk, algInstance.Nb, algInstance.Nr # for readability
key = [ord(byte) for byte in keyString] # convert string to list
w = [[key[4*i],key[4*i+1],key[4*i+2],key[4*i+3]] for i in ... | felipenaselva/felipe.repository | [
2,
6,
2,
1,
1474110890
] |
def AddRoundKey(algInstance, keyBlock):
""" XOR the algorithm state with a block of key material """
for column in range(algInstance.Nb):
for row in range(4):
algInstance.state[column][row] ^= keyBlock[column][row] | felipenaselva/felipe.repository | [
2,
6,
2,
1,
1474110890
] |
def SubBytes(algInstance):
for column in range(algInstance.Nb):
for row in range(4):
algInstance.state[column][row] = Sbox[algInstance.state[column][row]] | felipenaselva/felipe.repository | [
2,
6,
2,
1,
1474110890
] |
def ShiftRows(algInstance):
tmp = [0]*algInstance.Nb # list of size Nb
for r in range(1,4): # row 0 reamains unchanged and can be skipped
for c in range(algInstance.Nb):
tmp[c] = algInstance.state[(c+shiftOffset[algInstance.Nb][r]) % algInstance.Nb][r]
for c in range(algInsta... | felipenaselva/felipe.repository | [
2,
6,
2,
1,
1474110890
] |
def MixColumns(a):
Sprime = [0,0,0,0]
for j in range(a.Nb): # for each column
Sprime[0] = mul(2,a.state[j][0])^mul(3,a.state[j][1])^mul(1,a.state[j][2])^mul(1,a.state[j][3])
Sprime[1] = mul(1,a.state[j][0])^mul(2,a.state[j][1])^mul(3,a.state[j][2])^mul(1,a.state[j][3])
Sprime[2] = mul... | felipenaselva/felipe.repository | [
2,
6,
2,
1,
1474110890
] |
def mul(a, b):
""" Multiply two elements of GF(2^m)
needed for MixColumn and InvMixColumn """
if (a !=0 and b!=0):
return Alogtable[(Logtable[a] + Logtable[b])%255]
else:
return 0 | felipenaselva/felipe.repository | [
2,
6,
2,
1,
1474110890
] |
def __init__(self, env):
super(IndexEntries, self).__init__(env)
self.data = env.indexentries | axbaretto/beam | [
9,
2,
9,
74,
1474583398
] |
def merge_other(self, docnames, other):
for docname in docnames:
self.data[docname] = other.indexentries[docname] | axbaretto/beam | [
9,
2,
9,
74,
1474583398
] |
def _get_logger(self):
return logging.getLogger(self.__class__.__module__) | kartoza/geonode | [
6,
17,
6,
113,
1439813567
] |
def ready(self):
signals.post_migrate.connect(self._register_notifications, sender=self) | kartoza/geonode | [
6,
17,
6,
113,
1439813567
] |
def wrap(*args, **kwargs):
ret = func(*args, **kwargs)
if settings.PINAX_NOTIFICATIONS_QUEUE_ALL:
send_queued_notifications.delay()
return ret | kartoza/geonode | [
6,
17,
6,
113,
1439813567
] |
def send_now_notification(*args, **kwargs):
"""
Simple wrapper around notifications.model send().
This can be called safely if notifications are not installed.
"""
if has_notifications:
return notifications.models.send_now(*args, **kwargs) | kartoza/geonode | [
6,
17,
6,
113,
1439813567
] |
def send_notification(*args, **kwargs):
"""
Simple wrapper around notifications.model send().
This can be called safely if notifications are not installed.
"""
if has_notifications:
# queue for further processing if required
if settings.PINAX_NOTIFICATIONS_QUEUE_ALL:
retu... | kartoza/geonode | [
6,
17,
6,
113,
1439813567
] |
def __init__(self, imagepath, name, pos = None,border=40):
pygame.sprite.Sprite.__init__(self)
component.__init__(self)
self.imagepath = imagepath
self.image = None
self.original = None
self.rect = None
self.pos = pos
if self.pos == None:
self.... | sparkslabs/kamaelia_ | [
13,
3,
13,
2,
1348148442
] |
def sprite_logic(self):
while 1:
yield 1 | sparkslabs/kamaelia_ | [
13,
3,
13,
2,
1348148442
] |
def setUp(self):
self._vmutils = vmutils.VMUtils()
self._vmutils._conn = mock.MagicMock()
super(VMUtilsTestCase, self).setUp() | ntt-sic/nova | [
1,
2,
1,
1,
1382427064
] |
def _lookup_vm(self):
mock_vm = mock.MagicMock()
self._vmutils._lookup_vm_check = mock.MagicMock(
return_value=mock_vm)
mock_vm.path_.return_value = self._FAKE_VM_PATH
return mock_vm | ntt-sic/nova | [
1,
2,
1,
1,
1382427064
] |
def test_set_vm_memory_dynamic(self):
self._test_set_vm_memory_dynamic(2.0) | ntt-sic/nova | [
1,
2,
1,
1,
1382427064
] |
def encode(self,input,errors='strict'):
return codecs.charmap_encode(input,errors,encoding_map) | Microvellum/Fluid-Designer | [
69,
30,
69,
37,
1461884765
] |
def encode(self, input, final=False):
return codecs.charmap_encode(input,self.errors,encoding_map)[0] | Microvellum/Fluid-Designer | [
69,
30,
69,
37,
1461884765
] |
def decode(self, input, final=False):
return codecs.charmap_decode(input,self.errors,decoding_table)[0] | Microvellum/Fluid-Designer | [
69,
30,
69,
37,
1461884765
] |
def getregentry():
return codecs.CodecInfo(
name='cp437',
encode=Codec().encode,
decode=Codec().decode,
incrementalencoder=IncrementalEncoder,
incrementaldecoder=IncrementalDecoder,
streamreader=StreamReader,
streamwriter=StreamWriter,
) | Microvellum/Fluid-Designer | [
69,
30,
69,
37,
1461884765
] |
def __init__(self, client, config, serializer, deserializer) -> None:
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self._config = config | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def prepare_request(next_link=None):
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
if not next_link:
# Construct URL
url = self.list_for_res... | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def list_for_resource(
self,
resource_group_name: str,
resource_provider_namespace: str,
parent_resource_path: str,
resource_type: str,
resource_name: str,
**kwargs: Any | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def prepare_request(next_link=None):
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
if not next_link:
# Construct URL
url = self.list_for_res... | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def __init__(
self,
plotly_name="size",
parent_name="histogram.marker.colorbar.tickfont",
**kwargs | plotly/python-api | [
13052,
2308,
13052,
1319,
1385013188
] |
def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self._config = config | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def begin_delete(
self,
resource_group_name, # type: str
virtual_router_name, # type: str
peering_name, # type: str
**kwargs # type: Any | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def get_long_running_output(pipeline_response):
if cls:
return cls(pipeline_response, None, {}) | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def get(
self,
resource_group_name, # type: str
virtual_router_name, # type: str
peering_name, # type: str
**kwargs # type: Any | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def _create_or_update_initial(
self,
resource_group_name, # type: str
virtual_router_name, # type: str
peering_name, # type: str
parameters, # type: "_models.VirtualRouterPeering"
**kwargs # type: Any | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def begin_create_or_update(
self,
resource_group_name, # type: str
virtual_router_name, # type: str
peering_name, # type: str
parameters, # type: "_models.VirtualRouterPeering"
**kwargs # type: Any | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def get_long_running_output(pipeline_response):
deserialized = self._deserialize('VirtualRouterPeering', pipeline_response)
if cls:
return cls(pipeline_response, deserialized, {})
return deserialized | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def list(
self,
resource_group_name, # type: str
virtual_router_name, # type: str
**kwargs # type: Any | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def prepare_request(next_link=None):
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
if not next_link:
# Construct URL
url = self.list.metadat... | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def get_next(next_link=None):
request = prepare_request(next_link)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
error = self._deserialize.... | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def fail():
for t in [TypeA, TypeB]:
x = TypeA()
run_test(x) | github/codeql | [
5783,
1304,
5783,
842,
1533054951
] |
def OK1(seq):
for _ in seq:
do_something()
print("Hi") | github/codeql | [
5783,
1304,
5783,
842,
1533054951
] |
def OK2(seq):
i = 3
for x in seq:
i += 1
return i | github/codeql | [
5783,
1304,
5783,
842,
1533054951
] |
def OK3(seq):
for thing in seq:
return "Not empty"
return "empty" | github/codeql | [
5783,
1304,
5783,
842,
1533054951
] |
def OK4(n):
r = range(n)
for i in r:
print("x") | github/codeql | [
5783,
1304,
5783,
842,
1533054951
] |
def OK5(seq):
for unused_x in seq:
print("x") | github/codeql | [
5783,
1304,
5783,
842,
1533054951
] |
def OK6(seq):
for thing in seq:
if sum(1 for s in STATUSES
if thing <= s < thing + 100) >= quorum:
return True | github/codeql | [
5783,
1304,
5783,
842,
1533054951
] |
def OK7(seq):
for x in seq:
queue.add(None) | github/codeql | [
5783,
1304,
5783,
842,
1533054951
] |
def OK7(seq, queue):
for x in seq:
queue.add(None) | github/codeql | [
5783,
1304,
5783,
842,
1533054951
] |
def fail2(sequence):
for x in sequence:
for y in sequence:
do_something(x+1) | github/codeql | [
5783,
1304,
5783,
842,
1533054951
] |
def fail4(coll, sequence):
while coll:
x = coll.pop()
for s in sequence:
do_something(x+1) | github/codeql | [
5783,
1304,
5783,
842,
1533054951
] |
def fail5(t):
x, y = t
return x | github/codeql | [
5783,
1304,
5783,
842,
1533054951
] |
def __init__(self):
self.attr = self.cls_attr | github/codeql | [
5783,
1304,
5783,
842,
1533054951
] |
def rand_list():
return [ random.random() for i in range(100) ] | github/codeql | [
5783,
1304,
5783,
842,
1533054951
] |
def cleanup(sessions):
for sess in sessions:
# Original code had some comment about deleting sessions
del sess | github/codeql | [
5783,
1304,
5783,
842,
1533054951
] |
def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self._config = config | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def begin_create_or_update(
self,
resource_group_name, # type: str
express_route_gateway_name, # type: str
connection_name, # type: str
put_express_route_connection_parameters, # type: "_models.ExpressRouteConnection"
**kwargs # type: Any | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def get_long_running_output(pipeline_response):
deserialized = self._deserialize('ExpressRouteConnection', pipeline_response)
if cls:
return cls(pipeline_response, deserialized, {})
return deserialized | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def get(
self,
resource_group_name, # type: str
express_route_gateway_name, # type: str
connection_name, # type: str
**kwargs # type: Any | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def _delete_initial(
self,
resource_group_name, # type: str
express_route_gateway_name, # type: str
connection_name, # type: str
**kwargs # type: Any | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def begin_delete(
self,
resource_group_name, # type: str
express_route_gateway_name, # type: str
connection_name, # type: str
**kwargs # type: Any | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def get_long_running_output(pipeline_response):
if cls:
return cls(pipeline_response, None, {}) | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def list(
self,
resource_group_name, # type: str
express_route_gateway_name, # type: str
**kwargs # type: Any | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.