# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

import numpy as np
import matplotlib.pyplot as plt

CHECKINS = 6442892

ci_path = '../../Dataset/loc-gowalla_totalCheckins.txt'
ci_file = open(ci_path, 'r')
ci_lines = ci_file.readlines()

ci_data = np.zeros((CHECKINS, 2), dtype=np.int32)

for ci in range(CHECKINS):
    line_split = ci_lines[ci].split("\t")
    ci_data[ci, 0] = int(line_split[0])
    ci_data[ci, 1] = int(line_split[4])
print(ci_data[:10])

np.save('../../Dataset/ci_ids.npy', ci_data)



StarcoderdataJupyterScriptsDedupFiltered