<commit_before><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<!-- IE6-8 support of HTML elements -->
	<!--[if lt IE 9]>
	<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->

	<title>openSNP <% if @title %>| <%= @title %><% end %></title>
	<link rel="shortcut icon" href="/favicon.ico" />
  <%= stylesheet_link_tag :all %>
<%= javascript_include_tag :defaults, "nested_form","jquery-1.7.1.min","jquery.tablesorter.min", "jquery.ba-hashchange.min","jquery.easytabs","jquery-ui-1.8.16.custom.min","bootstrap-alert", "bootstrap-modal","bootstrap-tooltip","bootstrap-popover","jquery.jqplot.min.js", "jqplot.pieRenderer.min.js","bootstrap-collapse"%>
  <%= csrf_meta_tag %>
</head>
<body>	
<div class="navbar-inverse navbar navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <a class="brand" href="/">openSNP</a>
            <ul class="nav"> 
                <li class=""><%= link_to("News", '/news') %></li>
                <li class=""><%= link_to("Genotypes", :controller => "genotypes", :action => "index")%></li>
                <li class="dropdown">
                  <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    Phenotypes<b class="caret"></b></a>
                    <ul class="dropdown-menu">
                      <li class=""><%= link_to("Normal Phenotypes", :controller => "phenotypes", :action => "index")%></li>
                      <li class=""><%= link_to("Fitbit Connections", :controller => "fitbit_profiles", :action => "index")%></li>
                    </ul>
                </li>
                <li class=""><%= link_to("SNPs", :controller => "snps", :action => "index") %></li>
                <li class=""><%= link_to("Users", '/user_index') %></li>
            </ul>
            <%= form_tag "/search", :method => "get",:class => "navbar-search pull-left", :authenticity_token => true do %>
                <%= text_field_tag :search, nil, :placeholder => "Search here", :class => "search-query input-medium" %>
            <% end %>
            <ul class="nav pull-right"> 
                <% if current_user %>
                    <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="icon-user icon-white"></i>
                         My Account<b class="caret"></b></a>
                    <ul class="dropdown-menu">
                    <li><%= link_to("Settings",  :controller => "users", :action => "edit",:id => current_user) %></li>
                    <li><%= link_to("Edit Your Phenotypes", "/users/"+current_user.id.to_s+"/edit#phenotypes")%></li>
                    <%if current_user.fitbit_profile != nil%><li><%=link_to("Edit Fitbit settings" ,{:controller => "fitbit_profiles", :action => "edit"})%></li><%end%>
                    <li class="divider"></li>
                    <li><%= link_to("Messages ("+current_user.messages.where(:user_has_seen => false).length.to_s+")","/users/" + current_user.id.to_s + "#messages")%></li>
                    <li class="divider"></li>
                    <li><%= link_to("Sign out", '/signout') %></li>
                    </ul>
                    </li>
                <% else %>
                    <li><%= link_to("Sign in", '/signin') %></li>
                <% end %>
                <li><%= link_to("FAQ", '/faq') %></li>
            </ul>
        </div>
    </div>
</div>
<div class="container" id="help_block">
<%if current_user %>
    <%unless (current_user.help_one or current_user.has_sequence) && (current_user.help_two or current_user.user_phenotypes != []) && (current_user.help_three or current_user.phenotype_creation_counter != 0) == true%>
    <div class ="well row-fluid">
        <center><h3>Welcome to openSNP. Here are some first steps you could do:</h3></center><br/>
        <%if current_user.has_sequence == false and current_user.help_one == false%>
        <div class="well span4" id="help_one">
            <%=link_to "x",{:controller => "users", :action => "remove_help_one", :id => current_user}, :remote => true, id: "remove_help_one",:class => "close" %>
            <h4 class="alert-heading">Upload Your Genotyping File</h4>
            <%=link_to(image_tag("/images/fileupload.png"), "/genotypes/new")%><br/>
            <%=link_to("Upload the genotyping raw-data you got","/genotypes/new")%> from <em>23andMe</em>, <em>deCODEme</em> or <em>FamilyTreeDNA</em> to the database of <em>openSNP</em> to share it with other personal genomics customers and scientists from all over the world. 
        </div>
        <%end%>
        <%if current_user.user_phenotypes == [] and current_user.help_two == false%>
        <div class="well span3" id="help_two">
            <%=link_to("x",{:controller => "users", :action => "remove_help_two", :id => current_user},:remote => true, id: "remove_help_two", :class => "close")%>
            <h4 class="alert-heading">Enter Your Variations</h4>
            <%=link_to(image_tag("/images/phenotypes.png"), "/users/"+current_user.id.to_s+"#unentered_variations")%><br/>
            Let us, and the other <em>openSNP</em>-users, know some of your characteristics -like hair or eye color! Or how about some diseases? <%=link_to("Whatever you feel like sharing!","/users/"+current_user.id.to_s+"#unentered_variations")%>.
        </div>
        <%end%>
        <%if current_user.phenotype_creation_counter == 0 and current_user.help_three == false %>
        <div class="well span3" id="help_three">
            <%=link_to("x",{:controller => "users", :action => "remove_help_three", :id => current_user},:remote => true, id: "remove_help_three", :class => "close")%>
            <h4 class="alert-heading">Enter a New Phenotype</h4>
            <%=link_to(image_tag("/images/addphenotype.png"), "/phenotypes/new")%><br/>
            Got an idea for a phenotype that has not been asked about yet and that could have genetical roots? <%=link_to("Great, you can add one","/phenotypes/new")%> to the <em>openSNP</em>-database.
        </div>
        <%end%>
</div>
</div>
<%end%>
<%end%>
<div class="container" id="alert-messages">
    <div id="flash_notice" class="alert alert-success" style="display:none"></div>
    <% if flash[:notice] %>
        <div class="alert alert-success" data-dismiss="alert">
            <button type="button" class="close" data-dismiss="alert">x</button>
            <strong><%= flash[:notice] %></strong>
        </div> 
    <% end %>
    <% if flash[:warning] %>
        <div class="alert alert-error" data-dismiss="alert">
            <button type="button" class="close" data-dismiss="alert">x</button>
            <strong><%= flash[:warning] %></strong>
        </div> 
    <% end %>
    <% if flash[:achievement] %>
        <div class="alert alert-info" data-dismiss="alert">
            <button type="button" class="close" data-dismiss="alert">x</button>
            <strong><%= flash[:achievement] %></strong>
        </div>
    <% end %>

    <%= yield %>
    
</div>
<hr />

<footer class="footer">
    <div class="container">
        <p>
            Contact openSNP: <a href="http://opensnp.wordpress.com" target="_blank">Blog</a> | <a href="http://www.twitter.com/openSNPorg" target="_blank">Twitter</a> | <a href="mailto:<EMAIL>">Mail</a> | 	<a href="https://www.iubenda.com/privacy-policy/641811" class="iubenda-nostyle " id="iubenda-embed" title="Privacy Policy">Privacy Policy</a> | <%= link_to "openSNP in the press", "/press"%>
            <script type="text/javascript">(function (w,d) {var loader = function () {var s = d.createElement("script"), tag = d.getElementsByTagName("script")[0]; s.src = "https://cdn.iubenda.com/iubenda.js"; tag.parentNode.insertBefore(s,tag);}; w.addEventListener ? w.addEventListener("load", loader, false) : w.attachEvent("onload", loader);})(window, document);</script></br></br>
            The openSNP project is licensed under the <a href="https://github.com/gedankenstuecke/snpr/blob/master/MIT-LICENSE.txt" target="_blank">MIT License</a>, the code <a href="https://github.com/gedankenstuecke/snpr">is at GitHub</a>. The data is licensed under <a href="http://creativecommons.org/publicdomain/zero/1.0/" target="_blank">CC0 1.0</a>. The hand drawn icons were created by <a href="http://oneseventyseven.com/" target="_blank">one seventy seven</a> and are licensed under <a href="http://creativecommons.org/licenses/by/3.0/" target="_blank">CC BY 3.0</a>, the CSS of openSNP is provided by <a href="http://twitter.github.com/bootstrap/">Bootstrap, from Twitter</a> and is licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License v2.0</a>. Tiny white person in the navigational-bar from <a href="http://glyphicons.com/">glyphicons</a>.
        </p>
    </div>
</footer>

</body>
</html>
<commit_msg>do not html-escape flash messages<commit_after><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<!-- IE6-8 support of HTML elements -->
	<!--[if lt IE 9]>
	<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->

	<title>openSNP <% if @title %>| <%= @title %><% end %></title>
	<link rel="shortcut icon" href="/favicon.ico" />
  <%= stylesheet_link_tag :all %>
<%= javascript_include_tag :defaults, "nested_form","jquery-1.7.1.min","jquery.tablesorter.min", "jquery.ba-hashchange.min","jquery.easytabs","jquery-ui-1.8.16.custom.min","bootstrap-alert", "bootstrap-modal","bootstrap-tooltip","bootstrap-popover","jquery.jqplot.min.js", "jqplot.pieRenderer.min.js","bootstrap-collapse"%>
  <%= csrf_meta_tag %>
</head>
<body>	
<div class="navbar-inverse navbar navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <a class="brand" href="/">openSNP</a>
            <ul class="nav"> 
                <li class=""><%= link_to("News", '/news') %></li>
                <li class=""><%= link_to("Genotypes", :controller => "genotypes", :action => "index")%></li>
                <li class="dropdown">
                  <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    Phenotypes<b class="caret"></b></a>
                    <ul class="dropdown-menu">
                      <li class=""><%= link_to("Normal Phenotypes", :controller => "phenotypes", :action => "index")%></li>
                      <li class=""><%= link_to("Fitbit Connections", :controller => "fitbit_profiles", :action => "index")%></li>
                    </ul>
                </li>
                <li class=""><%= link_to("SNPs", :controller => "snps", :action => "index") %></li>
                <li class=""><%= link_to("Users", '/user_index') %></li>
            </ul>
            <%= form_tag "/search", :method => "get",:class => "navbar-search pull-left", :authenticity_token => true do %>
                <%= text_field_tag :search, nil, :placeholder => "Search here", :class => "search-query input-medium" %>
            <% end %>
            <ul class="nav pull-right"> 
                <% if current_user %>
                    <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="icon-user icon-white"></i>
                         My Account<b class="caret"></b></a>
                    <ul class="dropdown-menu">
                    <li><%= link_to("Settings",  :controller => "users", :action => "edit",:id => current_user) %></li>
                    <li><%= link_to("Edit Your Phenotypes", "/users/"+current_user.id.to_s+"/edit#phenotypes")%></li>
                    <%if current_user.fitbit_profile != nil%><li><%=link_to("Edit Fitbit settings" ,{:controller => "fitbit_profiles", :action => "edit"})%></li><%end%>
                    <li class="divider"></li>
                    <li><%= link_to("Messages ("+current_user.messages.where(:user_has_seen => false).length.to_s+")","/users/" + current_user.id.to_s + "#messages")%></li>
                    <li class="divider"></li>
                    <li><%= link_to("Sign out", '/signout') %></li>
                    </ul>
                    </li>
                <% else %>
                    <li><%= link_to("Sign in", '/signin') %></li>
                <% end %>
                <li><%= link_to("FAQ", '/faq') %></li>
            </ul>
        </div>
    </div>
</div>
<div class="container" id="help_block">
<%if current_user %>
    <%unless (current_user.help_one or current_user.has_sequence) && (current_user.help_two or current_user.user_phenotypes != []) && (current_user.help_three or current_user.phenotype_creation_counter != 0) == true%>
    <div class ="well row-fluid">
        <center><h3>Welcome to openSNP. Here are some first steps you could do:</h3></center><br/>
        <%if current_user.has_sequence == false and current_user.help_one == false%>
        <div class="well span4" id="help_one">
            <%=link_to "x",{:controller => "users", :action => "remove_help_one", :id => current_user}, :remote => true, id: "remove_help_one",:class => "close" %>
            <h4 class="alert-heading">Upload Your Genotyping File</h4>
            <%=link_to(image_tag("/images/fileupload.png"), "/genotypes/new")%><br/>
            <%=link_to("Upload the genotyping raw-data you got","/genotypes/new")%> from <em>23andMe</em>, <em>deCODEme</em> or <em>FamilyTreeDNA</em> to the database of <em>openSNP</em> to share it with other personal genomics customers and scientists from all over the world. 
        </div>
        <%end%>
        <%if current_user.user_phenotypes == [] and current_user.help_two == false%>
        <div class="well span3" id="help_two">
            <%=link_to("x",{:controller => "users", :action => "remove_help_two", :id => current_user},:remote => true, id: "remove_help_two", :class => "close")%>
            <h4 class="alert-heading">Enter Your Variations</h4>
            <%=link_to(image_tag("/images/phenotypes.png"), "/users/"+current_user.id.to_s+"#unentered_variations")%><br/>
            Let us, and the other <em>openSNP</em>-users, know some of your characteristics -like hair or eye color! Or how about some diseases? <%=link_to("Whatever you feel like sharing!","/users/"+current_user.id.to_s+"#unentered_variations")%>.
        </div>
        <%end%>
        <%if current_user.phenotype_creation_counter == 0 and current_user.help_three == false %>
        <div class="well span3" id="help_three">
            <%=link_to("x",{:controller => "users", :action => "remove_help_three", :id => current_user},:remote => true, id: "remove_help_three", :class => "close")%>
            <h4 class="alert-heading">Enter a New Phenotype</h4>
            <%=link_to(image_tag("/images/addphenotype.png"), "/phenotypes/new")%><br/>
            Got an idea for a phenotype that has not been asked about yet and that could have genetical roots? <%=link_to("Great, you can add one","/phenotypes/new")%> to the <em>openSNP</em>-database.
        </div>
        <%end%>
</div>
</div>
<%end%>
<%end%>
<div class="container" id="alert-messages">
    <div id="flash_notice" class="alert alert-success" style="display:none"></div>
    <% if flash[:notice] %>
        <div class="alert alert-success" data-dismiss="alert">
            <button type="button" class="close" data-dismiss="alert">x</button>
            <strong><%= raw(flash[:notice]) %></strong>
        </div> 
    <% end %>
    <% if flash[:warning] %>
        <div class="alert alert-error" data-dismiss="alert">
            <button type="button" class="close" data-dismiss="alert">x</button>
            <strong><%= raw(flash[:warning]) %></strong>
        </div> 
    <% end %>
    <% if flash[:achievement] %>
        <div class="alert alert-info" data-dismiss="alert">
            <button type="button" class="close" data-dismiss="alert">x</button>
            <strong><%= raw(flash[:achievement]) %></strong>
        </div>
    <% end %>

    <%= yield %>
    
</div>
<hr />

<footer class="footer">
    <div class="container">
        <p>
            Contact openSNP: <a href="http://opensnp.wordpress.com" target="_blank">Blog</a> | <a href="http://www.twitter.com/openSNPorg" target="_blank">Twitter</a> | <a href="mailto:<EMAIL>">Mail</a> | 	<a href="https://www.iubenda.com/privacy-policy/641811" class="iubenda-nostyle " id="iubenda-embed" title="Privacy Policy">Privacy Policy</a> | <%= link_to "openSNP in the press", "/press"%>
            <script type="text/javascript">(function (w,d) {var loader = function () {var s = d.createElement("script"), tag = d.getElementsByTagName("script")[0]; s.src = "https://cdn.iubenda.com/iubenda.js"; tag.parentNode.insertBefore(s,tag);}; w.addEventListener ? w.addEventListener("load", loader, false) : w.attachEvent("onload", loader);})(window, document);</script></br></br>
            The openSNP project is licensed under the <a href="https://github.com/gedankenstuecke/snpr/blob/master/MIT-LICENSE.txt" target="_blank">MIT License</a>, the code <a href="https://github.com/gedankenstuecke/snpr">is at GitHub</a>. The data is licensed under <a href="http://creativecommons.org/publicdomain/zero/1.0/" target="_blank">CC0 1.0</a>. The hand drawn icons were created by <a href="http://oneseventyseven.com/" target="_blank">one seventy seven</a> and are licensed under <a href="http://creativecommons.org/licenses/by/3.0/" target="_blank">CC BY 3.0</a>, the CSS of openSNP is provided by <a href="http://twitter.github.com/bootstrap/">Bootstrap, from Twitter</a> and is licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License v2.0</a>. Tiny white person in the navigational-bar from <a href="http://glyphicons.com/">glyphicons</a>.
        </p>
    </div>
</footer>

</body>
</html>

{'fraction_non_alphanumeric': 0.1984926036335002, 'fraction_numerical': 0.0053996287755216825, 'mean_word_length': 2.970522554711925, 'pattern_counts': {'":': 0, '<': 457, '<?xml version=': 0, '>': 525, 'https://': 8, 'lorem ipsum': 0, 'www.': 6, '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': '3417229', 'n_tokens_mistral': 5941, 'n_tokens_neox': 5514, 'n_words': 1192}