<commit_before><%
from student.models import State,District,SubjectArea,GradeLevel,YearsInEducation,School
from django.core.urlresolvers import reverse
%>

<%inherit file="../main.html" />

<script type="text/javascript" src="/static/js/admin_ui_controls.js"></script>
<script type="text/javascript" src="/static/js/jquery.balloon.js"></script>
<link rel="stylesheet" type="text/css" href="/static/css/admin_ui_controls.css" />

<style type="text/css" media="screen">
 #dlg-enroll label{width:240px;display:inline-block;font-weight:bold;}
 #dlg-enroll input[type=text]{width:500px;}
 #dlg-enroll div.row{margin-bottom:10px;}
 .green-button{display:inline-block;background:#22B14C;padding:7px 30px;color:#fff;cursor:pointer;}
 #dlg-detail .content{padding:0;height:620px;overflow-x:auto;overflow-y:auto;position:relative;background:#fff;border-radius:0;}
 p.small{font-size:10px;}
 span.promo-code-switch{font-size:12px;font-weight:bold;color:#999;cursor:pointer;}
 div.promo{display:none;}
 input.promo-code{width:120px;height:20px;font-size:12px;border:1px solid #000;padding:1px 2px;vertical-align:middle;}
 .btn-promo{border-radius:5px;background:#555;color:#fff;font-size:12px;padding:3px;cursor:pointer;display-inline:block;vertical-align:middle;}
 .check-mark{
   cursor:default;
 }
 .check-mark::after {
   content: '?';
   font-size: 100%;
   font-family: sans-serif;
   vertical-align: middle;
   font-weight: bold;
   text-align: center;
   display: inline-block;
   width: 2.8ex;
   height: 2.8ex;
   border-radius: 2ex;
   color: blue;
   background: #9B9B9B;
   line-height:2.8ex;
   color:#fff;
   margin-left:1ex;
   position:relative;
 }
 .check-mark.on::after {
   background: orange;
 }
</style>
<div class="modal" id="dlg-detail" style="width:1100px;height:690px;margin-left:-550px;border-radius:0;">
  <div class="inner-wrapper" style="border:0;border-radius:5px;padding:0;border-radius:0;">
    <div class="titlebar clearfix" style="background:#fff;">
      <img src="/static/images/header-logo.png" class="" alt="" height="50" style="margin-left:30px;margin-top:6px;"/>
      <h3 class="dialog-title" style="float:right;margin-right:50px;">Course Details</h3>
      <div class="close-modal" id="dialog_close">✕</div>
    </div>
    <div class="content"></div>
  </div>
</div>
<section class="container" style="padding:10px;text-align:center;background:#F5F5F5;">
  <div id="dlg-enroll" style="border-radius:0;text-align:left;display:none;">
    <div style="line-height:30px;">
    <div> <b>Step 1: Complete your contact information below.</b></div>
    <div>Have questions? Click <a href="/contact" target="_blank">here</a> to contact us.</div>
    <div style="font-weight:bold;" class="clearfix"> User Information <span style="float:right;">*Required field</span></div>
    </div>
    <hr />
    <div style="padding-left:20px;">
      <div class="row"><label>First Name*</label> <input type="" name="first_name" value="" /></div>
      <div class="row"><label>Last Name*</label> <input type="" name="last_name" value="" /></div>
      <div class="row"><label>Email*</label> <input type="" name="email" value="" /></div>
      <div class="row"><label>Phone Number*</label> <input type="" name="phone" value="" /></div>
      <div class="row"><label>School District/Organization</label> <input type="" name="dist_org" value="" /></div>
      <div class="row"><label>School District/Organization Website</label> <input type="" name="dist_org_website" value="" /></div>
      <div  class="row">
        <label>State*</label>
        <div style="border: 1px solid rgb(200,200,200);display:inline-block;">
          <select id="" name="state_id" autocomplate="off">
            <option value=""></option>
            %for item in State.objects.all().order_by('name'):
            <option value="${item.id}">${item.name}</option>
            %endfor
          </select>
        </div>
      </div>
      <div class="row"><label>Country</label> <input type="" name="country" value="" /></div>
    </div>
    <div style="text-align:right;">
      <span id="btnNext" class="green-button">Next</span>
    </div>
  </div>
  <div id="main-section">
    %if not email:
    <center> <b style="font-size:24px;line-height:70px;">Explore Pepper Courses Available for Purchase</b> </center>
 
    <p style="text-align:left;line-height:21px;margin:10px 0"> Welcome to Pepper, the nation’s fastest-growing online, interactive professional learning platform.</p>

    <p style="text-align:left;line-height:21px;margin:10px 0">Explore these professional development courses and workshops available for individual purchase. <b>To sign up and begin right now, <a href="#" id="link_enroll">click here</a> or click the “Join Pepper!” button at the bottom of the page.</b></p>

    <p style="text-align:left;line-height:21px;margin:10px 0">To learn about offering these and other courses for your school or district, view the <a href="/static/resource/Pepper_Professional_Learning_Fall2016.pdf" target="_blank">Pepper Professional Learning catalog</a> and <a href="/contact" target="_blank">click here</a> to have a member of our Support Team contact you directly.</p>

    %else:
    <div style="text-align:left;line-height:31px;">
      <b>Step 2: Add course to your cart and checkout out with PayPal </b>
      <br>You do not need a PayPal account to check out. You can view your cart here: 
      <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" style="display: inline-block;">
        <input type="hidden" name="cmd" value="_s-xclick">
        <input type="hidden" name="encrypted" value="-----<KEY>END PKCS7-----
                                                     ">
        <img src="https://www.paypalobjects.com/en_US/i/btn/btn_viewcart_SM.gif" border="0"
             alt="PayPal - The safer, easier way to pay online!" onclick="$(this).closest('form').submit()" style="cursor:pointer;"/>
        <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
      </form>
      <p>Upon successful payment you will receive an email confirmation with registration and course access information.</p>
      <p class="small">Note: Please contact us at <a href="mailto:peppersupport.pcgus.com">peppersupport.pcgus.com.</a></p>
    </div>
    %endif
    <div class="clearfix" style="text-align:left">
      %for c in courses:
      <div style="display:inline-block;vertical-align:top;">
        <%include file="course_icon.html" args="course=c" />
        %if email:
        <div id="" style="clear:both;text-align:center;">
          <form target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post" style="margin-top:5px;display:inline-block;">
            <input type="hidden" name="cmd" value="_s-xclick">
            <input type="hidden" name="hosted_button_id" value="${c.paypal_purchase_link}">
            <img src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_LG.gif" border="0" style="cursor:pointer;"
                   alt="PayPal - The safer, easier way to pay online!" onclick="$(this).closest('form').submit()"/>
            <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">

            <span class="promo-code-switch">Promo Code</span>
            <div class="promo" id="222">
              <input type="" name="" value="" class="promo-code" />
              <!-- <img src="/static/images/shopping/PayPal_check.png" class="btn-discount" alt="" course_id="${c.id}" style="width:20px;"/> -->
              <span class="btn-promo" course_id="${c.id}">Apply Promo Code</span>
              <span class="check-mark" alt="Enter Promo Code. Click &quot;Apply Promo Code&quot; and add the course to your cart to view the discounted price. "></span>
            </div>       
          </form>

        </div>
        %endif
      </div>
      %endfor
    </div>
    %if not email:
    <div style="text-align:right;">
      <span id="btnEnroll" name="" value="" class="green-button">Join Pepper!</span>
    </div>
    %endif
  </div>
</section>
<div style="" id="dialog" class="modal">
  <div class="inner-wrapper" style="border:0;border-radius:5px;padding:0">
    <div class="titlebar">
      <h3 class="dialog-title"></h3>
      <div class="close-modal" id="dialog_close">✕</div>
    </div>
    <div class="content"></div>
  </div>
</div>
<script type="text/javascript">
  $(".card-link").click(function(e){
    e.preventDefault();
    var dlg = new Dialog("#dlg-detail");
    dlg.show();
    $("#dlg-detail .content").html("");
    $.get(this.href, function(r){
      $("#dlg-detail .content").html(r);
    }, "text");
  });
  $("#btnEnroll,#link_enroll").click(function(e){
    e.preventDefault();
    /* var dlg = new Dialog("#dlg-enroll");
       dlg.show(); */
    $("#dlg-enroll").show();
    $("#main-section").hide();
  });
  var $form = $("#dlg-enroll");
  var regs = {
    first_name: /[\S]+/,
    last_name: /[\S]+/,
    email: /^\s*\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*\s*$/,  
    // phone: /^\s*[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}\s*$/,
    phone: /^\s*[\d]{10}\s*$/,
    state_id: /[\S]+/
  }
  function validField(field){
    var $field = $(field);
    var value = $field.val();
    var reg = regs[$field.prop('name')];
    var $b = $field.prop('tagName').toLowerCase()=='select' ? $field.parent() : $field;
    if(!reg.test(value)){
      $b.css("border-color", "#f00");
      return false;
    }else{
      $b.css("border-color", "rgb(200, 200, 200)");
      return true;
    }
  }
  $fields = $form.find("*[name=email], *[name=phone], *[name=first_name], *[name=last_name], *[name=state_id]"); 
  $fields.keyup(function(){
    validField(this);
  });
  $fields.change(function(){
    validField(this);
  });
  var dlgAlert = new Dialog($('#dialog'));
  $("#btnNext").click(function(){
    var data = {};
    var valided = true;
    $fields.each(function(){
      if(!validField(this)){

        if(this.name == "phone")
          dlgAlert.show("", "Please enter correct phone number in format: xxxxxxxxxx");
        
        valided = false;
        return false;
      }
      data[this.name] = $.trim($(this).val());
    });
    if(!valided)
      return;
    $.post('${reverse('shopping_enroll_post')}', data, function(r){
      if(!r.success){
        dlgAlert.show("", "An error occured.");
        return;
      }
      if(r.user_exists){
        dlgAlert.show("", "Please login and request access to the course<br><a href='/login' style='font-size:27px;'>Existing user login here</a>")
      }else{
        window.location.href = "${reverse('shopping_course_list')}?email=" + data['email'];
      }
    });
  });
  $(".promo-code-switch").click(function(){
    $(this).next("div").toggle();
  });
  $(".btn-promo").click(function(){
    var self = this; 
    var course_id = $(this).attr("course_id");
    var discount_code = $.trim($(this).prev("input").val());
    var data = {course_id: course_id, discount_code: discount_code};
    if(discount_code == "")
      return;
    $.post("${reverse('shopping_valid_discount_code')}",data , function(r){
      if(r.success){
        if(r.matched){
          var $form = $(self).closest("form");
          // dlgAlert.show('', 'The code is verified, please click on the Add to Cart button to proceed');
          $form.find("input[name=hosted_button_id]").val(r.discount_link);
          $form.submit();
        }else{
          dlgAlert.show('', 'You have entered an invalid code.');
        }
      }
    });
  });
</script>
<script type="text/javascript">
  $(".check-mark").balloon({position: "bottom right", css: {maxWidth: "300px"}, offsetX: -20, offsetY: -15});
  $(".check-mark").on("mouseenter", function () {
    $(this).addClass("on");
  }).on("mouseleave", function () {
    $(this).removeClass("on");
  });
</script>
<commit_msg>Switch to enroll page on click price button.<commit_after><%
from student.models import State,District,SubjectArea,GradeLevel,YearsInEducation,School
from django.core.urlresolvers import reverse
%>

<%inherit file="../main.html" />

<script type="text/javascript" src="/static/js/admin_ui_controls.js"></script>
<script type="text/javascript" src="/static/js/jquery.balloon.js"></script>
<link rel="stylesheet" type="text/css" href="/static/css/admin_ui_controls.css" />

<style type="text/css" media="screen">
 #dlg-enroll label{width:240px;display:inline-block;font-weight:bold;}
 #dlg-enroll input[type=text]{width:500px;}
 #dlg-enroll div.row{margin-bottom:10px;}
 .green-button{display:inline-block;background:#22B14C;padding:7px 30px;color:#fff;cursor:pointer;}
 #dlg-detail .content{padding:0;height:620px;overflow-x:auto;overflow-y:auto;position:relative;background:#fff;border-radius:0;}
 p.small{font-size:10px;}
 span.promo-code-switch{font-size:12px;font-weight:bold;color:#999;cursor:pointer;}
 div.promo{display:none;}
 input.promo-code{width:120px;height:20px;font-size:12px;border:1px solid #000;padding:1px 2px;vertical-align:middle;}
 .btn-promo{border-radius:5px;background:#555;color:#fff;font-size:12px;padding:3px;cursor:pointer;display-inline:block;vertical-align:middle;}
 .check-mark{
   cursor:default;
 }
 .check-mark::after {
   content: '?';
   font-size: 100%;
   font-family: sans-serif;
   vertical-align: middle;
   font-weight: bold;
   text-align: center;
   display: inline-block;
   width: 2.8ex;
   height: 2.8ex;
   border-radius: 2ex;
   color: blue;
   background: #9B9B9B;
   line-height:2.8ex;
   color:#fff;
   margin-left:1ex;
   position:relative;
 }
 .check-mark.on::after {
   background: orange;
 }
</style>
<div class="modal" id="dlg-detail" style="width:1100px;height:690px;margin-left:-550px;border-radius:0;">
  <div class="inner-wrapper" style="border:0;border-radius:5px;padding:0;border-radius:0;">
    <div class="titlebar clearfix" style="background:#fff;">
      <img src="/static/images/header-logo.png" class="" alt="" height="50" style="margin-left:30px;margin-top:6px;"/>
      <h3 class="dialog-title" style="float:right;margin-right:50px;">Course Details</h3>
      <div class="close-modal" id="dialog_close">✕</div>
    </div>
    <div class="content"></div>
  </div>
</div>
<section class="container" style="padding:10px;text-align:center;background:#F5F5F5;">
  <div id="dlg-enroll" style="border-radius:0;text-align:left;display:none;">
    <div style="line-height:30px;">
    <div> <b>Step 1: Complete your contact information below.</b></div>
    <div>Have questions? Click <a href="/contact" target="_blank">here</a> to contact us.</div>
    <div style="font-weight:bold;" class="clearfix"> User Information <span style="float:right;">*Required field</span></div>
    </div>
    <hr />
    <div style="padding-left:20px;">
      <div class="row"><label>First Name*</label> <input type="" name="first_name" value="" /></div>
      <div class="row"><label>Last Name*</label> <input type="" name="last_name" value="" /></div>
      <div class="row"><label>Email*</label> <input type="" name="email" value="" /></div>
      <div class="row"><label>Phone Number*</label> <input type="" name="phone" value="" /></div>
      <div class="row"><label>School District/Organization</label> <input type="" name="dist_org" value="" /></div>
      <div class="row"><label>School District/Organization Website</label> <input type="" name="dist_org_website" value="" /></div>
      <div  class="row">
        <label>State*</label>
        <div style="border: 1px solid rgb(200,200,200);display:inline-block;">
          <select id="" name="state_id" autocomplate="off">
            <option value=""></option>
            %for item in State.objects.all().order_by('name'):
            <option value="${item.id}">${item.name}</option>
            %endfor
          </select>
        </div>
      </div>
      <div class="row"><label>Country</label> <input type="" name="country" value="" /></div>
    </div>
    <div style="text-align:right;">
      <span id="btnNext" class="green-button">Next</span>
    </div>
  </div>
  <div id="main-section">
    %if not email:
    <center> <b style="font-size:24px;line-height:70px;">Explore Pepper Courses Available for Purchase</b> </center>
 
    <p style="text-align:left;line-height:21px;margin:10px 0"> Welcome to Pepper, the nation’s fastest-growing online, interactive professional learning platform.</p>

    <p style="text-align:left;line-height:21px;margin:10px 0">Explore these professional development courses and workshops available for individual purchase. <b>To sign up and begin right now, <a href="#" id="link_enroll">click here</a> or click the “Join Pepper!” button at the bottom of the page.</b></p>

    <p style="text-align:left;line-height:21px;margin:10px 0">To learn about offering these and other courses for your school or district, view the <a href="/static/resource/Pepper_Professional_Learning_Fall2016.pdf" target="_blank">Pepper Professional Learning catalog</a> and <a href="/contact" target="_blank">click here</a> to have a member of our Support Team contact you directly.</p>

    %else:
    <div style="text-align:left;line-height:31px;">
      <b>Step 2: Add course to your cart and checkout out with PayPal </b>
      <br>You do not need a PayPal account to check out. You can view your cart here: 
      <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" style="display: inline-block;">
        <input type="hidden" name="cmd" value="_s-xclick">
        <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIG/QYJKoZIhvcNAQcEoIIG7jCCBuoCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYCZ5F1C<KEY>END PKCS7-----
                                                     ">
        <img src="https://www.paypalobjects.com/en_US/i/btn/btn_viewcart_SM.gif" border="0"
             alt="PayPal - The safer, easier way to pay online!" onclick="$(this).closest('form').submit()" style="cursor:pointer;"/>
        <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
      </form>
      <p>Upon successful payment you will receive an email confirmation with registration and course access information.</p>
      <p class="small">Note: Please contact us at <a href="mailto:peppersupport.pcgus.<EMAIL>">peppersupport.pcgus.com.</a></p>
    </div>
    %endif
    <div class="clearfix" style="text-align:left">
      %for c in courses:
      <div style="display:inline-block;vertical-align:top;">
        <%include file="course_icon.html" args="course=c" />
        %if email:
        <div id="" style="clear:both;text-align:center;">
          <form target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post" style="margin-top:5px;display:inline-block;">
            <input type="hidden" name="cmd" value="_s-xclick">
            <input type="hidden" name="hosted_button_id" value="${c.paypal_purchase_link}">
            <img src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_LG.gif" border="0" style="cursor:pointer;"
                   alt="PayPal - The safer, easier way to pay online!" onclick="$(this).closest('form').submit()"/>
            <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">

            <span class="promo-code-switch">Promo Code</span>
            <div class="promo" id="222">
              <input type="" name="" value="" class="promo-code" />
              <!-- <img src="/static/images/shopping/PayPal_check.png" class="btn-discount" alt="" course_id="${c.id}" style="width:20px;"/> -->
              <span class="btn-promo" course_id="${c.id}">Apply Promo Code</span>
              <span class="check-mark" alt="Enter Promo Code. Click &quot;Apply Promo Code&quot; and add the course to your cart to view the discounted price. "></span>
            </div>       
          </form>

        </div>
        %endif
      </div>
      %endfor
    </div>
    %if not email:
    <div style="text-align:right;">
      <span id="btnEnroll" name="" value="" class="green-button">Join Pepper!</span>
    </div>
    %endif
  </div>
</section>
<div style="" id="dialog" class="modal">
  <div class="inner-wrapper" style="border:0;border-radius:5px;padding:0">
    <div class="titlebar">
      <h3 class="dialog-title"></h3>
      <div class="close-modal" id="dialog_close">✕</div>
    </div>
    <div class="content"></div>
  </div>
</div>
<script type="text/javascript">
  $(".card-link").click(function(e){
    e.preventDefault();
    var dlg = new Dialog("#dlg-detail");
    dlg.show();
    $("#dlg-detail .content").html("");
    $.get(this.href, function(r){
      $("#dlg-detail .content").html(r);
      $("#btnCoursePrice").click(function(){
        e.preventDefault();
        dlg.hide();
        $("#btnEnroll").click();
      });
    }, "text");
  });
  $("#btnEnroll,#link_enroll").click(function(e){
    e.preventDefault();
    /* var dlg = new Dialog("#dlg-enroll");
       dlg.show(); */
    $("#dlg-enroll").show();
    $("#main-section").hide();
  });
  var $form = $("#dlg-enroll");
  var regs = {
    first_name: /[\S]+/,
    last_name: /[\S]+/,
    email: /^\s*\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*\s*$/,  
    // phone: /^\s*[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}\s*$/,
    phone: /^\s*[\d]{10}\s*$/,
    state_id: /[\S]+/
  }
  function validField(field){
    var $field = $(field);
    var value = $field.val();
    var reg = regs[$field.prop('name')];
    var $b = $field.prop('tagName').toLowerCase()=='select' ? $field.parent() : $field;
    if(!reg.test(value)){
      $b.css("border-color", "#f00");
      return false;
    }else{
      $b.css("border-color", "rgb(200, 200, 200)");
      return true;
    }
  }
  $fields = $form.find("*[name=email], *[name=phone], *[name=first_name], *[name=last_name], *[name=state_id]"); 
  $fields.keyup(function(){
    validField(this);
  });
  $fields.change(function(){
    validField(this);
  });
  var dlgAlert = new Dialog($('#dialog'));
  $("#btnNext").click(function(){
    var data = {};
    var valided = true;
    $fields.each(function(){
      if(!validField(this)){

        if(this.name == "phone")
          dlgAlert.show("", "Please enter correct phone number in format: xxxxxxxxxx");
        
        valided = false;
        return false;
      }
      data[this.name] = $.trim($(this).val());
    });
    if(!valided)
      return;
    $.post('${reverse('shopping_enroll_post')}', data, function(r){
      if(!r.success){
        dlgAlert.show("", "An error occured.");
        return;
      }
      if(r.user_exists){
        dlgAlert.show("", "Please login and request access to the course<br><a href='/login' style='font-size:27px;'>Existing user login here</a>")
      }else{
        window.location.href = "${reverse('shopping_course_list')}?email=" + data['email'];
      }
    });
  });
  $(".promo-code-switch").click(function(){
    $(this).next("div").toggle();
  });
  $(".btn-promo").click(function(){
    var self = this; 
    var course_id = $(this).attr("course_id");
    var discount_code = $.trim($(this).prev("input").val());
    var data = {course_id: course_id, discount_code: discount_code};
    if(discount_code == "")
      return;
    $.post("${reverse('shopping_valid_discount_code')}",data , function(r){
      if(r.success){
        if(r.matched){
          var $form = $(self).closest("form");
          // dlgAlert.show('', 'The code is verified, please click on the Add to Cart button to proceed');
          $form.find("input[name=hosted_button_id]").val(r.discount_link);
          $form.submit();
        }else{
          dlgAlert.show('', 'You have entered an invalid code.');
        }
      }
    });
  });
</script>
<script type="text/javascript">
  $(".check-mark").balloon({position: "bottom right", css: {maxWidth: "300px"}, offsetX: -20, offsetY: -15});
  $(".check-mark").on("mouseenter", function () {
    $(this).addClass("on");
  }).on("mouseleave", function () {
    $(this).removeClass("on");
  });
</script>

{'fraction_non_alphanumeric': 0.20128559067122667, 'fraction_numerical': 0.016069883390333346, 'mean_word_length': 3.6167015408027394, 'pattern_counts': {'":': 0, '<': 362, '<?xml version=': 0, '>': 362, 'https://': 12, 'lorem ipsum': 0, 'www.': 12, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7235194', 'n_tokens_mistral': 8468, 'n_tokens_neox': 8119, 'n_words': 1550}