hexsha
stringlengths
40
40
repo
stringlengths
7
114
path
stringlengths
4
124
license
listlengths
1
9
language
stringclasses
1 value
identifier
stringlengths
1
71
return_type
stringlengths
1
749
original_string
stringlengths
76
22.7k
original_docstring
stringlengths
16
7.61k
docstring
stringlengths
16
2.47k
docstring_tokens
listlengths
6
477
code
stringlengths
14
10.2k
code_tokens
listlengths
6
996
short_docstring
stringlengths
2
644
short_docstring_tokens
listlengths
1
116
comment
listlengths
1
89
parameters
listlengths
0
64
docstring_params
dict
6bd1f0439000256855d2a44c3fd6f893aac0ab63
marvelous-systems/backup-runner
app/src/k8s/__init__.py
[ "Apache-2.0" ]
Python
check_resource
bool
def check_resource(predicate: Predicate, fn: Callable, *args, **kwargs) -> bool: """Retrieves a k8s API resource, applies predicate to it and returns result. Args: predicate: A function accepting the resource fetched by fn, should return a bool. fn: Kubernetes API functi...
Retrieves a k8s API resource, applies predicate to it and returns result. Args: predicate: A function accepting the resource fetched by fn, should return a bool. fn: Kubernetes API function. *args: Arguments for fn. **kwargs: Keyword arguments for fn. Re...
Retrieves a k8s API resource, applies predicate to it and returns result.
[ "Retrieves", "a", "k8s", "API", "resource", "applies", "predicate", "to", "it", "and", "returns", "result", "." ]
def check_resource(predicate: Predicate, fn: Callable, *args, **kwargs) -> bool: result = fn(*args, **kwargs) retval = predicate(result) try: log.debug(f"Checking {result.kind} " f"{result.metadata.namespace}/{result.metadata.name}: " f"{predicate.__name__}? {retv...
[ "def", "check_resource", "(", "predicate", ":", "Predicate", ",", "fn", ":", "Callable", ",", "*", "args", ",", "**", "kwargs", ")", "->", "bool", ":", "result", "=", "fn", "(", "*", "args", ",", "**", "kwargs", ")", "retval", "=", "predicate", "(", ...
Retrieves a k8s API resource, applies predicate to it and returns result.
[ "Retrieves", "a", "k8s", "API", "resource", "applies", "predicate", "to", "it", "and", "returns", "result", "." ]
[ "\"\"\"Retrieves a k8s API resource, applies predicate to it and returns result.\n\n Args:\n predicate:\n A function accepting the resource fetched by fn, should return\n a bool.\n fn: Kubernetes API function.\n *args: Arguments for fn.\n **kwargs: Keyword argume...
[ { "param": "predicate", "type": "Predicate" }, { "param": "fn", "type": "Callable" } ]
{ "returns": [ { "docstring": "Whether the fetched resource satisfies the given predicate.", "docstring_tokens": [ "Whether", "the", "fetched", "resource", "satisfies", "the", "given", "predicate", "." ], "type": null ...
6bd1f0439000256855d2a44c3fd6f893aac0ab63
marvelous-systems/backup-runner
app/src/k8s/__init__.py
[ "Apache-2.0" ]
Python
_poll_resource
Coroutine
def _poll_resource(predicate: Predicate, fn: Callable, *args, **kwargs) \ -> Coroutine: """Polls fn in random intervals until fn's return satisfies a predicate. Args: predicate: Function Any -> bool fn: Any function. *args: Positional args for fn. **kwargs: Key word args...
Polls fn in random intervals until fn's return satisfies a predicate. Args: predicate: Function Any -> bool fn: Any function. *args: Positional args for fn. **kwargs: Key word args for fn. Returns: Coroutine which polls fn in random intervals and sleeps in between. ...
Polls fn in random intervals until fn's return satisfies a predicate.
[ "Polls", "fn", "in", "random", "intervals", "until", "fn", "'", "s", "return", "satisfies", "a", "predicate", "." ]
def _poll_resource(predicate: Predicate, fn: Callable, *args, **kwargs) \ -> Coroutine: async def _reconciled(): done = False while not done: done = check_resource(predicate, fn, *args, **kwargs) await asyncio.sleep(random.uniform(3, 6)) return _reconciled()
[ "def", "_poll_resource", "(", "predicate", ":", "Predicate", ",", "fn", ":", "Callable", ",", "*", "args", ",", "**", "kwargs", ")", "->", "Coroutine", ":", "async", "def", "_reconciled", "(", ")", ":", "done", "=", "False", "while", "not", "done", ":"...
Polls fn in random intervals until fn's return satisfies a predicate.
[ "Polls", "fn", "in", "random", "intervals", "until", "fn", "'", "s", "return", "satisfies", "a", "predicate", "." ]
[ "\"\"\"Polls fn in random intervals until fn's return satisfies a predicate.\n\n Args:\n predicate: Function Any -> bool\n fn: Any function.\n *args: Positional args for fn.\n **kwargs: Key word args for fn.\n\n Returns:\n Coroutine which polls fn in random intervals and sle...
[ { "param": "predicate", "type": "Predicate" }, { "param": "fn", "type": "Callable" } ]
{ "returns": [ { "docstring": "Coroutine which polls fn in random intervals and sleeps in between.\nThe Coroutine halts if predicate is satisfied by fn's return.", "docstring_tokens": [ "Coroutine", "which", "polls", "fn", "in", "random", "interv...
6bd1f0439000256855d2a44c3fd6f893aac0ab63
marvelous-systems/backup-runner
app/src/k8s/__init__.py
[ "Apache-2.0" ]
Python
wait_for_reconciliation_blocking
null
def wait_for_reconciliation_blocking(predicate: Predicate, timeout: timedelta, fn: Callable, *args, **kwargs): """Wait until fn's return satisfies predicate or timeout is reached. Fn is polled by executing it with *args and **kwargs in random intervals and testing its r...
Wait until fn's return satisfies predicate or timeout is reached. Fn is polled by executing it with *args and **kwargs in random intervals and testing its return with predicate. Blocks until either the predicate is satisfied or the operation is cancelled by a timeout. Args: timeout: Time to wa...
Wait until fn's return satisfies predicate or timeout is reached. Fn is polled by executing it with *args and **kwargs in random intervals and testing its return with predicate. Blocks until either the predicate is satisfied or the operation is cancelled by a timeout.
[ "Wait", "until", "fn", "'", "s", "return", "satisfies", "predicate", "or", "timeout", "is", "reached", ".", "Fn", "is", "polled", "by", "executing", "it", "with", "*", "args", "and", "**", "kwargs", "in", "random", "intervals", "and", "testing", "its", "...
def wait_for_reconciliation_blocking(predicate: Predicate, timeout: timedelta, fn: Callable, *args, **kwargs): asyncio.run(wait_for_reconciliation(predicate, timeout, fn, *args, **kwargs))
[ "def", "wait_for_reconciliation_blocking", "(", "predicate", ":", "Predicate", ",", "timeout", ":", "timedelta", ",", "fn", ":", "Callable", ",", "*", "args", ",", "**", "kwargs", ")", ":", "asyncio", ".", "run", "(", "wait_for_reconciliation", "(", "predicate...
Wait until fn's return satisfies predicate or timeout is reached.
[ "Wait", "until", "fn", "'", "s", "return", "satisfies", "predicate", "or", "timeout", "is", "reached", "." ]
[ "\"\"\"Wait until fn's return satisfies predicate or timeout is reached.\n\n Fn is polled by executing it with *args and **kwargs in random intervals\n and testing its return with predicate. Blocks until either the predicate is\n satisfied or the operation is cancelled by a timeout.\n\n Args:\n t...
[ { "param": "predicate", "type": "Predicate" }, { "param": "timeout", "type": "timedelta" }, { "param": "fn", "type": "Callable" } ]
{ "returns": [], "raises": [ { "docstring": "If the predicate was not satisfied within timeout.", "docstring_tokens": [ "If", "the", "predicate", "was", "not", "satisfied", "within", "timeout", "." ], "type": "Reconc...
6bd1f0439000256855d2a44c3fd6f893aac0ab63
marvelous-systems/backup-runner
app/src/k8s/__init__.py
[ "Apache-2.0" ]
Python
wait_for_reconciliation
null
async def wait_for_reconciliation(predicate: Callable, timeout: timedelta, fn: Callable, *args, **kwargs): """Wait until fn's return satisfies predicate or timeout is reached. Fn is polled by executing it with *args and **kwargs in random intervals and testing its return w...
Wait until fn's return satisfies predicate or timeout is reached. Fn is polled by executing it with *args and **kwargs in random intervals and testing its return with predicate. Waits until either the predicate is satisfied or the operation is cancelled by a timeout. Args: timeout: Time to wai...
Wait until fn's return satisfies predicate or timeout is reached. Fn is polled by executing it with *args and **kwargs in random intervals and testing its return with predicate. Waits until either the predicate is satisfied or the operation is cancelled by a timeout.
[ "Wait", "until", "fn", "'", "s", "return", "satisfies", "predicate", "or", "timeout", "is", "reached", ".", "Fn", "is", "polled", "by", "executing", "it", "with", "*", "args", "and", "**", "kwargs", "in", "random", "intervals", "and", "testing", "its", "...
async def wait_for_reconciliation(predicate: Callable, timeout: timedelta, fn: Callable, *args, **kwargs): try: log.debug(f"Waiting for cluster state to reconcile " f"({timeout.seconds}s)...") await asyncio.wait_for(_poll_resource(predicate, fn, *a...
[ "async", "def", "wait_for_reconciliation", "(", "predicate", ":", "Callable", ",", "timeout", ":", "timedelta", ",", "fn", ":", "Callable", ",", "*", "args", ",", "**", "kwargs", ")", ":", "try", ":", "log", ".", "debug", "(", "f\"Waiting for cluster state t...
Wait until fn's return satisfies predicate or timeout is reached.
[ "Wait", "until", "fn", "'", "s", "return", "satisfies", "predicate", "or", "timeout", "is", "reached", "." ]
[ "\"\"\"Wait until fn's return satisfies predicate or timeout is reached.\n\n Fn is polled by executing it with *args and **kwargs in random intervals\n and testing its return with predicate. Waits until either the predicate is\n satisfied or the operation is cancelled by a timeout.\n\n Args:\n ti...
[ { "param": "predicate", "type": "Callable" }, { "param": "timeout", "type": "timedelta" }, { "param": "fn", "type": "Callable" } ]
{ "returns": [], "raises": [ { "docstring": "If the predicate was not satisfied within timeout.", "docstring_tokens": [ "If", "the", "predicate", "was", "not", "satisfied", "within", "timeout", "." ], "type": "Reconc...
6bd1f0439000256855d2a44c3fd6f893aac0ab63
marvelous-systems/backup-runner
app/src/k8s/__init__.py
[ "Apache-2.0" ]
Python
wait_for_total_reconciliation_blocking
null
def wait_for_total_reconciliation_blocking(timeout: timedelta, *args: Union[ Tuple[Predicate, Callable], Tuple[Predicate, Callable, List], ...
Waits until multiple fns satisfy some predicates. Takes a list of parameters for wait_for_reconciliation as Tuples and waits until wither all of them reconcile or a timeout is reached. Args: timeout: Time to wait for predicate to be satisfied. *args: List of parameters for wait_for_reconci...
Waits until multiple fns satisfy some predicates. Takes a list of parameters for wait_for_reconciliation as Tuples and waits until wither all of them reconcile or a timeout is reached.
[ "Waits", "until", "multiple", "fns", "satisfy", "some", "predicates", ".", "Takes", "a", "list", "of", "parameters", "for", "wait_for_reconciliation", "as", "Tuples", "and", "waits", "until", "wither", "all", "of", "them", "reconcile", "or", "a", "timeout", "i...
def wait_for_total_reconciliation_blocking(timeout: timedelta, *args: Union[ Tuple[Predicate, Callable], Tuple[Predicate, Callable, List], ...
[ "def", "wait_for_total_reconciliation_blocking", "(", "timeout", ":", "timedelta", ",", "*", "args", ":", "Union", "[", "Tuple", "[", "Predicate", ",", "Callable", "]", ",", "Tuple", "[", "Predicate", ",", "Callable", ",", "List", "]", ",", "Tuple", "[", "...
Waits until multiple fns satisfy some predicates.
[ "Waits", "until", "multiple", "fns", "satisfy", "some", "predicates", "." ]
[ "\"\"\"Waits until multiple fns satisfy some predicates.\n\n Takes a list of parameters for wait_for_reconciliation as Tuples and waits\n until wither all of them reconcile or a timeout is reached.\n\n Args:\n timeout: Time to wait for predicate to be satisfied.\n *args: List of parameters fo...
[ { "param": "timeout", "type": "timedelta" }, { "param": "args", "type": "Union[\n Tuple[Predicate, Callable],\n Tuple[Predicate, Callable, List],\n Tuple[Pred...
{ "returns": [], "raises": [ { "docstring": "If the predicates were not satisfied within timeout.", "docstring_tokens": [ "If", "the", "predicates", "were", "not", "satisfied", "within", "timeout", "." ], "type": "Re...
6bd1f0439000256855d2a44c3fd6f893aac0ab63
marvelous-systems/backup-runner
app/src/k8s/__init__.py
[ "Apache-2.0" ]
Python
wait_for_total_reconciliation
null
async def wait_for_total_reconciliation(timeout: timedelta, *args: Union[ Tuple[Predicate, Callable], Tuple[Predicate, Callable, List], Tuple[Predic...
Waits until multiple fns satisfy some predicates. Takes a list of parameters for wait_for_reconciliation as Tuples and waits until wither all of them reconcile or a timeout is reached. Args: timeout: Time to wait for predicate to be satisfied. *args: List of parameters for wait_for_reconci...
Waits until multiple fns satisfy some predicates. Takes a list of parameters for wait_for_reconciliation as Tuples and waits until wither all of them reconcile or a timeout is reached.
[ "Waits", "until", "multiple", "fns", "satisfy", "some", "predicates", ".", "Takes", "a", "list", "of", "parameters", "for", "wait_for_reconciliation", "as", "Tuples", "and", "waits", "until", "wither", "all", "of", "them", "reconcile", "or", "a", "timeout", "i...
async def wait_for_total_reconciliation(timeout: timedelta, *args: Union[ Tuple[Predicate, Callable], Tuple[Predicate, Callable, List], Tuple[Predic...
[ "async", "def", "wait_for_total_reconciliation", "(", "timeout", ":", "timedelta", ",", "*", "args", ":", "Union", "[", "Tuple", "[", "Predicate", ",", "Callable", "]", ",", "Tuple", "[", "Predicate", ",", "Callable", ",", "List", "]", ",", "Tuple", "[", ...
Waits until multiple fns satisfy some predicates.
[ "Waits", "until", "multiple", "fns", "satisfy", "some", "predicates", "." ]
[ "\"\"\"Waits until multiple fns satisfy some predicates.\n\n Takes a list of parameters for wait_for_reconciliation as Tuples and waits\n until wither all of them reconcile or a timeout is reached.\n\n Args:\n timeout: Time to wait for predicate to be satisfied.\n *args: List of parameters fo...
[ { "param": "timeout", "type": "timedelta" }, { "param": "args", "type": "Union[\n Tuple[Predicate, Callable],\n Tuple[Predicate, Callable, List],\n Tuple[Predicate, Ca...
{ "returns": [], "raises": [ { "docstring": "If the predicates were not satisfied within timeout.", "docstring_tokens": [ "If", "the", "predicates", "were", "not", "satisfied", "within", "timeout", "." ], "type": "Re...
9b3d628e7c0faf969fe43c00a329fca862ba386b
marvelous-systems/backup-runner
app/src/algorithm/__init__.py
[ "Apache-2.0" ]
Python
new_volume_mounts_with_canonical_mount_path
List[Dict]
def new_volume_mounts_with_canonical_mount_path( for_volumes: List[Dict], name_map: Dict[str, str]=None, sub_path_map: Dict[str, str]=None) -> List[Dict]: """Creates a list of canonical volumeMounts for a given list of Volumes. Args: for_volumes: List of volumes to create volume...
Creates a list of canonical volumeMounts for a given list of Volumes. Args: for_volumes: List of volumes to create volumeMounts for. name_map: Dict mapping volume names, this allows volumes to be mapped to canonical mountPaths of other volumes. See get_canonical_mount_path. ...
Creates a list of canonical volumeMounts for a given list of Volumes.
[ "Creates", "a", "list", "of", "canonical", "volumeMounts", "for", "a", "given", "list", "of", "Volumes", "." ]
def new_volume_mounts_with_canonical_mount_path( for_volumes: List[Dict], name_map: Dict[str, str]=None, sub_path_map: Dict[str, str]=None) -> List[Dict]: volume_mounts = [{ "name": v["name"], "mountPath": get_canonical_mount_path(v, name_map) } for v in for_volumes] ...
[ "def", "new_volume_mounts_with_canonical_mount_path", "(", "for_volumes", ":", "List", "[", "Dict", "]", ",", "name_map", ":", "Dict", "[", "str", ",", "str", "]", "=", "None", ",", "sub_path_map", ":", "Dict", "[", "str", ",", "str", "]", "=", "None", "...
Creates a list of canonical volumeMounts for a given list of Volumes.
[ "Creates", "a", "list", "of", "canonical", "volumeMounts", "for", "a", "given", "list", "of", "Volumes", "." ]
[ "\"\"\"Creates a list of canonical volumeMounts for a given list of Volumes.\n\n Args:\n for_volumes: List of volumes to create volumeMounts for.\n name_map:\n Dict mapping volume names, this allows volumes to be mapped to\n canonical mountPaths of other volumes. See get_canon...
[ { "param": "for_volumes", "type": "List[Dict]" }, { "param": "name_map", "type": "Dict[str, str]" }, { "param": "sub_path_map", "type": "Dict[str, str]" } ]
{ "returns": [ { "docstring": "List of volumeMounts for the given volumes.", "docstring_tokens": [ "List", "of", "volumeMounts", "for", "the", "given", "volumes", "." ], "type": null } ], "raises": [], "params": [ ...
8c09c5fb8a73532c73a10da7e9e3e7e945ce6d50
marvelous-systems/backup-runner
app/src/k8s/resource/deployment.py
[ "Apache-2.0" ]
Python
copy_volumes
Dict
def copy_volumes(from_deployment: Dict, to_deployment: Dict) -> Dict: """Copies volumes from Deployment to Deployment. Does not copy volumes for mounted secrets. Args: from_deployment: Deployment whose volumes are copied. to_deployment: Deployment who will receive f...
Copies volumes from Deployment to Deployment. Does not copy volumes for mounted secrets. Args: from_deployment: Deployment whose volumes are copied. to_deployment: Deployment who will receive from_deployments' volumes. Returns: The resulting Deployment. ...
Copies volumes from Deployment to Deployment. Does not copy volumes for mounted secrets.
[ "Copies", "volumes", "from", "Deployment", "to", "Deployment", ".", "Does", "not", "copy", "volumes", "for", "mounted", "secrets", "." ]
def copy_volumes(from_deployment: Dict, to_deployment: Dict) -> Dict: volumes: List[Dict] = get_volumes(from_deployment, exclude_secrets=True) to_deployment["spec"]["template"]["spec"]["volumes"].extend(volumes) return to_deployment
[ "def", "copy_volumes", "(", "from_deployment", ":", "Dict", ",", "to_deployment", ":", "Dict", ")", "->", "Dict", ":", "volumes", ":", "List", "[", "Dict", "]", "=", "get_volumes", "(", "from_deployment", ",", "exclude_secrets", "=", "True", ")", "to_deploym...
Copies volumes from Deployment to Deployment.
[ "Copies", "volumes", "from", "Deployment", "to", "Deployment", "." ]
[ "\"\"\"Copies volumes from Deployment to Deployment.\n\n Does not copy volumes for mounted secrets.\n\n Args:\n from_deployment:\n Deployment whose volumes are copied.\n to_deployment:\n Deployment who will receive from_deployments' volumes.\n\n Returns:\n The res...
[ { "param": "from_deployment", "type": "Dict" }, { "param": "to_deployment", "type": "Dict" } ]
{ "returns": [ { "docstring": "The resulting Deployment.", "docstring_tokens": [ "The", "resulting", "Deployment", "." ], "type": null } ], "raises": [], "params": [ { "identifier": "from_deployment", "type": "Dict", "docstrin...
a883883217f91a4a530bb086dbe57a814345c451
marvelous-systems/backup-runner
app/src/sidecar_deploy/__init__.py
[ "Apache-2.0" ]
Python
new_backup_sidecar_deployment
Dict
def new_backup_sidecar_deployment(backup_paths: List[str], store_secret_name: str) -> Dict: """Generates a k8s Deployment for the restic-backup-sidecar container. Args: backup_paths: List of paths to back up. store_secret_name: Name of k...
Generates a k8s Deployment for the restic-backup-sidecar container. Args: backup_paths: List of paths to back up. store_secret_name: Name of k8s secret with configuration of backup location. Returns: A k8s Deployment for the restic-backup-sidecar container as Di...
Generates a k8s Deployment for the restic-backup-sidecar container.
[ "Generates", "a", "k8s", "Deployment", "for", "the", "restic", "-", "backup", "-", "sidecar", "container", "." ]
def new_backup_sidecar_deployment(backup_paths: List[str], store_secret_name: str) -> Dict: with open("/app/src/sidecar_deploy/backup.yml") as f: deployment: Dict = yaml.safe_load(f) deployment_name = deployment["metadata"]["name"] + f"-{os.urandom(16).hex()}" deplo...
[ "def", "new_backup_sidecar_deployment", "(", "backup_paths", ":", "List", "[", "str", "]", ",", "store_secret_name", ":", "str", ")", "->", "Dict", ":", "with", "open", "(", "\"/app/src/sidecar_deploy/backup.yml\"", ")", "as", "f", ":", "deployment", ":", "Dict"...
Generates a k8s Deployment for the restic-backup-sidecar container.
[ "Generates", "a", "k8s", "Deployment", "for", "the", "restic", "-", "backup", "-", "sidecar", "container", "." ]
[ "\"\"\"Generates a k8s Deployment for the restic-backup-sidecar container.\n\n Args:\n backup_paths:\n List of paths to back up.\n store_secret_name:\n Name of k8s secret with configuration of backup location.\n\n Returns:\n A k8s Deployment for the restic-backup-sid...
[ { "param": "backup_paths", "type": "List[str]" }, { "param": "store_secret_name", "type": "str" } ]
{ "returns": [ { "docstring": "A k8s Deployment for the restic-backup-sidecar container as Dict", "docstring_tokens": [ "A", "k8s", "Deployment", "for", "the", "restic", "-", "backup", "-", "sidecar", "container", ...
37cad67e74d71ed97ebb298d8ea6e60bd4867a7a
marvelous-systems/backup-runner
app/src/mutations/scale.py
[ "Apache-2.0" ]
Python
update_deployment_scale
null
def update_deployment_scale(name: str, namespace: str, replicas: int): """Updates a Deployment to scale to a certain amount of replicas. Does not wait for the cluster state to update to the desired state. Args: name: Name of the Deployment. namespace: Namespace of the Deployment. r...
Updates a Deployment to scale to a certain amount of replicas. Does not wait for the cluster state to update to the desired state. Args: name: Name of the Deployment. namespace: Namespace of the Deployment. replicas: Desired number of replicas.
Updates a Deployment to scale to a certain amount of replicas. Does not wait for the cluster state to update to the desired state.
[ "Updates", "a", "Deployment", "to", "scale", "to", "a", "certain", "amount", "of", "replicas", ".", "Does", "not", "wait", "for", "the", "cluster", "state", "to", "update", "to", "the", "desired", "state", "." ]
def update_deployment_scale(name: str, namespace: str, replicas: int): try: api = client.AppsV1Api() current_scale = api.read_namespaced_deployment_scale(name, namespace) current_scale.spec.replicas = replicas new_scale = api.patch_namespaced_deployment_scale(name, namespace, ...
[ "def", "update_deployment_scale", "(", "name", ":", "str", ",", "namespace", ":", "str", ",", "replicas", ":", "int", ")", ":", "try", ":", "api", "=", "client", ".", "AppsV1Api", "(", ")", "current_scale", "=", "api", ".", "read_namespaced_deployment_scale"...
Updates a Deployment to scale to a certain amount of replicas.
[ "Updates", "a", "Deployment", "to", "scale", "to", "a", "certain", "amount", "of", "replicas", "." ]
[ "\"\"\"Updates a Deployment to scale to a certain amount of replicas.\n\n Does not wait for the cluster state to update to the desired state.\n\n Args:\n name: Name of the Deployment.\n namespace: Namespace of the Deployment.\n replicas: Desired number of replicas.\n \"\"\"" ]
[ { "param": "name", "type": "str" }, { "param": "namespace", "type": "str" }, { "param": "replicas", "type": "int" } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "name", "type": "str", "docstring": "Name of the Deployment.", "docstring_tokens": [ "Name", "of", "the", "Deployment", "." ], "default": null, "is_optional": null }...
37cad67e74d71ed97ebb298d8ea6e60bd4867a7a
marvelous-systems/backup-runner
app/src/mutations/scale.py
[ "Apache-2.0" ]
Python
scale_deployment
null
async def scale_deployment(name: str, namespace: str, replicas: int, timeout: timedelta): """Updates a Deployment's scale and waits for cluster state to reconcile. Args: name: Name of the Deployment. namespace: Namespace of the Deployment. replicas: Desired nu...
Updates a Deployment's scale and waits for cluster state to reconcile. Args: name: Name of the Deployment. namespace: Namespace of the Deployment. replicas: Desired number of replicas. timeout: Time to wait for reconciliation until failing. Raises: ReconciliationError: ...
Updates a Deployment's scale and waits for cluster state to reconcile.
[ "Updates", "a", "Deployment", "'", "s", "scale", "and", "waits", "for", "cluster", "state", "to", "reconcile", "." ]
async def scale_deployment(name: str, namespace: str, replicas: int, timeout: timedelta): previous_replicas = get_scale_for_deployment(name, namespace) update_deployment_scale(name, namespace, replicas) try: api = client.AppsV1Api() predicate = deployment_has_scale...
[ "async", "def", "scale_deployment", "(", "name", ":", "str", ",", "namespace", ":", "str", ",", "replicas", ":", "int", ",", "timeout", ":", "timedelta", ")", ":", "previous_replicas", "=", "get_scale_for_deployment", "(", "name", ",", "namespace", ")", "upd...
Updates a Deployment's scale and waits for cluster state to reconcile.
[ "Updates", "a", "Deployment", "'", "s", "scale", "and", "waits", "for", "cluster", "state", "to", "reconcile", "." ]
[ "\"\"\"Updates a Deployment's scale and waits for cluster state to reconcile.\n\n Args:\n name: Name of the Deployment.\n namespace: Namespace of the Deployment.\n replicas: Desired number of replicas.\n timeout: Time to wait for reconciliation until failing.\n\n Raises:\n R...
[ { "param": "name", "type": "str" }, { "param": "namespace", "type": "str" }, { "param": "replicas", "type": "int" }, { "param": "timeout", "type": "timedelta" } ]
{ "returns": [], "raises": [ { "docstring": "The cluster state did not reconcile within timeout.", "docstring_tokens": [ "The", "cluster", "state", "did", "not", "reconcile", "within", "timeout", "." ], "type": "Reco...
37cad67e74d71ed97ebb298d8ea6e60bd4867a7a
marvelous-systems/backup-runner
app/src/mutations/scale.py
[ "Apache-2.0" ]
Python
scale_deployment_blocking
null
def scale_deployment_blocking(name: str, namespace: str, replicas: int, timeout: timedelta): """Updates a Deployment's scale and waits for cluster state to reconcile. Args: name: Name of the Deployment. namespace: Namespace of the Deployment. replicas: Desi...
Updates a Deployment's scale and waits for cluster state to reconcile. Args: name: Name of the Deployment. namespace: Namespace of the Deployment. replicas: Desired number of replicas. timeout: Time to wait for reconciliation until failing. Raises: ReconciliationError: ...
Updates a Deployment's scale and waits for cluster state to reconcile.
[ "Updates", "a", "Deployment", "'", "s", "scale", "and", "waits", "for", "cluster", "state", "to", "reconcile", "." ]
def scale_deployment_blocking(name: str, namespace: str, replicas: int, timeout: timedelta): asyncio.run(scale_deployment(name, namespace, replicas, timeout))
[ "def", "scale_deployment_blocking", "(", "name", ":", "str", ",", "namespace", ":", "str", ",", "replicas", ":", "int", ",", "timeout", ":", "timedelta", ")", ":", "asyncio", ".", "run", "(", "scale_deployment", "(", "name", ",", "namespace", ",", "replica...
Updates a Deployment's scale and waits for cluster state to reconcile.
[ "Updates", "a", "Deployment", "'", "s", "scale", "and", "waits", "for", "cluster", "state", "to", "reconcile", "." ]
[ "\"\"\"Updates a Deployment's scale and waits for cluster state to reconcile.\n\n Args:\n name: Name of the Deployment.\n namespace: Namespace of the Deployment.\n replicas: Desired number of replicas.\n timeout: Time to wait for reconciliation until failing.\n\n Raises:\n R...
[ { "param": "name", "type": "str" }, { "param": "namespace", "type": "str" }, { "param": "replicas", "type": "int" }, { "param": "timeout", "type": "timedelta" } ]
{ "returns": [], "raises": [ { "docstring": "The cluster state did not reconcile within timeout.", "docstring_tokens": [ "The", "cluster", "state", "did", "not", "reconcile", "within", "timeout", "." ], "type": "Reco...
046290bbf89e40b9d1e2e91b26773cae87f1349a
alexxxnf/VirusMutationsAI
backend2/src/api/api_v1/endpoints/user_subscription.py
[ "Apache-2.0" ]
Python
subscribe_user_me
Any
def subscribe_user_me( *, user: models.User = Depends(deps.get_current_active_user), db: Session = Depends(deps.get_db), mutation: str ) -> Any: """ Add a subscription to the subscriptions """ subscr = models.Subscription(user_id=user.id, mutation=mutation) db.add(subscr) try: ...
Add a subscription to the subscriptions
Add a subscription to the subscriptions
[ "Add", "a", "subscription", "to", "the", "subscriptions" ]
def subscribe_user_me( *, user: models.User = Depends(deps.get_current_active_user), db: Session = Depends(deps.get_db), mutation: str ) -> Any: subscr = models.Subscription(user_id=user.id, mutation=mutation) db.add(subscr) try: db.commit() except exc.IntegrityError as e: ...
[ "def", "subscribe_user_me", "(", "*", ",", "user", ":", "models", ".", "User", "=", "Depends", "(", "deps", ".", "get_current_active_user", ")", ",", "db", ":", "Session", "=", "Depends", "(", "deps", ".", "get_db", ")", ",", "mutation", ":", "str", ")...
Add a subscription to the subscriptions
[ "Add", "a", "subscription", "to", "the", "subscriptions" ]
[ "\"\"\"\n Add a subscription to the subscriptions\n \"\"\"", "# The mutation already subscribed (expected case)" ]
[ { "param": "user", "type": "models.User" }, { "param": "db", "type": "Session" }, { "param": "mutation", "type": "str" } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "user", "type": "models.User", "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "db", "type": "Session", "docstring": null, "docstrin...
046290bbf89e40b9d1e2e91b26773cae87f1349a
alexxxnf/VirusMutationsAI
backend2/src/api/api_v1/endpoints/user_subscription.py
[ "Apache-2.0" ]
Python
unsubscribe_user_me
Any
def unsubscribe_user_me( *, user: models.User = Depends(deps.get_current_active_user), db: Session = Depends(deps.get_db), mutation: str ) -> Any: """ Delete a subscription from the subscriptions """ db.query(models.Subscription.mutation).filter(models.Subscription.user_id == user.id, ...
Delete a subscription from the subscriptions
Delete a subscription from the subscriptions
[ "Delete", "a", "subscription", "from", "the", "subscriptions" ]
def unsubscribe_user_me( *, user: models.User = Depends(deps.get_current_active_user), db: Session = Depends(deps.get_db), mutation: str ) -> Any: db.query(models.Subscription.mutation).filter(models.Subscription.user_id == user.id, models.Subscripti...
[ "def", "unsubscribe_user_me", "(", "*", ",", "user", ":", "models", ".", "User", "=", "Depends", "(", "deps", ".", "get_current_active_user", ")", ",", "db", ":", "Session", "=", "Depends", "(", "deps", ".", "get_db", ")", ",", "mutation", ":", "str", ...
Delete a subscription from the subscriptions
[ "Delete", "a", "subscription", "from", "the", "subscriptions" ]
[ "\"\"\"\n Delete a subscription from the subscriptions\n \"\"\"" ]
[ { "param": "user", "type": "models.User" }, { "param": "db", "type": "Session" }, { "param": "mutation", "type": "str" } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "user", "type": "models.User", "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "db", "type": "Session", "docstring": null, "docstrin...
1739123aad0bd85f9beea60a5ddacbd848ecc7f0
alexxxnf/VirusMutationsAI
backend/py/vcf_parser.py
[ "Apache-2.0" ]
Python
convert_protein_mutations_from_3_to_1_letters
<not_specific>
def convert_protein_mutations_from_3_to_1_letters(muts: [list, set], is_strict_check=True): """ Convert protein mutations from 3-letter acids to 1-letter acid format. Example: "p.Thr5262Ile" -> "T5262I" """ new_muts = [] for mut in muts: m = re.match(r"p\.(?P<acid1>[A...
Convert protein mutations from 3-letter acids to 1-letter acid format. Example: "p.Thr5262Ile" -> "T5262I"
Convert protein mutations from 3-letter acids to 1-letter acid format.
[ "Convert", "protein", "mutations", "from", "3", "-", "letter", "acids", "to", "1", "-", "letter", "acid", "format", "." ]
def convert_protein_mutations_from_3_to_1_letters(muts: [list, set], is_strict_check=True): new_muts = [] for mut in muts: m = re.match(r"p\.(?P<acid1>[A-Z][a-z][a-z])(?P<pos>\d+)(?P<acid2>[A-Z][a-z][a-z])", mut) try: assert m, "Unexpected format (correct example:...
[ "def", "convert_protein_mutations_from_3_to_1_letters", "(", "muts", ":", "[", "list", ",", "set", "]", ",", "is_strict_check", "=", "True", ")", ":", "new_muts", "=", "[", "]", "for", "mut", "in", "muts", ":", "m", "=", "re", ".", "match", "(", "r\"p\\....
Convert protein mutations from 3-letter acids to 1-letter acid format.
[ "Convert", "protein", "mutations", "from", "3", "-", "letter", "acids", "to", "1", "-", "letter", "acid", "format", "." ]
[ "\"\"\"\n Convert protein mutations from 3-letter acids to 1-letter acid format. Example: \"p.Thr5262Ile\" -> \"T5262I\"\n \"\"\"", "# Cannot sort out stderr from stdout on the backend side, so no warnings for now", "#else:", "# eprint(f\"Warning while parsing protein mutation '{mut}' -> it w...
[ { "param": "muts", "type": "[list, set]" }, { "param": "is_strict_check", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "muts", "type": "[list, set]", "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "is_strict_check", "type": null, "docstring": null, "...
6af9bcc029a632e478d167cf4362b6a404ab18b3
alexxxnf/VirusMutationsAI
backend2/src/core/email.py
[ "Apache-2.0" ]
Python
send_message_from_queue
bool
def send_message_from_queue(self) -> bool: """Find a new message in the queue and send it. Returns False if queue is empty """ message: MessageQueue = self._db.query(MessageQueue) \ .filter(MessageQueue.status == MessageStatus.NEW) \ .with_for_update(skip_locked=...
Find a new message in the queue and send it. Returns False if queue is empty
Find a new message in the queue and send it. Returns False if queue is empty
[ "Find", "a", "new", "message", "in", "the", "queue", "and", "send", "it", ".", "Returns", "False", "if", "queue", "is", "empty" ]
def send_message_from_queue(self) -> bool: message: MessageQueue = self._db.query(MessageQueue) \ .filter(MessageQueue.status == MessageStatus.NEW) \ .with_for_update(skip_locked=True, key_share=True) \ .first() if not message: return False try: ...
[ "def", "send_message_from_queue", "(", "self", ")", "->", "bool", ":", "message", ":", "MessageQueue", "=", "self", ".", "_db", ".", "query", "(", "MessageQueue", ")", ".", "filter", "(", "MessageQueue", ".", "status", "==", "MessageStatus", ".", "NEW", ")...
Find a new message in the queue and send it.
[ "Find", "a", "new", "message", "in", "the", "queue", "and", "send", "it", "." ]
[ "\"\"\"Find a new message in the queue and send it.\n\n Returns False if queue is empty\n \"\"\"", "# TODO: Handle errors" ]
[ { "param": "self", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null } ], "outlier_params": [], "others": [] }
b7a421167e89520abd7dbfd4037412bd4c5758c9
Mr-TalhaIlyas/DAM-Hierarchical-Adaptive-Feature-Selection-Using-Convolution-Encoder-Decoder-Network-for-Strawberry
scripts/models.py
[ "CC-BY-4.0" ]
Python
SEED_Netv1
<not_specific>
def SEED_Netv1(input_img, n_filters, dropout, batchnorm = True, activation = 'relu'): """Function to define the UNET Model""" #Making image pyramids for concatinaing at later stages will simply resize the images avg_pyramid1, avg_pyramid2, avg_pyramid3, avg_pyramid4 = avg_img_pyramid(input_img) #via aver...
Function to define the UNET Model
Function to define the UNET Model
[ "Function", "to", "define", "the", "UNET", "Model" ]
def SEED_Netv1(input_img, n_filters, dropout, batchnorm = True, activation = 'relu'): avg_pyramid1, avg_pyramid2, avg_pyramid3, avg_pyramid4 = avg_img_pyramid(input_img) max_pyramid1, max_pyramid2, max_pyramid3, max_pyramid4 = max_img_pyramid(input_img) c1 = SE_ResNet(input_img, n_filters * 1, kernel_size...
[ "def", "SEED_Netv1", "(", "input_img", ",", "n_filters", ",", "dropout", ",", "batchnorm", "=", "True", ",", "activation", "=", "'relu'", ")", ":", "avg_pyramid1", ",", "avg_pyramid2", ",", "avg_pyramid3", ",", "avg_pyramid4", "=", "avg_img_pyramid", "(", "inp...
Function to define the UNET Model
[ "Function", "to", "define", "the", "UNET", "Model" ]
[ "\"\"\"Function to define the UNET Model\"\"\"", "#Making image pyramids for concatinaing at later stages will simply resize the images\r", "#via average pooling\r", "#via max pooling\r", "# Contracting Path\r", "#connecting encoder decoder\r", "#c5 = parallel_dil(c5, n_filters * 16, kernel_size = 3) #w...
[ { "param": "input_img", "type": null }, { "param": "n_filters", "type": null }, { "param": "dropout", "type": null }, { "param": "batchnorm", "type": null }, { "param": "activation", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "input_img", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "n_filters", "type": null, "docstring": null, "docstring_...
b7a421167e89520abd7dbfd4037412bd4c5758c9
Mr-TalhaIlyas/DAM-Hierarchical-Adaptive-Feature-Selection-Using-Convolution-Encoder-Decoder-Network-for-Strawberry
scripts/models.py
[ "CC-BY-4.0" ]
Python
SEED_Netv101
<not_specific>
def SEED_Netv101(input_img, n_filters, dropout, weight_decay=False, batchnorm = True, activation = 'relu'): """Function to define the UNET Model""" if weight_decay == True: weight_decay = l2(5e-4) else: weight_decay = None c0 = Conv2D(16, kernel_size = (7, 7), strides=(2, 2), kerne...
Function to define the UNET Model
Function to define the UNET Model
[ "Function", "to", "define", "the", "UNET", "Model" ]
def SEED_Netv101(input_img, n_filters, dropout, weight_decay=False, batchnorm = True, activation = 'relu'): if weight_decay == True: weight_decay = l2(5e-4) else: weight_decay = None c0 = Conv2D(16, kernel_size = (7, 7), strides=(2, 2), kernel_initializer = 'he_normal', padding = 'same')(inp...
[ "def", "SEED_Netv101", "(", "input_img", ",", "n_filters", ",", "dropout", ",", "weight_decay", "=", "False", ",", "batchnorm", "=", "True", ",", "activation", "=", "'relu'", ")", ":", "if", "weight_decay", "==", "True", ":", "weight_decay", "=", "l2", "("...
Function to define the UNET Model
[ "Function", "to", "define", "the", "UNET", "Model" ]
[ "\"\"\"Function to define the UNET Model\"\"\"", "# Contracting Path\r", "#p4 = MaxPooling2D((2, 2))(c4)\r", "#p4 = MaxPooling2D((2, 2))(c4)\r", "#connecting encoder decoder\r", "#c6 = PSP_module(c6, n_filters * 16)\r", "#c6 = ASPP_v3(c6, n_filters*16, input_img, downsample_by = 16)\r", "#c6 = ASPP_v2...
[ { "param": "input_img", "type": null }, { "param": "n_filters", "type": null }, { "param": "dropout", "type": null }, { "param": "weight_decay", "type": null }, { "param": "batchnorm", "type": null }, { "param": "activation", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "input_img", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "n_filters", "type": null, "docstring": null, "docstring_...
b7a421167e89520abd7dbfd4037412bd4c5758c9
Mr-TalhaIlyas/DAM-Hierarchical-Adaptive-Feature-Selection-Using-Convolution-Encoder-Decoder-Network-for-Strawberry
scripts/models.py
[ "CC-BY-4.0" ]
Python
Pyramid_Unet
<not_specific>
def Pyramid_Unet(input_img, n_filters, dropout, batchnorm = True): """Function to define the UNET Model""" #Making image pyramids for concatinaing at later stages will simply resize the images avg_pyramid1, avg_pyramid2, avg_pyramid3, avg_pyramid4 = avg_img_pyramid(input_img) #via average pooling ma...
Function to define the UNET Model
Function to define the UNET Model
[ "Function", "to", "define", "the", "UNET", "Model" ]
def Pyramid_Unet(input_img, n_filters, dropout, batchnorm = True): avg_pyramid1, avg_pyramid2, avg_pyramid3, avg_pyramid4 = avg_img_pyramid(input_img) max_pyramid1, max_pyramid2, max_pyramid3, max_pyramid4 = max_img_pyramid(input_img) c1 = SE_ResNet(input_img, n_filters * 1, kernel_size = 3, batchnorm = b...
[ "def", "Pyramid_Unet", "(", "input_img", ",", "n_filters", ",", "dropout", ",", "batchnorm", "=", "True", ")", ":", "avg_pyramid1", ",", "avg_pyramid2", ",", "avg_pyramid3", ",", "avg_pyramid4", "=", "avg_img_pyramid", "(", "input_img", ")", "max_pyramid1", ",",...
Function to define the UNET Model
[ "Function", "to", "define", "the", "UNET", "Model" ]
[ "\"\"\"Function to define the UNET Model\"\"\"", "#Making image pyramids for concatinaing at later stages will simply resize the images\r", "#via average pooling\r", "#via max pooling\r", "# Contracting Path\r", "#connecting encoder decoder\r", "#c5 = parallel_dil(c5, n_filters * 16, kernel_size = 3) #w...
[ { "param": "input_img", "type": null }, { "param": "n_filters", "type": null }, { "param": "dropout", "type": null }, { "param": "batchnorm", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "input_img", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "n_filters", "type": null, "docstring": null, "docstring_...
b7a421167e89520abd7dbfd4037412bd4c5758c9
Mr-TalhaIlyas/DAM-Hierarchical-Adaptive-Feature-Selection-Using-Convolution-Encoder-Decoder-Network-for-Strawberry
scripts/models.py
[ "CC-BY-4.0" ]
Python
PSP_net
<not_specific>
def PSP_net(input_img, n_filters, dropout, batchnorm = True): ''' For this model output is 1/8 of the input size ''' c0 = Conv2D(starting_ch, kernel_size = (7, 7), kernel_initializer = 'he_normal', padding = 'same')(input_img) c0 = BatchNormalization()(c0) c0 = Activation('relu')(c0) ...
For this model output is 1/8 of the input size
For this model output is 1/8 of the input size
[ "For", "this", "model", "output", "is", "1", "/", "8", "of", "the", "input", "size" ]
def PSP_net(input_img, n_filters, dropout, batchnorm = True): c0 = Conv2D(starting_ch, kernel_size = (7, 7), kernel_initializer = 'he_normal', padding = 'same')(input_img) c0 = BatchNormalization()(c0) c0 = Activation('relu')(c0) c1 = SE_ResNet(c0, n_filters * 1, kernel_size = 3, batchnorm = batchnorm, ...
[ "def", "PSP_net", "(", "input_img", ",", "n_filters", ",", "dropout", ",", "batchnorm", "=", "True", ")", ":", "c0", "=", "Conv2D", "(", "starting_ch", ",", "kernel_size", "=", "(", "7", ",", "7", ")", ",", "kernel_initializer", "=", "'he_normal'", ",", ...
For this model output is 1/8 of the input size
[ "For", "this", "model", "output", "is", "1", "/", "8", "of", "the", "input", "size" ]
[ "'''\r\n For this model output is 1/8 of the input size\r\n '''", "# Contracting Path\r", "#c4 = MaxPooling2D((2, 2))(c4)\r", "#Transition\r", "#, activation='softmax'\r" ]
[ { "param": "input_img", "type": null }, { "param": "n_filters", "type": null }, { "param": "dropout", "type": null }, { "param": "batchnorm", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "input_img", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "n_filters", "type": null, "docstring": null, "docstring_...
b7a421167e89520abd7dbfd4037412bd4c5758c9
Mr-TalhaIlyas/DAM-Hierarchical-Adaptive-Feature-Selection-Using-Convolution-Encoder-Decoder-Network-for-Strawberry
scripts/models.py
[ "CC-BY-4.0" ]
Python
GCN_net
<not_specific>
def GCN_net(input_img, n_filters, dropout, batchnorm = True): ''' This one is designed for 512x512 input ''' c0 = Conv2D(starting_ch, kernel_size = (7, 7), kernel_initializer = 'he_normal', padding = 'same')(input_img) c0 = BatchNormalization()(c0) c0 = Activation('relu')(c0) # Contra...
This one is designed for 512x512 input
This one is designed for 512x512 input
[ "This", "one", "is", "designed", "for", "512x512", "input" ]
def GCN_net(input_img, n_filters, dropout, batchnorm = True): c0 = Conv2D(starting_ch, kernel_size = (7, 7), kernel_initializer = 'he_normal', padding = 'same')(input_img) c0 = BatchNormalization()(c0) c0 = Activation('relu')(c0) c1 = SE_ResNet(c0, n_filters * 1, kernel_size = 3, batchnorm = batchnorm, ...
[ "def", "GCN_net", "(", "input_img", ",", "n_filters", ",", "dropout", ",", "batchnorm", "=", "True", ")", ":", "c0", "=", "Conv2D", "(", "starting_ch", ",", "kernel_size", "=", "(", "7", ",", "7", ")", ",", "kernel_initializer", "=", "'he_normal'", ",", ...
This one is designed for 512x512 input
[ "This", "one", "is", "designed", "for", "512x512", "input" ]
[ "'''\r\n This one is designed for 512x512 input\r\n '''", "# Contracting Path\r", "# Expanding Path\r", "#, activation='softmax'\r" ]
[ { "param": "input_img", "type": null }, { "param": "n_filters", "type": null }, { "param": "dropout", "type": null }, { "param": "batchnorm", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "input_img", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "n_filters", "type": null, "docstring": null, "docstring_...
b7a421167e89520abd7dbfd4037412bd4c5758c9
Mr-TalhaIlyas/DAM-Hierarchical-Adaptive-Feature-Selection-Using-Convolution-Encoder-Decoder-Network-for-Strawberry
scripts/models.py
[ "CC-BY-4.0" ]
Python
DAN_net
<not_specific>
def DAN_net(input_img, n_filters, dropout, batchnorm = True): ''' For this model output is 1/8 of the input size ''' c0 = Conv2D(starting_ch, kernel_size = (7, 7), kernel_initializer = 'he_normal', padding = 'same')(input_img) c0 = BatchNormalization()(c0) c0 = Activation('relu')(c0) ...
For this model output is 1/8 of the input size
For this model output is 1/8 of the input size
[ "For", "this", "model", "output", "is", "1", "/", "8", "of", "the", "input", "size" ]
def DAN_net(input_img, n_filters, dropout, batchnorm = True): c0 = Conv2D(starting_ch, kernel_size = (7, 7), kernel_initializer = 'he_normal', padding = 'same')(input_img) c0 = BatchNormalization()(c0) c0 = Activation('relu')(c0) c1 = SE_ResNet(c0, n_filters * 1, kernel_size = 3, batchnorm = batchnorm, ...
[ "def", "DAN_net", "(", "input_img", ",", "n_filters", ",", "dropout", ",", "batchnorm", "=", "True", ")", ":", "c0", "=", "Conv2D", "(", "starting_ch", ",", "kernel_size", "=", "(", "7", ",", "7", ")", ",", "kernel_initializer", "=", "'he_normal'", ",", ...
For this model output is 1/8 of the input size
[ "For", "this", "model", "output", "is", "1", "/", "8", "of", "the", "input", "size" ]
[ "'''\r\n For this model output is 1/8 of the input size\r\n '''", "# Contracting Path\r", "#c4 = MaxPooling2D((2, 2))(c4)\r", "#Transition\r", "'''\r\n **([c5, n_filters])** For giving more than 1 tensor as an input to lambda layer.\r\n Now this list will be passed on to the function inside lamb...
[ { "param": "input_img", "type": null }, { "param": "n_filters", "type": null }, { "param": "dropout", "type": null }, { "param": "batchnorm", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "input_img", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "n_filters", "type": null, "docstring": null, "docstring_...
df68eb5556a941d30aaf47bb6692b34830799474
bahaisongproject/bahai-songs
scripts/utils.py
[ "MIT" ]
Python
format_songsheet
<not_specific>
def format_songsheet(song_sheet): """Format the songsheet to make sense in non mono-space fonts""" c = re.compile('^[A-G](b|#)?(add|maj|min|m|M|\+|-|dim|aug)?[0-9]*(sus)?[0-9]*(\/[A-G](b|#)?)?$') result_lines = [] song_sheet_trimmed = re.compile("\n+").split(song_sheet, 1)[1] for line in song_sheet...
Format the songsheet to make sense in non mono-space fonts
Format the songsheet to make sense in non mono-space fonts
[ "Format", "the", "songsheet", "to", "make", "sense", "in", "non", "mono", "-", "space", "fonts" ]
def format_songsheet(song_sheet): c = re.compile('^[A-G](b|#)?(add|maj|min|m|M|\+|-|dim|aug)?[0-9]*(sus)?[0-9]*(\/[A-G](b|#)?)?$') result_lines = [] song_sheet_trimmed = re.compile("\n+").split(song_sheet, 1)[1] for line in song_sheet_trimmed.splitlines(): chord_candidates = line.split() ...
[ "def", "format_songsheet", "(", "song_sheet", ")", ":", "c", "=", "re", ".", "compile", "(", "'^[A-G](b|#)?(add|maj|min|m|M|\\+|-|dim|aug)?[0-9]*(sus)?[0-9]*(\\/[A-G](b|#)?)?$'", ")", "result_lines", "=", "[", "]", "song_sheet_trimmed", "=", "re", ".", "compile", "(", ...
Format the songsheet to make sense in non mono-space fonts
[ "Format", "the", "songsheet", "to", "make", "sense", "in", "non", "mono", "-", "space", "fonts" ]
[ "\"\"\"Format the songsheet to make sense in non mono-space fonts\"\"\"", "# More non-chords than chords?" ]
[ { "param": "song_sheet", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "song_sheet", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null } ], "outlier_params": [], "others": [] }
e843a61dfe40b91d499d3207897898bbe56c0a00
ritesh-chafer/recipe-app-api
app/recipe/tests/test_recipe_api.py
[ "MIT" ]
Python
sample_recipe
<not_specific>
def sample_recipe(user, **params): """create and return a sample recipe""" defaults={ 'title' : 'Sample recipe ', 'time_minutes': 10, 'price' : 5.00 } defaults.update(params) return Recipe.objects.create(user = user, **defaults)
create and return a sample recipe
create and return a sample recipe
[ "create", "and", "return", "a", "sample", "recipe" ]
def sample_recipe(user, **params): defaults={ 'title' : 'Sample recipe ', 'time_minutes': 10, 'price' : 5.00 } defaults.update(params) return Recipe.objects.create(user = user, **defaults)
[ "def", "sample_recipe", "(", "user", ",", "**", "params", ")", ":", "defaults", "=", "{", "'title'", ":", "'Sample recipe '", ",", "'time_minutes'", ":", "10", ",", "'price'", ":", "5.00", "}", "defaults", ".", "update", "(", "params", ")", "return", "Re...
create and return a sample recipe
[ "create", "and", "return", "a", "sample", "recipe" ]
[ "\"\"\"create and return a sample recipe\"\"\"" ]
[ { "param": "user", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "user", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null } ], "outlier_params": [], "others": [] }
f61a939f46d28e9428b5c325a821571b006208a5
ErenEla/transparencyEpias
transparency_epias/production/productionClient.py
[ "MIT" ]
Python
availability
<not_specific>
def availability(self, startDate, endDate, orgEic=None, uevcbEic=None): ''' This function returns a dictionary including following information; -Date (tarih) -Total (toplam) -Natural Gas (dogalgaz) -Wind (ruzgar) -Brown Coal (linyit) ...
This function returns a dictionary including following information; -Date (tarih) -Total (toplam) -Natural Gas (dogalgaz) -Wind (ruzgar) -Brown Coal (linyit) -Bituminous Coal (tasKomur) -Import Coal (ithalKomur) -Fu...
Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format. orgEic (Optional): Organization EIC Code information e.g: 40X000000003585Y. uevcbEic (Optional): Organization EIC Code information e.g: 40W000000026808R. For certain power plant availability information, both orgEic and uevcbEic parameters sh...
[ "Start", "date", "in", "YYYY", "-", "MM", "-", "DD", "format", ".", "endDate", ":", "End", "date", "in", "YYYY", "-", "MM", "-", "DD", "format", ".", "orgEic", "(", "Optional", ")", ":", "Organization", "EIC", "Code", "information", "e", ".", "g", ...
def availability(self, startDate, endDate, orgEic=None, uevcbEic=None): val.date_check(startDate, endDate) if orgEic == None and uevcbEic != None: raise Exception('Please provide organization eic cide with uevbEic code to get plant availability informaton' ) else: pass ...
[ "def", "availability", "(", "self", ",", "startDate", ",", "endDate", ",", "orgEic", "=", "None", ",", "uevcbEic", "=", "None", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "if", "orgEic", "==", "None", "and", "uevcbEic", ...
This function returns a dictionary including following information; Date (tarih) Total (toplam) Natural Gas (dogalgaz) Wind (ruzgar) Brown Coal (linyit) Bituminous Coal (tasKomur) Import Coal (ithalKomur) Fuel (fuelOil) Geothermal (jeotermal) Dam (barajli) Naphtha-based (nafta) Biomass (biokutle) River (akarsu) Other (...
[ "This", "function", "returns", "a", "dictionary", "including", "following", "information", ";", "Date", "(", "tarih", ")", "Total", "(", "toplam", ")", "Natural", "Gas", "(", "dogalgaz", ")", "Wind", "(", "ruzgar", ")", "Brown", "Coal", "(", "linyit", ")",...
[ "'''\n This function returns a dictionary including following information;\n -Date (tarih)\n -Total (toplam)\n -Natural Gas (dogalgaz)\n -Wind (ruzgar)\n -Brown Coal (linyit)\n -Bituminous Coal (tasKomur)\n -Import Coal (ithalKomur)...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null }, { "param": "orgEic", "type": null }, { "param": "uevcbEic", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
f61a939f46d28e9428b5c325a821571b006208a5
ErenEla/transparencyEpias
transparency_epias/production/productionClient.py
[ "MIT" ]
Python
daily_production_plan
<not_specific>
def daily_production_plan(self, startDate, endDate, orgEic=None, uevcbEic=None): ''' This function returns a dictionary including following information; -Date (tarih) -Hour (saat) -Total (toplam) -Natural Gas (dogalgaz) -Wind (ruzgar) ...
This function returns a dictionary including following information; -Date (tarih) -Hour (saat) -Total (toplam) -Natural Gas (dogalgaz) -Wind (ruzgar) -Brown Coal (linyit) -Bituminous Coal (tasKomur) -Import Coal (it...
Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format. orgEic (Optional): Organization EIC Code information e.g: 40X000000003585Y. uevcbEic (Optional): Organization EIC Code information e.g: 40W000000026808R. For certain power plant availability information, both orgEic and uevcbEic parameters sh...
[ "Start", "date", "in", "YYYY", "-", "MM", "-", "DD", "format", ".", "endDate", ":", "End", "date", "in", "YYYY", "-", "MM", "-", "DD", "format", ".", "orgEic", "(", "Optional", ")", ":", "Organization", "EIC", "Code", "information", "e", ".", "g", ...
def daily_production_plan(self, startDate, endDate, orgEic=None, uevcbEic=None): val.date_check(startDate, endDate) if orgEic == None and uevcbEic != None: raise Exception('Please provide organization eic cide with uevbEic code to get plant availability informaton' ) else: ...
[ "def", "daily_production_plan", "(", "self", ",", "startDate", ",", "endDate", ",", "orgEic", "=", "None", ",", "uevcbEic", "=", "None", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "if", "orgEic", "==", "None", "and", "uevc...
This function returns a dictionary including following information; Date (tarih) Hour (saat) Total (toplam) Natural Gas (dogalgaz) Wind (ruzgar) Brown Coal (linyit) Bituminous Coal (tasKomur) Import Coal (ithalKomur) Fuel (fuelOil) Geothermal (jeotermal) Dam (barajli) Naphtha-based (nafta) Biomass (biokutle) River (aka...
[ "This", "function", "returns", "a", "dictionary", "including", "following", "information", ";", "Date", "(", "tarih", ")", "Hour", "(", "saat", ")", "Total", "(", "toplam", ")", "Natural", "Gas", "(", "dogalgaz", ")", "Wind", "(", "ruzgar", ")", "Brown", ...
[ "'''\n This function returns a dictionary including following information;\n -Date (tarih)\n -Hour (saat)\n -Total (toplam)\n -Natural Gas (dogalgaz)\n -Wind (ruzgar)\n -Brown Coal (linyit)\n -Bituminous Coal (tasKomur)\n ...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null }, { "param": "orgEic", "type": null }, { "param": "uevcbEic", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
f61a939f46d28e9428b5c325a821571b006208a5
ErenEla/transparencyEpias
transparency_epias/production/productionClient.py
[ "MIT" ]
Python
daily_production_plan_total
<not_specific>
def daily_production_plan_total(self, startDate, endDate): ''' This function returns a dictionary including following information; -Date infromation. -Total Daily production plan for specified datetime. Parameters: startDate: Start date in YYYY-MM-DD format. ...
This function returns a dictionary including following information; -Date infromation. -Total Daily production plan for specified datetime. Parameters: startDate: Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
This function returns a dictionary including following information; Date infromation. Total Daily production plan for specified datetime. Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
[ "This", "function", "returns", "a", "dictionary", "including", "following", "information", ";", "Date", "infromation", ".", "Total", "Daily", "production", "plan", "for", "specified", "datetime", ".", "Start", "date", "in", "YYYY", "-", "MM", "-", "DD", "forma...
def daily_production_plan_total(self, startDate, endDate): val.date_check(startDate, endDate) query = "production/final-dpp?startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_...
[ "def", "daily_production_plan_total", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"production/final-dpp?startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "+", "...
This function returns a dictionary including following information; Date infromation.
[ "This", "function", "returns", "a", "dictionary", "including", "following", "information", ";", "Date", "infromation", "." ]
[ "'''\n This function returns a dictionary including following information;\n -Date infromation.\n -Total Daily production plan for specified datetime.\n\n Parameters:\n\n startDate: Start date in YYYY-MM-DD format.\n endDate: End date in YYYY-MM-DD format.\n\n ...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
f61a939f46d28e9428b5c325a821571b006208a5
ErenEla/transparencyEpias
transparency_epias/production/productionClient.py
[ "MIT" ]
Python
back_charge
<not_specific>
def back_charge(self, startDate, endDate): ''' This function returns a dictionary including following information; -Back charge credit amount (gddk Credit Amount) -Back charge debt amount (gddkDebtAmount) -Net back charge amount (gddkNetAmount) Parameters: ...
This function returns a dictionary including following information; -Back charge credit amount (gddk Credit Amount) -Back charge debt amount (gddkDebtAmount) -Net back charge amount (gddkNetAmount) Parameters: startDate: Start date in YYYY-MM-DD format. ...
This function returns a dictionary including following information; Back charge credit amount (gddk Credit Amount) Back charge debt amount (gddkDebtAmount) Net back charge amount (gddkNetAmount) Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
[ "This", "function", "returns", "a", "dictionary", "including", "following", "information", ";", "Back", "charge", "credit", "amount", "(", "gddk", "Credit", "Amount", ")", "Back", "charge", "debt", "amount", "(", "gddkDebtAmount", ")", "Net", "back", "charge", ...
def back_charge(self, startDate, endDate): val.date_check(startDate, endDate) query = "production/gddk-amount?startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_list[0] ...
[ "def", "back_charge", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"production/gddk-amount?startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "+", "f'{endDate}'",...
This function returns a dictionary including following information; Back charge credit amount (gddk Credit Amount) Back charge debt amount (gddkDebtAmount) Net back charge amount (gddkNetAmount)
[ "This", "function", "returns", "a", "dictionary", "including", "following", "information", ";", "Back", "charge", "credit", "amount", "(", "gddk", "Credit", "Amount", ")", "Back", "charge", "debt", "amount", "(", "gddkDebtAmount", ")", "Net", "back", "charge", ...
[ "'''\n This function returns a dictionary including following information;\n -Back charge credit amount (gddk Credit Amount)\n -Back charge debt amount (gddkDebtAmount)\n -Net back charge amount (gddkNetAmount)\n\n Parameters:\n\n startDate: Start date in YYYY-M...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
f61a939f46d28e9428b5c325a821571b006208a5
ErenEla/transparencyEpias
transparency_epias/production/productionClient.py
[ "MIT" ]
Python
installed_cap
<not_specific>
def installed_cap(self, date): ''' This function returns a dictionary including following information; -Period information. -Capacity type information. -Capacity amount. Parameters: date: Date in YYYY-MM-DD format. Note: For plants in feed-...
This function returns a dictionary including following information; -Period information. -Capacity type information. -Capacity amount. Parameters: date: Date in YYYY-MM-DD format. Note: For plants in feed-in tarriffs look for install_cap_fit ...
This function returns a dictionary including following information; Period information. Capacity type information. Capacity amount. Date in YYYY-MM-DD format. For plants in feed-in tarriffs look for install_cap_fit
[ "This", "function", "returns", "a", "dictionary", "including", "following", "information", ";", "Period", "information", ".", "Capacity", "type", "information", ".", "Capacity", "amount", ".", "Date", "in", "YYYY", "-", "MM", "-", "DD", "format", ".", "For", ...
def installed_cap(self, date): val.date_format_check(date) query = "production/installed-capacity?period="+f'{date}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_list[0] response_list = json_result['body'][f'{key_...
[ "def", "installed_cap", "(", "self", ",", "date", ")", ":", "val", ".", "date_format_check", "(", "date", ")", "query", "=", "\"production/installed-capacity?period=\"", "+", "f'{date}'", "json_result", "=", "self", ".", "get_request_result", "(", "query", ")", ...
This function returns a dictionary including following information; Period information.
[ "This", "function", "returns", "a", "dictionary", "including", "following", "information", ";", "Period", "information", "." ]
[ "'''\n This function returns a dictionary including following information;\n -Period information.\n -Capacity type information.\n -Capacity amount.\n\n Parameters:\n\n date: Date in YYYY-MM-DD format.\n\n Note: For plants in feed-in tarriffs look for inst...
[ { "param": "self", "type": null }, { "param": "date", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "date", "type": null, "docstring": null, "docstring_tokens": [...
f61a939f46d28e9428b5c325a821571b006208a5
ErenEla/transparencyEpias
transparency_epias/production/productionClient.py
[ "MIT" ]
Python
installed_cap_renewables
<not_specific>
def installed_cap_renewables(self, date): ''' This function returns a dictionary including following information; -Capacity type id information. -Period information. -Capacity type information. -Capacity amount. Parameters: date: Date in...
This function returns a dictionary including following information; -Capacity type id information. -Period information. -Capacity type information. -Capacity amount. Parameters: date: Date in YYYY-MM-DD format.
This function returns a dictionary including following information; Capacity type id information. Period information. Capacity type information. Capacity amount. Date in YYYY-MM-DD format.
[ "This", "function", "returns", "a", "dictionary", "including", "following", "information", ";", "Capacity", "type", "id", "information", ".", "Period", "information", ".", "Capacity", "type", "information", ".", "Capacity", "amount", ".", "Date", "in", "YYYY", "...
def installed_cap_renewables(self, date): val.date_format_check(date) query = "production/installed-capacity-of-renewable?period="+f'{date}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_list[0] response_list = jso...
[ "def", "installed_cap_renewables", "(", "self", ",", "date", ")", ":", "val", ".", "date_format_check", "(", "date", ")", "query", "=", "\"production/installed-capacity-of-renewable?period=\"", "+", "f'{date}'", "json_result", "=", "self", ".", "get_request_result", "...
This function returns a dictionary including following information; Capacity type id information.
[ "This", "function", "returns", "a", "dictionary", "including", "following", "information", ";", "Capacity", "type", "id", "information", "." ]
[ "'''\n This function returns a dictionary including following information;\n -Capacity type id information.\n -Period information.\n -Capacity type information.\n -Capacity amount.\n\n Parameters:\n\n date: Date in YYYY-MM-DD format.\n\n '''" ]
[ { "param": "self", "type": null }, { "param": "date", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "date", "type": null, "docstring": null, "docstring_tokens": [...
f61a939f46d28e9428b5c325a821571b006208a5
ErenEla/transparencyEpias
transparency_epias/production/productionClient.py
[ "MIT" ]
Python
unit_cost_fit
<not_specific>
def unit_cost_fit(self, startDate, endDate): ''' This function returns 3 lists including; -Unit Cost values as first item. -Version date information as second item. -Period date information as third item. Parameters: startDate: Start date in YYYY-MM...
This function returns 3 lists including; -Unit Cost values as first item. -Version date information as second item. -Period date information as third item. Parameters: startDate: Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD forma...
This function returns 3 lists including; Unit Cost values as first item. Version date information as second item. Period date information as third item. Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
[ "This", "function", "returns", "3", "lists", "including", ";", "Unit", "Cost", "values", "as", "first", "item", ".", "Version", "date", "information", "as", "second", "item", ".", "Period", "date", "information", "as", "third", "item", ".", "Start", "date", ...
def unit_cost_fit(self, startDate, endDate): val.date_check(startDate, endDate) query = "production/renewable-sm-unit-cost?startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_l...
[ "def", "unit_cost_fit", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"production/renewable-sm-unit-cost?startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "+", "f...
This function returns 3 lists including; Unit Cost values as first item.
[ "This", "function", "returns", "3", "lists", "including", ";", "Unit", "Cost", "values", "as", "first", "item", "." ]
[ "'''\n This function returns 3 lists including;\n -Unit Cost values as first item.\n -Version date information as second item.\n -Period date information as third item.\n\n Parameters:\n\n startDate: Start date in YYYY-MM-DD format.\n endDate: End date in...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
f61a939f46d28e9428b5c325a821571b006208a5
ErenEla/transparencyEpias
transparency_epias/production/productionClient.py
[ "MIT" ]
Python
fit_cost_total
<not_specific>
def fit_cost_total(self, startDate, endDate): ''' This function returns a dictionary including following information; -LicenseExemptCost -Period -PortfolioIncome -ReneablesCost (RenewableCost **There is a typo in the response) -RenewablesTotal...
This function returns a dictionary including following information; -LicenseExemptCost -Period -PortfolioIncome -ReneablesCost (RenewableCost **There is a typo in the response) -RenewablesTotalCost -UnitCost Parameter...
This function returns a dictionary including following information; LicenseExemptCost Period PortfolioIncome ReneablesCost (RenewableCost **There is a typo in the response) RenewablesTotalCost UnitCost Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
[ "This", "function", "returns", "a", "dictionary", "including", "following", "information", ";", "LicenseExemptCost", "Period", "PortfolioIncome", "ReneablesCost", "(", "RenewableCost", "**", "There", "is", "a", "typo", "in", "the", "response", ")", "RenewablesTotalCos...
def fit_cost_total(self, startDate, endDate): val.date_check(startDate, endDate) query = "production/renewables-support?startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_list...
[ "def", "fit_cost_total", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"production/renewables-support?startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "+", "f'{e...
This function returns a dictionary including following information; LicenseExemptCost Period PortfolioIncome ReneablesCost (RenewableCost **There is a typo in the response) RenewablesTotalCost UnitCost
[ "This", "function", "returns", "a", "dictionary", "including", "following", "information", ";", "LicenseExemptCost", "Period", "PortfolioIncome", "ReneablesCost", "(", "RenewableCost", "**", "There", "is", "a", "typo", "in", "the", "response", ")", "RenewablesTotalCos...
[ "'''\n This function returns a dictionary including following information;\n -LicenseExemptCost\n -Period\n -PortfolioIncome\n -ReneablesCost (RenewableCost **There is a typo in the response)\n -RenewablesTotalCost\n -UnitCost\n\n \...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
f61a939f46d28e9428b5c325a821571b006208a5
ErenEla/transparencyEpias
transparency_epias/production/productionClient.py
[ "MIT" ]
Python
daily_production_plan_updated
<not_specific>
def daily_production_plan_updated(self, startDate, endDate, orgEic=None, uevcbEic=None): ''' This function returns a dictionary including following information; -Date (tarih) -Hour (saat) -Total (toplam) -Natural Gas (dogalgaz) -Wind (ruzgar) ...
This function returns a dictionary including following information; -Date (tarih) -Hour (saat) -Total (toplam) -Natural Gas (dogalgaz) -Wind (ruzgar) -Brown Coal (linyit) -Bituminous Coal (tasKomur) -Import Coal (it...
Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format. orgEic (Optional): Organization EIC Code information e.g: 40X000000003585Y. uevcbEic (Optional): Organization EIC Code information e.g: 40W000000026808R. For certain power plant availability information, both orgEic and uevcbEic parameters sh...
[ "Start", "date", "in", "YYYY", "-", "MM", "-", "DD", "format", ".", "endDate", ":", "End", "date", "in", "YYYY", "-", "MM", "-", "DD", "format", ".", "orgEic", "(", "Optional", ")", ":", "Organization", "EIC", "Code", "information", "e", ".", "g", ...
def daily_production_plan_updated(self, startDate, endDate, orgEic=None, uevcbEic=None): val.date_check(startDate, endDate) if orgEic == None and uevcbEic != None: raise Exception('Please provide organization eic cide with uevbEic code to get plant availability informaton' ) else: ...
[ "def", "daily_production_plan_updated", "(", "self", ",", "startDate", ",", "endDate", ",", "orgEic", "=", "None", ",", "uevcbEic", "=", "None", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "if", "orgEic", "==", "None", "and",...
This function returns a dictionary including following information; Date (tarih) Hour (saat) Total (toplam) Natural Gas (dogalgaz) Wind (ruzgar) Brown Coal (linyit) Bituminous Coal (tasKomur) Import Coal (ithalKomur) Fuel (fuelOil) Geothermal (jeotermal) Dam (barajli) Naphtha-based (nafta) Biomass (biokutle) River (aka...
[ "This", "function", "returns", "a", "dictionary", "including", "following", "information", ";", "Date", "(", "tarih", ")", "Hour", "(", "saat", ")", "Total", "(", "toplam", ")", "Natural", "Gas", "(", "dogalgaz", ")", "Wind", "(", "ruzgar", ")", "Brown", ...
[ "'''\n This function returns a dictionary including following information;\n -Date (tarih)\n -Hour (saat)\n -Total (toplam)\n -Natural Gas (dogalgaz)\n -Wind (ruzgar)\n -Brown Coal (linyit)\n -Bituminous Coal (tasKomur)\n ...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null }, { "param": "orgEic", "type": null }, { "param": "uevcbEic", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
54e42eec3905468a35a5ddce0988e3b1aea5c3d8
ErenEla/transparencyEpias
transparency_epias/markets/ancillaryServiceClient.py
[ "MIT" ]
Python
pfc_amount
<not_specific>
def pfc_amount(self, startDate, endDate): ''' This function returns 3 lists including; -Date list for specified date as first item. -Hour information as second item. -Primary Frequancy Reserve Amounts as third item. Parameters: startDate: Start date...
This function returns 3 lists including; -Date list for specified date as first item. -Hour information as second item. -Primary Frequancy Reserve Amounts as third item. Parameters: startDate: Start date in YYYY-MM-DD format. endDate: End date in YY...
This function returns 3 lists including; Date list for specified date as first item. Hour information as second item. Primary Frequancy Reserve Amounts as third item. Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
[ "This", "function", "returns", "3", "lists", "including", ";", "Date", "list", "for", "specified", "date", "as", "first", "item", ".", "Hour", "information", "as", "second", "item", ".", "Primary", "Frequancy", "Reserve", "Amounts", "as", "third", "item", "....
def pfc_amount(self, startDate, endDate): val.date_check(startDate, endDate) query = "market/pfc-amount?startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_list[0] resp...
[ "def", "pfc_amount", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"market/pfc-amount?startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "+", "f'{endDate}'", "js...
This function returns 3 lists including; Date list for specified date as first item.
[ "This", "function", "returns", "3", "lists", "including", ";", "Date", "list", "for", "specified", "date", "as", "first", "item", "." ]
[ "'''\n This function returns 3 lists including;\n -Date list for specified date as first item.\n -Hour information as second item.\n -Primary Frequancy Reserve Amounts as third item.\n\n Parameters:\n\n startDate: Start date in YYYY-MM-DD format.\n endDat...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
54e42eec3905468a35a5ddce0988e3b1aea5c3d8
ErenEla/transparencyEpias
transparency_epias/markets/ancillaryServiceClient.py
[ "MIT" ]
Python
pfc_price
<not_specific>
def pfc_price(self, startDate, endDate): ''' This function returns 3 lists including; -Date list for specified date as first item. -Hour information as second item. -Primary Frequancy Price values as third item. Parameters: startDate: Start date in ...
This function returns 3 lists including; -Date list for specified date as first item. -Hour information as second item. -Primary Frequancy Price values as third item. Parameters: startDate: Start date in YYYY-MM-DD format. endDate: End date in YYYY-...
This function returns 3 lists including; Date list for specified date as first item. Hour information as second item. Primary Frequancy Price values as third item. Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
[ "This", "function", "returns", "3", "lists", "including", ";", "Date", "list", "for", "specified", "date", "as", "first", "item", ".", "Hour", "information", "as", "second", "item", ".", "Primary", "Frequancy", "Price", "values", "as", "third", "item", ".", ...
def pfc_price(self, startDate, endDate): val.date_check(startDate, endDate) query = "market/pfc-price?startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_list[0] respon...
[ "def", "pfc_price", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"market/pfc-price?startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "+", "f'{endDate}'", "json...
This function returns 3 lists including; Date list for specified date as first item.
[ "This", "function", "returns", "3", "lists", "including", ";", "Date", "list", "for", "specified", "date", "as", "first", "item", "." ]
[ "'''\n This function returns 3 lists including;\n -Date list for specified date as first item.\n -Hour information as second item.\n -Primary Frequancy Price values as third item.\n\n Parameters:\n\n startDate: Start date in YYYY-MM-DD format.\n endDate: ...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
54e42eec3905468a35a5ddce0988e3b1aea5c3d8
ErenEla/transparencyEpias
transparency_epias/markets/ancillaryServiceClient.py
[ "MIT" ]
Python
sfc_amount
<not_specific>
def sfc_amount(self, startDate, endDate): ''' This function returns 3 lists including; -Date list for specified date as first item. -Hour information as second item. -Secondary Frequancy Reserve amounts as third item. Parameters: startDate: Start da...
This function returns 3 lists including; -Date list for specified date as first item. -Hour information as second item. -Secondary Frequancy Reserve amounts as third item. Parameters: startDate: Start date in YYYY-MM-DD format. endDate: End date in ...
This function returns 3 lists including; Date list for specified date as first item. Hour information as second item. Secondary Frequancy Reserve amounts as third item. Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
[ "This", "function", "returns", "3", "lists", "including", ";", "Date", "list", "for", "specified", "date", "as", "first", "item", ".", "Hour", "information", "as", "second", "item", ".", "Secondary", "Frequancy", "Reserve", "amounts", "as", "third", "item", ...
def sfc_amount(self, startDate, endDate): val.date_check(startDate, endDate) query = "market/sfc-amount?startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_list[0] resp...
[ "def", "sfc_amount", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"market/sfc-amount?startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "+", "f'{endDate}'", "js...
This function returns 3 lists including; Date list for specified date as first item.
[ "This", "function", "returns", "3", "lists", "including", ";", "Date", "list", "for", "specified", "date", "as", "first", "item", "." ]
[ "'''\n This function returns 3 lists including;\n -Date list for specified date as first item.\n -Hour information as second item.\n -Secondary Frequancy Reserve amounts as third item.\n\n Parameters:\n\n startDate: Start date in YYYY-MM-DD format.\n endD...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
54e42eec3905468a35a5ddce0988e3b1aea5c3d8
ErenEla/transparencyEpias
transparency_epias/markets/ancillaryServiceClient.py
[ "MIT" ]
Python
sfc_price
<not_specific>
def sfc_price(self, startDate, endDate): ''' This function returns 3 lists including; -Date list for specified date as first item. -Hour information as second item. -Secondary Frequancy Reserve amounts as third item. Parameters: startDate: Start dat...
This function returns 3 lists including; -Date list for specified date as first item. -Hour information as second item. -Secondary Frequancy Reserve amounts as third item. Parameters: startDate: Start date in YYYY-MM-DD format. endDate: End date in ...
This function returns 3 lists including; Date list for specified date as first item. Hour information as second item. Secondary Frequancy Reserve amounts as third item. Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
[ "This", "function", "returns", "3", "lists", "including", ";", "Date", "list", "for", "specified", "date", "as", "first", "item", ".", "Hour", "information", "as", "second", "item", ".", "Secondary", "Frequancy", "Reserve", "amounts", "as", "third", "item", ...
def sfc_price(self, startDate, endDate): val.date_check(startDate, endDate) query = "market/sfc-price?startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_list[0] respon...
[ "def", "sfc_price", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"market/sfc-price?startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "+", "f'{endDate}'", "json...
This function returns 3 lists including; Date list for specified date as first item.
[ "This", "function", "returns", "3", "lists", "including", ";", "Date", "list", "for", "specified", "date", "as", "first", "item", "." ]
[ "'''\n This function returns 3 lists including;\n -Date list for specified date as first item.\n -Hour information as second item.\n -Secondary Frequancy Reserve amounts as third item.\n\n Parameters:\n\n startDate: Start date in YYYY-MM-DD format.\n endD...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
9fb32e1ffb1f5519a505eac72fcc9d3a182abbb2
ErenEla/transparencyEpias
transparency_epias/markets/dayaheadClient.py
[ "MIT" ]
Python
mcp_interim
<not_specific>
def mcp_interim(self, date): ''' This function returns 3 lists including; -Date list for specified date as first item. -Hour list as second item. -Interim MCP values for specified date as third item. Parameters: Date: Specific date in YYYY-MM-DD for...
This function returns 3 lists including; -Date list for specified date as first item. -Hour list as second item. -Interim MCP values for specified date as third item. Parameters: Date: Specific date in YYYY-MM-DD format.
This function returns 3 lists including; Date list for specified date as first item. Hour list as second item. Interim MCP values for specified date as third item. Specific date in YYYY-MM-DD format.
[ "This", "function", "returns", "3", "lists", "including", ";", "Date", "list", "for", "specified", "date", "as", "first", "item", ".", "Hour", "list", "as", "second", "item", ".", "Interim", "MCP", "values", "for", "specified", "date", "as", "third", "item...
def mcp_interim(self, date): val.date_format_check(date) query = "market/day-ahead-interim-mcp?date="+f'{date}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_list[0] response_list = json_result['body'][f'{key_name}...
[ "def", "mcp_interim", "(", "self", ",", "date", ")", ":", "val", ".", "date_format_check", "(", "date", ")", "query", "=", "\"market/day-ahead-interim-mcp?date=\"", "+", "f'{date}'", "json_result", "=", "self", ".", "get_request_result", "(", "query", ")", "key_...
This function returns 3 lists including; Date list for specified date as first item.
[ "This", "function", "returns", "3", "lists", "including", ";", "Date", "list", "for", "specified", "date", "as", "first", "item", "." ]
[ "'''\n This function returns 3 lists including;\n -Date list for specified date as first item.\n -Hour list as second item.\n -Interim MCP values for specified date as third item.\n\n Parameters:\n\n Date: Specific date in YYYY-MM-DD format.\n\n '''" ]
[ { "param": "self", "type": null }, { "param": "date", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "date", "type": null, "docstring": null, "docstring_tokens": [...
9fb32e1ffb1f5519a505eac72fcc9d3a182abbb2
ErenEla/transparencyEpias
transparency_epias/markets/dayaheadClient.py
[ "MIT" ]
Python
mcp
<not_specific>
def mcp(self, startDate, endDate): ''' This function returns 2 lists including; -Datetime list that covers the range of startDate and endDate parameters as first item. -MCP values for specified range of dates as second item. Parameters: startDate: Start date in...
This function returns 2 lists including; -Datetime list that covers the range of startDate and endDate parameters as first item. -MCP values for specified range of dates as second item. Parameters: startDate: Start date in YYYY-MM-DD format. endDate: End date i...
This function returns 2 lists including; Datetime list that covers the range of startDate and endDate parameters as first item. MCP values for specified range of dates as second item. Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
[ "This", "function", "returns", "2", "lists", "including", ";", "Datetime", "list", "that", "covers", "the", "range", "of", "startDate", "and", "endDate", "parameters", "as", "first", "item", ".", "MCP", "values", "for", "specified", "range", "of", "dates", "...
def mcp(self, startDate, endDate): val.date_check(startDate, endDate) query = "market/day-ahead-mcp?startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_list[0] response...
[ "def", "mcp", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"market/day-ahead-mcp?startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "+", "f'{endDate}'", "json_r...
This function returns 2 lists including; Datetime list that covers the range of startDate and endDate parameters as first item.
[ "This", "function", "returns", "2", "lists", "including", ";", "Datetime", "list", "that", "covers", "the", "range", "of", "startDate", "and", "endDate", "parameters", "as", "first", "item", "." ]
[ "'''\n This function returns 2 lists including;\n -Datetime list that covers the range of startDate and endDate parameters as first item.\n -MCP values for specified range of dates as second item.\n\n Parameters:\n\n startDate: Start date in YYYY-MM-DD format.\n end...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
9fb32e1ffb1f5519a505eac72fcc9d3a182abbb2
ErenEla/transparencyEpias
transparency_epias/markets/dayaheadClient.py
[ "MIT" ]
Python
diff_fund
<not_specific>
def diff_fund(self, startDate, endDate, is_statistic): ''' This function returns two different lists according to is_statistic parameter, which includes; -Statistical results for the range of specified dates. -Date, originatingFromBids, originatingFromOffers, originatingFromRoun...
This function returns two different lists according to is_statistic parameter, which includes; -Statistical results for the range of specified dates. -Date, originatingFromBids, originatingFromOffers, originatingFromRounding and total values for the range of specified dates....
This function returns two different lists according to is_statistic parameter, which includes; Statistical results for the range of specified dates. Date, originatingFromBids, originatingFromOffers, originatingFromRounding and total values for the range of specified dates. Start date in YYYY-MM-DD format. endDate: E...
[ "This", "function", "returns", "two", "different", "lists", "according", "to", "is_statistic", "parameter", "which", "includes", ";", "Statistical", "results", "for", "the", "range", "of", "specified", "dates", ".", "Date", "originatingFromBids", "originatingFromOffer...
def diff_fund(self, startDate, endDate, is_statistic): val.date_check(startDate, endDate) query = "market/day-ahead-diff-funds?startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = k...
[ "def", "diff_fund", "(", "self", ",", "startDate", ",", "endDate", ",", "is_statistic", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"market/day-ahead-diff-funds?startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\...
This function returns two different lists according to is_statistic parameter, which includes; Statistical results for the range of specified dates.
[ "This", "function", "returns", "two", "different", "lists", "according", "to", "is_statistic", "parameter", "which", "includes", ";", "Statistical", "results", "for", "the", "range", "of", "specified", "dates", "." ]
[ "'''\n This function returns two different lists according to is_statistic parameter, which includes;\n -Statistical results for the range of specified dates.\n -Date, originatingFromBids, originatingFromOffers, originatingFromRounding and\n total values for the range of spec...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null }, { "param": "is_statistic", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
9fb32e1ffb1f5519a505eac72fcc9d3a182abbb2
ErenEla/transparencyEpias
transparency_epias/markets/dayaheadClient.py
[ "MIT" ]
Python
block_amount
<not_specific>
def block_amount(self, startDate, endDate, is_statistic): ''' This function returns 4 different lists according to is_statistic parameter, which includes; -Statistical results for the range of specified dates. -Datetime values for the range of specified dates as firts item. ...
This function returns 4 different lists according to is_statistic parameter, which includes; -Statistical results for the range of specified dates. -Datetime values for the range of specified dates as firts item. -Block Sell values for the range of specified dates as second ...
This function returns 4 different lists according to is_statistic parameter, which includes; Statistical results for the range of specified dates. Datetime values for the range of specified dates as firts item. Block Sell values for the range of specified dates as second item. Block Buy values for the range of specifie...
[ "This", "function", "returns", "4", "different", "lists", "according", "to", "is_statistic", "parameter", "which", "includes", ";", "Statistical", "results", "for", "the", "range", "of", "specified", "dates", ".", "Datetime", "values", "for", "the", "range", "of...
def block_amount(self, startDate, endDate, is_statistic): val.date_check(startDate, endDate) query = "market/amount-of-block?startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key...
[ "def", "block_amount", "(", "self", ",", "startDate", ",", "endDate", ",", "is_statistic", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"market/amount-of-block?startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\""...
This function returns 4 different lists according to is_statistic parameter, which includes; Statistical results for the range of specified dates.
[ "This", "function", "returns", "4", "different", "lists", "according", "to", "is_statistic", "parameter", "which", "includes", ";", "Statistical", "results", "for", "the", "range", "of", "specified", "dates", "." ]
[ "'''\n This function returns 4 different lists according to is_statistic parameter, which includes;\n -Statistical results for the range of specified dates.\n -Datetime values for the range of specified dates as firts item.\n -Block Sell values for the range of specified date...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null }, { "param": "is_statistic", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
9fb32e1ffb1f5519a505eac72fcc9d3a182abbb2
ErenEla/transparencyEpias
transparency_epias/markets/dayaheadClient.py
[ "MIT" ]
Python
block_amount_matched
<not_specific>
def block_amount_matched(self, startDate, endDate, is_statistic): ''' This function returns 4 different lists according to is_statistic parameter, which includes; -Statistical results for the range of specified dates. -Datetime values for the range of specified dates as firts ite...
This function returns 4 different lists according to is_statistic parameter, which includes; -Statistical results for the range of specified dates. -Datetime values for the range of specified dates as firts item. -Matched Block Sell values for the range of specified dates as...
This function returns 4 different lists according to is_statistic parameter, which includes; Statistical results for the range of specified dates. Datetime values for the range of specified dates as firts item. Matched Block Sell values for the range of specified dates as second item. Matched Block Buy values for the r...
[ "This", "function", "returns", "4", "different", "lists", "according", "to", "is_statistic", "parameter", "which", "includes", ";", "Statistical", "results", "for", "the", "range", "of", "specified", "dates", ".", "Datetime", "values", "for", "the", "range", "of...
def block_amount_matched(self, startDate, endDate, is_statistic): val.date_check(startDate, endDate) query = "market/amount-of-block?startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_na...
[ "def", "block_amount_matched", "(", "self", ",", "startDate", ",", "endDate", ",", "is_statistic", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"market/amount-of-block?startDate=\"", "+", "f'{startDate}'", "+", "\"&end...
This function returns 4 different lists according to is_statistic parameter, which includes; Statistical results for the range of specified dates.
[ "This", "function", "returns", "4", "different", "lists", "according", "to", "is_statistic", "parameter", "which", "includes", ";", "Statistical", "results", "for", "the", "range", "of", "specified", "dates", "." ]
[ "'''\n This function returns 4 different lists according to is_statistic parameter, which includes;\n -Statistical results for the range of specified dates.\n -Datetime values for the range of specified dates as firts item.\n -Matched Block Sell values for the range of specif...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null }, { "param": "is_statistic", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
9fb32e1ffb1f5519a505eac72fcc9d3a182abbb2
ErenEla/transparencyEpias
transparency_epias/markets/dayaheadClient.py
[ "MIT" ]
Python
supply_demand_curve
<not_specific>
def supply_demand_curve(self, date): ''' This function returns 4 different which includes; -Datetime values for the range of specified dates as firts item. -Price values for the range of specified dates as second item. -Supply amount values for the range of specified...
This function returns 4 different which includes; -Datetime values for the range of specified dates as firts item. -Price values for the range of specified dates as second item. -Supply amount values for the range of specified dates as third item. -Demand amount ...
This function returns 4 different which includes; Datetime values for the range of specified dates as firts item. Price values for the range of specified dates as second item. Supply amount values for the range of specified dates as third item. Demand amount values for the range of specified dates as third item. Spe...
[ "This", "function", "returns", "4", "different", "which", "includes", ";", "Datetime", "values", "for", "the", "range", "of", "specified", "dates", "as", "firts", "item", ".", "Price", "values", "for", "the", "range", "of", "specified", "dates", "as", "secon...
def supply_demand_curve(self, date): val.date_format_check(date) query = "market/supply-demand-curve?period="+f'{date}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_list[0] response_list = json_result['body'][f'{k...
[ "def", "supply_demand_curve", "(", "self", ",", "date", ")", ":", "val", ".", "date_format_check", "(", "date", ")", "query", "=", "\"market/supply-demand-curve?period=\"", "+", "f'{date}'", "json_result", "=", "self", ".", "get_request_result", "(", "query", ")",...
This function returns 4 different which includes; Datetime values for the range of specified dates as firts item.
[ "This", "function", "returns", "4", "different", "which", "includes", ";", "Datetime", "values", "for", "the", "range", "of", "specified", "dates", "as", "firts", "item", "." ]
[ "'''\n This function returns 4 different which includes;\n -Datetime values for the range of specified dates as firts item.\n -Price values for the range of specified dates as second item.\n -Supply amount values for the range of specified dates as third item.\n -D...
[ { "param": "self", "type": null }, { "param": "date", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "date", "type": null, "docstring": null, "docstring_tokens": [...
9fb32e1ffb1f5519a505eac72fcc9d3a182abbb2
ErenEla/transparencyEpias
transparency_epias/markets/dayaheadClient.py
[ "MIT" ]
Python
bilateralContract
<not_specific>
def bilateralContract(self, startDate, endDate): ''' This function returns 3 different which includes; -Datetime values for the range of specified dates as firts item. -Quantity values for the range of specified dates as second item. -Next hour values for the range o...
This function returns 3 different which includes; -Datetime values for the range of specified dates as firts item. -Quantity values for the range of specified dates as second item. -Next hour values for the range of specified dates as third item. Parameters: ...
This function returns 3 different which includes; Datetime values for the range of specified dates as firts item. Quantity values for the range of specified dates as second item. Next hour values for the range of specified dates as third item. Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
[ "This", "function", "returns", "3", "different", "which", "includes", ";", "Datetime", "values", "for", "the", "range", "of", "specified", "dates", "as", "firts", "item", ".", "Quantity", "values", "for", "the", "range", "of", "specified", "dates", "as", "se...
def bilateralContract(self, startDate, endDate): val.date_check(startDate, endDate) query = "market/bilateral-contract?startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_list[...
[ "def", "bilateralContract", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"market/bilateral-contract?startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "+", "f'{en...
This function returns 3 different which includes; Datetime values for the range of specified dates as firts item.
[ "This", "function", "returns", "3", "different", "which", "includes", ";", "Datetime", "values", "for", "the", "range", "of", "specified", "dates", "as", "firts", "item", "." ]
[ "'''\n This function returns 3 different which includes;\n -Datetime values for the range of specified dates as firts item.\n -Quantity values for the range of specified dates as second item.\n -Next hour values for the range of specified dates as third item.\n\n Param...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
9fb32e1ffb1f5519a505eac72fcc9d3a182abbb2
ErenEla/transparencyEpias
transparency_epias/markets/dayaheadClient.py
[ "MIT" ]
Python
bilateralContract_all
<not_specific>
def bilateralContract_all(self, startDate, endDate, eic=None): ''' This function returns 3 different which includes; -Datetime values for the range of specified dates as firts item. -Bid Quantity values for the range of specified dates as second item. -Ask Quantity v...
This function returns 3 different which includes; -Datetime values for the range of specified dates as firts item. -Bid Quantity values for the range of specified dates as second item. -Ask Quantity values for the range of specified dates as third item. Parameters: ...
This function returns 3 different which includes; Datetime values for the range of specified dates as firts item. Bid Quantity values for the range of specified dates as second item. Ask Quantity values for the range of specified dates as third item. eic (Optional): A code for the specific company e.g: "40X000000009...
[ "This", "function", "returns", "3", "different", "which", "includes", ";", "Datetime", "values", "for", "the", "range", "of", "specified", "dates", "as", "firts", "item", ".", "Bid", "Quantity", "values", "for", "the", "range", "of", "specified", "dates", "a...
def bilateralContract_all(self, startDate, endDate, eic=None): val.date_check(startDate, endDate) if eic != None: query = "market/bilateral-contract?startDate="+f'{startDate}'+"&endDate="+f'{endDate}'+"&eic="+f'{eic}' else: query = "market/bilateral-contract?startDate="+f...
[ "def", "bilateralContract_all", "(", "self", ",", "startDate", ",", "endDate", ",", "eic", "=", "None", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "if", "eic", "!=", "None", ":", "query", "=", "\"market/bilateral-contract?star...
This function returns 3 different which includes; Datetime values for the range of specified dates as firts item.
[ "This", "function", "returns", "3", "different", "which", "includes", ";", "Datetime", "values", "for", "the", "range", "of", "specified", "dates", "as", "firts", "item", "." ]
[ "'''\n This function returns 3 different which includes;\n -Datetime values for the range of specified dates as firts item.\n -Bid Quantity values for the range of specified dates as second item.\n -Ask Quantity values for the range of specified dates as third item.\n\n ...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null }, { "param": "eic", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
9fb32e1ffb1f5519a505eac72fcc9d3a182abbb2
ErenEla/transparencyEpias
transparency_epias/markets/dayaheadClient.py
[ "MIT" ]
Python
market_income_summary
<not_specific>
def market_income_summary(self, period, startDate, endDate): ''' This function returns 3 different which includes; -Datetime values for the range of specified dates as firts item. -Income values for the range of specified dates as second item. -Period information for...
This function returns 3 different which includes; -Datetime values for the range of specified dates as firts item. -Income values for the range of specified dates as second item. -Period information for the range of specified dates as third item. -Period type inf...
This function returns 3 different which includes; Datetime values for the range of specified dates as firts item. Income values for the range of specified dates as second item. Period information for the range of specified dates as third item. Period type information for the range of specified dates as fourth item.
[ "This", "function", "returns", "3", "different", "which", "includes", ";", "Datetime", "values", "for", "the", "range", "of", "specified", "dates", "as", "firts", "item", ".", "Income", "values", "for", "the", "range", "of", "specified", "dates", "as", "seco...
def market_income_summary(self, period, startDate, endDate): val.date_check(startDate, endDate) query = "market/day-ahead-market-income-summary?startDate="+f'{startDate}'+"&endDate="+f'{endDate}'+"&period="+f'{period}' json_result = self.get_request_result(query) key_list = list(json_res...
[ "def", "market_income_summary", "(", "self", ",", "period", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"market/day-ahead-market-income-summary?startDate=\"", "+", "f'{startDate}'", "+"...
This function returns 3 different which includes; Datetime values for the range of specified dates as firts item.
[ "This", "function", "returns", "3", "different", "which", "includes", ";", "Datetime", "values", "for", "the", "range", "of", "specified", "dates", "as", "firts", "item", "." ]
[ "'''\n This function returns 3 different which includes;\n -Datetime values for the range of specified dates as firts item.\n -Income values for the range of specified dates as second item.\n -Period information for the range of specified dates as third item.\n -Pe...
[ { "param": "self", "type": null }, { "param": "period", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "period", "type": null, "docstring": null, "docstring_tokens":...
9fb32e1ffb1f5519a505eac72fcc9d3a182abbb2
ErenEla/transparencyEpias
transparency_epias/markets/dayaheadClient.py
[ "MIT" ]
Python
dayahead_trade_volume
<not_specific>
def dayahead_trade_volume(self, startDate, endDate): ''' This function returns 3 different which includes; -Datetime values for the range of specified dates as firts item. -Bid trade volume values for the range of specified dates as second item. -Ask trade volume val...
This function returns 3 different which includes; -Datetime values for the range of specified dates as firts item. -Bid trade volume values for the range of specified dates as second item. -Ask trade volume values for the range of specified dates as third item. Para...
This function returns 3 different which includes; Datetime values for the range of specified dates as firts item. Bid trade volume values for the range of specified dates as second item. Ask trade volume values for the range of specified dates as third item. Start date in YYYY-MM-DD format. endDate: End date in YYYY...
[ "This", "function", "returns", "3", "different", "which", "includes", ";", "Datetime", "values", "for", "the", "range", "of", "specified", "dates", "as", "firts", "item", ".", "Bid", "trade", "volume", "values", "for", "the", "range", "of", "specified", "dat...
def dayahead_trade_volume(self, startDate, endDate): val.date_check(startDate, endDate) query = "market/day-ahead-market-trade-volume?startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_n...
[ "def", "dayahead_trade_volume", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"market/day-ahead-market-trade-volume?startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", ...
This function returns 3 different which includes; Datetime values for the range of specified dates as firts item.
[ "This", "function", "returns", "3", "different", "which", "includes", ";", "Datetime", "values", "for", "the", "range", "of", "specified", "dates", "as", "firts", "item", "." ]
[ "'''\n This function returns 3 different which includes;\n -Datetime values for the range of specified dates as firts item.\n -Bid trade volume values for the range of specified dates as second item.\n -Ask trade volume values for the range of specified dates as third item.\n...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
9fb32e1ffb1f5519a505eac72fcc9d3a182abbb2
ErenEla/transparencyEpias
transparency_epias/markets/dayaheadClient.py
[ "MIT" ]
Python
dayahead_market_volume
<not_specific>
def dayahead_market_volume(self, startDate, endDate, eic=None): ''' This function returns 3 different which includes; -Returns a dictionary which includes following values; -date -quantityOfAsk -volume -quantityOfBid ...
This function returns 3 different which includes; -Returns a dictionary which includes following values; -date -quantityOfAsk -volume -quantityOfBid -priceIndependentBid -priceIndependentOffer ...
This function returns 3 different which includes; Returns a dictionary which includes following values; date quantityOfAsk volume quantityOfBid priceIndependentBid priceIndependentOffer blockBid blockOffer matchedBids matchedOffers eic (Optional): A code for the specific company e.g: "40X000000009447G". startDate: S...
[ "This", "function", "returns", "3", "different", "which", "includes", ";", "Returns", "a", "dictionary", "which", "includes", "following", "values", ";", "date", "quantityOfAsk", "volume", "quantityOfBid", "priceIndependentBid", "priceIndependentOffer", "blockBid", "blo...
def dayahead_market_volume(self, startDate, endDate, eic=None): val.date_check(startDate, endDate) if eic != None: query = "market/day-ahead-market-volume?startDate="+f'{startDate}'+"&endDate="+f'{endDate}'+"&eic="+f'{eic}' else: query = "market/day-ahead-market-volume?st...
[ "def", "dayahead_market_volume", "(", "self", ",", "startDate", ",", "endDate", ",", "eic", "=", "None", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "if", "eic", "!=", "None", ":", "query", "=", "\"market/day-ahead-market-volum...
This function returns 3 different which includes; Returns a dictionary which includes following values; date quantityOfAsk volume quantityOfBid priceIndependentBid priceIndependentOffer blockBid blockOffer matchedBids matchedOffers
[ "This", "function", "returns", "3", "different", "which", "includes", ";", "Returns", "a", "dictionary", "which", "includes", "following", "values", ";", "date", "quantityOfAsk", "volume", "quantityOfBid", "priceIndependentBid", "priceIndependentOffer", "blockBid", "blo...
[ "'''\n This function returns 3 different which includes;\n -Returns a dictionary which includes following values;\n -date\n -quantityOfAsk\n -volume\n -quantityOfBid\n -priceIndependentBid\n -priceIndependent...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null }, { "param": "eic", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
9fb32e1ffb1f5519a505eac72fcc9d3a182abbb2
ErenEla/transparencyEpias
transparency_epias/markets/dayaheadClient.py
[ "MIT" ]
Python
imbalance_hourly
<not_specific>
def imbalance_hourly(self, startDate, endDate): ''' This function returns 3 different which includes; -Datetime values for the range of specified dates as firts item. -Hourly total positive imbalance values for the range of specified dates as second item. -Hourly tot...
This function returns 3 different which includes; -Datetime values for the range of specified dates as firts item. -Hourly total positive imbalance values for the range of specified dates as second item. -Hourly total negative imbalance values for the range of specified date...
This function returns 3 different which includes; Datetime values for the range of specified dates as firts item. Hourly total positive imbalance values for the range of specified dates as second item. Hourly total negative imbalance values for the range of specified dates as third item. Start date in YYYY-MM-DD for...
[ "This", "function", "returns", "3", "different", "which", "includes", ";", "Datetime", "values", "for", "the", "range", "of", "specified", "dates", "as", "firts", "item", ".", "Hourly", "total", "positive", "imbalance", "values", "for", "the", "range", "of", ...
def imbalance_hourly(self, startDate, endDate): val.date_check(startDate, endDate) query = "market/energy-imbalance-hourly?startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_l...
[ "def", "imbalance_hourly", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"market/energy-imbalance-hourly?startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "+", "f...
This function returns 3 different which includes; Datetime values for the range of specified dates as firts item.
[ "This", "function", "returns", "3", "different", "which", "includes", ";", "Datetime", "values", "for", "the", "range", "of", "specified", "dates", "as", "firts", "item", "." ]
[ "'''\n This function returns 3 different which includes;\n -Datetime values for the range of specified dates as firts item.\n -Hourly total positive imbalance values for the range of specified dates as second item.\n -Hourly total negative imbalance values for the range of sp...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
9fb32e1ffb1f5519a505eac72fcc9d3a182abbb2
ErenEla/transparencyEpias
transparency_epias/markets/dayaheadClient.py
[ "MIT" ]
Python
imbalance_monthly
<not_specific>
def imbalance_monthly(self, startDate, endDate): ''' This function returns 3 different which includes; -Datetime values for the range of specified dates as firts item. -Montly total positive imbalance values for the range of specified dates as second item. -Montly to...
This function returns 3 different which includes; -Datetime values for the range of specified dates as firts item. -Montly total positive imbalance values for the range of specified dates as second item. -Montly total negative imbalance values for the range of specified date...
This function returns 3 different which includes; Datetime values for the range of specified dates as firts item. Montly total positive imbalance values for the range of specified dates as second item. Montly total negative imbalance values for the range of specified dates as third item. Start date in YYYY-MM-DD for...
[ "This", "function", "returns", "3", "different", "which", "includes", ";", "Datetime", "values", "for", "the", "range", "of", "specified", "dates", "as", "firts", "item", ".", "Montly", "total", "positive", "imbalance", "values", "for", "the", "range", "of", ...
def imbalance_monthly(self, startDate, endDate): val.date_check(startDate, endDate) query = "market/energy-imbalance-hourly?startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_...
[ "def", "imbalance_monthly", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"market/energy-imbalance-hourly?startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "+", "...
This function returns 3 different which includes; Datetime values for the range of specified dates as firts item.
[ "This", "function", "returns", "3", "different", "which", "includes", ";", "Datetime", "values", "for", "the", "range", "of", "specified", "dates", "as", "firts", "item", "." ]
[ "'''\n This function returns 3 different which includes;\n -Datetime values for the range of specified dates as firts item.\n -Montly total positive imbalance values for the range of specified dates as second item.\n -Montly total negative imbalance values for the range of sp...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
9fb32e1ffb1f5519a505eac72fcc9d3a182abbb2
ErenEla/transparencyEpias
transparency_epias/markets/dayaheadClient.py
[ "MIT" ]
Python
imbalance_amount
<not_specific>
def imbalance_amount(self, startDate, endDate): ''' This function returns 3 different which includes; -Date values for the range of specified dates as firts item. -Time values for the range of specified dates as firts item. -Total positive imbalance amount values for...
This function returns 3 different which includes; -Date values for the range of specified dates as firts item. -Time values for the range of specified dates as firts item. -Total positive imbalance amount values for the range of specified dates as second item. -T...
This function returns 3 different which includes; Date values for the range of specified dates as firts item. Time values for the range of specified dates as firts item. Total positive imbalance amount values for the range of specified dates as second item. Total negative imbalance amount values for the range of specif...
[ "This", "function", "returns", "3", "different", "which", "includes", ";", "Date", "values", "for", "the", "range", "of", "specified", "dates", "as", "firts", "item", ".", "Time", "values", "for", "the", "range", "of", "specified", "dates", "as", "firts", ...
def imbalance_amount(self, startDate, endDate): val.date_check(startDate, endDate) query = "market/imbalance-amount?startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_list[0] ...
[ "def", "imbalance_amount", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"market/imbalance-amount?startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "+", "f'{endDa...
This function returns 3 different which includes; Date values for the range of specified dates as firts item.
[ "This", "function", "returns", "3", "different", "which", "includes", ";", "Date", "values", "for", "the", "range", "of", "specified", "dates", "as", "firts", "item", "." ]
[ "'''\n This function returns 3 different which includes;\n -Date values for the range of specified dates as firts item.\n -Time values for the range of specified dates as firts item.\n -Total positive imbalance amount values for the range of specified dates as second item.\n ...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
e75becf5ca9e7b9a5161e1af28231008088e5c74
ErenEla/transparencyEpias
transparency_epias/markets/intradayClient.py
[ "MIT" ]
Python
weighted_average_price
<not_specific>
def weighted_average_price(self, startDate, endDate): ''' This function returns 2 lists including; -Date list for specified date as first item. -Intraday weighted average price values as second item Parameters: startDate: Start date in YYYY-MM-DD format. ...
This function returns 2 lists including; -Date list for specified date as first item. -Intraday weighted average price values as second item Parameters: startDate: Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
This function returns 2 lists including; Date list for specified date as first item. Intraday weighted average price values as second item Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
[ "This", "function", "returns", "2", "lists", "including", ";", "Date", "list", "for", "specified", "date", "as", "first", "item", ".", "Intraday", "weighted", "average", "price", "values", "as", "second", "item", "Start", "date", "in", "YYYY", "-", "MM", "...
def weighted_average_price(self, startDate, endDate): val.date_check(startDate, endDate) query = "market/intra-day-aof?startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_list[...
[ "def", "weighted_average_price", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"market/intra-day-aof?startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "+", "f'{en...
This function returns 2 lists including; Date list for specified date as first item.
[ "This", "function", "returns", "2", "lists", "including", ";", "Date", "list", "for", "specified", "date", "as", "first", "item", "." ]
[ "'''\n This function returns 2 lists including;\n -Date list for specified date as first item.\n -Intraday weighted average price values as second item \n\n Parameters:\n\n startDate: Start date in YYYY-MM-DD format.\n endDate: End date in YYYY-MM-DD format.\n\n ...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
e75becf5ca9e7b9a5161e1af28231008088e5c74
ErenEla/transparencyEpias
transparency_epias/markets/intradayClient.py
[ "MIT" ]
Python
income_intraday
<not_specific>
def income_intraday(self, startDate, endDate): ''' This function returns 2 lists including; -Date list for specified range of date as first item. -Intraday income values for specified range of date as second item. Parameters: startDate: Start date in YYYY-MM-DD...
This function returns 2 lists including; -Date list for specified range of date as first item. -Intraday income values for specified range of date as second item. Parameters: startDate: Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format. ...
This function returns 2 lists including; Date list for specified range of date as first item. Intraday income values for specified range of date as second item. Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
[ "This", "function", "returns", "2", "lists", "including", ";", "Date", "list", "for", "specified", "range", "of", "date", "as", "first", "item", ".", "Intraday", "income", "values", "for", "specified", "range", "of", "date", "as", "second", "item", ".", "S...
def income_intraday(self, startDate, endDate): val.date_check(startDate, endDate) query = "market/intra-day-aof?startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_list[0] ...
[ "def", "income_intraday", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"market/intra-day-aof?startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "+", "f'{endDate}'...
This function returns 2 lists including; Date list for specified range of date as first item.
[ "This", "function", "returns", "2", "lists", "including", ";", "Date", "list", "for", "specified", "range", "of", "date", "as", "first", "item", "." ]
[ "'''\n This function returns 2 lists including;\n -Date list for specified range of date as first item.\n -Intraday income values for specified range of date as second item.\n\n Parameters:\n\n startDate: Start date in YYYY-MM-DD format.\n endDate: End date in YYYY-...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
e75becf5ca9e7b9a5161e1af28231008088e5c74
ErenEla/transparencyEpias
transparency_epias/markets/intradayClient.py
[ "MIT" ]
Python
block_offer_prices
<not_specific>
def block_offer_prices(self, startDate, endDate): ''' This function returns a dictionary which includes the following information; -Date -Minimum ask price -Maximum ask pirce -Minimum bid price -Maximum bid pirce -Minimum matched p...
This function returns a dictionary which includes the following information; -Date -Minimum ask price -Maximum ask pirce -Minimum bid price -Maximum bid pirce -Minimum matched price -Maximum matched price Parameters: ...
This function returns a dictionary which includes the following information; Date Minimum ask price Maximum ask pirce Minimum bid price Maximum bid pirce Minimum matched price Maximum matched price Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format. Warning. For hourly offer values look for hou...
[ "This", "function", "returns", "a", "dictionary", "which", "includes", "the", "following", "information", ";", "Date", "Minimum", "ask", "price", "Maximum", "ask", "pirce", "Minimum", "bid", "price", "Maximum", "bid", "pirce", "Minimum", "matched", "price", "Max...
def block_offer_prices(self, startDate, endDate): val.date_check(startDate, endDate) query = "market/intra-day-min-max-price?startDate="+f'{startDate}'+"&endDate="+f'{endDate}'+"&offerType=BLOCK" json_result = self.get_request_result(query) response_list = json_result['body'] ret...
[ "def", "block_offer_prices", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"market/intra-day-min-max-price?startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "+", ...
This function returns a dictionary which includes the following information; Date Minimum ask price Maximum ask pirce Minimum bid price Maximum bid pirce Minimum matched price Maximum matched price
[ "This", "function", "returns", "a", "dictionary", "which", "includes", "the", "following", "information", ";", "Date", "Minimum", "ask", "price", "Maximum", "ask", "pirce", "Minimum", "bid", "price", "Maximum", "bid", "pirce", "Minimum", "matched", "price", "Max...
[ "'''\n This function returns a dictionary which includes the following information;\n -Date\n -Minimum ask price\n -Maximum ask pirce\n -Minimum bid price\n -Maximum bid pirce\n -Minimum matched price\n -Maximum matched price\n\n\n ...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
e75becf5ca9e7b9a5161e1af28231008088e5c74
ErenEla/transparencyEpias
transparency_epias/markets/intradayClient.py
[ "MIT" ]
Python
hourly_offer_prices
<not_specific>
def hourly_offer_prices(self, startDate, endDate): ''' This function returns a dictionary which includes the following information; -Date -Minimum ask price -Maximum ask pirce -Minimum bid price -Maximum bid pirce -Minimum matched ...
This function returns a dictionary which includes the following information; -Date -Minimum ask price -Maximum ask pirce -Minimum bid price -Maximum bid pirce -Minimum matched price -Maximum matched price Parameters: ...
This function returns a dictionary which includes the following information; Date Minimum ask price Maximum ask pirce Minimum bid price Maximum bid pirce Minimum matched price Maximum matched price Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format. Warning. For block offer values look for bloc...
[ "This", "function", "returns", "a", "dictionary", "which", "includes", "the", "following", "information", ";", "Date", "Minimum", "ask", "price", "Maximum", "ask", "pirce", "Minimum", "bid", "price", "Maximum", "bid", "pirce", "Minimum", "matched", "price", "Max...
def hourly_offer_prices(self, startDate, endDate): val.date_check(startDate, endDate) query = "market/intra-day-min-max-price?startDate="+f'{startDate}'+"&endDate="+f'{endDate}'+"&offerType=HOURLY" json_result = self.get_request_result(query) response_list = json_result['body'] r...
[ "def", "hourly_offer_prices", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"market/intra-day-min-max-price?startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "+", ...
This function returns a dictionary which includes the following information; Date Minimum ask price Maximum ask pirce Minimum bid price Maximum bid pirce Minimum matched price Maximum matched price
[ "This", "function", "returns", "a", "dictionary", "which", "includes", "the", "following", "information", ";", "Date", "Minimum", "ask", "price", "Maximum", "ask", "pirce", "Minimum", "bid", "price", "Maximum", "bid", "pirce", "Minimum", "matched", "price", "Max...
[ "'''\n This function returns a dictionary which includes the following information;\n -Date\n -Minimum ask price\n -Maximum ask pirce\n -Minimum bid price\n -Maximum bid pirce\n -Minimum matched price\n -Maximum matched price\n\n\n ...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
e75becf5ca9e7b9a5161e1af28231008088e5c74
ErenEla/transparencyEpias
transparency_epias/markets/intradayClient.py
[ "MIT" ]
Python
hourly_quantities
<not_specific>
def hourly_quantities(self, startDate, endDate): ''' This function returns 3 lists including; -Effective date information as first item. -Hourly sell quantities as second item. -Hourly buy quantities as third item. Parameters: startDate: Start dat...
This function returns 3 lists including; -Effective date information as first item. -Hourly sell quantities as second item. -Hourly buy quantities as third item. Parameters: startDate: Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-...
This function returns 3 lists including; Effective date information as first item. Hourly sell quantities as second item. Hourly buy quantities as third item. Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format. Warning. For block offer values look for block_offer_prices
[ "This", "function", "returns", "3", "lists", "including", ";", "Effective", "date", "information", "as", "first", "item", ".", "Hourly", "sell", "quantities", "as", "second", "item", ".", "Hourly", "buy", "quantities", "as", "third", "item", ".", "Start", "d...
def hourly_quantities(self, startDate, endDate): val.date_check(startDate, endDate) query = "market/intra-day-min-max-price?startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) response_list = json_result['body'] key_list = list(json_re...
[ "def", "hourly_quantities", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"market/intra-day-min-max-price?startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "+", "...
This function returns 3 lists including; Effective date information as first item.
[ "This", "function", "returns", "3", "lists", "including", ";", "Effective", "date", "information", "as", "first", "item", "." ]
[ "'''\n This function returns 3 lists including;\n -Effective date information as first item.\n -Hourly sell quantities as second item. \n -Hourly buy quantities as third item.\n\n\n Parameters:\n\n startDate: Start date in YYYY-MM-DD format.\n endDate: En...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
e75becf5ca9e7b9a5161e1af28231008088e5c74
ErenEla/transparencyEpias
transparency_epias/markets/intradayClient.py
[ "MIT" ]
Python
trade_history
<not_specific>
def trade_history(self, startDate, endDate, contract_type): ''' This function returns 5 lists according to contract_type argument which including: -Datetime information as first item. -Contract id infromation as second item. -Contract name information as third item....
This function returns 5 lists according to contract_type argument which including: -Datetime information as first item. -Contract id infromation as second item. -Contract name information as third item. -Quantity values as fourth item. -Price values ...
This function returns 5 lists according to contract_type argument which including: Datetime information as first item. Contract id infromation as second item. Contract name information as third item. Quantity values as fourth item. Price values as fifth item. Start date in YYYY-MM-DD format. endDate: End date in YYY...
[ "This", "function", "returns", "5", "lists", "according", "to", "contract_type", "argument", "which", "including", ":", "Datetime", "information", "as", "first", "item", ".", "Contract", "id", "infromation", "as", "second", "item", ".", "Contract", "name", "info...
def trade_history(self, startDate, endDate, contract_type): val.date_check(startDate, endDate) query = "market/intra-day-trade-history?startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) response_list = json_result['body'] key_list = l...
[ "def", "trade_history", "(", "self", ",", "startDate", ",", "endDate", ",", "contract_type", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"market/intra-day-trade-history?startDate=\"", "+", "f'{startDate}'", "+", "\"&e...
This function returns 5 lists according to contract_type argument which including: Datetime information as first item.
[ "This", "function", "returns", "5", "lists", "according", "to", "contract_type", "argument", "which", "including", ":", "Datetime", "information", "as", "first", "item", "." ]
[ "'''\n This function returns 5 lists according to contract_type argument which including:\n -Datetime information as first item.\n -Contract id infromation as second item. \n -Contract name information as third item.\n -Quantity values as fourth item.\n ...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null }, { "param": "contract_type", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
45c20930440aa9d819426cfb9fee04782d38d051
ErenEla/transparencyEpias
transparency_epias/gas/gasTraClients.py
[ "MIT" ]
Python
transport
<not_specific>
def transport(self, startDate, endDate): ''' This function returns 3 lists including; -Gas day informatin as first item. -Entry nomination amount values as second item. -Exit nomination amount values as third item. Parameters: startDate: Start date ...
This function returns 3 lists including; -Gas day informatin as first item. -Entry nomination amount values as second item. -Exit nomination amount values as third item. Parameters: startDate: Start date in YYYY-MM-DD format. endDate: End date in YY...
This function returns 3 lists including; Gas day informatin as first item. Entry nomination amount values as second item. Exit nomination amount values as third item. Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
[ "This", "function", "returns", "3", "lists", "including", ";", "Gas", "day", "informatin", "as", "first", "item", ".", "Entry", "nomination", "amount", "values", "as", "second", "item", ".", "Exit", "nomination", "amount", "values", "as", "third", "item", "....
def transport(self, startDate, endDate): val.date_check(startDate, endDate) query = "stp-transmission/transport?"+"startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_list[0] ...
[ "def", "transport", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"stp-transmission/transport?\"", "+", "\"startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "+"...
This function returns 3 lists including; Gas day informatin as first item.
[ "This", "function", "returns", "3", "lists", "including", ";", "Gas", "day", "informatin", "as", "first", "item", "." ]
[ "'''\n This function returns 3 lists including;\n -Gas day informatin as first item.\n -Entry nomination amount values as second item.\n -Exit nomination amount values as third item.\n\n Parameters:\n\n startDate: Start date in YYYY-MM-DD format.\n endDat...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
45c20930440aa9d819426cfb9fee04782d38d051
ErenEla/transparencyEpias
transparency_epias/gas/gasTraClients.py
[ "MIT" ]
Python
notification_additional
<not_specific>
def notification_additional(self, startDate, endDate): ''' This function returns 4 lists including; -Date informatin as first item. -Id information as second item. -Message information as third item. -Subject information as fourth ...
This function returns 4 lists including; -Date informatin as first item. -Id information as second item. -Message information as third item. -Subject information as fourth item. Parameters: startDate: Start date in YY...
This function returns 4 lists including; Date informatin as first item. Id information as second item. Message information as third item. Subject information as fourth item. Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
[ "This", "function", "returns", "4", "lists", "including", ";", "Date", "informatin", "as", "first", "item", ".", "Id", "information", "as", "second", "item", ".", "Message", "information", "as", "third", "item", ".", "Subject", "information", "as", "fourth", ...
def notification_additional(self, startDate, endDate): val.date_check(startDate, endDate) query = "stp/additional-notification?"+"startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) ...
[ "def", "notification_additional", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"stp/additional-notification?\"", "+", "\"startDate=\"", "+", "f'{startDate}'", "+", "\"&end...
This function returns 4 lists including; Date informatin as first item.
[ "This", "function", "returns", "4", "lists", "including", ";", "Date", "informatin", "as", "first", "item", "." ]
[ "'''\n This function returns 4 lists including;\n -Date informatin as first item.\n -Id information as second item.\n -Message information as third item.\n -Subject information as fourth item.\n\n Parameters:\n\n startDate:...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
45c20930440aa9d819426cfb9fee04782d38d051
ErenEla/transparencyEpias
transparency_epias/gas/gasTraClients.py
[ "MIT" ]
Python
balancing_gas_price
<not_specific>
def balancing_gas_price(self, startDate, endDate): ''' This function returns a dictionary including; -additionalBalancingPurchase -additionalBalancingSale -balancingGasPurchase -balancingGasSale -finalAbp ...
This function returns a dictionary including; -additionalBalancingPurchase -additionalBalancingSale -balancingGasPurchase -balancingGasSale -finalAbp -finalAbs -finalBgp -finalBgs...
This function returns a dictionary including; additionalBalancingPurchase additionalBalancingSale balancingGasPurchase balancingGasSale finalAbp finalAbs finalBgp finalBgs gasDay Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
[ "This", "function", "returns", "a", "dictionary", "including", ";", "additionalBalancingPurchase", "additionalBalancingSale", "balancingGasPurchase", "balancingGasSale", "finalAbp", "finalAbs", "finalBgp", "finalBgs", "gasDay", "Start", "date", "in", "YYYY", "-", "MM", "-...
def balancing_gas_price(self, startDate, endDate): val.date_check(startDate, endDate) query = "stp/balancing-gas-price?"+"startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) ...
[ "def", "balancing_gas_price", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"stp/balancing-gas-price?\"", "+", "\"startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\""...
This function returns a dictionary including; additionalBalancingPurchase additionalBalancingSale balancingGasPurchase balancingGasSale finalAbp finalAbs finalBgp finalBgs gasDay
[ "This", "function", "returns", "a", "dictionary", "including", ";", "additionalBalancingPurchase", "additionalBalancingSale", "balancingGasPurchase", "balancingGasSale", "finalAbp", "finalAbs", "finalBgp", "finalBgs", "gasDay" ]
[ "'''\n This function returns a dictionary including;\n -additionalBalancingPurchase\n -additionalBalancingSale\n -balancingGasPurchase\n -balancingGasSale\n -finalAbp\n -finalAbs\n -finalBgp\n ...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
45c20930440aa9d819426cfb9fee04782d38d051
ErenEla/transparencyEpias
transparency_epias/gas/gasTraClients.py
[ "MIT" ]
Python
bluecode
<not_specific>
def bluecode(self, startDate, endDate): ''' This function returns 4 lists including; -Gas day informatin as first item. -Contract Name information as second item. -Amount values as third item. -Weighted average values as fourth item. Parameters: ...
This function returns 4 lists including; -Gas day informatin as first item. -Contract Name information as second item. -Amount values as third item. -Weighted average values as fourth item. Parameters: startDate: Start date in YYYY-MM-DD format....
This function returns 4 lists including; Gas day informatin as first item. Contract Name information as second item. Amount values as third item. Weighted average values as fourth item. Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
[ "This", "function", "returns", "4", "lists", "including", ";", "Gas", "day", "informatin", "as", "first", "item", ".", "Contract", "Name", "information", "as", "second", "item", ".", "Amount", "values", "as", "third", "item", ".", "Weighted", "average", "val...
def bluecode(self, startDate, endDate): val.date_check(startDate, endDate) query = "stp/bluecode-operation?"+"startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_list[0] ...
[ "def", "bluecode", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"stp/bluecode-operation?\"", "+", "\"startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "+", "...
This function returns 4 lists including; Gas day informatin as first item.
[ "This", "function", "returns", "4", "lists", "including", ";", "Gas", "day", "informatin", "as", "first", "item", "." ]
[ "'''\n This function returns 4 lists including;\n -Gas day informatin as first item.\n -Contract Name information as second item.\n -Amount values as third item.\n -Weighted average values as fourth item.\n\n Parameters:\n\n startDate: Start date in Y...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
45c20930440aa9d819426cfb9fee04782d38d051
ErenEla/transparencyEpias
transparency_epias/gas/gasTraClients.py
[ "MIT" ]
Python
contract_amount
<not_specific>
def contract_amount(self, startDate, endDate, date=None): ''' This function returns 5 lists including; -Gas day informatin as first item. -Matched quantitiy amount as second item. -Period information as third item. -Period Type information as fourth item...
This function returns 5 lists including; -Gas day informatin as first item. -Matched quantitiy amount as second item. -Period information as third item. -Period Type information as fourth item. -Trade volume amount as fifth item. Parameters:...
This function returns 5 lists including; Gas day informatin as first item. Matched quantitiy amount as second item. Period information as third item. Period Type information as fourth item. Trade volume amount as fifth item. Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format. date (Optional): S...
[ "This", "function", "returns", "5", "lists", "including", ";", "Gas", "day", "informatin", "as", "first", "item", ".", "Matched", "quantitiy", "amount", "as", "second", "item", ".", "Period", "information", "as", "third", "item", ".", "Period", "Type", "info...
def contract_amount(self, startDate, endDate, date=None): val.date_check(startDate, endDate) if date != None: val.date_format_check(date) else: pass query = "stp/bluecode-operation?"+"startDate="+f'{startDate}'+"&endDate="+f'{endDate}'+"&period="+f'{date}' ...
[ "def", "contract_amount", "(", "self", ",", "startDate", ",", "endDate", ",", "date", "=", "None", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "if", "date", "!=", "None", ":", "val", ".", "date_format_check", "(", "date", ...
This function returns 5 lists including; Gas day informatin as first item.
[ "This", "function", "returns", "5", "lists", "including", ";", "Gas", "day", "informatin", "as", "first", "item", "." ]
[ "'''\n This function returns 5 lists including;\n -Gas day informatin as first item.\n -Matched quantitiy amount as second item.\n -Period information as third item.\n -Period Type information as fourth item.\n -Trade volume amount as fifth item.\n\n ...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null }, { "param": "date", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
45c20930440aa9d819426cfb9fee04782d38d051
ErenEla/transparencyEpias
transparency_epias/gas/gasTraClients.py
[ "MIT" ]
Python
price_daily
<not_specific>
def price_daily(self, startDate, endDate): ''' This function returns 7 lists including; -Gas day informatin as first item. -Contract name information as second item. -Intraday price values as third item. -Day after price values as fourth item. ...
This function returns 7 lists including; -Gas day informatin as first item. -Contract name information as second item. -Intraday price values as third item. -Day after price values as fourth item. -Dayahead price values as fifth item. -Wei...
This function returns 7 lists including; Gas day informatin as first item. Contract name information as second item. Intraday price values as third item. Day after price values as fourth item. Dayahead price values as fifth item. Weighted Average price values as sixth item. Gas reference price values as seventh item. ...
[ "This", "function", "returns", "7", "lists", "including", ";", "Gas", "day", "informatin", "as", "first", "item", ".", "Contract", "name", "information", "as", "second", "item", ".", "Intraday", "price", "values", "as", "third", "item", ".", "Day", "after", ...
def price_daily(self, startDate, endDate): val.date_check(startDate, endDate) query = "stp/daily-price?"+"startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_list[0] re...
[ "def", "price_daily", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"stp/daily-price?\"", "+", "\"startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "+", "f'{e...
This function returns 7 lists including; Gas day informatin as first item.
[ "This", "function", "returns", "7", "lists", "including", ";", "Gas", "day", "informatin", "as", "first", "item", "." ]
[ "'''\n This function returns 7 lists including;\n -Gas day informatin as first item.\n -Contract name information as second item.\n -Intraday price values as third item.\n -Day after price values as fourth item.\n -Dayahead price values as fifth item.\n ...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
45c20930440aa9d819426cfb9fee04782d38d051
ErenEla/transparencyEpias
transparency_epias/gas/gasTraClients.py
[ "MIT" ]
Python
fourcode
<not_specific>
def fourcode(self, startDate, endDate): ''' This function returns 6 lists including; -Gas day informatin as first item. -Contract name information as second item. -Amount values (x1000 sm3) values as third item. -Weigthed average values as fourth item. ...
This function returns 6 lists including; -Gas day informatin as first item. -Contract name information as second item. -Amount values (x1000 sm3) values as third item. -Weigthed average values as fourth item. Parameters: startDate: ...
This function returns 6 lists including; Gas day informatin as first item. Contract name information as second item. Amount values (x1000 sm3) values as third item. Weigthed average values as fourth item. Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
[ "This", "function", "returns", "6", "lists", "including", ";", "Gas", "day", "informatin", "as", "first", "item", ".", "Contract", "name", "information", "as", "second", "item", ".", "Amount", "values", "(", "x1000", "sm3", ")", "values", "as", "third", "i...
def fourcode(self, startDate, endDate): val.date_check(startDate, endDate) query = "stp/fourcode-operation?"+"startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_list[0] ...
[ "def", "fourcode", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"stp/fourcode-operation?\"", "+", "\"startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "+", "...
This function returns 6 lists including; Gas day informatin as first item.
[ "This", "function", "returns", "6", "lists", "including", ";", "Gas", "day", "informatin", "as", "first", "item", "." ]
[ "'''\n This function returns 6 lists including;\n -Gas day informatin as first item.\n -Contract name information as second item.\n -Amount values (x1000 sm3) values as third item.\n -Weigthed average values as fourth item.\n \n\n Parameters:\n\n ...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
45c20930440aa9d819426cfb9fee04782d38d051
ErenEla/transparencyEpias
transparency_epias/gas/gasTraClients.py
[ "MIT" ]
Python
greencode
<not_specific>
def greencode(self, startDate, endDate): ''' This function returns 6 lists including; -Gas day informatin as first item. -Contract name information as second item. -Amount values (x1000 sm3) values as third item. -Weigthed average values as fourth item. ...
This function returns 6 lists including; -Gas day informatin as first item. -Contract name information as second item. -Amount values (x1000 sm3) values as third item. -Weigthed average values as fourth item. -Transaction date information as fifth ite...
This function returns 6 lists including; Gas day informatin as first item. Contract name information as second item. Amount values (x1000 sm3) values as third item. Weigthed average values as fourth item. Transaction date information as fifth item. Contract name information as sixth item. Start date in YYYY-MM-DD fo...
[ "This", "function", "returns", "6", "lists", "including", ";", "Gas", "day", "informatin", "as", "first", "item", ".", "Contract", "name", "information", "as", "second", "item", ".", "Amount", "values", "(", "x1000", "sm3", ")", "values", "as", "third", "i...
def greencode(self, startDate, endDate): val.date_check(startDate, endDate) query = "stp/greencode-operation?"+"startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_list[0] ...
[ "def", "greencode", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"stp/greencode-operation?\"", "+", "\"startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "+", ...
This function returns 6 lists including; Gas day informatin as first item.
[ "This", "function", "returns", "6", "lists", "including", ";", "Gas", "day", "informatin", "as", "first", "item", "." ]
[ "'''\n This function returns 6 lists including;\n -Gas day informatin as first item.\n -Contract name information as second item.\n -Amount values (x1000 sm3) values as third item.\n -Weigthed average values as fourth item.\n -Transaction date informatio...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
45c20930440aa9d819426cfb9fee04782d38d051
ErenEla/transparencyEpias
transparency_epias/gas/gasTraClients.py
[ "MIT" ]
Python
imbalance_montly
<not_specific>
def imbalance_montly(self, startDate, endDate): ''' This function returns a dictionary including; -negativeImbalance -negativeImbalanceTradeValue -period -positiveImbalance -positiveImbalanceTradeValue -type Parameters: ...
This function returns a dictionary including; -negativeImbalance -negativeImbalanceTradeValue -period -positiveImbalance -positiveImbalanceTradeValue -type Parameters: startDate: Start date in YYYY-MM-DD format. e...
This function returns a dictionary including; negativeImbalance negativeImbalanceTradeValue period positiveImbalance positiveImbalanceTradeValue type Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
[ "This", "function", "returns", "a", "dictionary", "including", ";", "negativeImbalance", "negativeImbalanceTradeValue", "period", "positiveImbalance", "positiveImbalanceTradeValue", "type", "Start", "date", "in", "YYYY", "-", "MM", "-", "DD", "format", ".", "endDate", ...
def imbalance_montly(self, startDate, endDate): val.date_check(startDate, endDate) query = "stp/imbalance-monthly?"+"startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_list[0]...
[ "def", "imbalance_montly", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"stp/imbalance-monthly?\"", "+", "\"startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "...
This function returns a dictionary including; negativeImbalance negativeImbalanceTradeValue period positiveImbalance positiveImbalanceTradeValue type
[ "This", "function", "returns", "a", "dictionary", "including", ";", "negativeImbalance", "negativeImbalanceTradeValue", "period", "positiveImbalance", "positiveImbalanceTradeValue", "type" ]
[ "'''\n This function returns a dictionary including;\n -negativeImbalance\n -negativeImbalanceTradeValue\n -period\n -positiveImbalance\n -positiveImbalanceTradeValue\n -type\n\n Parameters:\n\n startDate: Start date in YYYY-MM-D...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
45c20930440aa9d819426cfb9fee04782d38d051
ErenEla/transparencyEpias
transparency_epias/gas/gasTraClients.py
[ "MIT" ]
Python
quantitiy_matched_additional
<not_specific>
def quantitiy_matched_additional(self, startDate, endDate): ''' This function returns 3 lists including; -Quantity amount as first item. -Gas day information as second item. -Other quantity amount as third item. Parameters: startDate: Start date in ...
This function returns 3 lists including; -Quantity amount as first item. -Gas day information as second item. -Other quantity amount as third item. Parameters: startDate: Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format. ...
This function returns 3 lists including; Quantity amount as first item. Gas day information as second item. Other quantity amount as third item. Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
[ "This", "function", "returns", "3", "lists", "including", ";", "Quantity", "amount", "as", "first", "item", ".", "Gas", "day", "information", "as", "second", "item", ".", "Other", "quantity", "amount", "as", "third", "item", ".", "Start", "date", "in", "YY...
def quantitiy_matched_additional(self, startDate, endDate): val.date_check(startDate, endDate) query = "stp/matching-quantity/additional-quantity?"+"startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()...
[ "def", "quantitiy_matched_additional", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"stp/matching-quantity/additional-quantity?\"", "+", "\"startDate=\"", "+", "f'{startDate}'...
This function returns 3 lists including; Quantity amount as first item.
[ "This", "function", "returns", "3", "lists", "including", ";", "Quantity", "amount", "as", "first", "item", "." ]
[ "'''\n This function returns 3 lists including;\n -Quantity amount as first item.\n -Gas day information as second item.\n -Other quantity amount as third item.\n\n Parameters:\n\n startDate: Start date in YYYY-MM-DD format.\n endDate: End date in YYYY-MM...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
45c20930440aa9d819426cfb9fee04782d38d051
ErenEla/transparencyEpias
transparency_epias/gas/gasTraClients.py
[ "MIT" ]
Python
price_mobile
<not_specific>
def price_mobile(self, startDate, endDate): ''' This function returns 5 lists including; -Balancing gas purchase amount as first item. -Balancing gas sale amount as second item. -Gas reference price values as third item. -Gas day information as fourth ite...
This function returns 5 lists including; -Balancing gas purchase amount as first item. -Balancing gas sale amount as second item. -Gas reference price values as third item. -Gas day information as fourth item. -Imbalance amount as sixth item. ...
This function returns 5 lists including; Balancing gas purchase amount as first item. Balancing gas sale amount as second item. Gas reference price values as third item. Gas day information as fourth item. Imbalance amount as sixth item. Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
[ "This", "function", "returns", "5", "lists", "including", ";", "Balancing", "gas", "purchase", "amount", "as", "first", "item", ".", "Balancing", "gas", "sale", "amount", "as", "second", "item", ".", "Gas", "reference", "price", "values", "as", "third", "ite...
def price_mobile(self, startDate, endDate): val.date_check(startDate, endDate) query = "stp/mobile/price?"+"startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_list[0] ...
[ "def", "price_mobile", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"stp/mobile/price?\"", "+", "\"startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "+", "f'...
This function returns 5 lists including; Balancing gas purchase amount as first item.
[ "This", "function", "returns", "5", "lists", "including", ";", "Balancing", "gas", "purchase", "amount", "as", "first", "item", "." ]
[ "'''\n This function returns 5 lists including;\n -Balancing gas purchase amount as first item.\n -Balancing gas sale amount as second item.\n -Gas reference price values as third item.\n -Gas day information as fourth item.\n -Imbalance amount as sixth ...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
45c20930440aa9d819426cfb9fee04782d38d051
ErenEla/transparencyEpias
transparency_epias/gas/gasTraClients.py
[ "MIT" ]
Python
price_stp
<not_specific>
def price_stp(self, startDate, endDate, price_type=None): ''' This function returns 4 lists including; -Gas day information as first item. -Price values as second item. -Price type information as third item. -State information as fourht item. Par...
This function returns 4 lists including; -Gas day information as first item. -Price values as second item. -Price type information as third item. -State information as fourht item. Parameters: startDate: Start date in YYYY-MM-DD format. ...
This function returns 4 lists including; Gas day information as first item. Price values as second item. Price type information as third item. State information as fourht item. Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
[ "This", "function", "returns", "4", "lists", "including", ";", "Gas", "day", "information", "as", "first", "item", ".", "Price", "values", "as", "second", "item", ".", "Price", "type", "information", "as", "third", "item", ".", "State", "information", "as", ...
def price_stp(self, startDate, endDate, price_type=None): val.date_check(startDate, endDate) query = "stp/price?"+"startDate="+f'{startDate}'+"&endDate="+f'{endDate}'+"&priceType="+f'{price_type}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) ...
[ "def", "price_stp", "(", "self", ",", "startDate", ",", "endDate", ",", "price_type", "=", "None", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"stp/price?\"", "+", "\"startDate=\"", "+", "f'{startDate}'", "+", ...
This function returns 4 lists including; Gas day information as first item.
[ "This", "function", "returns", "4", "lists", "including", ";", "Gas", "day", "information", "as", "first", "item", "." ]
[ "'''\n This function returns 4 lists including;\n -Gas day information as first item.\n -Price values as second item.\n -Price type information as third item.\n -State information as fourht item.\n\n Parameters:\n\n startDate: Start date in YYYY-MM-DD...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null }, { "param": "price_type", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
e4e3968850f187c1688fd34441263dbe97525fd4
ErenEla/transparencyEpias
transparency_epias/consumption/consumptionClient.py
[ "MIT" ]
Python
consumption_all
<not_specific>
def consumption_all(self, date): ''' This function returns 4 lists including; -Date list for specified date as first item. -Total consumption amount as second item. -Eligible Customer consumption amount for specified date as third item. -Under Supply Liab...
This function returns 4 lists including; -Date list for specified date as first item. -Total consumption amount as second item. -Eligible Customer consumption amount for specified date as third item. -Under Supply Liability consumption amount for specified date a...
This function returns 4 lists including; Date list for specified date as first item. Total consumption amount as second item. Eligible Customer consumption amount for specified date as third item. Under Supply Liability consumption amount for specified date as third item. Specific date in YYYY-MM-DD format.
[ "This", "function", "returns", "4", "lists", "including", ";", "Date", "list", "for", "specified", "date", "as", "first", "item", ".", "Total", "consumption", "amount", "as", "second", "item", ".", "Eligible", "Customer", "consumption", "amount", "for", "speci...
def consumption_all(self, date): val.date_format_check(date) query = "consumption/consumption?period="+f'{date}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_list[0] response_list = json_result['body'][f'{key_name...
[ "def", "consumption_all", "(", "self", ",", "date", ")", ":", "val", ".", "date_format_check", "(", "date", ")", "query", "=", "\"consumption/consumption?period=\"", "+", "f'{date}'", "json_result", "=", "self", ".", "get_request_result", "(", "query", ")", "key...
This function returns 4 lists including; Date list for specified date as first item.
[ "This", "function", "returns", "4", "lists", "including", ";", "Date", "list", "for", "specified", "date", "as", "first", "item", "." ]
[ "'''\n This function returns 4 lists including;\n -Date list for specified date as first item.\n -Total consumption amount as second item.\n -Eligible Customer consumption amount for specified date as third item.\n -Under Supply Liability consumption amount for spe...
[ { "param": "self", "type": null }, { "param": "date", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "date", "type": null, "docstring": null, "docstring_tokens": [...
e4e3968850f187c1688fd34441263dbe97525fd4
ErenEla/transparencyEpias
transparency_epias/consumption/consumptionClient.py
[ "MIT" ]
Python
consumption_realtime
<not_specific>
def consumption_realtime(self, startDate, endDate): ''' This function returns a dictionary including; -Datetime list that covers the range of startDate and endDate parameters as first item. -Actual consumption amount as second item. Parameters: startDate: Star...
This function returns a dictionary including; -Datetime list that covers the range of startDate and endDate parameters as first item. -Actual consumption amount as second item. Parameters: startDate: Start date in YYYY-MM-DD format. endDate: End date in YYYY-M...
This function returns a dictionary including; Datetime list that covers the range of startDate and endDate parameters as first item. Actual consumption amount as second item. Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
[ "This", "function", "returns", "a", "dictionary", "including", ";", "Datetime", "list", "that", "covers", "the", "range", "of", "startDate", "and", "endDate", "parameters", "as", "first", "item", ".", "Actual", "consumption", "amount", "as", "second", "item", ...
def consumption_realtime(self, startDate, endDate): val.date_check(startDate, endDate) query = "consumption/real-time-consumption?"+"startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_na...
[ "def", "consumption_realtime", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"consumption/real-time-consumption?\"", "+", "\"startDate=\"", "+", "f'{startDate}'", "+", "\"&...
This function returns a dictionary including; Datetime list that covers the range of startDate and endDate parameters as first item.
[ "This", "function", "returns", "a", "dictionary", "including", ";", "Datetime", "list", "that", "covers", "the", "range", "of", "startDate", "and", "endDate", "parameters", "as", "first", "item", "." ]
[ "'''\n This function returns a dictionary including;\n -Datetime list that covers the range of startDate and endDate parameters as first item. \n -Actual consumption amount as second item.\n\n Parameters:\n\n startDate: Start date in YYYY-MM-DD format.\n endDate: En...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
e4e3968850f187c1688fd34441263dbe97525fd4
ErenEla/transparencyEpias
transparency_epias/consumption/consumptionClient.py
[ "MIT" ]
Python
consumption_official
<not_specific>
def consumption_official(self, startDate, endDate): ''' This function returns a dictionary including; -Datetime list that covers the range of startDate and endDate parameters as first item. -Officially aproved consumption amount as second item. Parameters: sta...
This function returns a dictionary including; -Datetime list that covers the range of startDate and endDate parameters as first item. -Officially aproved consumption amount as second item. Parameters: startDate: Start date in YYYY-MM-DD format. endDate: End da...
This function returns a dictionary including; Datetime list that covers the range of startDate and endDate parameters as first item. Officially aproved consumption amount as second item. Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
[ "This", "function", "returns", "a", "dictionary", "including", ";", "Datetime", "list", "that", "covers", "the", "range", "of", "startDate", "and", "endDate", "parameters", "as", "first", "item", ".", "Officially", "aproved", "consumption", "amount", "as", "seco...
def consumption_official(self, startDate, endDate): val.date_check(startDate, endDate) query = "consumption/swv?"+"startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_list[0] ...
[ "def", "consumption_official", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"consumption/swv?\"", "+", "\"startDate=\"", "+", "f'{startDate}'", "+", "\"&endDate=\"", "+"...
This function returns a dictionary including; Datetime list that covers the range of startDate and endDate parameters as first item.
[ "This", "function", "returns", "a", "dictionary", "including", ";", "Datetime", "list", "that", "covers", "the", "range", "of", "startDate", "and", "endDate", "parameters", "as", "first", "item", "." ]
[ "'''\n This function returns a dictionary including;\n -Datetime list that covers the range of startDate and endDate parameters as first item. \n -Officially aproved consumption amount as second item.\n\n Parameters:\n\n startDate: Start date in YYYY-MM-DD format.\n ...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
e4e3968850f187c1688fd34441263dbe97525fd4
ErenEla/transparencyEpias
transparency_epias/consumption/consumptionClient.py
[ "MIT" ]
Python
consumption_supplyLia
<not_specific>
def consumption_supplyLia(self, startDate, endDate): ''' This function returns a dictionary including; -Datetime list that covers the range of startDate and endDate parameters as first item. -Under supply liablitiy consumption amount as second item. Parameters: ...
This function returns a dictionary including; -Datetime list that covers the range of startDate and endDate parameters as first item. -Under supply liablitiy consumption amount as second item. Parameters: startDate: Start date in YYYY-MM-DD format. endDate: En...
This function returns a dictionary including; Datetime list that covers the range of startDate and endDate parameters as first item. Under supply liablitiy consumption amount as second item. Start date in YYYY-MM-DD format. endDate: End date in YYYY-MM-DD format.
[ "This", "function", "returns", "a", "dictionary", "including", ";", "Datetime", "list", "that", "covers", "the", "range", "of", "startDate", "and", "endDate", "parameters", "as", "first", "item", ".", "Under", "supply", "liablitiy", "consumption", "amount", "as"...
def consumption_supplyLia(self, startDate, endDate): val.date_check(startDate, endDate) query = "consumption/under-supply-liability-consumption?"+"startDate="+f'{startDate}'+"&endDate="+f'{endDate}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) ...
[ "def", "consumption_supplyLia", "(", "self", ",", "startDate", ",", "endDate", ")", ":", "val", ".", "date_check", "(", "startDate", ",", "endDate", ")", "query", "=", "\"consumption/under-supply-liability-consumption?\"", "+", "\"startDate=\"", "+", "f'{startDate}'",...
This function returns a dictionary including; Datetime list that covers the range of startDate and endDate parameters as first item.
[ "This", "function", "returns", "a", "dictionary", "including", ";", "Datetime", "list", "that", "covers", "the", "range", "of", "startDate", "and", "endDate", "parameters", "as", "first", "item", "." ]
[ "'''\n This function returns a dictionary including;\n -Datetime list that covers the range of startDate and endDate parameters as first item. \n -Under supply liablitiy consumption amount as second item.\n\n Parameters:\n\n startDate: Start date in YYYY-MM-DD format.\n ...
[ { "param": "self", "type": null }, { "param": "startDate", "type": null }, { "param": "endDate", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "startDate", "type": null, "docstring": null, "docstring_token...
e4e3968850f187c1688fd34441263dbe97525fd4
ErenEla/transparencyEpias
transparency_epias/consumption/consumptionClient.py
[ "MIT" ]
Python
consumption_eligible
<not_specific>
def consumption_eligible(self, date): ''' This function returns a list including; -Date information as first item. -Eligible consumer consumption amount as second item. Parameters: date: Specific date in YYYY-MM-DD format. companyId (Optional) = Specifi...
This function returns a list including; -Date information as first item. -Eligible consumer consumption amount as second item. Parameters: date: Specific date in YYYY-MM-DD format. companyId (Optional) = Specific company id. provinceId (Optional) = Spec...
This function returns a list including; Date information as first item. Eligible consumer consumption amount as second item. Specific date in YYYY-MM-DD format. companyId (Optional) = Specific company id. provinceId (Optional) = Specific province id.
[ "This", "function", "returns", "a", "list", "including", ";", "Date", "information", "as", "first", "item", ".", "Eligible", "consumer", "consumption", "amount", "as", "second", "item", ".", "Specific", "date", "in", "YYYY", "-", "MM", "-", "DD", "format", ...
def consumption_eligible(self, date): val.date_format_check(date) query = "consumption/swv-v2?"+"period="+f'{date}' json_result = self.get_request_result(query) key_list = list(json_result['body'].keys()) key_name = key_list[0] response_list = json_result['body'][f'{key_n...
[ "def", "consumption_eligible", "(", "self", ",", "date", ")", ":", "val", ".", "date_format_check", "(", "date", ")", "query", "=", "\"consumption/swv-v2?\"", "+", "\"period=\"", "+", "f'{date}'", "json_result", "=", "self", ".", "get_request_result", "(", "quer...
This function returns a list including; Date information as first item.
[ "This", "function", "returns", "a", "list", "including", ";", "Date", "information", "as", "first", "item", "." ]
[ "'''\n This function returns a list including;\n -Date information as first item.\n -Eligible consumer consumption amount as second item.\n\n Parameters:\n\n date: Specific date in YYYY-MM-DD format.\n companyId (Optional) = Specific company id.\n provinceId ...
[ { "param": "self", "type": null }, { "param": "date", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "date", "type": null, "docstring": null, "docstring_tokens": [...
05af9148e5f16a3565ebf6596a3f46dcbee8bde1
JeremyBYU/cpp-pybind-skel
src_docs/make_docs.py
[ "MIT" ]
Python
_get_cpplib_module
<not_specific>
def _get_cpplib_module(full_module_name): """Returns the module object for the given module path""" import cpplib # make sure the root module is loaded try: # try to import directly. This will work for pure python submodules module = importlib.import_module(full_module_n...
Returns the module object for the given module path
Returns the module object for the given module path
[ "Returns", "the", "module", "object", "for", "the", "given", "module", "path" ]
def _get_cpplib_module(full_module_name): import cpplib try: module = importlib.import_module(full_module_name) return module except ImportError: current_module = cpplib for sub_module_name in full_module_name.split('.')[1:]: curr...
[ "def", "_get_cpplib_module", "(", "full_module_name", ")", ":", "import", "cpplib", "try", ":", "module", "=", "importlib", ".", "import_module", "(", "full_module_name", ")", "return", "module", "except", "ImportError", ":", "current_module", "=", "cpplib", "for"...
Returns the module object for the given module path
[ "Returns", "the", "module", "object", "for", "the", "given", "module", "path" ]
[ "\"\"\"Returns the module object for the given module path\"\"\"", "# make sure the root module is loaded", "# try to import directly. This will work for pure python submodules", "# traverse the module hierarchy of the root module.", "# This code path is necessary for modules for which we manually", "# de...
[ { "param": "full_module_name", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "full_module_name", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null } ], "outlier_params": [], "others": [] }
05af9148e5f16a3565ebf6596a3f46dcbee8bde1
JeremyBYU/cpp-pybind-skel
src_docs/make_docs.py
[ "MIT" ]
Python
_get_module_names_from_index_rst
<not_specific>
def _get_module_names_from_index_rst(): """Reads the modules of the python api from the index.rst""" module_names = [] with open('index.rst', 'r') as f: for line in f: m = re.match( '\s*MAKE_DOCS/python_api/([^\s]*)\s*(.*)\s*$', line) ...
Reads the modules of the python api from the index.rst
Reads the modules of the python api from the index.rst
[ "Reads", "the", "modules", "of", "the", "python", "api", "from", "the", "index", ".", "rst" ]
def _get_module_names_from_index_rst(): module_names = [] with open('index.rst', 'r') as f: for line in f: m = re.match( '\s*MAKE_DOCS/python_api/([^\s]*)\s*(.*)\s*$', line) if m: module_names.append((m.group(1), m.group...
[ "def", "_get_module_names_from_index_rst", "(", ")", ":", "module_names", "=", "[", "]", "with", "open", "(", "'index.rst'", ",", "'r'", ")", "as", "f", ":", "for", "line", "in", "f", ":", "m", "=", "re", ".", "match", "(", "'\\s*MAKE_DOCS/python_api/([^\\...
Reads the modules of the python api from the index.rst
[ "Reads", "the", "modules", "of", "the", "python", "api", "from", "the", "index", ".", "rst" ]
[ "\"\"\"Reads the modules of the python api from the index.rst\"\"\"", "# m = re.match('^\\s*python_api/(.*)\\s*$', line)" ]
[]
{ "returns": [], "raises": [], "params": [], "outlier_params": [], "others": [] }
05af9148e5f16a3565ebf6596a3f46dcbee8bde1
JeremyBYU/cpp-pybind-skel
src_docs/make_docs.py
[ "MIT" ]
Python
_gen_python_api_docs
null
def _gen_python_api_docs(self): """ Generate Python docs. Each module, class and function gets one .rst file. """ # self.python_api_output_dir cannot be a temp dir, since other # "*.rst" files reference it pd = PyAPIDocsBuilder(self.python_api_output_dir, ...
Generate Python docs. Each module, class and function gets one .rst file.
Generate Python docs. Each module, class and function gets one .rst file.
[ "Generate", "Python", "docs", ".", "Each", "module", "class", "and", "function", "gets", "one", ".", "rst", "file", "." ]
def _gen_python_api_docs(self): pd = PyAPIDocsBuilder(self.python_api_output_dir, self.documented_modules) pd.generate_rst()
[ "def", "_gen_python_api_docs", "(", "self", ")", ":", "pd", "=", "PyAPIDocsBuilder", "(", "self", ".", "python_api_output_dir", ",", "self", ".", "documented_modules", ")", "pd", ".", "generate_rst", "(", ")" ]
Generate Python docs.
[ "Generate", "Python", "docs", "." ]
[ "\"\"\"\n Generate Python docs.\n Each module, class and function gets one .rst file.\n \"\"\"", "# self.python_api_output_dir cannot be a temp dir, since other", "# \"*.rst\" files reference it" ]
[ { "param": "self", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null } ], "outlier_params": [], "others": [] }
05af9148e5f16a3565ebf6596a3f46dcbee8bde1
JeremyBYU/cpp-pybind-skel
src_docs/make_docs.py
[ "MIT" ]
Python
_run_sphinx
null
def _run_sphinx(self): """ Call Sphinx command with hard-coded "html" target """ build_dir = os.path.join(self.html_output_dir, "html") if self.is_release: version_list = [ line.rstrip('\n').split(' ')[1] for line in open('../src/versi...
Call Sphinx command with hard-coded "html" target
Call Sphinx command with hard-coded "html" target
[ "Call", "Sphinx", "command", "with", "hard", "-", "coded", "\"", "html", "\"", "target" ]
def _run_sphinx(self): build_dir = os.path.join(self.html_output_dir, "html") if self.is_release: version_list = [ line.rstrip('\n').split(' ')[1] for line in open('../src/version.txt') ] release_version = '.'.join(version_list[:3]) ...
[ "def", "_run_sphinx", "(", "self", ")", ":", "build_dir", "=", "os", ".", "path", ".", "join", "(", "self", ".", "html_output_dir", ",", "\"html\"", ")", "if", "self", ".", "is_release", ":", "version_list", "=", "[", "line", ".", "rstrip", "(", "'\\n'...
Call Sphinx command with hard-coded "html" target
[ "Call", "Sphinx", "command", "with", "hard", "-", "coded", "\"", "html", "\"", "target" ]
[ "\"\"\"\n Call Sphinx command with hard-coded \"html\" target\n \"\"\"" ]
[ { "param": "self", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null } ], "outlier_params": [], "others": [] }
f3a638681e269295c9449a4e6c5f26bf35ab1c31
textX/textX-jinja
textxjinja/__init__.py
[ "MIT" ]
Python
textx_jinja_generator
<not_specific>
def textx_jinja_generator(templates_path, target_path, context, overwrite=False, filters=None, transform_names=None): """ Generates a set of files using Jinja templates. """ """ Args: templates_path (str): A path to templates. target_path (str): The path wh...
Generates a set of files using Jinja templates.
Generates a set of files using Jinja templates.
[ "Generates", "a", "set", "of", "files", "using", "Jinja", "templates", "." ]
def textx_jinja_generator(templates_path, target_path, context, overwrite=False, filters=None, transform_names=None): def eval_file_name(file_name): placeholders = placeholder_re.findall(file_name) files = None tran_names = str if transform_names is None else transf...
[ "def", "textx_jinja_generator", "(", "templates_path", ",", "target_path", ",", "context", ",", "overwrite", "=", "False", ",", "filters", "=", "None", ",", "transform_names", "=", "None", ")", ":", "\"\"\"\n Args:\n templates_path (str): A path to templates.\n ...
Generates a set of files using Jinja templates.
[ "Generates", "a", "set", "of", "files", "using", "Jinja", "templates", "." ]
[ "\"\"\"\n Generates a set of files using Jinja templates.\n \"\"\"", "\"\"\"\n Args:\n templates_path (str): A path to templates.\n target_path (str): The path where files should be generated.\n context (dict): A context contains any data necessary\n for rendering files us...
[ { "param": "templates_path", "type": null }, { "param": "target_path", "type": null }, { "param": "context", "type": null }, { "param": "overwrite", "type": null }, { "param": "filters", "type": null }, { "param": "transform_names", "type": null ...
{ "returns": [], "raises": [], "params": [ { "identifier": "templates_path", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "target_path", "type": null, "docstring": null, "doc...
f3a638681e269295c9449a4e6c5f26bf35ab1c31
textX/textX-jinja
textxjinja/__init__.py
[ "MIT" ]
Python
generate_file
null
def generate_file(src_rel_file, src_file, target_file): """ Generate a single target file from the given source file. """ if overwrite or not os.path.exists(target_file): if os.path.exists(target_file): click.echo('Overwriting {}'.format(target_file)) ...
Generate a single target file from the given source file.
Generate a single target file from the given source file.
[ "Generate", "a", "single", "target", "file", "from", "the", "given", "source", "file", "." ]
def generate_file(src_rel_file, src_file, target_file): if overwrite or not os.path.exists(target_file): if os.path.exists(target_file): click.echo('Overwriting {}'.format(target_file)) file_count.overwritten += 1 else: click.echo('Creating...
[ "def", "generate_file", "(", "src_rel_file", ",", "src_file", ",", "target_file", ")", ":", "if", "overwrite", "or", "not", "os", ".", "path", ".", "exists", "(", "target_file", ")", ":", "if", "os", ".", "path", ".", "exists", "(", "target_file", ")", ...
Generate a single target file from the given source file.
[ "Generate", "a", "single", "target", "file", "from", "the", "given", "source", "file", "." ]
[ "\"\"\"\n Generate a single target file from the given source file.\n \"\"\"", "# Render using Jinja template", "# Just copy" ]
[ { "param": "src_rel_file", "type": null }, { "param": "src_file", "type": null }, { "param": "target_file", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "src_rel_file", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "src_file", "type": null, "docstring": null, "docstrin...
46275610ff8c736a21ac26ea85d73203728a813c
KennethEnevoldsen/DA_emoji_sentiment
EmojiCluster.py
[ "MIT" ]
Python
__color_mapping
null
def __color_mapping(self, ignore=[], verbose=False, **kwargs): """ creates a mapping which maps emoji with defined hair color and skin tone into the classic yellow emoji. """ skin_tones = {st for st in self.skin_tones if st not in ignore} for e_, desc in self.emoji_desc....
creates a mapping which maps emoji with defined hair color and skin tone into the classic yellow emoji.
creates a mapping which maps emoji with defined hair color and skin tone into the classic yellow emoji.
[ "creates", "a", "mapping", "which", "maps", "emoji", "with", "defined", "hair", "color", "and", "skin", "tone", "into", "the", "classic", "yellow", "emoji", "." ]
def __color_mapping(self, ignore=[], verbose=False, **kwargs): skin_tones = {st for st in self.skin_tones if st not in ignore} for e_, desc in self.emoji_desc.items(): if e_ in ignore: continue if e_ in self.mapping: continue for tone i...
[ "def", "__color_mapping", "(", "self", ",", "ignore", "=", "[", "]", ",", "verbose", "=", "False", ",", "**", "kwargs", ")", ":", "skin_tones", "=", "{", "st", "for", "st", "in", "self", ".", "skin_tones", "if", "st", "not", "in", "ignore", "}", "f...
creates a mapping which maps emoji with defined hair color and skin tone into the classic yellow emoji.
[ "creates", "a", "mapping", "which", "maps", "emoji", "with", "defined", "hair", "color", "and", "skin", "tone", "into", "the", "classic", "yellow", "emoji", "." ]
[ "\"\"\"\n creates a mapping which maps emoji with defined hair color and skin\n tone into the classic yellow emoji.\n \"\"\"", "# if it is a color" ]
[ { "param": "self", "type": null }, { "param": "ignore", "type": null }, { "param": "verbose", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "ignore", "type": null, "docstring": null, "docstring_tokens":...
46275610ff8c736a21ac26ea85d73203728a813c
KennethEnevoldsen/DA_emoji_sentiment
EmojiCluster.py
[ "MIT" ]
Python
__unicode_mapping
null
def __unicode_mapping(self): """ creates a mapping between unicode smiley with the same description, but different unicode. """ for e, desc in self.emoji_desc.items(): if e in self.mapping: continue matches = {e: d for e, d in self.emoji_de...
creates a mapping between unicode smiley with the same description, but different unicode.
creates a mapping between unicode smiley with the same description, but different unicode.
[ "creates", "a", "mapping", "between", "unicode", "smiley", "with", "the", "same", "description", "but", "different", "unicode", "." ]
def __unicode_mapping(self): for e, desc in self.emoji_desc.items(): if e in self.mapping: continue matches = {e: d for e, d in self.emoji_desc.items() if d == desc} if len(matches) > 1: self.mapping[e] = self.rev_emoji_desc[desc]
[ "def", "__unicode_mapping", "(", "self", ")", ":", "for", "e", ",", "desc", "in", "self", ".", "emoji_desc", ".", "items", "(", ")", ":", "if", "e", "in", "self", ".", "mapping", ":", "continue", "matches", "=", "{", "e", ":", "d", "for", "e", ",...
creates a mapping between unicode smiley with the same description, but different unicode.
[ "creates", "a", "mapping", "between", "unicode", "smiley", "with", "the", "same", "description", "but", "different", "unicode", "." ]
[ "\"\"\"\n creates a mapping between unicode smiley with the same description,\n but different unicode.\n \"\"\"" ]
[ { "param": "self", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null } ], "outlier_params": [], "others": [] }
46275610ff8c736a21ac26ea85d73203728a813c
KennethEnevoldsen/DA_emoji_sentiment
EmojiCluster.py
[ "MIT" ]
Python
fit
null
def fit(self, topn, corpus=None, binary=True, counter=None, verbose=True, fit_using_e2v=None, boundary=0.72, topn_e2v=20): """ corpus (iter): an iterable object containing strings topn (int): The maximum number of token to keep binary (bool): should you only count each emoji ...
corpus (iter): an iterable object containing strings topn (int): The maximum number of token to keep binary (bool): should you only count each emoji once pr. text in corpus? counter (Counter): A counter containing the count of each emoji in the corpus, if passed corpus w...
corpus (iter): an iterable object containing strings topn (int): The maximum number of token to keep binary (bool): should you only count each emoji once pr. text in corpus. counter (Counter): A counter containing the count of each emoji in the corpus, if passed corpus will be ignored. If None will it be estimated on t...
[ "corpus", "(", "iter", ")", ":", "an", "iterable", "object", "containing", "strings", "topn", "(", "int", ")", ":", "The", "maximum", "number", "of", "token", "to", "keep", "binary", "(", "bool", ")", ":", "should", "you", "only", "count", "each", "emo...
def fit(self, topn, corpus=None, binary=True, counter=None, verbose=True, fit_using_e2v=None, boundary=0.72, topn_e2v=20): if (corpus is None) and (counter is None): raise ValueError( "corpus need to be specified if no counter is given") elif counter is None: ...
[ "def", "fit", "(", "self", ",", "topn", ",", "corpus", "=", "None", ",", "binary", "=", "True", ",", "counter", "=", "None", ",", "verbose", "=", "True", ",", "fit_using_e2v", "=", "None", ",", "boundary", "=", "0.72", ",", "topn_e2v", "=", "20", "...
corpus (iter): an iterable object containing strings topn (int): The maximum number of token to keep binary (bool): should you only count each emoji once pr.
[ "corpus", "(", "iter", ")", ":", "an", "iterable", "object", "containing", "strings", "topn", "(", "int", ")", ":", "The", "maximum", "number", "of", "token", "to", "keep", "binary", "(", "bool", ")", ":", "should", "you", "only", "count", "each", "emo...
[ "\"\"\"\n corpus (iter): an iterable object containing strings\n topn (int): The maximum number of token to keep\n binary (bool): should you only count each emoji once pr. text in\n corpus?\n counter (Counter): A counter containing the count of each emoji in the\n corpus, i...
[ { "param": "self", "type": null }, { "param": "topn", "type": null }, { "param": "corpus", "type": null }, { "param": "binary", "type": null }, { "param": "counter", "type": null }, { "param": "verbose", "type": null }, { "param": "fit_usin...
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "topn", "type": null, "docstring": null, "docstring_tokens": [...
46275610ff8c736a21ac26ea85d73203728a813c
KennethEnevoldsen/DA_emoji_sentiment
EmojiCluster.py
[ "MIT" ]
Python
map_emoji
<not_specific>
def map_emoji(self, emoji, topn=20, boundary=0.72, print_most_sim=False, raise_error=False, force=False): """ topn (int): the number of object it look at when using e2v. It will search through the topn most similar and see if any is below the boundary. If so if the simi...
topn (int): the number of object it look at when using e2v. It will search through the topn most similar and see if any is below the boundary. If so if the similar output is valid in the fit it will return the given value. boundary (float): the similarity boundary, when using e2...
topn (int): the number of object it look at when using e2v. It will search through the topn most similar and see if any is below the boundary. If so if the similar output is valid in the fit it will return the given value. boundary (float): the similarity boundary, when using e2v. print_most_sim (bool): Print most simi...
[ "topn", "(", "int", ")", ":", "the", "number", "of", "object", "it", "look", "at", "when", "using", "e2v", ".", "It", "will", "search", "through", "the", "topn", "most", "similar", "and", "see", "if", "any", "is", "below", "the", "boundary", ".", "If...
def map_emoji(self, emoji, topn=20, boundary=0.72, print_most_sim=False, raise_error=False, force=False): if (self.isfit is False) and (force is False): raise Exception("Emojicluster is not yet fit. Please fit before" + "calling this function") i...
[ "def", "map_emoji", "(", "self", ",", "emoji", ",", "topn", "=", "20", ",", "boundary", "=", "0.72", ",", "print_most_sim", "=", "False", ",", "raise_error", "=", "False", ",", "force", "=", "False", ")", ":", "if", "(", "self", ".", "isfit", "is", ...
topn (int): the number of object it look at when using e2v.
[ "topn", "(", "int", ")", ":", "the", "number", "of", "object", "it", "look", "at", "when", "using", "e2v", "." ]
[ "\"\"\"\n topn (int): the number of object it look at when using e2v. It will\n search through the topn most similar and see if any is below the\n boundary. If so if the similar output is valid in the fit it will\n return the given value.\n boundary (float): the similarity boundar...
[ { "param": "self", "type": null }, { "param": "emoji", "type": null }, { "param": "topn", "type": null }, { "param": "boundary", "type": null }, { "param": "print_most_sim", "type": null }, { "param": "raise_error", "type": null }, { "param...
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "emoji", "type": null, "docstring": null, "docstring_tokens": ...
9b71674db9d8fdce51b262d3640fa42ad6ba5378
KennethEnevoldsen/DA_emoji_sentiment
convert_to_tfRecord.py
[ "MIT" ]
Python
_bytes_feature
<not_specific>
def _bytes_feature(value): """ Returns a bytes_list from a string / byte. Example: >>> _bytes_feature("test".encode("utf-8")) ... >>> _bytes_feature("test") ... """ if isinstance(value, type(tf.constant(0))): # BytesList won't unpack a string from an EagerTensor. valu...
Returns a bytes_list from a string / byte. Example: >>> _bytes_feature("test".encode("utf-8")) ... >>> _bytes_feature("test") ...
Returns a bytes_list from a string / byte.
[ "Returns", "a", "bytes_list", "from", "a", "string", "/", "byte", "." ]
def _bytes_feature(value): if isinstance(value, type(tf.constant(0))): value = value.numpy() if not isinstance(value, (bytes, bytearray)): value = value.encode("utf-8") return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value]))
[ "def", "_bytes_feature", "(", "value", ")", ":", "if", "isinstance", "(", "value", ",", "type", "(", "tf", ".", "constant", "(", "0", ")", ")", ")", ":", "value", "=", "value", ".", "numpy", "(", ")", "if", "not", "isinstance", "(", "value", ",", ...
Returns a bytes_list from a string / byte.
[ "Returns", "a", "bytes_list", "from", "a", "string", "/", "byte", "." ]
[ "\"\"\"\n Returns a bytes_list from a string / byte.\n Example:\n >>> _bytes_feature(\"test\".encode(\"utf-8\"))\n ...\n >>> _bytes_feature(\"test\")\n ...\n \"\"\"", "# BytesList won't unpack a string from an EagerTensor.", "# BytesList won't unpack a string from an EagerTensor." ]
[ { "param": "value", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "value", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null } ], "outlier_params": [], "others": [ { "identifier": "examples", "docstring": null, ...
85fb92293ea19760034d70f33725d1a6add987ab
KennethEnevoldsen/DA_emoji_sentiment
emoji_utils.py
[ "MIT" ]
Python
filter_emoji_column
<not_specific>
def filter_emoji_column(df, col="text"): """ df (DataFrame|list) returns a dataframe with text not contain emoji's removed """ if isinstance(df, (list, filter, types.GeneratorType)): return (filter_emoji_column(d) for d in df) df = df.loc[df[col].apply(contains_emoji)] return df
df (DataFrame|list) returns a dataframe with text not contain emoji's removed
df (DataFrame|list) returns a dataframe with text not contain emoji's removed
[ "df", "(", "DataFrame|list", ")", "returns", "a", "dataframe", "with", "text", "not", "contain", "emoji", "'", "s", "removed" ]
def filter_emoji_column(df, col="text"): if isinstance(df, (list, filter, types.GeneratorType)): return (filter_emoji_column(d) for d in df) df = df.loc[df[col].apply(contains_emoji)] return df
[ "def", "filter_emoji_column", "(", "df", ",", "col", "=", "\"text\"", ")", ":", "if", "isinstance", "(", "df", ",", "(", "list", ",", "filter", ",", "types", ".", "GeneratorType", ")", ")", ":", "return", "(", "filter_emoji_column", "(", "d", ")", "for...
df (DataFrame|list) returns a dataframe with text not contain emoji's removed
[ "df", "(", "DataFrame|list", ")", "returns", "a", "dataframe", "with", "text", "not", "contain", "emoji", "'", "s", "removed" ]
[ "\"\"\"\n df (DataFrame|list)\n returns a dataframe with text not contain emoji's removed\n \"\"\"" ]
[ { "param": "df", "type": null }, { "param": "col", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "df", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "col", "type": null, "docstring": null, "docstring_tokens": [], ...
f6ff1178c7ffbadcbdf48225a1cb7b46c82f2830
KennethEnevoldsen/DA_emoji_sentiment
make_corpus.py
[ "MIT" ]
Python
df_gen
null
def df_gen(files, reader=None): """ simply add print functionality to generator """ n_files = len(files) for i, f in enumerate(files): print(f"File {i}/{n_files}") if reader is None: yield pd.read_csv(f, sep="\t") else: yield reader(f)
simply add print functionality to generator
simply add print functionality to generator
[ "simply", "add", "print", "functionality", "to", "generator" ]
def df_gen(files, reader=None): n_files = len(files) for i, f in enumerate(files): print(f"File {i}/{n_files}") if reader is None: yield pd.read_csv(f, sep="\t") else: yield reader(f)
[ "def", "df_gen", "(", "files", ",", "reader", "=", "None", ")", ":", "n_files", "=", "len", "(", "files", ")", "for", "i", ",", "f", "in", "enumerate", "(", "files", ")", ":", "print", "(", "f\"File {i}/{n_files}\"", ")", "if", "reader", "is", "None"...
simply add print functionality to generator
[ "simply", "add", "print", "functionality", "to", "generator" ]
[ "\"\"\"\n simply add print functionality to generator\n \"\"\"" ]
[ { "param": "files", "type": null }, { "param": "reader", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "files", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "reader", "type": null, "docstring": null, "docstring_tokens"...
2e083824162c98f6a5929a8efe4394877f869e0c
leffff/stackboost
stackboost/utils/data_operation.py
[ "MIT" ]
Python
calculate_variance
<not_specific>
def calculate_variance(X): """ Return the variance of the features in dataset X """ # mean = np.ones(np.shape(X)) * X.mean(0) # n_samples = np.shape(X)[0] # variance = (1 / n_samples) * np.diag((X - mean).T.dot(X - mean)) # return variance var = np.sum((X - X.mean()) ** 2) / len(X) return va...
Return the variance of the features in dataset X
Return the variance of the features in dataset X
[ "Return", "the", "variance", "of", "the", "features", "in", "dataset", "X" ]
def calculate_variance(X): var = np.sum((X - X.mean()) ** 2) / len(X) return var
[ "def", "calculate_variance", "(", "X", ")", ":", "var", "=", "np", ".", "sum", "(", "(", "X", "-", "X", ".", "mean", "(", ")", ")", "**", "2", ")", "/", "len", "(", "X", ")", "return", "var" ]
Return the variance of the features in dataset X
[ "Return", "the", "variance", "of", "the", "features", "in", "dataset", "X" ]
[ "\"\"\" Return the variance of the features in dataset X \"\"\"", "# mean = np.ones(np.shape(X)) * X.mean(0)", "# n_samples = np.shape(X)[0]", "# variance = (1 / n_samples) * np.diag((X - mean).T.dot(X - mean))", "# return variance" ]
[ { "param": "X", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "X", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null } ], "outlier_params": [], "others": [] }
3ab853fff20b2c0f6ac7e56efb7c86ac4da12574
leffff/stackboost
stackboost/core.py
[ "MIT" ]
Python
is_leaf
<not_specific>
def is_leaf(self): """ The function used to check whether the DecisionNode is a leaf. """ return not self.value is None
The function used to check whether the DecisionNode is a leaf.
The function used to check whether the DecisionNode is a leaf.
[ "The", "function", "used", "to", "check", "whether", "the", "DecisionNode", "is", "a", "leaf", "." ]
def is_leaf(self): return not self.value is None
[ "def", "is_leaf", "(", "self", ")", ":", "return", "not", "self", ".", "value", "is", "None" ]
The function used to check whether the DecisionNode is a leaf.
[ "The", "function", "used", "to", "check", "whether", "the", "DecisionNode", "is", "a", "leaf", "." ]
[ "\"\"\"\n The function used to check whether the DecisionNode is a leaf.\n \"\"\"" ]
[ { "param": "self", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null } ], "outlier_params": [], "others": [] }
3ab853fff20b2c0f6ac7e56efb7c86ac4da12574
leffff/stackboost
stackboost/core.py
[ "MIT" ]
Python
_build_tree
DecisionNode
def _build_tree(self, X: np.ndarray, y: np.ndarray, current_depth: int = 0) -> DecisionNode: """ Recursive method which builds the decision tree and splits X and respective y on the feature of X which best separates the data :param X: training data :param y: target data ...
Recursive method which builds the decision tree and splits X and respective y on the feature of X which best separates the data :param X: training data :param y: target data :param current_depth: current depth of built tree :return:
Recursive method which builds the decision tree and splits X and respective y on the feature of X which best separates the data
[ "Recursive", "method", "which", "builds", "the", "decision", "tree", "and", "splits", "X", "and", "respective", "y", "on", "the", "feature", "of", "X", "which", "best", "separates", "the", "data" ]
def _build_tree(self, X: np.ndarray, y: np.ndarray, current_depth: int = 0) -> DecisionNode: largest_impurity = 0 best_criteria = None best_sets = None if len(np.shape(y)) == 1: y = np.expand_dims(y, axis=1) Xy = np.concatenate((X, y), axis=1) n_samples, n...
[ "def", "_build_tree", "(", "self", ",", "X", ":", "np", ".", "ndarray", ",", "y", ":", "np", ".", "ndarray", ",", "current_depth", ":", "int", "=", "0", ")", "->", "DecisionNode", ":", "largest_impurity", "=", "0", "best_criteria", "=", "None", "best_s...
Recursive method which builds the decision tree and splits X and respective y on the feature of X which best separates the data
[ "Recursive", "method", "which", "builds", "the", "decision", "tree", "and", "splits", "X", "and", "respective", "y", "on", "the", "feature", "of", "X", "which", "best", "separates", "the", "data" ]
[ "\"\"\"\n Recursive method which builds the decision tree and splits X and respective y\n on the feature of X which best separates the data\n\n :param X: training data\n :param y: target data\n :param current_depth: current depth of built tree\n :return:\n \"\"\"", ...
[ { "param": "self", "type": null }, { "param": "X", "type": "np.ndarray" }, { "param": "y", "type": "np.ndarray" }, { "param": "current_depth", "type": "int" } ]
{ "returns": [ { "docstring": null, "docstring_tokens": [ "None" ], "type": null } ], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null ...
3ab853fff20b2c0f6ac7e56efb7c86ac4da12574
leffff/stackboost
stackboost/core.py
[ "MIT" ]
Python
__prune
DecisionNode
def __prune(self, tree: DecisionNode = None) -> DecisionNode: """ Method used to prune the decision tree in order to avoid overfitting :param tree: Sub tree of the decision tree (node) :return: DecisionNode """ if tree is None: tree = self.root if no...
Method used to prune the decision tree in order to avoid overfitting :param tree: Sub tree of the decision tree (node) :return: DecisionNode
Method used to prune the decision tree in order to avoid overfitting
[ "Method", "used", "to", "prune", "the", "decision", "tree", "in", "order", "to", "avoid", "overfitting" ]
def __prune(self, tree: DecisionNode = None) -> DecisionNode: if tree is None: tree = self.root if not tree.is_leaf() and not tree.true_branch.is_leaf() and not tree.false_branch.is_leaf(): tree.true_branch = self.__prune(tree.true_branch) tree.false_branch = self.__p...
[ "def", "__prune", "(", "self", ",", "tree", ":", "DecisionNode", "=", "None", ")", "->", "DecisionNode", ":", "if", "tree", "is", "None", ":", "tree", "=", "self", ".", "root", "if", "not", "tree", ".", "is_leaf", "(", ")", "and", "not", "tree", "....
Method used to prune the decision tree in order to avoid overfitting
[ "Method", "used", "to", "prune", "the", "decision", "tree", "in", "order", "to", "avoid", "overfitting" ]
[ "\"\"\"\n Method used to prune the decision tree in order to avoid overfitting\n\n :param tree: Sub tree of the decision tree (node)\n :return: DecisionNode\n \"\"\"" ]
[ { "param": "self", "type": null }, { "param": "tree", "type": "DecisionNode" } ]
{ "returns": [ { "docstring": null, "docstring_tokens": [ "None" ], "type": null } ], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null ...
3ab853fff20b2c0f6ac7e56efb7c86ac4da12574
leffff/stackboost
stackboost/core.py
[ "MIT" ]
Python
__calculate_importance
np.ndarray
def __calculate_importance(self, importance: np.ndarray, tree: DecisionNode = None) -> np.ndarray: """ Inner function used to calculated feature importances :param importance: array of importances :param tree: the current tree node :return: array of importances """ ...
Inner function used to calculated feature importances :param importance: array of importances :param tree: the current tree node :return: array of importances
Inner function used to calculated feature importances
[ "Inner", "function", "used", "to", "calculated", "feature", "importances" ]
def __calculate_importance(self, importance: np.ndarray, tree: DecisionNode = None) -> np.ndarray: if tree is None: tree = self.root if tree.is_leaf(): return importance importance[tree.feature_i] += tree.importance return self.__calculate_importance(importance, t...
[ "def", "__calculate_importance", "(", "self", ",", "importance", ":", "np", ".", "ndarray", ",", "tree", ":", "DecisionNode", "=", "None", ")", "->", "np", ".", "ndarray", ":", "if", "tree", "is", "None", ":", "tree", "=", "self", ".", "root", "if", ...
Inner function used to calculated feature importances
[ "Inner", "function", "used", "to", "calculated", "feature", "importances" ]
[ "\"\"\"\n Inner function used to calculated feature importances\n\n :param importance: array of importances\n :param tree: the current tree node\n :return: array of importances\n \"\"\"", "# if tree is none, than we treat it as a root", "# if both tree branches are None than t...
[ { "param": "self", "type": null }, { "param": "importance", "type": "np.ndarray" }, { "param": "tree", "type": "DecisionNode" } ]
{ "returns": [ { "docstring": "array of importances", "docstring_tokens": [ "array", "of", "importances" ], "type": null } ], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens":...
3ab853fff20b2c0f6ac7e56efb7c86ac4da12574
leffff/stackboost
stackboost/core.py
[ "MIT" ]
Python
predict_value
np.ndarray
def predict_value(self, X: np.ndarray, tree: DecisionNode = None) -> np.ndarray: """ Do a recursive search down the tree and make a prediction of the data sample by the value of the leaf that we end up at """ if tree is None: tree = self.root # If we have a value (i.e w...
Do a recursive search down the tree and make a prediction of the data sample by the value of the leaf that we end up at
Do a recursive search down the tree and make a prediction of the data sample by the value of the leaf that we end up at
[ "Do", "a", "recursive", "search", "down", "the", "tree", "and", "make", "a", "prediction", "of", "the", "data", "sample", "by", "the", "value", "of", "the", "leaf", "that", "we", "end", "up", "at" ]
def predict_value(self, X: np.ndarray, tree: DecisionNode = None) -> np.ndarray: if tree is None: tree = self.root if tree.is_leaf(): return tree.value feature_value = X[tree.feature_i] branch = tree.false_branch if isinstance(feature_value, int) or isinst...
[ "def", "predict_value", "(", "self", ",", "X", ":", "np", ".", "ndarray", ",", "tree", ":", "DecisionNode", "=", "None", ")", "->", "np", ".", "ndarray", ":", "if", "tree", "is", "None", ":", "tree", "=", "self", ".", "root", "if", "tree", ".", "...
Do a recursive search down the tree and make a prediction of the data sample by the value of the leaf that we end up at
[ "Do", "a", "recursive", "search", "down", "the", "tree", "and", "make", "a", "prediction", "of", "the", "data", "sample", "by", "the", "value", "of", "the", "leaf", "that", "we", "end", "up", "at" ]
[ "\"\"\" Do a recursive search down the tree and make a prediction of the data sample by the\n value of the leaf that we end up at \"\"\"", "# If we have a value (i.e we're at a leaf) => return value as the prediction", "# Choose the feature that we will test", "# Determine if we will follow left or...
[ { "param": "self", "type": null }, { "param": "X", "type": "np.ndarray" }, { "param": "tree", "type": "DecisionNode" } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "X", "type": "np.ndarray", "docstring": null, "docstring_token...
3ab853fff20b2c0f6ac7e56efb7c86ac4da12574
leffff/stackboost
stackboost/core.py
[ "MIT" ]
Python
__inner_predict
np.ndarray
def __inner_predict(self, X: np.ndarray, iteration: int) -> np.ndarray: """ Inner method used to make prediction of n trees :param X: prediction dataset :param iteration: number of trees to predict :return: predictions array """ y_pred = np.full(np.shape(X)[0], s...
Inner method used to make prediction of n trees :param X: prediction dataset :param iteration: number of trees to predict :return: predictions array
Inner method used to make prediction of n trees
[ "Inner", "method", "used", "to", "make", "prediction", "of", "n", "trees" ]
def __inner_predict(self, X: np.ndarray, iteration: int) -> np.ndarray: y_pred = np.full(np.shape(X)[0], self.initial_prediction).reshape(-1, 1) if self.regression else None for tree in self.trees[:iteration + 1]: update_pred = tree.predict(X) if y_pred is None: y...
[ "def", "__inner_predict", "(", "self", ",", "X", ":", "np", ".", "ndarray", ",", "iteration", ":", "int", ")", "->", "np", ".", "ndarray", ":", "y_pred", "=", "np", ".", "full", "(", "np", ".", "shape", "(", "X", ")", "[", "0", "]", ",", "self"...
Inner method used to make prediction of n trees
[ "Inner", "method", "used", "to", "make", "prediction", "of", "n", "trees" ]
[ "\"\"\"\n Inner method used to make prediction of n trees\n\n :param X: prediction dataset\n :param iteration: number of trees to predict\n :return: predictions array\n \"\"\"", "# Make predictions", "# Estimate gradient and update prediction" ]
[ { "param": "self", "type": null }, { "param": "X", "type": "np.ndarray" }, { "param": "iteration", "type": "int" } ]
{ "returns": [ { "docstring": null, "docstring_tokens": [ "None" ], "type": null } ], "raises": [], "params": [ { "identifier": "self", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null ...
aa10db7a987e6a32486017709b5dc2b779e76496
Nova-Striker/discord-bot
bot/audio_trial1.py
[ "Apache-2.0" ]
Python
play
null
async def play(ctx, *, query): """Plays a file from the local filesystem""" source = discord.PCMVolumeTransformer(discord.FFmpegPCMAudio(query)) ctx.voice_client.play(source, after=lambda e: print('Player error: %s' % e) if e else None) await ctx.send('Now playing: {}'.format(query))
Plays a file from the local filesystem
Plays a file from the local filesystem
[ "Plays", "a", "file", "from", "the", "local", "filesystem" ]
async def play(ctx, *, query): source = discord.PCMVolumeTransformer(discord.FFmpegPCMAudio(query)) ctx.voice_client.play(source, after=lambda e: print('Player error: %s' % e) if e else None) await ctx.send('Now playing: {}'.format(query))
[ "async", "def", "play", "(", "ctx", ",", "*", ",", "query", ")", ":", "source", "=", "discord", ".", "PCMVolumeTransformer", "(", "discord", ".", "FFmpegPCMAudio", "(", "query", ")", ")", "ctx", ".", "voice_client", ".", "play", "(", "source", ",", "af...
Plays a file from the local filesystem
[ "Plays", "a", "file", "from", "the", "local", "filesystem" ]
[ "\"\"\"Plays a file from the local filesystem\"\"\"" ]
[ { "param": "ctx", "type": null }, { "param": "query", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "ctx", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "query", "type": null, "docstring": null, "docstring_tokens": [...
cf52e356567e6f995d7ea7b9fde22134bde00e5c
lbp0200/EasyNMT
docker/api/src/main.py
[ "Apache-2.0" ]
Python
translate
<not_specific>
async def translate(target_lang: str, text: List[str] = Query([]), source_lang: Optional[str] = '', beam_size: Optional[int] = 5, perform_sentence_splitting: Optional[bool] = True): """ Translates the text to the given target language. :param text: Text that should be translated :param target_lang: ...
Translates the text to the given target language. :param text: Text that should be translated :param target_lang: Target language :param source_lang: Language of text. Optional, if empty: Automatic language detection :param beam_size: Beam size. Optional :param perform_sentence_splitting:...
Translates the text to the given target language.
[ "Translates", "the", "text", "to", "the", "given", "target", "language", "." ]
async def translate(target_lang: str, text: List[str] = Query([]), source_lang: Optional[str] = '', beam_size: Optional[int] = 5, perform_sentence_splitting: Optional[bool] = True): if not IS_BACKEND: async_client = http3.AsyncClient() data = {'target_lang': target_lang, 'text': text, 'source_lang':...
[ "async", "def", "translate", "(", "target_lang", ":", "str", ",", "text", ":", "List", "[", "str", "]", "=", "Query", "(", "[", "]", ")", ",", "source_lang", ":", "Optional", "[", "str", "]", "=", "''", ",", "beam_size", ":", "Optional", "[", "int"...
Translates the text to the given target language.
[ "Translates", "the", "text", "to", "the", "given", "target", "language", "." ]
[ "\"\"\"\r\n Translates the text to the given target language.\r\n :param text: Text that should be translated\r\n :param target_lang: Target language\r\n :param source_lang: Language of text. Optional, if empty: Automatic language detection\r\n :param beam_size: Beam size. Optional\r\n :param perf...
[ { "param": "target_lang", "type": "str" }, { "param": "text", "type": "List[str]" }, { "param": "source_lang", "type": "Optional[str]" }, { "param": "beam_size", "type": "Optional[int]" }, { "param": "perform_sentence_splitting", "type": "Optional[bool]" } ]
{ "returns": [ { "docstring": "Returns a json with the translated text", "docstring_tokens": [ "Returns", "a", "json", "with", "the", "translated", "text" ], "type": null } ], "raises": [], "params": [ { "identifie...
cf52e356567e6f995d7ea7b9fde22134bde00e5c
lbp0200/EasyNMT
docker/api/src/main.py
[ "Apache-2.0" ]
Python
lang_pairs
<not_specific>
async def lang_pairs(): """ Returns the language pairs from the model :return: """ return model.lang_pairs
Returns the language pairs from the model :return:
Returns the language pairs from the model
[ "Returns", "the", "language", "pairs", "from", "the", "model" ]
async def lang_pairs(): return model.lang_pairs
[ "async", "def", "lang_pairs", "(", ")", ":", "return", "model", ".", "lang_pairs" ]
Returns the language pairs from the model
[ "Returns", "the", "language", "pairs", "from", "the", "model" ]
[ "\"\"\"\r\n Returns the language pairs from the model\r\n :return:\r\n \"\"\"" ]
[]
{ "returns": [ { "docstring": null, "docstring_tokens": [ "None" ], "type": null } ], "raises": [], "params": [], "outlier_params": [], "others": [] }
cf52e356567e6f995d7ea7b9fde22134bde00e5c
lbp0200/EasyNMT
docker/api/src/main.py
[ "Apache-2.0" ]
Python
language_detection
<not_specific>
async def language_detection(text: str): """ Detects the language for the provided text :param text: A single text for which we want to know the language :return: The detected language """ return model.language_detection(text)
Detects the language for the provided text :param text: A single text for which we want to know the language :return: The detected language
Detects the language for the provided text
[ "Detects", "the", "language", "for", "the", "provided", "text" ]
async def language_detection(text: str): return model.language_detection(text)
[ "async", "def", "language_detection", "(", "text", ":", "str", ")", ":", "return", "model", ".", "language_detection", "(", "text", ")" ]
Detects the language for the provided text
[ "Detects", "the", "language", "for", "the", "provided", "text" ]
[ "\"\"\"\r\n Detects the language for the provided text\r\n :param text: A single text for which we want to know the language\r\n :return: The detected language\r\n \"\"\"" ]
[ { "param": "text", "type": "str" } ]
{ "returns": [ { "docstring": "The detected language", "docstring_tokens": [ "The", "detected", "language" ], "type": null } ], "raises": [], "params": [ { "identifier": "text", "type": "str", "docstring": "A single text for which we ...
cf52e356567e6f995d7ea7b9fde22134bde00e5c
lbp0200/EasyNMT
docker/api/src/main.py
[ "Apache-2.0" ]
Python
model_name
<not_specific>
async def model_name(): """ Returns the name of the loaded model :return: EasyNMT model name """ return model._model_name
Returns the name of the loaded model :return: EasyNMT model name
Returns the name of the loaded model
[ "Returns", "the", "name", "of", "the", "loaded", "model" ]
async def model_name(): return model._model_name
[ "async", "def", "model_name", "(", ")", ":", "return", "model", ".", "_model_name" ]
Returns the name of the loaded model
[ "Returns", "the", "name", "of", "the", "loaded", "model" ]
[ "\"\"\"\r\n Returns the name of the loaded model\r\n :return: EasyNMT model name\r\n \"\"\"" ]
[]
{ "returns": [ { "docstring": "EasyNMT model name", "docstring_tokens": [ "EasyNMT", "model", "name" ], "type": null } ], "raises": [], "params": [], "outlier_params": [], "others": [] }
a2e8de548bc2750417d297d18c743ee5f0e8a644
MaayanLab/rclone-pathmap
rclone_pathmap.py
[ "Apache-2.0" ]
Python
_try_wait_for
<not_specific>
async def _try_wait_for(cond, args=tuple(), max_tries=3, backoff=1): ''' Try waiting for a condition, otherwise continue ''' while True: if await _await(cond(*args)): return True max_tries -= 1 if max_tries <= 0: return False await asyncio.sleep(backoff)
Try waiting for a condition, otherwise continue
Try waiting for a condition, otherwise continue
[ "Try", "waiting", "for", "a", "condition", "otherwise", "continue" ]
async def _try_wait_for(cond, args=tuple(), max_tries=3, backoff=1): while True: if await _await(cond(*args)): return True max_tries -= 1 if max_tries <= 0: return False await asyncio.sleep(backoff)
[ "async", "def", "_try_wait_for", "(", "cond", ",", "args", "=", "tuple", "(", ")", ",", "max_tries", "=", "3", ",", "backoff", "=", "1", ")", ":", "while", "True", ":", "if", "await", "_await", "(", "cond", "(", "*", "args", ")", ")", ":", "retur...
Try waiting for a condition, otherwise continue
[ "Try", "waiting", "for", "a", "condition", "otherwise", "continue" ]
[ "''' Try waiting for a condition, otherwise continue\n '''" ]
[ { "param": "cond", "type": null }, { "param": "args", "type": null }, { "param": "max_tries", "type": null }, { "param": "backoff", "type": null } ]
{ "returns": [], "raises": [], "params": [ { "identifier": "cond", "type": null, "docstring": null, "docstring_tokens": [], "default": null, "is_optional": null }, { "identifier": "args", "type": null, "docstring": null, "docstring_tokens": [...