body_hash stringlengths 64 64 | body stringlengths 23 109k | docstring stringlengths 1 57k | path stringlengths 4 198 | name stringlengths 1 115 | repository_name stringlengths 7 111 | repository_stars float64 0 191k | lang stringclasses 1 value | body_without_docstring stringlengths 14 108k | unified stringlengths 45 133k |
|---|---|---|---|---|---|---|---|---|---|
240bd4585128231fe1f0961ea0a2ff7ba0ea64750bf1b7a8b8b9acc9f4f5dc31 | @provider.setter
def provider(self, provider):
'\n Sets the provider of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param provider: The provider of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n '
self._provider = provider | Sets the provider of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param provider: The provider of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: str | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | provider | cjohnson-ctl/platform-client-sdk-python | 10 | python | @provider.setter
def provider(self, provider):
'\n Sets the provider of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param provider: The provider of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n '
self._provider = provider | @provider.setter
def provider(self, provider):
'\n Sets the provider of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param provider: The provider of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n '
self._provider = provider<|docstring|>Sets the provider of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param provider: The provider of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: str<|endoftext|> |
d574a43e9e7c06a2149b55cdf40fea16a99fc6dfeaf64d8867f49d2280b73df7 | @property
def external_contact(self):
'\n Gets the external_contact of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The external_contact of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicUriReference\n '
return self._external_contact | Gets the external_contact of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The external_contact of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: QueueConversationCallbackEventTopicUriReference | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | external_contact | cjohnson-ctl/platform-client-sdk-python | 10 | python | @property
def external_contact(self):
'\n Gets the external_contact of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The external_contact of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicUriReference\n '
return self._external_contact | @property
def external_contact(self):
'\n Gets the external_contact of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The external_contact of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicUriReference\n '
return self._external_contact<|docstring|>Gets the external_contact of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The external_contact of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: QueueConversationCallbackEventTopicUriReference<|endoftext|> |
bdac29084d65b1f4ed22f5de53b5fd9679acd1b60b5c5dd3c63e7c55ca49b113 | @external_contact.setter
def external_contact(self, external_contact):
'\n Sets the external_contact of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param external_contact: The external_contact of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicUriReference\n '
self._external_contact = external_contact | Sets the external_contact of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param external_contact: The external_contact of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: QueueConversationCallbackEventTopicUriReference | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | external_contact | cjohnson-ctl/platform-client-sdk-python | 10 | python | @external_contact.setter
def external_contact(self, external_contact):
'\n Sets the external_contact of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param external_contact: The external_contact of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicUriReference\n '
self._external_contact = external_contact | @external_contact.setter
def external_contact(self, external_contact):
'\n Sets the external_contact of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param external_contact: The external_contact of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicUriReference\n '
self._external_contact = external_contact<|docstring|>Sets the external_contact of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param external_contact: The external_contact of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: QueueConversationCallbackEventTopicUriReference<|endoftext|> |
12d012f3028918a9df48436d99ddaccf37853d78e05054b736037ece4b8c96cf | @property
def external_organization(self):
'\n Gets the external_organization of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The external_organization of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicUriReference\n '
return self._external_organization | Gets the external_organization of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The external_organization of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: QueueConversationCallbackEventTopicUriReference | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | external_organization | cjohnson-ctl/platform-client-sdk-python | 10 | python | @property
def external_organization(self):
'\n Gets the external_organization of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The external_organization of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicUriReference\n '
return self._external_organization | @property
def external_organization(self):
'\n Gets the external_organization of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The external_organization of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicUriReference\n '
return self._external_organization<|docstring|>Gets the external_organization of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The external_organization of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: QueueConversationCallbackEventTopicUriReference<|endoftext|> |
55aad86a2529443d186fc6c64936ca0f1f933b0d16de14fff3a2a68058a4a6db | @external_organization.setter
def external_organization(self, external_organization):
'\n Sets the external_organization of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param external_organization: The external_organization of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicUriReference\n '
self._external_organization = external_organization | Sets the external_organization of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param external_organization: The external_organization of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: QueueConversationCallbackEventTopicUriReference | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | external_organization | cjohnson-ctl/platform-client-sdk-python | 10 | python | @external_organization.setter
def external_organization(self, external_organization):
'\n Sets the external_organization of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param external_organization: The external_organization of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicUriReference\n '
self._external_organization = external_organization | @external_organization.setter
def external_organization(self, external_organization):
'\n Sets the external_organization of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param external_organization: The external_organization of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicUriReference\n '
self._external_organization = external_organization<|docstring|>Sets the external_organization of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param external_organization: The external_organization of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: QueueConversationCallbackEventTopicUriReference<|endoftext|> |
a87f09257b9c181d2a1195e3ea47e923767d5f7e525f99884fb1d0098edbbe73 | @property
def wrapup(self):
'\n Gets the wrapup of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The wrapup of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicWrapup\n '
return self._wrapup | Gets the wrapup of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The wrapup of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: QueueConversationCallbackEventTopicWrapup | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | wrapup | cjohnson-ctl/platform-client-sdk-python | 10 | python | @property
def wrapup(self):
'\n Gets the wrapup of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The wrapup of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicWrapup\n '
return self._wrapup | @property
def wrapup(self):
'\n Gets the wrapup of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The wrapup of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicWrapup\n '
return self._wrapup<|docstring|>Gets the wrapup of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The wrapup of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: QueueConversationCallbackEventTopicWrapup<|endoftext|> |
e57916353f1002207d684c67d91722e595ee3ace6d315f8a27d0d2fe280b2abc | @wrapup.setter
def wrapup(self, wrapup):
'\n Sets the wrapup of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param wrapup: The wrapup of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicWrapup\n '
self._wrapup = wrapup | Sets the wrapup of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param wrapup: The wrapup of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: QueueConversationCallbackEventTopicWrapup | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | wrapup | cjohnson-ctl/platform-client-sdk-python | 10 | python | @wrapup.setter
def wrapup(self, wrapup):
'\n Sets the wrapup of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param wrapup: The wrapup of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicWrapup\n '
self._wrapup = wrapup | @wrapup.setter
def wrapup(self, wrapup):
'\n Sets the wrapup of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param wrapup: The wrapup of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicWrapup\n '
self._wrapup = wrapup<|docstring|>Sets the wrapup of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param wrapup: The wrapup of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: QueueConversationCallbackEventTopicWrapup<|endoftext|> |
802a10811c0641adab6ac7c94c295d84a89f45f3df8367bc2de57eeaa54b9ae1 | @property
def conversation_routing_data(self):
'\n Gets the conversation_routing_data of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The conversation_routing_data of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicConversationRoutingData\n '
return self._conversation_routing_data | Gets the conversation_routing_data of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The conversation_routing_data of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: QueueConversationCallbackEventTopicConversationRoutingData | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | conversation_routing_data | cjohnson-ctl/platform-client-sdk-python | 10 | python | @property
def conversation_routing_data(self):
'\n Gets the conversation_routing_data of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The conversation_routing_data of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicConversationRoutingData\n '
return self._conversation_routing_data | @property
def conversation_routing_data(self):
'\n Gets the conversation_routing_data of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The conversation_routing_data of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicConversationRoutingData\n '
return self._conversation_routing_data<|docstring|>Gets the conversation_routing_data of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The conversation_routing_data of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: QueueConversationCallbackEventTopicConversationRoutingData<|endoftext|> |
4c4436c576277563c268b2c895e15e8571c9c79eaa2290d6bfde4e1bac965863 | @conversation_routing_data.setter
def conversation_routing_data(self, conversation_routing_data):
'\n Sets the conversation_routing_data of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param conversation_routing_data: The conversation_routing_data of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicConversationRoutingData\n '
self._conversation_routing_data = conversation_routing_data | Sets the conversation_routing_data of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param conversation_routing_data: The conversation_routing_data of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: QueueConversationCallbackEventTopicConversationRoutingData | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | conversation_routing_data | cjohnson-ctl/platform-client-sdk-python | 10 | python | @conversation_routing_data.setter
def conversation_routing_data(self, conversation_routing_data):
'\n Sets the conversation_routing_data of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param conversation_routing_data: The conversation_routing_data of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicConversationRoutingData\n '
self._conversation_routing_data = conversation_routing_data | @conversation_routing_data.setter
def conversation_routing_data(self, conversation_routing_data):
'\n Sets the conversation_routing_data of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param conversation_routing_data: The conversation_routing_data of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicConversationRoutingData\n '
self._conversation_routing_data = conversation_routing_data<|docstring|>Sets the conversation_routing_data of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param conversation_routing_data: The conversation_routing_data of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: QueueConversationCallbackEventTopicConversationRoutingData<|endoftext|> |
03d0c9824075b63c8594fb18096db3aed5d10a372d80d2e367c30610c2e620f6 | @property
def peer(self):
'\n Gets the peer of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The peer of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n '
return self._peer | Gets the peer of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The peer of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: str | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | peer | cjohnson-ctl/platform-client-sdk-python | 10 | python | @property
def peer(self):
'\n Gets the peer of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The peer of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n '
return self._peer | @property
def peer(self):
'\n Gets the peer of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The peer of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n '
return self._peer<|docstring|>Gets the peer of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The peer of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: str<|endoftext|> |
6b14eb8e4f772668ea25a54ca448782afb2676497c2ed6a5d80e021b494c24da | @peer.setter
def peer(self, peer):
'\n Sets the peer of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param peer: The peer of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n '
self._peer = peer | Sets the peer of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param peer: The peer of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: str | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | peer | cjohnson-ctl/platform-client-sdk-python | 10 | python | @peer.setter
def peer(self, peer):
'\n Sets the peer of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param peer: The peer of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n '
self._peer = peer | @peer.setter
def peer(self, peer):
'\n Sets the peer of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param peer: The peer of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n '
self._peer = peer<|docstring|>Sets the peer of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param peer: The peer of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: str<|endoftext|> |
d219d87d1607d8dd64b891907513a86a0ba56d465750325acc9fbbdb6e559b61 | @property
def screen_recording_state(self):
'\n Gets the screen_recording_state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The screen_recording_state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n '
return self._screen_recording_state | Gets the screen_recording_state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The screen_recording_state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: str | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | screen_recording_state | cjohnson-ctl/platform-client-sdk-python | 10 | python | @property
def screen_recording_state(self):
'\n Gets the screen_recording_state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The screen_recording_state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n '
return self._screen_recording_state | @property
def screen_recording_state(self):
'\n Gets the screen_recording_state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The screen_recording_state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n '
return self._screen_recording_state<|docstring|>Gets the screen_recording_state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The screen_recording_state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: str<|endoftext|> |
a8b770734fc32da06d89c7d2c7c3fb37d27f2b236bbd232a9cd186d626be6c2a | @screen_recording_state.setter
def screen_recording_state(self, screen_recording_state):
'\n Sets the screen_recording_state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param screen_recording_state: The screen_recording_state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n '
self._screen_recording_state = screen_recording_state | Sets the screen_recording_state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param screen_recording_state: The screen_recording_state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: str | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | screen_recording_state | cjohnson-ctl/platform-client-sdk-python | 10 | python | @screen_recording_state.setter
def screen_recording_state(self, screen_recording_state):
'\n Sets the screen_recording_state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param screen_recording_state: The screen_recording_state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n '
self._screen_recording_state = screen_recording_state | @screen_recording_state.setter
def screen_recording_state(self, screen_recording_state):
'\n Sets the screen_recording_state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param screen_recording_state: The screen_recording_state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n '
self._screen_recording_state = screen_recording_state<|docstring|>Sets the screen_recording_state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param screen_recording_state: The screen_recording_state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: str<|endoftext|> |
65d8c03547c7cdb3463850045818d81cb6cafe1f3b1047bae949e76ec9078f67 | @property
def flagged_reason(self):
'\n Gets the flagged_reason of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The flagged_reason of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n '
return self._flagged_reason | Gets the flagged_reason of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The flagged_reason of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: str | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | flagged_reason | cjohnson-ctl/platform-client-sdk-python | 10 | python | @property
def flagged_reason(self):
'\n Gets the flagged_reason of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The flagged_reason of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n '
return self._flagged_reason | @property
def flagged_reason(self):
'\n Gets the flagged_reason of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The flagged_reason of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n '
return self._flagged_reason<|docstring|>Gets the flagged_reason of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The flagged_reason of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: str<|endoftext|> |
d5c89eae544a24ab94c629bc3845a7f2f89f5a488b221588ed3d0034b2521e83 | @flagged_reason.setter
def flagged_reason(self, flagged_reason):
'\n Sets the flagged_reason of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param flagged_reason: The flagged_reason of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n '
allowed_values = ['general']
if (flagged_reason.lower() not in map(str.lower, allowed_values)):
self._flagged_reason = 'outdated_sdk_version'
else:
self._flagged_reason = flagged_reason | Sets the flagged_reason of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param flagged_reason: The flagged_reason of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: str | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | flagged_reason | cjohnson-ctl/platform-client-sdk-python | 10 | python | @flagged_reason.setter
def flagged_reason(self, flagged_reason):
'\n Sets the flagged_reason of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param flagged_reason: The flagged_reason of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n '
allowed_values = ['general']
if (flagged_reason.lower() not in map(str.lower, allowed_values)):
self._flagged_reason = 'outdated_sdk_version'
else:
self._flagged_reason = flagged_reason | @flagged_reason.setter
def flagged_reason(self, flagged_reason):
'\n Sets the flagged_reason of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param flagged_reason: The flagged_reason of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n '
allowed_values = ['general']
if (flagged_reason.lower() not in map(str.lower, allowed_values)):
self._flagged_reason = 'outdated_sdk_version'
else:
self._flagged_reason = flagged_reason<|docstring|>Sets the flagged_reason of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param flagged_reason: The flagged_reason of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: str<|endoftext|> |
4b974076b157b96541f078b6b09d347b703982e1cc75f41e7053f959d4c1f260 | @property
def journey_context(self):
'\n Gets the journey_context of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The journey_context of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicJourneyContext\n '
return self._journey_context | Gets the journey_context of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The journey_context of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: QueueConversationCallbackEventTopicJourneyContext | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | journey_context | cjohnson-ctl/platform-client-sdk-python | 10 | python | @property
def journey_context(self):
'\n Gets the journey_context of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The journey_context of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicJourneyContext\n '
return self._journey_context | @property
def journey_context(self):
'\n Gets the journey_context of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The journey_context of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicJourneyContext\n '
return self._journey_context<|docstring|>Gets the journey_context of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The journey_context of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: QueueConversationCallbackEventTopicJourneyContext<|endoftext|> |
8f3d5f46b58b07424f3f5e4b4ad44ff32c243de87b32765e7a62463b5bdb7b25 | @journey_context.setter
def journey_context(self, journey_context):
'\n Sets the journey_context of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param journey_context: The journey_context of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicJourneyContext\n '
self._journey_context = journey_context | Sets the journey_context of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param journey_context: The journey_context of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: QueueConversationCallbackEventTopicJourneyContext | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | journey_context | cjohnson-ctl/platform-client-sdk-python | 10 | python | @journey_context.setter
def journey_context(self, journey_context):
'\n Sets the journey_context of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param journey_context: The journey_context of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicJourneyContext\n '
self._journey_context = journey_context | @journey_context.setter
def journey_context(self, journey_context):
'\n Sets the journey_context of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param journey_context: The journey_context of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicJourneyContext\n '
self._journey_context = journey_context<|docstring|>Sets the journey_context of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param journey_context: The journey_context of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: QueueConversationCallbackEventTopicJourneyContext<|endoftext|> |
9b90e13f90697f56e7937590453d2a60a664940aa206c06e90e63deb87ced300 | @property
def start_acw_time(self):
'\n Gets the start_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The start_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: datetime\n '
return self._start_acw_time | Gets the start_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The start_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: datetime | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | start_acw_time | cjohnson-ctl/platform-client-sdk-python | 10 | python | @property
def start_acw_time(self):
'\n Gets the start_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The start_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: datetime\n '
return self._start_acw_time | @property
def start_acw_time(self):
'\n Gets the start_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The start_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: datetime\n '
return self._start_acw_time<|docstring|>Gets the start_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The start_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: datetime<|endoftext|> |
6a235f51dbd6a1532f4b792f7ad4e80a854adee7c841f6447dc46aebf35f1f7b | @start_acw_time.setter
def start_acw_time(self, start_acw_time):
'\n Sets the start_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param start_acw_time: The start_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: datetime\n '
self._start_acw_time = start_acw_time | Sets the start_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param start_acw_time: The start_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: datetime | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | start_acw_time | cjohnson-ctl/platform-client-sdk-python | 10 | python | @start_acw_time.setter
def start_acw_time(self, start_acw_time):
'\n Sets the start_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param start_acw_time: The start_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: datetime\n '
self._start_acw_time = start_acw_time | @start_acw_time.setter
def start_acw_time(self, start_acw_time):
'\n Sets the start_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param start_acw_time: The start_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: datetime\n '
self._start_acw_time = start_acw_time<|docstring|>Sets the start_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param start_acw_time: The start_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: datetime<|endoftext|> |
ee8f0731fd823aae255b67893e2e79b7ea34939f0a2b18dd836ed597d3590984 | @property
def end_acw_time(self):
'\n Gets the end_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The end_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: datetime\n '
return self._end_acw_time | Gets the end_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The end_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: datetime | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | end_acw_time | cjohnson-ctl/platform-client-sdk-python | 10 | python | @property
def end_acw_time(self):
'\n Gets the end_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The end_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: datetime\n '
return self._end_acw_time | @property
def end_acw_time(self):
'\n Gets the end_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The end_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: datetime\n '
return self._end_acw_time<|docstring|>Gets the end_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The end_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: datetime<|endoftext|> |
6ed67dd8c02707b2a12db67c603983e24a0aebad13a78cf85f89f1a9a4c0e3e3 | @end_acw_time.setter
def end_acw_time(self, end_acw_time):
'\n Sets the end_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param end_acw_time: The end_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: datetime\n '
self._end_acw_time = end_acw_time | Sets the end_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param end_acw_time: The end_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: datetime | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | end_acw_time | cjohnson-ctl/platform-client-sdk-python | 10 | python | @end_acw_time.setter
def end_acw_time(self, end_acw_time):
'\n Sets the end_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param end_acw_time: The end_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: datetime\n '
self._end_acw_time = end_acw_time | @end_acw_time.setter
def end_acw_time(self, end_acw_time):
'\n Sets the end_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param end_acw_time: The end_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: datetime\n '
self._end_acw_time = end_acw_time<|docstring|>Sets the end_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param end_acw_time: The end_acw_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: datetime<|endoftext|> |
0edb0cf62bb91e5d4846f28de45a6b75ebfc8df7a9b460f95677aaff60ed92f5 | @property
def outbound_preview(self):
'\n Gets the outbound_preview of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The outbound_preview of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicDialerPreview\n '
return self._outbound_preview | Gets the outbound_preview of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The outbound_preview of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: QueueConversationCallbackEventTopicDialerPreview | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | outbound_preview | cjohnson-ctl/platform-client-sdk-python | 10 | python | @property
def outbound_preview(self):
'\n Gets the outbound_preview of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The outbound_preview of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicDialerPreview\n '
return self._outbound_preview | @property
def outbound_preview(self):
'\n Gets the outbound_preview of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The outbound_preview of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicDialerPreview\n '
return self._outbound_preview<|docstring|>Gets the outbound_preview of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The outbound_preview of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: QueueConversationCallbackEventTopicDialerPreview<|endoftext|> |
c83e724b6d6dbc44dca0f923eb98818a3baf7dad83ca775f36116ba9a669a888 | @outbound_preview.setter
def outbound_preview(self, outbound_preview):
'\n Sets the outbound_preview of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param outbound_preview: The outbound_preview of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicDialerPreview\n '
self._outbound_preview = outbound_preview | Sets the outbound_preview of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param outbound_preview: The outbound_preview of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: QueueConversationCallbackEventTopicDialerPreview | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | outbound_preview | cjohnson-ctl/platform-client-sdk-python | 10 | python | @outbound_preview.setter
def outbound_preview(self, outbound_preview):
'\n Sets the outbound_preview of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param outbound_preview: The outbound_preview of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicDialerPreview\n '
self._outbound_preview = outbound_preview | @outbound_preview.setter
def outbound_preview(self, outbound_preview):
'\n Sets the outbound_preview of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param outbound_preview: The outbound_preview of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicDialerPreview\n '
self._outbound_preview = outbound_preview<|docstring|>Sets the outbound_preview of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param outbound_preview: The outbound_preview of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: QueueConversationCallbackEventTopicDialerPreview<|endoftext|> |
cf82f57cf423746bc2db2b9b3ab82ea0a4f1fcbc0cde96ee772ec1feb7486d31 | @property
def voicemail(self):
'\n Gets the voicemail of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The voicemail of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicVoicemail\n '
return self._voicemail | Gets the voicemail of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The voicemail of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: QueueConversationCallbackEventTopicVoicemail | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | voicemail | cjohnson-ctl/platform-client-sdk-python | 10 | python | @property
def voicemail(self):
'\n Gets the voicemail of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The voicemail of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicVoicemail\n '
return self._voicemail | @property
def voicemail(self):
'\n Gets the voicemail of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The voicemail of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicVoicemail\n '
return self._voicemail<|docstring|>Gets the voicemail of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The voicemail of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: QueueConversationCallbackEventTopicVoicemail<|endoftext|> |
8e9938e06134fe223893fe41bd0ee8457ed6433a2a2d337e326b960096426815 | @voicemail.setter
def voicemail(self, voicemail):
'\n Sets the voicemail of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param voicemail: The voicemail of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicVoicemail\n '
self._voicemail = voicemail | Sets the voicemail of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param voicemail: The voicemail of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: QueueConversationCallbackEventTopicVoicemail | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | voicemail | cjohnson-ctl/platform-client-sdk-python | 10 | python | @voicemail.setter
def voicemail(self, voicemail):
'\n Sets the voicemail of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param voicemail: The voicemail of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicVoicemail\n '
self._voicemail = voicemail | @voicemail.setter
def voicemail(self, voicemail):
'\n Sets the voicemail of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param voicemail: The voicemail of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicVoicemail\n '
self._voicemail = voicemail<|docstring|>Sets the voicemail of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param voicemail: The voicemail of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: QueueConversationCallbackEventTopicVoicemail<|endoftext|> |
40b176de0bc159f6e481683c4e057a43156a60ed542da33e88706516effbfb5d | @property
def callback_numbers(self):
'\n Gets the callback_numbers of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The callback_numbers of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: list[str]\n '
return self._callback_numbers | Gets the callback_numbers of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The callback_numbers of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: list[str] | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | callback_numbers | cjohnson-ctl/platform-client-sdk-python | 10 | python | @property
def callback_numbers(self):
'\n Gets the callback_numbers of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The callback_numbers of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: list[str]\n '
return self._callback_numbers | @property
def callback_numbers(self):
'\n Gets the callback_numbers of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The callback_numbers of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: list[str]\n '
return self._callback_numbers<|docstring|>Gets the callback_numbers of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The callback_numbers of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: list[str]<|endoftext|> |
7576cd439b8a5f47b39b6daea117a1cc909d2024cad6ef028c7dc1e7bfdd9b46 | @callback_numbers.setter
def callback_numbers(self, callback_numbers):
'\n Sets the callback_numbers of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param callback_numbers: The callback_numbers of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: list[str]\n '
self._callback_numbers = callback_numbers | Sets the callback_numbers of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param callback_numbers: The callback_numbers of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: list[str] | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | callback_numbers | cjohnson-ctl/platform-client-sdk-python | 10 | python | @callback_numbers.setter
def callback_numbers(self, callback_numbers):
'\n Sets the callback_numbers of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param callback_numbers: The callback_numbers of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: list[str]\n '
self._callback_numbers = callback_numbers | @callback_numbers.setter
def callback_numbers(self, callback_numbers):
'\n Sets the callback_numbers of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param callback_numbers: The callback_numbers of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: list[str]\n '
self._callback_numbers = callback_numbers<|docstring|>Sets the callback_numbers of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param callback_numbers: The callback_numbers of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: list[str]<|endoftext|> |
0ce9e337553a0c6fb90394eea3076b76d28e892897c728fb8439f59dec824e9f | @property
def callback_user_name(self):
'\n Gets the callback_user_name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The callback_user_name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n '
return self._callback_user_name | Gets the callback_user_name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The callback_user_name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: str | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | callback_user_name | cjohnson-ctl/platform-client-sdk-python | 10 | python | @property
def callback_user_name(self):
'\n Gets the callback_user_name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The callback_user_name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n '
return self._callback_user_name | @property
def callback_user_name(self):
'\n Gets the callback_user_name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The callback_user_name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n '
return self._callback_user_name<|docstring|>Gets the callback_user_name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The callback_user_name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: str<|endoftext|> |
a22150e7647ec1e3347a287224ef8dbf1ea4229b8450b2f238224115d1ca9d62 | @callback_user_name.setter
def callback_user_name(self, callback_user_name):
'\n Sets the callback_user_name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param callback_user_name: The callback_user_name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n '
self._callback_user_name = callback_user_name | Sets the callback_user_name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param callback_user_name: The callback_user_name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: str | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | callback_user_name | cjohnson-ctl/platform-client-sdk-python | 10 | python | @callback_user_name.setter
def callback_user_name(self, callback_user_name):
'\n Sets the callback_user_name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param callback_user_name: The callback_user_name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n '
self._callback_user_name = callback_user_name | @callback_user_name.setter
def callback_user_name(self, callback_user_name):
'\n Sets the callback_user_name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param callback_user_name: The callback_user_name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n '
self._callback_user_name = callback_user_name<|docstring|>Sets the callback_user_name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param callback_user_name: The callback_user_name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: str<|endoftext|> |
aec9df1142a6589d5d202358b106a9ff173c6db79e19d16b989a7330caee085e | @property
def skip_enabled(self):
'\n Gets the skip_enabled of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The skip_enabled of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: bool\n '
return self._skip_enabled | Gets the skip_enabled of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The skip_enabled of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: bool | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | skip_enabled | cjohnson-ctl/platform-client-sdk-python | 10 | python | @property
def skip_enabled(self):
'\n Gets the skip_enabled of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The skip_enabled of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: bool\n '
return self._skip_enabled | @property
def skip_enabled(self):
'\n Gets the skip_enabled of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The skip_enabled of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: bool\n '
return self._skip_enabled<|docstring|>Gets the skip_enabled of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The skip_enabled of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: bool<|endoftext|> |
6272f21e4855e87ac4de87c3cda2daaebb6bbe3ca22b0898d30160e98cc7d7f8 | @skip_enabled.setter
def skip_enabled(self, skip_enabled):
'\n Sets the skip_enabled of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param skip_enabled: The skip_enabled of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: bool\n '
self._skip_enabled = skip_enabled | Sets the skip_enabled of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param skip_enabled: The skip_enabled of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: bool | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | skip_enabled | cjohnson-ctl/platform-client-sdk-python | 10 | python | @skip_enabled.setter
def skip_enabled(self, skip_enabled):
'\n Sets the skip_enabled of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param skip_enabled: The skip_enabled of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: bool\n '
self._skip_enabled = skip_enabled | @skip_enabled.setter
def skip_enabled(self, skip_enabled):
'\n Sets the skip_enabled of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param skip_enabled: The skip_enabled of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: bool\n '
self._skip_enabled = skip_enabled<|docstring|>Sets the skip_enabled of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param skip_enabled: The skip_enabled of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: bool<|endoftext|> |
1ee60db3b831cee68c41174b6beb398f345d8b1f3ecb6a8d7fc03bf994d5c2e8 | @property
def external_campaign(self):
'\n Gets the external_campaign of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The external_campaign of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: bool\n '
return self._external_campaign | Gets the external_campaign of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The external_campaign of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: bool | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | external_campaign | cjohnson-ctl/platform-client-sdk-python | 10 | python | @property
def external_campaign(self):
'\n Gets the external_campaign of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The external_campaign of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: bool\n '
return self._external_campaign | @property
def external_campaign(self):
'\n Gets the external_campaign of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The external_campaign of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: bool\n '
return self._external_campaign<|docstring|>Gets the external_campaign of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The external_campaign of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: bool<|endoftext|> |
f6fb9aadb7c2fce0308d813a90f689db0f474032eec8a176a65acf37ed215b98 | @external_campaign.setter
def external_campaign(self, external_campaign):
'\n Sets the external_campaign of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param external_campaign: The external_campaign of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: bool\n '
self._external_campaign = external_campaign | Sets the external_campaign of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param external_campaign: The external_campaign of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: bool | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | external_campaign | cjohnson-ctl/platform-client-sdk-python | 10 | python | @external_campaign.setter
def external_campaign(self, external_campaign):
'\n Sets the external_campaign of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param external_campaign: The external_campaign of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: bool\n '
self._external_campaign = external_campaign | @external_campaign.setter
def external_campaign(self, external_campaign):
'\n Sets the external_campaign of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param external_campaign: The external_campaign of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: bool\n '
self._external_campaign = external_campaign<|docstring|>Sets the external_campaign of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param external_campaign: The external_campaign of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: bool<|endoftext|> |
65141e115c676b08882116fea6840845a15f2186ca0f9e38c8a0ff51be3ed553 | @property
def timeout_seconds(self):
'\n Gets the timeout_seconds of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The timeout_seconds of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: int\n '
return self._timeout_seconds | Gets the timeout_seconds of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The timeout_seconds of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: int | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | timeout_seconds | cjohnson-ctl/platform-client-sdk-python | 10 | python | @property
def timeout_seconds(self):
'\n Gets the timeout_seconds of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The timeout_seconds of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: int\n '
return self._timeout_seconds | @property
def timeout_seconds(self):
'\n Gets the timeout_seconds of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The timeout_seconds of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: int\n '
return self._timeout_seconds<|docstring|>Gets the timeout_seconds of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The timeout_seconds of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: int<|endoftext|> |
286ac38e29e123224b1602438daccf90d04ee8d92a62e7c9fb9246f87c7835a0 | @timeout_seconds.setter
def timeout_seconds(self, timeout_seconds):
'\n Sets the timeout_seconds of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param timeout_seconds: The timeout_seconds of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: int\n '
self._timeout_seconds = timeout_seconds | Sets the timeout_seconds of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param timeout_seconds: The timeout_seconds of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: int | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | timeout_seconds | cjohnson-ctl/platform-client-sdk-python | 10 | python | @timeout_seconds.setter
def timeout_seconds(self, timeout_seconds):
'\n Sets the timeout_seconds of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param timeout_seconds: The timeout_seconds of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: int\n '
self._timeout_seconds = timeout_seconds | @timeout_seconds.setter
def timeout_seconds(self, timeout_seconds):
'\n Sets the timeout_seconds of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param timeout_seconds: The timeout_seconds of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: int\n '
self._timeout_seconds = timeout_seconds<|docstring|>Sets the timeout_seconds of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param timeout_seconds: The timeout_seconds of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: int<|endoftext|> |
56caf0b88fb2b383e544c7b41ce3e6aef6dc659be5333c67659e0401e1ee9dc9 | @property
def callback_scheduled_time(self):
'\n Gets the callback_scheduled_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The callback_scheduled_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: datetime\n '
return self._callback_scheduled_time | Gets the callback_scheduled_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The callback_scheduled_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: datetime | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | callback_scheduled_time | cjohnson-ctl/platform-client-sdk-python | 10 | python | @property
def callback_scheduled_time(self):
'\n Gets the callback_scheduled_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The callback_scheduled_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: datetime\n '
return self._callback_scheduled_time | @property
def callback_scheduled_time(self):
'\n Gets the callback_scheduled_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The callback_scheduled_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: datetime\n '
return self._callback_scheduled_time<|docstring|>Gets the callback_scheduled_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The callback_scheduled_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: datetime<|endoftext|> |
1c326e6b9fce06388cebf3b07b60ea2edf3ad22d7463a38266a97f40d8118db7 | @callback_scheduled_time.setter
def callback_scheduled_time(self, callback_scheduled_time):
'\n Sets the callback_scheduled_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param callback_scheduled_time: The callback_scheduled_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: datetime\n '
self._callback_scheduled_time = callback_scheduled_time | Sets the callback_scheduled_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param callback_scheduled_time: The callback_scheduled_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: datetime | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | callback_scheduled_time | cjohnson-ctl/platform-client-sdk-python | 10 | python | @callback_scheduled_time.setter
def callback_scheduled_time(self, callback_scheduled_time):
'\n Sets the callback_scheduled_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param callback_scheduled_time: The callback_scheduled_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: datetime\n '
self._callback_scheduled_time = callback_scheduled_time | @callback_scheduled_time.setter
def callback_scheduled_time(self, callback_scheduled_time):
'\n Sets the callback_scheduled_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param callback_scheduled_time: The callback_scheduled_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: datetime\n '
self._callback_scheduled_time = callback_scheduled_time<|docstring|>Sets the callback_scheduled_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param callback_scheduled_time: The callback_scheduled_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: datetime<|endoftext|> |
d44f0ee093b1c81d4fc776761284d02fc845faf005e529eac396e440444a0c5e | @property
def automated_callback_config_id(self):
'\n Gets the automated_callback_config_id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The automated_callback_config_id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n '
return self._automated_callback_config_id | Gets the automated_callback_config_id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The automated_callback_config_id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: str | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | automated_callback_config_id | cjohnson-ctl/platform-client-sdk-python | 10 | python | @property
def automated_callback_config_id(self):
'\n Gets the automated_callback_config_id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The automated_callback_config_id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n '
return self._automated_callback_config_id | @property
def automated_callback_config_id(self):
'\n Gets the automated_callback_config_id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The automated_callback_config_id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n '
return self._automated_callback_config_id<|docstring|>Gets the automated_callback_config_id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:return: The automated_callback_config_id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:rtype: str<|endoftext|> |
e58100e1453ecb5eead60f968d4e675851bcfa250b644253f4001cd8fc2610d4 | @automated_callback_config_id.setter
def automated_callback_config_id(self, automated_callback_config_id):
'\n Sets the automated_callback_config_id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param automated_callback_config_id: The automated_callback_config_id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n '
self._automated_callback_config_id = automated_callback_config_id | Sets the automated_callback_config_id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param automated_callback_config_id: The automated_callback_config_id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: str | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | automated_callback_config_id | cjohnson-ctl/platform-client-sdk-python | 10 | python | @automated_callback_config_id.setter
def automated_callback_config_id(self, automated_callback_config_id):
'\n Sets the automated_callback_config_id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param automated_callback_config_id: The automated_callback_config_id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n '
self._automated_callback_config_id = automated_callback_config_id | @automated_callback_config_id.setter
def automated_callback_config_id(self, automated_callback_config_id):
'\n Sets the automated_callback_config_id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param automated_callback_config_id: The automated_callback_config_id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n '
self._automated_callback_config_id = automated_callback_config_id<|docstring|>Sets the automated_callback_config_id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:param automated_callback_config_id: The automated_callback_config_id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.
:type: str<|endoftext|> |
f92515cd38effc7eee4069f2288d78a0f0836df932fb36a84e3b4f7e14233415 | def to_dict(self):
'\n Returns the model properties as a dict\n '
result = {}
for (attr, _) in iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map((lambda x: (x.to_dict() if hasattr(x, 'to_dict') else x)), value))
elif hasattr(value, 'to_dict'):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map((lambda item: ((item[0], item[1].to_dict()) if hasattr(item[1], 'to_dict') else item)), value.items()))
else:
result[attr] = value
return result | Returns the model properties as a dict | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | to_dict | cjohnson-ctl/platform-client-sdk-python | 10 | python | def to_dict(self):
'\n \n '
result = {}
for (attr, _) in iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map((lambda x: (x.to_dict() if hasattr(x, 'to_dict') else x)), value))
elif hasattr(value, 'to_dict'):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map((lambda item: ((item[0], item[1].to_dict()) if hasattr(item[1], 'to_dict') else item)), value.items()))
else:
result[attr] = value
return result | def to_dict(self):
'\n \n '
result = {}
for (attr, _) in iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map((lambda x: (x.to_dict() if hasattr(x, 'to_dict') else x)), value))
elif hasattr(value, 'to_dict'):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map((lambda item: ((item[0], item[1].to_dict()) if hasattr(item[1], 'to_dict') else item)), value.items()))
else:
result[attr] = value
return result<|docstring|>Returns the model properties as a dict<|endoftext|> |
0756b862c437ed1e9b6fc03c15d6356580a4e6ece71010ce89cde1cab2a1dd47 | def to_json(self):
'\n Returns the model as raw JSON\n '
return json.dumps(sanitize_for_serialization(self.to_dict())) | Returns the model as raw JSON | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | to_json | cjohnson-ctl/platform-client-sdk-python | 10 | python | def to_json(self):
'\n \n '
return json.dumps(sanitize_for_serialization(self.to_dict())) | def to_json(self):
'\n \n '
return json.dumps(sanitize_for_serialization(self.to_dict()))<|docstring|>Returns the model as raw JSON<|endoftext|> |
c373d87dd29c1e96dce460ab571bff86e58edb298ba83c85d8cc7603a6505de4 | def to_str(self):
'\n Returns the string representation of the model\n '
return pformat(self.to_dict()) | Returns the string representation of the model | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | to_str | cjohnson-ctl/platform-client-sdk-python | 10 | python | def to_str(self):
'\n \n '
return pformat(self.to_dict()) | def to_str(self):
'\n \n '
return pformat(self.to_dict())<|docstring|>Returns the string representation of the model<|endoftext|> |
1034ff7dd2eef24d21e3c2fa7409b793ab5cbb8cd75a2eb0ab3e62604b26264d | def __repr__(self):
'\n For `print` and `pprint`\n '
return self.to_str() | For `print` and `pprint` | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | __repr__ | cjohnson-ctl/platform-client-sdk-python | 10 | python | def __repr__(self):
'\n \n '
return self.to_str() | def __repr__(self):
'\n \n '
return self.to_str()<|docstring|>For `print` and `pprint`<|endoftext|> |
a43b3ce7478646f0122f200e4de04f4f5ed99329a4b75930eecef4ff54a23351 | def __eq__(self, other):
'\n Returns true if both objects are equal\n '
return (self.__dict__ == other.__dict__) | Returns true if both objects are equal | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | __eq__ | cjohnson-ctl/platform-client-sdk-python | 10 | python | def __eq__(self, other):
'\n \n '
return (self.__dict__ == other.__dict__) | def __eq__(self, other):
'\n \n '
return (self.__dict__ == other.__dict__)<|docstring|>Returns true if both objects are equal<|endoftext|> |
e5050f8e1402e3a4c90d6c6e229c4c9e2b8ec61e0be457915ea9d976f7e6b0b4 | def __ne__(self, other):
'\n Returns true if both objects are not equal\n '
return (not (self == other)) | Returns true if both objects are not equal | build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py | __ne__ | cjohnson-ctl/platform-client-sdk-python | 10 | python | def __ne__(self, other):
'\n \n '
return (not (self == other)) | def __ne__(self, other):
'\n \n '
return (not (self == other))<|docstring|>Returns true if both objects are not equal<|endoftext|> |
2528ead5ee7915c56cdf961d6bfd746a6c3403c11dee8ba013b90e45072ccbd9 | def __init__(self, message_prefix):
'\n Args:\n message_prefix: logging format string\n that will be prepended to message\n '
super().__init__(f'{message_prefix}{{message}}', style='{') | Args:
message_prefix: logging format string
that will be prepended to message | catalyst_rl/core/callbacks/formatters.py | __init__ | rhololkeolke/catalyst-rl | 46 | python | def __init__(self, message_prefix):
'\n Args:\n message_prefix: logging format string\n that will be prepended to message\n '
super().__init__(f'{message_prefix}{{message}}', style='{') | def __init__(self, message_prefix):
'\n Args:\n message_prefix: logging format string\n that will be prepended to message\n '
super().__init__(f'{message_prefix}{{message}}', style='{')<|docstring|>Args:
message_prefix: logging format string
that will be prepended to message<|endoftext|> |
9e6f22cda722b868c5072d4c815250c65bac3da7944d5cdb18abcb49dcab1035 | def format(self, record: logging.LogRecord):
'\n Format message string\n '
state = record.state
record.msg = self._format_message(state)
return super().format(record) | Format message string | catalyst_rl/core/callbacks/formatters.py | format | rhololkeolke/catalyst-rl | 46 | python | def format(self, record: logging.LogRecord):
'\n \n '
state = record.state
record.msg = self._format_message(state)
return super().format(record) | def format(self, record: logging.LogRecord):
'\n \n '
state = record.state
record.msg = self._format_message(state)
return super().format(record)<|docstring|>Format message string<|endoftext|> |
5f8284bc34df801830be2b14eaa44629024e515055b21d93ca799011c58172f5 | def __init__(self):
'\n Initializes the ``TxtMetricsFormatter``\n '
super().__init__('[{asctime}] ') | Initializes the ``TxtMetricsFormatter`` | catalyst_rl/core/callbacks/formatters.py | __init__ | rhololkeolke/catalyst-rl | 46 | python | def __init__(self):
'\n \n '
super().__init__('[{asctime}] ') | def __init__(self):
'\n \n '
super().__init__('[{asctime}] ')<|docstring|>Initializes the ``TxtMetricsFormatter``<|endoftext|> |
76d1ec6c0de304957508cb26e8b5c328bf6673f3969a0341ee62c8252660f085 | def __init__(self):
'\n Initializes the ``JsonMetricsFormatter``\n '
super().__init__('') | Initializes the ``JsonMetricsFormatter`` | catalyst_rl/core/callbacks/formatters.py | __init__ | rhololkeolke/catalyst-rl | 46 | python | def __init__(self):
'\n \n '
super().__init__() | def __init__(self):
'\n \n '
super().__init__()<|docstring|>Initializes the ``JsonMetricsFormatter``<|endoftext|> |
e84fc4bf69b667d3e6df9a2c6d8965eb305d8664d1968764c509652d3a5b05fe | def process_template(self, sql, **kwargs):
'Processes a sql template\n\n >>> sql = "SELECT \'{{ datetime(2017, 1, 1).isoformat() }}\'"\n >>> process_template(sql)\n "SELECT \'2017-01-01T00:00:00\'"\n '
template = self.env.from_string(sql)
kwargs.update(self.context)
return template.render(kwargs) | Processes a sql template
>>> sql = "SELECT '{{ datetime(2017, 1, 1).isoformat() }}'"
>>> process_template(sql)
"SELECT '2017-01-01T00:00:00'" | superset/jinja_context.py | process_template | wsyjwps1983/airbnb | 2 | python | def process_template(self, sql, **kwargs):
'Processes a sql template\n\n >>> sql = "SELECT \'{{ datetime(2017, 1, 1).isoformat() }}\'"\n >>> process_template(sql)\n "SELECT \'2017-01-01T00:00:00\'"\n '
template = self.env.from_string(sql)
kwargs.update(self.context)
return template.render(kwargs) | def process_template(self, sql, **kwargs):
'Processes a sql template\n\n >>> sql = "SELECT \'{{ datetime(2017, 1, 1).isoformat() }}\'"\n >>> process_template(sql)\n "SELECT \'2017-01-01T00:00:00\'"\n '
template = self.env.from_string(sql)
kwargs.update(self.context)
return template.render(kwargs)<|docstring|>Processes a sql template
>>> sql = "SELECT '{{ datetime(2017, 1, 1).isoformat() }}'"
>>> process_template(sql)
"SELECT '2017-01-01T00:00:00'"<|endoftext|> |
76665f5d9970341ff7fef61668957e78d453a2f09d27ef68e1622d82202c0c45 | def get_values(instance, go_into={}, exclude=(), extra=(), skip_none=False):
"\n Transforms a django model instance into an object that can be used for\n serialization. \n @param instance(django.db.models.Model) - the model in question\n @param go_into(dict) - relations with other models that need expanding\n @param exclude(tuple) - fields that will be ignored\n @param extra(tuple) - additional functions/properties which are not fields\n @param skip_none(bool) - skip None field\n\n Usage:\n get_values(MyModel.objects.get(pk=187),\n {'user': {'go_into': ('clan',),\n 'exclude': ('crest_blob',),\n 'extra': ('get_crest_path',)}},\n ('image'))\n\n "
from django.db.models.manager import Manager
from django.db.models import Model
SIMPLE_TYPES = (int, long, str, list, dict, tuple, bool, float, bool, unicode, NoneType)
if (not isinstance(instance, Model)):
raise TypeError('Argument is not a Model')
value = {'pk': instance.pk}
if isinstance(go_into, str):
go_into = {go_into: {}}
if isinstance(exclude, str):
exclude = (exclude,)
if isinstance(extra, str):
extra = (extra,)
for field in extra:
property = getattr(instance, field)
if callable(property):
property = property()
if (skip_none and (property is None)):
continue
elif isinstance(property, SIMPLE_TYPES):
value[field] = property
else:
value[field] = repr(property)
field_options = instance._meta.get_all_field_names()
for field in field_options:
try:
property = getattr(instance, field)
except:
continue
if (skip_none and (property is None)):
continue
if ((field in exclude) or (field[0] == '_') or isinstance(property, Manager)):
continue
elif go_into.has_key(field):
try:
field_go_into = go_into[field].get('go_into', {})
except AttributeError:
field_go_into = {}
try:
field_exclude = go_into[field].get('exclude', ())
except AttributeError:
field_exclude = ()
try:
field_extra = go_into[field].get('extra', ())
except AttributeError:
field_extra = ()
value[field] = get_values(property, field_go_into, field_exclude, field_extra, skip_none=skip_none)
elif isinstance(property, Model):
value[field] = property.pk
elif isinstance(property, (datetime.date, datetime.time, datetime.datetime)):
value[field] = property
else:
if callable(property):
property = property()
if isinstance(property, SIMPLE_TYPES):
value[field] = property
else:
value[field] = repr(property)
return value | Transforms a django model instance into an object that can be used for
serialization.
@param instance(django.db.models.Model) - the model in question
@param go_into(dict) - relations with other models that need expanding
@param exclude(tuple) - fields that will be ignored
@param extra(tuple) - additional functions/properties which are not fields
@param skip_none(bool) - skip None field
Usage:
get_values(MyModel.objects.get(pk=187),
{'user': {'go_into': ('clan',),
'exclude': ('crest_blob',),
'extra': ('get_crest_path',)}},
('image')) | pyes/djangoutils.py | get_values | disqus/pyes | 2 | python | def get_values(instance, go_into={}, exclude=(), extra=(), skip_none=False):
"\n Transforms a django model instance into an object that can be used for\n serialization. \n @param instance(django.db.models.Model) - the model in question\n @param go_into(dict) - relations with other models that need expanding\n @param exclude(tuple) - fields that will be ignored\n @param extra(tuple) - additional functions/properties which are not fields\n @param skip_none(bool) - skip None field\n\n Usage:\n get_values(MyModel.objects.get(pk=187),\n {'user': {'go_into': ('clan',),\n 'exclude': ('crest_blob',),\n 'extra': ('get_crest_path',)}},\n ('image'))\n\n "
from django.db.models.manager import Manager
from django.db.models import Model
SIMPLE_TYPES = (int, long, str, list, dict, tuple, bool, float, bool, unicode, NoneType)
if (not isinstance(instance, Model)):
raise TypeError('Argument is not a Model')
value = {'pk': instance.pk}
if isinstance(go_into, str):
go_into = {go_into: {}}
if isinstance(exclude, str):
exclude = (exclude,)
if isinstance(extra, str):
extra = (extra,)
for field in extra:
property = getattr(instance, field)
if callable(property):
property = property()
if (skip_none and (property is None)):
continue
elif isinstance(property, SIMPLE_TYPES):
value[field] = property
else:
value[field] = repr(property)
field_options = instance._meta.get_all_field_names()
for field in field_options:
try:
property = getattr(instance, field)
except:
continue
if (skip_none and (property is None)):
continue
if ((field in exclude) or (field[0] == '_') or isinstance(property, Manager)):
continue
elif go_into.has_key(field):
try:
field_go_into = go_into[field].get('go_into', {})
except AttributeError:
field_go_into = {}
try:
field_exclude = go_into[field].get('exclude', ())
except AttributeError:
field_exclude = ()
try:
field_extra = go_into[field].get('extra', ())
except AttributeError:
field_extra = ()
value[field] = get_values(property, field_go_into, field_exclude, field_extra, skip_none=skip_none)
elif isinstance(property, Model):
value[field] = property.pk
elif isinstance(property, (datetime.date, datetime.time, datetime.datetime)):
value[field] = property
else:
if callable(property):
property = property()
if isinstance(property, SIMPLE_TYPES):
value[field] = property
else:
value[field] = repr(property)
return value | def get_values(instance, go_into={}, exclude=(), extra=(), skip_none=False):
"\n Transforms a django model instance into an object that can be used for\n serialization. \n @param instance(django.db.models.Model) - the model in question\n @param go_into(dict) - relations with other models that need expanding\n @param exclude(tuple) - fields that will be ignored\n @param extra(tuple) - additional functions/properties which are not fields\n @param skip_none(bool) - skip None field\n\n Usage:\n get_values(MyModel.objects.get(pk=187),\n {'user': {'go_into': ('clan',),\n 'exclude': ('crest_blob',),\n 'extra': ('get_crest_path',)}},\n ('image'))\n\n "
from django.db.models.manager import Manager
from django.db.models import Model
SIMPLE_TYPES = (int, long, str, list, dict, tuple, bool, float, bool, unicode, NoneType)
if (not isinstance(instance, Model)):
raise TypeError('Argument is not a Model')
value = {'pk': instance.pk}
if isinstance(go_into, str):
go_into = {go_into: {}}
if isinstance(exclude, str):
exclude = (exclude,)
if isinstance(extra, str):
extra = (extra,)
for field in extra:
property = getattr(instance, field)
if callable(property):
property = property()
if (skip_none and (property is None)):
continue
elif isinstance(property, SIMPLE_TYPES):
value[field] = property
else:
value[field] = repr(property)
field_options = instance._meta.get_all_field_names()
for field in field_options:
try:
property = getattr(instance, field)
except:
continue
if (skip_none and (property is None)):
continue
if ((field in exclude) or (field[0] == '_') or isinstance(property, Manager)):
continue
elif go_into.has_key(field):
try:
field_go_into = go_into[field].get('go_into', {})
except AttributeError:
field_go_into = {}
try:
field_exclude = go_into[field].get('exclude', ())
except AttributeError:
field_exclude = ()
try:
field_extra = go_into[field].get('extra', ())
except AttributeError:
field_extra = ()
value[field] = get_values(property, field_go_into, field_exclude, field_extra, skip_none=skip_none)
elif isinstance(property, Model):
value[field] = property.pk
elif isinstance(property, (datetime.date, datetime.time, datetime.datetime)):
value[field] = property
else:
if callable(property):
property = property()
if isinstance(property, SIMPLE_TYPES):
value[field] = property
else:
value[field] = repr(property)
return value<|docstring|>Transforms a django model instance into an object that can be used for
serialization.
@param instance(django.db.models.Model) - the model in question
@param go_into(dict) - relations with other models that need expanding
@param exclude(tuple) - fields that will be ignored
@param extra(tuple) - additional functions/properties which are not fields
@param skip_none(bool) - skip None field
Usage:
get_values(MyModel.objects.get(pk=187),
{'user': {'go_into': ('clan',),
'exclude': ('crest_blob',),
'extra': ('get_crest_path',)}},
('image'))<|endoftext|> |
a1e4a46a9a575850a19f8adbfd6d46879ada3743973679df2fae503e6269af80 | def compute_single_neuron_isis(spike_times, neuron_idx):
'Compute a vector of ISIs for a single neuron given spike times.\n\n Args:\n spike_times (list of 1D arrays): Spike time dataset, with the first\n dimension corresponding to different neurons.\n neuron_idx (int): Index of the unit to compute ISIs for.\n\n Returns:\n isis (1D array): Duration of time between each spike from one neuron.\n '
single_neuron_spikes = spike_times[neuron_idx]
isis = np.diff(single_neuron_spikes)
return isis | Compute a vector of ISIs for a single neuron given spike times.
Args:
spike_times (list of 1D arrays): Spike time dataset, with the first
dimension corresponding to different neurons.
neuron_idx (int): Index of the unit to compute ISIs for.
Returns:
isis (1D array): Duration of time between each spike from one neuron. | tutorials/W1D1_ModelTypes/solutions/W1D1_Tutorial1_Solution_4792dbfa.py | compute_single_neuron_isis | JulioLarrea/course-content | 2 | python | def compute_single_neuron_isis(spike_times, neuron_idx):
'Compute a vector of ISIs for a single neuron given spike times.\n\n Args:\n spike_times (list of 1D arrays): Spike time dataset, with the first\n dimension corresponding to different neurons.\n neuron_idx (int): Index of the unit to compute ISIs for.\n\n Returns:\n isis (1D array): Duration of time between each spike from one neuron.\n '
single_neuron_spikes = spike_times[neuron_idx]
isis = np.diff(single_neuron_spikes)
return isis | def compute_single_neuron_isis(spike_times, neuron_idx):
'Compute a vector of ISIs for a single neuron given spike times.\n\n Args:\n spike_times (list of 1D arrays): Spike time dataset, with the first\n dimension corresponding to different neurons.\n neuron_idx (int): Index of the unit to compute ISIs for.\n\n Returns:\n isis (1D array): Duration of time between each spike from one neuron.\n '
single_neuron_spikes = spike_times[neuron_idx]
isis = np.diff(single_neuron_spikes)
return isis<|docstring|>Compute a vector of ISIs for a single neuron given spike times.
Args:
spike_times (list of 1D arrays): Spike time dataset, with the first
dimension corresponding to different neurons.
neuron_idx (int): Index of the unit to compute ISIs for.
Returns:
isis (1D array): Duration of time between each spike from one neuron.<|endoftext|> |
24d0ae6056ed763c1bb0f764ebdd729657761c5a4f0c09cd7164bfbe7c231846 | def element_dimension(array: np.ndarray, values: Union[(int, List[int])]) -> int:
'Return the element dimension for array if dimension matches values.\n\n :param ndarray array: numpy array to test\n :param values: value or values of desired element dimension\n :type: int or list of ints\n :returns: element dimension of array\n :rtype: int\n :raises: IndexError or ValueError\n\n >>> element_dimension(np.array([[1, 2, 3], [4, 5, 6]]), [2, 3])\n 3\n\n >>> element_dimension(np.array([[1, 2, 3], [4, 5, 6]]), 3)\n 3\n '
if isinstance(values, int):
values = [values]
try:
dim = array.shape[1]
if (dim not in values):
raise ValueError
except (IndexError, ValueError):
str_values = ', '.join([str(x) for x in values])
notify.warn('ARRAY DIMENSIONS MUST BE: {}').format(str_values)
sys.exit()
return dim | Return the element dimension for array if dimension matches values.
:param ndarray array: numpy array to test
:param values: value or values of desired element dimension
:type: int or list of ints
:returns: element dimension of array
:rtype: int
:raises: IndexError or ValueError
>>> element_dimension(np.array([[1, 2, 3], [4, 5, 6]]), [2, 3])
3
>>> element_dimension(np.array([[1, 2, 3], [4, 5, 6]]), 3)
3 | strumenti/coordinate.py | element_dimension | TimothyHelton/strumenti | 0 | python | def element_dimension(array: np.ndarray, values: Union[(int, List[int])]) -> int:
'Return the element dimension for array if dimension matches values.\n\n :param ndarray array: numpy array to test\n :param values: value or values of desired element dimension\n :type: int or list of ints\n :returns: element dimension of array\n :rtype: int\n :raises: IndexError or ValueError\n\n >>> element_dimension(np.array([[1, 2, 3], [4, 5, 6]]), [2, 3])\n 3\n\n >>> element_dimension(np.array([[1, 2, 3], [4, 5, 6]]), 3)\n 3\n '
if isinstance(values, int):
values = [values]
try:
dim = array.shape[1]
if (dim not in values):
raise ValueError
except (IndexError, ValueError):
str_values = ', '.join([str(x) for x in values])
notify.warn('ARRAY DIMENSIONS MUST BE: {}').format(str_values)
sys.exit()
return dim | def element_dimension(array: np.ndarray, values: Union[(int, List[int])]) -> int:
'Return the element dimension for array if dimension matches values.\n\n :param ndarray array: numpy array to test\n :param values: value or values of desired element dimension\n :type: int or list of ints\n :returns: element dimension of array\n :rtype: int\n :raises: IndexError or ValueError\n\n >>> element_dimension(np.array([[1, 2, 3], [4, 5, 6]]), [2, 3])\n 3\n\n >>> element_dimension(np.array([[1, 2, 3], [4, 5, 6]]), 3)\n 3\n '
if isinstance(values, int):
values = [values]
try:
dim = array.shape[1]
if (dim not in values):
raise ValueError
except (IndexError, ValueError):
str_values = ', '.join([str(x) for x in values])
notify.warn('ARRAY DIMENSIONS MUST BE: {}').format(str_values)
sys.exit()
return dim<|docstring|>Return the element dimension for array if dimension matches values.
:param ndarray array: numpy array to test
:param values: value or values of desired element dimension
:type: int or list of ints
:returns: element dimension of array
:rtype: int
:raises: IndexError or ValueError
>>> element_dimension(np.array([[1, 2, 3], [4, 5, 6]]), [2, 3])
3
>>> element_dimension(np.array([[1, 2, 3], [4, 5, 6]]), 3)
3<|endoftext|> |
bc07aeff2ef26b56f32da2b014b095006b43d5518815ac2dbc0681fa5b1701d4 | def cart2pol(pts: np.ndarray, degrees: bool=False) -> np.ndarray:
'Convert Cartesian coordinates to polar or cylindrical coordinates.\n\n :param ndarray pts: array of Cartesian points (x, y) or (x, y, z)\n :param bool degrees: if true results will be presented in degrees (default: False)\n :returns: [radial distance **rho**, azimuthal angle **theta**, (*vertical distance* **z**)]\n :rtype: ndarray\n\n >>> cart2pol(np.array([[0, 1], [-2, 0]]), degrees=True)\n array([[ 1., 90.],\n [ 2., 180.]])\n\n >>> cart2pol(np.array([[0.5, -0.5, 4]]), degrees=True)\n array([[ 0.70710678, -45. , 4. ]])\n '
dim = element_dimension(pts, [2, 3])
rho = np.linalg.norm(pts[(:, 0:2)], axis=1)
theta = np.arctan2(pts[(:, 1)], pts[(:, 0)])
if degrees:
theta = np.degrees(theta)
if (dim == 2):
return np.c_[(rho, theta)]
else:
return np.c_[(rho, theta, pts[(:, 2)])] | Convert Cartesian coordinates to polar or cylindrical coordinates.
:param ndarray pts: array of Cartesian points (x, y) or (x, y, z)
:param bool degrees: if true results will be presented in degrees (default: False)
:returns: [radial distance **rho**, azimuthal angle **theta**, (*vertical distance* **z**)]
:rtype: ndarray
>>> cart2pol(np.array([[0, 1], [-2, 0]]), degrees=True)
array([[ 1., 90.],
[ 2., 180.]])
>>> cart2pol(np.array([[0.5, -0.5, 4]]), degrees=True)
array([[ 0.70710678, -45. , 4. ]]) | strumenti/coordinate.py | cart2pol | TimothyHelton/strumenti | 0 | python | def cart2pol(pts: np.ndarray, degrees: bool=False) -> np.ndarray:
'Convert Cartesian coordinates to polar or cylindrical coordinates.\n\n :param ndarray pts: array of Cartesian points (x, y) or (x, y, z)\n :param bool degrees: if true results will be presented in degrees (default: False)\n :returns: [radial distance **rho**, azimuthal angle **theta**, (*vertical distance* **z**)]\n :rtype: ndarray\n\n >>> cart2pol(np.array([[0, 1], [-2, 0]]), degrees=True)\n array([[ 1., 90.],\n [ 2., 180.]])\n\n >>> cart2pol(np.array([[0.5, -0.5, 4]]), degrees=True)\n array([[ 0.70710678, -45. , 4. ]])\n '
dim = element_dimension(pts, [2, 3])
rho = np.linalg.norm(pts[(:, 0:2)], axis=1)
theta = np.arctan2(pts[(:, 1)], pts[(:, 0)])
if degrees:
theta = np.degrees(theta)
if (dim == 2):
return np.c_[(rho, theta)]
else:
return np.c_[(rho, theta, pts[(:, 2)])] | def cart2pol(pts: np.ndarray, degrees: bool=False) -> np.ndarray:
'Convert Cartesian coordinates to polar or cylindrical coordinates.\n\n :param ndarray pts: array of Cartesian points (x, y) or (x, y, z)\n :param bool degrees: if true results will be presented in degrees (default: False)\n :returns: [radial distance **rho**, azimuthal angle **theta**, (*vertical distance* **z**)]\n :rtype: ndarray\n\n >>> cart2pol(np.array([[0, 1], [-2, 0]]), degrees=True)\n array([[ 1., 90.],\n [ 2., 180.]])\n\n >>> cart2pol(np.array([[0.5, -0.5, 4]]), degrees=True)\n array([[ 0.70710678, -45. , 4. ]])\n '
dim = element_dimension(pts, [2, 3])
rho = np.linalg.norm(pts[(:, 0:2)], axis=1)
theta = np.arctan2(pts[(:, 1)], pts[(:, 0)])
if degrees:
theta = np.degrees(theta)
if (dim == 2):
return np.c_[(rho, theta)]
else:
return np.c_[(rho, theta, pts[(:, 2)])]<|docstring|>Convert Cartesian coordinates to polar or cylindrical coordinates.
:param ndarray pts: array of Cartesian points (x, y) or (x, y, z)
:param bool degrees: if true results will be presented in degrees (default: False)
:returns: [radial distance **rho**, azimuthal angle **theta**, (*vertical distance* **z**)]
:rtype: ndarray
>>> cart2pol(np.array([[0, 1], [-2, 0]]), degrees=True)
array([[ 1., 90.],
[ 2., 180.]])
>>> cart2pol(np.array([[0.5, -0.5, 4]]), degrees=True)
array([[ 0.70710678, -45. , 4. ]])<|endoftext|> |
fc064b89769ccecac513ff312fd252dee82ccd9d84e6d2df7bf6aa2dba984fc5 | def cart2sphere(pts: np.ndarray, degrees: bool=False) -> np.ndarray:
'Convert Cartesian coordinates to spherical coordinates.\n\n :param ndarray pts: array of Cartesian points (x, y, z)\n :param bool degrees: if true results will be presented in degrees (default: False)\n :returns: [radial distance **r**, azimuthal angle **theta**, polar angle\n **phi**]\n :rtype: ndarray\n\n >>> cart2sphere(np.array([[1, 0, 0], [1, 1, 1]]), degrees=True)\n array([[ 1. , 0. , 90. ],\n [ 1.73205081, 45. , 54.73561032]])\n '
element_dimension(pts, 3)
r = np.linalg.norm(pts, axis=1)
pol = cart2pol(pts, degrees)
rho = pol[(:, 0)]
theta = pol[(:, 1)]
z = pol[(:, 2)]
phi = ((np.pi / 2) - np.arctan2(z, rho))
if degrees:
phi = np.degrees(phi)
return np.c_[(r, theta, phi)] | Convert Cartesian coordinates to spherical coordinates.
:param ndarray pts: array of Cartesian points (x, y, z)
:param bool degrees: if true results will be presented in degrees (default: False)
:returns: [radial distance **r**, azimuthal angle **theta**, polar angle
**phi**]
:rtype: ndarray
>>> cart2sphere(np.array([[1, 0, 0], [1, 1, 1]]), degrees=True)
array([[ 1. , 0. , 90. ],
[ 1.73205081, 45. , 54.73561032]]) | strumenti/coordinate.py | cart2sphere | TimothyHelton/strumenti | 0 | python | def cart2sphere(pts: np.ndarray, degrees: bool=False) -> np.ndarray:
'Convert Cartesian coordinates to spherical coordinates.\n\n :param ndarray pts: array of Cartesian points (x, y, z)\n :param bool degrees: if true results will be presented in degrees (default: False)\n :returns: [radial distance **r**, azimuthal angle **theta**, polar angle\n **phi**]\n :rtype: ndarray\n\n >>> cart2sphere(np.array([[1, 0, 0], [1, 1, 1]]), degrees=True)\n array([[ 1. , 0. , 90. ],\n [ 1.73205081, 45. , 54.73561032]])\n '
element_dimension(pts, 3)
r = np.linalg.norm(pts, axis=1)
pol = cart2pol(pts, degrees)
rho = pol[(:, 0)]
theta = pol[(:, 1)]
z = pol[(:, 2)]
phi = ((np.pi / 2) - np.arctan2(z, rho))
if degrees:
phi = np.degrees(phi)
return np.c_[(r, theta, phi)] | def cart2sphere(pts: np.ndarray, degrees: bool=False) -> np.ndarray:
'Convert Cartesian coordinates to spherical coordinates.\n\n :param ndarray pts: array of Cartesian points (x, y, z)\n :param bool degrees: if true results will be presented in degrees (default: False)\n :returns: [radial distance **r**, azimuthal angle **theta**, polar angle\n **phi**]\n :rtype: ndarray\n\n >>> cart2sphere(np.array([[1, 0, 0], [1, 1, 1]]), degrees=True)\n array([[ 1. , 0. , 90. ],\n [ 1.73205081, 45. , 54.73561032]])\n '
element_dimension(pts, 3)
r = np.linalg.norm(pts, axis=1)
pol = cart2pol(pts, degrees)
rho = pol[(:, 0)]
theta = pol[(:, 1)]
z = pol[(:, 2)]
phi = ((np.pi / 2) - np.arctan2(z, rho))
if degrees:
phi = np.degrees(phi)
return np.c_[(r, theta, phi)]<|docstring|>Convert Cartesian coordinates to spherical coordinates.
:param ndarray pts: array of Cartesian points (x, y, z)
:param bool degrees: if true results will be presented in degrees (default: False)
:returns: [radial distance **r**, azimuthal angle **theta**, polar angle
**phi**]
:rtype: ndarray
>>> cart2sphere(np.array([[1, 0, 0], [1, 1, 1]]), degrees=True)
array([[ 1. , 0. , 90. ],
[ 1.73205081, 45. , 54.73561032]])<|endoftext|> |
a8957ffbb3ad8ab99c5804950fd01ab732ff3d752da535d5f5566d62487af941 | def pol2cart(pts: np.ndarray, degrees: bool=False) -> np.ndarray:
'Convert polar or cylindrical coordinates to Cartesian coordinates.\n\n :param ndarray pts: array of polar points (rho, theta) or cylindrical points (rho, theta, phi)\n :param bool degrees: if true results will be presented in degrees (default: False)\n :returns: [x, y, (*z*)]\n :rtype: ndarray\n\n >>> pol2cart(np.array([[2**0.5, 45], [1, 90]]), degrees=True)\n array([[ 1.00000000e+00, 1.00000000e+00],\n [ 6.12323400e-17, 1.00000000e+00]])\n\n >>> pol2cart(np.array([[2**0.5, 45, 1], [1, 90, 2]]), degrees=True)\n array([[ 1.00000000e+00, 1.00000000e+00, 1.00000000e+00],\n [ 6.12323400e-17, 1.00000000e+00, 2.00000000e+00]])\n '
dim = element_dimension(pts, [2, 3])
if degrees:
pts = pts.astype(float)
pts[(:, 1)] = np.radians(pts[(:, 1)])
x = (pts[(:, 0)] * np.cos(pts[(:, 1)]))
y = (pts[(:, 0)] * np.sin(pts[(:, 1)]))
if (dim == 2):
return np.c_[(x, y)]
else:
return np.c_[(x, y, pts[(:, 2)])] | Convert polar or cylindrical coordinates to Cartesian coordinates.
:param ndarray pts: array of polar points (rho, theta) or cylindrical points (rho, theta, phi)
:param bool degrees: if true results will be presented in degrees (default: False)
:returns: [x, y, (*z*)]
:rtype: ndarray
>>> pol2cart(np.array([[2**0.5, 45], [1, 90]]), degrees=True)
array([[ 1.00000000e+00, 1.00000000e+00],
[ 6.12323400e-17, 1.00000000e+00]])
>>> pol2cart(np.array([[2**0.5, 45, 1], [1, 90, 2]]), degrees=True)
array([[ 1.00000000e+00, 1.00000000e+00, 1.00000000e+00],
[ 6.12323400e-17, 1.00000000e+00, 2.00000000e+00]]) | strumenti/coordinate.py | pol2cart | TimothyHelton/strumenti | 0 | python | def pol2cart(pts: np.ndarray, degrees: bool=False) -> np.ndarray:
'Convert polar or cylindrical coordinates to Cartesian coordinates.\n\n :param ndarray pts: array of polar points (rho, theta) or cylindrical points (rho, theta, phi)\n :param bool degrees: if true results will be presented in degrees (default: False)\n :returns: [x, y, (*z*)]\n :rtype: ndarray\n\n >>> pol2cart(np.array([[2**0.5, 45], [1, 90]]), degrees=True)\n array([[ 1.00000000e+00, 1.00000000e+00],\n [ 6.12323400e-17, 1.00000000e+00]])\n\n >>> pol2cart(np.array([[2**0.5, 45, 1], [1, 90, 2]]), degrees=True)\n array([[ 1.00000000e+00, 1.00000000e+00, 1.00000000e+00],\n [ 6.12323400e-17, 1.00000000e+00, 2.00000000e+00]])\n '
dim = element_dimension(pts, [2, 3])
if degrees:
pts = pts.astype(float)
pts[(:, 1)] = np.radians(pts[(:, 1)])
x = (pts[(:, 0)] * np.cos(pts[(:, 1)]))
y = (pts[(:, 0)] * np.sin(pts[(:, 1)]))
if (dim == 2):
return np.c_[(x, y)]
else:
return np.c_[(x, y, pts[(:, 2)])] | def pol2cart(pts: np.ndarray, degrees: bool=False) -> np.ndarray:
'Convert polar or cylindrical coordinates to Cartesian coordinates.\n\n :param ndarray pts: array of polar points (rho, theta) or cylindrical points (rho, theta, phi)\n :param bool degrees: if true results will be presented in degrees (default: False)\n :returns: [x, y, (*z*)]\n :rtype: ndarray\n\n >>> pol2cart(np.array([[2**0.5, 45], [1, 90]]), degrees=True)\n array([[ 1.00000000e+00, 1.00000000e+00],\n [ 6.12323400e-17, 1.00000000e+00]])\n\n >>> pol2cart(np.array([[2**0.5, 45, 1], [1, 90, 2]]), degrees=True)\n array([[ 1.00000000e+00, 1.00000000e+00, 1.00000000e+00],\n [ 6.12323400e-17, 1.00000000e+00, 2.00000000e+00]])\n '
dim = element_dimension(pts, [2, 3])
if degrees:
pts = pts.astype(float)
pts[(:, 1)] = np.radians(pts[(:, 1)])
x = (pts[(:, 0)] * np.cos(pts[(:, 1)]))
y = (pts[(:, 0)] * np.sin(pts[(:, 1)]))
if (dim == 2):
return np.c_[(x, y)]
else:
return np.c_[(x, y, pts[(:, 2)])]<|docstring|>Convert polar or cylindrical coordinates to Cartesian coordinates.
:param ndarray pts: array of polar points (rho, theta) or cylindrical points (rho, theta, phi)
:param bool degrees: if true results will be presented in degrees (default: False)
:returns: [x, y, (*z*)]
:rtype: ndarray
>>> pol2cart(np.array([[2**0.5, 45], [1, 90]]), degrees=True)
array([[ 1.00000000e+00, 1.00000000e+00],
[ 6.12323400e-17, 1.00000000e+00]])
>>> pol2cart(np.array([[2**0.5, 45, 1], [1, 90, 2]]), degrees=True)
array([[ 1.00000000e+00, 1.00000000e+00, 1.00000000e+00],
[ 6.12323400e-17, 1.00000000e+00, 2.00000000e+00]])<|endoftext|> |
347bc96be13b923ec39c4f98456465901c5fad15a5b7386795de4670672fd7c8 | def sphere2cart(pts: np.ndarray, degrees: bool=False) -> np.ndarray:
'Convert spherical coordinates to Cartesian coordinates.\n\n :param ndarray pts: array of spherical coordinates\n :param bool degrees: if true results will be presented in degrees (default: False)\n :returns: [x, y, z]\n :rtype: ndarray\n\n >>> sphere2cart(np.array([[1, 0, 90], [1, 90, 90]]), degrees=True)\n array([[ 1.00000000e+00, 0.00000000e+00, 6.12323400e-17],\n [ 6.12323400e-17, 1.00000000e+00, 6.12323400e-17]])\n '
element_dimension(pts, 3)
if degrees:
pts = pts.astype(float)
pts[(:, 1:3)] = np.radians(pts[(:, 1:3)])
r = pts[(:, 0)]
theta = pts[(:, 1)]
phi = pts[(:, 2)]
x = ((r * np.sin(phi)) * np.cos(theta))
y = ((r * np.sin(phi)) * np.sin(theta))
z = (r * np.cos(phi))
return np.c_[(x, y, z)] | Convert spherical coordinates to Cartesian coordinates.
:param ndarray pts: array of spherical coordinates
:param bool degrees: if true results will be presented in degrees (default: False)
:returns: [x, y, z]
:rtype: ndarray
>>> sphere2cart(np.array([[1, 0, 90], [1, 90, 90]]), degrees=True)
array([[ 1.00000000e+00, 0.00000000e+00, 6.12323400e-17],
[ 6.12323400e-17, 1.00000000e+00, 6.12323400e-17]]) | strumenti/coordinate.py | sphere2cart | TimothyHelton/strumenti | 0 | python | def sphere2cart(pts: np.ndarray, degrees: bool=False) -> np.ndarray:
'Convert spherical coordinates to Cartesian coordinates.\n\n :param ndarray pts: array of spherical coordinates\n :param bool degrees: if true results will be presented in degrees (default: False)\n :returns: [x, y, z]\n :rtype: ndarray\n\n >>> sphere2cart(np.array([[1, 0, 90], [1, 90, 90]]), degrees=True)\n array([[ 1.00000000e+00, 0.00000000e+00, 6.12323400e-17],\n [ 6.12323400e-17, 1.00000000e+00, 6.12323400e-17]])\n '
element_dimension(pts, 3)
if degrees:
pts = pts.astype(float)
pts[(:, 1:3)] = np.radians(pts[(:, 1:3)])
r = pts[(:, 0)]
theta = pts[(:, 1)]
phi = pts[(:, 2)]
x = ((r * np.sin(phi)) * np.cos(theta))
y = ((r * np.sin(phi)) * np.sin(theta))
z = (r * np.cos(phi))
return np.c_[(x, y, z)] | def sphere2cart(pts: np.ndarray, degrees: bool=False) -> np.ndarray:
'Convert spherical coordinates to Cartesian coordinates.\n\n :param ndarray pts: array of spherical coordinates\n :param bool degrees: if true results will be presented in degrees (default: False)\n :returns: [x, y, z]\n :rtype: ndarray\n\n >>> sphere2cart(np.array([[1, 0, 90], [1, 90, 90]]), degrees=True)\n array([[ 1.00000000e+00, 0.00000000e+00, 6.12323400e-17],\n [ 6.12323400e-17, 1.00000000e+00, 6.12323400e-17]])\n '
element_dimension(pts, 3)
if degrees:
pts = pts.astype(float)
pts[(:, 1:3)] = np.radians(pts[(:, 1:3)])
r = pts[(:, 0)]
theta = pts[(:, 1)]
phi = pts[(:, 2)]
x = ((r * np.sin(phi)) * np.cos(theta))
y = ((r * np.sin(phi)) * np.sin(theta))
z = (r * np.cos(phi))
return np.c_[(x, y, z)]<|docstring|>Convert spherical coordinates to Cartesian coordinates.
:param ndarray pts: array of spherical coordinates
:param bool degrees: if true results will be presented in degrees (default: False)
:returns: [x, y, z]
:rtype: ndarray
>>> sphere2cart(np.array([[1, 0, 90], [1, 90, 90]]), degrees=True)
array([[ 1.00000000e+00, 0.00000000e+00, 6.12323400e-17],
[ 6.12323400e-17, 1.00000000e+00, 6.12323400e-17]])<|endoftext|> |
7542ceceea7bc9680d70532de00eb8af9b1c7b720199c57fdaab0be1de598016 | def get_vpc_attachment(filters=None, id=None, tags=None, opts=None):
'\n Get information on an EC2 Transit Gateway VPC Attachment.\n\n\n\n\n :param list filters: One or more configuration blocks containing name-values filters. Detailed below.\n :param str id: Identifier of the EC2 Transit Gateway VPC Attachment.\n :param dict tags: Key-value tags for the EC2 Transit Gateway VPC Attachment\n\n The **filters** object supports the following:\n\n * `name` (`str`) - Name of the filter.\n * `values` (`list`) - List of one or more values for the filter.\n '
__args__ = dict()
__args__['filters'] = filters
__args__['id'] = id
__args__['tags'] = tags
if (opts is None):
opts = pulumi.InvokeOptions()
if (opts.version is None):
opts.version = utilities.get_version()
__ret__ = pulumi.runtime.invoke('aws:ec2transitgateway/getVpcAttachment:getVpcAttachment', __args__, opts=opts).value
return AwaitableGetVpcAttachmentResult(dns_support=__ret__.get('dnsSupport'), filters=__ret__.get('filters'), id=__ret__.get('id'), ipv6_support=__ret__.get('ipv6Support'), subnet_ids=__ret__.get('subnetIds'), tags=__ret__.get('tags'), transit_gateway_id=__ret__.get('transitGatewayId'), vpc_id=__ret__.get('vpcId'), vpc_owner_id=__ret__.get('vpcOwnerId')) | Get information on an EC2 Transit Gateway VPC Attachment.
:param list filters: One or more configuration blocks containing name-values filters. Detailed below.
:param str id: Identifier of the EC2 Transit Gateway VPC Attachment.
:param dict tags: Key-value tags for the EC2 Transit Gateway VPC Attachment
The **filters** object supports the following:
* `name` (`str`) - Name of the filter.
* `values` (`list`) - List of one or more values for the filter. | sdk/python/pulumi_aws/ec2transitgateway/get_vpc_attachment.py | get_vpc_attachment | Dominik-K/pulumi-aws | 0 | python | def get_vpc_attachment(filters=None, id=None, tags=None, opts=None):
'\n Get information on an EC2 Transit Gateway VPC Attachment.\n\n\n\n\n :param list filters: One or more configuration blocks containing name-values filters. Detailed below.\n :param str id: Identifier of the EC2 Transit Gateway VPC Attachment.\n :param dict tags: Key-value tags for the EC2 Transit Gateway VPC Attachment\n\n The **filters** object supports the following:\n\n * `name` (`str`) - Name of the filter.\n * `values` (`list`) - List of one or more values for the filter.\n '
__args__ = dict()
__args__['filters'] = filters
__args__['id'] = id
__args__['tags'] = tags
if (opts is None):
opts = pulumi.InvokeOptions()
if (opts.version is None):
opts.version = utilities.get_version()
__ret__ = pulumi.runtime.invoke('aws:ec2transitgateway/getVpcAttachment:getVpcAttachment', __args__, opts=opts).value
return AwaitableGetVpcAttachmentResult(dns_support=__ret__.get('dnsSupport'), filters=__ret__.get('filters'), id=__ret__.get('id'), ipv6_support=__ret__.get('ipv6Support'), subnet_ids=__ret__.get('subnetIds'), tags=__ret__.get('tags'), transit_gateway_id=__ret__.get('transitGatewayId'), vpc_id=__ret__.get('vpcId'), vpc_owner_id=__ret__.get('vpcOwnerId')) | def get_vpc_attachment(filters=None, id=None, tags=None, opts=None):
'\n Get information on an EC2 Transit Gateway VPC Attachment.\n\n\n\n\n :param list filters: One or more configuration blocks containing name-values filters. Detailed below.\n :param str id: Identifier of the EC2 Transit Gateway VPC Attachment.\n :param dict tags: Key-value tags for the EC2 Transit Gateway VPC Attachment\n\n The **filters** object supports the following:\n\n * `name` (`str`) - Name of the filter.\n * `values` (`list`) - List of one or more values for the filter.\n '
__args__ = dict()
__args__['filters'] = filters
__args__['id'] = id
__args__['tags'] = tags
if (opts is None):
opts = pulumi.InvokeOptions()
if (opts.version is None):
opts.version = utilities.get_version()
__ret__ = pulumi.runtime.invoke('aws:ec2transitgateway/getVpcAttachment:getVpcAttachment', __args__, opts=opts).value
return AwaitableGetVpcAttachmentResult(dns_support=__ret__.get('dnsSupport'), filters=__ret__.get('filters'), id=__ret__.get('id'), ipv6_support=__ret__.get('ipv6Support'), subnet_ids=__ret__.get('subnetIds'), tags=__ret__.get('tags'), transit_gateway_id=__ret__.get('transitGatewayId'), vpc_id=__ret__.get('vpcId'), vpc_owner_id=__ret__.get('vpcOwnerId'))<|docstring|>Get information on an EC2 Transit Gateway VPC Attachment.
:param list filters: One or more configuration blocks containing name-values filters. Detailed below.
:param str id: Identifier of the EC2 Transit Gateway VPC Attachment.
:param dict tags: Key-value tags for the EC2 Transit Gateway VPC Attachment
The **filters** object supports the following:
* `name` (`str`) - Name of the filter.
* `values` (`list`) - List of one or more values for the filter.<|endoftext|> |
1f25b3f1ea2538c306d53f033c313ac917ec24886620a1140e1f832ca9f530db | @click.group()
@click.option('--home', type=click.Path(), default=None, help='The folder that contains the virtualenvs.')
@click.option('--bin-dir', type=click.Path(), default=None, help='The path where the scripts are symlinked to.')
@click.version_option()
@pass_repo
def cli(repo, home, bin_dir):
'pipsi is a tool that uses virtualenv and pip to install shell\n tools that are separated from each other.\n '
if (home is not None):
repo.home = home
if (bin_dir is not None):
repo.bin_dir = bin_dir | pipsi is a tool that uses virtualenv and pip to install shell
tools that are separated from each other. | pipsi.py | cli | nvie/pipsi | 1 | python | @click.group()
@click.option('--home', type=click.Path(), default=None, help='The folder that contains the virtualenvs.')
@click.option('--bin-dir', type=click.Path(), default=None, help='The path where the scripts are symlinked to.')
@click.version_option()
@pass_repo
def cli(repo, home, bin_dir):
'pipsi is a tool that uses virtualenv and pip to install shell\n tools that are separated from each other.\n '
if (home is not None):
repo.home = home
if (bin_dir is not None):
repo.bin_dir = bin_dir | @click.group()
@click.option('--home', type=click.Path(), default=None, help='The folder that contains the virtualenvs.')
@click.option('--bin-dir', type=click.Path(), default=None, help='The path where the scripts are symlinked to.')
@click.version_option()
@pass_repo
def cli(repo, home, bin_dir):
'pipsi is a tool that uses virtualenv and pip to install shell\n tools that are separated from each other.\n '
if (home is not None):
repo.home = home
if (bin_dir is not None):
repo.bin_dir = bin_dir<|docstring|>pipsi is a tool that uses virtualenv and pip to install shell
tools that are separated from each other.<|endoftext|> |
ecd464c1c139a2c2e4b8f57ab0336c67d922fae9a16279d923250e56b389f6b0 | @cli.command()
@click.argument('package')
@click.option('--python', default=None, help='The python interpreter to use.')
@click.option('--editable', is_flag=True, help='Enable editable installation. This only works for locally installed packages.')
@pass_repo
def install(repo, package, python, editable):
'Installs scripts from a Python package.\n\n Given a package this will install all the scripts and their dependencies\n of the given Python package into a new virtualenv and symlinks the\n discovered scripts into BIN_DIR (defaults to ~/.local/bin).\n '
if repo.install(package, python, editable):
click.echo('Done.') | Installs scripts from a Python package.
Given a package this will install all the scripts and their dependencies
of the given Python package into a new virtualenv and symlinks the
discovered scripts into BIN_DIR (defaults to ~/.local/bin). | pipsi.py | install | nvie/pipsi | 1 | python | @cli.command()
@click.argument('package')
@click.option('--python', default=None, help='The python interpreter to use.')
@click.option('--editable', is_flag=True, help='Enable editable installation. This only works for locally installed packages.')
@pass_repo
def install(repo, package, python, editable):
'Installs scripts from a Python package.\n\n Given a package this will install all the scripts and their dependencies\n of the given Python package into a new virtualenv and symlinks the\n discovered scripts into BIN_DIR (defaults to ~/.local/bin).\n '
if repo.install(package, python, editable):
click.echo('Done.') | @cli.command()
@click.argument('package')
@click.option('--python', default=None, help='The python interpreter to use.')
@click.option('--editable', is_flag=True, help='Enable editable installation. This only works for locally installed packages.')
@pass_repo
def install(repo, package, python, editable):
'Installs scripts from a Python package.\n\n Given a package this will install all the scripts and their dependencies\n of the given Python package into a new virtualenv and symlinks the\n discovered scripts into BIN_DIR (defaults to ~/.local/bin).\n '
if repo.install(package, python, editable):
click.echo('Done.')<|docstring|>Installs scripts from a Python package.
Given a package this will install all the scripts and their dependencies
of the given Python package into a new virtualenv and symlinks the
discovered scripts into BIN_DIR (defaults to ~/.local/bin).<|endoftext|> |
32aa22930bae19f6e978720c63214f7b24dbfd9b3fc817e2f3832e3bbe83e6e6 | @cli.command()
@click.argument('package')
@click.option('--editable', is_flag=True, help='Enable editable installation. This only works for locally installed packages.')
@pass_repo
def upgrade(repo, package, editable):
'Upgrades an already installed package.'
if repo.upgrade(package, editable):
click.echo('Done.') | Upgrades an already installed package. | pipsi.py | upgrade | nvie/pipsi | 1 | python | @cli.command()
@click.argument('package')
@click.option('--editable', is_flag=True, help='Enable editable installation. This only works for locally installed packages.')
@pass_repo
def upgrade(repo, package, editable):
if repo.upgrade(package, editable):
click.echo('Done.') | @cli.command()
@click.argument('package')
@click.option('--editable', is_flag=True, help='Enable editable installation. This only works for locally installed packages.')
@pass_repo
def upgrade(repo, package, editable):
if repo.upgrade(package, editable):
click.echo('Done.')<|docstring|>Upgrades an already installed package.<|endoftext|> |
699bea1f8a367daa44bdac341c0769248a30c47fc8be48fc246cb719d9493c86 | @cli.command(short_help='Uninstalls scripts of a package.')
@click.argument('package')
@click.option('--yes', is_flag=True, help='Skips all prompts.')
@pass_repo
def uninstall(repo, package, yes):
'Uninstalls all scripts of a Python package and cleans up the\n virtualenv.\n '
uinfo = repo.uninstall(package)
if (not uinfo.installed):
click.echo(('%s is not installed' % package))
else:
click.echo('The following paths will be removed:')
for path in uinfo.paths:
click.echo((' %s' % click.format_filename(path)))
click.echo()
if (yes or click.confirm(('Do you want to uninstall %s?' % package))):
uinfo.perform()
click.echo('Done!')
else:
click.echo('Aborted!') | Uninstalls all scripts of a Python package and cleans up the
virtualenv. | pipsi.py | uninstall | nvie/pipsi | 1 | python | @cli.command(short_help='Uninstalls scripts of a package.')
@click.argument('package')
@click.option('--yes', is_flag=True, help='Skips all prompts.')
@pass_repo
def uninstall(repo, package, yes):
'Uninstalls all scripts of a Python package and cleans up the\n virtualenv.\n '
uinfo = repo.uninstall(package)
if (not uinfo.installed):
click.echo(('%s is not installed' % package))
else:
click.echo('The following paths will be removed:')
for path in uinfo.paths:
click.echo((' %s' % click.format_filename(path)))
click.echo()
if (yes or click.confirm(('Do you want to uninstall %s?' % package))):
uinfo.perform()
click.echo('Done!')
else:
click.echo('Aborted!') | @cli.command(short_help='Uninstalls scripts of a package.')
@click.argument('package')
@click.option('--yes', is_flag=True, help='Skips all prompts.')
@pass_repo
def uninstall(repo, package, yes):
'Uninstalls all scripts of a Python package and cleans up the\n virtualenv.\n '
uinfo = repo.uninstall(package)
if (not uinfo.installed):
click.echo(('%s is not installed' % package))
else:
click.echo('The following paths will be removed:')
for path in uinfo.paths:
click.echo((' %s' % click.format_filename(path)))
click.echo()
if (yes or click.confirm(('Do you want to uninstall %s?' % package))):
uinfo.perform()
click.echo('Done!')
else:
click.echo('Aborted!')<|docstring|>Uninstalls all scripts of a Python package and cleans up the
virtualenv.<|endoftext|> |
f4611878cdd8a6390e47268c3ea584400b1d29b963be9ccbe0f3e7ed4a49a387 | @cli.command('list')
@pass_repo
def list_cmd(repo):
'Lists all scripts installed through pipsi.'
click.echo('Packages and scripts installed through pipsi:')
for (venv, scripts) in repo.list_everything():
if (not scripts):
continue
click.echo((' Package "%s":' % venv))
for script in scripts:
click.echo((' ' + script)) | Lists all scripts installed through pipsi. | pipsi.py | list_cmd | nvie/pipsi | 1 | python | @cli.command('list')
@pass_repo
def list_cmd(repo):
click.echo('Packages and scripts installed through pipsi:')
for (venv, scripts) in repo.list_everything():
if (not scripts):
continue
click.echo((' Package "%s":' % venv))
for script in scripts:
click.echo((' ' + script)) | @cli.command('list')
@pass_repo
def list_cmd(repo):
click.echo('Packages and scripts installed through pipsi:')
for (venv, scripts) in repo.list_everything():
if (not scripts):
continue
click.echo((' Package "%s":' % venv))
for script in scripts:
click.echo((' ' + script))<|docstring|>Lists all scripts installed through pipsi.<|endoftext|> |
2802a7143667b13f19acf0e839ccb5bc59dad6ec410a6f572c10957338262859 | def start_predictions_pipeline(model_directory: str, data_directory: str, path_to_blacklisted_triples: Optional[str]=None, export_predictions=True) -> None:
'\n Performs inference based on a trained KGE model. The predictions are saved predictions.tsv in the provided\n data directory.\n :param model_directory: Directory containing the experimental artifacts: configuration.json,\n entities_to_embeddings.json, relations_to_embeddings.json and trained_model.pkl\n :param data_directory: Directory containing the candidate entities as an entities.tsv file and\n the candidate relations as relations.tsv. Both files consists of one column containint the entities/relations,\n and based on these all combinatios of possible triples are created.\n :param remove_training_triples:\n :param path_to_blacklisted_triples:\n :return:\n '
with open(os.path.join(model_directory, 'configuration.json')) as f:
config = json.load(f)
with open(os.path.join(model_directory, 'entity_to_id.json')) as f:
entity_to_id = json.load(f)
with open(os.path.join(model_directory, 'relation_to_id.json')) as f:
relation_to_id = json.load(f)
trained_kge_model: Module = get_kge_model(config=config)
path_to_model = os.path.join(model_directory, 'trained_model.pkl')
trained_kge_model.load_state_dict(torch.load(path_to_model))
entities = np.loadtxt(fname=os.path.join(data_directory, 'entities.tsv'), dtype=str, delimiter='\t')
relations = np.loadtxt(fname=os.path.join(data_directory, 'relations.tsv'), dtype=str, delimiter='\t')
device_name = ('cuda:0' if (torch.cuda.is_available() and (config[PREFERRED_DEVICE] == GPU)) else CPU)
device = torch.device(device_name)
ranked_triples = make_predictions(kge_model=trained_kge_model, entities=entities, relations=relations, entity_to_id=entity_to_id, rel_to_id=relation_to_id, device=device, blacklist_path=path_to_blacklisted_triples)
if export_predictions:
np.savetxt(os.path.join(data_directory, 'predictions.tsv'), ranked_triples, fmt='%s')
return ranked_triples | Performs inference based on a trained KGE model. The predictions are saved predictions.tsv in the provided
data directory.
:param model_directory: Directory containing the experimental artifacts: configuration.json,
entities_to_embeddings.json, relations_to_embeddings.json and trained_model.pkl
:param data_directory: Directory containing the candidate entities as an entities.tsv file and
the candidate relations as relations.tsv. Both files consists of one column containint the entities/relations,
and based on these all combinatios of possible triples are created.
:param remove_training_triples:
:param path_to_blacklisted_triples:
:return: | src/pykeen/predict.py | start_predictions_pipeline | collarad/PyKEEN | 1 | python | def start_predictions_pipeline(model_directory: str, data_directory: str, path_to_blacklisted_triples: Optional[str]=None, export_predictions=True) -> None:
'\n Performs inference based on a trained KGE model. The predictions are saved predictions.tsv in the provided\n data directory.\n :param model_directory: Directory containing the experimental artifacts: configuration.json,\n entities_to_embeddings.json, relations_to_embeddings.json and trained_model.pkl\n :param data_directory: Directory containing the candidate entities as an entities.tsv file and\n the candidate relations as relations.tsv. Both files consists of one column containint the entities/relations,\n and based on these all combinatios of possible triples are created.\n :param remove_training_triples:\n :param path_to_blacklisted_triples:\n :return:\n '
with open(os.path.join(model_directory, 'configuration.json')) as f:
config = json.load(f)
with open(os.path.join(model_directory, 'entity_to_id.json')) as f:
entity_to_id = json.load(f)
with open(os.path.join(model_directory, 'relation_to_id.json')) as f:
relation_to_id = json.load(f)
trained_kge_model: Module = get_kge_model(config=config)
path_to_model = os.path.join(model_directory, 'trained_model.pkl')
trained_kge_model.load_state_dict(torch.load(path_to_model))
entities = np.loadtxt(fname=os.path.join(data_directory, 'entities.tsv'), dtype=str, delimiter='\t')
relations = np.loadtxt(fname=os.path.join(data_directory, 'relations.tsv'), dtype=str, delimiter='\t')
device_name = ('cuda:0' if (torch.cuda.is_available() and (config[PREFERRED_DEVICE] == GPU)) else CPU)
device = torch.device(device_name)
ranked_triples = make_predictions(kge_model=trained_kge_model, entities=entities, relations=relations, entity_to_id=entity_to_id, rel_to_id=relation_to_id, device=device, blacklist_path=path_to_blacklisted_triples)
if export_predictions:
np.savetxt(os.path.join(data_directory, 'predictions.tsv'), ranked_triples, fmt='%s')
return ranked_triples | def start_predictions_pipeline(model_directory: str, data_directory: str, path_to_blacklisted_triples: Optional[str]=None, export_predictions=True) -> None:
'\n Performs inference based on a trained KGE model. The predictions are saved predictions.tsv in the provided\n data directory.\n :param model_directory: Directory containing the experimental artifacts: configuration.json,\n entities_to_embeddings.json, relations_to_embeddings.json and trained_model.pkl\n :param data_directory: Directory containing the candidate entities as an entities.tsv file and\n the candidate relations as relations.tsv. Both files consists of one column containint the entities/relations,\n and based on these all combinatios of possible triples are created.\n :param remove_training_triples:\n :param path_to_blacklisted_triples:\n :return:\n '
with open(os.path.join(model_directory, 'configuration.json')) as f:
config = json.load(f)
with open(os.path.join(model_directory, 'entity_to_id.json')) as f:
entity_to_id = json.load(f)
with open(os.path.join(model_directory, 'relation_to_id.json')) as f:
relation_to_id = json.load(f)
trained_kge_model: Module = get_kge_model(config=config)
path_to_model = os.path.join(model_directory, 'trained_model.pkl')
trained_kge_model.load_state_dict(torch.load(path_to_model))
entities = np.loadtxt(fname=os.path.join(data_directory, 'entities.tsv'), dtype=str, delimiter='\t')
relations = np.loadtxt(fname=os.path.join(data_directory, 'relations.tsv'), dtype=str, delimiter='\t')
device_name = ('cuda:0' if (torch.cuda.is_available() and (config[PREFERRED_DEVICE] == GPU)) else CPU)
device = torch.device(device_name)
ranked_triples = make_predictions(kge_model=trained_kge_model, entities=entities, relations=relations, entity_to_id=entity_to_id, rel_to_id=relation_to_id, device=device, blacklist_path=path_to_blacklisted_triples)
if export_predictions:
np.savetxt(os.path.join(data_directory, 'predictions.tsv'), ranked_triples, fmt='%s')
return ranked_triples<|docstring|>Performs inference based on a trained KGE model. The predictions are saved predictions.tsv in the provided
data directory.
:param model_directory: Directory containing the experimental artifacts: configuration.json,
entities_to_embeddings.json, relations_to_embeddings.json and trained_model.pkl
:param data_directory: Directory containing the candidate entities as an entities.tsv file and
the candidate relations as relations.tsv. Both files consists of one column containint the entities/relations,
and based on these all combinatios of possible triples are created.
:param remove_training_triples:
:param path_to_blacklisted_triples:
:return:<|endoftext|> |
b4710779ef360b44eede8e0beddd81661fe194cca0c9b7d958603da4db18cf67 | def generic_algorithm_test(spec, algorithm_name):
"Need new InfoSpace() per trial otherwise session id doesn't tick correctly"
trial = Trial(spec, info_space=InfoSpace())
trial_data = trial.run()
folders = [x for x in os.listdir('data/') if x.startswith(algorithm_name)]
assert (len(folders) == 1)
path = ('data/' + folders[0])
sess_data = util.read((((path + '/') + algorithm_name) + '_t0_s0_session_df.csv'))
rewards = sess_data['0.2'].replace('reward', (- 1)).astype(float)
print(f'rewards: {rewards}')
maxr = rewards.max()
shutil.rmtree(path)
del trial
return maxr | Need new InfoSpace() per trial otherwise session id doesn't tick correctly | test/agent/algo/test_algo.py | generic_algorithm_test | cclauss/SLM-Lab | 0 | python | def generic_algorithm_test(spec, algorithm_name):
trial = Trial(spec, info_space=InfoSpace())
trial_data = trial.run()
folders = [x for x in os.listdir('data/') if x.startswith(algorithm_name)]
assert (len(folders) == 1)
path = ('data/' + folders[0])
sess_data = util.read((((path + '/') + algorithm_name) + '_t0_s0_session_df.csv'))
rewards = sess_data['0.2'].replace('reward', (- 1)).astype(float)
print(f'rewards: {rewards}')
maxr = rewards.max()
shutil.rmtree(path)
del trial
return maxr | def generic_algorithm_test(spec, algorithm_name):
trial = Trial(spec, info_space=InfoSpace())
trial_data = trial.run()
folders = [x for x in os.listdir('data/') if x.startswith(algorithm_name)]
assert (len(folders) == 1)
path = ('data/' + folders[0])
sess_data = util.read((((path + '/') + algorithm_name) + '_t0_s0_session_df.csv'))
rewards = sess_data['0.2'].replace('reward', (- 1)).astype(float)
print(f'rewards: {rewards}')
maxr = rewards.max()
shutil.rmtree(path)
del trial
return maxr<|docstring|>Need new InfoSpace() per trial otherwise session id doesn't tick correctly<|endoftext|> |
b23243d441f3294a7c32c021c685da0f997c846ba43145e85897742386e68548 | def __init__(self, temboo_session):
'\n Create a new instance of the GetLastCall Choreo. A TembooSession object, containing a valid\n set of Temboo credentials, must be supplied.\n '
super(GetLastCall, self).__init__(temboo_session, '/Library/Twilio/Calls/GetLastCall') | Create a new instance of the GetLastCall Choreo. A TembooSession object, containing a valid
set of Temboo credentials, must be supplied. | temboo/core/Library/Twilio/Calls/GetLastCall.py | __init__ | jordanemedlock/psychtruths | 7 | python | def __init__(self, temboo_session):
'\n Create a new instance of the GetLastCall Choreo. A TembooSession object, containing a valid\n set of Temboo credentials, must be supplied.\n '
super(GetLastCall, self).__init__(temboo_session, '/Library/Twilio/Calls/GetLastCall') | def __init__(self, temboo_session):
'\n Create a new instance of the GetLastCall Choreo. A TembooSession object, containing a valid\n set of Temboo credentials, must be supplied.\n '
super(GetLastCall, self).__init__(temboo_session, '/Library/Twilio/Calls/GetLastCall')<|docstring|>Create a new instance of the GetLastCall Choreo. A TembooSession object, containing a valid
set of Temboo credentials, must be supplied.<|endoftext|> |
5917b27c96874ad1d1159152e0b4ef1cdc0208a3d606a38b487b059e15925366 | def set_AccountSID(self, value):
'\n Set the value of the AccountSID input for this Choreo. ((required, string) The AccountSID provided when you signed up for a Twilio account.)\n '
super(GetLastCallInputSet, self)._set_input('AccountSID', value) | Set the value of the AccountSID input for this Choreo. ((required, string) The AccountSID provided when you signed up for a Twilio account.) | temboo/core/Library/Twilio/Calls/GetLastCall.py | set_AccountSID | jordanemedlock/psychtruths | 7 | python | def set_AccountSID(self, value):
'\n \n '
super(GetLastCallInputSet, self)._set_input('AccountSID', value) | def set_AccountSID(self, value):
'\n \n '
super(GetLastCallInputSet, self)._set_input('AccountSID', value)<|docstring|>Set the value of the AccountSID input for this Choreo. ((required, string) The AccountSID provided when you signed up for a Twilio account.)<|endoftext|> |
91d824711ed90d65262a22cf4601a97f99e08a834c1a2b9164829d71cf116268 | def set_AuthToken(self, value):
'\n Set the value of the AuthToken input for this Choreo. ((required, string) The authorization token provided when you signed up for a Twilio account.)\n '
super(GetLastCallInputSet, self)._set_input('AuthToken', value) | Set the value of the AuthToken input for this Choreo. ((required, string) The authorization token provided when you signed up for a Twilio account.) | temboo/core/Library/Twilio/Calls/GetLastCall.py | set_AuthToken | jordanemedlock/psychtruths | 7 | python | def set_AuthToken(self, value):
'\n \n '
super(GetLastCallInputSet, self)._set_input('AuthToken', value) | def set_AuthToken(self, value):
'\n \n '
super(GetLastCallInputSet, self)._set_input('AuthToken', value)<|docstring|>Set the value of the AuthToken input for this Choreo. ((required, string) The authorization token provided when you signed up for a Twilio account.)<|endoftext|> |
d34b14842a22122196f9f305c2b2a3bf9891ab256525485dd1443356c2519c19 | def set_ResponseFormat(self, value):
'\n Set the value of the ResponseFormat input for this Choreo. ((optional, string) The format that the response should be in. Valid values are: json (the default) and xml.)\n '
super(GetLastCallInputSet, self)._set_input('ResponseFormat', value) | Set the value of the ResponseFormat input for this Choreo. ((optional, string) The format that the response should be in. Valid values are: json (the default) and xml.) | temboo/core/Library/Twilio/Calls/GetLastCall.py | set_ResponseFormat | jordanemedlock/psychtruths | 7 | python | def set_ResponseFormat(self, value):
'\n \n '
super(GetLastCallInputSet, self)._set_input('ResponseFormat', value) | def set_ResponseFormat(self, value):
'\n \n '
super(GetLastCallInputSet, self)._set_input('ResponseFormat', value)<|docstring|>Set the value of the ResponseFormat input for this Choreo. ((optional, string) The format that the response should be in. Valid values are: json (the default) and xml.)<|endoftext|> |
ef81ada1cd5e09b3857e2897311050c2e15a4cbefd598b27a4307947db755df3 | def get_Response(self):
'\n Retrieve the value for the "Response" output from this Choreo execution. (The response from Twilio.)\n '
return self._output.get('Response', None) | Retrieve the value for the "Response" output from this Choreo execution. (The response from Twilio.) | temboo/core/Library/Twilio/Calls/GetLastCall.py | get_Response | jordanemedlock/psychtruths | 7 | python | def get_Response(self):
'\n \n '
return self._output.get('Response', None) | def get_Response(self):
'\n \n '
return self._output.get('Response', None)<|docstring|>Retrieve the value for the "Response" output from this Choreo execution. (The response from Twilio.)<|endoftext|> |
e1e37c07a23062e9975dfc388763e6d69a6f9b4b60b3c26f9d9d3e47742749e1 | def rosenbrock(x, y, a=1, b=100):
'Bigger is better; global optimum at x=a, y=a**2'
return ((- 1) * (((a - x) ** 2) + (b * ((y - (x ** 2)) ** 2)))) | Bigger is better; global optimum at x=a, y=a**2 | examples/rosenbrock.py | rosenbrock | brucebcampbell/BTB | 1 | python | def rosenbrock(x, y, a=1, b=100):
return ((- 1) * (((a - x) ** 2) + (b * ((y - (x ** 2)) ** 2)))) | def rosenbrock(x, y, a=1, b=100):
return ((- 1) * (((a - x) ** 2) + (b * ((y - (x ** 2)) ** 2))))<|docstring|>Bigger is better; global optimum at x=a, y=a**2<|endoftext|> |
6dd9f5a9976ed87c44f6b0d74f1ca74a2d6af4cca2d3bd71c8efe9531c31bbd6 | def sample(self):
'sample rollouts from the environment, being called in step in PolicyOptimizer'
(observations, rewards, actions, logprobs, dones, values) = ([], [], [], [], [], [])
done = False
for step in range(self.config['steps_per_rollout']):
(value, action, logprob, mean) = self.net.forward(to_variable(self.obs[np.newaxis], self.config['cuda']))
action = (action.cpu().data.numpy()[0] if self.config['cuda'] else action.data.numpy()[0])
(next_obs, reward, done, _) = self.env.step(action)
if self.config['cuda']:
(value, logprob, mean) = (value.data.cpu().numpy()[0], logprob.data.cpu().numpy()[0], mean.data.cpu().numpy()[0])
else:
(value, logprob, mean) = (value.data.numpy()[0], logprob.data.numpy()[0], mean.data.numpy()[0])
observations.append(self.obs)
actions.append(action)
rewards.append(reward)
logprobs.append(logprob)
values.append(value)
dones.append(done)
self.obs = next_obs
if done:
self.obs = self.env.reset()
if done:
last_value = 0.0
else:
(value, action, logprob, mean) = self.net.forward(to_variable(self.obs[np.newaxis], self.config['cuda']))
if self.config['cuda']:
(value,) = value.data.cpu().numpy()[0]
else:
(value,) = value.data.numpy()[0]
last_value = value
observations = np.asarray(observations)
rewards = np.asarray(rewards)
logprobs = np.asarray(logprobs)
dones = np.asarray(dones)
values = np.asarray(values)
actions = np.asarray(actions)
returns = calculate_returns(rewards, dones, last_value, self.config['gamma'])
return SampleBatch({'observations': observations, 'rewards': rewards, 'logprobs': logprobs, 'dones': dones, 'values': values, 'actions': actions, 'returns': returns[:(- 1)]}) | sample rollouts from the environment, being called in step in PolicyOptimizer | ppo-pytorch-master/ppo_distribute/torch_ppo_evaluator.py | sample | Timliang/RL-Competition | 0 | python | def sample(self):
(observations, rewards, actions, logprobs, dones, values) = ([], [], [], [], [], [])
done = False
for step in range(self.config['steps_per_rollout']):
(value, action, logprob, mean) = self.net.forward(to_variable(self.obs[np.newaxis], self.config['cuda']))
action = (action.cpu().data.numpy()[0] if self.config['cuda'] else action.data.numpy()[0])
(next_obs, reward, done, _) = self.env.step(action)
if self.config['cuda']:
(value, logprob, mean) = (value.data.cpu().numpy()[0], logprob.data.cpu().numpy()[0], mean.data.cpu().numpy()[0])
else:
(value, logprob, mean) = (value.data.numpy()[0], logprob.data.numpy()[0], mean.data.numpy()[0])
observations.append(self.obs)
actions.append(action)
rewards.append(reward)
logprobs.append(logprob)
values.append(value)
dones.append(done)
self.obs = next_obs
if done:
self.obs = self.env.reset()
if done:
last_value = 0.0
else:
(value, action, logprob, mean) = self.net.forward(to_variable(self.obs[np.newaxis], self.config['cuda']))
if self.config['cuda']:
(value,) = value.data.cpu().numpy()[0]
else:
(value,) = value.data.numpy()[0]
last_value = value
observations = np.asarray(observations)
rewards = np.asarray(rewards)
logprobs = np.asarray(logprobs)
dones = np.asarray(dones)
values = np.asarray(values)
actions = np.asarray(actions)
returns = calculate_returns(rewards, dones, last_value, self.config['gamma'])
return SampleBatch({'observations': observations, 'rewards': rewards, 'logprobs': logprobs, 'dones': dones, 'values': values, 'actions': actions, 'returns': returns[:(- 1)]}) | def sample(self):
(observations, rewards, actions, logprobs, dones, values) = ([], [], [], [], [], [])
done = False
for step in range(self.config['steps_per_rollout']):
(value, action, logprob, mean) = self.net.forward(to_variable(self.obs[np.newaxis], self.config['cuda']))
action = (action.cpu().data.numpy()[0] if self.config['cuda'] else action.data.numpy()[0])
(next_obs, reward, done, _) = self.env.step(action)
if self.config['cuda']:
(value, logprob, mean) = (value.data.cpu().numpy()[0], logprob.data.cpu().numpy()[0], mean.data.cpu().numpy()[0])
else:
(value, logprob, mean) = (value.data.numpy()[0], logprob.data.numpy()[0], mean.data.numpy()[0])
observations.append(self.obs)
actions.append(action)
rewards.append(reward)
logprobs.append(logprob)
values.append(value)
dones.append(done)
self.obs = next_obs
if done:
self.obs = self.env.reset()
if done:
last_value = 0.0
else:
(value, action, logprob, mean) = self.net.forward(to_variable(self.obs[np.newaxis], self.config['cuda']))
if self.config['cuda']:
(value,) = value.data.cpu().numpy()[0]
else:
(value,) = value.data.numpy()[0]
last_value = value
observations = np.asarray(observations)
rewards = np.asarray(rewards)
logprobs = np.asarray(logprobs)
dones = np.asarray(dones)
values = np.asarray(values)
actions = np.asarray(actions)
returns = calculate_returns(rewards, dones, last_value, self.config['gamma'])
return SampleBatch({'observations': observations, 'rewards': rewards, 'logprobs': logprobs, 'dones': dones, 'values': values, 'actions': actions, 'returns': returns[:(- 1)]})<|docstring|>sample rollouts from the environment, being called in step in PolicyOptimizer<|endoftext|> |
8d764d1068b830505b065b559a2e8e6cab2678e3d13045295079437b655bb341 | def compute_gradients(self, samples):
'Not used in this evaluator, all done in compute apply'
return (None, {}) | Not used in this evaluator, all done in compute apply | ppo-pytorch-master/ppo_distribute/torch_ppo_evaluator.py | compute_gradients | Timliang/RL-Competition | 0 | python | def compute_gradients(self, samples):
return (None, {}) | def compute_gradients(self, samples):
return (None, {})<|docstring|>Not used in this evaluator, all done in compute apply<|endoftext|> |
3923f314087b569e10c579269d81cddac7c81a2b0855274d12293a0e900effb7 | def apply_gradients(self, grads):
'Not used in this evaluator, all done in compute apply'
pass | Not used in this evaluator, all done in compute apply | ppo-pytorch-master/ppo_distribute/torch_ppo_evaluator.py | apply_gradients | Timliang/RL-Competition | 0 | python | def apply_gradients(self, grads):
pass | def apply_gradients(self, grads):
pass<|docstring|>Not used in this evaluator, all done in compute apply<|endoftext|> |
94e57c684e1018036cac379453f404bcc28e69d4efce8e144597c93708aa33ec | def __lemmanization__(self, input_document):
'\n convert every word in a document into normal form\n '
clean_document = ''
for word in word_tokenize(input_document):
w = morph.normal_forms(word)[0]
clean_document += (w + ' ')
return clean_document | convert every word in a document into normal form | nlpru/semantics.py | __lemmanization__ | sergegoussev/nlpru | 1 | python | def __lemmanization__(self, input_document):
'\n \n '
clean_document =
for word in word_tokenize(input_document):
w = morph.normal_forms(word)[0]
clean_document += (w + ' ')
return clean_document | def __lemmanization__(self, input_document):
'\n \n '
clean_document =
for word in word_tokenize(input_document):
w = morph.normal_forms(word)[0]
clean_document += (w + ' ')
return clean_document<|docstring|>convert every word in a document into normal form<|endoftext|> |
d1cf87f743e66f25f2079467979f7cad31dbed0f675903c17b83660688965c4a | def __normalize_docs__(self, input_docs):
'\n convert all words in document to normal form\n '
normalized_docs = []
for doc in input_docs:
cln = self.__lemmanization__(doc)
normalized_docs.append(cln)
return normalized_docs | convert all words in document to normal form | nlpru/semantics.py | __normalize_docs__ | sergegoussev/nlpru | 1 | python | def __normalize_docs__(self, input_docs):
'\n \n '
normalized_docs = []
for doc in input_docs:
cln = self.__lemmanization__(doc)
normalized_docs.append(cln)
return normalized_docs | def __normalize_docs__(self, input_docs):
'\n \n '
normalized_docs = []
for doc in input_docs:
cln = self.__lemmanization__(doc)
normalized_docs.append(cln)
return normalized_docs<|docstring|>convert all words in document to normal form<|endoftext|> |
ec60e16d296d64d020d57aa597fcf56d98e3cdb999ee7072f6b7385f1fbfbc9b | def Get_similarity(self, docs_list, use_normal_form=False, clean_documents=True, stop_words=None, similarity_to='first', use_ngrams=True):
"\n Get cosine similarity of documents. Uses sklearn's library and the \n tf-idf approach (TfidfVectorizer()) to calculate result\n\n (unique) params:\n - stop_words: list (or set) of stop words to use\n - similarity_to: 'first' or 'all' expected\n\n returns: \n depending on 'similarity_to' param, either similarity row \n vector of the first document to all others docs is returned, or\n (if 'All' is specified) matrix of of all docs against all others\n "
if (clean_documents == True):
docs_list = self.__clean_docs__(docs_list)
if (use_normal_form == True):
docs_list = self.__normalize_docs__(docs_list)
if (use_ngrams == True):
tfidf_vectorizer = TfidfVectorizer(stop_words=stop_words, ngram_range=(2, 3))
else:
tfidf_vectorizer = TfidfVectorizer(stop_words=stop_words)
tfidf_matrix = tfidf_vectorizer.fit_transform(docs_list)
cosine_similarity_matrix = cosine_similarity(tfidf_matrix[0:1], tfidf_matrix)
return cosine_similarity_matrix | Get cosine similarity of documents. Uses sklearn's library and the
tf-idf approach (TfidfVectorizer()) to calculate result
(unique) params:
- stop_words: list (or set) of stop words to use
- similarity_to: 'first' or 'all' expected
returns:
depending on 'similarity_to' param, either similarity row
vector of the first document to all others docs is returned, or
(if 'All' is specified) matrix of of all docs against all others | nlpru/semantics.py | Get_similarity | sergegoussev/nlpru | 1 | python | def Get_similarity(self, docs_list, use_normal_form=False, clean_documents=True, stop_words=None, similarity_to='first', use_ngrams=True):
"\n Get cosine similarity of documents. Uses sklearn's library and the \n tf-idf approach (TfidfVectorizer()) to calculate result\n\n (unique) params:\n - stop_words: list (or set) of stop words to use\n - similarity_to: 'first' or 'all' expected\n\n returns: \n depending on 'similarity_to' param, either similarity row \n vector of the first document to all others docs is returned, or\n (if 'All' is specified) matrix of of all docs against all others\n "
if (clean_documents == True):
docs_list = self.__clean_docs__(docs_list)
if (use_normal_form == True):
docs_list = self.__normalize_docs__(docs_list)
if (use_ngrams == True):
tfidf_vectorizer = TfidfVectorizer(stop_words=stop_words, ngram_range=(2, 3))
else:
tfidf_vectorizer = TfidfVectorizer(stop_words=stop_words)
tfidf_matrix = tfidf_vectorizer.fit_transform(docs_list)
cosine_similarity_matrix = cosine_similarity(tfidf_matrix[0:1], tfidf_matrix)
return cosine_similarity_matrix | def Get_similarity(self, docs_list, use_normal_form=False, clean_documents=True, stop_words=None, similarity_to='first', use_ngrams=True):
"\n Get cosine similarity of documents. Uses sklearn's library and the \n tf-idf approach (TfidfVectorizer()) to calculate result\n\n (unique) params:\n - stop_words: list (or set) of stop words to use\n - similarity_to: 'first' or 'all' expected\n\n returns: \n depending on 'similarity_to' param, either similarity row \n vector of the first document to all others docs is returned, or\n (if 'All' is specified) matrix of of all docs against all others\n "
if (clean_documents == True):
docs_list = self.__clean_docs__(docs_list)
if (use_normal_form == True):
docs_list = self.__normalize_docs__(docs_list)
if (use_ngrams == True):
tfidf_vectorizer = TfidfVectorizer(stop_words=stop_words, ngram_range=(2, 3))
else:
tfidf_vectorizer = TfidfVectorizer(stop_words=stop_words)
tfidf_matrix = tfidf_vectorizer.fit_transform(docs_list)
cosine_similarity_matrix = cosine_similarity(tfidf_matrix[0:1], tfidf_matrix)
return cosine_similarity_matrix<|docstring|>Get cosine similarity of documents. Uses sklearn's library and the
tf-idf approach (TfidfVectorizer()) to calculate result
(unique) params:
- stop_words: list (or set) of stop words to use
- similarity_to: 'first' or 'all' expected
returns:
depending on 'similarity_to' param, either similarity row
vector of the first document to all others docs is returned, or
(if 'All' is specified) matrix of of all docs against all others<|endoftext|> |
0a32ab337dd3cfcbe920cdae6b6118b46634139c81a5e0205596ff496d48f6a7 | @op_info_register(sparse_apply_proximal_adagrad_d_ds_op_info)
def _sparse_apply_proximal_adagrad_ds():
'SparseApplyProximalAdagradD TBE register'
return | SparseApplyProximalAdagradD TBE register | mindspore/ops/_op_impl/tbe/sparse_apply_proximal_adagrad_ds.py | _sparse_apply_proximal_adagrad_ds | limberc/mindspore | 3,200 | python | @op_info_register(sparse_apply_proximal_adagrad_d_ds_op_info)
def _sparse_apply_proximal_adagrad_ds():
return | @op_info_register(sparse_apply_proximal_adagrad_d_ds_op_info)
def _sparse_apply_proximal_adagrad_ds():
return<|docstring|>SparseApplyProximalAdagradD TBE register<|endoftext|> |
db30e96ab13c3d276a74bbbd38be99617b5c0812e25081004237bf148746285b | def import_asc_coords(file_obj):
"Import allplan asc-format point file.\n\n returns: a dictionary of Coordinates ('name': Coordinate)\n "
points = dict()
lines = file_obj.readlines()
for line in lines:
(name, x, y, z, code) = line.split()
x = float(x)
y = float(y)
z = float(z)
try:
points[name] = (x, y, z)
except ValueError:
pass
return points | Import allplan asc-format point file.
returns: a dictionary of Coordinates ('name': Coordinate) | tests/test_06_math/test_606_convexhull.py | import_asc_coords | hirnimeshrampuresoftware/ezdxf | 515 | python | def import_asc_coords(file_obj):
"Import allplan asc-format point file.\n\n returns: a dictionary of Coordinates ('name': Coordinate)\n "
points = dict()
lines = file_obj.readlines()
for line in lines:
(name, x, y, z, code) = line.split()
x = float(x)
y = float(y)
z = float(z)
try:
points[name] = (x, y, z)
except ValueError:
pass
return points | def import_asc_coords(file_obj):
"Import allplan asc-format point file.\n\n returns: a dictionary of Coordinates ('name': Coordinate)\n "
points = dict()
lines = file_obj.readlines()
for line in lines:
(name, x, y, z, code) = line.split()
x = float(x)
y = float(y)
z = float(z)
try:
points[name] = (x, y, z)
except ValueError:
pass
return points<|docstring|>Import allplan asc-format point file.
returns: a dictionary of Coordinates ('name': Coordinate)<|endoftext|> |
ab23344428a70550594ec54f78f3f31b5286a5c93d6666958719fb5c901e494e | def test_format_email_body__new(self):
'We generate an email body for new features.'
body_html = notifier.format_email_body(False, self.feature_1, [])
self.assertIn('Blink', body_html)
self.assertIn('example@example.com added', body_html)
self.assertIn(('chromestatus.com/feature/%d' % self.feature_1.key.integer_id()), body_html)
self.assertNotIn('watcher_1,', body_html) | We generate an email body for new features. | internals/notifier_test.py | test_format_email_body__new | Biki-das/chromium-dashboard | 1 | python | def test_format_email_body__new(self):
body_html = notifier.format_email_body(False, self.feature_1, [])
self.assertIn('Blink', body_html)
self.assertIn('example@example.com added', body_html)
self.assertIn(('chromestatus.com/feature/%d' % self.feature_1.key.integer_id()), body_html)
self.assertNotIn('watcher_1,', body_html) | def test_format_email_body__new(self):
body_html = notifier.format_email_body(False, self.feature_1, [])
self.assertIn('Blink', body_html)
self.assertIn('example@example.com added', body_html)
self.assertIn(('chromestatus.com/feature/%d' % self.feature_1.key.integer_id()), body_html)
self.assertNotIn('watcher_1,', body_html)<|docstring|>We generate an email body for new features.<|endoftext|> |
045258955f0b9afaf036390f92012c364bee3e9f5cb49a32d4ae59654855042f | def test_format_email_body__update_no_changes(self):
"We don't crash if the change list is emtpy."
body_html = notifier.format_email_body(True, self.feature_1, [])
self.assertIn('Blink', body_html)
self.assertIn('example@example.com updated', body_html)
self.assertNotIn('watcher_1,', body_html) | We don't crash if the change list is emtpy. | internals/notifier_test.py | test_format_email_body__update_no_changes | Biki-das/chromium-dashboard | 1 | python | def test_format_email_body__update_no_changes(self):
body_html = notifier.format_email_body(True, self.feature_1, [])
self.assertIn('Blink', body_html)
self.assertIn('example@example.com updated', body_html)
self.assertNotIn('watcher_1,', body_html) | def test_format_email_body__update_no_changes(self):
body_html = notifier.format_email_body(True, self.feature_1, [])
self.assertIn('Blink', body_html)
self.assertIn('example@example.com updated', body_html)
self.assertNotIn('watcher_1,', body_html)<|docstring|>We don't crash if the change list is emtpy.<|endoftext|> |
cb1e5126a5948330d02a75d11a5f382600018df9fa9306d53bebbaf03d4bcb76 | def test_format_email_body__update_with_changes(self):
'We generate an email body for an updated feature.'
body_html = notifier.format_email_body(True, self.feature_1, self.changes)
self.assertIn('test_prop', body_html)
self.assertIn(('chromestatus.com/feature/%d' % self.feature_1.key.integer_id()), body_html)
self.assertIn('test old value', body_html)
self.assertIn('test new value', body_html) | We generate an email body for an updated feature. | internals/notifier_test.py | test_format_email_body__update_with_changes | Biki-das/chromium-dashboard | 1 | python | def test_format_email_body__update_with_changes(self):
body_html = notifier.format_email_body(True, self.feature_1, self.changes)
self.assertIn('test_prop', body_html)
self.assertIn(('chromestatus.com/feature/%d' % self.feature_1.key.integer_id()), body_html)
self.assertIn('test old value', body_html)
self.assertIn('test new value', body_html) | def test_format_email_body__update_with_changes(self):
body_html = notifier.format_email_body(True, self.feature_1, self.changes)
self.assertIn('test_prop', body_html)
self.assertIn(('chromestatus.com/feature/%d' % self.feature_1.key.integer_id()), body_html)
self.assertIn('test old value', body_html)
self.assertIn('test new value', body_html)<|docstring|>We generate an email body for an updated feature.<|endoftext|> |
aa577b02f0862932c1b99ad62e71443ef2efe79b9154bd1d16edffec7cc0990d | def test_format_email_body__mozdev_links(self):
'We generate an email body with links to developer.mozilla.org.'
self.feature_1.doc_links = ['https://developer.mozilla.org/look-here']
body_html = notifier.format_email_body(True, self.feature_1, self.changes)
self.assertIn('look-here', body_html)
self.feature_1.doc_links = ['https://hacker-site.org/developer.mozilla.org/look-here']
body_html = notifier.format_email_body(True, self.feature_1, self.changes)
self.assertNotIn('look-here', body_html) | We generate an email body with links to developer.mozilla.org. | internals/notifier_test.py | test_format_email_body__mozdev_links | Biki-das/chromium-dashboard | 1 | python | def test_format_email_body__mozdev_links(self):
self.feature_1.doc_links = ['https://developer.mozilla.org/look-here']
body_html = notifier.format_email_body(True, self.feature_1, self.changes)
self.assertIn('look-here', body_html)
self.feature_1.doc_links = ['https://hacker-site.org/developer.mozilla.org/look-here']
body_html = notifier.format_email_body(True, self.feature_1, self.changes)
self.assertNotIn('look-here', body_html) | def test_format_email_body__mozdev_links(self):
self.feature_1.doc_links = ['https://developer.mozilla.org/look-here']
body_html = notifier.format_email_body(True, self.feature_1, self.changes)
self.assertIn('look-here', body_html)
self.feature_1.doc_links = ['https://hacker-site.org/developer.mozilla.org/look-here']
body_html = notifier.format_email_body(True, self.feature_1, self.changes)
self.assertNotIn('look-here', body_html)<|docstring|>We generate an email body with links to developer.mozilla.org.<|endoftext|> |
1cb9565266b431e06132530a8c25ddf91de0f90d2cf9573d4538637807bf67d1 | def test_accumulate_reasons(self):
'We can accumulate lists of reasons why we sent a message to a user.'
addr_reasons = collections.defaultdict(list)
notifier.accumulate_reasons(addr_reasons, [], 'a reason')
self.assertEqual({}, addr_reasons)
notifier.accumulate_reasons(addr_reasons, [self.owner_1], 'a reason')
self.assertEqual({'example@example.com': ['a reason']}, addr_reasons)
notifier.accumulate_reasons(addr_reasons, [self.owner_1, self.watcher_1], 'another reason')
self.assertEqual({'example@example.com': ['a reason', 'another reason'], 'example@example.com': ['another reason']}, addr_reasons)
notifier.accumulate_reasons(addr_reasons, ['example@example.com'], 'third reason')
self.assertEqual({'example@example.com': ['a reason', 'another reason'], 'example@example.com': ['another reason'], 'example@example.com': ['third reason']}, addr_reasons) | We can accumulate lists of reasons why we sent a message to a user. | internals/notifier_test.py | test_accumulate_reasons | Biki-das/chromium-dashboard | 1 | python | def test_accumulate_reasons(self):
addr_reasons = collections.defaultdict(list)
notifier.accumulate_reasons(addr_reasons, [], 'a reason')
self.assertEqual({}, addr_reasons)
notifier.accumulate_reasons(addr_reasons, [self.owner_1], 'a reason')
self.assertEqual({'example@example.com': ['a reason']}, addr_reasons)
notifier.accumulate_reasons(addr_reasons, [self.owner_1, self.watcher_1], 'another reason')
self.assertEqual({'example@example.com': ['a reason', 'another reason'], 'example@example.com': ['another reason']}, addr_reasons)
notifier.accumulate_reasons(addr_reasons, ['example@example.com'], 'third reason')
self.assertEqual({'example@example.com': ['a reason', 'another reason'], 'example@example.com': ['another reason'], 'example@example.com': ['third reason']}, addr_reasons) | def test_accumulate_reasons(self):
addr_reasons = collections.defaultdict(list)
notifier.accumulate_reasons(addr_reasons, [], 'a reason')
self.assertEqual({}, addr_reasons)
notifier.accumulate_reasons(addr_reasons, [self.owner_1], 'a reason')
self.assertEqual({'example@example.com': ['a reason']}, addr_reasons)
notifier.accumulate_reasons(addr_reasons, [self.owner_1, self.watcher_1], 'another reason')
self.assertEqual({'example@example.com': ['a reason', 'another reason'], 'example@example.com': ['another reason']}, addr_reasons)
notifier.accumulate_reasons(addr_reasons, ['example@example.com'], 'third reason')
self.assertEqual({'example@example.com': ['a reason', 'another reason'], 'example@example.com': ['another reason'], 'example@example.com': ['third reason']}, addr_reasons)<|docstring|>We can accumulate lists of reasons why we sent a message to a user.<|endoftext|> |
22c59b19f012615c709f77f3fb0e80f70cc5942e36d7c558f0d08c8668a29959 | def test_apply_subscription_rules__relevant_match(self):
'When a feature and change match a rule, a reason is returned.'
self.feature_1.shipped_android_milestone = 88
changes = [{'prop_name': 'shipped_android_milestone'}]
actual = notifier.apply_subscription_rules(self.feature_1, changes)
self.assertEqual({notifier.WEBVIEW_RULE_REASON: notifier.WEBVIEW_RULE_ADDRS}, actual) | When a feature and change match a rule, a reason is returned. | internals/notifier_test.py | test_apply_subscription_rules__relevant_match | Biki-das/chromium-dashboard | 1 | python | def test_apply_subscription_rules__relevant_match(self):
self.feature_1.shipped_android_milestone = 88
changes = [{'prop_name': 'shipped_android_milestone'}]
actual = notifier.apply_subscription_rules(self.feature_1, changes)
self.assertEqual({notifier.WEBVIEW_RULE_REASON: notifier.WEBVIEW_RULE_ADDRS}, actual) | def test_apply_subscription_rules__relevant_match(self):
self.feature_1.shipped_android_milestone = 88
changes = [{'prop_name': 'shipped_android_milestone'}]
actual = notifier.apply_subscription_rules(self.feature_1, changes)
self.assertEqual({notifier.WEBVIEW_RULE_REASON: notifier.WEBVIEW_RULE_ADDRS}, actual)<|docstring|>When a feature and change match a rule, a reason is returned.<|endoftext|> |
036d9e17837e77873e4226623415e0691b1999322412c64b39a5ec83764abb98 | def test_apply_subscription_rules__irrelevant_match(self):
'When a feature matches, but the change is not relevant => skip.'
self.feature_1.shipped_android_milestone = 88
changes = [{'prop_name': 'some_other_field'}]
actual = notifier.apply_subscription_rules(self.feature_1, changes)
self.assertEqual({}, actual) | When a feature matches, but the change is not relevant => skip. | internals/notifier_test.py | test_apply_subscription_rules__irrelevant_match | Biki-das/chromium-dashboard | 1 | python | def test_apply_subscription_rules__irrelevant_match(self):
self.feature_1.shipped_android_milestone = 88
changes = [{'prop_name': 'some_other_field'}]
actual = notifier.apply_subscription_rules(self.feature_1, changes)
self.assertEqual({}, actual) | def test_apply_subscription_rules__irrelevant_match(self):
self.feature_1.shipped_android_milestone = 88
changes = [{'prop_name': 'some_other_field'}]
actual = notifier.apply_subscription_rules(self.feature_1, changes)
self.assertEqual({}, actual)<|docstring|>When a feature matches, but the change is not relevant => skip.<|endoftext|> |
5273db5f2323d2e6c3e898ee17e4a2c1c27ec1408eec84312be1c708c97cef3f | def test_apply_subscription_rules__non_match(self):
'When a feature is not a match => skip.'
changes = [{'prop_name': 'shipped_android_milestone'}]
actual = notifier.apply_subscription_rules(self.feature_1, changes)
self.assertEqual({}, actual)
self.feature_1.shipped_android_milestone = 88
self.feature_1.shipped_webview_milestone = 89
actual = notifier.apply_subscription_rules(self.feature_1, changes)
self.assertEqual({}, actual) | When a feature is not a match => skip. | internals/notifier_test.py | test_apply_subscription_rules__non_match | Biki-das/chromium-dashboard | 1 | python | def test_apply_subscription_rules__non_match(self):
changes = [{'prop_name': 'shipped_android_milestone'}]
actual = notifier.apply_subscription_rules(self.feature_1, changes)
self.assertEqual({}, actual)
self.feature_1.shipped_android_milestone = 88
self.feature_1.shipped_webview_milestone = 89
actual = notifier.apply_subscription_rules(self.feature_1, changes)
self.assertEqual({}, actual) | def test_apply_subscription_rules__non_match(self):
changes = [{'prop_name': 'shipped_android_milestone'}]
actual = notifier.apply_subscription_rules(self.feature_1, changes)
self.assertEqual({}, actual)
self.feature_1.shipped_android_milestone = 88
self.feature_1.shipped_webview_milestone = 89
actual = notifier.apply_subscription_rules(self.feature_1, changes)
self.assertEqual({}, actual)<|docstring|>When a feature is not a match => skip.<|endoftext|> |
2d31c6d28463c845a4fb5150e5b667992d038c5522e779e1edd6f1215486a7fe | @mock.patch('internals.notifier.format_email_body')
def test_make_email_tasks__new(self, mock_f_e_b):
'We send email to component owners and subscribers for new features.'
mock_f_e_b.return_value = 'mock body html'
actual_tasks = notifier.make_email_tasks(self.feature_1, is_update=False, changes=[])
self.assertEqual(2, len(actual_tasks))
(owner_task, watcher_task) = actual_tasks
self.assertEqual('new feature: feature one', owner_task['subject'])
self.assertIn('mock body html', owner_task['html'])
self.assertEqual('example@example.com', owner_task['to'])
self.assertEqual('new feature: feature one', watcher_task['subject'])
self.assertIn('mock body html', watcher_task['html'])
self.assertEqual('example@example.com', watcher_task['to'])
mock_f_e_b.assert_called_once_with(False, self.feature_1, []) | We send email to component owners and subscribers for new features. | internals/notifier_test.py | test_make_email_tasks__new | Biki-das/chromium-dashboard | 1 | python | @mock.patch('internals.notifier.format_email_body')
def test_make_email_tasks__new(self, mock_f_e_b):
mock_f_e_b.return_value = 'mock body html'
actual_tasks = notifier.make_email_tasks(self.feature_1, is_update=False, changes=[])
self.assertEqual(2, len(actual_tasks))
(owner_task, watcher_task) = actual_tasks
self.assertEqual('new feature: feature one', owner_task['subject'])
self.assertIn('mock body html', owner_task['html'])
self.assertEqual('example@example.com', owner_task['to'])
self.assertEqual('new feature: feature one', watcher_task['subject'])
self.assertIn('mock body html', watcher_task['html'])
self.assertEqual('example@example.com', watcher_task['to'])
mock_f_e_b.assert_called_once_with(False, self.feature_1, []) | @mock.patch('internals.notifier.format_email_body')
def test_make_email_tasks__new(self, mock_f_e_b):
mock_f_e_b.return_value = 'mock body html'
actual_tasks = notifier.make_email_tasks(self.feature_1, is_update=False, changes=[])
self.assertEqual(2, len(actual_tasks))
(owner_task, watcher_task) = actual_tasks
self.assertEqual('new feature: feature one', owner_task['subject'])
self.assertIn('mock body html', owner_task['html'])
self.assertEqual('example@example.com', owner_task['to'])
self.assertEqual('new feature: feature one', watcher_task['subject'])
self.assertIn('mock body html', watcher_task['html'])
self.assertEqual('example@example.com', watcher_task['to'])
mock_f_e_b.assert_called_once_with(False, self.feature_1, [])<|docstring|>We send email to component owners and subscribers for new features.<|endoftext|> |
3ce60ef9f664e3ac451c299fad7eee3fa3c0c244a85ba67e7e3da0aadc7a3976 | @mock.patch('internals.notifier.format_email_body')
def test_make_email_tasks__update(self, mock_f_e_b):
'We send email to component owners and subscribers for edits.'
mock_f_e_b.return_value = 'mock body html'
actual_tasks = notifier.make_email_tasks(self.feature_1, True, self.changes)
self.assertEqual(2, len(actual_tasks))
(owner_task, watcher_task) = actual_tasks
self.assertEqual('updated feature: feature one', owner_task['subject'])
self.assertIn('mock body html', owner_task['html'])
self.assertEqual('example@example.com', owner_task['to'])
self.assertEqual('updated feature: feature one', watcher_task['subject'])
self.assertIn('mock body html', watcher_task['html'])
self.assertEqual('example@example.com', watcher_task['to'])
mock_f_e_b.assert_called_once_with(True, self.feature_1, self.changes) | We send email to component owners and subscribers for edits. | internals/notifier_test.py | test_make_email_tasks__update | Biki-das/chromium-dashboard | 1 | python | @mock.patch('internals.notifier.format_email_body')
def test_make_email_tasks__update(self, mock_f_e_b):
mock_f_e_b.return_value = 'mock body html'
actual_tasks = notifier.make_email_tasks(self.feature_1, True, self.changes)
self.assertEqual(2, len(actual_tasks))
(owner_task, watcher_task) = actual_tasks
self.assertEqual('updated feature: feature one', owner_task['subject'])
self.assertIn('mock body html', owner_task['html'])
self.assertEqual('example@example.com', owner_task['to'])
self.assertEqual('updated feature: feature one', watcher_task['subject'])
self.assertIn('mock body html', watcher_task['html'])
self.assertEqual('example@example.com', watcher_task['to'])
mock_f_e_b.assert_called_once_with(True, self.feature_1, self.changes) | @mock.patch('internals.notifier.format_email_body')
def test_make_email_tasks__update(self, mock_f_e_b):
mock_f_e_b.return_value = 'mock body html'
actual_tasks = notifier.make_email_tasks(self.feature_1, True, self.changes)
self.assertEqual(2, len(actual_tasks))
(owner_task, watcher_task) = actual_tasks
self.assertEqual('updated feature: feature one', owner_task['subject'])
self.assertIn('mock body html', owner_task['html'])
self.assertEqual('example@example.com', owner_task['to'])
self.assertEqual('updated feature: feature one', watcher_task['subject'])
self.assertIn('mock body html', watcher_task['html'])
self.assertEqual('example@example.com', watcher_task['to'])
mock_f_e_b.assert_called_once_with(True, self.feature_1, self.changes)<|docstring|>We send email to component owners and subscribers for edits.<|endoftext|> |
d7f230eaec65873d7e5ac9ba726f53eab2baa6ebd94cf080dfae69776f5db013 | @mock.patch('internals.notifier.format_email_body')
def test_make_email_tasks__starrer(self, mock_f_e_b):
'We send email to users who starred the feature.'
mock_f_e_b.return_value = 'mock body html'
notifier.FeatureStar.set_star('example@example.com', self.feature_1.key.integer_id())
actual_tasks = notifier.make_email_tasks(self.feature_1, True, self.changes)
self.assertEqual(3, len(actual_tasks))
(owner_task, starrer_task, watcher_task) = actual_tasks
self.assertEqual('updated feature: feature one', owner_task['subject'])
self.assertIn('mock body html', owner_task['html'])
self.assertEqual('example@example.com', owner_task['to'])
self.assertEqual('example@example.com', starrer_task['to'])
self.assertEqual('updated feature: feature one', watcher_task['subject'])
self.assertIn('mock body html', watcher_task['html'])
self.assertEqual('example@example.com', watcher_task['to'])
mock_f_e_b.assert_called_once_with(True, self.feature_1, self.changes) | We send email to users who starred the feature. | internals/notifier_test.py | test_make_email_tasks__starrer | Biki-das/chromium-dashboard | 1 | python | @mock.patch('internals.notifier.format_email_body')
def test_make_email_tasks__starrer(self, mock_f_e_b):
mock_f_e_b.return_value = 'mock body html'
notifier.FeatureStar.set_star('example@example.com', self.feature_1.key.integer_id())
actual_tasks = notifier.make_email_tasks(self.feature_1, True, self.changes)
self.assertEqual(3, len(actual_tasks))
(owner_task, starrer_task, watcher_task) = actual_tasks
self.assertEqual('updated feature: feature one', owner_task['subject'])
self.assertIn('mock body html', owner_task['html'])
self.assertEqual('example@example.com', owner_task['to'])
self.assertEqual('example@example.com', starrer_task['to'])
self.assertEqual('updated feature: feature one', watcher_task['subject'])
self.assertIn('mock body html', watcher_task['html'])
self.assertEqual('example@example.com', watcher_task['to'])
mock_f_e_b.assert_called_once_with(True, self.feature_1, self.changes) | @mock.patch('internals.notifier.format_email_body')
def test_make_email_tasks__starrer(self, mock_f_e_b):
mock_f_e_b.return_value = 'mock body html'
notifier.FeatureStar.set_star('example@example.com', self.feature_1.key.integer_id())
actual_tasks = notifier.make_email_tasks(self.feature_1, True, self.changes)
self.assertEqual(3, len(actual_tasks))
(owner_task, starrer_task, watcher_task) = actual_tasks
self.assertEqual('updated feature: feature one', owner_task['subject'])
self.assertIn('mock body html', owner_task['html'])
self.assertEqual('example@example.com', owner_task['to'])
self.assertEqual('example@example.com', starrer_task['to'])
self.assertEqual('updated feature: feature one', watcher_task['subject'])
self.assertIn('mock body html', watcher_task['html'])
self.assertEqual('example@example.com', watcher_task['to'])
mock_f_e_b.assert_called_once_with(True, self.feature_1, self.changes)<|docstring|>We send email to users who starred the feature.<|endoftext|> |
55ff11076d1b68d21bf2fadd65ac59a00051e0015e1ed124124ddc37affe4db3 | @mock.patch('internals.notifier.format_email_body')
def test_make_email_tasks__starrer_unsubscribed(self, mock_f_e_b):
"We don't email users who starred the feature but opted out."
mock_f_e_b.return_value = 'mock body html'
starrer_2_pref = models.UserPref(email='example@example.com', notify_as_starrer=False)
starrer_2_pref.put()
notifier.FeatureStar.set_star('example@example.com', self.feature_2.key.integer_id())
actual_tasks = notifier.make_email_tasks(self.feature_2, True, self.changes)
self.assertEqual(2, len(actual_tasks))
(owner_task, watcher_task) = actual_tasks
self.assertEqual('example@example.com', owner_task['to'])
self.assertEqual('example@example.com', watcher_task['to'])
mock_f_e_b.assert_called_once_with(True, self.feature_2, self.changes) | We don't email users who starred the feature but opted out. | internals/notifier_test.py | test_make_email_tasks__starrer_unsubscribed | Biki-das/chromium-dashboard | 1 | python | @mock.patch('internals.notifier.format_email_body')
def test_make_email_tasks__starrer_unsubscribed(self, mock_f_e_b):
mock_f_e_b.return_value = 'mock body html'
starrer_2_pref = models.UserPref(email='example@example.com', notify_as_starrer=False)
starrer_2_pref.put()
notifier.FeatureStar.set_star('example@example.com', self.feature_2.key.integer_id())
actual_tasks = notifier.make_email_tasks(self.feature_2, True, self.changes)
self.assertEqual(2, len(actual_tasks))
(owner_task, watcher_task) = actual_tasks
self.assertEqual('example@example.com', owner_task['to'])
self.assertEqual('example@example.com', watcher_task['to'])
mock_f_e_b.assert_called_once_with(True, self.feature_2, self.changes) | @mock.patch('internals.notifier.format_email_body')
def test_make_email_tasks__starrer_unsubscribed(self, mock_f_e_b):
mock_f_e_b.return_value = 'mock body html'
starrer_2_pref = models.UserPref(email='example@example.com', notify_as_starrer=False)
starrer_2_pref.put()
notifier.FeatureStar.set_star('example@example.com', self.feature_2.key.integer_id())
actual_tasks = notifier.make_email_tasks(self.feature_2, True, self.changes)
self.assertEqual(2, len(actual_tasks))
(owner_task, watcher_task) = actual_tasks
self.assertEqual('example@example.com', owner_task['to'])
self.assertEqual('example@example.com', watcher_task['to'])
mock_f_e_b.assert_called_once_with(True, self.feature_2, self.changes)<|docstring|>We don't email users who starred the feature but opted out.<|endoftext|> |
ddb2c3fc44de2a4727eeb9ba6a1a6d1e42b6c6773c9308906ef9ca29fbc91f65 | def test_get_star__no_existing(self):
'User has never starred the given feature.'
email = 'example@example.com'
feature_id = self.feature_1.key.integer_id()
actual = notifier.FeatureStar.get_star(email, feature_id)
self.assertEqual(None, actual) | User has never starred the given feature. | internals/notifier_test.py | test_get_star__no_existing | Biki-das/chromium-dashboard | 1 | python | def test_get_star__no_existing(self):
email = 'example@example.com'
feature_id = self.feature_1.key.integer_id()
actual = notifier.FeatureStar.get_star(email, feature_id)
self.assertEqual(None, actual) | def test_get_star__no_existing(self):
email = 'example@example.com'
feature_id = self.feature_1.key.integer_id()
actual = notifier.FeatureStar.get_star(email, feature_id)
self.assertEqual(None, actual)<|docstring|>User has never starred the given feature.<|endoftext|> |
b0ab412e7f6983ba5cde96181f4eef34dfcdf7d34c5e3f555973deba107ee4d6 | def test_get_and_set_star(self):
'User can star and unstar a feature.'
email = 'example@example.com'
feature_id = self.feature_1.key.integer_id()
notifier.FeatureStar.set_star(email, feature_id)
actual = notifier.FeatureStar.get_star(email, feature_id)
self.assertEqual(email, actual.email)
self.assertEqual(feature_id, actual.feature_id)
self.assertTrue(actual.starred)
updated_feature = models.Feature.get_by_id(feature_id)
self.assertEqual(1, updated_feature.star_count)
notifier.FeatureStar.set_star(email, feature_id, starred=False)
actual = notifier.FeatureStar.get_star(email, feature_id)
self.assertEqual(email, actual.email)
self.assertEqual(feature_id, actual.feature_id)
self.assertFalse(actual.starred)
updated_feature = models.Feature.get_by_id(feature_id)
self.assertEqual(0, updated_feature.star_count) | User can star and unstar a feature. | internals/notifier_test.py | test_get_and_set_star | Biki-das/chromium-dashboard | 1 | python | def test_get_and_set_star(self):
email = 'example@example.com'
feature_id = self.feature_1.key.integer_id()
notifier.FeatureStar.set_star(email, feature_id)
actual = notifier.FeatureStar.get_star(email, feature_id)
self.assertEqual(email, actual.email)
self.assertEqual(feature_id, actual.feature_id)
self.assertTrue(actual.starred)
updated_feature = models.Feature.get_by_id(feature_id)
self.assertEqual(1, updated_feature.star_count)
notifier.FeatureStar.set_star(email, feature_id, starred=False)
actual = notifier.FeatureStar.get_star(email, feature_id)
self.assertEqual(email, actual.email)
self.assertEqual(feature_id, actual.feature_id)
self.assertFalse(actual.starred)
updated_feature = models.Feature.get_by_id(feature_id)
self.assertEqual(0, updated_feature.star_count) | def test_get_and_set_star(self):
email = 'example@example.com'
feature_id = self.feature_1.key.integer_id()
notifier.FeatureStar.set_star(email, feature_id)
actual = notifier.FeatureStar.get_star(email, feature_id)
self.assertEqual(email, actual.email)
self.assertEqual(feature_id, actual.feature_id)
self.assertTrue(actual.starred)
updated_feature = models.Feature.get_by_id(feature_id)
self.assertEqual(1, updated_feature.star_count)
notifier.FeatureStar.set_star(email, feature_id, starred=False)
actual = notifier.FeatureStar.get_star(email, feature_id)
self.assertEqual(email, actual.email)
self.assertEqual(feature_id, actual.feature_id)
self.assertFalse(actual.starred)
updated_feature = models.Feature.get_by_id(feature_id)
self.assertEqual(0, updated_feature.star_count)<|docstring|>User can star and unstar a feature.<|endoftext|> |
2e5a8110ce3dd2040f859896f5928a53b58174f6ed308a9a388a5c92932213f0 | def test_get_user_stars__no_stars(self):
'User has never starred any features.'
email = 'example@example.com'
actual = notifier.FeatureStar.get_user_stars(email)
self.assertEqual([], actual) | User has never starred any features. | internals/notifier_test.py | test_get_user_stars__no_stars | Biki-das/chromium-dashboard | 1 | python | def test_get_user_stars__no_stars(self):
email = 'example@example.com'
actual = notifier.FeatureStar.get_user_stars(email)
self.assertEqual([], actual) | def test_get_user_stars__no_stars(self):
email = 'example@example.com'
actual = notifier.FeatureStar.get_user_stars(email)
self.assertEqual([], actual)<|docstring|>User has never starred any features.<|endoftext|> |
b2f3292d73677623db4ae9b216851e4fb80b97918012cdea0eb1f78ed35e30e4 | def test_get_user_stars__some_stars(self):
'User has starred three features.'
email = 'example@example.com'
feature_1_id = self.feature_1.key.integer_id()
feature_2_id = self.feature_2.key.integer_id()
feature_3_id = self.feature_3.key.integer_id()
notifier.FeatureStar.set_star(email, feature_1_id)
notifier.FeatureStar.set_star(email, feature_3_id)
notifier.FeatureStar.set_star(email, feature_2_id)
actual = notifier.FeatureStar.get_user_stars(email)
self.assertEqual(sorted([feature_1_id, feature_2_id, feature_3_id], reverse=True), actual) | User has starred three features. | internals/notifier_test.py | test_get_user_stars__some_stars | Biki-das/chromium-dashboard | 1 | python | def test_get_user_stars__some_stars(self):
email = 'example@example.com'
feature_1_id = self.feature_1.key.integer_id()
feature_2_id = self.feature_2.key.integer_id()
feature_3_id = self.feature_3.key.integer_id()
notifier.FeatureStar.set_star(email, feature_1_id)
notifier.FeatureStar.set_star(email, feature_3_id)
notifier.FeatureStar.set_star(email, feature_2_id)
actual = notifier.FeatureStar.get_user_stars(email)
self.assertEqual(sorted([feature_1_id, feature_2_id, feature_3_id], reverse=True), actual) | def test_get_user_stars__some_stars(self):
email = 'example@example.com'
feature_1_id = self.feature_1.key.integer_id()
feature_2_id = self.feature_2.key.integer_id()
feature_3_id = self.feature_3.key.integer_id()
notifier.FeatureStar.set_star(email, feature_1_id)
notifier.FeatureStar.set_star(email, feature_3_id)
notifier.FeatureStar.set_star(email, feature_2_id)
actual = notifier.FeatureStar.get_user_stars(email)
self.assertEqual(sorted([feature_1_id, feature_2_id, feature_3_id], reverse=True), actual)<|docstring|>User has starred three features.<|endoftext|> |
aa4e8f64258e4adf760ddc3d7f1752c2d6d1a1f2e3d5a2520bae40204f385df1 | def test_get_feature_starrers__no_stars(self):
'No user has starred the given feature.'
feature_1_id = self.feature_1.key.integer_id()
actual = notifier.FeatureStar.get_feature_starrers(feature_1_id)
self.assertEqual([], actual) | No user has starred the given feature. | internals/notifier_test.py | test_get_feature_starrers__no_stars | Biki-das/chromium-dashboard | 1 | python | def test_get_feature_starrers__no_stars(self):
feature_1_id = self.feature_1.key.integer_id()
actual = notifier.FeatureStar.get_feature_starrers(feature_1_id)
self.assertEqual([], actual) | def test_get_feature_starrers__no_stars(self):
feature_1_id = self.feature_1.key.integer_id()
actual = notifier.FeatureStar.get_feature_starrers(feature_1_id)
self.assertEqual([], actual)<|docstring|>No user has starred the given feature.<|endoftext|> |
2721e82b8a9bbe6b5789c52757591a810c7a7546563ffb08d7591478b08615b2 | def test_get_feature_starrers__some_starrers(self):
'Two users have starred the given feature.'
app_user_1 = models.AppUser(email='example@example.com')
app_user_1.put()
app_user_2 = models.AppUser(email='example@example.com')
app_user_2.put()
feature_1_id = self.feature_1.key.integer_id()
notifier.FeatureStar.set_star(app_user_1.email, feature_1_id)
notifier.FeatureStar.set_star(app_user_2.email, feature_1_id)
actual = notifier.FeatureStar.get_feature_starrers(feature_1_id)
self.assertCountEqual([app_user_1.email, app_user_2.email], [au.email for au in actual]) | Two users have starred the given feature. | internals/notifier_test.py | test_get_feature_starrers__some_starrers | Biki-das/chromium-dashboard | 1 | python | def test_get_feature_starrers__some_starrers(self):
app_user_1 = models.AppUser(email='example@example.com')
app_user_1.put()
app_user_2 = models.AppUser(email='example@example.com')
app_user_2.put()
feature_1_id = self.feature_1.key.integer_id()
notifier.FeatureStar.set_star(app_user_1.email, feature_1_id)
notifier.FeatureStar.set_star(app_user_2.email, feature_1_id)
actual = notifier.FeatureStar.get_feature_starrers(feature_1_id)
self.assertCountEqual([app_user_1.email, app_user_2.email], [au.email for au in actual]) | def test_get_feature_starrers__some_starrers(self):
app_user_1 = models.AppUser(email='example@example.com')
app_user_1.put()
app_user_2 = models.AppUser(email='example@example.com')
app_user_2.put()
feature_1_id = self.feature_1.key.integer_id()
notifier.FeatureStar.set_star(app_user_1.email, feature_1_id)
notifier.FeatureStar.set_star(app_user_2.email, feature_1_id)
actual = notifier.FeatureStar.get_feature_starrers(feature_1_id)
self.assertCountEqual([app_user_1.email, app_user_2.email], [au.email for au in actual])<|docstring|>Two users have starred the given feature.<|endoftext|> |
788d96bf09c0b539bcd66cd48c0d49bc21b1ea9ba0dcaaa0f39e3fdef73d58c5 | def test_get_thread_id__normal(self):
'We can select the correct approval thread field of a feature.'
self.assertEqual('example@example.com', notifier.get_thread_id(self.feature_1, approval_defs.PrototypeApproval))
self.assertEqual('example@example.com', notifier.get_thread_id(self.feature_1, approval_defs.ExperimentApproval))
self.assertEqual(None, notifier.get_thread_id(self.feature_1, approval_defs.ShipApproval)) | We can select the correct approval thread field of a feature. | internals/notifier_test.py | test_get_thread_id__normal | Biki-das/chromium-dashboard | 1 | python | def test_get_thread_id__normal(self):
self.assertEqual('example@example.com', notifier.get_thread_id(self.feature_1, approval_defs.PrototypeApproval))
self.assertEqual('example@example.com', notifier.get_thread_id(self.feature_1, approval_defs.ExperimentApproval))
self.assertEqual(None, notifier.get_thread_id(self.feature_1, approval_defs.ShipApproval)) | def test_get_thread_id__normal(self):
self.assertEqual('example@example.com', notifier.get_thread_id(self.feature_1, approval_defs.PrototypeApproval))
self.assertEqual('example@example.com', notifier.get_thread_id(self.feature_1, approval_defs.ExperimentApproval))
self.assertEqual(None, notifier.get_thread_id(self.feature_1, approval_defs.ShipApproval))<|docstring|>We can select the correct approval thread field of a feature.<|endoftext|> |
0d1821083f37e0aa6085c5622dc8175e82af3c999852f619a8ee1b5f6a727a32 | def test_get_thread_id__trailing_junk(self):
'We can select the correct approval thread field of a feature.'
self.feature_1.intent_to_implement_url += '?param=val#anchor'
self.assertEqual('example@example.com', notifier.get_thread_id(self.feature_1, approval_defs.PrototypeApproval)) | We can select the correct approval thread field of a feature. | internals/notifier_test.py | test_get_thread_id__trailing_junk | Biki-das/chromium-dashboard | 1 | python | def test_get_thread_id__trailing_junk(self):
self.feature_1.intent_to_implement_url += '?param=val#anchor'
self.assertEqual('example@example.com', notifier.get_thread_id(self.feature_1, approval_defs.PrototypeApproval)) | def test_get_thread_id__trailing_junk(self):
self.feature_1.intent_to_implement_url += '?param=val#anchor'
self.assertEqual('example@example.com', notifier.get_thread_id(self.feature_1, approval_defs.PrototypeApproval))<|docstring|>We can select the correct approval thread field of a feature.<|endoftext|> |
a12c688546913e46557c3787b37b505ef946aeca03f232c6ab4f272e86393d30 | def close_summary_writer(writer, name=None):
'Flushes and closes the summary writer.\n\n Also removes it from the resource manager. To reopen, use another\n CreateSummaryFileWriter op.\n\n Args:\n writer: A `Tensor` of type `resource`.\n A handle to the summary writer resource.\n name: A name for the operation (optional).\n\n Returns:\n The created Operation.\n '
_ctx = _context.context()
if _ctx.in_graph_mode():
(_, _, _op) = _op_def_lib._apply_op_helper('CloseSummaryWriter', writer=writer, name=name)
return _op
else:
writer = _ops.convert_to_tensor(writer, _dtypes.resource)
_inputs_flat = [writer]
_attrs = None
_result = _execute.execute(b'CloseSummaryWriter', 0, inputs=_inputs_flat, attrs=_attrs, ctx=_ctx, name=name)
return _result | Flushes and closes the summary writer.
Also removes it from the resource manager. To reopen, use another
CreateSummaryFileWriter op.
Args:
writer: A `Tensor` of type `resource`.
A handle to the summary writer resource.
name: A name for the operation (optional).
Returns:
The created Operation. | lesson7.4/tensorflow/contrib/summary/gen_summary_ops.py | close_summary_writer | magnusmel/Serverless-Deep-Learning-with-TensorFlow-and-AWS-Lambda | 21 | python | def close_summary_writer(writer, name=None):
'Flushes and closes the summary writer.\n\n Also removes it from the resource manager. To reopen, use another\n CreateSummaryFileWriter op.\n\n Args:\n writer: A `Tensor` of type `resource`.\n A handle to the summary writer resource.\n name: A name for the operation (optional).\n\n Returns:\n The created Operation.\n '
_ctx = _context.context()
if _ctx.in_graph_mode():
(_, _, _op) = _op_def_lib._apply_op_helper('CloseSummaryWriter', writer=writer, name=name)
return _op
else:
writer = _ops.convert_to_tensor(writer, _dtypes.resource)
_inputs_flat = [writer]
_attrs = None
_result = _execute.execute(b'CloseSummaryWriter', 0, inputs=_inputs_flat, attrs=_attrs, ctx=_ctx, name=name)
return _result | def close_summary_writer(writer, name=None):
'Flushes and closes the summary writer.\n\n Also removes it from the resource manager. To reopen, use another\n CreateSummaryFileWriter op.\n\n Args:\n writer: A `Tensor` of type `resource`.\n A handle to the summary writer resource.\n name: A name for the operation (optional).\n\n Returns:\n The created Operation.\n '
_ctx = _context.context()
if _ctx.in_graph_mode():
(_, _, _op) = _op_def_lib._apply_op_helper('CloseSummaryWriter', writer=writer, name=name)
return _op
else:
writer = _ops.convert_to_tensor(writer, _dtypes.resource)
_inputs_flat = [writer]
_attrs = None
_result = _execute.execute(b'CloseSummaryWriter', 0, inputs=_inputs_flat, attrs=_attrs, ctx=_ctx, name=name)
return _result<|docstring|>Flushes and closes the summary writer.
Also removes it from the resource manager. To reopen, use another
CreateSummaryFileWriter op.
Args:
writer: A `Tensor` of type `resource`.
A handle to the summary writer resource.
name: A name for the operation (optional).
Returns:
The created Operation.<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.