<commit_before><#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->

<#-- Template for sparkline visualization on individual profile page -->

<#if individual.visualizationUrl??>


<#assign coAuthorIcon = '${urls.images}/visualization/co_author_icon.png'>
<#assign coInvestigatorIcon = '${urls.images}/visualization/co_investigator_icon.png'>
<#assign informationIcon = '${urls.images}/iconInfo.png'>
<#assign standardVisualizationURLRoot ="/visualization">
<#assign googleJSAPI = 'https://www.google.com/jsapi?autoload=%7B%22modules%22%3A%5B%7B%22name%22%3A%22visualization%22%2C%22version%22%3A%221%22%2C%22packages%22%3A%5B%22imagesparkline%22%5D%7D%5D%7D'>
<#assign coAuthorURL = '${urls.base}${standardVisualizationURLRoot}?vis=person_level&uri=${individual.uri}&vis_mode=coauthor'>
<#assign coInvestigatorURL = '${urls.base}${standardVisualizationURLRoot}?vis=person_level&uri=${individual.uri}&vis_mode=copi'>
<#assign visualizationHelperJavaScript = 'js/visualization/visualization-helper-functions.js'>

<section id="sparklines-publications" role="region">
    
    <img class="infoIcon" src="${informationIcon}" alt="information icon." title="The publication and grant information may be incomplete." width="20px" height="21px" />

    <div id="vis_container_coauthor">&nbsp;</div>
    
    <div id="coauthorship_link_container" class="collaboratorship-link-container">
        <div class="collaboratorship-icon">
            <a href="${coAuthorURL}"><img src="${coAuthorIcon}" alt="Co-author Network icon" width="30px" height="30px" /></a>
        </div>
        <div class="collaboratorship-link"><a href="${coAuthorURL}">Co-Author Network</a></div>
    </div>

    <div id="coinvestigator_link_container" class="collaboratorship-link-container">
        <div class="collaboratorship-icon">
            <a href="${coInvestigatorURL}"><img src="${coInvestigatorIcon}" alt="Co-investigator Network icon" width="30px" height="30px" /></a>
        </div>
        <div class="collaboratorship-link"><a href="${coInvestigatorURL}">Co-Investigator Network</a></div>
    </div>

    ${stylesheets.add("css/visualization/visualization.css")}
    ${scripts.add(googleJSAPI)}
    ${scripts.add(visualizationHelperJavaScript)}
    ${scripts.add("/js/visualization/sparkline.js")}
    ${scripts.add(visualizationHelperJavaScript)}
    
    <script type="text/javascript">
        var visualizationUrl = '${individual.visualizationUrl}';
        
        $(document).ready(function(){
        
            $.ajax({
                url: "${urls.base}/visualizationAjax",
                data: ({vis: "utilities", vis_mode: "SHOW_GRANTS_LINK", uri: '${individual.uri}'}),
                dataType: "json",
                success:function(data){
                
                    /*
                    Collaboratorship links do not show up by default. They should show up only if there any data to
                    show on that page. 
                    */
                    if (data.numOfGrants !== undefined && data.numOfGrants > 0) {
                           $("#coinvestigator_link_container").show();                    
                    }
                
                }
            });

                            
        });
        
    </script>
</section>
  
</#if><commit_msg>changed file extension from png to gif for the info icon<commit_after><#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->

<#-- Template for sparkline visualization on individual profile page -->

<#if individual.visualizationUrl??>


<#assign coAuthorIcon = '${urls.images}/visualization/co_author_icon.png'>
<#assign coInvestigatorIcon = '${urls.images}/visualization/co_investigator_icon.png'>
<#assign informationIcon = '${urls.images}/iconInfo.gif'>
<#assign standardVisualizationURLRoot ="/visualization">
<#assign googleJSAPI = 'https://www.google.com/jsapi?autoload=%7B%22modules%22%3A%5B%7B%22name%22%3A%22visualization%22%2C%22version%22%3A%221%22%2C%22packages%22%3A%5B%22imagesparkline%22%5D%7D%5D%7D'>
<#assign coAuthorURL = '${urls.base}${standardVisualizationURLRoot}?vis=person_level&uri=${individual.uri}&vis_mode=coauthor'>
<#assign coInvestigatorURL = '${urls.base}${standardVisualizationURLRoot}?vis=person_level&uri=${individual.uri}&vis_mode=copi'>
<#assign visualizationHelperJavaScript = 'js/visualization/visualization-helper-functions.js'>

<section id="sparklines-publications" role="region">
    
    <img class="infoIcon" src="${informationIcon}" alt="information icon." title="The publication and grant information may be incomplete." width="20px" height="21px" />

    <div id="vis_container_coauthor">&nbsp;</div>
    
    <div id="coauthorship_link_container" class="collaboratorship-link-container">
        <div class="collaboratorship-icon">
            <a href="${coAuthorURL}"><img src="${coAuthorIcon}" alt="Co-author Network icon" width="30px" height="30px" /></a>
        </div>
        <div class="collaboratorship-link"><a href="${coAuthorURL}">Co-Author Network</a></div>
    </div>

    <div id="coinvestigator_link_container" class="collaboratorship-link-container">
        <div class="collaboratorship-icon">
            <a href="${coInvestigatorURL}"><img src="${coInvestigatorIcon}" alt="Co-investigator Network icon" width="30px" height="30px" /></a>
        </div>
        <div class="collaboratorship-link"><a href="${coInvestigatorURL}">Co-Investigator Network</a></div>
    </div>

    ${stylesheets.add("css/visualization/visualization.css")}
    ${scripts.add(googleJSAPI)}
    ${scripts.add(visualizationHelperJavaScript)}
    ${scripts.add("/js/visualization/sparkline.js")}
    ${scripts.add(visualizationHelperJavaScript)}
    
    <script type="text/javascript">
        var visualizationUrl = '${individual.visualizationUrl}';
        
        $(document).ready(function(){
        
            $.ajax({
                url: "${urls.base}/visualizationAjax",
                data: ({vis: "utilities", vis_mode: "SHOW_GRANTS_LINK", uri: '${individual.uri}'}),
                dataType: "json",
                success:function(data){
                
                    /*
                    Collaboratorship links do not show up by default. They should show up only if there any data to
                    show on that page. 
                    */
                    if (data.numOfGrants !== undefined && data.numOfGrants > 0) {
                           $("#coinvestigator_link_container").show();                    
                    }
                
                }
            });

                            
        });
        
    </script>
</section>
  
</#if>
{'fraction_non_alphanumeric': 0.152701294835541, 'fraction_numerical': 0.016669147194522994, 'mean_word_length': 3.0900791235544736, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 87, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '1378849', 'n_tokens_mistral': 2100, 'n_tokens_neox': 1950, 'n_words': 333}