Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(16)  |  Call(16)  |  Derive(0)  |  Import(0)

src/s/y/sysops-api-HEAD/scripts/extract_sysops_api_to_disk.py   sysops-api(Download)
      number_of_keys = len(uniqueFiles._gold.keys())
      keys_processed = 0
      for key in sorted(uniqueFiles._gold.iterkeys()):
        keys_processed += 1
        start_file_time = time.time()
          continue
 
        for key in sorted(dataDump._gold.iterkeys()):
          host, file = key.split('#')
          hostdir = base_directory + datacenter + "/" + host

src/s/y/sysops-api-HEAD/scripts/extract_sysops_cache.py   sysops-api(Download)
      sys.exit(0)
 
    for key in sorted(redisResults._gold.iterkeys()):
      host, file = key.split('#')
 
 
    sanatize_compare_inputs(options, redisResults, compareResults)
    for compare_key in sorted(compareResults._gold.iterkeys()):
      # There is only one item in redisResults._gold, but we need to extract it.  i.e. this iterator only executes once.
      for key in redisResults._gold.iterkeys():
 
    # First, for each key we found, count the number of times we saw each unique md5sum and build a list of the found keys
    for key in redisResults._gold.iterkeys():
      host, file = key.split('#')
      if redisResults._gold[key]:
    # Now that we have a count of how many times we saw each hash, iterate over each unique md5sum and find an example key.
    for md5sum in hashpipe.iterkeys():
      for key in redisResults._gold.iterkeys():
        if redisResults._gold[key] == md5sum:
          break

src/s/y/sysops-api-HEAD/scripts/extract_network_health.py   sysops-api(Download)
      if cache_results:
        # This should only be returning a single site, but we need to get access to the key.
        for key in cache_results._gold.iterkeys():
          host_stats = json.loads(bz2.decompress(cache_results._gold[key]))
    except ValueError:
						site = datacenter,
						search_string = 'global_sysops_api_interaction_times.json')
  for key in cache_results._gold.iterkeys():
    host = key.split('#')[0]
    if "nw.linkedin.com" in host:
						site = datacenter,
						search_string = "/proc/net/bonding/bond0")
  for key in cache_results._gold.iterkeys():
    host = key.split("#")[0]
    if not host_stats['machines'].get(host) or ".nw.linkedin.com" in host:
						site = datacenter,
						search_string = '/etc/hardware_identification.json@lldp-xml')
  for key in cache_results._gold.iterkeys():
    host = key.split("#")[0]
    if not host_stats['machines'].get(host) or ".nw.linkedin.com" in host:
						site = datacenter,
						search_string = '/etc/hardware_identification.json@netstat-s')
  for key in cache_results._gold.iterkeys():
    host = key.split("#")[0]
    if not host_stats['machines'].get(host) or ".nw.linkedin.com" in host:

src/s/y/sysops-api-HEAD/scripts/extract_sysctl_live_vs_persistant_entries.py   sysops-api(Download)
						search_string = '/etc/sysctl.conf')
 
  for key in persistant_results._gold.iterkeys():
    host = key.split('#')[0]
    values = {}
      break
 
    for key in live_results._gold.iterkeys():
      host = key.split('#')[0]
      for line in live_results._gold[key].splitlines():

src/s/y/sysops-api-HEAD/scripts/extract_user_sudo_privileges.py   sysops-api(Download)
						search_string = 'sudoers-MACHINE_GROUP')
 
  for key in cache_results._gold.iterkeys():
    host = key.split('#')[0]
    for line in cache_results._gold[key].splitlines():

src/s/y/sysops-api-HEAD/scripts/extract_user_account_access.py   sysops-api(Download)
  accessable_machines = {}
 
  for key in cache_results._gold.iterkeys():
    host = key.split('#')[0]
    accessable_machines[host] = None