Abstracted data loading so that data can be loaded simply through the config file. Moved Mike's LLM data generation code and my own dummy data generating code to the database folder.

This commit is contained in:
Derek Wang committed 2025-02-21 00:39:25 -08:00
1 parent 5c25a2b099
commit dd5fc9f83c
7 files changed
+284 -9

No files matched your search

+214
View File
@@ -0,0 +1,214 @@
{
"_default": {
"0": {
"user_id": "0",
"username": "user0",
"num_followers": 0,
"posts": "This is user 0's post!",
"friends": [
17,
13,
14
]
},
"1": {
"user_id": "1",
"username": "user1",
"num_followers": 1,
"posts": "This is user 1's post!",
"friends": [
8,
17,
15,
3
]
},
"2": {
"user_id": "2",
"username": "user2",
"num_followers": 4,
"posts": "This is user 2's post!",
"friends": [
9,
12
]
},
"3": {
"user_id": "3",
"username": "user3",
"num_followers": 1,
"posts": "This is user 3's post!",
"friends": [
10,
7,
8,
14
]
},
"4": {
"user_id": "4",
"username": "user4",
"num_followers": 0,
"posts": "This is user 4's post!",
"friends": [
13,
0
]
},
"5": {
"user_id": "5",
"username": "user5",
"num_followers": 4,
"posts": "This is user 5's post!",
"friends": []
},
"6": {
"user_id": "6",
"username": "user6",
"num_followers": 3,
"posts": "This is user 6's post!",
"friends": []
},
"7": {
"user_id": "7",
"username": "user7",
"num_followers": 4,
"posts": "This is user 7's post!",
"friends": [
15,
13,
11,
17
]
},
"8": {
"user_id": "8",
"username": "user8",
"num_followers": 2,
"posts": "This is user 8's post!",
"friends": [
4,
19
]
},
"9": {
"user_id": "9",
"username": "user9",
"num_followers": 0,
"posts": "This is user 9's post!",
"friends": [
2,
10
]
},
"10": {
"user_id": "10",
"username": "user10",
"num_followers": 5,
"posts": "This is user 10's post!",
"friends": [
7,
12
]
},
"11": {
"user_id": "11",
"username": "user11",
"num_followers": 1,
"posts": "This is user 11's post!",
"friends": [
12,
8,
18,
4
]
},
"12": {
"user_id": "12",
"username": "user12",
"num_followers": 1,
"posts": "This is user 12's post!",
"friends": [
5,
17,
8,
4
]
},
"13": {
"user_id": "13",
"username": "user13",
"num_followers": 4,
"posts": "This is user 13's post!",
"friends": [
16,
10,
2,
8,
1
]
},
"14": {
"user_id": "14",
"username": "user14",
"num_followers": 3,
"posts": "This is user 14's post!",
"friends": [
11
]
},
"15": {
"user_id": "15",
"username": "user15",
"num_followers": 2,
"posts": "This is user 15's post!",
"friends": [
13,
14
]
},
"16": {
"user_id": "16",
"username": "user16",
"num_followers": 5,
"posts": "This is user 16's post!",
"friends": [
13,
3,
14
]
},
"17": {
"user_id": "17",
"username": "user17",
"num_followers": 3,
"posts": "This is user 17's post!",
"friends": [
0,
19,
2,
16
]
},
"18": {
"user_id": "18",
"username": "user18",
"num_followers": 4,
"posts": "This is user 18's post!",
"friends": [
9
]
},
"19": {
"user_id": "19",
"username": "user19",
"num_followers": 1,
"posts": "This is user 19's post!",
"friends": [
1,
12,
9
]
}
}
}
+1
View File
@@ -0,0 +1 @@
{"_default": {"1": {"user_id": "0", "name": "Alex Taylor", "followers": 1295, "bio": "Avid reader and bookworm", "posts": "Just finished", "friends": ["2", "89", "20", "66", "13", "46", "58", "76", "75", "53", "95", "55", "23", "61", "71", "33", "87", "80", "86", "72", "83", "15", "30", "3", "47", "79", "6", "52", "74", "12", "26", "37", "69", "41", "45", "19", "85", "67", "9", "16", "63", "35", "24", "17", "51", "36", "38", "34", "7", "57", "81", "25", "93"]}, "2": {"user_id": "1", "name": "Alex Johnson", "followers": 3878, "bio": "Outdoor Adventures", "posts": "Completed a", "friends": ["15", "18", "11", "98", "79", "85", "57", "47", "87", "40", "32", "75"]}, "3": {"user_id": "2", "name": "John Doe", "followers": 122, "bio": "Tech enthusiast", "posts": "Just finished building a DIY smart home setup.", "friends": ["49", "45", "24", "86", "63"]}, "4": {"user_id": "11", "name": "Alex Taylor", "followers": 133, "bio": "Rock climbing and wildlife photography", "posts": "Uploaded a breathtaking photo of an eagle.", "friends": ["62", "40", "66", "36", "85", "59", "52", "20", "38", "50", "26", "24", "45", "46", "71", "56", "68", "12", "17", "39", "22", "10", "77", "79", "83", "94", "34", "1", "54", "43", "23", "74", "18", "65", "33", "16", "8", "84", "93", "41", "72", "5", "60", "70", "95", "73", "57", "75", "63", "25", "7", "44", "13", "78", "9", "47", "76", "48", "6", "35", "99", "69", "32", "67", "96", "89", "42", "19", "91", "3", "90", "37", "55", "58", "64", "0", "21", "27", "87", "82", "28", "98", "80", "53", "14", "49", "4"]}, "5": {"user_id": "14", "name": "Max Johnson", "followers": 1398, "bio": "Hiking & Camping", "posts": "Just completed a solo backpacking trip.", "friends": ["99", "67", "16", "45", "57", "34", "32", "39", "52", "64", "41", "6", "58", "79", "12", "94", "29", "20", "80", "47", "18", "26", "25", "48", "37", "3", "69", "4", "54", "31", "9", "87", "33", "49", "60", "84", "10", "23", "62", "56", "76", "96", "30", "68", "63", "15", "40", "44", "93", "46", "85", "81", "35", "72", "98", "65", "92", "61", "66", "11", "38", "28", "77", "97", "78", "42", "13", "27", "86", "55", "91", "19", "88", "8", "83", "73", "24", "95", "90", "53", "17", "74", "22", "36", "21", "43", "59", "71", "70", "82", "51", "50", "5", "89", "7"]}, "6": {"user_id": "15", "name": "Alex Morgan", "followers": 2538, "bio": "Loving life through sports and fitness!", "posts": "Just set a new personal best in the", "friends": ["25", "46", "71", "77", "66", "23", "72", "53", "19", "87", "32", "59", "41", "56", "33", "39", "93", "94", "92", "85", "88", "90", "37", "75", "55", "10", "24", "81", "80", "44", "47", "61", "76", "0", "6", "74", "49", "98", "4", "51", "42", "13", "3", "5", "60", "65", "91", "22", "27", "8", "14", "62", "43", "78", "69", "89"]}, "7": {"user_id": "16", "name": "Alex Taylor", "followers": 2595, "bio": "Music Enthusiast", "posts": "Just discovered a new favorite indie band.", "friends": ["24", "45", "36", "20", "82", "46", "13", "77", "54", "55", "11", "37", "27", "30", "26", "57", "73", "60", "85", "80", "75", "81", "34", "56", "25", "88", "49", "10", "42", "18", "90", "95", "64", "72", "69", "31", "52", "99", "22", "40", "29"]}, "8": {"user_id": "18", "name": "Alex Johnson", "followers": 2164, "bio": "Avid reader and traveler", "posts": "Just finished reading", "friends": ["82", "85", "11", "38", "5", "32", "65", "48", "8", "97", "54", "28", "14", "2", "60", "58", "50", "22", "90", "4", "70", "87", "21", "92", "74", "19", "84", "47", "63", "39", "57", "80", "96", "78"]}, "9": {"user_id": "19", "name": "Jordan Baker", "followers": 4851, "bio": "Art and Literature", "posts": "Finished reading 'The Catcher in the Rye'.", "friends": ["37", "23", "33", "92", "40", "14", "82", "75", "39", "76", "34", "7", "2", "93", "55", "4", "89", "74", "99", "80", "38", "58", "27", "29", "87", "77", "66", "32", "64", "17", "11", "20", "31", "78", "81", "97", "47", "94", "98", "35", "83", "42", "65", "45", "18", "79", "61", "46", "53", "28", "63", "90"]}, "10": {"user_id": "20", "name": "Bob Johnson", "followers": 393, "bio": "Music enthusiast & aspiring DJ", "posts": "Added new tracks to my 'Beats to Chill' playlist.", "friends": ["62", "81", "39", "88", "95", "28", "74", "45", "24", "43", "41", "76", "80", "10", "21", "71", "37", "2", "1", "11", "18", "9", "67", "0", "22", "25", "15", "57", "49", "56", "48", "50", "58", "75", "16", "86", "35", "46", "34", "51", "27", "92", "79", "68", "13", "72", "63", "59", "36", "23", "38", "32", "99", "96", "87", "3", "33", "6", "94", "60", "70", "97"]}, "11": {"user_id": "21", "name": "", "followers": 4490, "bio": "the user", "posts": "", "friends": ["27", "14", "29", "38", "7", "11", "54", "77", "92", "5", "81", "39", "25", "49", "94", "70", "41", "3", "13", "74", "75", "80", "20", "55", "85", "1", "31", "56", "53", "62", "2", "66", "22", "72", "37", "44", "86", "4", "68", "64", "67", "47", "24", "59", "83", "8", "73", "98", "43", "36", "35", "87", "10", "16", "42", "26", "40", "69", Line truncated