<commit_before>#!/usr/bin/env python
"""
Deploy builds to a Rancher orchestrated stack using rancher-compose
"""
import os

import drone
import subprocess


def main():
    """The main entrypoint for the plugin."""
    payload = drone.plugin.get_input()
    vargs = payload["vargs"]

    # Required fields should raise an error
    url, key, secret = vargs['url'], vargs['access_key'], vargs['secret_key']

    # Optional fields
    compose_file = vargs.get('compose_file', 'docker-compose.yml')
    stack = vargs.get('stack', vargs['repo']['name'])
    services = vargs.get('services', '')

    # Change directory
    deploy_path = payload["workspace"]["path"]
    os.chdir(deploy_path)<commit_msg>Fix bad dict lookup<commit_after>#!/usr/bin/env python
"""
Deploy builds to a Rancher orchestrated stack using rancher-compose
"""
import os

import drone
import subprocess


def main():
    """The main entrypoint for the plugin."""
    payload = drone.plugin.get_input()
    vargs = payload["vargs"]

    # Required fields should raise an error
    url, key, secret = vargs['url'], vargs['access_key'], vargs['secret_key']

    # Optional fields
    compose_file = vargs.get('compose_file', 'docker-compose.yml')
    stack = vargs.get('stack', payload['repo']['name'])
    services = vargs.get('services', '')

    # Change directory
    deploy_path = payload["workspace"]["path"]
    os.chdir(deploy_path)
{'fraction_non_alphanumeric': 0.14509246088193456, 'fraction_numerical': 0.0, 'mean_word_length': 4.135036496350365, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1249664', 'n_tokens_mistral': 449, 'n_tokens_neox': 429, 'n_words': 114}