Figure 18: Examples of prompts and explanations for a complex, domain-specific, audio processing command-
line tool. The model learnt the options and how to apply them in context. The first two exampples show
simple tasks and the last one is an example of combination of them.

45

def exists(self, resource_group, name):

"""
Checks if the container group exists in the resource group.

:param resource_group: The resource group name.
:param name: The container group name.
:return: True if the container group exists in the resource group, False otherwise.
"""

for container in self.connection.container_groups.list_by_resource_group(resource_group):

def parse_host(host):

"""
Parse host string into (hostname, port) tuple.

:param host: host string
:return: (hostname, port) tuple
"""

if re.match(r'^(\\d+)$', host) is not None:

return ("0.0.0.0", int(host))

if re.match(r'^(\\w+)://', host) is None:

host = "//" + host
CodeLlama2