<commit_before>class HomeController < ApplicationController

   def index
      weixin_base = "https://open.weixin.qq.com/connect/oauth2/authorize?"
      appid="wx5940611bb6faccc3"
      redirect_url = "http://www.cityhub.me/posts/new"
      encode_url = ERB::Util.url_encode(redirect_url)
      # encode_url = URI.escape(redirect_url) 
      url = "#{weixin_base}appid=#{appid}&redirect_uri=#{encode_url}&response_type=code&scope=snsapi_base&state=123#wechat_redirect"
      @weixin_url = url 
      # @categories_information = []<commit_msg>change weixin to sns userinfo<commit_after>class HomeController < ApplicationController

   def index
      weixin_base = "https://open.weixin.qq.com/connect/oauth2/authorize?"
      appid="wx5940611bb6faccc3"
      redirect_url = "http://www.cityhub.me/posts/new"
      encode_url = ERB::Util.url_encode(redirect_url)
      # encode_url = URI.escape(redirect_url) 
      url = "#{weixin_base}appid=#{appid}&redirect_uri=#{encode_url}&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect"
      @weixin_url = url 
      # @categories_information = []
{'fraction_non_alphanumeric': 0.1263537906137184, 'fraction_numerical': 0.023465703971119134, 'mean_word_length': 4.463054187192118, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '4132098', 'n_tokens_mistral': 402, 'n_tokens_neox': 383, 'n_words': 42}