<commit_before><html lang="en">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0">
		<meta name="format-detection" content="telephone=no">
		<meta name="theme-color" content="#E8E8E9">
		<meta name="description" content="r/CompetitiveOverwatch Rank Verification">
	
		<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='flairs.css') }}?version=1.10">
		<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='reset.css') }}?version=1.1">
		<link rel="stylesheet" type="text/css" href=".{{ url_for('static', filename='redditflair.css') }}?version=2.9">
		
		{% if not session.get('redditname') %}
			<meta http-equiv="refresh" content="0;url={{redditLink}}" />
		{% endif %}
		{% if session.get('updated') %}
			<meta http-equiv="refresh" content="2;url=https://competitiveoverwatch.reddit.com" />
		{% endif %}
	</head>
	<script>
		var nowsetting=1
		function setFlair(ev, id) {
			if (nowsetting == 1) {
				parent.document.getElementById('flair1').className = ev.target.firstChild.className;
				parent.document.getElementById('flair1').classList.remove("flair-small");
				parent.document.getElementById('flair1_id').value = id;
				parent.document.getElementById('flair1_text').innerHTML = ev.target.innerText;
				setSetting(2);
			} else {
				parent.document.getElementById('flair2').className = ev.target.firstChild.className;
				parent.document.getElementById('flair2').classList.remove("flair-small");
				parent.document.getElementById('flair2_id').value = id;
				parent.document.getElementById('flair2_text').innerHTML = ev.target.innerText;
				setSetting(1);
			}
		}
		
		function setSetting(num) {
			nowsetting=num;
			if (nowsetting == 1) {
				parent.document.getElementById('flairpicker2').classList.remove("flairpicker-active");
				parent.document.getElementById('flairpicker1').classList.add("flairpicker-active");
			} else {
				parent.document.getElementById('flairpicker1').classList.remove("flairpicker-active");
				parent.document.getElementById('flairpicker2').classList.add("flairpicker-active");
			}
		}
		
		function removeFlair(num) {
			if (num == 1) {
				parent.document.getElementById('flair1').className = "flair";
				parent.document.getElementById('flair1_id').value = "";
				parent.document.getElementById('flair1_text').innerHTML = "";
			} else {
				parent.document.getElementById('flair2').className = "flair";
				parent.document.getElementById('flair2_id').value = "";
				parent.document.getElementById('flair2_text').innerHTML = "";
			}
		}
		
		function resetFlairs() {
			setSetting(1);
			removeFlair(1);
			removeFlair(2);
		}
	</script>
	<body>
		{% if session.get('redditname') %}
			{% if session.get('updated') %}
				<header role="banner">
					<h2>Your flair was updated, you will be redirected to <a href="https://competitiveoverwatch.reddit.com">r/CompetitiveOverwatch</a> in a few seconds.</h2>
				</header>
			{% else %}
				{% set categories = flairdata['categories'] %}
				{% set ranks = flairdata['ranks'] %}
				{% set flairs = flairdata['flairs'] %}
				<header role="banner">
					<h2>Hey, u/{{session.get('redditname')}}! Choose your <a href="https://competitiveoverwatch.reddit.com">r/CompetitiveOverwatch</a> flairs.</h2>
				</header>
				<!-- Flair Selectors -->
				<form action="/redditflair/updateflair" method="get">
					<div class="container container-top">	
						<div class="flex-container">
							<span class="flairpicker-label">Primary Flair</span>
							<span class="flairpicker-label">Secondary Flair</span>
						</div>
						<div class="flex-container">
							<div id="flairpicker1" class="flairpicker flairpicker-left flairpicker-active" onclick="setSetting(1)" oncontextmenu="removeFlair(1);return false;">
							{% if user.flair1 %}
								{% set flair = flairs[user.flair1] %}
								<div id="flair1" class="flair flair-s{{flair['sheet']}}-c{{flair['col']}}-r{{flair['row']}}"></div>
								<input type="hidden" name="flair1_id" id="flair1_id" value="{{user.flair1}}">
								<span id="flair1_text" class="flairpicker-text">{{flair['name']}}</span>
							{% else %}
								<div id="flair1" class="flair"></div>
								<input type="hidden" name="flair1_id" id="flair1_id">
								<span id="flair1_text" class="flairpicker-text"></span>
							{% endif %}
							</div>
							
							<div id="flairpicker2" class="flairpicker" onclick="setSetting(2)" oncontextmenu="removeFlair(2);return false;">
							{% if user.flair2 %}
								{% set flair = flairs[user.flair2] %}
								<div id="flair2" class="flair flair-s{{flair['sheet']}}-c{{flair['col']}}-r{{flair['row']}}"></div>
								<input type="hidden" name="flair2_id" id="flair2_id" value="{{user.flair2}}">
								<span id="flair2_text" class="flairpicker-text">{{flair['name']}}</span>
							{% else %}
								<div id="flair2" class="flair"></div>
								<input type="hidden" name="flair2_id" id="flair2_id">
								<span id="flair2_text" class="flairpicker-text"></span>
							{% endif %}
							</div>
						</div>
						<div class="flex-container">
							<input class="custom-flair-text" type="text" name="customflairtext" placeholder="Custom Flair Text" value="{{user.flairtext}}" pattern="[a-zA-Z0-9_- ]{0,60}">
							<input class="update-flair-button" type="submit" value="Update Flair">
							<input class="reset-flair-button" type="button" onClick="resetFlairs()" value="&#10060">
						</div>
					</div>
				
					<!-- Special category -->
					{% if user and specials %}
						<div class="container">	
							<div class="category-label">Special Flairs</div>
							<div class="flex-container-flairs">
							{% for special in specials %}
									{% set flair = flairs[special.specialid] %}
									<div class="flair-item" onclick="setFlair(event, '{{special.specialid}}')"><div class="flair flair-small flair-s{{flair['sheet']}}-c{{flair['col']}}-r{{flair['row']}}"></div>{{flair['name']}} - {{special.text}}</div>
							{% endfor %}
							</div>
						</div>
					{% endif %}	
					
					<!-- Rank category -->
					{% set rankNum = 0 %}
					{% if user %}
						{% set rankNum = user.rank %}
					{% endif %}	
					<div class="container">	
						<div class="category-label">Rank Flairs</div>
							<div class="flex-container-flairs">
							{% for item in ranks['items'] %}
								{% set flair = flairs[item] %}
								{% if loop.index <= rankNum %}
									<div class="flair-item" onclick="setFlair(event, '{{item}}')"><div class="flair flair-small flair-s{{flair['sheet']}}-c{{flair['col']}}-r{{flair['row']}}"></div>{{flair['name']}}</div>
								{% endif %}
							{% endfor %}
							</div>
							<div class="flex-container-verification">
								<div class="flair-verification-button" onClick="location.href = '/redditflair/rankverification'">Verify your rank</div>
								{% if rankNum > 0 %}
									<div class="sr-checkbox">
										<input class="checkbox" type="checkbox" value="1" name="displaysr" id="displaysr" checked>
										<label for="displaysr">Display my SR: {{user.sr}}</label>
									</div>
								{% endif %}
								
							</div>
						</div>
					</div>

					<!-- Categories -->
					{% for category in categories %}
						<div class="container">	
							<div class="category-label">{{category['title']}}</div>
							<div class="flex-container-flairs">
							{% for item in category['items'] %}
								{% set flair = flairs[item] %}
								<div class="flair-item" onclick="setFlair(event, '{{item}}')"><div class="flair flair-small flair-s{{flair['sheet']}}-c{{flair['col']}}-r{{flair['row']}}"></div>{{flair['name']}}</div>
							{% endfor %}
							</div>
						</div>
					{% endfor %}
				</form>
			{% endif %}		
		{% endif %}		
	</body>
</html><commit_msg>redditflair template update<commit_after><html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0">
        <meta name="format-detection" content="telephone=no">
        <meta name="theme-color" content="#E8E8E9">
        <meta name="description" content="r/CompetitiveOverwatch Rank Verification">
    
        <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='flairs.css') }}?version=1.10">
        <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='reset.css') }}?version=1.1">
        <link rel="stylesheet" type="text/css" href=".{{ url_for('static', filename='redditflair.css') }}?version=2.9">
        
        {% if not session.get('redditname') %}
            <meta http-equiv="refresh" content="0;url={{redditLink}}" />
        {% endif %}
        {% if session.get('updated') %}
            <meta http-equiv="refresh" content="2;url=https://competitiveoverwatch.reddit.com" />
        {% endif %}
    </head>
    <script>
        var nowsetting=1
        function setFlair(ev, id) {
            if (nowsetting == 1) {
                parent.document.getElementById('flair1').className = ev.target.firstChild.className;
                parent.document.getElementById('flair1').classList.remove("flair-small");
                parent.document.getElementById('flair1_id').value = id;
                parent.document.getElementById('flair1_text').innerHTML = ev.target.innerText;
                setSetting(2);
            } else {
                parent.document.getElementById('flair2').className = ev.target.firstChild.className;
                parent.document.getElementById('flair2').classList.remove("flair-small");
                parent.document.getElementById('flair2_id').value = id;
                parent.document.getElementById('flair2_text').innerHTML = ev.target.innerText;
                setSetting(1);
            }
            updateTextLength()
        }
        
        function updateTextLength() {
            flair1Len = parent.document.getElementById('flair1_text').innerHTML.length;
            flair2Len = parent.document.getElementById('flair2_text').innerHTML.length;
            flairLen = flair1Len + flair2Len + 6;
            customTextLen = parent.document.getElementById('custom-flair-text').value.length;
            charsLeft = 64 - flairLen - customTextLen;
            parent.document.getElementById('custom-flair-text-length').innerHTML = charsLeft.toString();
        }
        
        function setSetting(num) {
            nowsetting=num;
            if (nowsetting == 1) {
                parent.document.getElementById('flairpicker2').classList.remove("flairpicker-active");
                parent.document.getElementById('flairpicker1').classList.add("flairpicker-active");
            } else {
                parent.document.getElementById('flairpicker1').classList.remove("flairpicker-active");
                parent.document.getElementById('flairpicker2').classList.add("flairpicker-active");
            }
        }
        
        function removeFlair(num) {
            if (num == 1) {
                parent.document.getElementById('flair1').className = "flair";
                parent.document.getElementById('flair1_id').value = "";
                parent.document.getElementById('flair1_text').innerHTML = "";
            } else {
                parent.document.getElementById('flair2').className = "flair";
                parent.document.getElementById('flair2_id').value = "";
                parent.document.getElementById('flair2_text').innerHTML = "";
            }
        }
        
        function resetFlairs() {
            setSetting(1);
            removeFlair(1);
            removeFlair(2);
            updateTextLength()
        }
    </script>
    <body onload="updateTextLength()">
        {% if session.get('redditname') %}
            {% if session.get('updated') %}
                <header role="banner">
                    <h2>Your flair was updated, you will be redirected to <a href="https://competitiveoverwatch.reddit.com">r/CompetitiveOverwatch</a> in a few seconds.</h2>
                </header>
            {% else %}
                {% set categories = flairdata['categories'] %}
                {% set ranks = flairdata['ranks'] %}
                {% set flairs = flairdata['flairs'] %}
                <header role="banner">
                    <h2>Hey, u/{{session.get('redditname')}}! Choose your <a href="https://competitiveoverwatch.reddit.com">r/CompetitiveOverwatch</a> flairs.</h2>
                </header>
                <!-- Flair Selectors -->
                <form action="/redditflair/updateflair" method="get">
                    <div class="container container-top">   
                        <div class="flex-container">
                            <span class="flairpicker-label">Primary Flair</span>
                            <span class="flairpicker-label">Secondary Flair</span>
                        </div>
                        <div class="flex-container">
                            <div id="flairpicker1" class="flairpicker flairpicker-left flairpicker-active" onclick="setSetting(1)" oncontextmenu="removeFlair(1);return false;">
                            {% if user.flair1 %}
                                {% set flair = flairs[user.flair1] %}
                                <div id="flair1" class="flair flair-s{{flair['sheet']}}-c{{flair['col']}}-r{{flair['row']}}"></div>
                                <input type="hidden" name="flair1_id" id="flair1_id" value="{{user.flair1}}">
                                <span id="flair1_text" class="flairpicker-text">{{flair['name']}}</span>
                            {% else %}
                                <div id="flair1" class="flair"></div>
                                <input type="hidden" name="flair1_id" id="flair1_id">
                                <span id="flair1_text" class="flairpicker-text"></span>
                            {% endif %}
                            </div>
                            
                            <div id="flairpicker2" class="flairpicker" onclick="setSetting(2)" oncontextmenu="removeFlair(2);return false;">
                            {% if user.flair2 %}
                                {% set flair = flairs[user.flair2] %}
                                <div id="flair2" class="flair flair-s{{flair['sheet']}}-c{{flair['col']}}-r{{flair['row']}}"></div>
                                <input type="hidden" name="flair2_id" id="flair2_id" value="{{user.flair2}}">
                                <span id="flair2_text" class="flairpicker-text">{{flair['name']}}</span>
                            {% else %}
                                <div id="flair2" class="flair"></div>
                                <input type="hidden" name="flair2_id" id="flair2_id">
                                <span id="flair2_text" class="flairpicker-text"></span>
                            {% endif %}
                            </div>
                        </div>
                        <div class="flex-container">
                            <input class="custom-flair-text" id="custom-flair-text" type="text" name="customflairtext" placeholder="Custom Flair Text" value="{{user.flairtext}}" onkeyup="updateTextLength()">
                            <span class="custom-flair-text-length" id="custom-flair-text-length">0</span>                           
                            <input class="update-flair-button" type="submit" value="Update Flair">
                            <input class="reset-flair-button" type="button" onClick="resetFlairs()" value="&#10060">
                        </div>
                    </div>
                
                    <!-- Special category -->
                    {% if user and specials %}
                        <div class="container"> 
                            <div class="category-label">Special Flairs</div>
                            <div class="flex-container-flairs">
                            {% for special in specials %}
                                {% if special.specialid in flairs %}
                                    {% set flair = flairs[special.specialid] %}
                                    <div class="flair-item" onclick="setFlair(event, '{{special.specialid}}')"><div class="flair flair-small flair-s{{flair['sheet']}}-c{{flair['col']}}-r{{flair['row']}}"></div>{{flair['name']}} - {{special.text}}</div>
                                {% endif %}
                            {% endfor %}
                            </div>
                        </div>
                    {% endif %} 
                    
                    <!-- Rank category -->
                    {% set rankNum = 0 %}
                    {% if user %}
                        {% set rankNum = user.rank %}
                    {% endif %} 
                    <div class="container"> 
                        <div class="category-label">Rank Flairs</div>
                            <div class="flex-container-flairs">
                            {% for item in ranks['items'] %}
                                {% set flair = flairs[item] %}
                                {% if loop.index <= rankNum %}
                                    <div class="flair-item" onclick="setFlair(event, '{{item}}')"><div class="flair flair-small flair-s{{flair['sheet']}}-c{{flair['col']}}-r{{flair['row']}}"></div>{{flair['name']}}</div>
                                {% endif %}
                            {% endfor %}
                            </div>
                            <div class="flex-container-verification">
                                <div class="flair-verification-button" onClick="location.href = '/redditflair/rankverification'">Verify your rank</div>
                                {% if rankNum > 0 %}
                                    <div class="sr-checkbox">
                                        <input class="checkbox" type="checkbox" value="1" name="displaysr" id="displaysr" checked>
                                        <label for="displaysr">Display my SR: {{user.sr}}</label>
                                    </div>
                                {% endif %}
                                
                            </div>
                        </div>
                    </div>

                    <!-- Categories -->
                    {% for category in categories %}
                        <div class="container"> 
                            <div class="category-label">{{category['title']}}</div>
                            <div class="flex-container-flairs">
                            {% for item in category['items'] %}
                                {% set flair = flairs[item] %}
                                <div class="flair-item" onclick="setFlair(event, '{{item}}')"><div class="flair flair-small flair-s{{flair['sheet']}}-c{{flair['col']}}-r{{flair['row']}}"></div>{{flair['name']}}</div>
                            {% endfor %}
                            </div>
                        </div>
                    {% endfor %}
                </form>
            {% endif %}     
        {% endif %}     
    </body>
</html>
{'fraction_non_alphanumeric': 0.16842982958986918, 'fraction_numerical': 0.009536713742248163, 'mean_word_length': 2.015399120050283, 'pattern_counts': {'":': 0, '<': 237, '<?xml version=': 0, '>': 237, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 23, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6408005', 'n_tokens_mistral': 6412, 'n_tokens_neox': 5353, 'n_words': 846}