<commit_before>angular.module('ui.select', ['ui.keypress']).directive('uiSelect', function($document,$timeout){
  return {
    restrict: 'E',
    /* jshint multistr: true */
    template:
    '<div class="select" ng-class="{open:open}"> \
      <button type="button" ng-click="activate()">{{$select.selected.title || \'Select Me \' }}</button> \
      <div class="ui-select-drop"> \
        <input class="ui-select-search" type="text" ui-keydown="{up: \'up()\', down: \'down()\', esc: \'close()\', enter: \'$select((data.items|filter: $select.search)[$select.index])\'}" ng-model="$select.search"> \
      </div> \
    </div>',
    replace: true,
    require: 'ngModel',
    transclude: true,
    scope: true,
    compile: function(tElement, tAttrs, transcludeFn) {
      return function($scope, $elm, $attrs, ngModel){
        transcludeFn($scope, function(clone) {

          var dropDiv = tElement.find('div.ui-select-drop');
          var choices = $("<ul/>").append(clone);
          dropDiv.append(choices);

          input = $elm.find('input');
          $scope.activate = function(){
            $scope.open = true;
            //Give it time to appear before focus
            $timeout(function(){
              input.focus();
            });
          };<commit_msg>Add <ul> for choices on template<commit_after>angular.module('ui.select', ['ui.keypress']).directive('uiSelect', function($document,$timeout){
  return {
    restrict: 'E',
    /* jshint multistr: true */
    template:
    '<div class="select" ng-class="{open:open}"> \
      <button type="button" ng-click="activate()">{{$select.selected.title || \'Select Me \' }}</button> \
      <div class="ui-select-drop"> \
        <input class="ui-select-search" type="text" ui-keydown="{up: \'up()\', down: \'down()\', esc: \'close()\', enter: \'$select((data.items|filter: $select.search)[$select.index])\'}" ng-model="$select.search"> \
        <ul class="ui-select-choices" /> \
      </div> \
    </div>',
    replace: true,
    require: 'ngModel',
    transclude: true,
    scope: true,
    compile: function(tElement, tAttrs, transcludeFn) {
      return function($scope, $elm, $attrs, ngModel){
        transcludeFn($scope, function(clone) {

          var dropDiv = tElement.find('div.ui-select-drop');
          var choices = tElement.find('ul.ui-select-choices').append(clone);
          dropDiv.append(choices);

          input = $elm.find('input');
          $scope.activate = function(){
            $scope.open = true;
            //Give it time to appear before focus
            $timeout(function(){
              input.focus();
            });
          };
{'fraction_non_alphanumeric': 0.1963677639046538, 'fraction_numerical': 0.0, 'mean_word_length': 2.626886145404664, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 20, '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': '7339842', 'n_tokens_mistral': 824, 'n_tokens_neox': 807, 'n_words': 161}