<commit_before>// --------------------------------------------------
// Datetimepicker - Setup datetimepickers and format new
// selections for MySQL
// --------------------------------------------------
define(function (require) {
	
	// Dependencies
	var $ = require('jquery'),
		_ = require('underscore'),
		Backbone = require('backbone');

	// Define backbone view
	var DateTimePicker = Backbone.View.extend({
		
		// Constructor
		initialize: function() {
			_.bindAll(this);

			// Cache selectors
			this.$hidden_date = this.$('.date-field input[type="hidden"]');
			this.$hidden_time = this.$('.time-field input[type="hidden"]');
			this.$hidden = this.$('> :hidden').last();
			
			// Make UI look better
			this.move();

			// Events
			this.$hidden_date.add(this.$hidden_time).on('change', this.change);
		},
		
		// Move the time picker into the date picker controls
		move: function() {
			
			// Selectors
			var $controls = this.$('.date-field .controls')
				, $time = this.$('.time-field .input-append')
				, $time_control_group = $time.closest('.control-group')
				, $date_help = $controls.find('.help-block')
				, $time_help = $time_control_group.find('.help-block')
			;
			
			// Move it
			$controls.append($time);
			
			// Add spacing
			$time.css('margin-left', 5);
			
			// Move over help text
			if ($time_help.length && $date_help.length) $date_help.append($time_help.text());
			else if ($time_help.length) $controls.append($time_help);
			
			// Kill the useless control group
			$time_control_group.remove();<commit_msg>Missed a selector<commit_after>// --------------------------------------------------
// Datetimepicker - Setup datetimepickers and format new
// selections for MySQL
// --------------------------------------------------
define(function (require) {
	
	// Dependencies
	var $ = require('jquery'),
		_ = require('underscore'),
		Backbone = require('backbone');

	// Define backbone view
	var DateTimePicker = Backbone.View.extend({
		
		// Constructor
		initialize: function() {
			_.bindAll(this);

			// Cache selectors
			this.$hidden_date = this.$('.date-field input[type="hidden"]');
			this.$hidden_time = this.$('.time-field input[type="hidden"]');
			this.$hidden = this.$('> input[type="hidden"]').last();
			
			// Make UI look better
			this.move();

			// Events
			this.$hidden_date.add(this.$hidden_time).on('change', this.change);
		},
		
		// Move the time picker into the date picker controls
		move: function() {
			
			// Selectors
			var $controls = this.$('.date-field .controls')
				, $time = this.$('.time-field .input-append')
				, $time_control_group = $time.closest('.control-group')
				, $date_help = $controls.find('.help-block')
				, $time_help = $time_control_group.find('.help-block')
			;
			
			// Move it
			$controls.append($time);
			
			// Add spacing
			$time.css('margin-left', 5);
			
			// Move over help text
			if ($time_help.length && $date_help.length) $date_help.append($time_help.text());
			else if ($time_help.length) $controls.append($time_help);
			
			// Kill the useless control group
			$time_control_group.remove();
{'fraction_non_alphanumeric': 0.22592, 'fraction_numerical': 0.00064, 'mean_word_length': 2.45414364640884, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7641430', 'n_tokens_mistral': 1104, 'n_tokens_neox': 909, 'n_words': 195}