partition
stringclasses
3 values
func_name
stringlengths
1
134
docstring
stringlengths
1
46.9k
path
stringlengths
4
223
original_string
stringlengths
75
104k
code
stringlengths
75
104k
docstring_tokens
listlengths
1
1.97k
repo
stringlengths
7
55
language
stringclasses
1 value
url
stringlengths
87
315
code_tokens
listlengths
19
28.4k
sha
stringlengths
40
40
train
getModifiers
Returns the factors of the temperament modifiers.
flatlib/protocols/temperament.py
def getModifiers(chart): """ Returns the factors of the temperament modifiers. """ modifiers = [] # Factors which can be affected asc = chart.getAngle(const.ASC) ascRulerID = essential.ruler(asc.sign) ascRuler = chart.getObject(ascRulerID) moon = chart.getObject(const.MOON) fac...
def getModifiers(chart): """ Returns the factors of the temperament modifiers. """ modifiers = [] # Factors which can be affected asc = chart.getAngle(const.ASC) ascRulerID = essential.ruler(asc.sign) ascRuler = chart.getObject(ascRulerID) moon = chart.getObject(const.MOON) fac...
[ "Returns", "the", "factors", "of", "the", "temperament", "modifiers", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/protocols/temperament.py#L171-L208
[ "def", "getModifiers", "(", "chart", ")", ":", "modifiers", "=", "[", "]", "# Factors which can be affected", "asc", "=", "chart", ".", "getAngle", "(", "const", ".", "ASC", ")", "ascRulerID", "=", "essential", ".", "ruler", "(", "asc", ".", "sign", ")", ...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
scores
Computes the score of temperaments and elements.
flatlib/protocols/temperament.py
def scores(factors): """ Computes the score of temperaments and elements. """ temperaments = { const.CHOLERIC: 0, const.MELANCHOLIC: 0, const.SANGUINE: 0, const.PHLEGMATIC: 0 } qualities = { const.HOT: 0, const.COLD: 0, ...
def scores(factors): """ Computes the score of temperaments and elements. """ temperaments = { const.CHOLERIC: 0, const.MELANCHOLIC: 0, const.SANGUINE: 0, const.PHLEGMATIC: 0 } qualities = { const.HOT: 0, const.COLD: 0, ...
[ "Computes", "the", "score", "of", "temperaments", "and", "elements", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/protocols/temperament.py#L211-L245
[ "def", "scores", "(", "factors", ")", ":", "temperaments", "=", "{", "const", ".", "CHOLERIC", ":", "0", ",", "const", ".", "MELANCHOLIC", ":", "0", ",", "const", ".", "SANGUINE", ":", "0", ",", "const", ".", "PHLEGMATIC", ":", "0", "}", "qualities",...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
getObject
Returns an ephemeris object.
flatlib/ephem/ephem.py
def getObject(ID, date, pos): """ Returns an ephemeris object. """ obj = eph.getObject(ID, date.jd, pos.lat, pos.lon) return Object.fromDict(obj)
def getObject(ID, date, pos): """ Returns an ephemeris object. """ obj = eph.getObject(ID, date.jd, pos.lat, pos.lon) return Object.fromDict(obj)
[ "Returns", "an", "ephemeris", "object", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/ephem/ephem.py#L28-L31
[ "def", "getObject", "(", "ID", ",", "date", ",", "pos", ")", ":", "obj", "=", "eph", ".", "getObject", "(", "ID", ",", "date", ".", "jd", ",", "pos", ".", "lat", ",", "pos", ".", "lon", ")", "return", "Object", ".", "fromDict", "(", "obj", ")" ...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
getObjectList
Returns a list of objects.
flatlib/ephem/ephem.py
def getObjectList(IDs, date, pos): """ Returns a list of objects. """ objList = [getObject(ID, date, pos) for ID in IDs] return ObjectList(objList)
def getObjectList(IDs, date, pos): """ Returns a list of objects. """ objList = [getObject(ID, date, pos) for ID in IDs] return ObjectList(objList)
[ "Returns", "a", "list", "of", "objects", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/ephem/ephem.py#L33-L36
[ "def", "getObjectList", "(", "IDs", ",", "date", ",", "pos", ")", ":", "objList", "=", "[", "getObject", "(", "ID", ",", "date", ",", "pos", ")", "for", "ID", "in", "IDs", "]", "return", "ObjectList", "(", "objList", ")" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
getHouses
Returns the lists of houses and angles. Since houses and angles are computed at the same time, this function should be fast.
flatlib/ephem/ephem.py
def getHouses(date, pos, hsys): """ Returns the lists of houses and angles. Since houses and angles are computed at the same time, this function should be fast. """ houses, angles = eph.getHouses(date.jd, pos.lat, pos.lon, hsys) hList = [House.fromDict(house) for house in houses] a...
def getHouses(date, pos, hsys): """ Returns the lists of houses and angles. Since houses and angles are computed at the same time, this function should be fast. """ houses, angles = eph.getHouses(date.jd, pos.lat, pos.lon, hsys) hList = [House.fromDict(house) for house in houses] a...
[ "Returns", "the", "lists", "of", "houses", "and", "angles", ".", "Since", "houses", "and", "angles", "are", "computed", "at", "the", "same", "time", "this", "function", "should", "be", "fast", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/ephem/ephem.py#L41-L51
[ "def", "getHouses", "(", "date", ",", "pos", ",", "hsys", ")", ":", "houses", ",", "angles", "=", "eph", ".", "getHouses", "(", "date", ".", "jd", ",", "pos", ".", "lat", ",", "pos", ".", "lon", ",", "hsys", ")", "hList", "=", "[", "House", "."...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
getFixedStar
Returns a fixed star from the ephemeris.
flatlib/ephem/ephem.py
def getFixedStar(ID, date): """ Returns a fixed star from the ephemeris. """ star = eph.getFixedStar(ID, date.jd) return FixedStar.fromDict(star)
def getFixedStar(ID, date): """ Returns a fixed star from the ephemeris. """ star = eph.getFixedStar(ID, date.jd) return FixedStar.fromDict(star)
[ "Returns", "a", "fixed", "star", "from", "the", "ephemeris", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/ephem/ephem.py#L64-L67
[ "def", "getFixedStar", "(", "ID", ",", "date", ")", ":", "star", "=", "eph", ".", "getFixedStar", "(", "ID", ",", "date", ".", "jd", ")", "return", "FixedStar", ".", "fromDict", "(", "star", ")" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
getFixedStarList
Returns a list of fixed stars.
flatlib/ephem/ephem.py
def getFixedStarList(IDs, date): """ Returns a list of fixed stars. """ starList = [getFixedStar(ID, date) for ID in IDs] return FixedStarList(starList)
def getFixedStarList(IDs, date): """ Returns a list of fixed stars. """ starList = [getFixedStar(ID, date) for ID in IDs] return FixedStarList(starList)
[ "Returns", "a", "list", "of", "fixed", "stars", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/ephem/ephem.py#L69-L72
[ "def", "getFixedStarList", "(", "IDs", ",", "date", ")", ":", "starList", "=", "[", "getFixedStar", "(", "ID", ",", "date", ")", "for", "ID", "in", "IDs", "]", "return", "FixedStarList", "(", "starList", ")" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
nextSolarReturn
Returns the next date when sun is at longitude 'lon'.
flatlib/ephem/ephem.py
def nextSolarReturn(date, lon): """ Returns the next date when sun is at longitude 'lon'. """ jd = eph.nextSolarReturn(date.jd, lon) return Datetime.fromJD(jd, date.utcoffset)
def nextSolarReturn(date, lon): """ Returns the next date when sun is at longitude 'lon'. """ jd = eph.nextSolarReturn(date.jd, lon) return Datetime.fromJD(jd, date.utcoffset)
[ "Returns", "the", "next", "date", "when", "sun", "is", "at", "longitude", "lon", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/ephem/ephem.py#L77-L80
[ "def", "nextSolarReturn", "(", "date", ",", "lon", ")", ":", "jd", "=", "eph", ".", "nextSolarReturn", "(", "date", ".", "jd", ",", "lon", ")", "return", "Datetime", ".", "fromJD", "(", "jd", ",", "date", ".", "utcoffset", ")" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
prevSolarReturn
Returns the previous date when sun is at longitude 'lon'.
flatlib/ephem/ephem.py
def prevSolarReturn(date, lon): """ Returns the previous date when sun is at longitude 'lon'. """ jd = eph.prevSolarReturn(date.jd, lon) return Datetime.fromJD(jd, date.utcoffset)
def prevSolarReturn(date, lon): """ Returns the previous date when sun is at longitude 'lon'. """ jd = eph.prevSolarReturn(date.jd, lon) return Datetime.fromJD(jd, date.utcoffset)
[ "Returns", "the", "previous", "date", "when", "sun", "is", "at", "longitude", "lon", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/ephem/ephem.py#L82-L85
[ "def", "prevSolarReturn", "(", "date", ",", "lon", ")", ":", "jd", "=", "eph", ".", "prevSolarReturn", "(", "date", ".", "jd", ",", "lon", ")", "return", "Datetime", ".", "fromJD", "(", "jd", ",", "date", ".", "utcoffset", ")" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
nextSunrise
Returns the date of the next sunrise.
flatlib/ephem/ephem.py
def nextSunrise(date, pos): """ Returns the date of the next sunrise. """ jd = eph.nextSunrise(date.jd, pos.lat, pos.lon) return Datetime.fromJD(jd, date.utcoffset)
def nextSunrise(date, pos): """ Returns the date of the next sunrise. """ jd = eph.nextSunrise(date.jd, pos.lat, pos.lon) return Datetime.fromJD(jd, date.utcoffset)
[ "Returns", "the", "date", "of", "the", "next", "sunrise", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/ephem/ephem.py#L90-L93
[ "def", "nextSunrise", "(", "date", ",", "pos", ")", ":", "jd", "=", "eph", ".", "nextSunrise", "(", "date", ".", "jd", ",", "pos", ".", "lat", ",", "pos", ".", "lon", ")", "return", "Datetime", ".", "fromJD", "(", "jd", ",", "date", ".", "utcoffs...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
nextStation
Returns the aproximate date of the next station.
flatlib/ephem/ephem.py
def nextStation(ID, date): """ Returns the aproximate date of the next station. """ jd = eph.nextStation(ID, date.jd) return Datetime.fromJD(jd, date.utcoffset)
def nextStation(ID, date): """ Returns the aproximate date of the next station. """ jd = eph.nextStation(ID, date.jd) return Datetime.fromJD(jd, date.utcoffset)
[ "Returns", "the", "aproximate", "date", "of", "the", "next", "station", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/ephem/ephem.py#L113-L116
[ "def", "nextStation", "(", "ID", ",", "date", ")", ":", "jd", "=", "eph", ".", "nextStation", "(", "ID", ",", "date", ".", "jd", ")", "return", "Datetime", ".", "fromJD", "(", "jd", ",", "date", ".", "utcoffset", ")" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
prevSolarEclipse
Returns the Datetime of the maximum phase of the previous global solar eclipse.
flatlib/ephem/ephem.py
def prevSolarEclipse(date): """ Returns the Datetime of the maximum phase of the previous global solar eclipse. """ eclipse = swe.solarEclipseGlobal(date.jd, backward=True) return Datetime.fromJD(eclipse['maximum'], date.utcoffset)
def prevSolarEclipse(date): """ Returns the Datetime of the maximum phase of the previous global solar eclipse. """ eclipse = swe.solarEclipseGlobal(date.jd, backward=True) return Datetime.fromJD(eclipse['maximum'], date.utcoffset)
[ "Returns", "the", "Datetime", "of", "the", "maximum", "phase", "of", "the", "previous", "global", "solar", "eclipse", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/ephem/ephem.py#L121-L128
[ "def", "prevSolarEclipse", "(", "date", ")", ":", "eclipse", "=", "swe", ".", "solarEclipseGlobal", "(", "date", ".", "jd", ",", "backward", "=", "True", ")", "return", "Datetime", ".", "fromJD", "(", "eclipse", "[", "'maximum'", "]", ",", "date", ".", ...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
nextSolarEclipse
Returns the Datetime of the maximum phase of the next global solar eclipse.
flatlib/ephem/ephem.py
def nextSolarEclipse(date): """ Returns the Datetime of the maximum phase of the next global solar eclipse. """ eclipse = swe.solarEclipseGlobal(date.jd, backward=False) return Datetime.fromJD(eclipse['maximum'], date.utcoffset)
def nextSolarEclipse(date): """ Returns the Datetime of the maximum phase of the next global solar eclipse. """ eclipse = swe.solarEclipseGlobal(date.jd, backward=False) return Datetime.fromJD(eclipse['maximum'], date.utcoffset)
[ "Returns", "the", "Datetime", "of", "the", "maximum", "phase", "of", "the", "next", "global", "solar", "eclipse", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/ephem/ephem.py#L130-L137
[ "def", "nextSolarEclipse", "(", "date", ")", ":", "eclipse", "=", "swe", ".", "solarEclipseGlobal", "(", "date", ".", "jd", ",", "backward", "=", "False", ")", "return", "Datetime", ".", "fromJD", "(", "eclipse", "[", "'maximum'", "]", ",", "date", ".", ...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
prevLunarEclipse
Returns the Datetime of the maximum phase of the previous global lunar eclipse.
flatlib/ephem/ephem.py
def prevLunarEclipse(date): """ Returns the Datetime of the maximum phase of the previous global lunar eclipse. """ eclipse = swe.lunarEclipseGlobal(date.jd, backward=True) return Datetime.fromJD(eclipse['maximum'], date.utcoffset)
def prevLunarEclipse(date): """ Returns the Datetime of the maximum phase of the previous global lunar eclipse. """ eclipse = swe.lunarEclipseGlobal(date.jd, backward=True) return Datetime.fromJD(eclipse['maximum'], date.utcoffset)
[ "Returns", "the", "Datetime", "of", "the", "maximum", "phase", "of", "the", "previous", "global", "lunar", "eclipse", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/ephem/ephem.py#L139-L146
[ "def", "prevLunarEclipse", "(", "date", ")", ":", "eclipse", "=", "swe", ".", "lunarEclipseGlobal", "(", "date", ".", "jd", ",", "backward", "=", "True", ")", "return", "Datetime", ".", "fromJD", "(", "eclipse", "[", "'maximum'", "]", ",", "date", ".", ...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
nextLunarEclipse
Returns the Datetime of the maximum phase of the next global lunar eclipse.
flatlib/ephem/ephem.py
def nextLunarEclipse(date): """ Returns the Datetime of the maximum phase of the next global lunar eclipse. """ eclipse = swe.lunarEclipseGlobal(date.jd, backward=False) return Datetime.fromJD(eclipse['maximum'], date.utcoffset)
def nextLunarEclipse(date): """ Returns the Datetime of the maximum phase of the next global lunar eclipse. """ eclipse = swe.lunarEclipseGlobal(date.jd, backward=False) return Datetime.fromJD(eclipse['maximum'], date.utcoffset)
[ "Returns", "the", "Datetime", "of", "the", "maximum", "phase", "of", "the", "next", "global", "lunar", "eclipse", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/ephem/ephem.py#L148-L155
[ "def", "nextLunarEclipse", "(", "date", ")", ":", "eclipse", "=", "swe", ".", "lunarEclipseGlobal", "(", "date", ".", "jd", ",", "backward", "=", "False", ")", "return", "Datetime", ".", "fromJD", "(", "eclipse", "[", "'maximum'", "]", ",", "date", ".", ...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
plot
Plots the tropical solar length by year.
recipes/solaryears.py
def plot(hdiff, title): """ Plots the tropical solar length by year. """ import matplotlib.pyplot as plt years = [elem[0] for elem in hdiff] diffs = [elem[1] for elem in hdiff] plt.plot(years, diffs) plt.ylabel('Distance in minutes') plt.xlabel('Year') plt.title(title) p...
def plot(hdiff, title): """ Plots the tropical solar length by year. """ import matplotlib.pyplot as plt years = [elem[0] for elem in hdiff] diffs = [elem[1] for elem in hdiff] plt.plot(years, diffs) plt.ylabel('Distance in minutes') plt.xlabel('Year') plt.title(title) p...
[ "Plots", "the", "tropical", "solar", "length", "by", "year", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/recipes/solaryears.py#L22-L35
[ "def", "plot", "(", "hdiff", ",", "title", ")", ":", "import", "matplotlib", ".", "pyplot", "as", "plt", "years", "=", "[", "elem", "[", "0", "]", "for", "elem", "in", "hdiff", "]", "diffs", "=", "[", "elem", "[", "1", "]", "for", "elem", "in", ...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
ascdiff
Returns the Ascensional Difference of a point.
flatlib/utils.py
def ascdiff(decl, lat): """ Returns the Ascensional Difference of a point. """ delta = math.radians(decl) phi = math.radians(lat) ad = math.asin(math.tan(delta) * math.tan(phi)) return math.degrees(ad)
def ascdiff(decl, lat): """ Returns the Ascensional Difference of a point. """ delta = math.radians(decl) phi = math.radians(lat) ad = math.asin(math.tan(delta) * math.tan(phi)) return math.degrees(ad)
[ "Returns", "the", "Ascensional", "Difference", "of", "a", "point", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/utils.py#L14-L19
[ "def", "ascdiff", "(", "decl", ",", "lat", ")", ":", "delta", "=", "math", ".", "radians", "(", "decl", ")", "phi", "=", "math", ".", "radians", "(", "lat", ")", "ad", "=", "math", ".", "asin", "(", "math", ".", "tan", "(", "delta", ")", "*", ...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
dnarcs
Returns the diurnal and nocturnal arcs of a point.
flatlib/utils.py
def dnarcs(decl, lat): """ Returns the diurnal and nocturnal arcs of a point. """ dArc = 180 + 2 * ascdiff(decl, lat) nArc = 360 - dArc return (dArc, nArc)
def dnarcs(decl, lat): """ Returns the diurnal and nocturnal arcs of a point. """ dArc = 180 + 2 * ascdiff(decl, lat) nArc = 360 - dArc return (dArc, nArc)
[ "Returns", "the", "diurnal", "and", "nocturnal", "arcs", "of", "a", "point", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/utils.py#L21-L25
[ "def", "dnarcs", "(", "decl", ",", "lat", ")", ":", "dArc", "=", "180", "+", "2", "*", "ascdiff", "(", "decl", ",", "lat", ")", "nArc", "=", "360", "-", "dArc", "return", "(", "dArc", ",", "nArc", ")" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
isAboveHorizon
Returns if an object's 'ra' and 'decl' is above the horizon at a specific latitude, given the MC's right ascension.
flatlib/utils.py
def isAboveHorizon(ra, decl, mcRA, lat): """ Returns if an object's 'ra' and 'decl' is above the horizon at a specific latitude, given the MC's right ascension. """ # This function checks if the equatorial distance from # the object to the MC is within its diurnal semi-arc. dArc...
def isAboveHorizon(ra, decl, mcRA, lat): """ Returns if an object's 'ra' and 'decl' is above the horizon at a specific latitude, given the MC's right ascension. """ # This function checks if the equatorial distance from # the object to the MC is within its diurnal semi-arc. dArc...
[ "Returns", "if", "an", "object", "s", "ra", "and", "decl", "is", "above", "the", "horizon", "at", "a", "specific", "latitude", "given", "the", "MC", "s", "right", "ascension", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/utils.py#L30-L41
[ "def", "isAboveHorizon", "(", "ra", ",", "decl", ",", "mcRA", ",", "lat", ")", ":", "# This function checks if the equatorial distance from ", "# the object to the MC is within its diurnal semi-arc.", "dArc", ",", "_", "=", "dnarcs", "(", "decl", ",", "lat", ")", "dis...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
eqCoords
Converts from ecliptical to equatorial coordinates. This algorithm is described in book 'Primary Directions', pp. 147-150.
flatlib/utils.py
def eqCoords(lon, lat): """ Converts from ecliptical to equatorial coordinates. This algorithm is described in book 'Primary Directions', pp. 147-150. """ # Convert to radians _lambda = math.radians(lon) _beta = math.radians(lat) _epson = math.radians(23.44) # The earth's inclina...
def eqCoords(lon, lat): """ Converts from ecliptical to equatorial coordinates. This algorithm is described in book 'Primary Directions', pp. 147-150. """ # Convert to radians _lambda = math.radians(lon) _beta = math.radians(lat) _epson = math.radians(23.44) # The earth's inclina...
[ "Converts", "from", "ecliptical", "to", "equatorial", "coordinates", ".", "This", "algorithm", "is", "described", "in", "book", "Primary", "Directions", "pp", ".", "147", "-", "150", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/utils.py#L46-L76
[ "def", "eqCoords", "(", "lon", ",", "lat", ")", ":", "# Convert to radians", "_lambda", "=", "math", ".", "radians", "(", "lon", ")", "_beta", "=", "math", ".", "radians", "(", "lat", ")", "_epson", "=", "math", ".", "radians", "(", "23.44", ")", "# ...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
sunRelation
Returns an object's relation with the sun.
flatlib/dignities/accidental.py
def sunRelation(obj, sun): """ Returns an object's relation with the sun. """ if obj.id == const.SUN: return None dist = abs(angle.closestdistance(sun.lon, obj.lon)) if dist < 0.2833: return CAZIMI elif dist < 8.0: return COMBUST elif dist < 16.0: return UNDER_SUN else: retur...
def sunRelation(obj, sun): """ Returns an object's relation with the sun. """ if obj.id == const.SUN: return None dist = abs(angle.closestdistance(sun.lon, obj.lon)) if dist < 0.2833: return CAZIMI elif dist < 8.0: return COMBUST elif dist < 16.0: return UNDER_SUN else: retur...
[ "Returns", "an", "object", "s", "relation", "with", "the", "sun", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/dignities/accidental.py#L42-L51
[ "def", "sunRelation", "(", "obj", ",", "sun", ")", ":", "if", "obj", ".", "id", "==", "const", ".", "SUN", ":", "return", "None", "dist", "=", "abs", "(", "angle", ".", "closestdistance", "(", "sun", ".", "lon", ",", "obj", ".", "lon", ")", ")", ...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
light
Returns if an object is augmenting or diminishing light.
flatlib/dignities/accidental.py
def light(obj, sun): """ Returns if an object is augmenting or diminishing light. """ dist = angle.distance(sun.lon, obj.lon) faster = sun if sun.lonspeed > obj.lonspeed else obj if faster == sun: return LIGHT_DIMINISHING if dist < 180 else LIGHT_AUGMENTING else: return LIGHT_AUGMENT...
def light(obj, sun): """ Returns if an object is augmenting or diminishing light. """ dist = angle.distance(sun.lon, obj.lon) faster = sun if sun.lonspeed > obj.lonspeed else obj if faster == sun: return LIGHT_DIMINISHING if dist < 180 else LIGHT_AUGMENTING else: return LIGHT_AUGMENT...
[ "Returns", "if", "an", "object", "is", "augmenting", "or", "diminishing", "light", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/dignities/accidental.py#L53-L60
[ "def", "light", "(", "obj", ",", "sun", ")", ":", "dist", "=", "angle", ".", "distance", "(", "sun", ".", "lon", ",", "obj", ".", "lon", ")", "faster", "=", "sun", "if", "sun", ".", "lonspeed", ">", "obj", ".", "lonspeed", "else", "obj", "if", ...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
orientality
Returns if an object is oriental or occidental to the sun.
flatlib/dignities/accidental.py
def orientality(obj, sun): """ Returns if an object is oriental or occidental to the sun. """ dist = angle.distance(sun.lon, obj.lon) return OCCIDENTAL if dist < 180 else ORIENTAL
def orientality(obj, sun): """ Returns if an object is oriental or occidental to the sun. """ dist = angle.distance(sun.lon, obj.lon) return OCCIDENTAL if dist < 180 else ORIENTAL
[ "Returns", "if", "an", "object", "is", "oriental", "or", "occidental", "to", "the", "sun", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/dignities/accidental.py#L62-L68
[ "def", "orientality", "(", "obj", ",", "sun", ")", ":", "dist", "=", "angle", ".", "distance", "(", "sun", ".", "lon", ",", "obj", ".", "lon", ")", "return", "OCCIDENTAL", "if", "dist", "<", "180", "else", "ORIENTAL" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
haiz
Returns if an object is in Haiz.
flatlib/dignities/accidental.py
def haiz(obj, chart): """ Returns if an object is in Haiz. """ objGender = obj.gender() objFaction = obj.faction() if obj.id == const.MERCURY: # Gender and faction of mercury depends on orientality sun = chart.getObject(const.SUN) orientalityM = orientality(obj, sun) ...
def haiz(obj, chart): """ Returns if an object is in Haiz. """ objGender = obj.gender() objFaction = obj.faction() if obj.id == const.MERCURY: # Gender and faction of mercury depends on orientality sun = chart.getObject(const.SUN) orientalityM = orientality(obj, sun) ...
[ "Returns", "if", "an", "object", "is", "in", "Haiz", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/dignities/accidental.py#L74-L122
[ "def", "haiz", "(", "obj", ",", "chart", ")", ":", "objGender", "=", "obj", ".", "gender", "(", ")", "objFaction", "=", "obj", ".", "faction", "(", ")", "if", "obj", ".", "id", "==", "const", ".", "MERCURY", ":", "# Gender and faction of mercury depends ...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
AccidentalDignity.house
Returns the object's house.
flatlib/dignities/accidental.py
def house(self): """ Returns the object's house. """ house = self.chart.houses.getObjectHouse(self.obj) return house
def house(self): """ Returns the object's house. """ house = self.chart.houses.getObjectHouse(self.obj) return house
[ "Returns", "the", "object", "s", "house", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/dignities/accidental.py#L161-L164
[ "def", "house", "(", "self", ")", ":", "house", "=", "self", ".", "chart", ".", "houses", ".", "getObjectHouse", "(", "self", ".", "obj", ")", "return", "house" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
AccidentalDignity.sunRelation
Returns the relation of the object with the sun.
flatlib/dignities/accidental.py
def sunRelation(self): """ Returns the relation of the object with the sun. """ sun = self.chart.getObject(const.SUN) return sunRelation(self.obj, sun)
def sunRelation(self): """ Returns the relation of the object with the sun. """ sun = self.chart.getObject(const.SUN) return sunRelation(self.obj, sun)
[ "Returns", "the", "relation", "of", "the", "object", "with", "the", "sun", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/dignities/accidental.py#L174-L177
[ "def", "sunRelation", "(", "self", ")", ":", "sun", "=", "self", ".", "chart", ".", "getObject", "(", "const", ".", "SUN", ")", "return", "sunRelation", "(", "self", ".", "obj", ",", "sun", ")" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
AccidentalDignity.light
Returns if object is augmenting or diminishing its light.
flatlib/dignities/accidental.py
def light(self): """ Returns if object is augmenting or diminishing its light. """ sun = self.chart.getObject(const.SUN) return light(self.obj, sun)
def light(self): """ Returns if object is augmenting or diminishing its light. """ sun = self.chart.getObject(const.SUN) return light(self.obj, sun)
[ "Returns", "if", "object", "is", "augmenting", "or", "diminishing", "its", "light", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/dignities/accidental.py#L188-L194
[ "def", "light", "(", "self", ")", ":", "sun", "=", "self", ".", "chart", ".", "getObject", "(", "const", ".", "SUN", ")", "return", "light", "(", "self", ".", "obj", ",", "sun", ")" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
AccidentalDignity.orientality
Returns the orientality of the object.
flatlib/dignities/accidental.py
def orientality(self): """ Returns the orientality of the object. """ sun = self.chart.getObject(const.SUN) return orientality(self.obj, sun)
def orientality(self): """ Returns the orientality of the object. """ sun = self.chart.getObject(const.SUN) return orientality(self.obj, sun)
[ "Returns", "the", "orientality", "of", "the", "object", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/dignities/accidental.py#L199-L202
[ "def", "orientality", "(", "self", ")", ":", "sun", "=", "self", ".", "chart", ".", "getObject", "(", "const", ".", "SUN", ")", "return", "orientality", "(", "self", ".", "obj", ",", "sun", ")" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
AccidentalDignity.inHouseJoy
Returns if the object is in its house of joy.
flatlib/dignities/accidental.py
def inHouseJoy(self): """ Returns if the object is in its house of joy. """ house = self.house() return props.object.houseJoy[self.obj.id] == house.id
def inHouseJoy(self): """ Returns if the object is in its house of joy. """ house = self.house() return props.object.houseJoy[self.obj.id] == house.id
[ "Returns", "if", "the", "object", "is", "in", "its", "house", "of", "joy", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/dignities/accidental.py#L210-L213
[ "def", "inHouseJoy", "(", "self", ")", ":", "house", "=", "self", ".", "house", "(", ")", "return", "props", ".", "object", ".", "houseJoy", "[", "self", ".", "obj", ".", "id", "]", "==", "house", ".", "id" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
AccidentalDignity.inSignJoy
Returns if the object is in its sign of joy.
flatlib/dignities/accidental.py
def inSignJoy(self): """ Returns if the object is in its sign of joy. """ return props.object.signJoy[self.obj.id] == self.obj.sign
def inSignJoy(self): """ Returns if the object is in its sign of joy. """ return props.object.signJoy[self.obj.id] == self.obj.sign
[ "Returns", "if", "the", "object", "is", "in", "its", "sign", "of", "joy", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/dignities/accidental.py#L215-L217
[ "def", "inSignJoy", "(", "self", ")", ":", "return", "props", ".", "object", ".", "signJoy", "[", "self", ".", "obj", ".", "id", "]", "==", "self", ".", "obj", ".", "sign" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
AccidentalDignity.reMutualReceptions
Returns all mutual receptions with the object and other planets, indexed by planet ID. It only includes ruler and exaltation receptions.
flatlib/dignities/accidental.py
def reMutualReceptions(self): """ Returns all mutual receptions with the object and other planets, indexed by planet ID. It only includes ruler and exaltation receptions. """ planets = copy(const.LIST_SEVEN_PLANETS) planets.remove(self.obj.id) mrs = {} ...
def reMutualReceptions(self): """ Returns all mutual receptions with the object and other planets, indexed by planet ID. It only includes ruler and exaltation receptions. """ planets = copy(const.LIST_SEVEN_PLANETS) planets.remove(self.obj.id) mrs = {} ...
[ "Returns", "all", "mutual", "receptions", "with", "the", "object", "and", "other", "planets", "indexed", "by", "planet", "ID", ".", "It", "only", "includes", "ruler", "and", "exaltation", "receptions", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/dignities/accidental.py#L222-L235
[ "def", "reMutualReceptions", "(", "self", ")", ":", "planets", "=", "copy", "(", "const", ".", "LIST_SEVEN_PLANETS", ")", "planets", ".", "remove", "(", "self", ".", "obj", ".", "id", ")", "mrs", "=", "{", "}", "for", "ID", "in", "planets", ":", "mr"...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
AccidentalDignity.eqMutualReceptions
Returns a list with mutual receptions with the object and other planets, when the reception is the same for both (both ruler or both exaltation). It basically return a list with every ruler-ruler and exalt-exalt mutual receptions
flatlib/dignities/accidental.py
def eqMutualReceptions(self): """ Returns a list with mutual receptions with the object and other planets, when the reception is the same for both (both ruler or both exaltation). It basically return a list with every ruler-ruler and exalt-exalt mutual receptions ...
def eqMutualReceptions(self): """ Returns a list with mutual receptions with the object and other planets, when the reception is the same for both (both ruler or both exaltation). It basically return a list with every ruler-ruler and exalt-exalt mutual receptions ...
[ "Returns", "a", "list", "with", "mutual", "receptions", "with", "the", "object", "and", "other", "planets", "when", "the", "reception", "is", "the", "same", "for", "both", "(", "both", "ruler", "or", "both", "exaltation", ")", ".", "It", "basically", "retu...
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/dignities/accidental.py#L237-L252
[ "def", "eqMutualReceptions", "(", "self", ")", ":", "mrs", "=", "self", ".", "reMutualReceptions", "(", ")", "res", "=", "[", "]", "for", "ID", ",", "receptions", "in", "mrs", ".", "items", "(", ")", ":", "for", "pair", "in", "receptions", ":", "if",...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
AccidentalDignity.__aspectLists
Returns a list with the aspects that the object makes to the objects in IDs. It considers only conjunctions and other exact/applicative aspects if in aspList.
flatlib/dignities/accidental.py
def __aspectLists(self, IDs, aspList): """ Returns a list with the aspects that the object makes to the objects in IDs. It considers only conjunctions and other exact/applicative aspects if in aspList. """ res = [] for otherID in IDs: ...
def __aspectLists(self, IDs, aspList): """ Returns a list with the aspects that the object makes to the objects in IDs. It considers only conjunctions and other exact/applicative aspects if in aspList. """ res = [] for otherID in IDs: ...
[ "Returns", "a", "list", "with", "the", "aspects", "that", "the", "object", "makes", "to", "the", "objects", "in", "IDs", ".", "It", "considers", "only", "conjunctions", "and", "other", "exact", "/", "applicative", "aspects", "if", "in", "aspList", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/dignities/accidental.py#L257-L285
[ "def", "__aspectLists", "(", "self", ",", "IDs", ",", "aspList", ")", ":", "res", "=", "[", "]", "for", "otherID", "in", "IDs", ":", "# Ignore same ", "if", "otherID", "==", "self", ".", "obj", ".", "id", ":", "continue", "# Get aspects to the other object...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
AccidentalDignity.aspectBenefics
Returns a list with the good aspects the object makes to the benefics.
flatlib/dignities/accidental.py
def aspectBenefics(self): """ Returns a list with the good aspects the object makes to the benefics. """ benefics = [const.VENUS, const.JUPITER] return self.__aspectLists(benefics, aspList=[0, 60, 120])
def aspectBenefics(self): """ Returns a list with the good aspects the object makes to the benefics. """ benefics = [const.VENUS, const.JUPITER] return self.__aspectLists(benefics, aspList=[0, 60, 120])
[ "Returns", "a", "list", "with", "the", "good", "aspects", "the", "object", "makes", "to", "the", "benefics", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/dignities/accidental.py#L287-L293
[ "def", "aspectBenefics", "(", "self", ")", ":", "benefics", "=", "[", "const", ".", "VENUS", ",", "const", ".", "JUPITER", "]", "return", "self", ".", "__aspectLists", "(", "benefics", ",", "aspList", "=", "[", "0", ",", "60", ",", "120", "]", ")" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
AccidentalDignity.aspectMalefics
Returns a list with the bad aspects the object makes to the malefics.
flatlib/dignities/accidental.py
def aspectMalefics(self): """ Returns a list with the bad aspects the object makes to the malefics. """ malefics = [const.MARS, const.SATURN] return self.__aspectLists(malefics, aspList=[0, 90, 180])
def aspectMalefics(self): """ Returns a list with the bad aspects the object makes to the malefics. """ malefics = [const.MARS, const.SATURN] return self.__aspectLists(malefics, aspList=[0, 90, 180])
[ "Returns", "a", "list", "with", "the", "bad", "aspects", "the", "object", "makes", "to", "the", "malefics", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/dignities/accidental.py#L295-L301
[ "def", "aspectMalefics", "(", "self", ")", ":", "malefics", "=", "[", "const", ".", "MARS", ",", "const", ".", "SATURN", "]", "return", "self", ".", "__aspectLists", "(", "malefics", ",", "aspList", "=", "[", "0", ",", "90", ",", "180", "]", ")" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
AccidentalDignity.__sepApp
Returns true if the object last and next movement are separations and applications to objects in list IDs. It only considers aspects in aspList. This function is static since it does not test if the next application will be indeed perfected. It considers only a snapshot ...
flatlib/dignities/accidental.py
def __sepApp(self, IDs, aspList): """ Returns true if the object last and next movement are separations and applications to objects in list IDs. It only considers aspects in aspList. This function is static since it does not test if the next application will be indeed pe...
def __sepApp(self, IDs, aspList): """ Returns true if the object last and next movement are separations and applications to objects in list IDs. It only considers aspects in aspList. This function is static since it does not test if the next application will be indeed pe...
[ "Returns", "true", "if", "the", "object", "last", "and", "next", "movement", "are", "separations", "and", "applications", "to", "objects", "in", "list", "IDs", ".", "It", "only", "considers", "aspects", "in", "aspList", ".", "This", "function", "is", "static...
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/dignities/accidental.py#L306-L322
[ "def", "__sepApp", "(", "self", ",", "IDs", ",", "aspList", ")", ":", "sep", ",", "app", "=", "self", ".", "dyn", ".", "immediateAspects", "(", "self", ".", "obj", ".", "id", ",", "aspList", ")", "if", "sep", "is", "None", "or", "app", "is", "Non...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
AccidentalDignity.isAuxilied
Returns if the object is separating and applying to a benefic considering good aspects.
flatlib/dignities/accidental.py
def isAuxilied(self): """ Returns if the object is separating and applying to a benefic considering good aspects. """ benefics = [const.VENUS, const.JUPITER] return self.__sepApp(benefics, aspList=[0, 60, 120])
def isAuxilied(self): """ Returns if the object is separating and applying to a benefic considering good aspects. """ benefics = [const.VENUS, const.JUPITER] return self.__sepApp(benefics, aspList=[0, 60, 120])
[ "Returns", "if", "the", "object", "is", "separating", "and", "applying", "to", "a", "benefic", "considering", "good", "aspects", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/dignities/accidental.py#L324-L330
[ "def", "isAuxilied", "(", "self", ")", ":", "benefics", "=", "[", "const", ".", "VENUS", ",", "const", ".", "JUPITER", "]", "return", "self", ".", "__sepApp", "(", "benefics", ",", "aspList", "=", "[", "0", ",", "60", ",", "120", "]", ")" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
AccidentalDignity.isSurrounded
Returns if the object is separating and applying to a malefic considering bad aspects.
flatlib/dignities/accidental.py
def isSurrounded(self): """ Returns if the object is separating and applying to a malefic considering bad aspects. """ malefics = [const.MARS, const.SATURN] return self.__sepApp(malefics, aspList=[0, 90, 180])
def isSurrounded(self): """ Returns if the object is separating and applying to a malefic considering bad aspects. """ malefics = [const.MARS, const.SATURN] return self.__sepApp(malefics, aspList=[0, 90, 180])
[ "Returns", "if", "the", "object", "is", "separating", "and", "applying", "to", "a", "malefic", "considering", "bad", "aspects", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/dignities/accidental.py#L332-L338
[ "def", "isSurrounded", "(", "self", ")", ":", "malefics", "=", "[", "const", ".", "MARS", ",", "const", ".", "SATURN", "]", "return", "self", ".", "__sepApp", "(", "malefics", ",", "aspList", "=", "[", "0", ",", "90", ",", "180", "]", ")" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
AccidentalDignity.isConjNorthNode
Returns if object is conjunct north node.
flatlib/dignities/accidental.py
def isConjNorthNode(self): """ Returns if object is conjunct north node. """ node = self.chart.getObject(const.NORTH_NODE) return aspects.hasAspect(self.obj, node, aspList=[0])
def isConjNorthNode(self): """ Returns if object is conjunct north node. """ node = self.chart.getObject(const.NORTH_NODE) return aspects.hasAspect(self.obj, node, aspList=[0])
[ "Returns", "if", "object", "is", "conjunct", "north", "node", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/dignities/accidental.py#L343-L346
[ "def", "isConjNorthNode", "(", "self", ")", ":", "node", "=", "self", ".", "chart", ".", "getObject", "(", "const", ".", "NORTH_NODE", ")", "return", "aspects", ".", "hasAspect", "(", "self", ".", "obj", ",", "node", ",", "aspList", "=", "[", "0", "]...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
AccidentalDignity.isConjSouthNode
Returns if object is conjunct south node.
flatlib/dignities/accidental.py
def isConjSouthNode(self): """ Returns if object is conjunct south node. """ node = self.chart.getObject(const.SOUTH_NODE) return aspects.hasAspect(self.obj, node, aspList=[0])
def isConjSouthNode(self): """ Returns if object is conjunct south node. """ node = self.chart.getObject(const.SOUTH_NODE) return aspects.hasAspect(self.obj, node, aspList=[0])
[ "Returns", "if", "object", "is", "conjunct", "south", "node", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/dignities/accidental.py#L348-L351
[ "def", "isConjSouthNode", "(", "self", ")", ":", "node", "=", "self", ".", "chart", ".", "getObject", "(", "const", ".", "SOUTH_NODE", ")", "return", "aspects", ".", "hasAspect", "(", "self", ".", "obj", ",", "node", ",", "aspList", "=", "[", "0", "]...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
AccidentalDignity.isFeral
Returns true if the object does not have any aspects.
flatlib/dignities/accidental.py
def isFeral(self): """ Returns true if the object does not have any aspects. """ planets = copy(const.LIST_SEVEN_PLANETS) planets.remove(self.obj.id) for otherID in planets: otherObj = self.chart.getObject(otherID) if aspects.hasAspect(se...
def isFeral(self): """ Returns true if the object does not have any aspects. """ planets = copy(const.LIST_SEVEN_PLANETS) planets.remove(self.obj.id) for otherID in planets: otherObj = self.chart.getObject(otherID) if aspects.hasAspect(se...
[ "Returns", "true", "if", "the", "object", "does", "not", "have", "any", "aspects", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/dignities/accidental.py#L360-L371
[ "def", "isFeral", "(", "self", ")", ":", "planets", "=", "copy", "(", "const", ".", "LIST_SEVEN_PLANETS", ")", "planets", ".", "remove", "(", "self", ".", "obj", ".", "id", ")", "for", "otherID", "in", "planets", ":", "otherObj", "=", "self", ".", "c...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
AccidentalDignity.getScoreProperties
Returns the accidental dignity score of the object as dict.
flatlib/dignities/accidental.py
def getScoreProperties(self): """ Returns the accidental dignity score of the object as dict. """ obj = self.obj score = {} # Peregrine isPeregrine = essential.isPeregrine(obj.id, obj.sign, obj.signlon) score['peregrine'] = -5 if isPere...
def getScoreProperties(self): """ Returns the accidental dignity score of the object as dict. """ obj = self.obj score = {} # Peregrine isPeregrine = essential.isPeregrine(obj.id, obj.sign, obj.signlon) score['peregrine'] = -5 if isPere...
[ "Returns", "the", "accidental", "dignity", "score", "of", "the", "object", "as", "dict", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/dignities/accidental.py#L380-L467
[ "def", "getScoreProperties", "(", "self", ")", ":", "obj", "=", "self", ".", "obj", "score", "=", "{", "}", "# Peregrine", "isPeregrine", "=", "essential", ".", "isPeregrine", "(", "obj", ".", "id", ",", "obj", ".", "sign", ",", "obj", ".", "signlon", ...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
AccidentalDignity.getActiveProperties
Returns the non-zero accidental dignities.
flatlib/dignities/accidental.py
def getActiveProperties(self): """ Returns the non-zero accidental dignities. """ score = self.getScoreProperties() return {key: value for (key, value) in score.items() if value != 0}
def getActiveProperties(self): """ Returns the non-zero accidental dignities. """ score = self.getScoreProperties() return {key: value for (key, value) in score.items() if value != 0}
[ "Returns", "the", "non", "-", "zero", "accidental", "dignities", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/dignities/accidental.py#L469-L473
[ "def", "getActiveProperties", "(", "self", ")", ":", "score", "=", "self", ".", "getScoreProperties", "(", ")", "return", "{", "key", ":", "value", "for", "(", "key", ",", "value", ")", "in", "score", ".", "items", "(", ")", "if", "value", "!=", "0",...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
AccidentalDignity.score
Returns the sum of the accidental dignities score.
flatlib/dignities/accidental.py
def score(self): """ Returns the sum of the accidental dignities score. """ if not self.scoreProperties: self.scoreProperties = self.getScoreProperties() return sum(self.scoreProperties.values())
def score(self): """ Returns the sum of the accidental dignities score. """ if not self.scoreProperties: self.scoreProperties = self.getScoreProperties() return sum(self.scoreProperties.values())
[ "Returns", "the", "sum", "of", "the", "accidental", "dignities", "score", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/dignities/accidental.py#L475-L482
[ "def", "score", "(", "self", ")", ":", "if", "not", "self", ".", "scoreProperties", ":", "self", ".", "scoreProperties", "=", "self", ".", "getScoreProperties", "(", ")", "return", "sum", "(", "self", ".", "scoreProperties", ".", "values", "(", ")", ")" ...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
GenericObject.fromDict
Builds instance from dictionary of properties.
flatlib/object.py
def fromDict(cls, _dict): """ Builds instance from dictionary of properties. """ obj = cls() obj.__dict__.update(_dict) return obj
def fromDict(cls, _dict): """ Builds instance from dictionary of properties. """ obj = cls() obj.__dict__.update(_dict) return obj
[ "Builds", "instance", "from", "dictionary", "of", "properties", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/object.py#L39-L43
[ "def", "fromDict", "(", "cls", ",", "_dict", ")", ":", "obj", "=", "cls", "(", ")", "obj", ".", "__dict__", ".", "update", "(", "_dict", ")", "return", "obj" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
GenericObject.eqCoords
Returns the Equatorial Coordinates of this object. Receives a boolean parameter to consider a zero latitude.
flatlib/object.py
def eqCoords(self, zerolat=False): """ Returns the Equatorial Coordinates of this object. Receives a boolean parameter to consider a zero latitude. """ lat = 0.0 if zerolat else self.lat return utils.eqCoords(self.lon, lat)
def eqCoords(self, zerolat=False): """ Returns the Equatorial Coordinates of this object. Receives a boolean parameter to consider a zero latitude. """ lat = 0.0 if zerolat else self.lat return utils.eqCoords(self.lon, lat)
[ "Returns", "the", "Equatorial", "Coordinates", "of", "this", "object", ".", "Receives", "a", "boolean", "parameter", "to", "consider", "a", "zero", "latitude", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/object.py#L66-L72
[ "def", "eqCoords", "(", "self", ",", "zerolat", "=", "False", ")", ":", "lat", "=", "0.0", "if", "zerolat", "else", "self", ".", "lat", "return", "utils", ".", "eqCoords", "(", "self", ".", "lon", ",", "lat", ")" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
GenericObject.relocate
Relocates this object to a new longitude.
flatlib/object.py
def relocate(self, lon): """ Relocates this object to a new longitude. """ self.lon = angle.norm(lon) self.signlon = self.lon % 30 self.sign = const.LIST_SIGNS[int(self.lon / 30.0)]
def relocate(self, lon): """ Relocates this object to a new longitude. """ self.lon = angle.norm(lon) self.signlon = self.lon % 30 self.sign = const.LIST_SIGNS[int(self.lon / 30.0)]
[ "Relocates", "this", "object", "to", "a", "new", "longitude", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/object.py#L76-L80
[ "def", "relocate", "(", "self", ",", "lon", ")", ":", "self", ".", "lon", "=", "angle", ".", "norm", "(", "lon", ")", "self", ".", "signlon", "=", "self", ".", "lon", "%", "30", "self", ".", "sign", "=", "const", ".", "LIST_SIGNS", "[", "int", ...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
GenericObject.antiscia
Returns antiscia object.
flatlib/object.py
def antiscia(self): """ Returns antiscia object. """ obj = self.copy() obj.type = const.OBJ_GENERIC obj.relocate(360 - obj.lon + 180) return obj
def antiscia(self): """ Returns antiscia object. """ obj = self.copy() obj.type = const.OBJ_GENERIC obj.relocate(360 - obj.lon + 180) return obj
[ "Returns", "antiscia", "object", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/object.py#L82-L87
[ "def", "antiscia", "(", "self", ")", ":", "obj", "=", "self", ".", "copy", "(", ")", "obj", ".", "type", "=", "const", ".", "OBJ_GENERIC", "obj", ".", "relocate", "(", "360", "-", "obj", ".", "lon", "+", "180", ")", "return", "obj" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
Object.movement
Returns if this object is direct, retrograde or stationary.
flatlib/object.py
def movement(self): """ Returns if this object is direct, retrograde or stationary. """ if abs(self.lonspeed) < 0.0003: return const.STATIONARY elif self.lonspeed > 0: return const.DIRECT else: return const.RETROGRADE
def movement(self): """ Returns if this object is direct, retrograde or stationary. """ if abs(self.lonspeed) < 0.0003: return const.STATIONARY elif self.lonspeed > 0: return const.DIRECT else: return const.RETROGRADE
[ "Returns", "if", "this", "object", "is", "direct", "retrograde", "or", "stationary", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/object.py#L131-L141
[ "def", "movement", "(", "self", ")", ":", "if", "abs", "(", "self", ".", "lonspeed", ")", "<", "0.0003", ":", "return", "const", ".", "STATIONARY", "elif", "self", ".", "lonspeed", ">", "0", ":", "return", "const", ".", "DIRECT", "else", ":", "return...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
House.inHouse
Returns if a longitude belongs to this house.
flatlib/object.py
def inHouse(self, lon): """ Returns if a longitude belongs to this house. """ dist = angle.distance(self.lon + House._OFFSET, lon) return dist < self.size
def inHouse(self, lon): """ Returns if a longitude belongs to this house. """ dist = angle.distance(self.lon + House._OFFSET, lon) return dist < self.size
[ "Returns", "if", "a", "longitude", "belongs", "to", "this", "house", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/object.py#L219-L222
[ "def", "inHouse", "(", "self", ",", "lon", ")", ":", "dist", "=", "angle", ".", "distance", "(", "self", ".", "lon", "+", "House", ".", "_OFFSET", ",", "lon", ")", "return", "dist", "<", "self", ".", "size" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
FixedStar.orb
Returns the orb of this fixed star.
flatlib/object.py
def orb(self): """ Returns the orb of this fixed star. """ for (mag, orb) in FixedStar._ORBS: if self.mag < mag: return orb return 0.5
def orb(self): """ Returns the orb of this fixed star. """ for (mag, orb) in FixedStar._ORBS: if self.mag < mag: return orb return 0.5
[ "Returns", "the", "orb", "of", "this", "fixed", "star", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/object.py#L253-L258
[ "def", "orb", "(", "self", ")", ":", "for", "(", "mag", ",", "orb", ")", "in", "FixedStar", ".", "_ORBS", ":", "if", "self", ".", "mag", "<", "mag", ":", "return", "orb", "return", "0.5" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
FixedStar.aspects
Returns true if this star aspects another object. Fixed stars only aspect by conjunctions.
flatlib/object.py
def aspects(self, obj): """ Returns true if this star aspects another object. Fixed stars only aspect by conjunctions. """ dist = angle.closestdistance(self.lon, obj.lon) return abs(dist) < self.orb()
def aspects(self, obj): """ Returns true if this star aspects another object. Fixed stars only aspect by conjunctions. """ dist = angle.closestdistance(self.lon, obj.lon) return abs(dist) < self.orb()
[ "Returns", "true", "if", "this", "star", "aspects", "another", "object", ".", "Fixed", "stars", "only", "aspect", "by", "conjunctions", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/object.py#L262-L268
[ "def", "aspects", "(", "self", ",", "obj", ")", ":", "dist", "=", "angle", ".", "closestdistance", "(", "self", ".", "lon", ",", "obj", ".", "lon", ")", "return", "abs", "(", "dist", ")", "<", "self", ".", "orb", "(", ")" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
ObjectList.getObjectsInHouse
Returns a list with all objects in a house.
flatlib/lists.py
def getObjectsInHouse(self, house): """ Returns a list with all objects in a house. """ res = [obj for obj in self if house.hasObject(obj)] return ObjectList(res)
def getObjectsInHouse(self, house): """ Returns a list with all objects in a house. """ res = [obj for obj in self if house.hasObject(obj)] return ObjectList(res)
[ "Returns", "a", "list", "with", "all", "objects", "in", "a", "house", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/lists.py#L63-L66
[ "def", "getObjectsInHouse", "(", "self", ",", "house", ")", ":", "res", "=", "[", "obj", "for", "obj", "in", "self", "if", "house", ".", "hasObject", "(", "obj", ")", "]", "return", "ObjectList", "(", "res", ")" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
ObjectList.getObjectsAspecting
Returns a list of objects aspecting a point considering a list of possible aspects.
flatlib/lists.py
def getObjectsAspecting(self, point, aspList): """ Returns a list of objects aspecting a point considering a list of possible aspects. """ res = [] for obj in self: if obj.isPlanet() and aspects.isAspecting(obj, point, aspList): res.append(ob...
def getObjectsAspecting(self, point, aspList): """ Returns a list of objects aspecting a point considering a list of possible aspects. """ res = [] for obj in self: if obj.isPlanet() and aspects.isAspecting(obj, point, aspList): res.append(ob...
[ "Returns", "a", "list", "of", "objects", "aspecting", "a", "point", "considering", "a", "list", "of", "possible", "aspects", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/lists.py#L68-L77
[ "def", "getObjectsAspecting", "(", "self", ",", "point", ",", "aspList", ")", ":", "res", "=", "[", "]", "for", "obj", "in", "self", ":", "if", "obj", ".", "isPlanet", "(", ")", "and", "aspects", ".", "isAspecting", "(", "obj", ",", "point", ",", "...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
arc
Returns the arc of direction between a Promissor and Significator. It uses the generic proportional semi-arc method.
flatlib/predictives/primarydirections.py
def arc(pRA, pDecl, sRA, sDecl, mcRA, lat): """ Returns the arc of direction between a Promissor and Significator. It uses the generic proportional semi-arc method. """ pDArc, pNArc = utils.dnarcs(pDecl, lat) sDArc, sNArc = utils.dnarcs(sDecl, lat) # Select meridian and arcs to b...
def arc(pRA, pDecl, sRA, sDecl, mcRA, lat): """ Returns the arc of direction between a Promissor and Significator. It uses the generic proportional semi-arc method. """ pDArc, pNArc = utils.dnarcs(pDecl, lat) sDArc, sNArc = utils.dnarcs(sDecl, lat) # Select meridian and arcs to b...
[ "Returns", "the", "arc", "of", "direction", "between", "a", "Promissor", "and", "Significator", ".", "It", "uses", "the", "generic", "proportional", "semi", "-", "arc", "method", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/predictives/primarydirections.py#L25-L59
[ "def", "arc", "(", "pRA", ",", "pDecl", ",", "sRA", ",", "sDecl", ",", "mcRA", ",", "lat", ")", ":", "pDArc", ",", "pNArc", "=", "utils", ".", "dnarcs", "(", "pDecl", ",", "lat", ")", "sDArc", ",", "sNArc", "=", "utils", ".", "dnarcs", "(", "sD...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
getArc
Returns the arc of direction between a promissor and a significator. Arguments are also the MC, the geoposition and zerolat to assume zero ecliptical latitudes. ZeroLat true => inZodiaco, false => inMundo
flatlib/predictives/primarydirections.py
def getArc(prom, sig, mc, pos, zerolat): """ Returns the arc of direction between a promissor and a significator. Arguments are also the MC, the geoposition and zerolat to assume zero ecliptical latitudes. ZeroLat true => inZodiaco, false => inMundo """ pRA, pDecl = prom.eqCoords(...
def getArc(prom, sig, mc, pos, zerolat): """ Returns the arc of direction between a promissor and a significator. Arguments are also the MC, the geoposition and zerolat to assume zero ecliptical latitudes. ZeroLat true => inZodiaco, false => inMundo """ pRA, pDecl = prom.eqCoords(...
[ "Returns", "the", "arc", "of", "direction", "between", "a", "promissor", "and", "a", "significator", ".", "Arguments", "are", "also", "the", "MC", "the", "geoposition", "and", "zerolat", "to", "assume", "zero", "ecliptical", "latitudes", ".", "ZeroLat", "true"...
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/predictives/primarydirections.py#L61-L73
[ "def", "getArc", "(", "prom", ",", "sig", ",", "mc", ",", "pos", ",", "zerolat", ")", ":", "pRA", ",", "pDecl", "=", "prom", ".", "eqCoords", "(", "zerolat", ")", "sRa", ",", "sDecl", "=", "sig", ".", "eqCoords", "(", "zerolat", ")", "mcRa", ",",...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
PrimaryDirections._buildTerms
Builds a data structure indexing the terms longitude by sign and object.
flatlib/predictives/primarydirections.py
def _buildTerms(self): """ Builds a data structure indexing the terms longitude by sign and object. """ termLons = tables.termLons(tables.EGYPTIAN_TERMS) res = {} for (ID, sign, lon) in termLons: try: res[sign][ID] = lon ex...
def _buildTerms(self): """ Builds a data structure indexing the terms longitude by sign and object. """ termLons = tables.termLons(tables.EGYPTIAN_TERMS) res = {} for (ID, sign, lon) in termLons: try: res[sign][ID] = lon ex...
[ "Builds", "a", "data", "structure", "indexing", "the", "terms", "longitude", "by", "sign", "and", "object", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/predictives/primarydirections.py#L118-L131
[ "def", "_buildTerms", "(", "self", ")", ":", "termLons", "=", "tables", ".", "termLons", "(", "tables", ".", "EGYPTIAN_TERMS", ")", "res", "=", "{", "}", "for", "(", "ID", ",", "sign", ",", "lon", ")", "in", "termLons", ":", "try", ":", "res", "[",...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
PrimaryDirections.G
Creates a generic entry for an object.
flatlib/predictives/primarydirections.py
def G(self, ID, lat, lon): """ Creates a generic entry for an object. """ # Equatorial coordinates eqM = utils.eqCoords(lon, lat) eqZ = eqM if lat != 0: eqZ = utils.eqCoords(lon, 0) return { 'id': ID, 'lat': lat, ...
def G(self, ID, lat, lon): """ Creates a generic entry for an object. """ # Equatorial coordinates eqM = utils.eqCoords(lon, lat) eqZ = eqM if lat != 0: eqZ = utils.eqCoords(lon, 0) return { 'id': ID, 'lat': lat, ...
[ "Creates", "a", "generic", "entry", "for", "an", "object", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/predictives/primarydirections.py#L136-L153
[ "def", "G", "(", "self", ",", "ID", ",", "lat", ",", "lon", ")", ":", "# Equatorial coordinates", "eqM", "=", "utils", ".", "eqCoords", "(", "lon", ",", "lat", ")", "eqZ", "=", "eqM", "if", "lat", "!=", "0", ":", "eqZ", "=", "utils", ".", "eqCoor...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
PrimaryDirections.T
Returns the term of an object in a sign.
flatlib/predictives/primarydirections.py
def T(self, ID, sign): """ Returns the term of an object in a sign. """ lon = self.terms[sign][ID] ID = 'T_%s_%s' % (ID, sign) return self.G(ID, 0, lon)
def T(self, ID, sign): """ Returns the term of an object in a sign. """ lon = self.terms[sign][ID] ID = 'T_%s_%s' % (ID, sign) return self.G(ID, 0, lon)
[ "Returns", "the", "term", "of", "an", "object", "in", "a", "sign", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/predictives/primarydirections.py#L155-L159
[ "def", "T", "(", "self", ",", "ID", ",", "sign", ")", ":", "lon", "=", "self", ".", "terms", "[", "sign", "]", "[", "ID", "]", "ID", "=", "'T_%s_%s'", "%", "(", "ID", ",", "sign", ")", "return", "self", ".", "G", "(", "ID", ",", "0", ",", ...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
PrimaryDirections.A
Returns the Antiscia of an object.
flatlib/predictives/primarydirections.py
def A(self, ID): """ Returns the Antiscia of an object. """ obj = self.chart.getObject(ID).antiscia() ID = 'A_%s' % (ID) return self.G(ID, obj.lat, obj.lon)
def A(self, ID): """ Returns the Antiscia of an object. """ obj = self.chart.getObject(ID).antiscia() ID = 'A_%s' % (ID) return self.G(ID, obj.lat, obj.lon)
[ "Returns", "the", "Antiscia", "of", "an", "object", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/predictives/primarydirections.py#L161-L165
[ "def", "A", "(", "self", ",", "ID", ")", ":", "obj", "=", "self", ".", "chart", ".", "getObject", "(", "ID", ")", ".", "antiscia", "(", ")", "ID", "=", "'A_%s'", "%", "(", "ID", ")", "return", "self", ".", "G", "(", "ID", ",", "obj", ".", "...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
PrimaryDirections.C
Returns the CAntiscia of an object.
flatlib/predictives/primarydirections.py
def C(self, ID): """ Returns the CAntiscia of an object. """ obj = self.chart.getObject(ID).cantiscia() ID = 'C_%s' % (ID) return self.G(ID, obj.lat, obj.lon)
def C(self, ID): """ Returns the CAntiscia of an object. """ obj = self.chart.getObject(ID).cantiscia() ID = 'C_%s' % (ID) return self.G(ID, obj.lat, obj.lon)
[ "Returns", "the", "CAntiscia", "of", "an", "object", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/predictives/primarydirections.py#L167-L171
[ "def", "C", "(", "self", ",", "ID", ")", ":", "obj", "=", "self", ".", "chart", ".", "getObject", "(", "ID", ")", ".", "cantiscia", "(", ")", "ID", "=", "'C_%s'", "%", "(", "ID", ")", "return", "self", ".", "G", "(", "ID", ",", "obj", ".", ...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
PrimaryDirections.D
Returns the dexter aspect of an object.
flatlib/predictives/primarydirections.py
def D(self, ID, asp): """ Returns the dexter aspect of an object. """ obj = self.chart.getObject(ID).copy() obj.relocate(obj.lon - asp) ID = 'D_%s_%s' % (ID, asp) return self.G(ID, obj.lat, obj.lon)
def D(self, ID, asp): """ Returns the dexter aspect of an object. """ obj = self.chart.getObject(ID).copy() obj.relocate(obj.lon - asp) ID = 'D_%s_%s' % (ID, asp) return self.G(ID, obj.lat, obj.lon)
[ "Returns", "the", "dexter", "aspect", "of", "an", "object", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/predictives/primarydirections.py#L173-L178
[ "def", "D", "(", "self", ",", "ID", ",", "asp", ")", ":", "obj", "=", "self", ".", "chart", ".", "getObject", "(", "ID", ")", ".", "copy", "(", ")", "obj", ".", "relocate", "(", "obj", ".", "lon", "-", "asp", ")", "ID", "=", "'D_%s_%s'", "%",...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
PrimaryDirections.N
Returns the conjunction or opposition aspect of an object.
flatlib/predictives/primarydirections.py
def N(self, ID, asp=0): """ Returns the conjunction or opposition aspect of an object. """ obj = self.chart.get(ID).copy() obj.relocate(obj.lon + asp) ID = 'N_%s_%s' % (ID, asp) return self.G(ID, obj.lat, obj.lon)
def N(self, ID, asp=0): """ Returns the conjunction or opposition aspect of an object. """ obj = self.chart.get(ID).copy() obj.relocate(obj.lon + asp) ID = 'N_%s_%s' % (ID, asp) return self.G(ID, obj.lat, obj.lon)
[ "Returns", "the", "conjunction", "or", "opposition", "aspect", "of", "an", "object", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/predictives/primarydirections.py#L187-L195
[ "def", "N", "(", "self", ",", "ID", ",", "asp", "=", "0", ")", ":", "obj", "=", "self", ".", "chart", ".", "get", "(", "ID", ")", ".", "copy", "(", ")", "obj", ".", "relocate", "(", "obj", ".", "lon", "+", "asp", ")", "ID", "=", "'N_%s_%s'"...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
PrimaryDirections._arc
Computes the in-zodiaco and in-mundo arcs between a promissor and a significator.
flatlib/predictives/primarydirections.py
def _arc(self, prom, sig): """ Computes the in-zodiaco and in-mundo arcs between a promissor and a significator. """ arcm = arc(prom['ra'], prom['decl'], sig['ra'], sig['decl'], self.mcRA, self.lat) arcz = arc(prom['raZ'], prom['d...
def _arc(self, prom, sig): """ Computes the in-zodiaco and in-mundo arcs between a promissor and a significator. """ arcm = arc(prom['ra'], prom['decl'], sig['ra'], sig['decl'], self.mcRA, self.lat) arcz = arc(prom['raZ'], prom['d...
[ "Computes", "the", "in", "-", "zodiaco", "and", "in", "-", "mundo", "arcs", "between", "a", "promissor", "and", "a", "significator", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/predictives/primarydirections.py#L200-L214
[ "def", "_arc", "(", "self", ",", "prom", ",", "sig", ")", ":", "arcm", "=", "arc", "(", "prom", "[", "'ra'", "]", ",", "prom", "[", "'decl'", "]", ",", "sig", "[", "'ra'", "]", ",", "sig", "[", "'decl'", "]", ",", "self", ".", "mcRA", ",", ...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
PrimaryDirections.getArc
Returns the arcs between a promissor and a significator. Should uses the object creation functions to build the objects.
flatlib/predictives/primarydirections.py
def getArc(self, prom, sig): """ Returns the arcs between a promissor and a significator. Should uses the object creation functions to build the objects. """ res = self._arc(prom, sig) res.update({ 'prom': prom['id'], 'sig': sig['id'] ...
def getArc(self, prom, sig): """ Returns the arcs between a promissor and a significator. Should uses the object creation functions to build the objects. """ res = self._arc(prom, sig) res.update({ 'prom': prom['id'], 'sig': sig['id'] ...
[ "Returns", "the", "arcs", "between", "a", "promissor", "and", "a", "significator", ".", "Should", "uses", "the", "object", "creation", "functions", "to", "build", "the", "objects", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/predictives/primarydirections.py#L216-L227
[ "def", "getArc", "(", "self", ",", "prom", ",", "sig", ")", ":", "res", "=", "self", ".", "_arc", "(", "prom", ",", "sig", ")", "res", ".", "update", "(", "{", "'prom'", ":", "prom", "[", "'id'", "]", ",", "'sig'", ":", "sig", "[", "'id'", "]...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
PrimaryDirections._elements
Returns the IDs as objects considering the aspList and the function.
flatlib/predictives/primarydirections.py
def _elements(self, IDs, func, aspList): """ Returns the IDs as objects considering the aspList and the function. """ res = [] for asp in aspList: if (asp in [0, 180]): # Generate func for conjunctions and oppositions if func =...
def _elements(self, IDs, func, aspList): """ Returns the IDs as objects considering the aspList and the function. """ res = [] for asp in aspList: if (asp in [0, 180]): # Generate func for conjunctions and oppositions if func =...
[ "Returns", "the", "IDs", "as", "objects", "considering", "the", "aspList", "and", "the", "function", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/predictives/primarydirections.py#L232-L249
[ "def", "_elements", "(", "self", ",", "IDs", ",", "func", ",", "aspList", ")", ":", "res", "=", "[", "]", "for", "asp", "in", "aspList", ":", "if", "(", "asp", "in", "[", "0", ",", "180", "]", ")", ":", "# Generate func for conjunctions and oppositions...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
PrimaryDirections._terms
Returns a list with the objects as terms.
flatlib/predictives/primarydirections.py
def _terms(self): """ Returns a list with the objects as terms. """ res = [] for sign, terms in self.terms.items(): for ID, lon in terms.items(): res.append(self.T(ID, sign)) return res
def _terms(self): """ Returns a list with the objects as terms. """ res = [] for sign, terms in self.terms.items(): for ID, lon in terms.items(): res.append(self.T(ID, sign)) return res
[ "Returns", "a", "list", "with", "the", "objects", "as", "terms", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/predictives/primarydirections.py#L251-L257
[ "def", "_terms", "(", "self", ")", ":", "res", "=", "[", "]", "for", "sign", ",", "terms", "in", "self", ".", "terms", ".", "items", "(", ")", ":", "for", "ID", ",", "lon", "in", "terms", ".", "items", "(", ")", ":", "res", ".", "append", "("...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
PrimaryDirections.getList
Returns a sorted list with all primary directions.
flatlib/predictives/primarydirections.py
def getList(self, aspList): """ Returns a sorted list with all primary directions. """ # Significators objects = self._elements(self.SIG_OBJECTS, self.N, [0]) houses = self._elements(self.SIG_HOUSES, self.N, [0]) angles = self._elements(self.SIG_ANGLES, ...
def getList(self, aspList): """ Returns a sorted list with all primary directions. """ # Significators objects = self._elements(self.SIG_OBJECTS, self.N, [0]) houses = self._elements(self.SIG_HOUSES, self.N, [0]) angles = self._elements(self.SIG_ANGLES, ...
[ "Returns", "a", "sorted", "list", "with", "all", "primary", "directions", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/predictives/primarydirections.py#L259-L294
[ "def", "getList", "(", "self", ",", "aspList", ")", ":", "# Significators", "objects", "=", "self", ".", "_elements", "(", "self", ".", "SIG_OBJECTS", ",", "self", ".", "N", ",", "[", "0", "]", ")", "houses", "=", "self", ".", "_elements", "(", "self...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
PDTable.view
Returns the directions within the min and max arcs.
flatlib/predictives/primarydirections.py
def view(self, arcmin, arcmax): """ Returns the directions within the min and max arcs. """ res = [] for direction in self.table: if arcmin < direction[0] < arcmax: res.append(direction) return res
def view(self, arcmin, arcmax): """ Returns the directions within the min and max arcs. """ res = [] for direction in self.table: if arcmin < direction[0] < arcmax: res.append(direction) return res
[ "Returns", "the", "directions", "within", "the", "min", "and", "max", "arcs", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/predictives/primarydirections.py#L311-L320
[ "def", "view", "(", "self", ",", "arcmin", ",", "arcmax", ")", ":", "res", "=", "[", "]", "for", "direction", "in", "self", ".", "table", ":", "if", "arcmin", "<", "direction", "[", "0", "]", "<", "arcmax", ":", "res", ".", "append", "(", "direct...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
PDTable.bySignificator
Returns all directions to a significator.
flatlib/predictives/primarydirections.py
def bySignificator(self, ID): """ Returns all directions to a significator. """ res = [] for direction in self.table: if ID in direction[2]: res.append(direction) return res
def bySignificator(self, ID): """ Returns all directions to a significator. """ res = [] for direction in self.table: if ID in direction[2]: res.append(direction) return res
[ "Returns", "all", "directions", "to", "a", "significator", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/predictives/primarydirections.py#L322-L328
[ "def", "bySignificator", "(", "self", ",", "ID", ")", ":", "res", "=", "[", "]", "for", "direction", "in", "self", ".", "table", ":", "if", "ID", "in", "direction", "[", "2", "]", ":", "res", ".", "append", "(", "direction", ")", "return", "res" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
PDTable.byPromissor
Returns all directions to a promissor.
flatlib/predictives/primarydirections.py
def byPromissor(self, ID): """ Returns all directions to a promissor. """ res = [] for direction in self.table: if ID in direction[1]: res.append(direction) return res
def byPromissor(self, ID): """ Returns all directions to a promissor. """ res = [] for direction in self.table: if ID in direction[1]: res.append(direction) return res
[ "Returns", "all", "directions", "to", "a", "promissor", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/predictives/primarydirections.py#L330-L336
[ "def", "byPromissor", "(", "self", ",", "ID", ")", ":", "res", "=", "[", "]", "for", "direction", "in", "self", ".", "table", ":", "if", "ID", "in", "direction", "[", "1", "]", ":", "res", ".", "append", "(", "direction", ")", "return", "res" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
Chart.copy
Returns a deep copy of this chart.
flatlib/chart.py
def copy(self): """ Returns a deep copy of this chart. """ chart = Chart.__new__(Chart) chart.date = self.date chart.pos = self.pos chart.hsys = self.hsys chart.objects = self.objects.copy() chart.houses = self.houses.copy() chart.angles = self.angles.copy...
def copy(self): """ Returns a deep copy of this chart. """ chart = Chart.__new__(Chart) chart.date = self.date chart.pos = self.pos chart.hsys = self.hsys chart.objects = self.objects.copy() chart.houses = self.houses.copy() chart.angles = self.angles.copy...
[ "Returns", "a", "deep", "copy", "of", "this", "chart", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/chart.py#L56-L65
[ "def", "copy", "(", "self", ")", ":", "chart", "=", "Chart", ".", "__new__", "(", "Chart", ")", "chart", ".", "date", "=", "self", ".", "date", "chart", ".", "pos", "=", "self", ".", "pos", "chart", ".", "hsys", "=", "self", ".", "hsys", "chart",...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
Chart.get
Returns an object, house or angle from the chart.
flatlib/chart.py
def get(self, ID): """ Returns an object, house or angle from the chart. """ if ID.startswith('House'): return self.getHouse(ID) elif ID in const.LIST_ANGLES: return self.getAngle(ID) else: return self.getObject(ID)
def get(self, ID): """ Returns an object, house or angle from the chart. """ if ID.startswith('House'): return self.getHouse(ID) elif ID in const.LIST_ANGLES: return self.getAngle(ID) else: return self.getObject(ID)
[ "Returns", "an", "object", "house", "or", "angle", "from", "the", "chart", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/chart.py#L82-L92
[ "def", "get", "(", "self", ",", "ID", ")", ":", "if", "ID", ".", "startswith", "(", "'House'", ")", ":", "return", "self", ".", "getHouse", "(", "ID", ")", "elif", "ID", "in", "const", ".", "LIST_ANGLES", ":", "return", "self", ".", "getAngle", "("...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
Chart.getFixedStars
Returns a list with all fixed stars.
flatlib/chart.py
def getFixedStars(self): """ Returns a list with all fixed stars. """ IDs = const.LIST_FIXED_STARS return ephem.getFixedStarList(IDs, self.date)
def getFixedStars(self): """ Returns a list with all fixed stars. """ IDs = const.LIST_FIXED_STARS return ephem.getFixedStarList(IDs, self.date)
[ "Returns", "a", "list", "with", "all", "fixed", "stars", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/chart.py#L105-L108
[ "def", "getFixedStars", "(", "self", ")", ":", "IDs", "=", "const", ".", "LIST_FIXED_STARS", "return", "ephem", ".", "getFixedStarList", "(", "IDs", ",", "self", ".", "date", ")" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
Chart.isHouse1Asc
Returns true if House1 is the same as the Asc.
flatlib/chart.py
def isHouse1Asc(self): """ Returns true if House1 is the same as the Asc. """ house1 = self.getHouse(const.HOUSE1) asc = self.getAngle(const.ASC) dist = angle.closestdistance(house1.lon, asc.lon) return abs(dist) < 0.0003
def isHouse1Asc(self): """ Returns true if House1 is the same as the Asc. """ house1 = self.getHouse(const.HOUSE1) asc = self.getAngle(const.ASC) dist = angle.closestdistance(house1.lon, asc.lon) return abs(dist) < 0.0003
[ "Returns", "true", "if", "House1", "is", "the", "same", "as", "the", "Asc", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/chart.py#L113-L118
[ "def", "isHouse1Asc", "(", "self", ")", ":", "house1", "=", "self", ".", "getHouse", "(", "const", ".", "HOUSE1", ")", "asc", "=", "self", ".", "getAngle", "(", "const", ".", "ASC", ")", "dist", "=", "angle", ".", "closestdistance", "(", "house1", "....
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
Chart.isHouse10MC
Returns true if House10 is the same as the MC.
flatlib/chart.py
def isHouse10MC(self): """ Returns true if House10 is the same as the MC. """ house10 = self.getHouse(const.HOUSE10) mc = self.getAngle(const.MC) dist = angle.closestdistance(house10.lon, mc.lon) return abs(dist) < 0.0003
def isHouse10MC(self): """ Returns true if House10 is the same as the MC. """ house10 = self.getHouse(const.HOUSE10) mc = self.getAngle(const.MC) dist = angle.closestdistance(house10.lon, mc.lon) return abs(dist) < 0.0003
[ "Returns", "true", "if", "House10", "is", "the", "same", "as", "the", "MC", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/chart.py#L120-L125
[ "def", "isHouse10MC", "(", "self", ")", ":", "house10", "=", "self", ".", "getHouse", "(", "const", ".", "HOUSE10", ")", "mc", "=", "self", ".", "getAngle", "(", "const", ".", "MC", ")", "dist", "=", "angle", ".", "closestdistance", "(", "house10", "...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
Chart.isDiurnal
Returns true if this chart is diurnal.
flatlib/chart.py
def isDiurnal(self): """ Returns true if this chart is diurnal. """ sun = self.getObject(const.SUN) mc = self.getAngle(const.MC) # Get ecliptical positions and check if the # sun is above the horizon. lat = self.pos.lat sunRA, sunDecl = utils.eqCoords(sun...
def isDiurnal(self): """ Returns true if this chart is diurnal. """ sun = self.getObject(const.SUN) mc = self.getAngle(const.MC) # Get ecliptical positions and check if the # sun is above the horizon. lat = self.pos.lat sunRA, sunDecl = utils.eqCoords(sun...
[ "Returns", "true", "if", "this", "chart", "is", "diurnal", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/chart.py#L130-L140
[ "def", "isDiurnal", "(", "self", ")", ":", "sun", "=", "self", ".", "getObject", "(", "const", ".", "SUN", ")", "mc", "=", "self", ".", "getAngle", "(", "const", ".", "MC", ")", "# Get ecliptical positions and check if the", "# sun is above the horizon.", "lat...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
Chart.getMoonPhase
Returns the phase of the moon.
flatlib/chart.py
def getMoonPhase(self): """ Returns the phase of the moon. """ sun = self.getObject(const.SUN) moon = self.getObject(const.MOON) dist = angle.distance(sun.lon, moon.lon) if dist < 90: return const.MOON_FIRST_QUARTER elif dist < 180: return const.MO...
def getMoonPhase(self): """ Returns the phase of the moon. """ sun = self.getObject(const.SUN) moon = self.getObject(const.MOON) dist = angle.distance(sun.lon, moon.lon) if dist < 90: return const.MOON_FIRST_QUARTER elif dist < 180: return const.MO...
[ "Returns", "the", "phase", "of", "the", "moon", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/chart.py#L142-L154
[ "def", "getMoonPhase", "(", "self", ")", ":", "sun", "=", "self", ".", "getObject", "(", "const", ".", "SUN", ")", "moon", "=", "self", ".", "getObject", "(", "const", ".", "MOON", ")", "dist", "=", "angle", ".", "distance", "(", "sun", ".", "lon",...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
Chart.solarReturn
Returns this chart's solar return for a given year.
flatlib/chart.py
def solarReturn(self, year): """ Returns this chart's solar return for a given year. """ sun = self.getObject(const.SUN) date = Datetime('{0}/01/01'.format(year), '00:00', self.date.utcoffset) srDate = ephem.nextS...
def solarReturn(self, year): """ Returns this chart's solar return for a given year. """ sun = self.getObject(const.SUN) date = Datetime('{0}/01/01'.format(year), '00:00', self.date.utcoffset) srDate = ephem.nextS...
[ "Returns", "this", "chart", "s", "solar", "return", "for", "a", "given", "year", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/chart.py#L159-L169
[ "def", "solarReturn", "(", "self", ",", "year", ")", ":", "sun", "=", "self", ".", "getObject", "(", "const", ".", "SUN", ")", "date", "=", "Datetime", "(", "'{0}/01/01'", ".", "format", "(", "year", ")", ",", "'00:00'", ",", "self", ".", "date", "...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
objLon
Returns the longitude of an object.
flatlib/tools/arabicparts.py
def objLon(ID, chart): """ Returns the longitude of an object. """ if ID.startswith('$R'): # Return Ruler ID = ID[2:] obj = chart.get(ID) rulerID = essential.ruler(obj.sign) ruler = chart.getObject(rulerID) return ruler.lon elif ID.startswith('Pars'): ...
def objLon(ID, chart): """ Returns the longitude of an object. """ if ID.startswith('$R'): # Return Ruler ID = ID[2:] obj = chart.get(ID) rulerID = essential.ruler(obj.sign) ruler = chart.getObject(rulerID) return ruler.lon elif ID.startswith('Pars'): ...
[ "Returns", "the", "longitude", "of", "an", "object", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/tools/arabicparts.py#L151-L166
[ "def", "objLon", "(", "ID", ",", "chart", ")", ":", "if", "ID", ".", "startswith", "(", "'$R'", ")", ":", "# Return Ruler", "ID", "=", "ID", "[", "2", ":", "]", "obj", "=", "chart", ".", "get", "(", "ID", ")", "rulerID", "=", "essential", ".", ...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
partLon
Returns the longitude of an arabic part.
flatlib/tools/arabicparts.py
def partLon(ID, chart): """ Returns the longitude of an arabic part. """ # Get diurnal or nocturnal formula abc = FORMULAS[ID][0] if chart.isDiurnal() else FORMULAS[ID][1] a = objLon(abc[0], chart) b = objLon(abc[1], chart) c = objLon(abc[2], chart) return c + b - a
def partLon(ID, chart): """ Returns the longitude of an arabic part. """ # Get diurnal or nocturnal formula abc = FORMULAS[ID][0] if chart.isDiurnal() else FORMULAS[ID][1] a = objLon(abc[0], chart) b = objLon(abc[1], chart) c = objLon(abc[2], chart) return c + b - a
[ "Returns", "the", "longitude", "of", "an", "arabic", "part", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/tools/arabicparts.py#L168-L175
[ "def", "partLon", "(", "ID", ",", "chart", ")", ":", "# Get diurnal or nocturnal formula", "abc", "=", "FORMULAS", "[", "ID", "]", "[", "0", "]", "if", "chart", ".", "isDiurnal", "(", ")", "else", "FORMULAS", "[", "ID", "]", "[", "1", "]", "a", "=", ...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
getPart
Returns an Arabic Part.
flatlib/tools/arabicparts.py
def getPart(ID, chart): """ Returns an Arabic Part. """ obj = GenericObject() obj.id = ID obj.type = const.OBJ_ARABIC_PART obj.relocate(partLon(ID, chart)) return obj
def getPart(ID, chart): """ Returns an Arabic Part. """ obj = GenericObject() obj.id = ID obj.type = const.OBJ_ARABIC_PART obj.relocate(partLon(ID, chart)) return obj
[ "Returns", "an", "Arabic", "Part", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/tools/arabicparts.py#L177-L183
[ "def", "getPart", "(", "ID", ",", "chart", ")", ":", "obj", "=", "GenericObject", "(", ")", "obj", ".", "id", "=", "ID", "obj", ".", "type", "=", "const", ".", "OBJ_ARABIC_PART", "obj", ".", "relocate", "(", "partLon", "(", "ID", ",", "chart", ")",...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
sweObject
Returns an object from the Ephemeris.
flatlib/ephem/swe.py
def sweObject(obj, jd): """ Returns an object from the Ephemeris. """ sweObj = SWE_OBJECTS[obj] sweList = swisseph.calc_ut(jd, sweObj) return { 'id': obj, 'lon': sweList[0], 'lat': sweList[1], 'lonspeed': sweList[3], 'latspeed': sweList[4] }
def sweObject(obj, jd): """ Returns an object from the Ephemeris. """ sweObj = SWE_OBJECTS[obj] sweList = swisseph.calc_ut(jd, sweObj) return { 'id': obj, 'lon': sweList[0], 'lat': sweList[1], 'lonspeed': sweList[3], 'latspeed': sweList[4] }
[ "Returns", "an", "object", "from", "the", "Ephemeris", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/ephem/swe.py#L63-L73
[ "def", "sweObject", "(", "obj", ",", "jd", ")", ":", "sweObj", "=", "SWE_OBJECTS", "[", "obj", "]", "sweList", "=", "swisseph", ".", "calc_ut", "(", "jd", ",", "sweObj", ")", "return", "{", "'id'", ":", "obj", ",", "'lon'", ":", "sweList", "[", "0"...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
sweObjectLon
Returns the longitude of an object.
flatlib/ephem/swe.py
def sweObjectLon(obj, jd): """ Returns the longitude of an object. """ sweObj = SWE_OBJECTS[obj] sweList = swisseph.calc_ut(jd, sweObj) return sweList[0]
def sweObjectLon(obj, jd): """ Returns the longitude of an object. """ sweObj = SWE_OBJECTS[obj] sweList = swisseph.calc_ut(jd, sweObj) return sweList[0]
[ "Returns", "the", "longitude", "of", "an", "object", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/ephem/swe.py#L75-L79
[ "def", "sweObjectLon", "(", "obj", ",", "jd", ")", ":", "sweObj", "=", "SWE_OBJECTS", "[", "obj", "]", "sweList", "=", "swisseph", ".", "calc_ut", "(", "jd", ",", "sweObj", ")", "return", "sweList", "[", "0", "]" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
sweNextTransit
Returns the julian date of the next transit of an object. The flag should be 'RISE' or 'SET'.
flatlib/ephem/swe.py
def sweNextTransit(obj, jd, lat, lon, flag): """ Returns the julian date of the next transit of an object. The flag should be 'RISE' or 'SET'. """ sweObj = SWE_OBJECTS[obj] flag = swisseph.CALC_RISE if flag == 'RISE' else swisseph.CALC_SET trans = swisseph.rise_trans(jd, sweObj, lon, lat, ...
def sweNextTransit(obj, jd, lat, lon, flag): """ Returns the julian date of the next transit of an object. The flag should be 'RISE' or 'SET'. """ sweObj = SWE_OBJECTS[obj] flag = swisseph.CALC_RISE if flag == 'RISE' else swisseph.CALC_SET trans = swisseph.rise_trans(jd, sweObj, lon, lat, ...
[ "Returns", "the", "julian", "date", "of", "the", "next", "transit", "of", "an", "object", ".", "The", "flag", "should", "be", "RISE", "or", "SET", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/ephem/swe.py#L81-L89
[ "def", "sweNextTransit", "(", "obj", ",", "jd", ",", "lat", ",", "lon", ",", "flag", ")", ":", "sweObj", "=", "SWE_OBJECTS", "[", "obj", "]", "flag", "=", "swisseph", ".", "CALC_RISE", "if", "flag", "==", "'RISE'", "else", "swisseph", ".", "CALC_SET", ...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
sweHouses
Returns lists of houses and angles.
flatlib/ephem/swe.py
def sweHouses(jd, lat, lon, hsys): """ Returns lists of houses and angles. """ hsys = SWE_HOUSESYS[hsys] hlist, ascmc = swisseph.houses(jd, lat, lon, hsys) # Add first house to the end of 'hlist' so that we # can compute house sizes with an iterator hlist += (hlist[0],) houses = [ {...
def sweHouses(jd, lat, lon, hsys): """ Returns lists of houses and angles. """ hsys = SWE_HOUSESYS[hsys] hlist, ascmc = swisseph.houses(jd, lat, lon, hsys) # Add first house to the end of 'hlist' so that we # can compute house sizes with an iterator hlist += (hlist[0],) houses = [ {...
[ "Returns", "lists", "of", "houses", "and", "angles", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/ephem/swe.py#L94-L114
[ "def", "sweHouses", "(", "jd", ",", "lat", ",", "lon", ",", "hsys", ")", ":", "hsys", "=", "SWE_HOUSESYS", "[", "hsys", "]", "hlist", ",", "ascmc", "=", "swisseph", ".", "houses", "(", "jd", ",", "lat", ",", "lon", ",", "hsys", ")", "# Add first ho...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
sweHousesLon
Returns lists with house and angle longitudes.
flatlib/ephem/swe.py
def sweHousesLon(jd, lat, lon, hsys): """ Returns lists with house and angle longitudes. """ hsys = SWE_HOUSESYS[hsys] hlist, ascmc = swisseph.houses(jd, lat, lon, hsys) angles = [ ascmc[0], ascmc[1], angle.norm(ascmc[0] + 180), angle.norm(ascmc[1] + 180) ] retur...
def sweHousesLon(jd, lat, lon, hsys): """ Returns lists with house and angle longitudes. """ hsys = SWE_HOUSESYS[hsys] hlist, ascmc = swisseph.houses(jd, lat, lon, hsys) angles = [ ascmc[0], ascmc[1], angle.norm(ascmc[0] + 180), angle.norm(ascmc[1] + 180) ] retur...
[ "Returns", "lists", "with", "house", "and", "angle", "longitudes", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/ephem/swe.py#L116-L126
[ "def", "sweHousesLon", "(", "jd", ",", "lat", ",", "lon", ",", "hsys", ")", ":", "hsys", "=", "SWE_HOUSESYS", "[", "hsys", "]", "hlist", ",", "ascmc", "=", "swisseph", ".", "houses", "(", "jd", ",", "lat", ",", "lon", ",", "hsys", ")", "angles", ...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
sweFixedStar
Returns a fixed star from the Ephemeris.
flatlib/ephem/swe.py
def sweFixedStar(star, jd): """ Returns a fixed star from the Ephemeris. """ sweList = swisseph.fixstar_ut(star, jd) mag = swisseph.fixstar_mag(star) return { 'id': star, 'mag': mag, 'lon': sweList[0], 'lat': sweList[1] }
def sweFixedStar(star, jd): """ Returns a fixed star from the Ephemeris. """ sweList = swisseph.fixstar_ut(star, jd) mag = swisseph.fixstar_mag(star) return { 'id': star, 'mag': mag, 'lon': sweList[0], 'lat': sweList[1] }
[ "Returns", "a", "fixed", "star", "from", "the", "Ephemeris", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/ephem/swe.py#L135-L144
[ "def", "sweFixedStar", "(", "star", ",", "jd", ")", ":", "sweList", "=", "swisseph", ".", "fixstar_ut", "(", "star", ",", "jd", ")", "mag", "=", "swisseph", ".", "fixstar_mag", "(", "star", ")", "return", "{", "'id'", ":", "star", ",", "'mag'", ":", ...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
solarEclipseGlobal
Returns the jd details of previous or next global solar eclipse.
flatlib/ephem/swe.py
def solarEclipseGlobal(jd, backward): """ Returns the jd details of previous or next global solar eclipse. """ sweList = swisseph.sol_eclipse_when_glob(jd, backward=backward) return { 'maximum': sweList[1][0], 'begin': sweList[1][2], 'end': sweList[1][3], 'totality_begin': s...
def solarEclipseGlobal(jd, backward): """ Returns the jd details of previous or next global solar eclipse. """ sweList = swisseph.sol_eclipse_when_glob(jd, backward=backward) return { 'maximum': sweList[1][0], 'begin': sweList[1][2], 'end': sweList[1][3], 'totality_begin': s...
[ "Returns", "the", "jd", "details", "of", "previous", "or", "next", "global", "solar", "eclipse", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/ephem/swe.py#L149-L161
[ "def", "solarEclipseGlobal", "(", "jd", ",", "backward", ")", ":", "sweList", "=", "swisseph", ".", "sol_eclipse_when_glob", "(", "jd", ",", "backward", "=", "backward", ")", "return", "{", "'maximum'", ":", "sweList", "[", "1", "]", "[", "0", "]", ",", ...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
lunarEclipseGlobal
Returns the jd details of previous or next global lunar eclipse.
flatlib/ephem/swe.py
def lunarEclipseGlobal(jd, backward): """ Returns the jd details of previous or next global lunar eclipse. """ sweList = swisseph.lun_eclipse_when(jd, backward=backward) return { 'maximum': sweList[1][0], 'partial_begin': sweList[1][2], 'partial_end': sweList[1][3], 'totalit...
def lunarEclipseGlobal(jd, backward): """ Returns the jd details of previous or next global lunar eclipse. """ sweList = swisseph.lun_eclipse_when(jd, backward=backward) return { 'maximum': sweList[1][0], 'partial_begin': sweList[1][2], 'partial_end': sweList[1][3], 'totalit...
[ "Returns", "the", "jd", "details", "of", "previous", "or", "next", "global", "lunar", "eclipse", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/ephem/swe.py#L163-L175
[ "def", "lunarEclipseGlobal", "(", "jd", ",", "backward", ")", ":", "sweList", "=", "swisseph", ".", "lun_eclipse_when", "(", "jd", ",", "backward", "=", "backward", ")", "return", "{", "'maximum'", ":", "sweList", "[", "1", "]", "[", "0", "]", ",", "'p...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
dateJDN
Converts date to Julian Day Number.
flatlib/datetime.py
def dateJDN(year, month, day, calendar): """ Converts date to Julian Day Number. """ a = (14 - month) // 12 y = year + 4800 - a m = month + 12*a - 3 if calendar == GREGORIAN: return day + (153*m + 2)//5 + 365*y + y//4 - y//100 + y//400 - 32045 else: return day + (153*m + 2)//5 + ...
def dateJDN(year, month, day, calendar): """ Converts date to Julian Day Number. """ a = (14 - month) // 12 y = year + 4800 - a m = month + 12*a - 3 if calendar == GREGORIAN: return day + (153*m + 2)//5 + 365*y + y//4 - y//100 + y//400 - 32045 else: return day + (153*m + 2)//5 + ...
[ "Converts", "date", "to", "Julian", "Day", "Number", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/datetime.py#L26-L34
[ "def", "dateJDN", "(", "year", ",", "month", ",", "day", ",", "calendar", ")", ":", "a", "=", "(", "14", "-", "month", ")", "//", "12", "y", "=", "year", "+", "4800", "-", "a", "m", "=", "month", "+", "12", "*", "a", "-", "3", "if", "calend...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
jdnDate
Converts Julian Day Number to Gregorian date.
flatlib/datetime.py
def jdnDate(jdn): """ Converts Julian Day Number to Gregorian date. """ a = jdn + 32044 b = (4*a + 3) // 146097 c = a - (146097*b) // 4 d = (4*c + 3) // 1461 e = c - (1461*d) // 4 m = (5*e + 2) // 153 day = e + 1 - (153*m + 2) // 5 month = m + 3 - 12*(m//10) year = 100*b + d - 48...
def jdnDate(jdn): """ Converts Julian Day Number to Gregorian date. """ a = jdn + 32044 b = (4*a + 3) // 146097 c = a - (146097*b) // 4 d = (4*c + 3) // 1461 e = c - (1461*d) // 4 m = (5*e + 2) // 153 day = e + 1 - (153*m + 2) // 5 month = m + 3 - 12*(m//10) year = 100*b + d - 48...
[ "Converts", "Julian", "Day", "Number", "to", "Gregorian", "date", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/datetime.py#L36-L47
[ "def", "jdnDate", "(", "jdn", ")", ":", "a", "=", "jdn", "+", "32044", "b", "=", "(", "4", "*", "a", "+", "3", ")", "//", "146097", "c", "=", "a", "-", "(", "146097", "*", "b", ")", "//", "4", "d", "=", "(", "4", "*", "c", "+", "3", "...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
Date.toList
Returns date as signed list.
flatlib/datetime.py
def toList(self): """ Returns date as signed list. """ date = self.date() sign = '+' if date[0] >= 0 else '-' date[0] = abs(date[0]) return list(sign) + date
def toList(self): """ Returns date as signed list. """ date = self.date() sign = '+' if date[0] >= 0 else '-' date[0] = abs(date[0]) return list(sign) + date
[ "Returns", "date", "as", "signed", "list", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/datetime.py#L86-L91
[ "def", "toList", "(", "self", ")", ":", "date", "=", "self", ".", "date", "(", ")", "sign", "=", "'+'", "if", "date", "[", "0", "]", ">=", "0", "else", "'-'", "date", "[", "0", "]", "=", "abs", "(", "date", "[", "0", "]", ")", "return", "li...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
Date.toString
Returns date as string.
flatlib/datetime.py
def toString(self): """ Returns date as string. """ slist = self.toList() sign = '' if slist[0] == '+' else '-' string = '/'.join(['%02d' % v for v in slist[1:]]) return sign + string
def toString(self): """ Returns date as string. """ slist = self.toList() sign = '' if slist[0] == '+' else '-' string = '/'.join(['%02d' % v for v in slist[1:]]) return sign + string
[ "Returns", "date", "as", "string", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/datetime.py#L93-L98
[ "def", "toString", "(", "self", ")", ":", "slist", "=", "self", ".", "toList", "(", ")", "sign", "=", "''", "if", "slist", "[", "0", "]", "==", "'+'", "else", "'-'", "string", "=", "'/'", ".", "join", "(", "[", "'%02d'", "%", "v", "for", "v", ...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
Time.getUTC
Returns a new Time object set to UTC given an offset Time object.
flatlib/datetime.py
def getUTC(self, utcoffset): """ Returns a new Time object set to UTC given an offset Time object. """ newTime = (self.value - utcoffset.value) % 24 return Time(newTime)
def getUTC(self, utcoffset): """ Returns a new Time object set to UTC given an offset Time object. """ newTime = (self.value - utcoffset.value) % 24 return Time(newTime)
[ "Returns", "a", "new", "Time", "object", "set", "to", "UTC", "given", "an", "offset", "Time", "object", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/datetime.py#L121-L127
[ "def", "getUTC", "(", "self", ",", "utcoffset", ")", ":", "newTime", "=", "(", "self", ".", "value", "-", "utcoffset", ".", "value", ")", "%", "24", "return", "Time", "(", "newTime", ")" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
Time.time
Returns time as list [hh,mm,ss].
flatlib/datetime.py
def time(self): """ Returns time as list [hh,mm,ss]. """ slist = self.toList() if slist[0] == '-': slist[1] *= -1 # We must do a trick if we want to # make negative zeros explicit if slist[1] == -0: slist[1] = -0.0 return s...
def time(self): """ Returns time as list [hh,mm,ss]. """ slist = self.toList() if slist[0] == '-': slist[1] *= -1 # We must do a trick if we want to # make negative zeros explicit if slist[1] == -0: slist[1] = -0.0 return s...
[ "Returns", "time", "as", "list", "[", "hh", "mm", "ss", "]", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/datetime.py#L129-L138
[ "def", "time", "(", "self", ")", ":", "slist", "=", "self", ".", "toList", "(", ")", "if", "slist", "[", "0", "]", "==", "'-'", ":", "slist", "[", "1", "]", "*=", "-", "1", "# We must do a trick if we want to ", "# make negative zeros explicit", "if", "s...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
Time.toList
Returns time as signed list.
flatlib/datetime.py
def toList(self): """ Returns time as signed list. """ slist = angle.toList(self.value) # Keep hours in 0..23 slist[1] = slist[1] % 24 return slist
def toList(self): """ Returns time as signed list. """ slist = angle.toList(self.value) # Keep hours in 0..23 slist[1] = slist[1] % 24 return slist
[ "Returns", "time", "as", "signed", "list", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/datetime.py#L140-L145
[ "def", "toList", "(", "self", ")", ":", "slist", "=", "angle", ".", "toList", "(", "self", ".", "value", ")", "# Keep hours in 0..23", "slist", "[", "1", "]", "=", "slist", "[", "1", "]", "%", "24", "return", "slist" ]
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
Time.toString
Returns time as string.
flatlib/datetime.py
def toString(self): """ Returns time as string. """ slist = self.toList() string = angle.slistStr(slist) return string if slist[0] == '-' else string[1:]
def toString(self): """ Returns time as string. """ slist = self.toList() string = angle.slistStr(slist) return string if slist[0] == '-' else string[1:]
[ "Returns", "time", "as", "string", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/datetime.py#L147-L151
[ "def", "toString", "(", "self", ")", ":", "slist", "=", "self", ".", "toList", "(", ")", "string", "=", "angle", ".", "slistStr", "(", "slist", ")", "return", "string", "if", "slist", "[", "0", "]", "==", "'-'", "else", "string", "[", "1", ":", "...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
Datetime.fromJD
Builds a Datetime object given a jd and utc offset.
flatlib/datetime.py
def fromJD(jd, utcoffset): """ Builds a Datetime object given a jd and utc offset. """ if not isinstance(utcoffset, Time): utcoffset = Time(utcoffset) localJD = jd + utcoffset.value / 24.0 date = Date(round(localJD)) time = Time((localJD + 0.5 - date.jdn) * 24) ...
def fromJD(jd, utcoffset): """ Builds a Datetime object given a jd and utc offset. """ if not isinstance(utcoffset, Time): utcoffset = Time(utcoffset) localJD = jd + utcoffset.value / 24.0 date = Date(round(localJD)) time = Time((localJD + 0.5 - date.jdn) * 24) ...
[ "Builds", "a", "Datetime", "object", "given", "a", "jd", "and", "utc", "offset", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/datetime.py#L194-L201
[ "def", "fromJD", "(", "jd", ",", "utcoffset", ")", ":", "if", "not", "isinstance", "(", "utcoffset", ",", "Time", ")", ":", "utcoffset", "=", "Time", "(", "utcoffset", ")", "localJD", "=", "jd", "+", "utcoffset", ".", "value", "/", "24.0", "date", "=...
44e05b2991a296c678adbc17a1d51b6a21bc867c
train
Datetime.getUTC
Returns this Datetime localized for UTC.
flatlib/datetime.py
def getUTC(self): """ Returns this Datetime localized for UTC. """ timeUTC = self.time.getUTC(self.utcoffset) dateUTC = Date(round(self.jd)) return Datetime(dateUTC, timeUTC)
def getUTC(self): """ Returns this Datetime localized for UTC. """ timeUTC = self.time.getUTC(self.utcoffset) dateUTC = Date(round(self.jd)) return Datetime(dateUTC, timeUTC)
[ "Returns", "this", "Datetime", "localized", "for", "UTC", "." ]
flatangle/flatlib
python
https://github.com/flatangle/flatlib/blob/44e05b2991a296c678adbc17a1d51b6a21bc867c/flatlib/datetime.py#L203-L207
[ "def", "getUTC", "(", "self", ")", ":", "timeUTC", "=", "self", ".", "time", ".", "getUTC", "(", "self", ".", "utcoffset", ")", "dateUTC", "=", "Date", "(", "round", "(", "self", ".", "jd", ")", ")", "return", "Datetime", "(", "dateUTC", ",", "time...
44e05b2991a296c678adbc17a1d51b6a21bc867c