<commit_before>import {Component, OnInit} from '@angular/core';
import {Http, URLSearchParams} from '@angular/http';
@Component({
  selector: 'app-sidebar',
  templateUrl: './sidebar.component.html',
  styleUrls: ['./sidebar.component.scss']
})
export class SidebarComponent implements OnInit {

  public links = [
    {
      title: 'FAST Contact Info',
      link: 'https://www.sheridancollege.ca/academics/faculties/applied-science-and-technology.aspx'
    },
    {
      title: 'Upcoming Events',
      link: 'https://www.sheridancollege.ca/news-and-events/events.aspx',
      badge: 5
    }
  ];

  constructor(private http: Http) {
  }

  ngOnInit() {
  }

  register() {
    const MLHapi = new URL('https://my.mlh.io/oauth/authorize');
    const redirect_uri = new URL('http://localhost:4200/oauth/callback');
    const params = new URLSearchParams();
    params.append('client_id', '98c90e6fe51d6aa3465723c8f719a78499316c339e135a6a8b39a210b8bf8dc1');
    params.append('redirect_uri', redirect_uri.href);
    params.append('response_type', 'token');
    window.location.href = `${MLHapi.href}?${params}`;
  }
}<commit_msg>Make Login Redirect Uri dynamic for prod and dev environments<commit_after>import {Component, OnInit} from '@angular/core';
import {Http, URLSearchParams} from '@angular/http';
@Component({
  selector: 'app-sidebar',
  templateUrl: './sidebar.component.html',
  styleUrls: ['./sidebar.component.scss']
})
export class SidebarComponent implements OnInit {

  public links = [
    {
      title: 'FAST Contact Info',
      link: 'https://www.sheridancollege.ca/academics/faculties/applied-science-and-technology.aspx'
    },
    {
      title: 'Upcoming Events',
      link: 'https://www.sheridancollege.ca/news-and-events/events.aspx',
      badge: 5
    }
  ];

  constructor(private http: Http) {
  }

  ngOnInit() {
  }

  register() {
    const MLHapi = new URL('https://my.mlh.io/oauth/authorize');
    const redirect_uri = new URL(`${location.hostname}oauth/callback`);
    const params = new URLSearchParams();
    params.append('client_id', '98c90e6fe51d6aa3465723c8f719a78499316c339e135a6a8b39a210b8bf8dc1');
    params.append('redirect_uri', redirect_uri.href);
    params.append('response_type', 'token');
    window.location.href = `${MLHapi.href}?${params}`;
  }
}
{'fraction_non_alphanumeric': 0.1530789245446661, 'fraction_numerical': 0.0398959236773634, 'mean_word_length': 3.9506437768240343, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 4, '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': '964688', 'n_tokens_mistral': 848, 'n_tokens_neox': 793, 'n_words': 133}