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
f765b6fbf4af80a1996f15e575c700f92c4ca389bb39d165a9f1a3cf40a03dc5
def __init__(self): '\n\t\tCreates a new instance of the Automatic user interface.\n\t\t' super().__init__() self.state = automatic.state.State.stopped
Creates a new instance of the Automatic user interface.
plugins/userinterface/automatic/automatic.py
__init__
Ghostkeeper/Luna
0
python
def __init__(self): '\n\t\t\n\t\t' super().__init__() self.state = automatic.state.State.stopped
def __init__(self): '\n\t\t\n\t\t' super().__init__() self.state = automatic.state.State.stopped<|docstring|>Creates a new instance of the Automatic user interface.<|endoftext|>
8b23fb69582f05f7b5dbe8e821310ed45b59ea7ececee21d329a254aab42a107
def start(self): '\n\t\tStarts the Automatic interface.\n\n\t\tFor now this just prints a message that the Automatic interface is\n\t\tstarted.\n\t\t' luna.plugins.api('logger').info('Starting Automatic interface.') self.state = automatic.state.State.started self.state = automatic.state.State.stopped
Starts the Automatic interface. For now this just prints a message that the Automatic interface is started.
plugins/userinterface/automatic/automatic.py
start
Ghostkeeper/Luna
0
python
def start(self): '\n\t\tStarts the Automatic interface.\n\n\t\tFor now this just prints a message that the Automatic interface is\n\t\tstarted.\n\t\t' luna.plugins.api('logger').info('Starting Automatic interface.') self.state = automatic.state.State.started self.state = automatic.state.State.stopped
def start(self): '\n\t\tStarts the Automatic interface.\n\n\t\tFor now this just prints a message that the Automatic interface is\n\t\tstarted.\n\t\t' luna.plugins.api('logger').info('Starting Automatic interface.') self.state = automatic.state.State.started self.state = automatic.state.State.stopped<|docstring|>Starts the Automatic interface. For now this just prints a message that the Automatic interface is started.<|endoftext|>
bc1ee9651c97b8e2b77ad2a9be2ba8a73072bbca98f7e361d82de77e1d84ce7e
def play_round(cpu_agent, test_agents, win_counts, num_matches): 'Compare the test agents to the cpu agent in "fair" matches.\n\n "Fair" matches use random starting locations and force the agents to\n play as both first and second player to control for advantages resulting\n from choosing better opening moves or having first initiative to move.\n ' timeout_count = 0 forfeit_count = 0 for _ in range(num_matches): games = sum([[Board(cpu_agent.player, agent.player), Board(agent.player, cpu_agent.player)] for agent in test_agents], []) for _ in range(2): move = random.choice(games[0].get_legal_moves()) for game in games: game.apply_move(move) for game in games: (winner, _, termination) = game.play(time_limit=TIME_LIMIT) win_counts[winner] += 1 if (termination == 'timeout'): timeout_count += 1 elif (termination == 'forfeit'): forfeit_count += 1 return (timeout_count, forfeit_count)
Compare the test agents to the cpu agent in "fair" matches. "Fair" matches use random starting locations and force the agents to play as both first and second player to control for advantages resulting from choosing better opening moves or having first initiative to move.
tournament.py
play_round
turnaround0/udacity-ai-p2-isolation
116
python
def play_round(cpu_agent, test_agents, win_counts, num_matches): 'Compare the test agents to the cpu agent in "fair" matches.\n\n "Fair" matches use random starting locations and force the agents to\n play as both first and second player to control for advantages resulting\n from choosing better opening moves or having first initiative to move.\n ' timeout_count = 0 forfeit_count = 0 for _ in range(num_matches): games = sum([[Board(cpu_agent.player, agent.player), Board(agent.player, cpu_agent.player)] for agent in test_agents], []) for _ in range(2): move = random.choice(games[0].get_legal_moves()) for game in games: game.apply_move(move) for game in games: (winner, _, termination) = game.play(time_limit=TIME_LIMIT) win_counts[winner] += 1 if (termination == 'timeout'): timeout_count += 1 elif (termination == 'forfeit'): forfeit_count += 1 return (timeout_count, forfeit_count)
def play_round(cpu_agent, test_agents, win_counts, num_matches): 'Compare the test agents to the cpu agent in "fair" matches.\n\n "Fair" matches use random starting locations and force the agents to\n play as both first and second player to control for advantages resulting\n from choosing better opening moves or having first initiative to move.\n ' timeout_count = 0 forfeit_count = 0 for _ in range(num_matches): games = sum([[Board(cpu_agent.player, agent.player), Board(agent.player, cpu_agent.player)] for agent in test_agents], []) for _ in range(2): move = random.choice(games[0].get_legal_moves()) for game in games: game.apply_move(move) for game in games: (winner, _, termination) = game.play(time_limit=TIME_LIMIT) win_counts[winner] += 1 if (termination == 'timeout'): timeout_count += 1 elif (termination == 'forfeit'): forfeit_count += 1 return (timeout_count, forfeit_count)<|docstring|>Compare the test agents to the cpu agent in "fair" matches. "Fair" matches use random starting locations and force the agents to play as both first and second player to control for advantages resulting from choosing better opening moves or having first initiative to move.<|endoftext|>
343eff77ba17fa330876e3273c8333c1cbb2ef75adb6250cd7ea5818aa05fc44
def play_matches(cpu_agents, test_agents, num_matches): 'Play matches between the test agent and each cpu_agent individually. ' total_wins = {agent.player: 0 for agent in test_agents} total_timeouts = 0.0 total_forfeits = 0.0 total_matches = ((2 * num_matches) * len(cpu_agents)) print(('\n{:^9}{:^13}'.format('Match #', 'Opponent') + ''.join(['{:^13}'.format(x[1].name) for x in enumerate(test_agents)]))) print(('{:^9}{:^13} '.format('', '') + ' '.join(['{:^5}| {:^5}'.format('Won', 'Lost') for x in enumerate(test_agents)]))) for (idx, agent) in enumerate(cpu_agents): wins = {key: 0 for (key, value) in test_agents} wins[agent.player] = 0 print('{!s:^9}{:^13}'.format((idx + 1), agent.name), end='', flush=True) counts = play_round(agent, test_agents, wins, num_matches) total_timeouts += counts[0] total_forfeits += counts[1] total_wins = update(total_wins, wins) _total = (2 * num_matches) round_totals = sum([[wins[agent.player], (_total - wins[agent.player])] for agent in test_agents], []) print((' ' + ' '.join(['{:^5}| {:^5}'.format(round_totals[i], round_totals[(i + 1)]) for i in range(0, len(round_totals), 2)]))) print(('-' * 74)) print(('{:^9}{:^13}'.format('', 'Win Rate:') + ''.join(['{:^13}'.format('{:.1f}%'.format(((100 * total_wins[x[1].player]) / total_matches))) for x in enumerate(test_agents)]))) if total_timeouts: print((('\nThere were {} timeouts during the tournament -- make sure ' + 'your agent handles search timeout correctly, and consider ') + 'increasing the timeout margin for your agent.\n').format(total_timeouts)) if total_forfeits: print(('\nYour agents forfeited {} games while there were still ' + 'legal moves available to play.\n').format(total_forfeits))
Play matches between the test agent and each cpu_agent individually.
tournament.py
play_matches
turnaround0/udacity-ai-p2-isolation
116
python
def play_matches(cpu_agents, test_agents, num_matches): ' ' total_wins = {agent.player: 0 for agent in test_agents} total_timeouts = 0.0 total_forfeits = 0.0 total_matches = ((2 * num_matches) * len(cpu_agents)) print(('\n{:^9}{:^13}'.format('Match #', 'Opponent') + .join(['{:^13}'.format(x[1].name) for x in enumerate(test_agents)]))) print(('{:^9}{:^13} '.format(, ) + ' '.join(['{:^5}| {:^5}'.format('Won', 'Lost') for x in enumerate(test_agents)]))) for (idx, agent) in enumerate(cpu_agents): wins = {key: 0 for (key, value) in test_agents} wins[agent.player] = 0 print('{!s:^9}{:^13}'.format((idx + 1), agent.name), end=, flush=True) counts = play_round(agent, test_agents, wins, num_matches) total_timeouts += counts[0] total_forfeits += counts[1] total_wins = update(total_wins, wins) _total = (2 * num_matches) round_totals = sum([[wins[agent.player], (_total - wins[agent.player])] for agent in test_agents], []) print((' ' + ' '.join(['{:^5}| {:^5}'.format(round_totals[i], round_totals[(i + 1)]) for i in range(0, len(round_totals), 2)]))) print(('-' * 74)) print(('{:^9}{:^13}'.format(, 'Win Rate:') + .join(['{:^13}'.format('{:.1f}%'.format(((100 * total_wins[x[1].player]) / total_matches))) for x in enumerate(test_agents)]))) if total_timeouts: print((('\nThere were {} timeouts during the tournament -- make sure ' + 'your agent handles search timeout correctly, and consider ') + 'increasing the timeout margin for your agent.\n').format(total_timeouts)) if total_forfeits: print(('\nYour agents forfeited {} games while there were still ' + 'legal moves available to play.\n').format(total_forfeits))
def play_matches(cpu_agents, test_agents, num_matches): ' ' total_wins = {agent.player: 0 for agent in test_agents} total_timeouts = 0.0 total_forfeits = 0.0 total_matches = ((2 * num_matches) * len(cpu_agents)) print(('\n{:^9}{:^13}'.format('Match #', 'Opponent') + .join(['{:^13}'.format(x[1].name) for x in enumerate(test_agents)]))) print(('{:^9}{:^13} '.format(, ) + ' '.join(['{:^5}| {:^5}'.format('Won', 'Lost') for x in enumerate(test_agents)]))) for (idx, agent) in enumerate(cpu_agents): wins = {key: 0 for (key, value) in test_agents} wins[agent.player] = 0 print('{!s:^9}{:^13}'.format((idx + 1), agent.name), end=, flush=True) counts = play_round(agent, test_agents, wins, num_matches) total_timeouts += counts[0] total_forfeits += counts[1] total_wins = update(total_wins, wins) _total = (2 * num_matches) round_totals = sum([[wins[agent.player], (_total - wins[agent.player])] for agent in test_agents], []) print((' ' + ' '.join(['{:^5}| {:^5}'.format(round_totals[i], round_totals[(i + 1)]) for i in range(0, len(round_totals), 2)]))) print(('-' * 74)) print(('{:^9}{:^13}'.format(, 'Win Rate:') + .join(['{:^13}'.format('{:.1f}%'.format(((100 * total_wins[x[1].player]) / total_matches))) for x in enumerate(test_agents)]))) if total_timeouts: print((('\nThere were {} timeouts during the tournament -- make sure ' + 'your agent handles search timeout correctly, and consider ') + 'increasing the timeout margin for your agent.\n').format(total_timeouts)) if total_forfeits: print(('\nYour agents forfeited {} games while there were still ' + 'legal moves available to play.\n').format(total_forfeits))<|docstring|>Play matches between the test agent and each cpu_agent individually.<|endoftext|>
d8f7b7eae77c27cf545231c061507e14b1a1d429b4c0f733399718ef954d4b0c
def here(path=''): '相対パスを絶対パスに変換して返却します' return os.path.abspath(os.path.join(os.path.dirname(__file__), path))
相対パスを絶対パスに変換して返却します
roles/aci_show_int_status/action_plugins/aci_show_int_status.py
here
takamitsu-iida/ansible-on-wsl
0
python
def here(path=): return os.path.abspath(os.path.join(os.path.dirname(__file__), path))
def here(path=): return os.path.abspath(os.path.join(os.path.dirname(__file__), path))<|docstring|>相対パスを絶対パスに変換して返却します<|endoftext|>
95a2227fc7033f3a944d84533d08dc2b906dc49add8cf9feabe4e40bdfc418d7
def get_files(dir: str, prefix: str) -> list: 'ファイル一覧を作成した日付(ctime)の新しい順に取り出す' paths = list(Path(dir).glob('{0}*'.format(prefix))) paths.sort(key=os.path.getctime, reverse=True) return paths
ファイル一覧を作成した日付(ctime)の新しい順に取り出す
roles/aci_show_int_status/action_plugins/aci_show_int_status.py
get_files
takamitsu-iida/ansible-on-wsl
0
python
def get_files(dir: str, prefix: str) -> list: paths = list(Path(dir).glob('{0}*'.format(prefix))) paths.sort(key=os.path.getctime, reverse=True) return paths
def get_files(dir: str, prefix: str) -> list: paths = list(Path(dir).glob('{0}*'.format(prefix))) paths.sort(key=os.path.getctime, reverse=True) return paths<|docstring|>ファイル一覧を作成した日付(ctime)の新しい順に取り出す<|endoftext|>
dbf5be2247906073bef97316e9b853a7a83dc18f3ee2d9c1df20fc3fe814f16f
def main() -> int: 'メイン関数\n Returns:\n int -- 正常終了は0、異常時はそれ以外を返却\n ' parser = argparse.ArgumentParser(description='parse show ip route output.') parser.add_argument('-d', '--directory', dest='directory', default='.', help='Directory to search log files') parser.add_argument('-p', '--prefix', dest='prefix', default='', help='Prefix of log file') parser.add_argument('-v', '--verbose', action='store_true', default=False, help='Verbose output') parser.add_argument('--debug', action='store_true', default=False, help='Debug to develop script') args = parser.parse_args() if args.debug: return debug() if (args.directory and args.prefix): d = OrderedDict() files = get_files(dir=args.directory, prefix=args.prefix) files = files[:10] parser = ShowIntStatusParser() for f in files: filename = os.path.basename(f) result_list = parser.parse_file(f) if result_list: d[filename] = result_list print(d) return 0
メイン関数 Returns: int -- 正常終了は0、異常時はそれ以外を返却
roles/aci_show_int_status/action_plugins/aci_show_int_status.py
main
takamitsu-iida/ansible-on-wsl
0
python
def main() -> int: 'メイン関数\n Returns:\n int -- 正常終了は0、異常時はそれ以外を返却\n ' parser = argparse.ArgumentParser(description='parse show ip route output.') parser.add_argument('-d', '--directory', dest='directory', default='.', help='Directory to search log files') parser.add_argument('-p', '--prefix', dest='prefix', default=, help='Prefix of log file') parser.add_argument('-v', '--verbose', action='store_true', default=False, help='Verbose output') parser.add_argument('--debug', action='store_true', default=False, help='Debug to develop script') args = parser.parse_args() if args.debug: return debug() if (args.directory and args.prefix): d = OrderedDict() files = get_files(dir=args.directory, prefix=args.prefix) files = files[:10] parser = ShowIntStatusParser() for f in files: filename = os.path.basename(f) result_list = parser.parse_file(f) if result_list: d[filename] = result_list print(d) return 0
def main() -> int: 'メイン関数\n Returns:\n int -- 正常終了は0、異常時はそれ以外を返却\n ' parser = argparse.ArgumentParser(description='parse show ip route output.') parser.add_argument('-d', '--directory', dest='directory', default='.', help='Directory to search log files') parser.add_argument('-p', '--prefix', dest='prefix', default=, help='Prefix of log file') parser.add_argument('-v', '--verbose', action='store_true', default=False, help='Verbose output') parser.add_argument('--debug', action='store_true', default=False, help='Debug to develop script') args = parser.parse_args() if args.debug: return debug() if (args.directory and args.prefix): d = OrderedDict() files = get_files(dir=args.directory, prefix=args.prefix) files = files[:10] parser = ShowIntStatusParser() for f in files: filename = os.path.basename(f) result_list = parser.parse_file(f) if result_list: d[filename] = result_list print(d) return 0<|docstring|>メイン関数 Returns: int -- 正常終了は0、異常時はそれ以外を返却<|endoftext|>
f424a62b07b9928c2ce2c10c46c9ff0d861822e9ea8b8349accf39477086f40b
def test_register(self): 'Tests the registration endpoint' with self.app() as client: with self.app_context(): response = client.post('/v1.0/auth/register', data={'username': 'Aname', 'password': 'Pass'}) self.assertEqual(response.status_code, 201) self.assertDictEqual(response.get_json(), {'message': 'new user has been successfully registered'}) self.assertIsNotNone(User.query_by_username('Aname'))
Tests the registration endpoint
tests/test_views_auth.py
test_register
BioGeneTools/LmitJ
1
python
def test_register(self): with self.app() as client: with self.app_context(): response = client.post('/v1.0/auth/register', data={'username': 'Aname', 'password': 'Pass'}) self.assertEqual(response.status_code, 201) self.assertDictEqual(response.get_json(), {'message': 'new user has been successfully registered'}) self.assertIsNotNone(User.query_by_username('Aname'))
def test_register(self): with self.app() as client: with self.app_context(): response = client.post('/v1.0/auth/register', data={'username': 'Aname', 'password': 'Pass'}) self.assertEqual(response.status_code, 201) self.assertDictEqual(response.get_json(), {'message': 'new user has been successfully registered'}) self.assertIsNotNone(User.query_by_username('Aname'))<|docstring|>Tests the registration endpoint<|endoftext|>
1328a4c4577cdec3a2688061b51da29b64d165d578ac8a408a0965f092e89fa5
def test_auth(self): 'Tests the auth endpoint' with self.app() as client: with self.app_context(): client.post('/v1.0/auth/register', data={'username': 'Aname', 'password': 'Pass'}) response = client.post('/v1.0/auth', data={'username': 'Aname', 'password': 'Pass_wrong'}, headers={'Contet-Type': 'application/json'}) self.assertEqual(response.status_code, 401) self.assertEqual(response.get_json(), {'message': 'Bad username or password'}) response = client.post('/v1.0/auth', data={'username': 'Aname', 'password': 'Pass'}, headers={'Contet-Type': 'application/json'}) self.assertEqual(response.status_code, 200) self.assertIn('access_token', response.get_json())
Tests the auth endpoint
tests/test_views_auth.py
test_auth
BioGeneTools/LmitJ
1
python
def test_auth(self): with self.app() as client: with self.app_context(): client.post('/v1.0/auth/register', data={'username': 'Aname', 'password': 'Pass'}) response = client.post('/v1.0/auth', data={'username': 'Aname', 'password': 'Pass_wrong'}, headers={'Contet-Type': 'application/json'}) self.assertEqual(response.status_code, 401) self.assertEqual(response.get_json(), {'message': 'Bad username or password'}) response = client.post('/v1.0/auth', data={'username': 'Aname', 'password': 'Pass'}, headers={'Contet-Type': 'application/json'}) self.assertEqual(response.status_code, 200) self.assertIn('access_token', response.get_json())
def test_auth(self): with self.app() as client: with self.app_context(): client.post('/v1.0/auth/register', data={'username': 'Aname', 'password': 'Pass'}) response = client.post('/v1.0/auth', data={'username': 'Aname', 'password': 'Pass_wrong'}, headers={'Contet-Type': 'application/json'}) self.assertEqual(response.status_code, 401) self.assertEqual(response.get_json(), {'message': 'Bad username or password'}) response = client.post('/v1.0/auth', data={'username': 'Aname', 'password': 'Pass'}, headers={'Contet-Type': 'application/json'}) self.assertEqual(response.status_code, 200) self.assertIn('access_token', response.get_json())<|docstring|>Tests the auth endpoint<|endoftext|>
819e66ca3fd6ffae16637e2b63bb37a71b71ed9785f70fe803127fee4fc40291
@property @rank_zero_experiment def experiment(self) -> MlflowClient: '\n Actual MLflow object. To use MLflow features in your\n :class:`~pytorch_lightning.core.lightning.LightningModule` do the following.\n\n Example::\n\n self.logger.experiment.some_mlflow_function()\n\n ' if (self._experiment_id is None): expt = self._mlflow_client.get_experiment_by_name(self._experiment_name) if (expt is not None): self._experiment_id = expt.experiment_id else: log.warning(f'Experiment with name {self._experiment_name} not found. Creating it.') self._experiment_id = self._mlflow_client.create_experiment(name=self._experiment_name, artifact_location=self._artifact_location) if (self._run_id is None): if (self._run_name is not None): self.tags = (self.tags or {}) if (MLFLOW_RUN_NAME in self.tags): log.warning(f'The tag {MLFLOW_RUN_NAME} is found in tags. The value will be overridden by {self._run_name}.') self.tags[MLFLOW_RUN_NAME] = self._run_name run = self._mlflow_client.create_run(experiment_id=self._experiment_id, tags=resolve_tags(self.tags)) self._run_id = run.info.run_id return self._mlflow_client
Actual MLflow object. To use MLflow features in your :class:`~pytorch_lightning.core.lightning.LightningModule` do the following. Example:: self.logger.experiment.some_mlflow_function()
pytorch_lightning/loggers/mlflow.py
experiment
guyang3532/pytorch-lightning
15,666
python
@property @rank_zero_experiment def experiment(self) -> MlflowClient: '\n Actual MLflow object. To use MLflow features in your\n :class:`~pytorch_lightning.core.lightning.LightningModule` do the following.\n\n Example::\n\n self.logger.experiment.some_mlflow_function()\n\n ' if (self._experiment_id is None): expt = self._mlflow_client.get_experiment_by_name(self._experiment_name) if (expt is not None): self._experiment_id = expt.experiment_id else: log.warning(f'Experiment with name {self._experiment_name} not found. Creating it.') self._experiment_id = self._mlflow_client.create_experiment(name=self._experiment_name, artifact_location=self._artifact_location) if (self._run_id is None): if (self._run_name is not None): self.tags = (self.tags or {}) if (MLFLOW_RUN_NAME in self.tags): log.warning(f'The tag {MLFLOW_RUN_NAME} is found in tags. The value will be overridden by {self._run_name}.') self.tags[MLFLOW_RUN_NAME] = self._run_name run = self._mlflow_client.create_run(experiment_id=self._experiment_id, tags=resolve_tags(self.tags)) self._run_id = run.info.run_id return self._mlflow_client
@property @rank_zero_experiment def experiment(self) -> MlflowClient: '\n Actual MLflow object. To use MLflow features in your\n :class:`~pytorch_lightning.core.lightning.LightningModule` do the following.\n\n Example::\n\n self.logger.experiment.some_mlflow_function()\n\n ' if (self._experiment_id is None): expt = self._mlflow_client.get_experiment_by_name(self._experiment_name) if (expt is not None): self._experiment_id = expt.experiment_id else: log.warning(f'Experiment with name {self._experiment_name} not found. Creating it.') self._experiment_id = self._mlflow_client.create_experiment(name=self._experiment_name, artifact_location=self._artifact_location) if (self._run_id is None): if (self._run_name is not None): self.tags = (self.tags or {}) if (MLFLOW_RUN_NAME in self.tags): log.warning(f'The tag {MLFLOW_RUN_NAME} is found in tags. The value will be overridden by {self._run_name}.') self.tags[MLFLOW_RUN_NAME] = self._run_name run = self._mlflow_client.create_run(experiment_id=self._experiment_id, tags=resolve_tags(self.tags)) self._run_id = run.info.run_id return self._mlflow_client<|docstring|>Actual MLflow object. To use MLflow features in your :class:`~pytorch_lightning.core.lightning.LightningModule` do the following. Example:: self.logger.experiment.some_mlflow_function()<|endoftext|>
087192e795fcc6112b3af6c4a6a7ef100a39be1f2eefdf8e1a0f101fffb6553c
@property def run_id(self) -> str: 'Create the experiment if it does not exist to get the run id.\n\n Returns:\n The run id.\n ' _ = self.experiment return self._run_id
Create the experiment if it does not exist to get the run id. Returns: The run id.
pytorch_lightning/loggers/mlflow.py
run_id
guyang3532/pytorch-lightning
15,666
python
@property def run_id(self) -> str: 'Create the experiment if it does not exist to get the run id.\n\n Returns:\n The run id.\n ' _ = self.experiment return self._run_id
@property def run_id(self) -> str: 'Create the experiment if it does not exist to get the run id.\n\n Returns:\n The run id.\n ' _ = self.experiment return self._run_id<|docstring|>Create the experiment if it does not exist to get the run id. Returns: The run id.<|endoftext|>
445c01bf8f36a8b1e367bc6b4083f1b8870135e4ad8d1e380e68a0db16de0fa8
@property def experiment_id(self) -> str: 'Create the experiment if it does not exist to get the experiment id.\n\n Returns:\n The experiment id.\n ' _ = self.experiment return self._experiment_id
Create the experiment if it does not exist to get the experiment id. Returns: The experiment id.
pytorch_lightning/loggers/mlflow.py
experiment_id
guyang3532/pytorch-lightning
15,666
python
@property def experiment_id(self) -> str: 'Create the experiment if it does not exist to get the experiment id.\n\n Returns:\n The experiment id.\n ' _ = self.experiment return self._experiment_id
@property def experiment_id(self) -> str: 'Create the experiment if it does not exist to get the experiment id.\n\n Returns:\n The experiment id.\n ' _ = self.experiment return self._experiment_id<|docstring|>Create the experiment if it does not exist to get the experiment id. Returns: The experiment id.<|endoftext|>
2e3aed999f090e92737001053e36805fc94361b5d0263122d4e6c32a32d22904
@property def save_dir(self) -> Optional[str]: 'The root file directory in which MLflow experiments are saved.\n\n Return:\n Local path to the root experiment directory if the tracking uri is local.\n Otherwhise returns `None`.\n ' if self._tracking_uri.startswith(LOCAL_FILE_URI_PREFIX): return self._tracking_uri.lstrip(LOCAL_FILE_URI_PREFIX)
The root file directory in which MLflow experiments are saved. Return: Local path to the root experiment directory if the tracking uri is local. Otherwhise returns `None`.
pytorch_lightning/loggers/mlflow.py
save_dir
guyang3532/pytorch-lightning
15,666
python
@property def save_dir(self) -> Optional[str]: 'The root file directory in which MLflow experiments are saved.\n\n Return:\n Local path to the root experiment directory if the tracking uri is local.\n Otherwhise returns `None`.\n ' if self._tracking_uri.startswith(LOCAL_FILE_URI_PREFIX): return self._tracking_uri.lstrip(LOCAL_FILE_URI_PREFIX)
@property def save_dir(self) -> Optional[str]: 'The root file directory in which MLflow experiments are saved.\n\n Return:\n Local path to the root experiment directory if the tracking uri is local.\n Otherwhise returns `None`.\n ' if self._tracking_uri.startswith(LOCAL_FILE_URI_PREFIX): return self._tracking_uri.lstrip(LOCAL_FILE_URI_PREFIX)<|docstring|>The root file directory in which MLflow experiments are saved. Return: Local path to the root experiment directory if the tracking uri is local. Otherwhise returns `None`.<|endoftext|>
c4215185d67c6accc2c80b6de13f47f45bda182065205c0b23f8703bbb30fec7
@property def name(self) -> str: 'Get the experiment id.\n\n Returns:\n The experiment id.\n ' return self.experiment_id
Get the experiment id. Returns: The experiment id.
pytorch_lightning/loggers/mlflow.py
name
guyang3532/pytorch-lightning
15,666
python
@property def name(self) -> str: 'Get the experiment id.\n\n Returns:\n The experiment id.\n ' return self.experiment_id
@property def name(self) -> str: 'Get the experiment id.\n\n Returns:\n The experiment id.\n ' return self.experiment_id<|docstring|>Get the experiment id. Returns: The experiment id.<|endoftext|>
b719d26e2b5e32236b1988ce94f7aa2c64ab78bc506d6cc0d2c020b3b06297f7
@property def version(self) -> str: 'Get the run id.\n\n Returns:\n The run id.\n ' return self.run_id
Get the run id. Returns: The run id.
pytorch_lightning/loggers/mlflow.py
version
guyang3532/pytorch-lightning
15,666
python
@property def version(self) -> str: 'Get the run id.\n\n Returns:\n The run id.\n ' return self.run_id
@property def version(self) -> str: 'Get the run id.\n\n Returns:\n The run id.\n ' return self.run_id<|docstring|>Get the run id. Returns: The run id.<|endoftext|>
b17dc98647d5fb7efeb118ec92a33207a178c35b7bb6aab19cd96af51d7a2a2a
def bold(s): 'Returns the string s, bolded.' return ('\x02%s\x02' % s)
Returns the string s, bolded.
rtquizzer.py
bold
Fulgen301/rtquizzer
0
python
def bold(s): return ('\x02%s\x02' % s)
def bold(s): return ('\x02%s\x02' % s)<|docstring|>Returns the string s, bolded.<|endoftext|>
ca2c3a7f8600e364aba3bef65b868308d9c863572adeb0fa3e781603e469ddd3
def italic(s): 'Returns the string s, italicised.' return ('\x1d%s\x1d' % s)
Returns the string s, italicised.
rtquizzer.py
italic
Fulgen301/rtquizzer
0
python
def italic(s): return ('\x1d%s\x1d' % s)
def italic(s): return ('\x1d%s\x1d' % s)<|docstring|>Returns the string s, italicised.<|endoftext|>
b4a63c33d5a3c7ffee94fd63ddf721bf4c02823600a793087e482946a5e2488d
def mircColor(s, fg=None, bg=None): 'Returns s with the appropriate mIRC color codes applied.' if ((fg is None) and (bg is None)): return s elif (bg is None): if (str(fg) in mircColors): fg = mircColors[str(fg)] elif (len(str(fg)) > 1): fg = mircColors[str(fg)[:(- 1)]] else: pass return ('\x03%s%s\x03' % (fg.zfill(2), s)) elif (fg is None): bg = mircColors[str(bg)] return ('\x0300,%s%s\x03' % (bg.zfill(2), s)) else: fg = mircColors[str(fg)] bg = mircColors[str(bg)] return ('\x03%s,%s%s\x03' % (fg, bg.zfill(2), s))
Returns s with the appropriate mIRC color codes applied.
rtquizzer.py
mircColor
Fulgen301/rtquizzer
0
python
def mircColor(s, fg=None, bg=None): if ((fg is None) and (bg is None)): return s elif (bg is None): if (str(fg) in mircColors): fg = mircColors[str(fg)] elif (len(str(fg)) > 1): fg = mircColors[str(fg)[:(- 1)]] else: pass return ('\x03%s%s\x03' % (fg.zfill(2), s)) elif (fg is None): bg = mircColors[str(bg)] return ('\x0300,%s%s\x03' % (bg.zfill(2), s)) else: fg = mircColors[str(fg)] bg = mircColors[str(bg)] return ('\x03%s,%s%s\x03' % (fg, bg.zfill(2), s))
def mircColor(s, fg=None, bg=None): if ((fg is None) and (bg is None)): return s elif (bg is None): if (str(fg) in mircColors): fg = mircColors[str(fg)] elif (len(str(fg)) > 1): fg = mircColors[str(fg)[:(- 1)]] else: pass return ('\x03%s%s\x03' % (fg.zfill(2), s)) elif (fg is None): bg = mircColors[str(bg)] return ('\x0300,%s%s\x03' % (bg.zfill(2), s)) else: fg = mircColors[str(fg)] bg = mircColors[str(bg)] return ('\x03%s,%s%s\x03' % (fg, bg.zfill(2), s))<|docstring|>Returns s with the appropriate mIRC color codes applied.<|endoftext|>
c53fc675432c7210b4a9177adea6212391a02b29ea90043afeb300b12352b15e
def stripColor(s): 'Returns the string s, with color removed.' return _stripColorRe.sub('', s)
Returns the string s, with color removed.
rtquizzer.py
stripColor
Fulgen301/rtquizzer
0
python
def stripColor(s): return _stripColorRe.sub(, s)
def stripColor(s): return _stripColorRe.sub(, s)<|docstring|>Returns the string s, with color removed.<|endoftext|>
d5035e5117321a6e80f319c75c77ee706ffac0028c781da93b3e847eca2c24ef
def train(): 'Train CIFAR-10 for a number of steps.' with tf.Graph().as_default(): global_step = tf.train.get_or_create_global_step() with tf.device('/cpu:0'): (images, labels) = cifar10.distorted_inputs() logits = cifar10.inference(images) loss = cifar10.loss(logits, labels) train_op = cifar10.train(loss, global_step) i = 0 class _LoggerHook(tf.train.SessionRunHook): 'Logs loss and runtime.' def begin(self): self._step = (- 1) self._start_time = time.time() def before_run(self, run_context): self._step += 1 return tf.train.SessionRunArgs(loss) def after_run(self, run_context, run_values): if ((self._step % FLAGS.log_frequency) == 0): current_time = time.time() duration = (current_time - self._start_time) self._start_time = current_time loss_value = run_values.results examples_per_sec = ((FLAGS.log_frequency * FLAGS.batch_size) / duration) sec_per_batch = float((duration / FLAGS.log_frequency)) format_str = '%s: step %d, loss = %.2f (%.1f examples/sec; %.3f sec/batch)' print((format_str % (datetime.now(), self._step, loss_value, examples_per_sec, sec_per_batch))) with tf.train.MonitoredTrainingSession(checkpoint_dir=FLAGS.train_dir, save_checkpoint_secs=10, save_summaries_steps=10, hooks=[tf.train.StopAtStepHook(last_step=FLAGS.max_steps), tf.train.NanTensorHook(loss), _LoggerHook()], config=tf.ConfigProto(log_device_placement=FLAGS.log_device_placement, allow_soft_placement=True)) as mon_sess: cifar_profiler = model_analyzer.Profiler(graph=mon_sess.graph) run_options = tf.RunOptions(trace_level=tf.RunOptions.FULL_TRACE) run_metadata = tf.RunMetadata() while (not mon_sess.should_stop()): if ((i % FLAGS.log_frequency) == 0): mon_sess.run(train_op, options=run_options, run_metadata=run_metadata) cifar_profiler.add_step(step=i, run_meta=run_metadata) else: mon_sess.run(train_op) i += 1 "\n Profiler Section\n 1. Profile each graph node's execution time and consumed memory\n 2. Profile each layer's parameters, modle size and parameters distribution\n 3. Profile top K most time-consuming operations\n 4. Profile top K most memory-consuming operations\n 5. Profile python code performance line by line\n 6. Give optimization Advice\n " profile_graph_opts_builder = option_builder.ProfileOptionBuilder(option_builder.ProfileOptionBuilder.time_and_memory()) profile_graph_opts_builder.with_timeline_output(timeline_file=os.path.join(os.path.split(os.path.split(os.path.abspath(__file__))[0])[0], 'logs/cifar10_profiler/cifar10_profiler.json')) profile_graph_opts_builder.with_step(((FLAGS.max_steps - 1) // 2)) cifar_profiler.profile_graph(profile_graph_opts_builder.build()) profile_scope_opt_builder = option_builder.ProfileOptionBuilder(option_builder.ProfileOptionBuilder.trainable_variables_parameter()) profile_scope_opt_builder.with_max_depth(4) profile_scope_opt_builder.select(['params']) profile_scope_opt_builder.order_by('params') cifar_profiler.profile_name_scope(profile_scope_opt_builder.build()) profile_op_opt_builder = option_builder.ProfileOptionBuilder() profile_op_opt_builder.select(['micros', 'occurrence']) profile_op_opt_builder.order_by('micros') profile_op_opt_builder.with_max_depth(4) cifar_profiler.profile_operations(profile_op_opt_builder.build()) profile_op_opt_builder = option_builder.ProfileOptionBuilder() profile_op_opt_builder.select(['bytes', 'occurrence']) profile_op_opt_builder.order_by('bytes') profile_op_opt_builder.with_max_depth(4) cifar_profiler.profile_operations(profile_op_opt_builder.build()) profile_code_opt_builder = option_builder.ProfileOptionBuilder() profile_code_opt_builder.with_max_depth(1000) profile_code_opt_builder.with_node_names(show_name_regexes=['cifar10[\\s\\S]*']) profile_code_opt_builder.with_min_execution_time(min_micros=10) profile_code_opt_builder.select(['micros']) profile_code_opt_builder.order_by('micros') cifar_profiler.profile_python(profile_code_opt_builder.build()) cifar_profiler.advise(options=model_analyzer.ALL_ADVICE)
Train CIFAR-10 for a number of steps.
src/cifar10_train.py
train
BigTony666/cnn
0
python
def train(): with tf.Graph().as_default(): global_step = tf.train.get_or_create_global_step() with tf.device('/cpu:0'): (images, labels) = cifar10.distorted_inputs() logits = cifar10.inference(images) loss = cifar10.loss(logits, labels) train_op = cifar10.train(loss, global_step) i = 0 class _LoggerHook(tf.train.SessionRunHook): 'Logs loss and runtime.' def begin(self): self._step = (- 1) self._start_time = time.time() def before_run(self, run_context): self._step += 1 return tf.train.SessionRunArgs(loss) def after_run(self, run_context, run_values): if ((self._step % FLAGS.log_frequency) == 0): current_time = time.time() duration = (current_time - self._start_time) self._start_time = current_time loss_value = run_values.results examples_per_sec = ((FLAGS.log_frequency * FLAGS.batch_size) / duration) sec_per_batch = float((duration / FLAGS.log_frequency)) format_str = '%s: step %d, loss = %.2f (%.1f examples/sec; %.3f sec/batch)' print((format_str % (datetime.now(), self._step, loss_value, examples_per_sec, sec_per_batch))) with tf.train.MonitoredTrainingSession(checkpoint_dir=FLAGS.train_dir, save_checkpoint_secs=10, save_summaries_steps=10, hooks=[tf.train.StopAtStepHook(last_step=FLAGS.max_steps), tf.train.NanTensorHook(loss), _LoggerHook()], config=tf.ConfigProto(log_device_placement=FLAGS.log_device_placement, allow_soft_placement=True)) as mon_sess: cifar_profiler = model_analyzer.Profiler(graph=mon_sess.graph) run_options = tf.RunOptions(trace_level=tf.RunOptions.FULL_TRACE) run_metadata = tf.RunMetadata() while (not mon_sess.should_stop()): if ((i % FLAGS.log_frequency) == 0): mon_sess.run(train_op, options=run_options, run_metadata=run_metadata) cifar_profiler.add_step(step=i, run_meta=run_metadata) else: mon_sess.run(train_op) i += 1 "\n Profiler Section\n 1. Profile each graph node's execution time and consumed memory\n 2. Profile each layer's parameters, modle size and parameters distribution\n 3. Profile top K most time-consuming operations\n 4. Profile top K most memory-consuming operations\n 5. Profile python code performance line by line\n 6. Give optimization Advice\n " profile_graph_opts_builder = option_builder.ProfileOptionBuilder(option_builder.ProfileOptionBuilder.time_and_memory()) profile_graph_opts_builder.with_timeline_output(timeline_file=os.path.join(os.path.split(os.path.split(os.path.abspath(__file__))[0])[0], 'logs/cifar10_profiler/cifar10_profiler.json')) profile_graph_opts_builder.with_step(((FLAGS.max_steps - 1) // 2)) cifar_profiler.profile_graph(profile_graph_opts_builder.build()) profile_scope_opt_builder = option_builder.ProfileOptionBuilder(option_builder.ProfileOptionBuilder.trainable_variables_parameter()) profile_scope_opt_builder.with_max_depth(4) profile_scope_opt_builder.select(['params']) profile_scope_opt_builder.order_by('params') cifar_profiler.profile_name_scope(profile_scope_opt_builder.build()) profile_op_opt_builder = option_builder.ProfileOptionBuilder() profile_op_opt_builder.select(['micros', 'occurrence']) profile_op_opt_builder.order_by('micros') profile_op_opt_builder.with_max_depth(4) cifar_profiler.profile_operations(profile_op_opt_builder.build()) profile_op_opt_builder = option_builder.ProfileOptionBuilder() profile_op_opt_builder.select(['bytes', 'occurrence']) profile_op_opt_builder.order_by('bytes') profile_op_opt_builder.with_max_depth(4) cifar_profiler.profile_operations(profile_op_opt_builder.build()) profile_code_opt_builder = option_builder.ProfileOptionBuilder() profile_code_opt_builder.with_max_depth(1000) profile_code_opt_builder.with_node_names(show_name_regexes=['cifar10[\\s\\S]*']) profile_code_opt_builder.with_min_execution_time(min_micros=10) profile_code_opt_builder.select(['micros']) profile_code_opt_builder.order_by('micros') cifar_profiler.profile_python(profile_code_opt_builder.build()) cifar_profiler.advise(options=model_analyzer.ALL_ADVICE)
def train(): with tf.Graph().as_default(): global_step = tf.train.get_or_create_global_step() with tf.device('/cpu:0'): (images, labels) = cifar10.distorted_inputs() logits = cifar10.inference(images) loss = cifar10.loss(logits, labels) train_op = cifar10.train(loss, global_step) i = 0 class _LoggerHook(tf.train.SessionRunHook): 'Logs loss and runtime.' def begin(self): self._step = (- 1) self._start_time = time.time() def before_run(self, run_context): self._step += 1 return tf.train.SessionRunArgs(loss) def after_run(self, run_context, run_values): if ((self._step % FLAGS.log_frequency) == 0): current_time = time.time() duration = (current_time - self._start_time) self._start_time = current_time loss_value = run_values.results examples_per_sec = ((FLAGS.log_frequency * FLAGS.batch_size) / duration) sec_per_batch = float((duration / FLAGS.log_frequency)) format_str = '%s: step %d, loss = %.2f (%.1f examples/sec; %.3f sec/batch)' print((format_str % (datetime.now(), self._step, loss_value, examples_per_sec, sec_per_batch))) with tf.train.MonitoredTrainingSession(checkpoint_dir=FLAGS.train_dir, save_checkpoint_secs=10, save_summaries_steps=10, hooks=[tf.train.StopAtStepHook(last_step=FLAGS.max_steps), tf.train.NanTensorHook(loss), _LoggerHook()], config=tf.ConfigProto(log_device_placement=FLAGS.log_device_placement, allow_soft_placement=True)) as mon_sess: cifar_profiler = model_analyzer.Profiler(graph=mon_sess.graph) run_options = tf.RunOptions(trace_level=tf.RunOptions.FULL_TRACE) run_metadata = tf.RunMetadata() while (not mon_sess.should_stop()): if ((i % FLAGS.log_frequency) == 0): mon_sess.run(train_op, options=run_options, run_metadata=run_metadata) cifar_profiler.add_step(step=i, run_meta=run_metadata) else: mon_sess.run(train_op) i += 1 "\n Profiler Section\n 1. Profile each graph node's execution time and consumed memory\n 2. Profile each layer's parameters, modle size and parameters distribution\n 3. Profile top K most time-consuming operations\n 4. Profile top K most memory-consuming operations\n 5. Profile python code performance line by line\n 6. Give optimization Advice\n " profile_graph_opts_builder = option_builder.ProfileOptionBuilder(option_builder.ProfileOptionBuilder.time_and_memory()) profile_graph_opts_builder.with_timeline_output(timeline_file=os.path.join(os.path.split(os.path.split(os.path.abspath(__file__))[0])[0], 'logs/cifar10_profiler/cifar10_profiler.json')) profile_graph_opts_builder.with_step(((FLAGS.max_steps - 1) // 2)) cifar_profiler.profile_graph(profile_graph_opts_builder.build()) profile_scope_opt_builder = option_builder.ProfileOptionBuilder(option_builder.ProfileOptionBuilder.trainable_variables_parameter()) profile_scope_opt_builder.with_max_depth(4) profile_scope_opt_builder.select(['params']) profile_scope_opt_builder.order_by('params') cifar_profiler.profile_name_scope(profile_scope_opt_builder.build()) profile_op_opt_builder = option_builder.ProfileOptionBuilder() profile_op_opt_builder.select(['micros', 'occurrence']) profile_op_opt_builder.order_by('micros') profile_op_opt_builder.with_max_depth(4) cifar_profiler.profile_operations(profile_op_opt_builder.build()) profile_op_opt_builder = option_builder.ProfileOptionBuilder() profile_op_opt_builder.select(['bytes', 'occurrence']) profile_op_opt_builder.order_by('bytes') profile_op_opt_builder.with_max_depth(4) cifar_profiler.profile_operations(profile_op_opt_builder.build()) profile_code_opt_builder = option_builder.ProfileOptionBuilder() profile_code_opt_builder.with_max_depth(1000) profile_code_opt_builder.with_node_names(show_name_regexes=['cifar10[\\s\\S]*']) profile_code_opt_builder.with_min_execution_time(min_micros=10) profile_code_opt_builder.select(['micros']) profile_code_opt_builder.order_by('micros') cifar_profiler.profile_python(profile_code_opt_builder.build()) cifar_profiler.advise(options=model_analyzer.ALL_ADVICE)<|docstring|>Train CIFAR-10 for a number of steps.<|endoftext|>
65ee9437aafc6b2d60d25ef802d8a92b3967513417df3a2e0d5d413cb42e7aa5
def test_composite(self): 'Map a composite type' dbmap = self.to_map([CREATE_COMPOSITE_STMT]) assert (dbmap['schema public']['type t1'] == {'attributes': [{'x': {'type': 'integer'}}, {'y': {'type': 'integer'}}, {'z': {'type': 'integer'}}]})
Map a composite type
tests/dbobject/test_type.py
test_composite
reedstrm/Pyrseas
0
python
def test_composite(self): dbmap = self.to_map([CREATE_COMPOSITE_STMT]) assert (dbmap['schema public']['type t1'] == {'attributes': [{'x': {'type': 'integer'}}, {'y': {'type': 'integer'}}, {'z': {'type': 'integer'}}]})
def test_composite(self): dbmap = self.to_map([CREATE_COMPOSITE_STMT]) assert (dbmap['schema public']['type t1'] == {'attributes': [{'x': {'type': 'integer'}}, {'y': {'type': 'integer'}}, {'z': {'type': 'integer'}}]})<|docstring|>Map a composite type<|endoftext|>
0a2782a3d061d62de25ffc5848e06cc4dd4c1b2da6e2a6e0723e7b7af2c77375
def test_dropped_attribute(self): 'Map a composite type which has a dropped attribute' if (self.db.version < 90100): self.skipTest('Only available on PG 9.1') stmts = [CREATE_COMPOSITE_STMT, 'ALTER TYPE t1 DROP ATTRIBUTE y'] dbmap = self.to_map(stmts) assert (dbmap['schema public']['type t1'] == {'attributes': [{'x': {'type': 'integer'}}, {'z': {'type': 'integer'}}]})
Map a composite type which has a dropped attribute
tests/dbobject/test_type.py
test_dropped_attribute
reedstrm/Pyrseas
0
python
def test_dropped_attribute(self): if (self.db.version < 90100): self.skipTest('Only available on PG 9.1') stmts = [CREATE_COMPOSITE_STMT, 'ALTER TYPE t1 DROP ATTRIBUTE y'] dbmap = self.to_map(stmts) assert (dbmap['schema public']['type t1'] == {'attributes': [{'x': {'type': 'integer'}}, {'z': {'type': 'integer'}}]})
def test_dropped_attribute(self): if (self.db.version < 90100): self.skipTest('Only available on PG 9.1') stmts = [CREATE_COMPOSITE_STMT, 'ALTER TYPE t1 DROP ATTRIBUTE y'] dbmap = self.to_map(stmts) assert (dbmap['schema public']['type t1'] == {'attributes': [{'x': {'type': 'integer'}}, {'z': {'type': 'integer'}}]})<|docstring|>Map a composite type which has a dropped attribute<|endoftext|>
dfe34d73dc8314312264bd710e6f40e6c91d9522c0e5f82b097ff91d9c1bd436
def test_create_composite(self): 'Create a composite type' inmap = self.std_map() inmap['schema public'].update({'type t1': {'attributes': [{'x': {'type': 'integer'}}, {'y': {'type': 'integer'}}, {'z': {'type': 'integer'}}]}}) sql = self.to_sql(inmap) assert (fix_indent(sql[0]) == CREATE_COMPOSITE_STMT)
Create a composite type
tests/dbobject/test_type.py
test_create_composite
reedstrm/Pyrseas
0
python
def test_create_composite(self): inmap = self.std_map() inmap['schema public'].update({'type t1': {'attributes': [{'x': {'type': 'integer'}}, {'y': {'type': 'integer'}}, {'z': {'type': 'integer'}}]}}) sql = self.to_sql(inmap) assert (fix_indent(sql[0]) == CREATE_COMPOSITE_STMT)
def test_create_composite(self): inmap = self.std_map() inmap['schema public'].update({'type t1': {'attributes': [{'x': {'type': 'integer'}}, {'y': {'type': 'integer'}}, {'z': {'type': 'integer'}}]}}) sql = self.to_sql(inmap) assert (fix_indent(sql[0]) == CREATE_COMPOSITE_STMT)<|docstring|>Create a composite type<|endoftext|>
1f131224313a4d90d44af148412c454f6b693237a4c71a965de21543d30c2168
def test_drop_composite(self): 'Drop an existing composite' sql = self.to_sql(self.std_map(), [CREATE_COMPOSITE_STMT]) assert (sql == ['DROP TYPE t1'])
Drop an existing composite
tests/dbobject/test_type.py
test_drop_composite
reedstrm/Pyrseas
0
python
def test_drop_composite(self): sql = self.to_sql(self.std_map(), [CREATE_COMPOSITE_STMT]) assert (sql == ['DROP TYPE t1'])
def test_drop_composite(self): sql = self.to_sql(self.std_map(), [CREATE_COMPOSITE_STMT]) assert (sql == ['DROP TYPE t1'])<|docstring|>Drop an existing composite<|endoftext|>
39816ae87368b238b4faeed5a384a7de70a8b959573d60c3ddc373492725a179
def test_rename_composite(self): 'Rename an existing composite' inmap = self.std_map() inmap['schema public'].update({'type t2': {'oldname': 't1', 'attributes': [{'x': {'type': 'integer'}}, {'y': {'type': 'integer'}}, {'z': {'type': 'integer'}}]}}) sql = self.to_sql(inmap, [CREATE_COMPOSITE_STMT]) assert (sql == ['ALTER TYPE t1 RENAME TO t2'])
Rename an existing composite
tests/dbobject/test_type.py
test_rename_composite
reedstrm/Pyrseas
0
python
def test_rename_composite(self): inmap = self.std_map() inmap['schema public'].update({'type t2': {'oldname': 't1', 'attributes': [{'x': {'type': 'integer'}}, {'y': {'type': 'integer'}}, {'z': {'type': 'integer'}}]}}) sql = self.to_sql(inmap, [CREATE_COMPOSITE_STMT]) assert (sql == ['ALTER TYPE t1 RENAME TO t2'])
def test_rename_composite(self): inmap = self.std_map() inmap['schema public'].update({'type t2': {'oldname': 't1', 'attributes': [{'x': {'type': 'integer'}}, {'y': {'type': 'integer'}}, {'z': {'type': 'integer'}}]}}) sql = self.to_sql(inmap, [CREATE_COMPOSITE_STMT]) assert (sql == ['ALTER TYPE t1 RENAME TO t2'])<|docstring|>Rename an existing composite<|endoftext|>
fabaccf554cc88b1f5e8c2253f414780077726343c482d3a3af5964abee5ad30
def test_add_attribute(self): 'Add an attribute to a composite type' if (self.db.version < 90100): self.skipTest('Only available on PG 9.1') inmap = self.std_map() inmap['schema public'].update({'type t1': {'attributes': [{'x': {'type': 'integer'}}, {'y': {'type': 'integer'}}, {'z': {'type': 'integer'}}]}}) sql = self.to_sql(inmap, ['CREATE TYPE t1 AS (x integer, y integer)']) assert (fix_indent(sql[0]) == 'ALTER TYPE t1 ADD ATTRIBUTE z integer')
Add an attribute to a composite type
tests/dbobject/test_type.py
test_add_attribute
reedstrm/Pyrseas
0
python
def test_add_attribute(self): if (self.db.version < 90100): self.skipTest('Only available on PG 9.1') inmap = self.std_map() inmap['schema public'].update({'type t1': {'attributes': [{'x': {'type': 'integer'}}, {'y': {'type': 'integer'}}, {'z': {'type': 'integer'}}]}}) sql = self.to_sql(inmap, ['CREATE TYPE t1 AS (x integer, y integer)']) assert (fix_indent(sql[0]) == 'ALTER TYPE t1 ADD ATTRIBUTE z integer')
def test_add_attribute(self): if (self.db.version < 90100): self.skipTest('Only available on PG 9.1') inmap = self.std_map() inmap['schema public'].update({'type t1': {'attributes': [{'x': {'type': 'integer'}}, {'y': {'type': 'integer'}}, {'z': {'type': 'integer'}}]}}) sql = self.to_sql(inmap, ['CREATE TYPE t1 AS (x integer, y integer)']) assert (fix_indent(sql[0]) == 'ALTER TYPE t1 ADD ATTRIBUTE z integer')<|docstring|>Add an attribute to a composite type<|endoftext|>
e4d090866b7ce37323b9e1c3979327f0fdf9cdc128bd136e85343d5fde257459
def test_drop_attribute(self): 'Drop an attribute from a composite type' if (self.db.version < 90100): self.skipTest('Only available on PG 9.1') inmap = self.std_map() inmap['schema public'].update({'type t1': {'attributes': [{'x': {'type': 'integer'}}, {'z': {'type': 'integer'}}]}}) sql = self.to_sql(inmap, [CREATE_COMPOSITE_STMT]) assert (fix_indent(sql[0]) == 'ALTER TYPE t1 DROP ATTRIBUTE y')
Drop an attribute from a composite type
tests/dbobject/test_type.py
test_drop_attribute
reedstrm/Pyrseas
0
python
def test_drop_attribute(self): if (self.db.version < 90100): self.skipTest('Only available on PG 9.1') inmap = self.std_map() inmap['schema public'].update({'type t1': {'attributes': [{'x': {'type': 'integer'}}, {'z': {'type': 'integer'}}]}}) sql = self.to_sql(inmap, [CREATE_COMPOSITE_STMT]) assert (fix_indent(sql[0]) == 'ALTER TYPE t1 DROP ATTRIBUTE y')
def test_drop_attribute(self): if (self.db.version < 90100): self.skipTest('Only available on PG 9.1') inmap = self.std_map() inmap['schema public'].update({'type t1': {'attributes': [{'x': {'type': 'integer'}}, {'z': {'type': 'integer'}}]}}) sql = self.to_sql(inmap, [CREATE_COMPOSITE_STMT]) assert (fix_indent(sql[0]) == 'ALTER TYPE t1 DROP ATTRIBUTE y')<|docstring|>Drop an attribute from a composite type<|endoftext|>
8b2c9b61f2bd94f45d4c68dd7f0bbf9b9abb643c0d0cbb91c2031438be1db34c
def test_drop_attribute_schema(self): 'Drop an attribute from a composite type within a non-public schema' if (self.db.version < 90100): self.skipTest('Only available on PG 9.1') inmap = self.std_map() inmap.update({'schema s1': {'type t1': {'attributes': [{'x': {'type': 'integer'}}, {'z': {'type': 'integer'}}]}}}) sql = self.to_sql(inmap, ['CREATE SCHEMA s1', 'CREATE TYPE s1.t1 AS (x integer, y integer, z integer)']) assert (fix_indent(sql[0]) == 'ALTER TYPE s1.t1 DROP ATTRIBUTE y')
Drop an attribute from a composite type within a non-public schema
tests/dbobject/test_type.py
test_drop_attribute_schema
reedstrm/Pyrseas
0
python
def test_drop_attribute_schema(self): if (self.db.version < 90100): self.skipTest('Only available on PG 9.1') inmap = self.std_map() inmap.update({'schema s1': {'type t1': {'attributes': [{'x': {'type': 'integer'}}, {'z': {'type': 'integer'}}]}}}) sql = self.to_sql(inmap, ['CREATE SCHEMA s1', 'CREATE TYPE s1.t1 AS (x integer, y integer, z integer)']) assert (fix_indent(sql[0]) == 'ALTER TYPE s1.t1 DROP ATTRIBUTE y')
def test_drop_attribute_schema(self): if (self.db.version < 90100): self.skipTest('Only available on PG 9.1') inmap = self.std_map() inmap.update({'schema s1': {'type t1': {'attributes': [{'x': {'type': 'integer'}}, {'z': {'type': 'integer'}}]}}}) sql = self.to_sql(inmap, ['CREATE SCHEMA s1', 'CREATE TYPE s1.t1 AS (x integer, y integer, z integer)']) assert (fix_indent(sql[0]) == 'ALTER TYPE s1.t1 DROP ATTRIBUTE y')<|docstring|>Drop an attribute from a composite type within a non-public schema<|endoftext|>
a2d4e24d46fafe0c27c6c7bdb9e0800881e54a9a3161821a10c8e4593c844e8d
def test_rename_attribute(self): 'Rename an attribute of a composite type' if (self.db.version < 90100): self.skipTest('Only available on PG 9.1') inmap = self.std_map() inmap['schema public'].update({'type t1': {'attributes': [{'x': {'type': 'integer'}}, {'y1': {'type': 'integer', 'oldname': 'y'}}, {'z': {'type': 'integer'}}]}}) sql = self.to_sql(inmap, [CREATE_COMPOSITE_STMT]) assert (fix_indent(sql[0]) == 'ALTER TYPE t1 RENAME ATTRIBUTE y TO y1')
Rename an attribute of a composite type
tests/dbobject/test_type.py
test_rename_attribute
reedstrm/Pyrseas
0
python
def test_rename_attribute(self): if (self.db.version < 90100): self.skipTest('Only available on PG 9.1') inmap = self.std_map() inmap['schema public'].update({'type t1': {'attributes': [{'x': {'type': 'integer'}}, {'y1': {'type': 'integer', 'oldname': 'y'}}, {'z': {'type': 'integer'}}]}}) sql = self.to_sql(inmap, [CREATE_COMPOSITE_STMT]) assert (fix_indent(sql[0]) == 'ALTER TYPE t1 RENAME ATTRIBUTE y TO y1')
def test_rename_attribute(self): if (self.db.version < 90100): self.skipTest('Only available on PG 9.1') inmap = self.std_map() inmap['schema public'].update({'type t1': {'attributes': [{'x': {'type': 'integer'}}, {'y1': {'type': 'integer', 'oldname': 'y'}}, {'z': {'type': 'integer'}}]}}) sql = self.to_sql(inmap, [CREATE_COMPOSITE_STMT]) assert (fix_indent(sql[0]) == 'ALTER TYPE t1 RENAME ATTRIBUTE y TO y1')<|docstring|>Rename an attribute of a composite type<|endoftext|>
c743ccbe7c79205e4bfbcd0d98aca681e7d0240a93e9d29b43b8cb094323f2c3
def test_enum(self): 'Map an enum' dbmap = self.to_map([CREATE_ENUM_STMT]) assert (dbmap['schema public']['type t1'] == {'labels': ['red', 'green', 'blue']})
Map an enum
tests/dbobject/test_type.py
test_enum
reedstrm/Pyrseas
0
python
def test_enum(self): dbmap = self.to_map([CREATE_ENUM_STMT]) assert (dbmap['schema public']['type t1'] == {'labels': ['red', 'green', 'blue']})
def test_enum(self): dbmap = self.to_map([CREATE_ENUM_STMT]) assert (dbmap['schema public']['type t1'] == {'labels': ['red', 'green', 'blue']})<|docstring|>Map an enum<|endoftext|>
3715a6062474726b1f8647866559c424ce7b8af223c564bb7fa35333d18f0fcf
def test_create_enum(self): 'Create an enum' inmap = self.std_map() inmap['schema public'].update({'type t1': {'labels': ['red', 'green', 'blue']}}) sql = self.to_sql(inmap) assert (fix_indent(sql[0]) == CREATE_ENUM_STMT)
Create an enum
tests/dbobject/test_type.py
test_create_enum
reedstrm/Pyrseas
0
python
def test_create_enum(self): inmap = self.std_map() inmap['schema public'].update({'type t1': {'labels': ['red', 'green', 'blue']}}) sql = self.to_sql(inmap) assert (fix_indent(sql[0]) == CREATE_ENUM_STMT)
def test_create_enum(self): inmap = self.std_map() inmap['schema public'].update({'type t1': {'labels': ['red', 'green', 'blue']}}) sql = self.to_sql(inmap) assert (fix_indent(sql[0]) == CREATE_ENUM_STMT)<|docstring|>Create an enum<|endoftext|>
6b08328b204f96fbda0ab2d342486374aa77f6bedd0f4d41bee6c4a5bea961cb
def test_drop_enum(self): 'Drop an existing enum' sql = self.to_sql(self.std_map(), [CREATE_ENUM_STMT]) assert (sql == ['DROP TYPE t1'])
Drop an existing enum
tests/dbobject/test_type.py
test_drop_enum
reedstrm/Pyrseas
0
python
def test_drop_enum(self): sql = self.to_sql(self.std_map(), [CREATE_ENUM_STMT]) assert (sql == ['DROP TYPE t1'])
def test_drop_enum(self): sql = self.to_sql(self.std_map(), [CREATE_ENUM_STMT]) assert (sql == ['DROP TYPE t1'])<|docstring|>Drop an existing enum<|endoftext|>
09a450259528540ca466bb357a0279808253c34aa97205c7a47f3268957c2db8
def test_rename_enum(self): 'Rename an existing enum' inmap = self.std_map() inmap['schema public'].update({'type t2': {'oldname': 't1', 'labels': ['red', 'green', 'blue']}}) sql = self.to_sql(inmap, [CREATE_ENUM_STMT]) assert (sql == ['ALTER TYPE t1 RENAME TO t2'])
Rename an existing enum
tests/dbobject/test_type.py
test_rename_enum
reedstrm/Pyrseas
0
python
def test_rename_enum(self): inmap = self.std_map() inmap['schema public'].update({'type t2': {'oldname': 't1', 'labels': ['red', 'green', 'blue']}}) sql = self.to_sql(inmap, [CREATE_ENUM_STMT]) assert (sql == ['ALTER TYPE t1 RENAME TO t2'])
def test_rename_enum(self): inmap = self.std_map() inmap['schema public'].update({'type t2': {'oldname': 't1', 'labels': ['red', 'green', 'blue']}}) sql = self.to_sql(inmap, [CREATE_ENUM_STMT]) assert (sql == ['ALTER TYPE t1 RENAME TO t2'])<|docstring|>Rename an existing enum<|endoftext|>
1ddbc5f26629818c9570b2b833f1f3edbe4ec00cedd26f0ad6e34699e83360ac
def test_base_type(self): 'Map a base type' stmts = [CREATE_SHELL_STMT, CREATE_FUNC_IN, CREATE_FUNC_OUT, CREATE_TYPE_STMT] dbmap = self.to_map(stmts) assert (dbmap['schema public']['type t1'] == {'input': 't1textin', 'output': 't1textout', 'internallength': 'variable', 'alignment': 'int4', 'storage': 'plain', 'category': 'U'})
Map a base type
tests/dbobject/test_type.py
test_base_type
reedstrm/Pyrseas
0
python
def test_base_type(self): stmts = [CREATE_SHELL_STMT, CREATE_FUNC_IN, CREATE_FUNC_OUT, CREATE_TYPE_STMT] dbmap = self.to_map(stmts) assert (dbmap['schema public']['type t1'] == {'input': 't1textin', 'output': 't1textout', 'internallength': 'variable', 'alignment': 'int4', 'storage': 'plain', 'category': 'U'})
def test_base_type(self): stmts = [CREATE_SHELL_STMT, CREATE_FUNC_IN, CREATE_FUNC_OUT, CREATE_TYPE_STMT] dbmap = self.to_map(stmts) assert (dbmap['schema public']['type t1'] == {'input': 't1textin', 'output': 't1textout', 'internallength': 'variable', 'alignment': 'int4', 'storage': 'plain', 'category': 'U'})<|docstring|>Map a base type<|endoftext|>
540859d22deb2ef465d93ecbc21c208bd1671882bdfcc828a1bd6a6b49a2308b
def test_base_type_category(self): 'Map a base type' stmts = [CREATE_SHELL_STMT, CREATE_FUNC_IN, CREATE_FUNC_OUT, "CREATE TYPE t1 (INPUT = t1textin, OUTPUT = t1textout, CATEGORY = 'S')"] dbmap = self.to_map(stmts) assert (dbmap['schema public']['type t1'] == {'input': 't1textin', 'output': 't1textout', 'internallength': 'variable', 'alignment': 'int4', 'storage': 'plain', 'category': 'S'})
Map a base type
tests/dbobject/test_type.py
test_base_type_category
reedstrm/Pyrseas
0
python
def test_base_type_category(self): stmts = [CREATE_SHELL_STMT, CREATE_FUNC_IN, CREATE_FUNC_OUT, "CREATE TYPE t1 (INPUT = t1textin, OUTPUT = t1textout, CATEGORY = 'S')"] dbmap = self.to_map(stmts) assert (dbmap['schema public']['type t1'] == {'input': 't1textin', 'output': 't1textout', 'internallength': 'variable', 'alignment': 'int4', 'storage': 'plain', 'category': 'S'})
def test_base_type_category(self): stmts = [CREATE_SHELL_STMT, CREATE_FUNC_IN, CREATE_FUNC_OUT, "CREATE TYPE t1 (INPUT = t1textin, OUTPUT = t1textout, CATEGORY = 'S')"] dbmap = self.to_map(stmts) assert (dbmap['schema public']['type t1'] == {'input': 't1textin', 'output': 't1textout', 'internallength': 'variable', 'alignment': 'int4', 'storage': 'plain', 'category': 'S'})<|docstring|>Map a base type<|endoftext|>
36d05aae67872aecc7356a42fa87c43a45c7c6ca84badb315a362aee9667344d
def test_create_base_type(self): 'Create a base type' inmap = self.std_map() inmap['schema public'].update({'type t1': {'input': 't1textin', 'output': 't1textout', 'internallength': 'variable', 'alignment': 'int4', 'storage': 'plain'}, 'function t1textin(cstring)': {'language': 'internal', 'returns': 't1', 'strict': True, 'volatility': 'immutable', 'source': 'textin'}, 'function t1textout(t1)': {'language': 'internal', 'returns': 'cstring', 'strict': True, 'volatility': 'immutable', 'source': 'textout'}}) sql = self.to_sql(inmap) assert (fix_indent(sql[0]) == CREATE_SHELL_STMT) assert (fix_indent(sql[1]) == CREATE_FUNC_IN) assert (fix_indent(sql[2]) == CREATE_FUNC_OUT) assert (fix_indent(sql[3]) == 'CREATE TYPE t1 (INPUT = t1textin, OUTPUT = t1textout, INTERNALLENGTH = variable, ALIGNMENT = int4, STORAGE = plain)')
Create a base type
tests/dbobject/test_type.py
test_create_base_type
reedstrm/Pyrseas
0
python
def test_create_base_type(self): inmap = self.std_map() inmap['schema public'].update({'type t1': {'input': 't1textin', 'output': 't1textout', 'internallength': 'variable', 'alignment': 'int4', 'storage': 'plain'}, 'function t1textin(cstring)': {'language': 'internal', 'returns': 't1', 'strict': True, 'volatility': 'immutable', 'source': 'textin'}, 'function t1textout(t1)': {'language': 'internal', 'returns': 'cstring', 'strict': True, 'volatility': 'immutable', 'source': 'textout'}}) sql = self.to_sql(inmap) assert (fix_indent(sql[0]) == CREATE_SHELL_STMT) assert (fix_indent(sql[1]) == CREATE_FUNC_IN) assert (fix_indent(sql[2]) == CREATE_FUNC_OUT) assert (fix_indent(sql[3]) == 'CREATE TYPE t1 (INPUT = t1textin, OUTPUT = t1textout, INTERNALLENGTH = variable, ALIGNMENT = int4, STORAGE = plain)')
def test_create_base_type(self): inmap = self.std_map() inmap['schema public'].update({'type t1': {'input': 't1textin', 'output': 't1textout', 'internallength': 'variable', 'alignment': 'int4', 'storage': 'plain'}, 'function t1textin(cstring)': {'language': 'internal', 'returns': 't1', 'strict': True, 'volatility': 'immutable', 'source': 'textin'}, 'function t1textout(t1)': {'language': 'internal', 'returns': 'cstring', 'strict': True, 'volatility': 'immutable', 'source': 'textout'}}) sql = self.to_sql(inmap) assert (fix_indent(sql[0]) == CREATE_SHELL_STMT) assert (fix_indent(sql[1]) == CREATE_FUNC_IN) assert (fix_indent(sql[2]) == CREATE_FUNC_OUT) assert (fix_indent(sql[3]) == 'CREATE TYPE t1 (INPUT = t1textin, OUTPUT = t1textout, INTERNALLENGTH = variable, ALIGNMENT = int4, STORAGE = plain)')<|docstring|>Create a base type<|endoftext|>
74cc53c14393b9703a4788ac3b60097f68a5c8ca31e76868cf93aba8dd133342
def test_drop_type(self): 'Drop an existing base type' stmts = [CREATE_SHELL_STMT, CREATE_FUNC_IN, CREATE_FUNC_OUT, CREATE_TYPE_STMT] sql = self.to_sql(self.std_map(), stmts, superuser=True) assert (sql == ['DROP TYPE t1 CASCADE'])
Drop an existing base type
tests/dbobject/test_type.py
test_drop_type
reedstrm/Pyrseas
0
python
def test_drop_type(self): stmts = [CREATE_SHELL_STMT, CREATE_FUNC_IN, CREATE_FUNC_OUT, CREATE_TYPE_STMT] sql = self.to_sql(self.std_map(), stmts, superuser=True) assert (sql == ['DROP TYPE t1 CASCADE'])
def test_drop_type(self): stmts = [CREATE_SHELL_STMT, CREATE_FUNC_IN, CREATE_FUNC_OUT, CREATE_TYPE_STMT] sql = self.to_sql(self.std_map(), stmts, superuser=True) assert (sql == ['DROP TYPE t1 CASCADE'])<|docstring|>Drop an existing base type<|endoftext|>
7bb1744640a1ec763da0a019243de896b9b2b456a289e98bb64efa568c255cf4
def __init__(self, pos, sound=True): '\n Initialize the Football\n\n Attributes:\n pos (Point): the initial position of the ball\n ' self.pos = P(pos) self.vel = P(0, 0) self.sound = sound self.free = True self.color = (50, 50, 50) self.ball_stats = {'last_player': (- 1), 'last_team': (- 1), 'player': (- 1), 'team': (- 1)}
Initialize the Football Attributes: pos (Point): the initial position of the ball
src/ball.py
__init__
karnavDesai99/Fifa-42
5
python
def __init__(self, pos, sound=True): '\n Initialize the Football\n\n Attributes:\n pos (Point): the initial position of the ball\n ' self.pos = P(pos) self.vel = P(0, 0) self.sound = sound self.free = True self.color = (50, 50, 50) self.ball_stats = {'last_player': (- 1), 'last_team': (- 1), 'player': (- 1), 'team': (- 1)}
def __init__(self, pos, sound=True): '\n Initialize the Football\n\n Attributes:\n pos (Point): the initial position of the ball\n ' self.pos = P(pos) self.vel = P(0, 0) self.sound = sound self.free = True self.color = (50, 50, 50) self.ball_stats = {'last_player': (- 1), 'last_team': (- 1), 'player': (- 1), 'team': (- 1)}<|docstring|>Initialize the Football Attributes: pos (Point): the initial position of the ball<|endoftext|>
3013a1b9b31500f1e3af02bad67143eceec137d885796c1ac5896f6a6aebcaf8
def draw(self, win, cam, debug=False): '\n Draw the football\n\n Attributes:\n win (pygame.display): Window on which to draw\n debug (bool): If enabled, show the square used to approximate the ball\n as well as a red border whenever the ball is not free\n ' if debug: cam.rect(win, (100, 100, 100), ((self.pos.x - BALL_RADIUS), (self.pos.y - BALL_RADIUS), (BALL_RADIUS * 2), (BALL_RADIUS * 2))) if (not self.free): cam.circle(win, (255, 0, 0), self.pos.val, (BALL_RADIUS + LINE_WIDTH), LINE_WIDTH) cam.blit(win, FOOTBALL_IMG, self.pos.val, size=P((2 * BALL_RADIUS), (2 * BALL_RADIUS)))
Draw the football Attributes: win (pygame.display): Window on which to draw debug (bool): If enabled, show the square used to approximate the ball as well as a red border whenever the ball is not free
src/ball.py
draw
karnavDesai99/Fifa-42
5
python
def draw(self, win, cam, debug=False): '\n Draw the football\n\n Attributes:\n win (pygame.display): Window on which to draw\n debug (bool): If enabled, show the square used to approximate the ball\n as well as a red border whenever the ball is not free\n ' if debug: cam.rect(win, (100, 100, 100), ((self.pos.x - BALL_RADIUS), (self.pos.y - BALL_RADIUS), (BALL_RADIUS * 2), (BALL_RADIUS * 2))) if (not self.free): cam.circle(win, (255, 0, 0), self.pos.val, (BALL_RADIUS + LINE_WIDTH), LINE_WIDTH) cam.blit(win, FOOTBALL_IMG, self.pos.val, size=P((2 * BALL_RADIUS), (2 * BALL_RADIUS)))
def draw(self, win, cam, debug=False): '\n Draw the football\n\n Attributes:\n win (pygame.display): Window on which to draw\n debug (bool): If enabled, show the square used to approximate the ball\n as well as a red border whenever the ball is not free\n ' if debug: cam.rect(win, (100, 100, 100), ((self.pos.x - BALL_RADIUS), (self.pos.y - BALL_RADIUS), (BALL_RADIUS * 2), (BALL_RADIUS * 2))) if (not self.free): cam.circle(win, (255, 0, 0), self.pos.val, (BALL_RADIUS + LINE_WIDTH), LINE_WIDTH) cam.blit(win, FOOTBALL_IMG, self.pos.val, size=P((2 * BALL_RADIUS), (2 * BALL_RADIUS)))<|docstring|>Draw the football Attributes: win (pygame.display): Window on which to draw debug (bool): If enabled, show the square used to approximate the ball as well as a red border whenever the ball is not free<|endoftext|>
c33774268d39c397005706d7e42569c3881ef6bd69786ea5c7977dacd81b3fae
def reset(self, pos): '\n Reset the ball\n\n Attributes:\n pos (Point): the initial position of the ball\n ' self.pos = P(pos) self.vel = P(0, 0) self.free = True self.ball_stats['last_player'] = (- 1) self.ball_stats['last_team'] = (- 1) self.ball_stats['player'] = (- 1) self.ball_stats['team'] = (- 1)
Reset the ball Attributes: pos (Point): the initial position of the ball
src/ball.py
reset
karnavDesai99/Fifa-42
5
python
def reset(self, pos): '\n Reset the ball\n\n Attributes:\n pos (Point): the initial position of the ball\n ' self.pos = P(pos) self.vel = P(0, 0) self.free = True self.ball_stats['last_player'] = (- 1) self.ball_stats['last_team'] = (- 1) self.ball_stats['player'] = (- 1) self.ball_stats['team'] = (- 1)
def reset(self, pos): '\n Reset the ball\n\n Attributes:\n pos (Point): the initial position of the ball\n ' self.pos = P(pos) self.vel = P(0, 0) self.free = True self.ball_stats['last_player'] = (- 1) self.ball_stats['last_team'] = (- 1) self.ball_stats['player'] = (- 1) self.ball_stats['team'] = (- 1)<|docstring|>Reset the ball Attributes: pos (Point): the initial position of the ball<|endoftext|>
03a6ba4216fa44bd41b8b9e9ea53ac35309008530fd7e78c4a50d8932b044750
def goal_check(self, stats): '\n Check if a goal is scored\n\n Attributes:\n stats (Stats): Keep track of game statistics for the pause menu\n ' goal = False reset = False side = 0 if (not (BALL_RADIUS < self.pos.x < (W - BALL_RADIUS))): reset = True if (self.pos.x <= BALL_RADIUS): pos = P((PLAYER_RADIUS + BALL_RADIUS), (H // 2)) side = 1 else: pos = P(((W - PLAYER_RADIUS) - BALL_RADIUS), (H // 2)) side = 2 if ((GOAL_POS[0] * H) < self.pos.y < (GOAL_POS[1] * H)): if self.sound: single_short_whistle.play() goal_sound.play() goal = True stats.goals[(3 - side)] += 1 pos = P((W // 2), (H // 2)) if reset: self.update_stats(stats, goal=goal, side=side) self.reset(pos) return goal
Check if a goal is scored Attributes: stats (Stats): Keep track of game statistics for the pause menu
src/ball.py
goal_check
karnavDesai99/Fifa-42
5
python
def goal_check(self, stats): '\n Check if a goal is scored\n\n Attributes:\n stats (Stats): Keep track of game statistics for the pause menu\n ' goal = False reset = False side = 0 if (not (BALL_RADIUS < self.pos.x < (W - BALL_RADIUS))): reset = True if (self.pos.x <= BALL_RADIUS): pos = P((PLAYER_RADIUS + BALL_RADIUS), (H // 2)) side = 1 else: pos = P(((W - PLAYER_RADIUS) - BALL_RADIUS), (H // 2)) side = 2 if ((GOAL_POS[0] * H) < self.pos.y < (GOAL_POS[1] * H)): if self.sound: single_short_whistle.play() goal_sound.play() goal = True stats.goals[(3 - side)] += 1 pos = P((W // 2), (H // 2)) if reset: self.update_stats(stats, goal=goal, side=side) self.reset(pos) return goal
def goal_check(self, stats): '\n Check if a goal is scored\n\n Attributes:\n stats (Stats): Keep track of game statistics for the pause menu\n ' goal = False reset = False side = 0 if (not (BALL_RADIUS < self.pos.x < (W - BALL_RADIUS))): reset = True if (self.pos.x <= BALL_RADIUS): pos = P((PLAYER_RADIUS + BALL_RADIUS), (H // 2)) side = 1 else: pos = P(((W - PLAYER_RADIUS) - BALL_RADIUS), (H // 2)) side = 2 if ((GOAL_POS[0] * H) < self.pos.y < (GOAL_POS[1] * H)): if self.sound: single_short_whistle.play() goal_sound.play() goal = True stats.goals[(3 - side)] += 1 pos = P((W // 2), (H // 2)) if reset: self.update_stats(stats, goal=goal, side=side) self.reset(pos) return goal<|docstring|>Check if a goal is scored Attributes: stats (Stats): Keep track of game statistics for the pause menu<|endoftext|>
d26e92b026dc2a4dae9b03dcbf87a018aeee1b66cd19f0c44b5907e74ddf2d6e
def update_stats(self, stats, player=None, goal=None, side=None): "\n Sync ball statistics with the global variables\n\n Attributes:\n player (Agent): Player that received the ball\n goal (bool): True if a goal is scored\n side (int): id of the team which conceded the goal\n\n Activates when a player receives the ball or during a goal attempt\n\n - Possession: +1 if same team pass is recorded\n - Pass: +1 to 'succ' if same team pass is recorded\n +1 to 'fail' if diff team pass is recorded\n - Shot: +1 to 'succ' if a goal is scored\n +1 to 'fail' if goal is not scored (out of bounds) / keeper stops the ball\n Does not apply if player shoots towards his own goal\n " if (player is not None): self.ball_stats['last_player'] = self.ball_stats['player'] self.ball_stats['last_team'] = self.ball_stats['team'] self.ball_stats['player'] = player.id self.ball_stats['team'] = player.team_id if (self.ball_stats['last_team'] == self.ball_stats['team']): if (self.ball_stats['last_player'] != self.ball_stats['player']): stats.pos[self.ball_stats['team']] += 1 stats.pass_acc[self.ball_stats['team']]['succ'] += 1 elif (self.ball_stats['last_team'] != (- 1)): if (self.ball_stats['player'] == 0): stats.shot_acc[self.ball_stats['last_team']]['fail'] += 1 else: stats.pass_acc[self.ball_stats['last_team']]['fail'] += 1 elif ((goal is not None) and (side != self.ball_stats['team'])): if goal: stats.shot_acc[self.ball_stats['team']]['succ'] += 1 else: stats.shot_acc[self.ball_stats['team']]['fail'] += 1 if self.sound: boo_sound.play()
Sync ball statistics with the global variables Attributes: player (Agent): Player that received the ball goal (bool): True if a goal is scored side (int): id of the team which conceded the goal Activates when a player receives the ball or during a goal attempt - Possession: +1 if same team pass is recorded - Pass: +1 to 'succ' if same team pass is recorded +1 to 'fail' if diff team pass is recorded - Shot: +1 to 'succ' if a goal is scored +1 to 'fail' if goal is not scored (out of bounds) / keeper stops the ball Does not apply if player shoots towards his own goal
src/ball.py
update_stats
karnavDesai99/Fifa-42
5
python
def update_stats(self, stats, player=None, goal=None, side=None): "\n Sync ball statistics with the global variables\n\n Attributes:\n player (Agent): Player that received the ball\n goal (bool): True if a goal is scored\n side (int): id of the team which conceded the goal\n\n Activates when a player receives the ball or during a goal attempt\n\n - Possession: +1 if same team pass is recorded\n - Pass: +1 to 'succ' if same team pass is recorded\n +1 to 'fail' if diff team pass is recorded\n - Shot: +1 to 'succ' if a goal is scored\n +1 to 'fail' if goal is not scored (out of bounds) / keeper stops the ball\n Does not apply if player shoots towards his own goal\n " if (player is not None): self.ball_stats['last_player'] = self.ball_stats['player'] self.ball_stats['last_team'] = self.ball_stats['team'] self.ball_stats['player'] = player.id self.ball_stats['team'] = player.team_id if (self.ball_stats['last_team'] == self.ball_stats['team']): if (self.ball_stats['last_player'] != self.ball_stats['player']): stats.pos[self.ball_stats['team']] += 1 stats.pass_acc[self.ball_stats['team']]['succ'] += 1 elif (self.ball_stats['last_team'] != (- 1)): if (self.ball_stats['player'] == 0): stats.shot_acc[self.ball_stats['last_team']]['fail'] += 1 else: stats.pass_acc[self.ball_stats['last_team']]['fail'] += 1 elif ((goal is not None) and (side != self.ball_stats['team'])): if goal: stats.shot_acc[self.ball_stats['team']]['succ'] += 1 else: stats.shot_acc[self.ball_stats['team']]['fail'] += 1 if self.sound: boo_sound.play()
def update_stats(self, stats, player=None, goal=None, side=None): "\n Sync ball statistics with the global variables\n\n Attributes:\n player (Agent): Player that received the ball\n goal (bool): True if a goal is scored\n side (int): id of the team which conceded the goal\n\n Activates when a player receives the ball or during a goal attempt\n\n - Possession: +1 if same team pass is recorded\n - Pass: +1 to 'succ' if same team pass is recorded\n +1 to 'fail' if diff team pass is recorded\n - Shot: +1 to 'succ' if a goal is scored\n +1 to 'fail' if goal is not scored (out of bounds) / keeper stops the ball\n Does not apply if player shoots towards his own goal\n " if (player is not None): self.ball_stats['last_player'] = self.ball_stats['player'] self.ball_stats['last_team'] = self.ball_stats['team'] self.ball_stats['player'] = player.id self.ball_stats['team'] = player.team_id if (self.ball_stats['last_team'] == self.ball_stats['team']): if (self.ball_stats['last_player'] != self.ball_stats['player']): stats.pos[self.ball_stats['team']] += 1 stats.pass_acc[self.ball_stats['team']]['succ'] += 1 elif (self.ball_stats['last_team'] != (- 1)): if (self.ball_stats['player'] == 0): stats.shot_acc[self.ball_stats['last_team']]['fail'] += 1 else: stats.pass_acc[self.ball_stats['last_team']]['fail'] += 1 elif ((goal is not None) and (side != self.ball_stats['team'])): if goal: stats.shot_acc[self.ball_stats['team']]['succ'] += 1 else: stats.shot_acc[self.ball_stats['team']]['fail'] += 1 if self.sound: boo_sound.play()<|docstring|>Sync ball statistics with the global variables Attributes: player (Agent): Player that received the ball goal (bool): True if a goal is scored side (int): id of the team which conceded the goal Activates when a player receives the ball or during a goal attempt - Possession: +1 if same team pass is recorded - Pass: +1 to 'succ' if same team pass is recorded +1 to 'fail' if diff team pass is recorded - Shot: +1 to 'succ' if a goal is scored +1 to 'fail' if goal is not scored (out of bounds) / keeper stops the ball Does not apply if player shoots towards his own goal<|endoftext|>
0eb28007b1b259dacc205503fdc849da89b1c80d13e0c35a5d17b632b9e599cb
def ball_player_collision(self, team, stats): '\n Check if the ball has been captured by a player\n\n Attributes:\n team (Team): The team for which to check\n stats (Stats): Keep track of game statistics for the pause menu\n ' for player in team.players: if (self.pos.dist(player.pos) < (PLAYER_RADIUS + BALL_RADIUS)): self.vel = P(0, 0) self.free = False self.dir = player.walk_dir self.update_stats(stats, player=player)
Check if the ball has been captured by a player Attributes: team (Team): The team for which to check stats (Stats): Keep track of game statistics for the pause menu
src/ball.py
ball_player_collision
karnavDesai99/Fifa-42
5
python
def ball_player_collision(self, team, stats): '\n Check if the ball has been captured by a player\n\n Attributes:\n team (Team): The team for which to check\n stats (Stats): Keep track of game statistics for the pause menu\n ' for player in team.players: if (self.pos.dist(player.pos) < (PLAYER_RADIUS + BALL_RADIUS)): self.vel = P(0, 0) self.free = False self.dir = player.walk_dir self.update_stats(stats, player=player)
def ball_player_collision(self, team, stats): '\n Check if the ball has been captured by a player\n\n Attributes:\n team (Team): The team for which to check\n stats (Stats): Keep track of game statistics for the pause menu\n ' for player in team.players: if (self.pos.dist(player.pos) < (PLAYER_RADIUS + BALL_RADIUS)): self.vel = P(0, 0) self.free = False self.dir = player.walk_dir self.update_stats(stats, player=player)<|docstring|>Check if the ball has been captured by a player Attributes: team (Team): The team for which to check stats (Stats): Keep track of game statistics for the pause menu<|endoftext|>
ab1c8233cb17010f11d5cbcf5b5798da39d7feac1212fd66e1537d88a3b161a4
def check_capture(self, team1, team2, stats): "\n If the ball is not free, move the ball along with the player rather than on it's own\n\n Attributes:\n team1 (Team): Team facing right\n team2 (Team): Team facing left\n stats (Stats): Keep track of game statistics for the pause menu\n " if (self.ball_stats['team'] == 1): player = team1.players[self.ball_stats['player']] elif (self.ball_stats['team'] == 2): player = team2.players[self.ball_stats['player']] if (not self.free): self.dir = player.walk_dir if (self.dir == 'L'): self.pos = (player.pos + ((P((- 1), 1) * BALL_OFFSET) * BALL_CENTER)) elif (self.dir == 'R'): self.pos = (player.pos + (BALL_OFFSET * BALL_CENTER)) else: self.ball_player_collision(team1, stats) self.ball_player_collision(team2, stats)
If the ball is not free, move the ball along with the player rather than on it's own Attributes: team1 (Team): Team facing right team2 (Team): Team facing left stats (Stats): Keep track of game statistics for the pause menu
src/ball.py
check_capture
karnavDesai99/Fifa-42
5
python
def check_capture(self, team1, team2, stats): "\n If the ball is not free, move the ball along with the player rather than on it's own\n\n Attributes:\n team1 (Team): Team facing right\n team2 (Team): Team facing left\n stats (Stats): Keep track of game statistics for the pause menu\n " if (self.ball_stats['team'] == 1): player = team1.players[self.ball_stats['player']] elif (self.ball_stats['team'] == 2): player = team2.players[self.ball_stats['player']] if (not self.free): self.dir = player.walk_dir if (self.dir == 'L'): self.pos = (player.pos + ((P((- 1), 1) * BALL_OFFSET) * BALL_CENTER)) elif (self.dir == 'R'): self.pos = (player.pos + (BALL_OFFSET * BALL_CENTER)) else: self.ball_player_collision(team1, stats) self.ball_player_collision(team2, stats)
def check_capture(self, team1, team2, stats): "\n If the ball is not free, move the ball along with the player rather than on it's own\n\n Attributes:\n team1 (Team): Team facing right\n team2 (Team): Team facing left\n stats (Stats): Keep track of game statistics for the pause menu\n " if (self.ball_stats['team'] == 1): player = team1.players[self.ball_stats['player']] elif (self.ball_stats['team'] == 2): player = team2.players[self.ball_stats['player']] if (not self.free): self.dir = player.walk_dir if (self.dir == 'L'): self.pos = (player.pos + ((P((- 1), 1) * BALL_OFFSET) * BALL_CENTER)) elif (self.dir == 'R'): self.pos = (player.pos + (BALL_OFFSET * BALL_CENTER)) else: self.ball_player_collision(team1, stats) self.ball_player_collision(team2, stats)<|docstring|>If the ball is not free, move the ball along with the player rather than on it's own Attributes: team1 (Team): Team facing right team2 (Team): Team facing left stats (Stats): Keep track of game statistics for the pause menu<|endoftext|>
dd991ed1cb2b84ed35d8fa65e3ffaf8af7ff003a076c49c4a03d30868098c7a9
def update(self, team1, team2, action1, action2, stats): "\n Update the ball's (in-game) state according to specified action\n Attributes:\n team1 (Team): Team facing right\n team2 (Team): Team facing left\n action1 (list): Actions of team 1\n action2 (list): Actions of team 2\n stats (Stats): Keep track of game statistics for the pause menu\n\n Calls ```check_capture()``` and ```goal_check()```\n " if (self.ball_stats['team'] == 1): a = action1[self.ball_stats['player']] elif (self.ball_stats['team'] == 2): a = action2[self.ball_stats['player']] if self.free: self.pos += (P(BALL_SPEED, BALL_SPEED) * self.vel) if (not (BALL_RADIUS <= self.pos.x <= (W - BALL_RADIUS))): self.pos.x = min(max(BALL_RADIUS, self.pos.x), (W - BALL_RADIUS)) self.vel.x *= (- 1) if self.sound: bounce.play() if (not (BALL_RADIUS <= self.pos.y <= (H - BALL_RADIUS))): self.pos.y = min(max(BALL_RADIUS, self.pos.y), (H - BALL_RADIUS)) self.vel.y *= (- 1) if self.sound: bounce.play() elif (a in ['SHOOT_Q', 'SHOOT_W', 'SHOOT_E', 'SHOOT_A', 'SHOOT_D', 'SHOOT_Z', 'SHOOT_X', 'SHOOT_C']): self.vel = P(ACT[a]) self.free = True const = ((PLAYER_RADIUS + BALL_RADIUS) + 1) if ((self.dir == 'R') and (ACT[a].x >= 0)): self.pos.x += (const - (BALL_RADIUS * BALL_OFFSET.x)) elif ((self.dir == 'R') and (ACT[a].x < 0)): self.pos.x -= (const + (BALL_RADIUS * BALL_OFFSET.x)) elif ((self.dir == 'L') and (ACT[a].x > 0)): self.pos.x += (const + (BALL_RADIUS * BALL_OFFSET.x)) elif ((self.dir == 'L') and (ACT[a].x <= 0)): self.pos.x -= (const - (BALL_RADIUS * BALL_OFFSET.x)) self.check_capture(team1, team2, stats) self.goal_check(stats)
Update the ball's (in-game) state according to specified action Attributes: team1 (Team): Team facing right team2 (Team): Team facing left action1 (list): Actions of team 1 action2 (list): Actions of team 2 stats (Stats): Keep track of game statistics for the pause menu Calls ```check_capture()``` and ```goal_check()```
src/ball.py
update
karnavDesai99/Fifa-42
5
python
def update(self, team1, team2, action1, action2, stats): "\n Update the ball's (in-game) state according to specified action\n Attributes:\n team1 (Team): Team facing right\n team2 (Team): Team facing left\n action1 (list): Actions of team 1\n action2 (list): Actions of team 2\n stats (Stats): Keep track of game statistics for the pause menu\n\n Calls ```check_capture()``` and ```goal_check()```\n " if (self.ball_stats['team'] == 1): a = action1[self.ball_stats['player']] elif (self.ball_stats['team'] == 2): a = action2[self.ball_stats['player']] if self.free: self.pos += (P(BALL_SPEED, BALL_SPEED) * self.vel) if (not (BALL_RADIUS <= self.pos.x <= (W - BALL_RADIUS))): self.pos.x = min(max(BALL_RADIUS, self.pos.x), (W - BALL_RADIUS)) self.vel.x *= (- 1) if self.sound: bounce.play() if (not (BALL_RADIUS <= self.pos.y <= (H - BALL_RADIUS))): self.pos.y = min(max(BALL_RADIUS, self.pos.y), (H - BALL_RADIUS)) self.vel.y *= (- 1) if self.sound: bounce.play() elif (a in ['SHOOT_Q', 'SHOOT_W', 'SHOOT_E', 'SHOOT_A', 'SHOOT_D', 'SHOOT_Z', 'SHOOT_X', 'SHOOT_C']): self.vel = P(ACT[a]) self.free = True const = ((PLAYER_RADIUS + BALL_RADIUS) + 1) if ((self.dir == 'R') and (ACT[a].x >= 0)): self.pos.x += (const - (BALL_RADIUS * BALL_OFFSET.x)) elif ((self.dir == 'R') and (ACT[a].x < 0)): self.pos.x -= (const + (BALL_RADIUS * BALL_OFFSET.x)) elif ((self.dir == 'L') and (ACT[a].x > 0)): self.pos.x += (const + (BALL_RADIUS * BALL_OFFSET.x)) elif ((self.dir == 'L') and (ACT[a].x <= 0)): self.pos.x -= (const - (BALL_RADIUS * BALL_OFFSET.x)) self.check_capture(team1, team2, stats) self.goal_check(stats)
def update(self, team1, team2, action1, action2, stats): "\n Update the ball's (in-game) state according to specified action\n Attributes:\n team1 (Team): Team facing right\n team2 (Team): Team facing left\n action1 (list): Actions of team 1\n action2 (list): Actions of team 2\n stats (Stats): Keep track of game statistics for the pause menu\n\n Calls ```check_capture()``` and ```goal_check()```\n " if (self.ball_stats['team'] == 1): a = action1[self.ball_stats['player']] elif (self.ball_stats['team'] == 2): a = action2[self.ball_stats['player']] if self.free: self.pos += (P(BALL_SPEED, BALL_SPEED) * self.vel) if (not (BALL_RADIUS <= self.pos.x <= (W - BALL_RADIUS))): self.pos.x = min(max(BALL_RADIUS, self.pos.x), (W - BALL_RADIUS)) self.vel.x *= (- 1) if self.sound: bounce.play() if (not (BALL_RADIUS <= self.pos.y <= (H - BALL_RADIUS))): self.pos.y = min(max(BALL_RADIUS, self.pos.y), (H - BALL_RADIUS)) self.vel.y *= (- 1) if self.sound: bounce.play() elif (a in ['SHOOT_Q', 'SHOOT_W', 'SHOOT_E', 'SHOOT_A', 'SHOOT_D', 'SHOOT_Z', 'SHOOT_X', 'SHOOT_C']): self.vel = P(ACT[a]) self.free = True const = ((PLAYER_RADIUS + BALL_RADIUS) + 1) if ((self.dir == 'R') and (ACT[a].x >= 0)): self.pos.x += (const - (BALL_RADIUS * BALL_OFFSET.x)) elif ((self.dir == 'R') and (ACT[a].x < 0)): self.pos.x -= (const + (BALL_RADIUS * BALL_OFFSET.x)) elif ((self.dir == 'L') and (ACT[a].x > 0)): self.pos.x += (const + (BALL_RADIUS * BALL_OFFSET.x)) elif ((self.dir == 'L') and (ACT[a].x <= 0)): self.pos.x -= (const - (BALL_RADIUS * BALL_OFFSET.x)) self.check_capture(team1, team2, stats) self.goal_check(stats)<|docstring|>Update the ball's (in-game) state according to specified action Attributes: team1 (Team): Team facing right team2 (Team): Team facing left action1 (list): Actions of team 1 action2 (list): Actions of team 2 stats (Stats): Keep track of game statistics for the pause menu Calls ```check_capture()``` and ```goal_check()```<|endoftext|>
9a5eeab0d2f42b5a7610bc33989ea3ac6eb0ab51f9c1ef0d376a2c7782d0bd1c
def modify(self, **kw): '\n see docs for SortTuple for what this does\n ' outList = [kw.get(attr, getattr(self, attr)) for attr in _attrList] return self.__class__(*outList)
see docs for SortTuple for what this does
music21/search/lyrics.py
modify
cuthbertLab/music21
1,449
python
def modify(self, **kw): '\n \n ' outList = [kw.get(attr, getattr(self, attr)) for attr in _attrList] return self.__class__(*outList)
def modify(self, **kw): '\n \n ' outList = [kw.get(attr, getattr(self, attr)) for attr in _attrList] return self.__class__(*outList)<|docstring|>see docs for SortTuple for what this does<|endoftext|>
accc5fd9515c5cbf2a0fd37deb90ea105f3dee778773a4e25fb8c6e49114e9ba
@property def indexText(self) -> str: "\n Returns the text that has been indexed (a la, :func:`~music21.text.assembleLyrics`):\n\n >>> p0 = corpus.parse('luca/gloria').parts[0]\n >>> ls = search.lyrics.LyricSearcher(p0)\n >>> ls.indexText[0:25]\n 'Et in terra pax hominibus'\n " if (self._indexText is None): self.index() return (self._indexText or '')
Returns the text that has been indexed (a la, :func:`~music21.text.assembleLyrics`): >>> p0 = corpus.parse('luca/gloria').parts[0] >>> ls = search.lyrics.LyricSearcher(p0) >>> ls.indexText[0:25] 'Et in terra pax hominibus'
music21/search/lyrics.py
indexText
cuthbertLab/music21
1,449
python
@property def indexText(self) -> str: "\n Returns the text that has been indexed (a la, :func:`~music21.text.assembleLyrics`):\n\n >>> p0 = corpus.parse('luca/gloria').parts[0]\n >>> ls = search.lyrics.LyricSearcher(p0)\n >>> ls.indexText[0:25]\n 'Et in terra pax hominibus'\n " if (self._indexText is None): self.index() return (self._indexText or )
@property def indexText(self) -> str: "\n Returns the text that has been indexed (a la, :func:`~music21.text.assembleLyrics`):\n\n >>> p0 = corpus.parse('luca/gloria').parts[0]\n >>> ls = search.lyrics.LyricSearcher(p0)\n >>> ls.indexText[0:25]\n 'Et in terra pax hominibus'\n " if (self._indexText is None): self.index() return (self._indexText or )<|docstring|>Returns the text that has been indexed (a la, :func:`~music21.text.assembleLyrics`): >>> p0 = corpus.parse('luca/gloria').parts[0] >>> ls = search.lyrics.LyricSearcher(p0) >>> ls.indexText[0:25] 'Et in terra pax hominibus'<|endoftext|>
e70c1cd0cf709120979f55fabfcc2bd5574fd4203557c35e193057d204aeca83
def index(self, s=None) -> List[IndexedLyric]: "\n A method that indexes the Stream's lyrics and returns the list\n of IndexedLyric objects.\n\n This does not actually need to be run, since calling .search() will call this if\n it hasn't already been called.\n\n >>> from pprint import pprint as pp\n\n >>> p0 = corpus.parse('luca/gloria').parts[0]\n >>> ls = search.lyrics.LyricSearcher(p0)\n >>> pp(ls.index()[0:5])\n [IndexedLyric(el=<music21.note.Note C>, start=0, end=2, measure=1,\n lyric=<music21.note.Lyric number=1 syllabic=single text='Et'>, text='Et',\n identifier=1),\n IndexedLyric(el=<music21.note.Note D>, start=3, end=5, measure=2,\n lyric=<music21.note.Lyric number=1 syllabic=single text='in'>, text='in',\n identifier=1),\n IndexedLyric(el=<music21.note.Note F>, start=6, end=9, measure=2,\n lyric=<music21.note.Lyric number=1 syllabic=begin text='ter'>, text='ter',\n identifier=1),\n IndexedLyric(el=<music21.note.Note F>, start=9, end=11, measure=3,\n lyric=<music21.note.Lyric number=1 syllabic=end text='ra'>, text='ra',\n identifier=1),\n IndexedLyric(el=<music21.note.Note A>, start=12, end=15, measure=3,\n lyric=<music21.note.Lyric number=1 syllabic=single text='pax'>, text='pax',\n identifier=1)]\n\n Changed in v6.7 -- indexed lyrics get an identifier.\n " if (s is None): s = self.stream else: self.stream = s indexByIdentifier = OrderedDict() iTextByIdentifier = OrderedDict() lastSyllabicByIdentifier = OrderedDict() for n in s.recurse().getElementsByClass('NotRest'): ls: List[note.Lyric] = n.lyrics if (not ls): continue mNum = n.measureNumber for ly in ls: if (not ly.text): continue lyIdentifier = ly.identifier if (lyIdentifier not in iTextByIdentifier): iTextByIdentifier[lyIdentifier] = '' lastSyllabicByIdentifier[lyIdentifier] = None indexByIdentifier[lyIdentifier] = [] iText = iTextByIdentifier[lyIdentifier] lastSyllabic = lastSyllabicByIdentifier[lyIdentifier] index = indexByIdentifier[lyIdentifier] posStart = len(iText) txt = ly.text if (lastSyllabic in ('begin', 'middle', None)): iText += txt else: iText += (' ' + txt) posStart += 1 iTextByIdentifier[lyIdentifier] = iText il = IndexedLyric(n, posStart, (posStart + len(txt)), mNum, ly, txt, lyIdentifier, 0, 0) index.append(il) if (not ly.isComposite): lastSyllabic = ly.syllabic else: lastSyllabic = ly.components[(- 1)].syllabic lastSyllabicByIdentifier[lyIdentifier] = lastSyllabic indexPreliminary = [] for oneIdentifierIndex in indexByIdentifier.values(): indexPreliminary.extend(oneIdentifierIndex) absolutePosShift = 0 lastIdentifier = None lastEnd = 0 index = [] oneIndex: IndexedLyric for oneIndex in indexPreliminary: if (oneIndex.identifier != lastIdentifier): absolutePosShift = lastEnd if (lastEnd != 0): absolutePosShift += len(LINEBREAK_TOKEN) lastIdentifier = oneIndex.identifier newIndex = oneIndex.modify(absoluteStart=(oneIndex.start + absolutePosShift), absoluteEnd=(oneIndex.end + absolutePosShift)) lastEnd = newIndex.absoluteEnd index.append(newIndex) self._indexTuples = index iText = LINEBREAK_TOKEN.join(iTextByIdentifier.values()) self._indexText = iText return index
A method that indexes the Stream's lyrics and returns the list of IndexedLyric objects. This does not actually need to be run, since calling .search() will call this if it hasn't already been called. >>> from pprint import pprint as pp >>> p0 = corpus.parse('luca/gloria').parts[0] >>> ls = search.lyrics.LyricSearcher(p0) >>> pp(ls.index()[0:5]) [IndexedLyric(el=<music21.note.Note C>, start=0, end=2, measure=1, lyric=<music21.note.Lyric number=1 syllabic=single text='Et'>, text='Et', identifier=1), IndexedLyric(el=<music21.note.Note D>, start=3, end=5, measure=2, lyric=<music21.note.Lyric number=1 syllabic=single text='in'>, text='in', identifier=1), IndexedLyric(el=<music21.note.Note F>, start=6, end=9, measure=2, lyric=<music21.note.Lyric number=1 syllabic=begin text='ter'>, text='ter', identifier=1), IndexedLyric(el=<music21.note.Note F>, start=9, end=11, measure=3, lyric=<music21.note.Lyric number=1 syllabic=end text='ra'>, text='ra', identifier=1), IndexedLyric(el=<music21.note.Note A>, start=12, end=15, measure=3, lyric=<music21.note.Lyric number=1 syllabic=single text='pax'>, text='pax', identifier=1)] Changed in v6.7 -- indexed lyrics get an identifier.
music21/search/lyrics.py
index
cuthbertLab/music21
1,449
python
def index(self, s=None) -> List[IndexedLyric]: "\n A method that indexes the Stream's lyrics and returns the list\n of IndexedLyric objects.\n\n This does not actually need to be run, since calling .search() will call this if\n it hasn't already been called.\n\n >>> from pprint import pprint as pp\n\n >>> p0 = corpus.parse('luca/gloria').parts[0]\n >>> ls = search.lyrics.LyricSearcher(p0)\n >>> pp(ls.index()[0:5])\n [IndexedLyric(el=<music21.note.Note C>, start=0, end=2, measure=1,\n lyric=<music21.note.Lyric number=1 syllabic=single text='Et'>, text='Et',\n identifier=1),\n IndexedLyric(el=<music21.note.Note D>, start=3, end=5, measure=2,\n lyric=<music21.note.Lyric number=1 syllabic=single text='in'>, text='in',\n identifier=1),\n IndexedLyric(el=<music21.note.Note F>, start=6, end=9, measure=2,\n lyric=<music21.note.Lyric number=1 syllabic=begin text='ter'>, text='ter',\n identifier=1),\n IndexedLyric(el=<music21.note.Note F>, start=9, end=11, measure=3,\n lyric=<music21.note.Lyric number=1 syllabic=end text='ra'>, text='ra',\n identifier=1),\n IndexedLyric(el=<music21.note.Note A>, start=12, end=15, measure=3,\n lyric=<music21.note.Lyric number=1 syllabic=single text='pax'>, text='pax',\n identifier=1)]\n\n Changed in v6.7 -- indexed lyrics get an identifier.\n " if (s is None): s = self.stream else: self.stream = s indexByIdentifier = OrderedDict() iTextByIdentifier = OrderedDict() lastSyllabicByIdentifier = OrderedDict() for n in s.recurse().getElementsByClass('NotRest'): ls: List[note.Lyric] = n.lyrics if (not ls): continue mNum = n.measureNumber for ly in ls: if (not ly.text): continue lyIdentifier = ly.identifier if (lyIdentifier not in iTextByIdentifier): iTextByIdentifier[lyIdentifier] = lastSyllabicByIdentifier[lyIdentifier] = None indexByIdentifier[lyIdentifier] = [] iText = iTextByIdentifier[lyIdentifier] lastSyllabic = lastSyllabicByIdentifier[lyIdentifier] index = indexByIdentifier[lyIdentifier] posStart = len(iText) txt = ly.text if (lastSyllabic in ('begin', 'middle', None)): iText += txt else: iText += (' ' + txt) posStart += 1 iTextByIdentifier[lyIdentifier] = iText il = IndexedLyric(n, posStart, (posStart + len(txt)), mNum, ly, txt, lyIdentifier, 0, 0) index.append(il) if (not ly.isComposite): lastSyllabic = ly.syllabic else: lastSyllabic = ly.components[(- 1)].syllabic lastSyllabicByIdentifier[lyIdentifier] = lastSyllabic indexPreliminary = [] for oneIdentifierIndex in indexByIdentifier.values(): indexPreliminary.extend(oneIdentifierIndex) absolutePosShift = 0 lastIdentifier = None lastEnd = 0 index = [] oneIndex: IndexedLyric for oneIndex in indexPreliminary: if (oneIndex.identifier != lastIdentifier): absolutePosShift = lastEnd if (lastEnd != 0): absolutePosShift += len(LINEBREAK_TOKEN) lastIdentifier = oneIndex.identifier newIndex = oneIndex.modify(absoluteStart=(oneIndex.start + absolutePosShift), absoluteEnd=(oneIndex.end + absolutePosShift)) lastEnd = newIndex.absoluteEnd index.append(newIndex) self._indexTuples = index iText = LINEBREAK_TOKEN.join(iTextByIdentifier.values()) self._indexText = iText return index
def index(self, s=None) -> List[IndexedLyric]: "\n A method that indexes the Stream's lyrics and returns the list\n of IndexedLyric objects.\n\n This does not actually need to be run, since calling .search() will call this if\n it hasn't already been called.\n\n >>> from pprint import pprint as pp\n\n >>> p0 = corpus.parse('luca/gloria').parts[0]\n >>> ls = search.lyrics.LyricSearcher(p0)\n >>> pp(ls.index()[0:5])\n [IndexedLyric(el=<music21.note.Note C>, start=0, end=2, measure=1,\n lyric=<music21.note.Lyric number=1 syllabic=single text='Et'>, text='Et',\n identifier=1),\n IndexedLyric(el=<music21.note.Note D>, start=3, end=5, measure=2,\n lyric=<music21.note.Lyric number=1 syllabic=single text='in'>, text='in',\n identifier=1),\n IndexedLyric(el=<music21.note.Note F>, start=6, end=9, measure=2,\n lyric=<music21.note.Lyric number=1 syllabic=begin text='ter'>, text='ter',\n identifier=1),\n IndexedLyric(el=<music21.note.Note F>, start=9, end=11, measure=3,\n lyric=<music21.note.Lyric number=1 syllabic=end text='ra'>, text='ra',\n identifier=1),\n IndexedLyric(el=<music21.note.Note A>, start=12, end=15, measure=3,\n lyric=<music21.note.Lyric number=1 syllabic=single text='pax'>, text='pax',\n identifier=1)]\n\n Changed in v6.7 -- indexed lyrics get an identifier.\n " if (s is None): s = self.stream else: self.stream = s indexByIdentifier = OrderedDict() iTextByIdentifier = OrderedDict() lastSyllabicByIdentifier = OrderedDict() for n in s.recurse().getElementsByClass('NotRest'): ls: List[note.Lyric] = n.lyrics if (not ls): continue mNum = n.measureNumber for ly in ls: if (not ly.text): continue lyIdentifier = ly.identifier if (lyIdentifier not in iTextByIdentifier): iTextByIdentifier[lyIdentifier] = lastSyllabicByIdentifier[lyIdentifier] = None indexByIdentifier[lyIdentifier] = [] iText = iTextByIdentifier[lyIdentifier] lastSyllabic = lastSyllabicByIdentifier[lyIdentifier] index = indexByIdentifier[lyIdentifier] posStart = len(iText) txt = ly.text if (lastSyllabic in ('begin', 'middle', None)): iText += txt else: iText += (' ' + txt) posStart += 1 iTextByIdentifier[lyIdentifier] = iText il = IndexedLyric(n, posStart, (posStart + len(txt)), mNum, ly, txt, lyIdentifier, 0, 0) index.append(il) if (not ly.isComposite): lastSyllabic = ly.syllabic else: lastSyllabic = ly.components[(- 1)].syllabic lastSyllabicByIdentifier[lyIdentifier] = lastSyllabic indexPreliminary = [] for oneIdentifierIndex in indexByIdentifier.values(): indexPreliminary.extend(oneIdentifierIndex) absolutePosShift = 0 lastIdentifier = None lastEnd = 0 index = [] oneIndex: IndexedLyric for oneIndex in indexPreliminary: if (oneIndex.identifier != lastIdentifier): absolutePosShift = lastEnd if (lastEnd != 0): absolutePosShift += len(LINEBREAK_TOKEN) lastIdentifier = oneIndex.identifier newIndex = oneIndex.modify(absoluteStart=(oneIndex.start + absolutePosShift), absoluteEnd=(oneIndex.end + absolutePosShift)) lastEnd = newIndex.absoluteEnd index.append(newIndex) self._indexTuples = index iText = LINEBREAK_TOKEN.join(iTextByIdentifier.values()) self._indexText = iText return index<|docstring|>A method that indexes the Stream's lyrics and returns the list of IndexedLyric objects. This does not actually need to be run, since calling .search() will call this if it hasn't already been called. >>> from pprint import pprint as pp >>> p0 = corpus.parse('luca/gloria').parts[0] >>> ls = search.lyrics.LyricSearcher(p0) >>> pp(ls.index()[0:5]) [IndexedLyric(el=<music21.note.Note C>, start=0, end=2, measure=1, lyric=<music21.note.Lyric number=1 syllabic=single text='Et'>, text='Et', identifier=1), IndexedLyric(el=<music21.note.Note D>, start=3, end=5, measure=2, lyric=<music21.note.Lyric number=1 syllabic=single text='in'>, text='in', identifier=1), IndexedLyric(el=<music21.note.Note F>, start=6, end=9, measure=2, lyric=<music21.note.Lyric number=1 syllabic=begin text='ter'>, text='ter', identifier=1), IndexedLyric(el=<music21.note.Note F>, start=9, end=11, measure=3, lyric=<music21.note.Lyric number=1 syllabic=end text='ra'>, text='ra', identifier=1), IndexedLyric(el=<music21.note.Note A>, start=12, end=15, measure=3, lyric=<music21.note.Lyric number=1 syllabic=single text='pax'>, text='pax', identifier=1)] Changed in v6.7 -- indexed lyrics get an identifier.<|endoftext|>
55088cf83f4158cbf5cfcdf124b1c564697a291f4fbeadbc04d857fa21af1926
def search(self, textOrRe, s=None) -> List[SearchMatch]: "\n Return a list of SearchMatch objects matching a string or regular expression.\n\n >>> import re\n\n >>> p0 = corpus.parse('luca/gloria').parts[0]\n >>> ls = search.lyrics.LyricSearcher(p0)\n >>> ls.search('pax')\n [SearchMatch(mStart=3, mEnd=3, matchText='pax', els=(<music21.note.Note A>,),\n indices=[...], identifier=1)]\n\n Search a regular expression that takes into account non-word characters such as commas\n\n >>> agnus = re.compile(r'agnus dei\\W+filius patris', re.IGNORECASE)\n >>> sm = ls.search(agnus)\n >>> sm\n [SearchMatch(mStart=49, mEnd=55, matchText='Agnus Dei, Filius Patris',\n els=(<music21.note.Note G>,...<music21.note.Note G>), indices=[...],\n identifier=1)]\n >>> sm[0].mStart, sm[0].mEnd\n (49, 55)\n\n OMIT_FROM_DOCS\n\n Make sure that regexp characters are not interpreted as such in plaintext:\n\n This should only match Amen.\n\n >>> ls.search('en.')\n [SearchMatch(mStart=125, mEnd=125, matchText='en.', ...)]\n\n This should match 'ene', 'eni', and 'en.'\n\n >>> ls.search(re.compile('en.'))\n [SearchMatch(mStart=13, mEnd=13, matchText='ene', ...),\n SearchMatch(mStart=38, mEnd=38, matchText='ens', ...),\n SearchMatch(mStart=42, mEnd=42, matchText='eni', ...),\n SearchMatch(mStart=125, mEnd=125, matchText='en.', ...)]\n " if (s is None): s = self.stream if ((s is not self.stream) or (not self._indexTuples)): self.index(s) if isinstance(textOrRe, str): plainText = True elif hasattr(textOrRe, 'finditer'): plainText = False else: raise LyricSearcherException(f'{textOrRe} is not a string or RE with the finditer() function') if (plainText is True): return self._reSearch(re.compile(re.escape(textOrRe))) else: return self._reSearch(textOrRe)
Return a list of SearchMatch objects matching a string or regular expression. >>> import re >>> p0 = corpus.parse('luca/gloria').parts[0] >>> ls = search.lyrics.LyricSearcher(p0) >>> ls.search('pax') [SearchMatch(mStart=3, mEnd=3, matchText='pax', els=(<music21.note.Note A>,), indices=[...], identifier=1)] Search a regular expression that takes into account non-word characters such as commas >>> agnus = re.compile(r'agnus dei\W+filius patris', re.IGNORECASE) >>> sm = ls.search(agnus) >>> sm [SearchMatch(mStart=49, mEnd=55, matchText='Agnus Dei, Filius Patris', els=(<music21.note.Note G>,...<music21.note.Note G>), indices=[...], identifier=1)] >>> sm[0].mStart, sm[0].mEnd (49, 55) OMIT_FROM_DOCS Make sure that regexp characters are not interpreted as such in plaintext: This should only match Amen. >>> ls.search('en.') [SearchMatch(mStart=125, mEnd=125, matchText='en.', ...)] This should match 'ene', 'eni', and 'en.' >>> ls.search(re.compile('en.')) [SearchMatch(mStart=13, mEnd=13, matchText='ene', ...), SearchMatch(mStart=38, mEnd=38, matchText='ens', ...), SearchMatch(mStart=42, mEnd=42, matchText='eni', ...), SearchMatch(mStart=125, mEnd=125, matchText='en.', ...)]
music21/search/lyrics.py
search
cuthbertLab/music21
1,449
python
def search(self, textOrRe, s=None) -> List[SearchMatch]: "\n Return a list of SearchMatch objects matching a string or regular expression.\n\n >>> import re\n\n >>> p0 = corpus.parse('luca/gloria').parts[0]\n >>> ls = search.lyrics.LyricSearcher(p0)\n >>> ls.search('pax')\n [SearchMatch(mStart=3, mEnd=3, matchText='pax', els=(<music21.note.Note A>,),\n indices=[...], identifier=1)]\n\n Search a regular expression that takes into account non-word characters such as commas\n\n >>> agnus = re.compile(r'agnus dei\\W+filius patris', re.IGNORECASE)\n >>> sm = ls.search(agnus)\n >>> sm\n [SearchMatch(mStart=49, mEnd=55, matchText='Agnus Dei, Filius Patris',\n els=(<music21.note.Note G>,...<music21.note.Note G>), indices=[...],\n identifier=1)]\n >>> sm[0].mStart, sm[0].mEnd\n (49, 55)\n\n OMIT_FROM_DOCS\n\n Make sure that regexp characters are not interpreted as such in plaintext:\n\n This should only match Amen.\n\n >>> ls.search('en.')\n [SearchMatch(mStart=125, mEnd=125, matchText='en.', ...)]\n\n This should match 'ene', 'eni', and 'en.'\n\n >>> ls.search(re.compile('en.'))\n [SearchMatch(mStart=13, mEnd=13, matchText='ene', ...),\n SearchMatch(mStart=38, mEnd=38, matchText='ens', ...),\n SearchMatch(mStart=42, mEnd=42, matchText='eni', ...),\n SearchMatch(mStart=125, mEnd=125, matchText='en.', ...)]\n " if (s is None): s = self.stream if ((s is not self.stream) or (not self._indexTuples)): self.index(s) if isinstance(textOrRe, str): plainText = True elif hasattr(textOrRe, 'finditer'): plainText = False else: raise LyricSearcherException(f'{textOrRe} is not a string or RE with the finditer() function') if (plainText is True): return self._reSearch(re.compile(re.escape(textOrRe))) else: return self._reSearch(textOrRe)
def search(self, textOrRe, s=None) -> List[SearchMatch]: "\n Return a list of SearchMatch objects matching a string or regular expression.\n\n >>> import re\n\n >>> p0 = corpus.parse('luca/gloria').parts[0]\n >>> ls = search.lyrics.LyricSearcher(p0)\n >>> ls.search('pax')\n [SearchMatch(mStart=3, mEnd=3, matchText='pax', els=(<music21.note.Note A>,),\n indices=[...], identifier=1)]\n\n Search a regular expression that takes into account non-word characters such as commas\n\n >>> agnus = re.compile(r'agnus dei\\W+filius patris', re.IGNORECASE)\n >>> sm = ls.search(agnus)\n >>> sm\n [SearchMatch(mStart=49, mEnd=55, matchText='Agnus Dei, Filius Patris',\n els=(<music21.note.Note G>,...<music21.note.Note G>), indices=[...],\n identifier=1)]\n >>> sm[0].mStart, sm[0].mEnd\n (49, 55)\n\n OMIT_FROM_DOCS\n\n Make sure that regexp characters are not interpreted as such in plaintext:\n\n This should only match Amen.\n\n >>> ls.search('en.')\n [SearchMatch(mStart=125, mEnd=125, matchText='en.', ...)]\n\n This should match 'ene', 'eni', and 'en.'\n\n >>> ls.search(re.compile('en.'))\n [SearchMatch(mStart=13, mEnd=13, matchText='ene', ...),\n SearchMatch(mStart=38, mEnd=38, matchText='ens', ...),\n SearchMatch(mStart=42, mEnd=42, matchText='eni', ...),\n SearchMatch(mStart=125, mEnd=125, matchText='en.', ...)]\n " if (s is None): s = self.stream if ((s is not self.stream) or (not self._indexTuples)): self.index(s) if isinstance(textOrRe, str): plainText = True elif hasattr(textOrRe, 'finditer'): plainText = False else: raise LyricSearcherException(f'{textOrRe} is not a string or RE with the finditer() function') if (plainText is True): return self._reSearch(re.compile(re.escape(textOrRe))) else: return self._reSearch(textOrRe)<|docstring|>Return a list of SearchMatch objects matching a string or regular expression. >>> import re >>> p0 = corpus.parse('luca/gloria').parts[0] >>> ls = search.lyrics.LyricSearcher(p0) >>> ls.search('pax') [SearchMatch(mStart=3, mEnd=3, matchText='pax', els=(<music21.note.Note A>,), indices=[...], identifier=1)] Search a regular expression that takes into account non-word characters such as commas >>> agnus = re.compile(r'agnus dei\W+filius patris', re.IGNORECASE) >>> sm = ls.search(agnus) >>> sm [SearchMatch(mStart=49, mEnd=55, matchText='Agnus Dei, Filius Patris', els=(<music21.note.Note G>,...<music21.note.Note G>), indices=[...], identifier=1)] >>> sm[0].mStart, sm[0].mEnd (49, 55) OMIT_FROM_DOCS Make sure that regexp characters are not interpreted as such in plaintext: This should only match Amen. >>> ls.search('en.') [SearchMatch(mStart=125, mEnd=125, matchText='en.', ...)] This should match 'ene', 'eni', and 'en.' >>> ls.search(re.compile('en.')) [SearchMatch(mStart=13, mEnd=13, matchText='ene', ...), SearchMatch(mStart=38, mEnd=38, matchText='ens', ...), SearchMatch(mStart=42, mEnd=42, matchText='eni', ...), SearchMatch(mStart=125, mEnd=125, matchText='en.', ...)]<|endoftext|>
afe76d519f5f5e1185f231258d0cc5d20adade5fd96a1dd615eeaa0fc224ff4a
def _findObjInIndexByPos(self, pos) -> IndexedLyric: '\n Finds an object in ._indexTuples by search position.\n\n Raises exception if no IndexedLyric for that position.\n\n Runs in O(n) time on number of lyrics. Would not be\n hard to do in O(log(n)) for very large lyrics\n ' for i in self._indexTuples: if (i.start <= pos <= i.end): return i raise LyricSearcherException(f'Could not find position {pos} in text')
Finds an object in ._indexTuples by search position. Raises exception if no IndexedLyric for that position. Runs in O(n) time on number of lyrics. Would not be hard to do in O(log(n)) for very large lyrics
music21/search/lyrics.py
_findObjInIndexByPos
cuthbertLab/music21
1,449
python
def _findObjInIndexByPos(self, pos) -> IndexedLyric: '\n Finds an object in ._indexTuples by search position.\n\n Raises exception if no IndexedLyric for that position.\n\n Runs in O(n) time on number of lyrics. Would not be\n hard to do in O(log(n)) for very large lyrics\n ' for i in self._indexTuples: if (i.start <= pos <= i.end): return i raise LyricSearcherException(f'Could not find position {pos} in text')
def _findObjInIndexByPos(self, pos) -> IndexedLyric: '\n Finds an object in ._indexTuples by search position.\n\n Raises exception if no IndexedLyric for that position.\n\n Runs in O(n) time on number of lyrics. Would not be\n hard to do in O(log(n)) for very large lyrics\n ' for i in self._indexTuples: if (i.start <= pos <= i.end): return i raise LyricSearcherException(f'Could not find position {pos} in text')<|docstring|>Finds an object in ._indexTuples by search position. Raises exception if no IndexedLyric for that position. Runs in O(n) time on number of lyrics. Would not be hard to do in O(log(n)) for very large lyrics<|endoftext|>
4d3a1c6cdf6a5c5ae02dc1b101e6426a1d46a95ba300a4a725aff98247a105df
def _findObjsInIndexByPos(self, posStart, posEnd=999999) -> List[IndexedLyric]: '\n Finds a list of objects in ._indexTuples by search position (inclusive)\n ' indices = [] for i in self._indexTuples: if ((i.absoluteEnd >= posStart) and (i.absoluteStart <= posEnd)): indices.append(i) if (not indices): raise LyricSearcherException(f'Could not find position {posStart} in text') return indices
Finds a list of objects in ._indexTuples by search position (inclusive)
music21/search/lyrics.py
_findObjsInIndexByPos
cuthbertLab/music21
1,449
python
def _findObjsInIndexByPos(self, posStart, posEnd=999999) -> List[IndexedLyric]: '\n \n ' indices = [] for i in self._indexTuples: if ((i.absoluteEnd >= posStart) and (i.absoluteStart <= posEnd)): indices.append(i) if (not indices): raise LyricSearcherException(f'Could not find position {posStart} in text') return indices
def _findObjsInIndexByPos(self, posStart, posEnd=999999) -> List[IndexedLyric]: '\n \n ' indices = [] for i in self._indexTuples: if ((i.absoluteEnd >= posStart) and (i.absoluteStart <= posEnd)): indices.append(i) if (not indices): raise LyricSearcherException(f'Could not find position {posStart} in text') return indices<|docstring|>Finds a list of objects in ._indexTuples by search position (inclusive)<|endoftext|>
1b525399552cd59eede77c8df219acec91e9c588ad1d23cc1d79d1dcb416032c
def testMultipleLyricsInNote(self): '\n This score uses a non-breaking space as an elision\n ' from music21 import converter from music21 import search partXML = '\n <score-partwise>\n <part-list>\n <score-part id="P1">\n <part-name>MusicXML Part</part-name>\n </score-part>\n </part-list>\n <part id="P1">\n <measure number="1">\n <note>\n <pitch>\n <step>G</step>\n <octave>4</octave>\n </pitch>\n <duration>1</duration>\n <voice>1</voice>\n <type>quarter</type>\n <lyric number="1">\n <syllabic>middle</syllabic>\n <text>la</text>\n <elision>\xa0</elision>\n <syllabic>middle</syllabic>\n <text>la</text>\n </lyric>\n </note>\n </measure>\n </part>\n </score-partwise>\n ' s = converter.parse(partXML, format='MusicXML') ly = s.flatten().notes[0].lyrics[0] def runSearch(): ls = search.lyrics.LyricSearcher(s) self.assertEqual(ls.indexText, 'la\xa0la') runSearch() ly.components[0].syllabic = 'begin' ly.components[1].syllabic = 'end' runSearch() ly.components[0].syllabic = 'single' ly.components[1].syllabic = 'single' runSearch()
This score uses a non-breaking space as an elision
music21/search/lyrics.py
testMultipleLyricsInNote
cuthbertLab/music21
1,449
python
def testMultipleLyricsInNote(self): '\n \n ' from music21 import converter from music21 import search partXML = '\n <score-partwise>\n <part-list>\n <score-part id="P1">\n <part-name>MusicXML Part</part-name>\n </score-part>\n </part-list>\n <part id="P1">\n <measure number="1">\n <note>\n <pitch>\n <step>G</step>\n <octave>4</octave>\n </pitch>\n <duration>1</duration>\n <voice>1</voice>\n <type>quarter</type>\n <lyric number="1">\n <syllabic>middle</syllabic>\n <text>la</text>\n <elision>\xa0</elision>\n <syllabic>middle</syllabic>\n <text>la</text>\n </lyric>\n </note>\n </measure>\n </part>\n </score-partwise>\n ' s = converter.parse(partXML, format='MusicXML') ly = s.flatten().notes[0].lyrics[0] def runSearch(): ls = search.lyrics.LyricSearcher(s) self.assertEqual(ls.indexText, 'la\xa0la') runSearch() ly.components[0].syllabic = 'begin' ly.components[1].syllabic = 'end' runSearch() ly.components[0].syllabic = 'single' ly.components[1].syllabic = 'single' runSearch()
def testMultipleLyricsInNote(self): '\n \n ' from music21 import converter from music21 import search partXML = '\n <score-partwise>\n <part-list>\n <score-part id="P1">\n <part-name>MusicXML Part</part-name>\n </score-part>\n </part-list>\n <part id="P1">\n <measure number="1">\n <note>\n <pitch>\n <step>G</step>\n <octave>4</octave>\n </pitch>\n <duration>1</duration>\n <voice>1</voice>\n <type>quarter</type>\n <lyric number="1">\n <syllabic>middle</syllabic>\n <text>la</text>\n <elision>\xa0</elision>\n <syllabic>middle</syllabic>\n <text>la</text>\n </lyric>\n </note>\n </measure>\n </part>\n </score-partwise>\n ' s = converter.parse(partXML, format='MusicXML') ly = s.flatten().notes[0].lyrics[0] def runSearch(): ls = search.lyrics.LyricSearcher(s) self.assertEqual(ls.indexText, 'la\xa0la') runSearch() ly.components[0].syllabic = 'begin' ly.components[1].syllabic = 'end' runSearch() ly.components[0].syllabic = 'single' ly.components[1].syllabic = 'single' runSearch()<|docstring|>This score uses a non-breaking space as an elision<|endoftext|>
7217c307c1681b66cc9847f3889690d0c3e34c193192df6284d6442d286fcd31
def __init__(self): '\n QueueConversationCallbackEventTopicCallbackMediaParticipant - a model defined in Swagger\n\n :param dict swaggerTypes: The key is attribute name\n and the value is attribute type.\n :param dict attributeMap: The key is attribute name\n and the value is json key in definition.\n ' self.swagger_types = {'id': 'str', 'name': 'str', 'address': 'str', 'start_time': 'datetime', 'connected_time': 'datetime', 'end_time': 'datetime', 'start_hold_time': 'datetime', 'purpose': 'str', 'state': 'str', 'direction': 'str', 'disconnect_type': 'str', 'held': 'bool', 'wrapup_required': 'bool', 'wrapup_prompt': 'str', 'user': 'QueueConversationCallbackEventTopicUriReference', 'queue': 'QueueConversationCallbackEventTopicUriReference', 'team': 'QueueConversationCallbackEventTopicUriReference', 'attributes': 'dict(str, str)', 'error_info': 'QueueConversationCallbackEventTopicErrorBody', 'script': 'QueueConversationCallbackEventTopicUriReference', 'wrapup_timeout_ms': 'int', 'wrapup_skipped': 'bool', 'alerting_timeout_ms': 'int', 'provider': 'str', 'external_contact': 'QueueConversationCallbackEventTopicUriReference', 'external_organization': 'QueueConversationCallbackEventTopicUriReference', 'wrapup': 'QueueConversationCallbackEventTopicWrapup', 'conversation_routing_data': 'QueueConversationCallbackEventTopicConversationRoutingData', 'peer': 'str', 'screen_recording_state': 'str', 'flagged_reason': 'str', 'journey_context': 'QueueConversationCallbackEventTopicJourneyContext', 'start_acw_time': 'datetime', 'end_acw_time': 'datetime', 'outbound_preview': 'QueueConversationCallbackEventTopicDialerPreview', 'voicemail': 'QueueConversationCallbackEventTopicVoicemail', 'callback_numbers': 'list[str]', 'callback_user_name': 'str', 'skip_enabled': 'bool', 'external_campaign': 'bool', 'timeout_seconds': 'int', 'callback_scheduled_time': 'datetime', 'automated_callback_config_id': 'str'} self.attribute_map = {'id': 'id', 'name': 'name', 'address': 'address', 'start_time': 'startTime', 'connected_time': 'connectedTime', 'end_time': 'endTime', 'start_hold_time': 'startHoldTime', 'purpose': 'purpose', 'state': 'state', 'direction': 'direction', 'disconnect_type': 'disconnectType', 'held': 'held', 'wrapup_required': 'wrapupRequired', 'wrapup_prompt': 'wrapupPrompt', 'user': 'user', 'queue': 'queue', 'team': 'team', 'attributes': 'attributes', 'error_info': 'errorInfo', 'script': 'script', 'wrapup_timeout_ms': 'wrapupTimeoutMs', 'wrapup_skipped': 'wrapupSkipped', 'alerting_timeout_ms': 'alertingTimeoutMs', 'provider': 'provider', 'external_contact': 'externalContact', 'external_organization': 'externalOrganization', 'wrapup': 'wrapup', 'conversation_routing_data': 'conversationRoutingData', 'peer': 'peer', 'screen_recording_state': 'screenRecordingState', 'flagged_reason': 'flaggedReason', 'journey_context': 'journeyContext', 'start_acw_time': 'startAcwTime', 'end_acw_time': 'endAcwTime', 'outbound_preview': 'outboundPreview', 'voicemail': 'voicemail', 'callback_numbers': 'callbackNumbers', 'callback_user_name': 'callbackUserName', 'skip_enabled': 'skipEnabled', 'external_campaign': 'externalCampaign', 'timeout_seconds': 'timeoutSeconds', 'callback_scheduled_time': 'callbackScheduledTime', 'automated_callback_config_id': 'automatedCallbackConfigId'} self._id = None self._name = None self._address = None self._start_time = None self._connected_time = None self._end_time = None self._start_hold_time = None self._purpose = None self._state = None self._direction = None self._disconnect_type = None self._held = None self._wrapup_required = None self._wrapup_prompt = None self._user = None self._queue = None self._team = None self._attributes = None self._error_info = None self._script = None self._wrapup_timeout_ms = None self._wrapup_skipped = None self._alerting_timeout_ms = None self._provider = None self._external_contact = None self._external_organization = None self._wrapup = None self._conversation_routing_data = None self._peer = None self._screen_recording_state = None self._flagged_reason = None self._journey_context = None self._start_acw_time = None self._end_acw_time = None self._outbound_preview = None self._voicemail = None self._callback_numbers = None self._callback_user_name = None self._skip_enabled = None self._external_campaign = None self._timeout_seconds = None self._callback_scheduled_time = None self._automated_callback_config_id = None
QueueConversationCallbackEventTopicCallbackMediaParticipant - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition.
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
__init__
cjohnson-ctl/platform-client-sdk-python
10
python
def __init__(self): '\n QueueConversationCallbackEventTopicCallbackMediaParticipant - a model defined in Swagger\n\n :param dict swaggerTypes: The key is attribute name\n and the value is attribute type.\n :param dict attributeMap: The key is attribute name\n and the value is json key in definition.\n ' self.swagger_types = {'id': 'str', 'name': 'str', 'address': 'str', 'start_time': 'datetime', 'connected_time': 'datetime', 'end_time': 'datetime', 'start_hold_time': 'datetime', 'purpose': 'str', 'state': 'str', 'direction': 'str', 'disconnect_type': 'str', 'held': 'bool', 'wrapup_required': 'bool', 'wrapup_prompt': 'str', 'user': 'QueueConversationCallbackEventTopicUriReference', 'queue': 'QueueConversationCallbackEventTopicUriReference', 'team': 'QueueConversationCallbackEventTopicUriReference', 'attributes': 'dict(str, str)', 'error_info': 'QueueConversationCallbackEventTopicErrorBody', 'script': 'QueueConversationCallbackEventTopicUriReference', 'wrapup_timeout_ms': 'int', 'wrapup_skipped': 'bool', 'alerting_timeout_ms': 'int', 'provider': 'str', 'external_contact': 'QueueConversationCallbackEventTopicUriReference', 'external_organization': 'QueueConversationCallbackEventTopicUriReference', 'wrapup': 'QueueConversationCallbackEventTopicWrapup', 'conversation_routing_data': 'QueueConversationCallbackEventTopicConversationRoutingData', 'peer': 'str', 'screen_recording_state': 'str', 'flagged_reason': 'str', 'journey_context': 'QueueConversationCallbackEventTopicJourneyContext', 'start_acw_time': 'datetime', 'end_acw_time': 'datetime', 'outbound_preview': 'QueueConversationCallbackEventTopicDialerPreview', 'voicemail': 'QueueConversationCallbackEventTopicVoicemail', 'callback_numbers': 'list[str]', 'callback_user_name': 'str', 'skip_enabled': 'bool', 'external_campaign': 'bool', 'timeout_seconds': 'int', 'callback_scheduled_time': 'datetime', 'automated_callback_config_id': 'str'} self.attribute_map = {'id': 'id', 'name': 'name', 'address': 'address', 'start_time': 'startTime', 'connected_time': 'connectedTime', 'end_time': 'endTime', 'start_hold_time': 'startHoldTime', 'purpose': 'purpose', 'state': 'state', 'direction': 'direction', 'disconnect_type': 'disconnectType', 'held': 'held', 'wrapup_required': 'wrapupRequired', 'wrapup_prompt': 'wrapupPrompt', 'user': 'user', 'queue': 'queue', 'team': 'team', 'attributes': 'attributes', 'error_info': 'errorInfo', 'script': 'script', 'wrapup_timeout_ms': 'wrapupTimeoutMs', 'wrapup_skipped': 'wrapupSkipped', 'alerting_timeout_ms': 'alertingTimeoutMs', 'provider': 'provider', 'external_contact': 'externalContact', 'external_organization': 'externalOrganization', 'wrapup': 'wrapup', 'conversation_routing_data': 'conversationRoutingData', 'peer': 'peer', 'screen_recording_state': 'screenRecordingState', 'flagged_reason': 'flaggedReason', 'journey_context': 'journeyContext', 'start_acw_time': 'startAcwTime', 'end_acw_time': 'endAcwTime', 'outbound_preview': 'outboundPreview', 'voicemail': 'voicemail', 'callback_numbers': 'callbackNumbers', 'callback_user_name': 'callbackUserName', 'skip_enabled': 'skipEnabled', 'external_campaign': 'externalCampaign', 'timeout_seconds': 'timeoutSeconds', 'callback_scheduled_time': 'callbackScheduledTime', 'automated_callback_config_id': 'automatedCallbackConfigId'} self._id = None self._name = None self._address = None self._start_time = None self._connected_time = None self._end_time = None self._start_hold_time = None self._purpose = None self._state = None self._direction = None self._disconnect_type = None self._held = None self._wrapup_required = None self._wrapup_prompt = None self._user = None self._queue = None self._team = None self._attributes = None self._error_info = None self._script = None self._wrapup_timeout_ms = None self._wrapup_skipped = None self._alerting_timeout_ms = None self._provider = None self._external_contact = None self._external_organization = None self._wrapup = None self._conversation_routing_data = None self._peer = None self._screen_recording_state = None self._flagged_reason = None self._journey_context = None self._start_acw_time = None self._end_acw_time = None self._outbound_preview = None self._voicemail = None self._callback_numbers = None self._callback_user_name = None self._skip_enabled = None self._external_campaign = None self._timeout_seconds = None self._callback_scheduled_time = None self._automated_callback_config_id = None
def __init__(self): '\n QueueConversationCallbackEventTopicCallbackMediaParticipant - a model defined in Swagger\n\n :param dict swaggerTypes: The key is attribute name\n and the value is attribute type.\n :param dict attributeMap: The key is attribute name\n and the value is json key in definition.\n ' self.swagger_types = {'id': 'str', 'name': 'str', 'address': 'str', 'start_time': 'datetime', 'connected_time': 'datetime', 'end_time': 'datetime', 'start_hold_time': 'datetime', 'purpose': 'str', 'state': 'str', 'direction': 'str', 'disconnect_type': 'str', 'held': 'bool', 'wrapup_required': 'bool', 'wrapup_prompt': 'str', 'user': 'QueueConversationCallbackEventTopicUriReference', 'queue': 'QueueConversationCallbackEventTopicUriReference', 'team': 'QueueConversationCallbackEventTopicUriReference', 'attributes': 'dict(str, str)', 'error_info': 'QueueConversationCallbackEventTopicErrorBody', 'script': 'QueueConversationCallbackEventTopicUriReference', 'wrapup_timeout_ms': 'int', 'wrapup_skipped': 'bool', 'alerting_timeout_ms': 'int', 'provider': 'str', 'external_contact': 'QueueConversationCallbackEventTopicUriReference', 'external_organization': 'QueueConversationCallbackEventTopicUriReference', 'wrapup': 'QueueConversationCallbackEventTopicWrapup', 'conversation_routing_data': 'QueueConversationCallbackEventTopicConversationRoutingData', 'peer': 'str', 'screen_recording_state': 'str', 'flagged_reason': 'str', 'journey_context': 'QueueConversationCallbackEventTopicJourneyContext', 'start_acw_time': 'datetime', 'end_acw_time': 'datetime', 'outbound_preview': 'QueueConversationCallbackEventTopicDialerPreview', 'voicemail': 'QueueConversationCallbackEventTopicVoicemail', 'callback_numbers': 'list[str]', 'callback_user_name': 'str', 'skip_enabled': 'bool', 'external_campaign': 'bool', 'timeout_seconds': 'int', 'callback_scheduled_time': 'datetime', 'automated_callback_config_id': 'str'} self.attribute_map = {'id': 'id', 'name': 'name', 'address': 'address', 'start_time': 'startTime', 'connected_time': 'connectedTime', 'end_time': 'endTime', 'start_hold_time': 'startHoldTime', 'purpose': 'purpose', 'state': 'state', 'direction': 'direction', 'disconnect_type': 'disconnectType', 'held': 'held', 'wrapup_required': 'wrapupRequired', 'wrapup_prompt': 'wrapupPrompt', 'user': 'user', 'queue': 'queue', 'team': 'team', 'attributes': 'attributes', 'error_info': 'errorInfo', 'script': 'script', 'wrapup_timeout_ms': 'wrapupTimeoutMs', 'wrapup_skipped': 'wrapupSkipped', 'alerting_timeout_ms': 'alertingTimeoutMs', 'provider': 'provider', 'external_contact': 'externalContact', 'external_organization': 'externalOrganization', 'wrapup': 'wrapup', 'conversation_routing_data': 'conversationRoutingData', 'peer': 'peer', 'screen_recording_state': 'screenRecordingState', 'flagged_reason': 'flaggedReason', 'journey_context': 'journeyContext', 'start_acw_time': 'startAcwTime', 'end_acw_time': 'endAcwTime', 'outbound_preview': 'outboundPreview', 'voicemail': 'voicemail', 'callback_numbers': 'callbackNumbers', 'callback_user_name': 'callbackUserName', 'skip_enabled': 'skipEnabled', 'external_campaign': 'externalCampaign', 'timeout_seconds': 'timeoutSeconds', 'callback_scheduled_time': 'callbackScheduledTime', 'automated_callback_config_id': 'automatedCallbackConfigId'} self._id = None self._name = None self._address = None self._start_time = None self._connected_time = None self._end_time = None self._start_hold_time = None self._purpose = None self._state = None self._direction = None self._disconnect_type = None self._held = None self._wrapup_required = None self._wrapup_prompt = None self._user = None self._queue = None self._team = None self._attributes = None self._error_info = None self._script = None self._wrapup_timeout_ms = None self._wrapup_skipped = None self._alerting_timeout_ms = None self._provider = None self._external_contact = None self._external_organization = None self._wrapup = None self._conversation_routing_data = None self._peer = None self._screen_recording_state = None self._flagged_reason = None self._journey_context = None self._start_acw_time = None self._end_acw_time = None self._outbound_preview = None self._voicemail = None self._callback_numbers = None self._callback_user_name = None self._skip_enabled = None self._external_campaign = None self._timeout_seconds = None self._callback_scheduled_time = None self._automated_callback_config_id = None<|docstring|>QueueConversationCallbackEventTopicCallbackMediaParticipant - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition.<|endoftext|>
eecd9dde07d0ecc082f41ef8dc2c48ee48e136b32e403e3409f9e05b1883839c
@property def id(self): '\n Gets the id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._id
Gets the id of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The id of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: str
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
id
cjohnson-ctl/platform-client-sdk-python
10
python
@property def id(self): '\n Gets the id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._id
@property def id(self): '\n Gets the id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._id<|docstring|>Gets the id of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The id of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: str<|endoftext|>
14e616aff77ddf078ab5a13ccdbb68acf563681d4abfa01fa6af11cc9d41538e
@id.setter def id(self, id): '\n Sets the id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param id: The id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n ' self._id = id
Sets the id of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param id: The id of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: str
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
id
cjohnson-ctl/platform-client-sdk-python
10
python
@id.setter def id(self, id): '\n Sets the id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param id: The id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n ' self._id = id
@id.setter def id(self, id): '\n Sets the id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param id: The id of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n ' self._id = id<|docstring|>Sets the id of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param id: The id of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: str<|endoftext|>
a10e06ecd215a2f18c253d21501e3328d09ddc6ade61213d6da33863764a66d2
@property def name(self): '\n Gets the name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._name
Gets the name of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The name of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: str
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
name
cjohnson-ctl/platform-client-sdk-python
10
python
@property def name(self): '\n Gets the name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._name
@property def name(self): '\n Gets the name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._name<|docstring|>Gets the name of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The name of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: str<|endoftext|>
81b93e36aa8ae5d3d39abb4ec8ef8250f6b920c265c2e4dcec4c4cfd1b26ca7a
@name.setter def name(self, name): '\n Sets the name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param name: The name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n ' self._name = name
Sets the name of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param name: The name of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: str
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
name
cjohnson-ctl/platform-client-sdk-python
10
python
@name.setter def name(self, name): '\n Sets the name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param name: The name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n ' self._name = name
@name.setter def name(self, name): '\n Sets the name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param name: The name of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n ' self._name = name<|docstring|>Sets the name of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param name: The name of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: str<|endoftext|>
e82a49be55b121355b0e8564a834eeefb73db9d2f0f70d0c97ba444beab00547
@property def address(self): '\n Gets the address of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The address of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._address
Gets the address of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The address of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: str
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
address
cjohnson-ctl/platform-client-sdk-python
10
python
@property def address(self): '\n Gets the address of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The address of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._address
@property def address(self): '\n Gets the address of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The address of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._address<|docstring|>Gets the address of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The address of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: str<|endoftext|>
93ce4cdc0d70ea7e2e672b210e29945735c55f0ae65ff1092afe5d3019375af8
@address.setter def address(self, address): '\n Sets the address of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param address: The address of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n ' self._address = address
Sets the address of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param address: The address of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: str
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
address
cjohnson-ctl/platform-client-sdk-python
10
python
@address.setter def address(self, address): '\n Sets the address of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param address: The address of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n ' self._address = address
@address.setter def address(self, address): '\n Sets the address of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param address: The address of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n ' self._address = address<|docstring|>Sets the address of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param address: The address of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: str<|endoftext|>
b9d421620515891e4c8f7b6614ecaf91c3808eac344ade3f2e675bcde118afca
@property def start_time(self): '\n Gets the start_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The start_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: datetime\n ' return self._start_time
Gets the start_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The start_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: datetime
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
start_time
cjohnson-ctl/platform-client-sdk-python
10
python
@property def start_time(self): '\n Gets the start_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The start_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: datetime\n ' return self._start_time
@property def start_time(self): '\n Gets the start_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The start_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: datetime\n ' return self._start_time<|docstring|>Gets the start_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The start_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: datetime<|endoftext|>
4d25c14614f65b1154b12a1dc56c93858285a5a11ea9856933ef098cd542e997
@start_time.setter def start_time(self, start_time): '\n Sets the start_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param start_time: The start_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: datetime\n ' self._start_time = start_time
Sets the start_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param start_time: The start_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: datetime
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
start_time
cjohnson-ctl/platform-client-sdk-python
10
python
@start_time.setter def start_time(self, start_time): '\n Sets the start_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param start_time: The start_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: datetime\n ' self._start_time = start_time
@start_time.setter def start_time(self, start_time): '\n Sets the start_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param start_time: The start_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: datetime\n ' self._start_time = start_time<|docstring|>Sets the start_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param start_time: The start_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: datetime<|endoftext|>
af74b29688f8201e80ffa896ee49e567bd364d9f87268e1666804586cc22f4f5
@property def connected_time(self): '\n Gets the connected_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The connected_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: datetime\n ' return self._connected_time
Gets the connected_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The connected_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: datetime
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
connected_time
cjohnson-ctl/platform-client-sdk-python
10
python
@property def connected_time(self): '\n Gets the connected_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The connected_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: datetime\n ' return self._connected_time
@property def connected_time(self): '\n Gets the connected_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The connected_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: datetime\n ' return self._connected_time<|docstring|>Gets the connected_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The connected_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: datetime<|endoftext|>
8b0738d890a47ef8704dbcdd2654c8e5f7611bfd86c0e53e7ebdf01c67d142b6
@connected_time.setter def connected_time(self, connected_time): '\n Sets the connected_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param connected_time: The connected_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: datetime\n ' self._connected_time = connected_time
Sets the connected_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param connected_time: The connected_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: datetime
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
connected_time
cjohnson-ctl/platform-client-sdk-python
10
python
@connected_time.setter def connected_time(self, connected_time): '\n Sets the connected_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param connected_time: The connected_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: datetime\n ' self._connected_time = connected_time
@connected_time.setter def connected_time(self, connected_time): '\n Sets the connected_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param connected_time: The connected_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: datetime\n ' self._connected_time = connected_time<|docstring|>Sets the connected_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param connected_time: The connected_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: datetime<|endoftext|>
690d59ab3eb72ac6c3ee28b8b58dc94788972926062edd97bc15c04199fe0e15
@property def end_time(self): '\n Gets the end_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The end_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: datetime\n ' return self._end_time
Gets the end_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The end_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: datetime
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
end_time
cjohnson-ctl/platform-client-sdk-python
10
python
@property def end_time(self): '\n Gets the end_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The end_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: datetime\n ' return self._end_time
@property def end_time(self): '\n Gets the end_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The end_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: datetime\n ' return self._end_time<|docstring|>Gets the end_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The end_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: datetime<|endoftext|>
11c7a9e5b93105853b39c1b467c8611473dacbfa3fa1c046795884715e65eb50
@end_time.setter def end_time(self, end_time): '\n Sets the end_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param end_time: The end_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: datetime\n ' self._end_time = end_time
Sets the end_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param end_time: The end_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: datetime
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
end_time
cjohnson-ctl/platform-client-sdk-python
10
python
@end_time.setter def end_time(self, end_time): '\n Sets the end_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param end_time: The end_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: datetime\n ' self._end_time = end_time
@end_time.setter def end_time(self, end_time): '\n Sets the end_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param end_time: The end_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: datetime\n ' self._end_time = end_time<|docstring|>Sets the end_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param end_time: The end_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: datetime<|endoftext|>
2370688d29b1fb1ab5d8aa7dd9ddaa296a5d25c9c32570901c7481597bb35192
@property def start_hold_time(self): '\n Gets the start_hold_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The start_hold_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: datetime\n ' return self._start_hold_time
Gets the start_hold_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The start_hold_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: datetime
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
start_hold_time
cjohnson-ctl/platform-client-sdk-python
10
python
@property def start_hold_time(self): '\n Gets the start_hold_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The start_hold_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: datetime\n ' return self._start_hold_time
@property def start_hold_time(self): '\n Gets the start_hold_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The start_hold_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: datetime\n ' return self._start_hold_time<|docstring|>Gets the start_hold_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The start_hold_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: datetime<|endoftext|>
6f84be22e1a1539ef2aee7b0ec42982f70ffe27b43b843549d96ec005fae7241
@start_hold_time.setter def start_hold_time(self, start_hold_time): '\n Sets the start_hold_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param start_hold_time: The start_hold_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: datetime\n ' self._start_hold_time = start_hold_time
Sets the start_hold_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param start_hold_time: The start_hold_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: datetime
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
start_hold_time
cjohnson-ctl/platform-client-sdk-python
10
python
@start_hold_time.setter def start_hold_time(self, start_hold_time): '\n Sets the start_hold_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param start_hold_time: The start_hold_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: datetime\n ' self._start_hold_time = start_hold_time
@start_hold_time.setter def start_hold_time(self, start_hold_time): '\n Sets the start_hold_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param start_hold_time: The start_hold_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: datetime\n ' self._start_hold_time = start_hold_time<|docstring|>Sets the start_hold_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param start_hold_time: The start_hold_time of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: datetime<|endoftext|>
6299c893333fdaa1a9859159d7035921af502b755237dd25d2c3ce7c53ba5575
@property def purpose(self): '\n Gets the purpose of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The purpose of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._purpose
Gets the purpose of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The purpose of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: str
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
purpose
cjohnson-ctl/platform-client-sdk-python
10
python
@property def purpose(self): '\n Gets the purpose of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The purpose of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._purpose
@property def purpose(self): '\n Gets the purpose of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The purpose of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._purpose<|docstring|>Gets the purpose of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The purpose of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: str<|endoftext|>
37b33d6d0c167ed8364f928132195a7a448210842a053321d8f91b08e568d5d6
@purpose.setter def purpose(self, purpose): '\n Sets the purpose of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param purpose: The purpose of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n ' self._purpose = purpose
Sets the purpose of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param purpose: The purpose of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: str
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
purpose
cjohnson-ctl/platform-client-sdk-python
10
python
@purpose.setter def purpose(self, purpose): '\n Sets the purpose of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param purpose: The purpose of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n ' self._purpose = purpose
@purpose.setter def purpose(self, purpose): '\n Sets the purpose of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param purpose: The purpose of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n ' self._purpose = purpose<|docstring|>Sets the purpose of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param purpose: The purpose of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: str<|endoftext|>
99d8ac9dbd83077f30ad14dbec98b3f2cb3522f9a88414b67954de6c5087fe77
@property def state(self): '\n Gets the state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._state
Gets the state of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The state of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: str
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
state
cjohnson-ctl/platform-client-sdk-python
10
python
@property def state(self): '\n Gets the state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._state
@property def state(self): '\n Gets the state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._state<|docstring|>Gets the state of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The state of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: str<|endoftext|>
221ab352cab272575ad6536488f556069590a2049044784bee0148be52ee86b9
@state.setter def state(self, state): '\n Sets the state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param state: The state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n ' allowed_values = ['alerting', 'dialing', 'contacting', 'offering', 'connected', 'disconnected', 'terminated', 'converting', 'uploading', 'transmitting', 'scheduled', 'none'] if (state.lower() not in map(str.lower, allowed_values)): self._state = 'outdated_sdk_version' else: self._state = state
Sets the state of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param state: The state of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: str
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
state
cjohnson-ctl/platform-client-sdk-python
10
python
@state.setter def state(self, state): '\n Sets the state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param state: The state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n ' allowed_values = ['alerting', 'dialing', 'contacting', 'offering', 'connected', 'disconnected', 'terminated', 'converting', 'uploading', 'transmitting', 'scheduled', 'none'] if (state.lower() not in map(str.lower, allowed_values)): self._state = 'outdated_sdk_version' else: self._state = state
@state.setter def state(self, state): '\n Sets the state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param state: The state of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n ' allowed_values = ['alerting', 'dialing', 'contacting', 'offering', 'connected', 'disconnected', 'terminated', 'converting', 'uploading', 'transmitting', 'scheduled', 'none'] if (state.lower() not in map(str.lower, allowed_values)): self._state = 'outdated_sdk_version' else: self._state = state<|docstring|>Sets the state of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param state: The state of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: str<|endoftext|>
232fe39e1a898b60011b0052ad372dffb6f324202e7861ca20526f79d06361cd
@property def direction(self): '\n Gets the direction of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The direction of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._direction
Gets the direction of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The direction of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: str
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
direction
cjohnson-ctl/platform-client-sdk-python
10
python
@property def direction(self): '\n Gets the direction of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The direction of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._direction
@property def direction(self): '\n Gets the direction of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The direction of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._direction<|docstring|>Gets the direction of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The direction of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: str<|endoftext|>
dcecda0a426f9a735eac8c2b022deb7dfbf6ed93c9d383c46addda3d53b5b498
@direction.setter def direction(self, direction): '\n Sets the direction of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param direction: The direction of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n ' allowed_values = ['inbound', 'outbound'] if (direction.lower() not in map(str.lower, allowed_values)): self._direction = 'outdated_sdk_version' else: self._direction = direction
Sets the direction of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param direction: The direction of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: str
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
direction
cjohnson-ctl/platform-client-sdk-python
10
python
@direction.setter def direction(self, direction): '\n Sets the direction of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param direction: The direction of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n ' allowed_values = ['inbound', 'outbound'] if (direction.lower() not in map(str.lower, allowed_values)): self._direction = 'outdated_sdk_version' else: self._direction = direction
@direction.setter def direction(self, direction): '\n Sets the direction of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param direction: The direction of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n ' allowed_values = ['inbound', 'outbound'] if (direction.lower() not in map(str.lower, allowed_values)): self._direction = 'outdated_sdk_version' else: self._direction = direction<|docstring|>Sets the direction of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param direction: The direction of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: str<|endoftext|>
3ac429e65eebb077dee23d864b83d15712c4d555be154222d92df2dfa9262e00
@property def disconnect_type(self): '\n Gets the disconnect_type of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The disconnect_type of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._disconnect_type
Gets the disconnect_type of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The disconnect_type of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: str
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
disconnect_type
cjohnson-ctl/platform-client-sdk-python
10
python
@property def disconnect_type(self): '\n Gets the disconnect_type of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The disconnect_type of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._disconnect_type
@property def disconnect_type(self): '\n Gets the disconnect_type of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The disconnect_type of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._disconnect_type<|docstring|>Gets the disconnect_type of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The disconnect_type of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: str<|endoftext|>
465b7ddf065871febdd80ad64be01a2b5e010101d1b7c069d3e23688d533e7e7
@disconnect_type.setter def disconnect_type(self, disconnect_type): '\n Sets the disconnect_type of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param disconnect_type: The disconnect_type of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n ' allowed_values = ['endpoint', 'client', 'system', 'transfer', 'timeout', 'transfer.conference', 'transfer.consult', 'transfer.forward', 'transfer.noanswer', 'transfer.notavailable', 'transport.failure', 'error', 'peer', 'other', 'spam', 'uncallable'] if (disconnect_type.lower() not in map(str.lower, allowed_values)): self._disconnect_type = 'outdated_sdk_version' else: self._disconnect_type = disconnect_type
Sets the disconnect_type of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param disconnect_type: The disconnect_type of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: str
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
disconnect_type
cjohnson-ctl/platform-client-sdk-python
10
python
@disconnect_type.setter def disconnect_type(self, disconnect_type): '\n Sets the disconnect_type of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param disconnect_type: The disconnect_type of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n ' allowed_values = ['endpoint', 'client', 'system', 'transfer', 'timeout', 'transfer.conference', 'transfer.consult', 'transfer.forward', 'transfer.noanswer', 'transfer.notavailable', 'transport.failure', 'error', 'peer', 'other', 'spam', 'uncallable'] if (disconnect_type.lower() not in map(str.lower, allowed_values)): self._disconnect_type = 'outdated_sdk_version' else: self._disconnect_type = disconnect_type
@disconnect_type.setter def disconnect_type(self, disconnect_type): '\n Sets the disconnect_type of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param disconnect_type: The disconnect_type of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n ' allowed_values = ['endpoint', 'client', 'system', 'transfer', 'timeout', 'transfer.conference', 'transfer.consult', 'transfer.forward', 'transfer.noanswer', 'transfer.notavailable', 'transport.failure', 'error', 'peer', 'other', 'spam', 'uncallable'] if (disconnect_type.lower() not in map(str.lower, allowed_values)): self._disconnect_type = 'outdated_sdk_version' else: self._disconnect_type = disconnect_type<|docstring|>Sets the disconnect_type of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param disconnect_type: The disconnect_type of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: str<|endoftext|>
c737bf51a2d058dff61703310063820caa32a5d7bf3c9793da804f7fa4bcc2bc
@property def held(self): '\n Gets the held of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The held of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: bool\n ' return self._held
Gets the held of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The held of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: bool
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
held
cjohnson-ctl/platform-client-sdk-python
10
python
@property def held(self): '\n Gets the held of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The held of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: bool\n ' return self._held
@property def held(self): '\n Gets the held of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The held of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: bool\n ' return self._held<|docstring|>Gets the held of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The held of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: bool<|endoftext|>
b79fda78c20e0557e1a821aed7008c0afdc852f09e8499c36a23ddb60c02c670
@held.setter def held(self, held): '\n Sets the held of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param held: The held of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: bool\n ' self._held = held
Sets the held of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param held: The held of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: bool
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
held
cjohnson-ctl/platform-client-sdk-python
10
python
@held.setter def held(self, held): '\n Sets the held of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param held: The held of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: bool\n ' self._held = held
@held.setter def held(self, held): '\n Sets the held of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param held: The held of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: bool\n ' self._held = held<|docstring|>Sets the held of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param held: The held of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: bool<|endoftext|>
8f5f473583907a88f4a3cc95074dfef031ad4b849a7ff727d82fab77d75756d4
@property def wrapup_required(self): '\n Gets the wrapup_required of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The wrapup_required of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: bool\n ' return self._wrapup_required
Gets the wrapup_required of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The wrapup_required of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: bool
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
wrapup_required
cjohnson-ctl/platform-client-sdk-python
10
python
@property def wrapup_required(self): '\n Gets the wrapup_required of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The wrapup_required of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: bool\n ' return self._wrapup_required
@property def wrapup_required(self): '\n Gets the wrapup_required of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The wrapup_required of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: bool\n ' return self._wrapup_required<|docstring|>Gets the wrapup_required of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The wrapup_required of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: bool<|endoftext|>
7282c85f795d510dd2b99e787a9636697242641f22c2fbfe0b1ac3e94b461e90
@wrapup_required.setter def wrapup_required(self, wrapup_required): '\n Sets the wrapup_required of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param wrapup_required: The wrapup_required of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: bool\n ' self._wrapup_required = wrapup_required
Sets the wrapup_required of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param wrapup_required: The wrapup_required of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: bool
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
wrapup_required
cjohnson-ctl/platform-client-sdk-python
10
python
@wrapup_required.setter def wrapup_required(self, wrapup_required): '\n Sets the wrapup_required of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param wrapup_required: The wrapup_required of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: bool\n ' self._wrapup_required = wrapup_required
@wrapup_required.setter def wrapup_required(self, wrapup_required): '\n Sets the wrapup_required of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param wrapup_required: The wrapup_required of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: bool\n ' self._wrapup_required = wrapup_required<|docstring|>Sets the wrapup_required of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param wrapup_required: The wrapup_required of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: bool<|endoftext|>
a359a8926eb4f7031c65412676ad47960699203535940801e48f95cbe3864301
@property def wrapup_prompt(self): '\n Gets the wrapup_prompt of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The wrapup_prompt of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._wrapup_prompt
Gets the wrapup_prompt of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The wrapup_prompt of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: str
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
wrapup_prompt
cjohnson-ctl/platform-client-sdk-python
10
python
@property def wrapup_prompt(self): '\n Gets the wrapup_prompt of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The wrapup_prompt of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._wrapup_prompt
@property def wrapup_prompt(self): '\n Gets the wrapup_prompt of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The wrapup_prompt of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._wrapup_prompt<|docstring|>Gets the wrapup_prompt of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The wrapup_prompt of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: str<|endoftext|>
3e3ca4fbc931c68174eda411214319d348d97cf59ca246fba6f1392b1a54aa24
@wrapup_prompt.setter def wrapup_prompt(self, wrapup_prompt): '\n Sets the wrapup_prompt of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param wrapup_prompt: The wrapup_prompt of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n ' self._wrapup_prompt = wrapup_prompt
Sets the wrapup_prompt of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param wrapup_prompt: The wrapup_prompt of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: str
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
wrapup_prompt
cjohnson-ctl/platform-client-sdk-python
10
python
@wrapup_prompt.setter def wrapup_prompt(self, wrapup_prompt): '\n Sets the wrapup_prompt of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param wrapup_prompt: The wrapup_prompt of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n ' self._wrapup_prompt = wrapup_prompt
@wrapup_prompt.setter def wrapup_prompt(self, wrapup_prompt): '\n Sets the wrapup_prompt of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param wrapup_prompt: The wrapup_prompt of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: str\n ' self._wrapup_prompt = wrapup_prompt<|docstring|>Sets the wrapup_prompt of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param wrapup_prompt: The wrapup_prompt of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: str<|endoftext|>
761118e8d648fc9ee59560314eff84a81a2059f9dcaab88ad0d4bee192eaf00f
@property def user(self): '\n Gets the user of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The user of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicUriReference\n ' return self._user
Gets the user of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The user of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: QueueConversationCallbackEventTopicUriReference
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
user
cjohnson-ctl/platform-client-sdk-python
10
python
@property def user(self): '\n Gets the user of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The user of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicUriReference\n ' return self._user
@property def user(self): '\n Gets the user of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The user of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicUriReference\n ' return self._user<|docstring|>Gets the user of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The user of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: QueueConversationCallbackEventTopicUriReference<|endoftext|>
c9c0130184e86b6311ec22c006386b2113364923427bc67a0dbeb7512c1d5483
@user.setter def user(self, user): '\n Sets the user of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param user: The user of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicUriReference\n ' self._user = user
Sets the user of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param user: The user of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: QueueConversationCallbackEventTopicUriReference
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
user
cjohnson-ctl/platform-client-sdk-python
10
python
@user.setter def user(self, user): '\n Sets the user of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param user: The user of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicUriReference\n ' self._user = user
@user.setter def user(self, user): '\n Sets the user of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param user: The user of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicUriReference\n ' self._user = user<|docstring|>Sets the user of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param user: The user of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: QueueConversationCallbackEventTopicUriReference<|endoftext|>
17bfac5f4d4553d0ef0d646a1a9e57cda2d1cb0ebe4c82198b01a9194ede4873
@property def queue(self): '\n Gets the queue of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The queue of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicUriReference\n ' return self._queue
Gets the queue of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The queue of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: QueueConversationCallbackEventTopicUriReference
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
queue
cjohnson-ctl/platform-client-sdk-python
10
python
@property def queue(self): '\n Gets the queue of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The queue of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicUriReference\n ' return self._queue
@property def queue(self): '\n Gets the queue of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The queue of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicUriReference\n ' return self._queue<|docstring|>Gets the queue of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The queue of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: QueueConversationCallbackEventTopicUriReference<|endoftext|>
4285f69251a011c2296e0b5175015d4b0d271547bf94cf846671c5ac6d206a68
@queue.setter def queue(self, queue): '\n Sets the queue of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param queue: The queue of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicUriReference\n ' self._queue = queue
Sets the queue of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param queue: The queue of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: QueueConversationCallbackEventTopicUriReference
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
queue
cjohnson-ctl/platform-client-sdk-python
10
python
@queue.setter def queue(self, queue): '\n Sets the queue of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param queue: The queue of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicUriReference\n ' self._queue = queue
@queue.setter def queue(self, queue): '\n Sets the queue of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param queue: The queue of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicUriReference\n ' self._queue = queue<|docstring|>Sets the queue of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param queue: The queue of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: QueueConversationCallbackEventTopicUriReference<|endoftext|>
f6e43de6d01bf96a42197e073f9c3b9e08ec6a61f9a36963c4293211e4a4b7b3
@property def team(self): '\n Gets the team of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The team of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicUriReference\n ' return self._team
Gets the team of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The team of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: QueueConversationCallbackEventTopicUriReference
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
team
cjohnson-ctl/platform-client-sdk-python
10
python
@property def team(self): '\n Gets the team of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The team of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicUriReference\n ' return self._team
@property def team(self): '\n Gets the team of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The team of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicUriReference\n ' return self._team<|docstring|>Gets the team of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The team of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: QueueConversationCallbackEventTopicUriReference<|endoftext|>
9e26ba421b6d4a3f61af8fa4e358e03016b3570407a8c967948179de5a71838f
@team.setter def team(self, team): '\n Sets the team of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param team: The team of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicUriReference\n ' self._team = team
Sets the team of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param team: The team of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: QueueConversationCallbackEventTopicUriReference
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
team
cjohnson-ctl/platform-client-sdk-python
10
python
@team.setter def team(self, team): '\n Sets the team of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param team: The team of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicUriReference\n ' self._team = team
@team.setter def team(self, team): '\n Sets the team of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param team: The team of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicUriReference\n ' self._team = team<|docstring|>Sets the team of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param team: The team of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: QueueConversationCallbackEventTopicUriReference<|endoftext|>
adfa4c25efb13013fee9785f4721ecf09c01965e4155f2ca2869a0cb98258740
@property def attributes(self): '\n Gets the attributes of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The attributes of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: dict(str, str)\n ' return self._attributes
Gets the attributes of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The attributes of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: dict(str, str)
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
attributes
cjohnson-ctl/platform-client-sdk-python
10
python
@property def attributes(self): '\n Gets the attributes of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The attributes of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: dict(str, str)\n ' return self._attributes
@property def attributes(self): '\n Gets the attributes of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The attributes of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: dict(str, str)\n ' return self._attributes<|docstring|>Gets the attributes of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The attributes of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: dict(str, str)<|endoftext|>
aa20efc20124f73ea6fa79b640bfec2d4e05d322c0608c691c4e7b3945553cb2
@attributes.setter def attributes(self, attributes): '\n Sets the attributes of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param attributes: The attributes of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: dict(str, str)\n ' self._attributes = attributes
Sets the attributes of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param attributes: The attributes of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: dict(str, str)
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
attributes
cjohnson-ctl/platform-client-sdk-python
10
python
@attributes.setter def attributes(self, attributes): '\n Sets the attributes of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param attributes: The attributes of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: dict(str, str)\n ' self._attributes = attributes
@attributes.setter def attributes(self, attributes): '\n Sets the attributes of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param attributes: The attributes of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: dict(str, str)\n ' self._attributes = attributes<|docstring|>Sets the attributes of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param attributes: The attributes of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: dict(str, str)<|endoftext|>
b24e8e8de8085ccee186a80e0dce88510f65c04d63967adc36e617bfc88a4d2f
@property def error_info(self): '\n Gets the error_info of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The error_info of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicErrorBody\n ' return self._error_info
Gets the error_info of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The error_info of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: QueueConversationCallbackEventTopicErrorBody
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
error_info
cjohnson-ctl/platform-client-sdk-python
10
python
@property def error_info(self): '\n Gets the error_info of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The error_info of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicErrorBody\n ' return self._error_info
@property def error_info(self): '\n Gets the error_info of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The error_info of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicErrorBody\n ' return self._error_info<|docstring|>Gets the error_info of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The error_info of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: QueueConversationCallbackEventTopicErrorBody<|endoftext|>
dd6fdef6b6ed6ed3bf3336d870fa6b7912e06ca9e22c2e93063bf3dc1e41c031
@error_info.setter def error_info(self, error_info): '\n Sets the error_info of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param error_info: The error_info of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicErrorBody\n ' self._error_info = error_info
Sets the error_info of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param error_info: The error_info of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: QueueConversationCallbackEventTopicErrorBody
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
error_info
cjohnson-ctl/platform-client-sdk-python
10
python
@error_info.setter def error_info(self, error_info): '\n Sets the error_info of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param error_info: The error_info of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicErrorBody\n ' self._error_info = error_info
@error_info.setter def error_info(self, error_info): '\n Sets the error_info of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param error_info: The error_info of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicErrorBody\n ' self._error_info = error_info<|docstring|>Sets the error_info of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param error_info: The error_info of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: QueueConversationCallbackEventTopicErrorBody<|endoftext|>
ddf7ba8172700aa8535bd7cdd7e381aca63d6ce0e74c455dbe7b2b85c3831242
@property def script(self): '\n Gets the script of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The script of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicUriReference\n ' return self._script
Gets the script of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The script of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: QueueConversationCallbackEventTopicUriReference
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
script
cjohnson-ctl/platform-client-sdk-python
10
python
@property def script(self): '\n Gets the script of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The script of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicUriReference\n ' return self._script
@property def script(self): '\n Gets the script of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The script of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: QueueConversationCallbackEventTopicUriReference\n ' return self._script<|docstring|>Gets the script of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The script of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: QueueConversationCallbackEventTopicUriReference<|endoftext|>
bdee20dd2d68ce6a27d534e49bdb3f7d284c34bb114fdad7300d4168fa580c2e
@script.setter def script(self, script): '\n Sets the script of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param script: The script of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicUriReference\n ' self._script = script
Sets the script of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param script: The script of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: QueueConversationCallbackEventTopicUriReference
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
script
cjohnson-ctl/platform-client-sdk-python
10
python
@script.setter def script(self, script): '\n Sets the script of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param script: The script of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicUriReference\n ' self._script = script
@script.setter def script(self, script): '\n Sets the script of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param script: The script of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: QueueConversationCallbackEventTopicUriReference\n ' self._script = script<|docstring|>Sets the script of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param script: The script of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: QueueConversationCallbackEventTopicUriReference<|endoftext|>
c67ddb8e5a9b9a287eb7b6e74f4178bb897c67439247a351eaf89ec111e97c6b
@property def wrapup_timeout_ms(self): '\n Gets the wrapup_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The wrapup_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: int\n ' return self._wrapup_timeout_ms
Gets the wrapup_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The wrapup_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: int
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
wrapup_timeout_ms
cjohnson-ctl/platform-client-sdk-python
10
python
@property def wrapup_timeout_ms(self): '\n Gets the wrapup_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The wrapup_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: int\n ' return self._wrapup_timeout_ms
@property def wrapup_timeout_ms(self): '\n Gets the wrapup_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The wrapup_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: int\n ' return self._wrapup_timeout_ms<|docstring|>Gets the wrapup_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The wrapup_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: int<|endoftext|>
07fd61ef09d31235e43097422a3ee19f9d209249f94a3a9fc7eb7c4f743128bf
@wrapup_timeout_ms.setter def wrapup_timeout_ms(self, wrapup_timeout_ms): '\n Sets the wrapup_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param wrapup_timeout_ms: The wrapup_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: int\n ' self._wrapup_timeout_ms = wrapup_timeout_ms
Sets the wrapup_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param wrapup_timeout_ms: The wrapup_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: int
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
wrapup_timeout_ms
cjohnson-ctl/platform-client-sdk-python
10
python
@wrapup_timeout_ms.setter def wrapup_timeout_ms(self, wrapup_timeout_ms): '\n Sets the wrapup_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param wrapup_timeout_ms: The wrapup_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: int\n ' self._wrapup_timeout_ms = wrapup_timeout_ms
@wrapup_timeout_ms.setter def wrapup_timeout_ms(self, wrapup_timeout_ms): '\n Sets the wrapup_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param wrapup_timeout_ms: The wrapup_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: int\n ' self._wrapup_timeout_ms = wrapup_timeout_ms<|docstring|>Sets the wrapup_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param wrapup_timeout_ms: The wrapup_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: int<|endoftext|>
c482db453a98fc3f6ffa9edd10232836d47029c61cc4301a69cb8c598486bbea
@property def wrapup_skipped(self): '\n Gets the wrapup_skipped of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The wrapup_skipped of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: bool\n ' return self._wrapup_skipped
Gets the wrapup_skipped of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The wrapup_skipped of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: bool
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
wrapup_skipped
cjohnson-ctl/platform-client-sdk-python
10
python
@property def wrapup_skipped(self): '\n Gets the wrapup_skipped of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The wrapup_skipped of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: bool\n ' return self._wrapup_skipped
@property def wrapup_skipped(self): '\n Gets the wrapup_skipped of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The wrapup_skipped of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: bool\n ' return self._wrapup_skipped<|docstring|>Gets the wrapup_skipped of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The wrapup_skipped of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: bool<|endoftext|>
09403f9836933321c3dfb2c33d6135ec07061997a64229687a40eb7ba29870a6
@wrapup_skipped.setter def wrapup_skipped(self, wrapup_skipped): '\n Sets the wrapup_skipped of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param wrapup_skipped: The wrapup_skipped of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: bool\n ' self._wrapup_skipped = wrapup_skipped
Sets the wrapup_skipped of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param wrapup_skipped: The wrapup_skipped of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: bool
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
wrapup_skipped
cjohnson-ctl/platform-client-sdk-python
10
python
@wrapup_skipped.setter def wrapup_skipped(self, wrapup_skipped): '\n Sets the wrapup_skipped of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param wrapup_skipped: The wrapup_skipped of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: bool\n ' self._wrapup_skipped = wrapup_skipped
@wrapup_skipped.setter def wrapup_skipped(self, wrapup_skipped): '\n Sets the wrapup_skipped of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param wrapup_skipped: The wrapup_skipped of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: bool\n ' self._wrapup_skipped = wrapup_skipped<|docstring|>Sets the wrapup_skipped of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param wrapup_skipped: The wrapup_skipped of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: bool<|endoftext|>
73b5b0539d020da1a0f8b7b6ae345f544351942cc12daaa00ff263c5a748d86e
@property def alerting_timeout_ms(self): '\n Gets the alerting_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The alerting_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: int\n ' return self._alerting_timeout_ms
Gets the alerting_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The alerting_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: int
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
alerting_timeout_ms
cjohnson-ctl/platform-client-sdk-python
10
python
@property def alerting_timeout_ms(self): '\n Gets the alerting_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The alerting_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: int\n ' return self._alerting_timeout_ms
@property def alerting_timeout_ms(self): '\n Gets the alerting_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The alerting_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: int\n ' return self._alerting_timeout_ms<|docstring|>Gets the alerting_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The alerting_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: int<|endoftext|>
745b232211708092c5a92c9cfa53d533ef8d48d927a26d8c3916028869feb970
@alerting_timeout_ms.setter def alerting_timeout_ms(self, alerting_timeout_ms): '\n Sets the alerting_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param alerting_timeout_ms: The alerting_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: int\n ' self._alerting_timeout_ms = alerting_timeout_ms
Sets the alerting_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param alerting_timeout_ms: The alerting_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: int
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
alerting_timeout_ms
cjohnson-ctl/platform-client-sdk-python
10
python
@alerting_timeout_ms.setter def alerting_timeout_ms(self, alerting_timeout_ms): '\n Sets the alerting_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param alerting_timeout_ms: The alerting_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: int\n ' self._alerting_timeout_ms = alerting_timeout_ms
@alerting_timeout_ms.setter def alerting_timeout_ms(self, alerting_timeout_ms): '\n Sets the alerting_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :param alerting_timeout_ms: The alerting_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :type: int\n ' self._alerting_timeout_ms = alerting_timeout_ms<|docstring|>Sets the alerting_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :param alerting_timeout_ms: The alerting_timeout_ms of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :type: int<|endoftext|>
a681c176f7fbfc418accdfc09d920448d8bf02e5e31e6ae8f95ab7e894ec3445
@property def provider(self): '\n Gets the provider of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The provider of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._provider
Gets the provider of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The provider of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: str
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_callback_media_participant.py
provider
cjohnson-ctl/platform-client-sdk-python
10
python
@property def provider(self): '\n Gets the provider of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The provider of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._provider
@property def provider(self): '\n Gets the provider of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n\n\n :return: The provider of this QueueConversationCallbackEventTopicCallbackMediaParticipant.\n :rtype: str\n ' return self._provider<|docstring|>Gets the provider of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :return: The provider of this QueueConversationCallbackEventTopicCallbackMediaParticipant. :rtype: str<|endoftext|>