<commit_before>---

---
var repo = github.getRepo('{{ site.githubuser }}', 'fc-review');
var token = $.cookie('token') ? '&access_token=' + $.cookie('token') : ""

var messages = []
var tables = {}
var edit = false
var segments = [];
$('#undo-changes').click(function(){
	$("div.panel").remove()
})

$('.form-control').change(function(){
	var newValue = $(this).val()
	console.log(newValue)
	var formId = $(this).attr('id')
	$('.change').data('value')[formId] = parseInt(newValue) ? parseInt(newValue) : newValue
	$('.' + formId).text(newValue)


})

$('#submit-issue').click(function(){
	// alert('Your changes have been submitted!')
	
		// d3.json("{{ site.baseurl}}/data/" + $.cookie(team.name) + '.geojson', function(error, json) {
		//   if (error) return console.warn(error);
		//   data = json;
		//   console.log(data)
		//   // visualizeit();
		// });
	var newFeature = $('.change').data('value')

	$.each(raw.features, function(i, feature){
		if (feature.properties.RCLINK == newFeature.RCLINK && feature.properties.END_MEASUR == newFeature.END_MEASUR && feature.properties.BEG_MEASUR == newFeature.BEG_MEASUR ){
			console.log(feature.properties)
			feature.properties = newFeature
			// feature.properties.FC_NEW = 5
			// feature.properties.NAME = "<NAME>"
			// feature.properties.DESC = "This is a road."
			// feature.properties.FROM = "Courtland Ave"
			// feature.properties.TO = "Peachtree St"
			// Check if repo exists for logged-in user
			console.log(feature)
			console.log(i)
		}
	})
	

	var userRepo = github.getRepo($.cookie('user').login, 'fc-review')
	userRepo.show(function(err, data){
		console.log(err)
		var username = $.cookie('user').login
		var patchNum = 1
		var segment = $('#WHOLE-SEG').is(':checked') ? $('#FROM').val() + 
					'\n#### To\n' + 
					$('#TO').val() +
					'\n#### County\n' : '#### Entire segment'
		var base = 'gh-pages'
		var title = $('#NAME').val()
		var body = 'Changing ' + newFeature.RCLINK + ' from ' + newFeature.F_SYSTEM + ' to ' + newFeature.F_SYSTEM + '.\n' +
					'### Description\n' + 
					$('#DESC').val() + 
					'\n### Justification\n' + <commit_msg>added stroke color change<commit_after>---

---
var repo = github.getRepo('{{ site.githubuser }}', 'fc-review');
var token = $.cookie('token') ? '&access_token=' + $.cookie('token') : ""

var messages = []
var tables = {}
var edit = false
var segments = [];
$('#undo-changes').click(function(){
	$("div.panel").remove()
})

$('.form-control').change(function(){
	var newValue = $(this).val()
	console.log(newValue)
	var formId = $(this).attr('id')
	$('.change').data('value')[formId] = parseInt(newValue) ? parseInt(newValue) : newValue
	$('.' + formId).text(newValue)


})

$('#submit-issue').click(function(){
	// alert('Your changes have been submitted!')
	
		// d3.json("{{ site.baseurl}}/data/" + $.cookie(team.name) + '.geojson', function(error, json) {
		//   if (error) return console.warn(error);
		//   data = json;
		//   console.log(data)
		//   // visualizeit();
		// });
	var newFeature = $('.change').data('value')

	$.each(raw.features, function(i, feature){
		if (feature.properties.RCLINK == newFeature.RCLINK && feature.properties.END_MEASUR == newFeature.END_MEASUR && feature.properties.BEG_MEASUR == newFeature.BEG_MEASUR ){
			console.log(feature.properties)
			feature.properties = newFeature
			feature.properties.stroke = "#00ff00"
			// feature.properties.FC_NEW = 5
			// feature.properties.NAME = "<NAME>"
			// feature.properties.DESC = "This is a road."
			// feature.properties.FROM = "Courtland Ave"
			// feature.properties.TO = "Peachtree St"
			// Check if repo exists for logged-in user
			console.log(feature)
			console.log(i)
		}
	})
	

	var userRepo = github.getRepo($.cookie('user').login, 'fc-review')
	userRepo.show(function(err, data){
		console.log(err)
		var username = $.cookie('user').login
		var patchNum = 1
		var segment = $('#WHOLE-SEG').is(':checked') ? $('#FROM').val() + 
					'\n#### To\n' + 
					$('#TO').val() +
					'\n#### County\n' : '#### Entire segment'
		var base = 'gh-pages'
		var title = $('#NAME').val()
		var body = 'Changing ' + newFeature.RCLINK + ' from ' + newFeature.F_SYSTEM + ' to ' + newFeature.FC_NEW + '.\n' +
					'### Description\n' + 
					$('#DESC').val() + 
					'\n### Justification\n' + 
{'fraction_non_alphanumeric': 0.21958595022098162, 'fraction_numerical': 0.0023261223540358223, 'mean_word_length': 3.497907949790795, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4078834', 'n_tokens_mistral': 1608, 'n_tokens_neox': 1477, 'n_words': 281}