comefrom: <qiyuangong>811_Subdomain_Visit_Count_1.py
code: def subdomainVisits( cpdomains):
      domain_count = {}
      for cpdomain in cpdomains:
          count, domain = cpdomain.split(' ')
          sub_domain = domain.split('.')
          for i in range(len(sub_domain)):
              curr = '.'.join(sub_domain[i:])
              domain_count[curr] = domain_count.get(curr, 0) + int(count)
      return [str(v) + ' ' + k for k, v in domain_count.items()]
masked: def sample_funcname ( var_0 ) :
      var_1 = { }
      for var_2 in var_0 :
          var_4 , var_6 = var_2.split ( ' ' )
          var_8 = var_6.split ( '.' )
          for var_11 in range ( len ( var_8 ) ) :
              var_13 = '.'.join ( var_8 [ var_11 : ] )
              var_1 [ var_13 ] = var_1.get ( var_13 , 0 ) + int ( var_4 )
      return [ str ( var_18 ) + ' ' + var_19 for var_19 , var_18 in var_1.items ( ) ]
  