<commit_before>﻿<xsl:stylesheet version="1.0" exclude-result-prefixes="xsl ddwrt2 ddwrt msxsl"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:ddwrt2="urn:frontpage:internal"
                xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
                xmlns:msxsl="urn:schemas-microsoft-com:xslt">
    <xsl:import href="XSLT/xml2json.xslt"/>
    <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
    <xsl:param name="UserID"></xsl:param>
    <xsl:variable name="Rows"
                  select="/dsQueryResponse/Rows/Row[not(@__spHidden = 'True') and not(contains(@__spDefaultViewUrl, '_catalogs')) and @__spTitle != 'ServiceFiles']"/>

    <!-- configMap global configuration, configuration per BaseTemplate and tileData -->
    <xsl:variable name="configMap">
        <global>
            <maxTiles>12</maxTiles>
            <wideTilesThreshold>50</wideTilesThreshold>
            <backTileTitle>Last Updated</backTileTitle>
        </global>
        <baseTemplate>
            <item btId="Contacts" color="lime" icon="images/48/bomb.png"/>
            <item btId="DocumentLibrary" color="teal" icon="images/48/file.png" mode="slide"
                  direction="vertical"/>
            <item btId="GenericList" color="green" icon="images/48/inventory2.png" mode="flip"
                  direction="vertical"/>
            <item btId="Tasks" color="red" icon="images/48/bomb.png" mode="flip"
                  direction="horizontal"/>
            <item btId="GanttTasks" color="purple" icon="images/48/hand_thumbsup.png"/>
            <item btId="IssueTracking" color="pink" icon="images/48/clipboard.png" mode="slide"
                  direction="vertical"/>
            <item btId="Links" color="lime" icon="images/48/link.png"/>
            <item btId="WebPageLibrary" color="brown" icon="images/48/clipboard.png"/>
            <item btId="Events" color="mango" icon="images/48/clipboard.png"/>
            <item btId="unknown" color="blue" icon="images/48/smiley_sad.png" mode="" direction=""/>
        </baseTemplate>
        <userId>
            <xsl:choose>
                <xsl:when test="$UserID !='anonymous' ">
                    <xsl:value-of select="substring-after($UserID, '\')" />
                </xsl:when>
                <xsl:otherwise>anonymous</xsl:otherwise>
            </xsl:choose>
        </userId>
    </xsl:variable>

    <xsl:variable name="tileData">
        <tiles>
            <xsl:for-each select="$Rows">
                <xsl:sort
                        select="translate(substring-before(substring-after(@__spPropertiesXml, 'Modified=&quot;'), '&quot; LastDeleted'), ' :', '')"
                        order="descending" data-type="number"/>
                <xsl:if test="position() &lt;= $configMapNS/global/maxTiles">
                    <xsl:variable name="coreMetaData">
                        <xsl:call-template name="MetaData">
                            <xsl:with-param name="currItem" select="current()"/>
                            <xsl:with-param name="pos" select="position()"/>
                        </xsl:call-template>
                    </xsl:variable>
                    <tile listId="{@__spID}" title="{@__spTitle}" count="{@__spItemCount}" pos="{position()}">
                        <xsl:copy-of select="msxsl:node-set($coreMetaData)/metaData/@*"/>
                    </tile>
                </xsl:if>
            </xsl:for-each>
        </tiles><commit_msg>FERRARIMEETSJAYDATA-1 - Time offset in TileView<commit_after>﻿<xsl:stylesheet version="1.0" exclude-result-prefixes="xsl ddwrt2 ddwrt msxsl"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:ddwrt2="urn:frontpage:internal"
                xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
                xmlns:msxsl="urn:schemas-microsoft-com:xslt">
    <xsl:import href="XSLT/xml2json.xslt"/>
    <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
    <xsl:param name="UserID"></xsl:param>
    <xsl:variable name="Rows"
                  select="/dsQueryResponse/Rows/Row[not(@__spHidden = 'True') and not(contains(@__spDefaultViewUrl, '_catalogs')) and @__spTitle != 'ServiceFiles']"/>

    <!-- configMap global configuration, configuration per BaseTemplate and tileData -->
    <xsl:variable name="configMap">
        <global>
            <maxTiles>12</maxTiles>
            <wideTilesThreshold>50</wideTilesThreshold>
            <backTileTitle>Last Updated</backTileTitle>
        </global>
        <baseTemplate>
            <item btId="Contacts" color="lime" icon="images/48/bomb.png"/>
            <item btId="DocumentLibrary" color="teal" icon="images/48/file.png" mode="slide"
                  direction="vertical"/>
            <item btId="GenericList" color="green" icon="images/48/inventory2.png" mode="flip"
                  direction="vertical"/>
            <item btId="Tasks" color="red" icon="images/48/bomb.png" mode="flip"
                  direction="horizontal"/>
            <item btId="GanttTasks" color="purple" icon="images/48/hand_thumbsup.png"/>
            <item btId="IssueTracking" color="pink" icon="images/48/clipboard.png" mode="slide"
                  direction="vertical"/>
            <item btId="Links" color="lime" icon="images/48/link.png"/>
            <item btId="WebPageLibrary" color="brown" icon="images/48/clipboard.png"/>
            <item btId="Events" color="mango" icon="images/48/clipboard.png"/>
            <item btId="unknown" color="blue" icon="images/48/smiley_sad.png" mode="" direction=""/>
        </baseTemplate>
        <userId>
            <xsl:choose>
                <xsl:when test="$UserID !='anonymous' ">
                    <xsl:value-of select="substring-after($UserID, '\')" />
                </xsl:when>
                <xsl:otherwise>anonymous</xsl:otherwise>
            </xsl:choose>
        </userId>
    </xsl:variable>

    <xsl:variable name="tileData">
        <tiles>
            <xsl:for-each select="$Rows">
                <xsl:sort
                        select="translate(substring-before(substring-after(@__spPropertiesXml, 'Modified=&quot;'), '&quot; LastDeleted'), ' :', '')"
                        order="descending" data-type="number"/>
                <!-- Known issue: Date is in 12 hour format so there's an 12 hour offset if item is changed PM -->
                <xsl:if test="position() &lt;= $configMapNS/global/maxTiles">
                    <xsl:variable name="coreMetaData">
                        <xsl:call-template name="MetaData">
                            <xsl:with-param name="currItem" select="current()"/>
                            <xsl:with-param name="pos" select="position()"/>
                        </xsl:call-template>
                    </xsl:variable>
                    <tile listId="{@__spID}" title="{@__spTitle}" count="{@__spItemCount}" pos="{position()}">
                        <xsl:copy-of select="msxsl:node-set($coreMetaData)/metaData/@*"/>
                    </tile>
                </xsl:if>
            </xsl:for-each>
        </tiles>
{'fraction_non_alphanumeric': 0.16245990796262724, 'fraction_numerical': 0.011574396876307349, 'mean_word_length': 2.1918113039608365, 'pattern_counts': {'":': 0, '<': 114, '<?xml version=': 0, '>': 114, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 10}, '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': '1268358', 'n_tokens_mistral': 2235, 'n_tokens_neox': 2046, 'n_words': 318}