code
stringlengths
3
6.57k
print('Minimum efective magnitude: ' + str(Planet.minMagnitude)
input('Minimum altitude (' + str(Ephemeride.minAlt)
re.fullmatch(r'[+-]?[0-9]+\.?[0-9]*', minAlt)
float(minAlt)
print('Minimum altitude: ' + str(Ephemeride.minAlt)
input('Maximum scateredness in x coordinate (' + str(Planet.maxScatteredness[0])
maxScatteredness1.isdigit()
int(maxScatteredness1)
input('Maximum scateredness in y coordinate (' + str(Planet.maxScatteredness[1])
maxScatteredness2.isdigit()
int(maxScatteredness2)
print('Maximum scateredness: (' + str(Planet.maxScatteredness[0])
str(Planet.maxScatteredness[1])
input('Maximum not seen days (' + str(Planet.maxNotSeenDays)
re.fullmatch(r'[+-]?[0-9]+\.?[0-9]*', maxNotSeenDays)
float(maxNotSeenDays)
print('Maximum not seen days: ' + str(Planet.maxNotSeenDays)
input('Maximum sun altitude (' + str(Ephemeride.maxSunAlt)
re.fullmatch(r'[+-]?[0-9]+\.?[0-9]*', maxSunAlt)
float(maxSunAlt)
print('Maximum sun altitude: ' + str(Ephemeride.maxSunAlt)
input('Minimum distance from the moon (' + str(Ephemeride.minMoonDistance)
re.fullmatch(r'[+-]?[0-9]+\.?[0-9]*', minMoonDistance)
float(minMoonDistance)
print('Minimum distance from the moon: ' + str(Ephemeride.minMoonDistance)
input('Minimum motion (speed)
str(Ephemeride.minMotion)
re.fullmatch(r'[0-9]+\.?[0-9]*', minMotion)
float(minMotion)
print('Minimum motion (speed)
str(Ephemeride.minMotion)
getData(self)
requests.get(url)
split("\n")
itertools.islice(resp, 0, 4)
Planet(planetString)
currentPlanets.append(p.name)
in (i.name for i in self.planets)
p.analyzePlanet()
self.planets.append(p)
playsound('up.wav')
print('Plane already known (' + p.name + ')
range(len(self.planets)
print('\n' + str(datetime.datetime.utcnow()
playsound('down.wav')
ephemeride (so it can be put into file)
nearestToNow()
currentEphemerideInterpolation()
sortByMaxAlt(self)
sorted([p for p in self.planets if not p.discard], key=lambda planet: planet.maxAltitudeEphemeride.dateUnix)
writeToFile(self)
logging.warning('Writing output to file')
pdb.set_trace()
open(Main.observationDate.strftime("%Y-%m-%d")
R.A. (J2000)
f.write(header + "\n")
self.sortByMaxAlt()
pdb.set_trace()
str(p.score)
str(p.numObservations)
str(p.arc)
str(p.notSeenDays)
str(p.maxAltitudeEphemeride.observationTime)
hasattr(p, 'scatteredness')
str(p.scatteredness[0])
str(p.scatteredness[1])
hasattr(p, 'mapLink')
f.write(fileLine + "\n")
f.write("// " + p.maxAltitudeEphemeride.line + "\n")
f.write("// " + p.nearestToNowEphemeride.line + "\n")
f.write(p.currentInterpolatedEphemeride.line + "\n\n")
f.write(p.nearestToNowEphemeride.line + "\n\n")
f.close()
logging.getLogger()
logging.basicConfig(level=logging.INFO, format="%(message)
Main()
pdb.set_trace()
PROTOTYPE (AMP)
or (ii)
Inc. (“Cloudera”)
AND (D)
Heroku(app)
os.environ.get('SECRET_KEY')
os.environ.get('MAIL_GUN_KEY')
os.environ.get('AWS_ACCESS_KEY_ID')
os.environ.get('AWS_SECRET_ACCESS_KEY')
os.environ.get('S3_BUCKET_NAME')
add_cors_header(response)
app.after_request(add_cors_header)
list(map(int, input()
split()
list(map(int, input()
split()
print(' '.join(str(i)
list(product(*[aarr, barr])
SimPy (object-oriented)
duration (hours)
purchase (S)
hire (R)
Factory(object)