<commit_before>use std::env;
use hyper::Client;
use hubcaps::{Github, ReleaseOptions};
use error::Error;
use super::USERAGENT;

pub fn release(tag_name: &str, tag_message: &str) -> Result<(), Error> {
    let token = try!(env::var("GITHUB_TOKEN"));

    let client = Client::new();
    let github = Github::new(USERAGENT, &client, Some(token));

    let user = "badboy";
    let repo = "test-project";
    let branch = "master"; // TODO: Extract from environment, might be != master

    let opts = ReleaseOptions::builder(tag_name)
        .name(tag_name)
        .body(tag_message)
        .commitish(branch)
        .draft(false)
        .prerelease(false)
        .build();

    let repo = github.repo(user, repo);
    let release = repo.releases();
<commit_msg>style: Make sure it doesn't try the wrong repository<commit_after>use std::env;
use hyper::Client;
use hubcaps::{Github, ReleaseOptions};
use error::Error;
use super::USERAGENT;

pub fn release(tag_name: &str, tag_message: &str) -> Result<(), Error> {
    let token = try!(env::var("GITHUB_TOKEN"));

    let client = Client::new();
    let github = Github::new(USERAGENT, &client, Some(token));

    // TODO: Get user and repo
    let user = "";
    let repo = "";
    let branch = "master"; // TODO: Extract from environment, might be != master

    let opts = ReleaseOptions::builder(tag_name)
        .name(tag_name)
        .body(tag_message)
        .commitish(branch)
        .draft(false)
        .prerelease(false)
        .build();

    let repo = github.repo(user, repo);
    let release = repo.releases();

{'fraction_non_alphanumeric': 0.15151515151515152, 'fraction_numerical': 0.0, 'mean_word_length': 3.260752688172043, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5032305', 'n_tokens_mistral': 512, 'n_tokens_neox': 494, 'n_words': 135}