text
stringlengths 0
828
|
|---|
else:
|
return dict(sentiment_frequencies)
|
except:
|
log.error(""error -- possibly no username specified"")
|
return None"
|
4553,"def users_sentiments_single_most_frequent(
|
self,
|
usernames = None,
|
):
|
""""""
|
This function returns the single most frequent calculated sentiment
|
expressed by all stored users or by a list of specified users as a
|
dictionary.
|
""""""
|
users_sentiments_single_most_frequent = dict()
|
if usernames is None:
|
usernames = self.usernames()
|
try:
|
for username in usernames:
|
sentiment = self.user_sentiments_most_frequent(
|
username = username,
|
single_most_frequent = True
|
)
|
users_sentiments_single_most_frequent[username] = sentiment
|
return users_sentiments_single_most_frequent
|
except:
|
log.error(""error -- possibly a problem with tweets stored"")
|
return None"
|
4554,"def create_stripe_gateway(cls, stripe_gateway, **kwargs):
|
""""""Create StripeGateway
|
Create a new StripeGateway
|
This method makes a synchronous HTTP request by default. To make an
|
asynchronous HTTP request, please pass async=True
|
>>> thread = api.create_stripe_gateway(stripe_gateway, async=True)
|
>>> result = thread.get()
|
:param async bool
|
:param StripeGateway stripe_gateway: Attributes of stripeGateway to create (required)
|
:return: StripeGateway
|
If the method is called asynchronously,
|
returns the request thread.
|
""""""
|
kwargs['_return_http_data_only'] = True
|
if kwargs.get('async'):
|
return cls._create_stripe_gateway_with_http_info(stripe_gateway, **kwargs)
|
else:
|
(data) = cls._create_stripe_gateway_with_http_info(stripe_gateway, **kwargs)
|
return data"
|
4555,"def delete_stripe_gateway_by_id(cls, stripe_gateway_id, **kwargs):
|
""""""Delete StripeGateway
|
Delete an instance of StripeGateway by its ID.
|
This method makes a synchronous HTTP request by default. To make an
|
asynchronous HTTP request, please pass async=True
|
>>> thread = api.delete_stripe_gateway_by_id(stripe_gateway_id, async=True)
|
>>> result = thread.get()
|
:param async bool
|
:param str stripe_gateway_id: ID of stripeGateway to delete. (required)
|
:return: None
|
If the method is called asynchronously,
|
returns the request thread.
|
""""""
|
kwargs['_return_http_data_only'] = True
|
if kwargs.get('async'):
|
return cls._delete_stripe_gateway_by_id_with_http_info(stripe_gateway_id, **kwargs)
|
else:
|
(data) = cls._delete_stripe_gateway_by_id_with_http_info(stripe_gateway_id, **kwargs)
|
return data"
|
4556,"def get_stripe_gateway_by_id(cls, stripe_gateway_id, **kwargs):
|
""""""Find StripeGateway
|
Return single instance of StripeGateway by its ID.
|
This method makes a synchronous HTTP request by default. To make an
|
asynchronous HTTP request, please pass async=True
|
>>> thread = api.get_stripe_gateway_by_id(stripe_gateway_id, async=True)
|
>>> result = thread.get()
|
:param async bool
|
:param str stripe_gateway_id: ID of stripeGateway to return (required)
|
:return: StripeGateway
|
If the method is called asynchronously,
|
returns the request thread.
|
""""""
|
kwargs['_return_http_data_only'] = True
|
if kwargs.get('async'):
|
return cls._get_stripe_gateway_by_id_with_http_info(stripe_gateway_id, **kwargs)
|
else:
|
(data) = cls._get_stripe_gateway_by_id_with_http_info(stripe_gateway_id, **kwargs)
|
return data"
|
4557,"def list_all_stripe_gateways(cls, **kwargs):
|
""""""List StripeGateways
|
Return a list of StripeGateways
|
This method makes a synchronous HTTP request by default. To make an
|
asynchronous HTTP request, please pass async=True
|
>>> thread = api.list_all_stripe_gateways(async=True)
|
>>> result = thread.get()
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.