thean is an in ANS/ANSI-5.1-1973.
173009
def thean
      array = Array.new(10)

      array[0] = 1.772E+00
      array[1] = 5.774E-01
      array[2] = 6.743E-02
      array[3] = 6.214E-03
      array[4] = 4.739E-04
      array[5] = 4.810E-05
      array[6] = 5.344E-06
      array[7] = 5.716E-07
      array[8] = 1.036E-07
      array[9] = 2.959E-08
      array[10] = 7.585E-10

      array
    end
294433
def to_jd(baktun, katun, tun, uinal, kin):
    ''''''
    return EPOCH + (baktun * 144000) + (katun * 7200) + (tun * 360) + (uinal * 20) + kin
678584
private static function getDayNames($day, $shorten = false, $len = 1, $numeric = false)
    {
        $days = ['sat' => [1, 'شنبه'], 'sun' => [2, 'یکشنبه'], 'mon' => [3, 'دوشنبه'], 'tue' => [4, 'سه شنبه'], 'wed' => [5, 'چهارشنبه'], 'thu' => [6, 'پنجشنبه'], 'fri' => [7, 'جمعه']];
        $day = substr(strtolower($day), 0, 3);
        $day = $days[ $day ];

        return ($numeric) ? $day[0] : (($shorten) ? self::substr($day[1], 0, $len) : $day[1]);
    }
1189970
function yy_r127(){
    $this->_retvalue = new Stmt\Expr('INDEX', $this->yystack[$this->yyidx + -2]->minor, $this->yystack[$this->yyidx + -1]->minor, $this->yystack[$this->yyidx + 0]->minor);
    }
438476
def rrn
      birth = fetch_sample([*Date.new(1970, 1, 1)..Date.new(1999, 12, 31)]).strftime('%y%d%m')
      sex = fetch_sample([1, 2])
      loc = FFaker.numerify("#{fetch_sample([*'00'..'95'])}###")
      a, b, c, d, e, f, g, h, i, j, k, l = "#{birth}#{sex}#{loc}".split(//).map(&:to_i)
      checksum = (11 - (2 * a + 3 * b + 4 * c + 5 * d + 6 * e + 7 * f + 8 * g + 9 * h + 2 * i + 3 * j + 4 * k + 5 * l) % 11) % 10
      "#{birth}-#{sex}#{loc}#{checksum}"
    end
1127033
public void mTokens() throws RecognitionException {
        // BELScript.g:1:8: ( T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | T__45 | T__46 | T__47 | T__48 | T__49 | T__50 | T__51 | T__52 | T__53 | T__54 | T__55 | T__56 | T__57 | T__58 | T__59 | T__60 | T__61 | T__62 | T__63 | T__64 | T__65 | T__66 | T__67 | T__68 | T__69 | T__70 | T__71 | T__72 | T__73 | T__74 | T__75 | T__76 | T__77 | T__78 | T__79 | T__80 | T__81 | T__82 | T__83 | T__84 | T__85 | T__86 | T__87 | T__88 | T__89 | T__90 | T__91 | T__92 | T__93 | T__94 | T__95 | T__96 | T__97 | T__98 | T__99 | T__100 | T__101 | T__102 | T__103 | T__104 | T__105 | T__106 | T__107 | T__108 | T__109 | T__110 | T__111 | T__112 | T__113 | T__114 | T__115 | T__116 | T__117 | T__118 | T__119 | T__120 | T__121 | T__122 | T__123 | T__124 | T__125 | T__126 | T__127 | T__128 | T__129 | T__130 | DOCUMENT_COMMENT | STATEMENT_COMMENT | DOCUMENT_KEYWORD | STATEMENT_GROUP_KEYWORD | IDENT_LIST | VALUE_LIST | OBJECT_IDENT | QUOTED_VALUE | OPEN_PAREN | CLOSE_PAREN | NS_PREFIX | NEWLINE | WS )
        int alt17=120;
        alt17 = dfa17.predict(input);
        switch (alt17) {
            case 1 :
                // BELScript.g:1:10: T__24
                {
                mT__24(); 

                }
                break;
            case 2 :
                // BELScript.g:1:16: T__25
                {
                mT__25(); 

                }
                break;
            case 3 :
                // BELScript.g:1:22: T__26
                {
                mT__26(); 

                }
                break;
            case 4 :
                // BELScript.g:1:28: T__27
                {
                mT__27(); 

                }
                break;
            case 5 :
                // BELScript.g:1:34: T__28
                {
                mT__28(); 

                }
                break;
            case 6 :
                // BELScript.g:1:40: T__29
                {
                mT__29(); 

                }
                break;
            case 7 :
                // BELScript.g:1:46: T__30
                {
                mT__30(); 

                }
                break;
            case 8 :
                // BELScript.g:1:52: T__31
                {
                mT__31(); 

                }
                break;
            case 9 :
                // BELScript.g:1:58: T__32
                {
                mT__32(); 

                }
                break;
            case 10 :
                // BELScript.g:1:64: T__33
                {
                mT__33(); 

                }
                break;
            case 11 :
                // BELScript.g:1:70: T__34
                {
                mT__34(); 

                }
                break;
            case 12 :
                // BELScript.g:1:76: T__35
                {
                mT__35(); 

                }
                break;
            case 13 :
                // BELScript.g:1:82: T__36
                {
                mT__36(); 

                }
                break;
            case 14 :
                // BELScript.g:1:88: T__37
                {
                mT__37(); 

                }
                break;
            case 15 :
                // BELScript.g:1:94: T__38
                {
                mT__38(); 

                }
                break;
            case 16 :
                // BELScript.g:1:100: T__39
                {
                mT__39(); 

                }
                break;
            case 17 :
                // BELScript.g:1:106: T__40
                {
                mT__40(); 

                }
                break;
            case 18 :
                // BELScript.g:1:112: T__41
                {
                mT__41(); 

                }
                break;
            case 19 :
                // BELScript.g:1:118: T__42
                {
                mT__42(); 

                }
                break;
            case 20 :
                // BELScript.g:1:124: T__43
                {
                mT__43(); 

                }
                break;
            case 21 :
                // BELScript.g:1:130: T__44
                {
                mT__44(); 

                }
                break;
            case 22 :
                // BELScript.g:1:136: T__45
                {
                mT__45(); 

                }
                break;
            case 23 :
                // BELScript.g:1:142: T__46
                {
                mT__46(); 

                }
                break;
            case 24 :
                // BELScript.g:1:148: T__47
                {
                mT__47(); 

                }
                break;
            case 25 :
                // BELScript.g:1:154: T__48
                {
                mT__48(); 

                }
                break;
            case 26 :
                // BELScript.g:1:160: T__49
                {
                mT__49(); 

                }
                break;
            case 27 :
                // BELScript.g:1:166: T__50
                {
                mT__50(); 

                }
                break;
            case 28 :
                // BELScript.g:1:172: T__51
                {
                mT__51(); 

                }
                break;
            case 29 :
                // BELScript.g:1:178: T__52
                {
                mT__52(); 

                }
                break;
            case 30 :
                // BELScript.g:1:184: T__53
                {
                mT__53(); 

                }
                break;
            case 31 :
                // BELScript.g:1:190: T__54
                {
                mT__54(); 

                }
                break;
            case 32 :
                // BELScript.g:1:196: T__55
                {
                mT__55(); 

                }
                break;
            case 33 :
                // BELScript.g:1:202: T__56
                {
                mT__56(); 

                }
                break;
            case 34 :
                // BELScript.g:1:208: T__57
                {
                mT__57(); 

                }
                break;
            case 35 :
                // BELScript.g:1:214: T__58
                {
                mT__58(); 

                }
                break;
            case 36 :
                // BELScript.g:1:220: T__59
                {
                mT__59(); 

                }
                break;
            case 37 :
                // BELScript.g:1:226: T__60
                {
                mT__60(); 

                }
                break;
            case 38 :
                // BELScript.g:1:232: T__61
                {
                mT__61(); 

                }
                break;
            case 39 :
                // BELScript.g:1:238: T__62
                {
                mT__62(); 

                }
                break;
            case 40 :
                // BELScript.g:1:244: T__63
                {
                mT__63(); 

                }
                break;
            case 41 :
                // BELScript.g:1:250: T__64
                {
                mT__64(); 

                }
                break;
            case 42 :
                // BELScript.g:1:256: T__65
                {
                mT__65(); 

                }
                break;
            case 43 :
                // BELScript.g:1:262: T__66
                {
                mT__66(); 

                }
                break;
            case 44 :
                // BELScript.g:1:268: T__67
                {
                mT__67(); 

                }
                break;
            case 45 :
                // BELScript.g:1:274: T__68
                {
                mT__68(); 

                }
                break;
            case 46 :
                // BELScript.g:1:280: T__69
                {
                mT__69(); 

                }
                break;
            case 47 :
                // BELScript.g:1:286: T__70
                {
                mT__70(); 

                }
                break;
            case 48 :
                // BELScript.g:1:292: T__71
                {
                mT__71(); 

                }
                break;
            case 49 :
                // BELScript.g:1:298: T__72
                {
                mT__72(); 

                }
                break;
            case 50 :
                // BELScript.g:1:304: T__73
                {
                mT__73(); 

                }
                break;
            case 51 :
                // BELScript.g:1:310: T__74
                {
                mT__74(); 

                }
                break;
            case 52 :
                // BELScript.g:1:316: T__75
                {
                mT__75(); 

                }
                break;
            case 53 :
                // BELScript.g:1:322: T__76
                {
                mT__76(); 

                }
                break;
            case 54 :
                // BELScript.g:1:328: T__77
                {
                mT__77(); 

                }
                break;
            case 55 :
                // BELScript.g:1:334: T__78
                {
                mT__78(); 

                }
                break;
            case 56 :
                // BELScript.g:1:340: T__79
                {
                mT__79(); 

                }
                break;
            case 57 :
                // BELScript.g:1:346: T__80
                {
                mT__80(); 

                }
                break;
            case 58 :
                // BELScript.g:1:352: T__81
                {
                mT__81(); 

                }
                break;
            case 59 :
                // BELScript.g:1:358: T__82
                {
                mT__82(); 

                }
                break;
            case 60 :
                // BELScript.g:1:364: T__83
                {
                mT__83(); 

                }
                break;
            case 61 :
                // BELScript.g:1:370: T__84
                {
                mT__84(); 

                }
                break;
            case 62 :
                // BELScript.g:1:376: T__85
                {
                mT__85(); 

                }
                break;
            case 63 :
                // BELScript.g:1:382: T__86
                {
                mT__86(); 

                }
                break;
            case 64 :
                // BELScript.g:1:388: T__87
                {
                mT__87(); 

                }
                break;
            case 65 :
                // BELScript.g:1:394: T__88
                {
                mT__88(); 

                }
                break;
            case 66 :
                // BELScript.g:1:400: T__89
                {
                mT__89(); 

                }
                break;
            case 67 :
                // BELScript.g:1:406: T__90
                {
                mT__90(); 

                }
                break;
            case 68 :
                // BELScript.g:1:412: T__91
                {
                mT__91(); 

                }
                break;
            case 69 :
                // BELScript.g:1:418: T__92
                {
                mT__92(); 

                }
                break;
            case 70 :
                // BELScript.g:1:424: T__93
                {
                mT__93(); 

                }
                break;
            case 71 :
                // BELScript.g:1:430: T__94
                {
                mT__94(); 

                }
                break;
            case 72 :
                // BELScript.g:1:436: T__95
                {
                mT__95(); 

                }
                break;
            case 73 :
                // BELScript.g:1:442: T__96
                {
                mT__96(); 

                }
                break;
            case 74 :
                // BELScript.g:1:448: T__97
                {
                mT__97(); 

                }
                break;
            case 75 :
                // BELScript.g:1:454: T__98
                {
                mT__98(); 

                }
                break;
            case 76 :
                // BELScript.g:1:460: T__99
                {
                mT__99(); 

                }
                break;
            case 77 :
                // BELScript.g:1:466: T__100
                {
                mT__100(); 

                }
                break;
            case 78 :
                // BELScript.g:1:473: T__101
                {
                mT__101(); 

                }
                break;
            case 79 :
                // BELScript.g:1:480: T__102
                {
                mT__102(); 

                }
                break;
            case 80 :
                // BELScript.g:1:487: T__103
                {
                mT__103(); 

                }
                break;
            case 81 :
                // BELScript.g:1:494: T__104
                {
                mT__104(); 

                }
                break;
            case 82 :
                // BELScript.g:1:501: T__105
                {
                mT__105(); 

                }
                break;
            case 83 :
                // BELScript.g:1:508: T__106
                {
                mT__106(); 

                }
                break;
            case 84 :
                // BELScript.g:1:515: T__107
                {
                mT__107(); 

                }
                break;
            case 85 :
                // BELScript.g:1:522: T__108
                {
                mT__108(); 

                }
                break;
            case 86 :
                // BELScript.g:1:529: T__109
                {
                mT__109(); 

                }
                break;
            case 87 :
                // BELScript.g:1:536: T__110
                {
                mT__110(); 

                }
                break;
            case 88 :
                // BELScript.g:1:543: T__111
                {
                mT__111(); 

                }
                break;
            case 89 :
                // BELScript.g:1:550: T__112
                {
                mT__112(); 

                }
                break;
            case 90 :
                // BELScript.g:1:557: T__113
                {
                mT__113(); 

                }
                break;
            case 91 :
                // BELScript.g:1:564: T__114
                {
                mT__114(); 

                }
                break;
            case 92 :
                // BELScript.g:1:571: T__115
                {
                mT__115(); 

                }
                break;
            case 93 :
                // BELScript.g:1:578: T__116
                {
                mT__116(); 

                }
                break;
            case 94 :
                // BELScript.g:1:585: T__117
                {
                mT__117(); 

                }
                break;
            case 95 :
                // BELScript.g:1:592: T__118
                {
                mT__118(); 

                }
                break;
            case 96 :
                // BELScript.g:1:599: T__119
                {
                mT__119(); 

                }
                break;
            case 97 :
                // BELScript.g:1:606: T__120
                {
                mT__120(); 

                }
                break;
            case 98 :
                // BELScript.g:1:613: T__121
                {
                mT__121(); 

                }
                break;
            case 99 :
                // BELScript.g:1:620: T__122
                {
                mT__122(); 

                }
                break;
            case 100 :
                // BELScript.g:1:627: T__123
                {
                mT__123(); 

                }
                break;
            case 101 :
                // BELScript.g:1:634: T__124
                {
                mT__124(); 

                }
                break;
            case 102 :
                // BELScript.g:1:641: T__125
                {
                mT__125(); 

                }
                break;
            case 103 :
                // BELScript.g:1:648: T__126
                {
                mT__126(); 

                }
                break;
            case 104 :
                // BELScript.g:1:655: T__127
                {
                mT__127(); 

                }
                break;
            case 105 :
                // BELScript.g:1:662: T__128
                {
                mT__128(); 

                }
                break;
            case 106 :
                // BELScript.g:1:669: T__129
                {
                mT__129(); 

                }
                break;
            case 107 :
                // BELScript.g:1:676: T__130
                {
                mT__130(); 

                }
                break;
            case 108 :
                // BELScript.g:1:683: DOCUMENT_COMMENT
                {
                mDOCUMENT_COMMENT(); 

                }
                break;
            case 109 :
                // BELScript.g:1:700: STATEMENT_COMMENT
                {
                mSTATEMENT_COMMENT(); 

                }
                break;
            case 110 :
                // BELScript.g:1:718: DOCUMENT_KEYWORD
                {
                mDOCUMENT_KEYWORD(); 

                }
                break;
            case 111 :
                // BELScript.g:1:735: STATEMENT_GROUP_KEYWORD
                {
                mSTATEMENT_GROUP_KEYWORD(); 

                }
                break;
            case 112 :
                // BELScript.g:1:759: IDENT_LIST
                {
                mIDENT_LIST(); 

                }
                break;
            case 113 :
                // BELScript.g:1:770: VALUE_LIST
                {
                mVALUE_LIST(); 

                }
                break;
            case 114 :
                // BELScript.g:1:781: OBJECT_IDENT
                {
                mOBJECT_IDENT(); 

                }
                break;
            case 115 :
                // BELScript.g:1:794: QUOTED_VALUE
                {
                mQUOTED_VALUE(); 

                }
                break;
            case 116 :
                // BELScript.g:1:807: OPEN_PAREN
                {
                mOPEN_PAREN(); 

                }
                break;
            case 117 :
                // BELScript.g:1:818: CLOSE_PAREN
                {
                mCLOSE_PAREN(); 

                }
                break;
            case 118 :
                // BELScript.g:1:830: NS_PREFIX
                {
                mNS_PREFIX(); 

                }
                break;
            case 119 :
                // BELScript.g:1:840: NEWLINE
                {
                mNEWLINE(); 

                }
                break;
            case 120 :
                // BELScript.g:1:848: WS
                {
                mWS(); 

                }
                break;

        }

    }
1366220
function yy_r147()
    {
        $this->_retvalue = $this->yystack[ $this->yyidx + - 1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor;
    }
1234698
def date_struct_nn(year, month, day, tz="UTC"):
    
    if not day:
        day = 1
    if not month:
        month = 1
    return date_struct(year, month, day, tz)
525196
def TDL(AN, BN):
    
    XN = AN[0]
    YN = AN[1]
    ZN = AN[2]
    XE = BN[0]
    YE = BN[1]
    ZE = BN[2]
    AAA = 1.0 / (1000000)
    CON = 57.2957795
    if np.fabs(ZN) < AAA:
        FD = 90.
        AXN = np.fabs(XN)
        if AXN > 1.0:
            AXN = 1.0
        FT = np.arcsin(AXN) * CON
        ST = -XN
        CT = YN
        if ST >= 0. and CT < 0:
            FT = 180. - FT
        if ST < 0. and CT <= 0:
            FT = 180. + FT
        if ST < 0. and CT > 0:
            FT = 360. - FT
        FL = np.arcsin(abs(ZE)) * CON
        SL = -ZE
        if np.fabs(XN) < AAA:
            CL = XE / YN
        else:
            CL = -YE / XN
        if SL >= 0. and CL < 0:
            FL = 180. - FL
        if SL < 0. and CL <= 0:
            FL = FL - 180.
        if SL < 0. and CL > 0:
            FL = -FL
    else:
        if - ZN > 1.0:
            ZN = -1.0
        FDH = np.arccos(-ZN)
        FD = FDH * CON
        SD = np.sin(FDH)
        if SD == 0:
            return
        ST = -XN / SD
        CT = YN / SD
        SX = np.fabs(ST)
        if SX > 1.0:
            SX = 1.0
        FT = np.arcsin(SX) * CON
        if ST >= 0. and CT < 0:
            FT = 180. - FT
        if ST < 0. and CT <= 0:
            FT = 180. + FT
        if ST < 0. and CT > 0:
            FT = 360. - FT
        SL = -ZE / SD
        SX = np.fabs(SL)
        if SX > 1.0:
            SX = 1.0
        FL = np.arcsin(SX) * CON
        if ST == 0:
            CL = XE / CT
        else:
            XXX = YN * ZN * ZE / SD / SD + YE
            CL = -SD * XXX / XN
            if CT == 0:
                CL = YE / ST
        if SL >= 0. and CL < 0:
            FL = 180. - FL
        if SL < 0. and CL <= 0:
            FL = FL - 180.
        if SL < 0. and CL > 0:
            FL = -FL
    return (FT, FD, FL)
161103
private byte []
toWireCanonical(boolean noTTL) {
	DNSOutput out = new DNSOutput();
	toWireCanonical(out, noTTL);
	return out.toByteArray();
}
1224358
function toBuddhist(oGregorian) {
		var iEraStartYear = UniversalDate.getEraStartDate(CalendarType.Buddhist, 0).year,
			iYear = oGregorian.year - iEraStartYear + 1;
		// Before 1941 new year started on 1st of April
		if (oGregorian.year < 1941 && oGregorian.month < 3) {
			iYear -= 1;
		}
		if (oGregorian.year === null) {
			iYear = undefined;
		}
		return {
			year: iYear,
			month: oGregorian.month,
			day: oGregorian.day
		};
	}
449922
function yy_r113(){
    if (preg_match('~^true$~i', $this->yystack[$this->yyidx + 0]->minor)) {
        $this->_retvalue = 'true';
    } elseif (preg_match('~^false$~i', $this->yystack[$this->yyidx + 0]->minor)) {
        $this->_retvalue = 'false';
    } elseif (preg_match('~^null$~i', $this->yystack[$this->yyidx + 0]->minor)) {
        $this->_retvalue = 'null';
    } else {
        $this->_retvalue = "'".$this->yystack[$this->yyidx + 0]->minor."'";
    }
    }
894664
private static boolean matchNaN(byte[] str, byte firstchar, int start, int end) {
    final int len = end - start;
    if(len < 2 || len > 3 || (firstchar != 'N' && firstchar != 'n')) {
      return false;
    }
    final byte c1 = str[start + 1];
    if(c1 != 'a' && c1 != 'A') {
      return false;
    }
    // Accept just "NA", too:
    if(len == 2) {
      return true;
    }
    final byte c2 = str[start + 2];
    return c2 == 'N' || c2 == 'n';
  }
406298
def is_scn(self):
        """"""
        if self.index > 1 or not self.description:
            return False
        d = self.description
        return d[:14] == '<?xml version=' and d[-6:] == '</scn>'
1086204
function( fn ) {
					var args,
						l = fn.length;

					if ( !l ) {
						return "";
					}

					args = new Array( l );
					while ( l-- ) {

						// 97 is 'a'
						args[ l ] = String.fromCharCode( 97 + l );
					}
					return " " + args.join( ", " ) + " ";
				}
598036
def gdate_to_jdn(date):
    
    not_jan_or_feb = (14 - date.month) // 12
    year_since_4800bc = date.year + 4800 - not_jan_or_feb
    month_since_4800bc = date.month + 12 * not_jan_or_feb - 3
    jdn = date.day + (153 * month_since_4800bc + 2) // 5 \
        + 365 * year_since_4800bc \
        + (year_since_4800bc // 4 - year_since_4800bc // 100 +
           year_since_4800bc // 400) - 32045
    return jdn
359143
public static DateTimeType parseV3(String theV3String) {
		DateTimeType retVal = new DateTimeType();
		retVal.setValueAsV3String(theV3String);
		return retVal;
	}