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_3 , var_4 = var_2.split ( ' ' )
          var_5 = var_4.split ( '.' )
          for var_6 in range ( len ( var_5 ) ) :
              var_7 = '.'.join ( var_5 [ var_6 : ] )
              var_1 [ var_7 ] = var_1.get ( var_7 , 0 ) + int ( var_3 )
      return [ str ( var_8 ) + ' ' + var_9 for var_9 , var_8 in var_1.items ( ) ]
  