<commit_before>'use strict';

/**
 * @ngdoc function
 * @name clientApp.controller:MainCtrl
 * @description
 * # MainCtrl
 * Controller of the clientApp
 */
angular.module('clientApp')
  .controller('MainCtrl', function ($scope, $http) {
    $scope.awesomeThings = [
      'HTML5 Boilerplate',
      'AngularJS',
      'Karma'
    ];
      $scope.post = function() {
  	return $http.post('http://tranquil-tundra-3993.herokuapp.com/supapi/stuff',
  					  {msg: "something"}).then(function(response){
    	console.log(response);
    	alert(response.data.name);
    });

  	// $http.get('localhost:3000/').
	  // success(function(data, status, headers, config) {
	  //   // this callback will be called asynchronously
	  //   // when the response is available
	  //   alert(data + "\n" + status + "\n" + headers + "\n" + config);
	  // }).
	  // error(function(data, status, headers, config) {
	  //   // called asynchronously if an error occurs
	  //   // or server returns response with an error status.
	  //   alert(data + "\n" + status + "\n" + headers + "\n" + config);<commit_msg>Revert "Amend test post params"<commit_after>'use strict';

/**
 * @ngdoc function
 * @name clientApp.controller:MainCtrl
 * @description
 * # MainCtrl
 * Controller of the clientApp
 */
angular.module('clientApp')
  .controller('MainCtrl', function ($scope, $http) {
    $scope.awesomeThings = [
      'HTML5 Boilerplate',
      'AngularJS',
      'Karma'
    ];
      $scope.post = function() {
  	return $http.post('http://tranquil-tundra-3993.herokuapp.com/supapi/stuff', {
      params: {
        msg: "something"
      }
    }).then(function(response){
    	console.log(response);
    	alert(response.data.name);
    });

  	// $http.get('localhost:3000/').
	  // success(function(data, status, headers, config) {
	  //   // this callback will be called asynchronously
	  //   // when the response is available
	  //   alert(data + "\n" + status + "\n" + headers + "\n" + config);
	  // }).
	  // error(function(data, status, headers, config) {
	  //   // called asynchronously if an error occurs
	  //   // or server returns response with an error status.
	  //   alert(data + "\n" + status + "\n" + headers + "\n" + config);
{'fraction_non_alphanumeric': 0.17095173658096527, 'fraction_numerical': 0.008119079837618403, 'mean_word_length': 2.6661157024793387, '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': '1661623', 'n_tokens_mistral': 746, 'n_tokens_neox': 700, 'n_words': 161}