<commit_before><!DOCTYPE html>
	<html xmlns="http://www.w3.org/1999/xhtml">
		<head>        					
			<script src="bower_components/vss-web-extension-sdk/lib/VSS.SDK.min.js"></script>      
			<script type="text/javascript">
				VSS.init({                        
					explicitNotifyLoaded: true,
					usePlatformStyles: true
				});
               
				VSS.require("TFS/Dashboards/WidgetHelpers", function (WidgetHelpers) {
					VSS.register("HelloWorldWidget.Configuration", function () {   
						var $queryDropdown = $("#query-path-dropdown");
						
						return {
							load: function (widgetSettings, widgetConfigurationContext) {
								var settings = JSON.parse(widgetSettings.customSettings.data);
								if (settings && settings.queryPath) {
									 $queryDropdown.val(settings.queryPath);
								 }

								 $queryDropdown.on("change", function () {
									 var customSettings = {
										data: JSON.stringify({
												queryPath: $queryDropdown.val()
											})
									};
									 var eventName = WidgetHelpers.WidgetEvent.ConfigurationChange;
									 var eventArgs = WidgetHelpers.WidgetEvent.Args(customSettings);
									 widgetConfigurationContext.notify(eventName, eventArgs);

								 });
 		
								return WidgetHelpers.WidgetStatusHelper.Success();
							},
							onSave: function() {
								var customSettings = {
									data: JSON.stringify({
											queryPath: $queryDropdown.val()
										})
								};
								return WidgetHelpers.WidgetConfigurationSave.Valid(customSettings);
							}
						}
					});
					VSS.notifyLoadSucceeded();
				});
			</script>  		
		</head>
		<body>
			<div class="container">
				<fieldset>
					<label class="label">Query: </label>
					<select id="query-path-dropdown" style="margin-top:10px">
						<option value="" selected disabled hidden>Please select a query</option>
						<option value="Shared Queries/Feedback">Shared Queries/Feedback</option>
						<option value="Shared Queries/My Bugs">Shared Queries/My Bugs</option>
						<option value="Shared Queries/My Tasks">Shared Queries/My Tasks</option>											
					</select>
				</fieldset>		
			</div>
		</body>
	</html><commit_msg>Ensuring default value for widget configuration<commit_after><!DOCTYPE html>
	<html xmlns="http://www.w3.org/1999/xhtml">
		<head>        					
			<script src="bower_components/vss-web-extension-sdk/lib/VSS.SDK.min.js"></script>      
			<script type="text/javascript">
				VSS.init({                        
					explicitNotifyLoaded: true,
					usePlatformStyles: true
				});
               
				VSS.require("TFS/Dashboards/WidgetHelpers", function (WidgetHelpers) {
					VSS.register("HelloWorldWidget.Configuration", function () {   
						var $queryDropdown = $("#query-path-dropdown");
						
						return {
							load: function (widgetSettings, widgetConfigurationContext) {
								var settings = JSON.parse(widgetSettings.customSettings.data);
								if (settings && settings.queryPath) {
									 $queryDropdown.val(settings.queryPath);
								 }

								 $queryDropdown.on("change", function () {
									 var customSettings = {
										data: JSON.stringify({
												queryPath: $queryDropdown.val()
											})
									};
									 var eventName = WidgetHelpers.WidgetEvent.ConfigurationChange;
									 var eventArgs = WidgetHelpers.WidgetEvent.Args(customSettings);
									 widgetConfigurationContext.notify(eventName, eventArgs);

								 });
 		
								return WidgetHelpers.WidgetStatusHelper.Success();
							},
							onSave: function() {
								var customSettings = {
									data: JSON.stringify({
											queryPath: $queryDropdown.val()
										})
								};
								return WidgetHelpers.WidgetConfigurationSave.Valid(customSettings);
							}
						}
					});
					VSS.notifyLoadSucceeded();
				});
			</script>  		
		</head>
		<body>
			<div class="container">
				<fieldset>
					<label class="label">Query: </label>
					<select id="query-path-dropdown" style="margin-top:10px">						
						<option value="Shared Queries/Feedback">Shared Queries/Feedback</option>
						<option value="Shared Queries/My Bugs">Shared Queries/My Bugs</option>
						<option value="Shared Queries/My Tasks">Shared Queries/My Tasks</option>											
					</select>
				</fieldset>		
			</div>
		</body>
	</html>
{'fraction_non_alphanumeric': 0.12831756288945304, 'fraction_numerical': 0.0032310177705977385, 'mean_word_length': 2.3518948182521267, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '1432672', 'n_tokens_mistral': 1855, 'n_tokens_neox': 1214, 'n_words': 204}