<commit_before>﻿<%@ Page
    Language="C#"
    MasterPageFile="~/DefaultMaster.master"
    AutoEventWireup="true"
    CodeFile="Twitter.aspx.cs" 
    Inherits="Twitter_Twitter"
    Title="Twitter Sample"
    Theme="SampleSiteTheme" %>
<%@ Register
    Assembly="AjaxControlToolkit"
    Namespace="AjaxControlToolkit"
    TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="SampleContent" Runat="Server">
    <style>
        .lbl {
            width: 100px;
            display: inline-block;
        }
    </style>
    <ajaxToolkit:ToolkitScriptManager runat="Server" ID="ScriptManager1" />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
                            <div class="demoarea">
                    <div class="demoheading">
                        Twitter Demonstration</div>
            <asp:Panel ID="MissingKeysPanel" runat="server" Visible="False">
                <b>Missing Twitter Keys</b>. Please enter your Twitter Keys here:<br /> <br />
                <asp:Label ID="Label1" CssClass="lbl" runat="server" Text="Label">Consumer key</asp:Label> <asp:TextBox ID="TwitterConsumerKey" runat="server"></asp:TextBox><br/>
                <asp:Label ID="Label2" CssClass="lbl" runat="server" Text="Label">Consumer secret</asp:Label> <asp:TextBox ID="TwitterConsumerSecret" runat="server"></asp:TextBox><br/>
                <asp:Label ID="Label3" CssClass="lbl" runat="server" Text="Label">Access token</asp:Label> <asp:TextBox ID="TwitterAccessToken" runat="server"></asp:TextBox><br/>
                <asp:Label ID="Label4" CssClass="lbl" runat="server" Text="Label">Token secret</asp:Label> <asp:TextBox ID="TwitterAccessTokenSecret" runat="server"></asp:TextBox>
                <br />
                <br />
                You can create the Twitter Keys through <a href="https://dev.twitter.com/apps/new">https://dev.twitter.com/apps/new</a>. For more information please see the <a href="#twitterAPI">Twitter API section</a> of this document.<br />
                <br />
                <asp:Button ID="SubmitTwitterKeysButton" runat="server" Text="Submit" />
                <br/>
            </asp:Panel>
            <asp:Panel ID="DemoPanel" runat="server">
                    <div>
                        Displays status messages (tweets) for a Twitter account:
                        <br /><br />
                        <ajaxToolkit:Twitter ID="Twitter1" Mode="Profile" ScreenName="ScottGu" runat="server" />
                        <br />
                        <hr />
                        Displays status messages (tweets) for a Twitter account using a custom LayoutTemplate and StatusTemplate:
                        <br />
                        <style>
                            #twitter_custom_style .ajax__twitter {
                                -moz-border-radius: 0px;
                                -webkit-border-radius: 0px;
                                background-color: rgb(228, 236, 230);
                                border: 1px solid green;
                                border-radius: 0px;
                                color: darkcyan;
                            }
                
                        </style>
                        <div id="twitter_custom_style">
                            <ajaxToolkit:Twitter ID="Twitter3" Mode="Profile" ScreenName="ScottGu" runat="server">
                                <LayoutTemplate>
                                    <h2 style="padding: 10px"><NAME>'s Tweets:</h2>
                                    <div style="border: solid 5px white; padding: 10px">
                                        <asp:PlaceHolder id="itemPlaceholder" runat="server" />
                                    </div>
                                </LayoutTemplate>
                                <StatusTemplate>
                                    <div style="border-bottom: dotted 1px white; padding: 10px">
                                        <img src="<%# Eval("User.ProfileImageUrl") %>" />
                                        <%# Twitter.ActivateLinks((string) Eval("Text")) %>
                                        <br />
                                        posted: <i><%# Twitter.Ago((DateTime) Eval("CreatedAt")) %></i>
                                    </div>
                                </StatusTemplate>
                            </ajaxToolkit:Twitter> 
                        </div>

                
                        <hr />
                        Displays Twitter search results for <i>'Ajax Control Toolkit'</i>:
                        <br />
                        <ajaxToolkit:Twitter ID="Twitter2" Mode="Search" 
                                             Search="'Ajax Control Toolkit'" runat="server" Caption="The Caption" 
                                             Title="Title goes here..." >                     
                        </ajaxToolkit:Twitter>
                        <br />

 


                    </div>                                       
                
                 <commit_msg>Updated Twitter sample page (use ASP.NET for search instead of ACT)<commit_after>﻿<%@ Page
    Language="C#"
    MasterPageFile="~/DefaultMaster.master"
    AutoEventWireup="true"
    CodeFile="Twitter.aspx.cs" 
    Inherits="Twitter_Twitter"
    Title="Twitter Sample"
    Theme="SampleSiteTheme" %>
<%@ Register
    Assembly="AjaxControlToolkit"
    Namespace="AjaxControlToolkit"
    TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="SampleContent" Runat="Server">
    <style>
        .lbl {
            width: 100px;
            display: inline-block;
        }
    </style>
    <ajaxToolkit:ToolkitScriptManager runat="Server" ID="ScriptManager1" />
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <b>Processing...</b>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
                            <div class="demoarea">
                    <div class="demoheading">
                        Twitter Demonstration</div>
            <asp:Panel ID="MissingKeysPanel" runat="server" Visible="False">
                <b>Missing Twitter Keys</b>. Please enter your Twitter Keys here:<br /> <br />
                <asp:Label ID="Label1" CssClass="lbl" runat="server" Text="Label">Consumer key</asp:Label> <asp:TextBox ID="TwitterConsumerKey" runat="server"></asp:TextBox><br/>
                <asp:Label ID="Label2" CssClass="lbl" runat="server" Text="Label">Consumer secret</asp:Label> <asp:TextBox ID="TwitterConsumerSecret" runat="server"></asp:TextBox><br/>
                <asp:Label ID="Label3" CssClass="lbl" runat="server" Text="Label">Access token</asp:Label> <asp:TextBox ID="TwitterAccessToken" runat="server"></asp:TextBox><br/>
                <asp:Label ID="Label4" CssClass="lbl" runat="server" Text="Label">Token secret</asp:Label> <asp:TextBox ID="TwitterAccessTokenSecret" runat="server"></asp:TextBox>
                <br />
                <br />
                You can create the Twitter Keys through <a href="https://dev.twitter.com/apps/new">https://dev.twitter.com/apps/new</a>. For more information please see the <a href="#twitterAPI">Twitter API section</a> of this document.<br />
                <br />
                <asp:Button ID="SubmitTwitterKeysButton" runat="server" Text="Submit" />
                <br/>
            </asp:Panel>
            <asp:Panel ID="DemoPanel" runat="server">
                    <div>
                        Displays status messages (tweets) for a Twitter account:
                        <br /><br />
                        <ajaxToolkit:Twitter ID="Twitter1" Mode="Profile" ScreenName="ScottGu" runat="server" />
                        <br />
                        <hr />
                        Displays status messages (tweets) for a Twitter account using a custom LayoutTemplate and StatusTemplate:
                        <br />
                        <style>
                            #twitter_custom_style .ajax__twitter {
                                -moz-border-radius: 0px;
                                -webkit-border-radius: 0px;
                                background-color: rgb(228, 236, 230);
                                border: 1px solid green;
                                border-radius: 0px;
                                color: darkcyan;
                            }
                
                        </style>
                        <div id="twitter_custom_style">
                            <ajaxToolkit:Twitter ID="Twitter3" Mode="Profile" ScreenName="ScottGu" runat="server">
                                <LayoutTemplate>
                                    <h2 style="padding: 10px"><NAME>'s Tweets:</h2>
                                    <div style="border: solid 5px white; padding: 10px">
                                        <asp:PlaceHolder id="itemPlaceholder" runat="server" />
                                    </div>
                                </LayoutTemplate>
                                <StatusTemplate>
                                    <div style="border-bottom: dotted 1px white; padding: 10px">
                                        <img src="<%# Eval("User.ProfileImageUrl") %>" />
                                        <%# Twitter.ActivateLinks((string) Eval("Text")) %>
                                        <br />
                                        posted: <i><%# Twitter.Ago((DateTime) Eval("CreatedAt")) %></i>
                                    </div>
                                </StatusTemplate>
                            </ajaxToolkit:Twitter> 
                        </div>

                
                        <hr />
                        Displays Twitter search results for <i>ASP.NET</i>:
                        <br />
                        <ajaxToolkit:Twitter ID="Twitter2" Mode="Search" 
                                             Search="ASP.NET" runat="server" Caption="The Caption" 
                                             Title="Title goes here..." >                     
                        </ajaxToolkit:Twitter>
                        <br />

 


                    </div>                                       
                
                 
{'fraction_non_alphanumeric': 0.11782130912565696, 'fraction_numerical': 0.006975633062589585, 'mean_word_length': 1.3057942278034809, 'pattern_counts': {'":': 0, '<': 183, '<?xml version=': 0, '>': 183, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 38, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3834324', 'n_tokens_mistral': 2652, 'n_tokens_neox': 2410, 'n_words': 507}