<commit_before>function orbitInit(ns) {
  // Bind Orbit object for later use
  $('#weather_orbit').on('orbit:ready', function (evt, orbit) {
    // May lead to memory leak!
    ns['weatherOrbit'] = orbit
  })

  $(document).foundation('orbit', {
    animation: 'fade',
    timer_speed: 2500,
    pause_on_hover: true,
    resume_on_mouseout: true,
    animation_speed: 500,
    stack_on_small: false,
    navigation_arrows: true,
    slide_number: true,
    bullets: false,
    timer: true,
    variable_height: false,
    before_slide_change: function(){},
    after_slide_change: function(){}
  })
}

function sectionInit() {
  $(document).foundation('section', {
    one_up: false
  })
}

function chosenInit() {
  $('select').show().chosen({
    placeholder_text_single: "其他地区",
    no_results_text: "没有该地区数据……"
  })
}

function AppCtrl($scope) {
  $scope.cityInfo = NS.cityInfo
  $scope.views = []

  $scope.cityOption = ''

  $scope.citySelect = function (evt, code) {
    var oldEl = $('#weather_orbit li:first')[0]

    $('.accordion section.active').removeClass('active')
    $('#weather_orbit').hide()

    if (code !== undefined) {
      $scope.cityOption = ''
      $('#city_' + code).addClass('active')
    } else {
      code = $scope.cityOption
    }

    updateViews(code)

    // Hide orbit until new nodes rendered
    var interval = setInterval(function () {
      if ($('#weather_orbit li:first')[0] != oldEl) {
        $('#weather_orbit').show()
        NS.weatherOrbit._goto(0, true)
        clearInterval(interval)
      }
    }, 300)

    evt.preventDefault()
  }

  var updateViews = function (code) {
    var datetime = moment.utc()
    var frames = 12

    datetime.subtract('minutes', 10 * (frames + 1))

    var dateFmt1 = datetime.format('YYYY/MM/DD')
    var dateFmt2 = datetime.format('YYYYMMDD')
    var srcPrefix = '/mocimg/radar/image/' + code + '/QREF/' + dateFmt1 + '/' + code + '.QREF000.' + dateFmt2 + '.'

    datetime.minutes(Math.floor(datetime.minutes() / 10) * 10)
    datetime.seconds(0)

    $scope.views = []
    for (var i = 0; i < frames; i++) {
      $scope.views.push({
        src: srcPrefix + datetime.format('HHmmss') + '.GIF',
        text: 'UTC ' + datetime.format('YYYY-MM-DD HH:mm:ss')
      })
      datetime.add('minutes', 10)
    }
  }
}

NS = {
  weatherOrbit: null,<commit_msg>更新信息图片时间间隔<commit_after>function orbitInit(ns) {
  // Bind Orbit object for later use
  $('#weather_orbit').on('orbit:ready', function (evt, orbit) {
    // May lead to memory leak!
    ns['weatherOrbit'] = orbit
  })

  $(document).foundation('orbit', {
    animation: 'fade',
    timer_speed: 2500,
    pause_on_hover: true,
    resume_on_mouseout: true,
    animation_speed: 500,
    stack_on_small: false,
    navigation_arrows: true,
    slide_number: true,
    bullets: false,
    timer: true,
    variable_height: false,
    before_slide_change: function(){},
    after_slide_change: function(){}
  })
}

function sectionInit() {
  $(document).foundation('section', {
    one_up: false
  })
}

function chosenInit() {
  $('select').show().chosen({
    placeholder_text_single: "其他地区",
    no_results_text: "没有该地区数据……"
  })
}

function AppCtrl($scope) {
  $scope.cityInfo = NS.cityInfo
  $scope.views = []

  $scope.cityOption = ''

  $scope.citySelect = function (evt, code) {
    var oldEl = $('#weather_orbit li:first')[0]

    $('.accordion section.active').removeClass('active')
    $('#weather_orbit').hide()

    if (code !== undefined) {
      $scope.cityOption = ''
      $('#city_' + code).addClass('active')
    } else {
      code = $scope.cityOption
    }

    updateViews(code)

    // Hide orbit until new nodes rendered
    var interval = setInterval(function () {
      if ($('#weather_orbit li:first')[0] != oldEl) {
        $('#weather_orbit').show()
        NS.weatherOrbit._goto(0, true)
        clearInterval(interval)
      }
    }, 300)

    evt.preventDefault()
  }

  var updateViews = function (code) {
    var datetime = moment.utc()
    var frames = 12
    var interval = 5

    datetime.subtract('minutes', interval * (frames + 1))

    var dateFmt1 = datetime.format('YYYY/MM/DD')
    var dateFmt2 = datetime.format('YYYYMMDD')
    var srcPrefix = '/mocimg/radar/image/' + code + '/QREF/' + dateFmt1 + '/' + code + '.QREF000.' + dateFmt2 + '.'

    datetime.minutes(Math.floor(datetime.minutes() / interval) * interval)
    datetime.seconds(0)

    $scope.views = []
    for (var i = 0; i < frames; i++) {
      $scope.views.push({
        src: srcPrefix + datetime.format('HHmmss') + '.GIF',
        text: 'UTC ' + datetime.format('YYYY-MM-DD HH:mm:ss')
      })
      datetime.add('minutes', interval)
    }
  }
}

NS = {
  weatherOrbit: null,
{'fraction_non_alphanumeric': 0.16539601863617112, 'fraction_numerical': 0.012494705633206269, 'mean_word_length': 2.9523012552301253, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1012107', 'n_tokens_mistral': 1693, 'n_tokens_neox': 1607, 'n_words': 320}