mirror of
https://github.com/DavidGailleton/42-Piscine_Python.git
synced 2026-03-14 05:06:55 +01:00
Module 9 ex0 done + ex1 WIP
This commit is contained in:
16
09/generated_data/alien_contacts.csv
Normal file
16
09/generated_data/alien_contacts.csv
Normal file
@@ -0,0 +1,16 @@
|
||||
contact_id,contact_type,duration_minutes,is_verified,location,message_received,signal_strength,timestamp,witness_count
|
||||
AC_2024_001,visual,99,False,"Atacama Desert, Chile",Greetings from Zeta Reticuli,9.6,2024-01-20T00:00:00,11
|
||||
AC_2024_002,radio,152,False,"Mauna Kea Observatory, Hawaii",,5.6,2024-08-20T00:00:00,6
|
||||
AC_2024_003,telepathic,19,False,"Very Large Array, New Mexico",,4.5,2024-11-15T00:00:00,14
|
||||
AC_2024_004,telepathic,46,False,"Roswell, New Mexico",,2.4,2024-02-24T00:00:00,9
|
||||
AC_2024_005,telepathic,134,False,"SETI Institute, California",Warning about solar flare activity,6.4,2024-09-10T00:00:00,5
|
||||
AC_2024_006,radio,20,False,"Area 51, Nevada",,2.7,2024-02-02T00:00:00,14
|
||||
AC_2024_007,physical,138,True,"Atacama Desert, Chile",Request for peaceful contact,9.0,2024-03-25T00:00:00,10
|
||||
AC_2024_008,radio,122,True,"Area 51, Nevada",Unknown language pattern identified,8.6,2024-11-30T00:00:00,13
|
||||
AC_2024_009,visual,25,False,"Mauna Kea Observatory, Hawaii",,2.1,2024-09-27T00:00:00,13
|
||||
AC_2024_010,physical,52,True,"Area 51, Nevada",,4.3,2024-06-12T00:00:00,11
|
||||
AC_2024_011,radio,235,False,"Roswell, New Mexico",,3.7,2024-11-05T00:00:00,13
|
||||
AC_2024_012,radio,111,False,International Space Station,,5.3,2024-07-04T00:00:00,10
|
||||
AC_2024_013,visual,228,False,Antarctic Research Station,,6.8,2024-02-12T00:00:00,11
|
||||
AC_2024_014,radio,113,False,"Atacama Desert, Chile",Mathematical sequence detected: prime numbers,7.2,2024-10-20T00:00:00,8
|
||||
AC_2024_015,radio,9,False,"Roswell, New Mexico",,2.1,2024-01-02T00:00:00,13
|
||||
|
167
09/generated_data/alien_contacts.json
Normal file
167
09/generated_data/alien_contacts.json
Normal file
@@ -0,0 +1,167 @@
|
||||
[
|
||||
{
|
||||
"contact_id": "AC_2024_001",
|
||||
"timestamp": "2024-01-20T00:00:00",
|
||||
"location": "Atacama Desert, Chile",
|
||||
"contact_type": "visual",
|
||||
"signal_strength": 9.6,
|
||||
"duration_minutes": 99,
|
||||
"witness_count": 11,
|
||||
"message_received": "Greetings from Zeta Reticuli",
|
||||
"is_verified": false
|
||||
},
|
||||
{
|
||||
"contact_id": "AC_2024_002",
|
||||
"timestamp": "2024-08-20T00:00:00",
|
||||
"location": "Mauna Kea Observatory, Hawaii",
|
||||
"contact_type": "radio",
|
||||
"signal_strength": 5.6,
|
||||
"duration_minutes": 152,
|
||||
"witness_count": 6,
|
||||
"message_received": null,
|
||||
"is_verified": false
|
||||
},
|
||||
{
|
||||
"contact_id": "AC_2024_003",
|
||||
"timestamp": "2024-11-15T00:00:00",
|
||||
"location": "Very Large Array, New Mexico",
|
||||
"contact_type": "telepathic",
|
||||
"signal_strength": 4.5,
|
||||
"duration_minutes": 19,
|
||||
"witness_count": 14,
|
||||
"message_received": null,
|
||||
"is_verified": false
|
||||
},
|
||||
{
|
||||
"contact_id": "AC_2024_004",
|
||||
"timestamp": "2024-02-24T00:00:00",
|
||||
"location": "Roswell, New Mexico",
|
||||
"contact_type": "telepathic",
|
||||
"signal_strength": 2.4,
|
||||
"duration_minutes": 46,
|
||||
"witness_count": 9,
|
||||
"message_received": null,
|
||||
"is_verified": false
|
||||
},
|
||||
{
|
||||
"contact_id": "AC_2024_005",
|
||||
"timestamp": "2024-09-10T00:00:00",
|
||||
"location": "SETI Institute, California",
|
||||
"contact_type": "telepathic",
|
||||
"signal_strength": 6.4,
|
||||
"duration_minutes": 134,
|
||||
"witness_count": 5,
|
||||
"message_received": "Warning about solar flare activity",
|
||||
"is_verified": false
|
||||
},
|
||||
{
|
||||
"contact_id": "AC_2024_006",
|
||||
"timestamp": "2024-02-02T00:00:00",
|
||||
"location": "Area 51, Nevada",
|
||||
"contact_type": "radio",
|
||||
"signal_strength": 2.7,
|
||||
"duration_minutes": 20,
|
||||
"witness_count": 14,
|
||||
"message_received": null,
|
||||
"is_verified": false
|
||||
},
|
||||
{
|
||||
"contact_id": "AC_2024_007",
|
||||
"timestamp": "2024-03-25T00:00:00",
|
||||
"location": "Atacama Desert, Chile",
|
||||
"contact_type": "physical",
|
||||
"signal_strength": 9.0,
|
||||
"duration_minutes": 138,
|
||||
"witness_count": 10,
|
||||
"message_received": "Request for peaceful contact",
|
||||
"is_verified": true
|
||||
},
|
||||
{
|
||||
"contact_id": "AC_2024_008",
|
||||
"timestamp": "2024-11-30T00:00:00",
|
||||
"location": "Area 51, Nevada",
|
||||
"contact_type": "radio",
|
||||
"signal_strength": 8.6,
|
||||
"duration_minutes": 122,
|
||||
"witness_count": 13,
|
||||
"message_received": "Unknown language pattern identified",
|
||||
"is_verified": true
|
||||
},
|
||||
{
|
||||
"contact_id": "AC_2024_009",
|
||||
"timestamp": "2024-09-27T00:00:00",
|
||||
"location": "Mauna Kea Observatory, Hawaii",
|
||||
"contact_type": "visual",
|
||||
"signal_strength": 2.1,
|
||||
"duration_minutes": 25,
|
||||
"witness_count": 13,
|
||||
"message_received": null,
|
||||
"is_verified": false
|
||||
},
|
||||
{
|
||||
"contact_id": "AC_2024_010",
|
||||
"timestamp": "2024-06-12T00:00:00",
|
||||
"location": "Area 51, Nevada",
|
||||
"contact_type": "physical",
|
||||
"signal_strength": 4.3,
|
||||
"duration_minutes": 52,
|
||||
"witness_count": 11,
|
||||
"message_received": null,
|
||||
"is_verified": true
|
||||
},
|
||||
{
|
||||
"contact_id": "AC_2024_011",
|
||||
"timestamp": "2024-11-05T00:00:00",
|
||||
"location": "Roswell, New Mexico",
|
||||
"contact_type": "radio",
|
||||
"signal_strength": 3.7,
|
||||
"duration_minutes": 235,
|
||||
"witness_count": 13,
|
||||
"message_received": null,
|
||||
"is_verified": false
|
||||
},
|
||||
{
|
||||
"contact_id": "AC_2024_012",
|
||||
"timestamp": "2024-07-04T00:00:00",
|
||||
"location": "International Space Station",
|
||||
"contact_type": "radio",
|
||||
"signal_strength": 5.3,
|
||||
"duration_minutes": 111,
|
||||
"witness_count": 10,
|
||||
"message_received": null,
|
||||
"is_verified": false
|
||||
},
|
||||
{
|
||||
"contact_id": "AC_2024_013",
|
||||
"timestamp": "2024-02-12T00:00:00",
|
||||
"location": "Antarctic Research Station",
|
||||
"contact_type": "visual",
|
||||
"signal_strength": 6.8,
|
||||
"duration_minutes": 228,
|
||||
"witness_count": 11,
|
||||
"message_received": null,
|
||||
"is_verified": false
|
||||
},
|
||||
{
|
||||
"contact_id": "AC_2024_014",
|
||||
"timestamp": "2024-10-20T00:00:00",
|
||||
"location": "Atacama Desert, Chile",
|
||||
"contact_type": "radio",
|
||||
"signal_strength": 7.2,
|
||||
"duration_minutes": 113,
|
||||
"witness_count": 8,
|
||||
"message_received": "Mathematical sequence detected: prime numbers",
|
||||
"is_verified": false
|
||||
},
|
||||
{
|
||||
"contact_id": "AC_2024_015",
|
||||
"timestamp": "2024-01-02T00:00:00",
|
||||
"location": "Roswell, New Mexico",
|
||||
"contact_type": "radio",
|
||||
"signal_strength": 2.1,
|
||||
"duration_minutes": 9,
|
||||
"witness_count": 13,
|
||||
"message_received": null,
|
||||
"is_verified": false
|
||||
}
|
||||
]
|
||||
171
09/generated_data/alien_contacts.py
Normal file
171
09/generated_data/alien_contacts.py
Normal file
@@ -0,0 +1,171 @@
|
||||
"""
|
||||
Generated test data for alien_contacts
|
||||
"""
|
||||
|
||||
ALIEN_CONTACTS = [
|
||||
{
|
||||
'contact_id': 'AC_2024_001',
|
||||
'timestamp': '2024-01-20T00:00:00',
|
||||
'location': 'Atacama Desert, Chile',
|
||||
'contact_type': 'visual',
|
||||
'signal_strength': 9.6,
|
||||
'duration_minutes': 99,
|
||||
'witness_count': 11,
|
||||
'message_received': 'Greetings from Zeta Reticuli',
|
||||
'is_verified': False
|
||||
},
|
||||
{
|
||||
'contact_id': 'AC_2024_002',
|
||||
'timestamp': '2024-08-20T00:00:00',
|
||||
'location': 'Mauna Kea Observatory, Hawaii',
|
||||
'contact_type': 'radio',
|
||||
'signal_strength': 5.6,
|
||||
'duration_minutes': 152,
|
||||
'witness_count': 6,
|
||||
'message_received': None,
|
||||
'is_verified': False
|
||||
},
|
||||
{
|
||||
'contact_id': 'AC_2024_003',
|
||||
'timestamp': '2024-11-15T00:00:00',
|
||||
'location': 'Very Large Array, New Mexico',
|
||||
'contact_type': 'telepathic',
|
||||
'signal_strength': 4.5,
|
||||
'duration_minutes': 19,
|
||||
'witness_count': 14,
|
||||
'message_received': None,
|
||||
'is_verified': False
|
||||
},
|
||||
{
|
||||
'contact_id': 'AC_2024_004',
|
||||
'timestamp': '2024-02-24T00:00:00',
|
||||
'location': 'Roswell, New Mexico',
|
||||
'contact_type': 'telepathic',
|
||||
'signal_strength': 2.4,
|
||||
'duration_minutes': 46,
|
||||
'witness_count': 9,
|
||||
'message_received': None,
|
||||
'is_verified': False
|
||||
},
|
||||
{
|
||||
'contact_id': 'AC_2024_005',
|
||||
'timestamp': '2024-09-10T00:00:00',
|
||||
'location': 'SETI Institute, California',
|
||||
'contact_type': 'telepathic',
|
||||
'signal_strength': 6.4,
|
||||
'duration_minutes': 134,
|
||||
'witness_count': 5,
|
||||
'message_received': 'Warning about solar flare activity',
|
||||
'is_verified': False
|
||||
},
|
||||
{
|
||||
'contact_id': 'AC_2024_006',
|
||||
'timestamp': '2024-02-02T00:00:00',
|
||||
'location': 'Area 51, Nevada',
|
||||
'contact_type': 'radio',
|
||||
'signal_strength': 2.7,
|
||||
'duration_minutes': 20,
|
||||
'witness_count': 14,
|
||||
'message_received': None,
|
||||
'is_verified': False
|
||||
},
|
||||
{
|
||||
'contact_id': 'AC_2024_007',
|
||||
'timestamp': '2024-03-25T00:00:00',
|
||||
'location': 'Atacama Desert, Chile',
|
||||
'contact_type': 'physical',
|
||||
'signal_strength': 9.0,
|
||||
'duration_minutes': 138,
|
||||
'witness_count': 10,
|
||||
'message_received': 'Request for peaceful contact',
|
||||
'is_verified': True
|
||||
},
|
||||
{
|
||||
'contact_id': 'AC_2024_008',
|
||||
'timestamp': '2024-11-30T00:00:00',
|
||||
'location': 'Area 51, Nevada',
|
||||
'contact_type': 'radio',
|
||||
'signal_strength': 8.6,
|
||||
'duration_minutes': 122,
|
||||
'witness_count': 13,
|
||||
'message_received': 'Unknown language pattern identified',
|
||||
'is_verified': True
|
||||
},
|
||||
{
|
||||
'contact_id': 'AC_2024_009',
|
||||
'timestamp': '2024-09-27T00:00:00',
|
||||
'location': 'Mauna Kea Observatory, Hawaii',
|
||||
'contact_type': 'visual',
|
||||
'signal_strength': 2.1,
|
||||
'duration_minutes': 25,
|
||||
'witness_count': 13,
|
||||
'message_received': None,
|
||||
'is_verified': False
|
||||
},
|
||||
{
|
||||
'contact_id': 'AC_2024_010',
|
||||
'timestamp': '2024-06-12T00:00:00',
|
||||
'location': 'Area 51, Nevada',
|
||||
'contact_type': 'physical',
|
||||
'signal_strength': 4.3,
|
||||
'duration_minutes': 52,
|
||||
'witness_count': 11,
|
||||
'message_received': None,
|
||||
'is_verified': True
|
||||
},
|
||||
{
|
||||
'contact_id': 'AC_2024_011',
|
||||
'timestamp': '2024-11-05T00:00:00',
|
||||
'location': 'Roswell, New Mexico',
|
||||
'contact_type': 'radio',
|
||||
'signal_strength': 3.7,
|
||||
'duration_minutes': 235,
|
||||
'witness_count': 13,
|
||||
'message_received': None,
|
||||
'is_verified': False
|
||||
},
|
||||
{
|
||||
'contact_id': 'AC_2024_012',
|
||||
'timestamp': '2024-07-04T00:00:00',
|
||||
'location': 'International Space Station',
|
||||
'contact_type': 'radio',
|
||||
'signal_strength': 5.3,
|
||||
'duration_minutes': 111,
|
||||
'witness_count': 10,
|
||||
'message_received': None,
|
||||
'is_verified': False
|
||||
},
|
||||
{
|
||||
'contact_id': 'AC_2024_013',
|
||||
'timestamp': '2024-02-12T00:00:00',
|
||||
'location': 'Antarctic Research Station',
|
||||
'contact_type': 'visual',
|
||||
'signal_strength': 6.8,
|
||||
'duration_minutes': 228,
|
||||
'witness_count': 11,
|
||||
'message_received': None,
|
||||
'is_verified': False
|
||||
},
|
||||
{
|
||||
'contact_id': 'AC_2024_014',
|
||||
'timestamp': '2024-10-20T00:00:00',
|
||||
'location': 'Atacama Desert, Chile',
|
||||
'contact_type': 'radio',
|
||||
'signal_strength': 7.2,
|
||||
'duration_minutes': 113,
|
||||
'witness_count': 8,
|
||||
'message_received': 'Mathematical sequence detected: prime numbers',
|
||||
'is_verified': False
|
||||
},
|
||||
{
|
||||
'contact_id': 'AC_2024_015',
|
||||
'timestamp': '2024-01-02T00:00:00',
|
||||
'location': 'Roswell, New Mexico',
|
||||
'contact_type': 'radio',
|
||||
'signal_strength': 2.1,
|
||||
'duration_minutes': 9,
|
||||
'witness_count': 13,
|
||||
'message_received': None,
|
||||
'is_verified': False
|
||||
}
|
||||
]
|
||||
24
09/generated_data/invalid_contacts.json
Normal file
24
09/generated_data/invalid_contacts.json
Normal file
@@ -0,0 +1,24 @@
|
||||
[
|
||||
{
|
||||
"contact_id": "WRONG_FORMAT",
|
||||
"timestamp": "2024-01-15T14:30:00",
|
||||
"location": "Area 51",
|
||||
"contact_type": "radio",
|
||||
"signal_strength": 8.5,
|
||||
"duration_minutes": 45,
|
||||
"witness_count": 5,
|
||||
"message_received": null,
|
||||
"is_verified": false
|
||||
},
|
||||
{
|
||||
"contact_id": "AC_2024_002",
|
||||
"timestamp": "2024-01-16T09:15:00",
|
||||
"location": "Roswell",
|
||||
"contact_type": "telepathic",
|
||||
"signal_strength": 6.2,
|
||||
"duration_minutes": 30,
|
||||
"witness_count": 1,
|
||||
"message_received": null,
|
||||
"is_verified": false
|
||||
}
|
||||
]
|
||||
20
09/generated_data/invalid_stations.json
Normal file
20
09/generated_data/invalid_stations.json
Normal file
@@ -0,0 +1,20 @@
|
||||
[
|
||||
{
|
||||
"station_id": "TOOLONG123456",
|
||||
"name": "Test Station",
|
||||
"crew_size": 25,
|
||||
"power_level": 85.0,
|
||||
"oxygen_level": 92.0,
|
||||
"last_maintenance": "2024-01-15T10:30:00",
|
||||
"is_operational": true
|
||||
},
|
||||
{
|
||||
"station_id": "TS",
|
||||
"name": "",
|
||||
"crew_size": 0,
|
||||
"power_level": -10.0,
|
||||
"oxygen_level": 150.0,
|
||||
"last_maintenance": "2024-01-15T10:30:00",
|
||||
"is_operational": true
|
||||
}
|
||||
]
|
||||
309
09/generated_data/space_missions.json
Normal file
309
09/generated_data/space_missions.json
Normal file
@@ -0,0 +1,309 @@
|
||||
[
|
||||
{
|
||||
"mission_id": "M2024_TITAN",
|
||||
"mission_name": "Solar Observatory Research Mission",
|
||||
"destination": "Solar Observatory",
|
||||
"launch_date": "2024-03-30T00:00:00",
|
||||
"duration_days": 451,
|
||||
"crew": [
|
||||
{
|
||||
"member_id": "CM001",
|
||||
"name": "Sarah Williams",
|
||||
"rank": "captain",
|
||||
"age": 43,
|
||||
"specialization": "Mission Command",
|
||||
"years_experience": 19,
|
||||
"is_active": true
|
||||
},
|
||||
{
|
||||
"member_id": "CM002",
|
||||
"name": "James Hernandez",
|
||||
"rank": "captain",
|
||||
"age": 43,
|
||||
"specialization": "Pilot",
|
||||
"years_experience": 30,
|
||||
"is_active": true
|
||||
},
|
||||
{
|
||||
"member_id": "CM003",
|
||||
"name": "Anna Jones",
|
||||
"rank": "cadet",
|
||||
"age": 35,
|
||||
"specialization": "Communications",
|
||||
"years_experience": 15,
|
||||
"is_active": true
|
||||
},
|
||||
{
|
||||
"member_id": "CM004",
|
||||
"name": "David Smith",
|
||||
"rank": "commander",
|
||||
"age": 27,
|
||||
"specialization": "Security",
|
||||
"years_experience": 15,
|
||||
"is_active": true
|
||||
},
|
||||
{
|
||||
"member_id": "CM005",
|
||||
"name": "Maria Jones",
|
||||
"rank": "cadet",
|
||||
"age": 55,
|
||||
"specialization": "Research",
|
||||
"years_experience": 30,
|
||||
"is_active": true
|
||||
}
|
||||
],
|
||||
"mission_status": "planned",
|
||||
"budget_millions": 2208.1
|
||||
},
|
||||
{
|
||||
"mission_id": "M2024_MARS",
|
||||
"mission_name": "Jupiter Orbit Colony Mission",
|
||||
"destination": "Jupiter Orbit",
|
||||
"launch_date": "2024-10-01T00:00:00",
|
||||
"duration_days": 1065,
|
||||
"crew": [
|
||||
{
|
||||
"member_id": "CM011",
|
||||
"name": "Emma Brown",
|
||||
"rank": "commander",
|
||||
"age": 49,
|
||||
"specialization": "Mission Command",
|
||||
"years_experience": 27,
|
||||
"is_active": true
|
||||
},
|
||||
{
|
||||
"member_id": "CM012",
|
||||
"name": "John Hernandez",
|
||||
"rank": "lieutenant",
|
||||
"age": 36,
|
||||
"specialization": "Science Officer",
|
||||
"years_experience": 22,
|
||||
"is_active": true
|
||||
},
|
||||
{
|
||||
"member_id": "CM013",
|
||||
"name": "Sofia Rodriguez",
|
||||
"rank": "commander",
|
||||
"age": 29,
|
||||
"specialization": "Life Support",
|
||||
"years_experience": 20,
|
||||
"is_active": true
|
||||
},
|
||||
{
|
||||
"member_id": "CM014",
|
||||
"name": "Sofia Lopez",
|
||||
"rank": "lieutenant",
|
||||
"age": 44,
|
||||
"specialization": "Systems Analysis",
|
||||
"years_experience": 25,
|
||||
"is_active": true
|
||||
}
|
||||
],
|
||||
"mission_status": "planned",
|
||||
"budget_millions": 4626.0
|
||||
},
|
||||
{
|
||||
"mission_id": "M2024_EUROPA",
|
||||
"mission_name": "Europa Colony Mission",
|
||||
"destination": "Europa",
|
||||
"launch_date": "2024-02-07T00:00:00",
|
||||
"duration_days": 666,
|
||||
"crew": [
|
||||
{
|
||||
"member_id": "CM021",
|
||||
"name": "Lisa Garcia",
|
||||
"rank": "captain",
|
||||
"age": 36,
|
||||
"specialization": "Medical Officer",
|
||||
"years_experience": 12,
|
||||
"is_active": true
|
||||
},
|
||||
{
|
||||
"member_id": "CM022",
|
||||
"name": "John Garcia",
|
||||
"rank": "cadet",
|
||||
"age": 46,
|
||||
"specialization": "Security",
|
||||
"years_experience": 25,
|
||||
"is_active": true
|
||||
},
|
||||
{
|
||||
"member_id": "CM023",
|
||||
"name": "Michael Johnson",
|
||||
"rank": "officer",
|
||||
"age": 54,
|
||||
"specialization": "Research",
|
||||
"years_experience": 30,
|
||||
"is_active": true
|
||||
},
|
||||
{
|
||||
"member_id": "CM024",
|
||||
"name": "Sarah Rodriguez",
|
||||
"rank": "lieutenant",
|
||||
"age": 54,
|
||||
"specialization": "Research",
|
||||
"years_experience": 30,
|
||||
"is_active": true
|
||||
},
|
||||
{
|
||||
"member_id": "CM025",
|
||||
"name": "Maria Smith",
|
||||
"rank": "cadet",
|
||||
"age": 38,
|
||||
"specialization": "Communications",
|
||||
"years_experience": 15,
|
||||
"is_active": true
|
||||
}
|
||||
],
|
||||
"mission_status": "planned",
|
||||
"budget_millions": 4976.0
|
||||
},
|
||||
{
|
||||
"mission_id": "M2024_LUNA",
|
||||
"mission_name": "Mars Colony Mission",
|
||||
"destination": "Mars",
|
||||
"launch_date": "2024-06-13T00:00:00",
|
||||
"duration_days": 222,
|
||||
"crew": [
|
||||
{
|
||||
"member_id": "CM031",
|
||||
"name": "Anna Davis",
|
||||
"rank": "commander",
|
||||
"age": 27,
|
||||
"specialization": "Communications",
|
||||
"years_experience": 14,
|
||||
"is_active": true
|
||||
},
|
||||
{
|
||||
"member_id": "CM032",
|
||||
"name": "Elena Garcia",
|
||||
"rank": "lieutenant",
|
||||
"age": 42,
|
||||
"specialization": "Science Officer",
|
||||
"years_experience": 23,
|
||||
"is_active": true
|
||||
},
|
||||
{
|
||||
"member_id": "CM033",
|
||||
"name": "Anna Brown",
|
||||
"rank": "officer",
|
||||
"age": 55,
|
||||
"specialization": "Engineering",
|
||||
"years_experience": 30,
|
||||
"is_active": true
|
||||
},
|
||||
{
|
||||
"member_id": "CM034",
|
||||
"name": "Emma Smith",
|
||||
"rank": "captain",
|
||||
"age": 37,
|
||||
"specialization": "Research",
|
||||
"years_experience": 23,
|
||||
"is_active": true
|
||||
},
|
||||
{
|
||||
"member_id": "CM035",
|
||||
"name": "Sofia Smith",
|
||||
"rank": "lieutenant",
|
||||
"age": 53,
|
||||
"specialization": "Security",
|
||||
"years_experience": 30,
|
||||
"is_active": true
|
||||
},
|
||||
{
|
||||
"member_id": "CM036",
|
||||
"name": "Maria Hernandez",
|
||||
"rank": "commander",
|
||||
"age": 41,
|
||||
"specialization": "Medical Officer",
|
||||
"years_experience": 30,
|
||||
"is_active": true
|
||||
},
|
||||
{
|
||||
"member_id": "CM037",
|
||||
"name": "John Hernandez",
|
||||
"rank": "officer",
|
||||
"age": 42,
|
||||
"specialization": "Science Officer",
|
||||
"years_experience": 20,
|
||||
"is_active": true
|
||||
}
|
||||
],
|
||||
"mission_status": "planned",
|
||||
"budget_millions": 4984.6
|
||||
},
|
||||
{
|
||||
"mission_id": "M2024_EUROPA",
|
||||
"mission_name": "Saturn Rings Research Mission",
|
||||
"destination": "Saturn Rings",
|
||||
"launch_date": "2024-09-18T00:00:00",
|
||||
"duration_days": 602,
|
||||
"crew": [
|
||||
{
|
||||
"member_id": "CM041",
|
||||
"name": "William Davis",
|
||||
"rank": "captain",
|
||||
"age": 35,
|
||||
"specialization": "Medical Officer",
|
||||
"years_experience": 14,
|
||||
"is_active": true
|
||||
},
|
||||
{
|
||||
"member_id": "CM042",
|
||||
"name": "Sarah Smith",
|
||||
"rank": "captain",
|
||||
"age": 55,
|
||||
"specialization": "Research",
|
||||
"years_experience": 30,
|
||||
"is_active": true
|
||||
},
|
||||
{
|
||||
"member_id": "CM043",
|
||||
"name": "Elena Garcia",
|
||||
"rank": "commander",
|
||||
"age": 55,
|
||||
"specialization": "Research",
|
||||
"years_experience": 30,
|
||||
"is_active": true
|
||||
},
|
||||
{
|
||||
"member_id": "CM044",
|
||||
"name": "Sofia Williams",
|
||||
"rank": "officer",
|
||||
"age": 30,
|
||||
"specialization": "Systems Analysis",
|
||||
"years_experience": 9,
|
||||
"is_active": true
|
||||
},
|
||||
{
|
||||
"member_id": "CM045",
|
||||
"name": "Sarah Jones",
|
||||
"rank": "lieutenant",
|
||||
"age": 25,
|
||||
"specialization": "Maintenance",
|
||||
"years_experience": 11,
|
||||
"is_active": true
|
||||
},
|
||||
{
|
||||
"member_id": "CM046",
|
||||
"name": "Lisa Rodriguez",
|
||||
"rank": "officer",
|
||||
"age": 30,
|
||||
"specialization": "Life Support",
|
||||
"years_experience": 12,
|
||||
"is_active": true
|
||||
},
|
||||
{
|
||||
"member_id": "CM047",
|
||||
"name": "Sarah Smith",
|
||||
"rank": "cadet",
|
||||
"age": 28,
|
||||
"specialization": "Pilot",
|
||||
"years_experience": 8,
|
||||
"is_active": true
|
||||
}
|
||||
],
|
||||
"mission_status": "planned",
|
||||
"budget_millions": 1092.6
|
||||
}
|
||||
]
|
||||
313
09/generated_data/space_missions.py
Normal file
313
09/generated_data/space_missions.py
Normal file
@@ -0,0 +1,313 @@
|
||||
"""
|
||||
Generated test data for space_missions
|
||||
"""
|
||||
|
||||
SPACE_MISSIONS = [
|
||||
{
|
||||
'mission_id': 'M2024_TITAN',
|
||||
'mission_name': 'Solar Observatory Research Mission',
|
||||
'destination': 'Solar Observatory',
|
||||
'launch_date': '2024-03-30T00:00:00',
|
||||
'duration_days': 451,
|
||||
'crew': [
|
||||
{
|
||||
'member_id': 'CM001',
|
||||
'name': 'Sarah Williams',
|
||||
'rank': 'captain',
|
||||
'age': 43,
|
||||
'specialization': 'Mission Command',
|
||||
'years_experience': 19,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'member_id': 'CM002',
|
||||
'name': 'James Hernandez',
|
||||
'rank': 'captain',
|
||||
'age': 43,
|
||||
'specialization': 'Pilot',
|
||||
'years_experience': 30,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'member_id': 'CM003',
|
||||
'name': 'Anna Jones',
|
||||
'rank': 'cadet',
|
||||
'age': 35,
|
||||
'specialization': 'Communications',
|
||||
'years_experience': 15,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'member_id': 'CM004',
|
||||
'name': 'David Smith',
|
||||
'rank': 'commander',
|
||||
'age': 27,
|
||||
'specialization': 'Security',
|
||||
'years_experience': 15,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'member_id': 'CM005',
|
||||
'name': 'Maria Jones',
|
||||
'rank': 'cadet',
|
||||
'age': 55,
|
||||
'specialization': 'Research',
|
||||
'years_experience': 30,
|
||||
'is_active': True
|
||||
}
|
||||
],
|
||||
'mission_status': 'planned',
|
||||
'budget_millions': 2208.1
|
||||
},
|
||||
{
|
||||
'mission_id': 'M2024_MARS',
|
||||
'mission_name': 'Jupiter Orbit Colony Mission',
|
||||
'destination': 'Jupiter Orbit',
|
||||
'launch_date': '2024-10-01T00:00:00',
|
||||
'duration_days': 1065,
|
||||
'crew': [
|
||||
{
|
||||
'member_id': 'CM011',
|
||||
'name': 'Emma Brown',
|
||||
'rank': 'commander',
|
||||
'age': 49,
|
||||
'specialization': 'Mission Command',
|
||||
'years_experience': 27,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'member_id': 'CM012',
|
||||
'name': 'John Hernandez',
|
||||
'rank': 'lieutenant',
|
||||
'age': 36,
|
||||
'specialization': 'Science Officer',
|
||||
'years_experience': 22,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'member_id': 'CM013',
|
||||
'name': 'Sofia Rodriguez',
|
||||
'rank': 'commander',
|
||||
'age': 29,
|
||||
'specialization': 'Life Support',
|
||||
'years_experience': 20,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'member_id': 'CM014',
|
||||
'name': 'Sofia Lopez',
|
||||
'rank': 'lieutenant',
|
||||
'age': 44,
|
||||
'specialization': 'Systems Analysis',
|
||||
'years_experience': 25,
|
||||
'is_active': True
|
||||
}
|
||||
],
|
||||
'mission_status': 'planned',
|
||||
'budget_millions': 4626.0
|
||||
},
|
||||
{
|
||||
'mission_id': 'M2024_EUROPA',
|
||||
'mission_name': 'Europa Colony Mission',
|
||||
'destination': 'Europa',
|
||||
'launch_date': '2024-02-07T00:00:00',
|
||||
'duration_days': 666,
|
||||
'crew': [
|
||||
{
|
||||
'member_id': 'CM021',
|
||||
'name': 'Lisa Garcia',
|
||||
'rank': 'captain',
|
||||
'age': 36,
|
||||
'specialization': 'Medical Officer',
|
||||
'years_experience': 12,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'member_id': 'CM022',
|
||||
'name': 'John Garcia',
|
||||
'rank': 'cadet',
|
||||
'age': 46,
|
||||
'specialization': 'Security',
|
||||
'years_experience': 25,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'member_id': 'CM023',
|
||||
'name': 'Michael Johnson',
|
||||
'rank': 'officer',
|
||||
'age': 54,
|
||||
'specialization': 'Research',
|
||||
'years_experience': 30,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'member_id': 'CM024',
|
||||
'name': 'Sarah Rodriguez',
|
||||
'rank': 'lieutenant',
|
||||
'age': 54,
|
||||
'specialization': 'Research',
|
||||
'years_experience': 30,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'member_id': 'CM025',
|
||||
'name': 'Maria Smith',
|
||||
'rank': 'cadet',
|
||||
'age': 38,
|
||||
'specialization': 'Communications',
|
||||
'years_experience': 15,
|
||||
'is_active': True
|
||||
}
|
||||
],
|
||||
'mission_status': 'planned',
|
||||
'budget_millions': 4976.0
|
||||
},
|
||||
{
|
||||
'mission_id': 'M2024_LUNA',
|
||||
'mission_name': 'Mars Colony Mission',
|
||||
'destination': 'Mars',
|
||||
'launch_date': '2024-06-13T00:00:00',
|
||||
'duration_days': 222,
|
||||
'crew': [
|
||||
{
|
||||
'member_id': 'CM031',
|
||||
'name': 'Anna Davis',
|
||||
'rank': 'commander',
|
||||
'age': 27,
|
||||
'specialization': 'Communications',
|
||||
'years_experience': 14,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'member_id': 'CM032',
|
||||
'name': 'Elena Garcia',
|
||||
'rank': 'lieutenant',
|
||||
'age': 42,
|
||||
'specialization': 'Science Officer',
|
||||
'years_experience': 23,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'member_id': 'CM033',
|
||||
'name': 'Anna Brown',
|
||||
'rank': 'officer',
|
||||
'age': 55,
|
||||
'specialization': 'Engineering',
|
||||
'years_experience': 30,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'member_id': 'CM034',
|
||||
'name': 'Emma Smith',
|
||||
'rank': 'captain',
|
||||
'age': 37,
|
||||
'specialization': 'Research',
|
||||
'years_experience': 23,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'member_id': 'CM035',
|
||||
'name': 'Sofia Smith',
|
||||
'rank': 'lieutenant',
|
||||
'age': 53,
|
||||
'specialization': 'Security',
|
||||
'years_experience': 30,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'member_id': 'CM036',
|
||||
'name': 'Maria Hernandez',
|
||||
'rank': 'commander',
|
||||
'age': 41,
|
||||
'specialization': 'Medical Officer',
|
||||
'years_experience': 30,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'member_id': 'CM037',
|
||||
'name': 'John Hernandez',
|
||||
'rank': 'officer',
|
||||
'age': 42,
|
||||
'specialization': 'Science Officer',
|
||||
'years_experience': 20,
|
||||
'is_active': True
|
||||
}
|
||||
],
|
||||
'mission_status': 'planned',
|
||||
'budget_millions': 4984.6
|
||||
},
|
||||
{
|
||||
'mission_id': 'M2024_EUROPA',
|
||||
'mission_name': 'Saturn Rings Research Mission',
|
||||
'destination': 'Saturn Rings',
|
||||
'launch_date': '2024-09-18T00:00:00',
|
||||
'duration_days': 602,
|
||||
'crew': [
|
||||
{
|
||||
'member_id': 'CM041',
|
||||
'name': 'William Davis',
|
||||
'rank': 'captain',
|
||||
'age': 35,
|
||||
'specialization': 'Medical Officer',
|
||||
'years_experience': 14,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'member_id': 'CM042',
|
||||
'name': 'Sarah Smith',
|
||||
'rank': 'captain',
|
||||
'age': 55,
|
||||
'specialization': 'Research',
|
||||
'years_experience': 30,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'member_id': 'CM043',
|
||||
'name': 'Elena Garcia',
|
||||
'rank': 'commander',
|
||||
'age': 55,
|
||||
'specialization': 'Research',
|
||||
'years_experience': 30,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'member_id': 'CM044',
|
||||
'name': 'Sofia Williams',
|
||||
'rank': 'officer',
|
||||
'age': 30,
|
||||
'specialization': 'Systems Analysis',
|
||||
'years_experience': 9,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'member_id': 'CM045',
|
||||
'name': 'Sarah Jones',
|
||||
'rank': 'lieutenant',
|
||||
'age': 25,
|
||||
'specialization': 'Maintenance',
|
||||
'years_experience': 11,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'member_id': 'CM046',
|
||||
'name': 'Lisa Rodriguez',
|
||||
'rank': 'officer',
|
||||
'age': 30,
|
||||
'specialization': 'Life Support',
|
||||
'years_experience': 12,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'member_id': 'CM047',
|
||||
'name': 'Sarah Smith',
|
||||
'rank': 'cadet',
|
||||
'age': 28,
|
||||
'specialization': 'Pilot',
|
||||
'years_experience': 8,
|
||||
'is_active': True
|
||||
}
|
||||
],
|
||||
'mission_status': 'planned',
|
||||
'budget_millions': 1092.6
|
||||
}
|
||||
]
|
||||
11
09/generated_data/space_stations.csv
Normal file
11
09/generated_data/space_stations.csv
Normal file
@@ -0,0 +1,11 @@
|
||||
crew_size,is_operational,last_maintenance,name,notes,oxygen_level,power_level,station_id
|
||||
6,True,2023-07-11T00:00:00,Titan Mining Outpost,,95.5,76.4,LGW125
|
||||
3,False,2023-08-24T00:00:00,Deep Space Observatory,System diagnostics required,88.1,70.8,QCH189
|
||||
11,True,2023-10-21T00:00:00,Europa Research Station,,91.4,82.0,ISS674
|
||||
9,False,2023-10-06T00:00:00,Mars Orbital Platform,System diagnostics required,87.2,79.7,ISS877
|
||||
4,False,2023-10-25T00:00:00,Deep Space Observatory,System diagnostics required,89.9,80.2,LGW194
|
||||
11,False,2023-12-11T00:00:00,Solar Wind Monitor,System diagnostics required,98.1,73.6,ISS847
|
||||
12,False,2023-07-15T00:00:00,Asteroid Belt Relay,System diagnostics required,86.0,75.5,QCH400
|
||||
4,True,2023-09-25T00:00:00,Titan Mining Outpost,All systems nominal,97.3,94.4,ERS891
|
||||
8,False,2023-07-10T00:00:00,Asteroid Belt Relay,System diagnostics required,88.8,76.0,ABR266
|
||||
11,False,2023-09-25T00:00:00,Mars Orbital Platform,System diagnostics required,87.3,90.8,LGW723
|
||||
|
102
09/generated_data/space_stations.json
Normal file
102
09/generated_data/space_stations.json
Normal file
@@ -0,0 +1,102 @@
|
||||
[
|
||||
{
|
||||
"station_id": "LGW125",
|
||||
"name": "Titan Mining Outpost",
|
||||
"crew_size": 6,
|
||||
"power_level": 76.4,
|
||||
"oxygen_level": 95.5,
|
||||
"last_maintenance": "2023-07-11T00:00:00",
|
||||
"is_operational": true,
|
||||
"notes": null
|
||||
},
|
||||
{
|
||||
"station_id": "QCH189",
|
||||
"name": "Deep Space Observatory",
|
||||
"crew_size": 3,
|
||||
"power_level": 70.8,
|
||||
"oxygen_level": 88.1,
|
||||
"last_maintenance": "2023-08-24T00:00:00",
|
||||
"is_operational": false,
|
||||
"notes": "System diagnostics required"
|
||||
},
|
||||
{
|
||||
"station_id": "ISS674",
|
||||
"name": "Europa Research Station",
|
||||
"crew_size": 11,
|
||||
"power_level": 82.0,
|
||||
"oxygen_level": 91.4,
|
||||
"last_maintenance": "2023-10-21T00:00:00",
|
||||
"is_operational": true,
|
||||
"notes": null
|
||||
},
|
||||
{
|
||||
"station_id": "ISS877",
|
||||
"name": "Mars Orbital Platform",
|
||||
"crew_size": 9,
|
||||
"power_level": 79.7,
|
||||
"oxygen_level": 87.2,
|
||||
"last_maintenance": "2023-10-06T00:00:00",
|
||||
"is_operational": false,
|
||||
"notes": "System diagnostics required"
|
||||
},
|
||||
{
|
||||
"station_id": "LGW194",
|
||||
"name": "Deep Space Observatory",
|
||||
"crew_size": 4,
|
||||
"power_level": 80.2,
|
||||
"oxygen_level": 89.9,
|
||||
"last_maintenance": "2023-10-25T00:00:00",
|
||||
"is_operational": false,
|
||||
"notes": "System diagnostics required"
|
||||
},
|
||||
{
|
||||
"station_id": "ISS847",
|
||||
"name": "Solar Wind Monitor",
|
||||
"crew_size": 11,
|
||||
"power_level": 73.6,
|
||||
"oxygen_level": 98.1,
|
||||
"last_maintenance": "2023-12-11T00:00:00",
|
||||
"is_operational": false,
|
||||
"notes": "System diagnostics required"
|
||||
},
|
||||
{
|
||||
"station_id": "QCH400",
|
||||
"name": "Asteroid Belt Relay",
|
||||
"crew_size": 12,
|
||||
"power_level": 75.5,
|
||||
"oxygen_level": 86.0,
|
||||
"last_maintenance": "2023-07-15T00:00:00",
|
||||
"is_operational": false,
|
||||
"notes": "System diagnostics required"
|
||||
},
|
||||
{
|
||||
"station_id": "ERS891",
|
||||
"name": "Titan Mining Outpost",
|
||||
"crew_size": 4,
|
||||
"power_level": 94.4,
|
||||
"oxygen_level": 97.3,
|
||||
"last_maintenance": "2023-09-25T00:00:00",
|
||||
"is_operational": true,
|
||||
"notes": "All systems nominal"
|
||||
},
|
||||
{
|
||||
"station_id": "ABR266",
|
||||
"name": "Asteroid Belt Relay",
|
||||
"crew_size": 8,
|
||||
"power_level": 76.0,
|
||||
"oxygen_level": 88.8,
|
||||
"last_maintenance": "2023-07-10T00:00:00",
|
||||
"is_operational": false,
|
||||
"notes": "System diagnostics required"
|
||||
},
|
||||
{
|
||||
"station_id": "LGW723",
|
||||
"name": "Mars Orbital Platform",
|
||||
"crew_size": 11,
|
||||
"power_level": 90.8,
|
||||
"oxygen_level": 87.3,
|
||||
"last_maintenance": "2023-09-25T00:00:00",
|
||||
"is_operational": false,
|
||||
"notes": "System diagnostics required"
|
||||
}
|
||||
]
|
||||
106
09/generated_data/space_stations.py
Normal file
106
09/generated_data/space_stations.py
Normal file
@@ -0,0 +1,106 @@
|
||||
"""
|
||||
Generated test data for space_stations
|
||||
"""
|
||||
|
||||
SPACE_STATIONS = [
|
||||
{
|
||||
'station_id': 'LGW125',
|
||||
'name': 'Titan Mining Outpost',
|
||||
'crew_size': 6,
|
||||
'power_level': 76.4,
|
||||
'oxygen_level': 95.5,
|
||||
'last_maintenance': '2023-07-11T00:00:00',
|
||||
'is_operational': True,
|
||||
'notes': None
|
||||
},
|
||||
{
|
||||
'station_id': 'QCH189',
|
||||
'name': 'Deep Space Observatory',
|
||||
'crew_size': 3,
|
||||
'power_level': 70.8,
|
||||
'oxygen_level': 88.1,
|
||||
'last_maintenance': '2023-08-24T00:00:00',
|
||||
'is_operational': False,
|
||||
'notes': 'System diagnostics required'
|
||||
},
|
||||
{
|
||||
'station_id': 'ISS674',
|
||||
'name': 'Europa Research Station',
|
||||
'crew_size': 11,
|
||||
'power_level': 82.0,
|
||||
'oxygen_level': 91.4,
|
||||
'last_maintenance': '2023-10-21T00:00:00',
|
||||
'is_operational': True,
|
||||
'notes': None
|
||||
},
|
||||
{
|
||||
'station_id': 'ISS877',
|
||||
'name': 'Mars Orbital Platform',
|
||||
'crew_size': 9,
|
||||
'power_level': 79.7,
|
||||
'oxygen_level': 87.2,
|
||||
'last_maintenance': '2023-10-06T00:00:00',
|
||||
'is_operational': False,
|
||||
'notes': 'System diagnostics required'
|
||||
},
|
||||
{
|
||||
'station_id': 'LGW194',
|
||||
'name': 'Deep Space Observatory',
|
||||
'crew_size': 4,
|
||||
'power_level': 80.2,
|
||||
'oxygen_level': 89.9,
|
||||
'last_maintenance': '2023-10-25T00:00:00',
|
||||
'is_operational': False,
|
||||
'notes': 'System diagnostics required'
|
||||
},
|
||||
{
|
||||
'station_id': 'ISS847',
|
||||
'name': 'Solar Wind Monitor',
|
||||
'crew_size': 11,
|
||||
'power_level': 73.6,
|
||||
'oxygen_level': 98.1,
|
||||
'last_maintenance': '2023-12-11T00:00:00',
|
||||
'is_operational': False,
|
||||
'notes': 'System diagnostics required'
|
||||
},
|
||||
{
|
||||
'station_id': 'QCH400',
|
||||
'name': 'Asteroid Belt Relay',
|
||||
'crew_size': 12,
|
||||
'power_level': 75.5,
|
||||
'oxygen_level': 86.0,
|
||||
'last_maintenance': '2023-07-15T00:00:00',
|
||||
'is_operational': False,
|
||||
'notes': 'System diagnostics required'
|
||||
},
|
||||
{
|
||||
'station_id': 'ERS891',
|
||||
'name': 'Titan Mining Outpost',
|
||||
'crew_size': 4,
|
||||
'power_level': 94.4,
|
||||
'oxygen_level': 97.3,
|
||||
'last_maintenance': '2023-09-25T00:00:00',
|
||||
'is_operational': True,
|
||||
'notes': 'All systems nominal'
|
||||
},
|
||||
{
|
||||
'station_id': 'ABR266',
|
||||
'name': 'Asteroid Belt Relay',
|
||||
'crew_size': 8,
|
||||
'power_level': 76.0,
|
||||
'oxygen_level': 88.8,
|
||||
'last_maintenance': '2023-07-10T00:00:00',
|
||||
'is_operational': False,
|
||||
'notes': 'System diagnostics required'
|
||||
},
|
||||
{
|
||||
'station_id': 'LGW723',
|
||||
'name': 'Mars Orbital Platform',
|
||||
'crew_size': 11,
|
||||
'power_level': 90.8,
|
||||
'oxygen_level': 87.3,
|
||||
'last_maintenance': '2023-09-25T00:00:00',
|
||||
'is_operational': False,
|
||||
'notes': 'System diagnostics required'
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user