<commit_before>(function (angular) {
  "use strict";

  var app = angular.module('myApp.Mitglieder', ['firebase', 'firebase.utils', 'firebase.auth', 'ngRoute']);

  app.controller('MitgliederCtrl', ['$scope', 'fbutil', '$firebase','$firebaseObject', '$firebaseArray',
    function($scope, fbutil, $firebase, $firebaseObject, $firebaseArray) {
      //var users = $firebaseArray(fbutil.ref('users'));
      var obj = $firebaseObject(fbutil.ref('users'));

      // to take an action after the data loads, use the $loaded() promise
      obj.$loaded().then(function() {
        console.log("loaded record:", obj.$id, obj.user, obj.name);

        // To iterate the key/value pairs of the object, use angular.forEach()
        angular.forEach(obj, function(value, key) {
          console.log(key, value);
        });
      });

      $scope.users = [
        {
          name: 'User1',
          uid: 'asdf'
        },
        {
          name: 'User2',
          uid: 'yxcv'
        }
      ];

      $scope.gotoUser = function(id){

      }
    }
  ]);

  app.config(['$routeProvider', function($routeProvider) {
    // require user to be authenticated before they can access this page
    // this is handled by the .whenAuthenticated method declared in
    // components/router/router.js


    //$routeProvider.whenAuthenticated('/Mitglieder', {
    $routeProvider.when('/Mitglieder', {
      templateUrl: 'Mitglieder/Mitglieder.html',
      controller: 'MitgliederCtrl'
    })
  }]);

})(angular);<commit_msg>no message<commit_after>(function (angular) {
  "use strict";

  var app = angular.module('myApp.Mitglieder', ['firebase', 'firebase.utils', 'firebase.auth', 'ngRoute']);

  app.controller('MitgliederCtrl', ['$scope', 'fbutil', '$firebase','$firebaseObject', '$firebaseArray',
    function($scope, fbutil, $firebase, $firebaseObject, $firebaseArray) {
      //var users = $firebaseArray(fbutil.ref('users'));
      $scope.users = {};
      var obj = $firebaseObject(fbutil.ref('users'));

      // to take an action after the data loads, use the $loaded() promise
      obj.$loaded().then(function() {

        // To iterate the key/value pairs of the object, use angular.forEach()
        angular.forEach(obj, function(value, key) {
          console.log(key, value);
          $scope.users.push(value);
        });
      });



      $scope.gotoUser = function(id){

      }
    }
  ]);

  app.config(['$routeProvider', function($routeProvider) {
    // require user to be authenticated before they can access this page
    // this is handled by the .whenAuthenticated method declared in
    // components/router/router.js


    //$routeProvider.whenAuthenticated('/Mitglieder', {
    $routeProvider.when('/Mitglieder', {
      templateUrl: 'Mitglieder/Mitglieder.html',
      controller: 'MitgliederCtrl'
    })
  }]);

})(angular);
{'fraction_non_alphanumeric': 0.15987350667603653, 'fraction_numerical': 0.0007027406886858749, 'mean_word_length': 2.9214876033057853, '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': '1655709', 'n_tokens_mistral': 885, 'n_tokens_neox': 849, 'n_words': 190}