Example #1
0
def args(parser):
    clist = CmdsList()
    ActionHandler.Prepare(parser, clist.lst, global_action=1)
    parser.add_argument('--infile', type=str)
    parser.add_argument('--outfile', type=str)
    parser.add_argument('--intype', type=str)
    parser.add_argument('--outtype', type=str)
Example #2
0
def args(parser):
    clist = CmdsList().add(server).add(gen_key).add(client).add(hack_client)
    ActionHandler.Prepare(parser, clist.lst)
    parser.add_argument('--init', action='store_true')
    parser.add_argument('--who', type=str, default='alice')
    parser.add_argument('--host', default='localhost')
    parser.add_argument('--port', default=1234, type=int)
Example #3
0
def args(parser):
  clist = CmdsList().add(test).add(test2).add(add_syms)
  clist.add(func=lambda ctx: extract_binary_syms(ctx.infile), name='extract_binary_syms')
  parser.add_argument('--infile', type=cwdpath)
  parser.add_argument('--outfile', type=cwdpath)
  parser.add_argument('--symbols', type=FileFormatHelper.Read)
  ActionHandler.Prepare(parser, clist.lst)
Example #4
0
def args(parser):
  clist = CmdsList().add(query).add(graph)
  ActionHandler.Prepare(parser, clist.lst)
  parser.add_argument('--host', type=str, default='localhost')
  parser.add_argument('--port', type=int, default=12345)
  parser.add_argument('--desc', type=LazyConf.ParseFromString)
  parser.add_argument('--period_sec', type=float)
Example #5
0
def args(parser):
    clist = CmdsList().add(test).add(test_patch)
    parser.add_argument('--trace', type=cwdpath)
    parser.add_argument('--outfile', type=cwdpath)
    parser.add_argument('--binary', type=cwdpath)
    parser.add_argument('--patchfunc_lib', type=cwdpath)
    parser.add_argument('--patch_func', type=Format.ToInt)
    parser.add_argument('--patch_val', type=Format.ToInt)
    ActionHandler.Prepare(parser, clist.lst)
Example #6
0
def args(parser):
  clist = CmdsList().add(test)
  ActionHandler.Prepare(parser, clist.lst, global_action=1, init=init)
  parser.add_argument('--dependencies-conf', type=Z.FileFormatHelper.Read)
  parser.add_argument('--workers-conf', type=Z.FileFormatHelper.Read)
  parser.add_argument('--user', type=str, default='benoit')
  parser.add_argument('--key', type=cmisc.cwdpath)
  parser.add_argument('--deploy-dir', type=cmisc.cwdpath, default='/tmp/cloudy_deploy')
  parser.add_argument('--dry-run', action='store_true')
  parser.add_argument('--no-deploy', action='store_true')
  parser.add_argument('--from-python', action='store_true')
Example #7
0
def args(parser):
  clist = CmdsList().add(test).add(test2).add(clean_mesh).add(test_atomize).add(plot).add(
      best_box).add(test_atomize_heavy).add(test_box)
  clist.add(test_intersection)
  clist.add(test_atomize_solution)
  clist.add(test_isocurve)
  clist.add(test_facegraph)
  clist.add(plot_meshlist)
  clist.add(meshlist_to_openscad)

  ActionHandler.Prepare(parser, clist.lst, init)
  setup_args(parser)
Example #8
0
def args(parser):
  clist = CmdsList().add(test).add(build_circuit).add(build_design).add(do_proc_stats).add(debug_netlist).add(do_read_desc)
  clist.add(list_cells).add(compute_logic_table).add(test_karnaugh)

  ActionHandler.Prepare(parser, clist.lst)
  parser.add_argument('--cell', default='mkShiftReg')
  parser.add_argument('--cell_fmt', default='*', nargs='*')
  parser.add_argument('--binary')
  parser.add_argument('--desc_file')
  parser.add_argument('--cell_logic_desc', type=FileFormatHelper.Read)
  parser.add_argument('--filename')
  parser.add_argument('--patch', action='store_true')
  parser.add_argument('--display_circuit', action='store_true')
  parser.add_argument('--simulate', action='store_true')
Example #9
0
def main():
    ctx = Attributize()
    ActionHandler.Run(ctx)
    x = Z.swig.opa_dsp_swig
    a = x.Satellites.GetSingleton()
    b = a.get(26)
    lst = []
    for i in range(x.PRN_PERIOD):
        lst.append(b.get_l1(i))
    have = ''.join(map(str, lst))

    target = '111111100000101111010001111100001000101011010101111010110100100101001010110000111101010111111001100011100010000111011001110101100100011000110110100110011110001110101100101011101111101010001001100000000111111001011100000110001001110101100001100000011001100010000111100110011110001111000101110111011001110111110001000100111010101001110101111000111010100110001011001001101001001001110111111101101001100101011101010010111111010001011010010111000110110111011100100110000000011100011100101100001101111001101100001100110011111100011101110001011110001000011000110100011100101100011111111001101000010100101011101001101100001000001001101010010110010000000101011101001001110101101110010000011010001011001110101011010100100010110001000010101100111000011000101110001110111101010111101011001000000011100110100100101011010110101001011010000010000010001011100010101011001001000110010011000100111100001111010100011000100001111111101001110101010001001111011111001101000001101000101111000011110001000111010101111110000000000001111011110111010'
    assert have == target
    print('ok')
Example #10
0
def args(parser):
    clist = CmdsList().add(test).add(earth).add(test_inter).add(create_db).add(
        test_pc).add(test_ephem)
    parser.add_argument(
        '--resources-dir',
        default=cmisc.path_here('../../../etu/meteor_stuff/satsim/resources'))
    parser.add_argument('--mosaic', action='store_true')
    parser.add_argument('--precision', type=float, default=2.)
    parser.add_argument('--split-tr-norm', type=float, default=1.)
    parser.add_argument('--limit-fps', type=float, default=60)
    parser.add_argument('--dump-stats', action='store_true')
    parser.add_argument('--influx-db', default='db1')
    parser.add_argument('--stl-file', type=cmisc.cwdpath)
    parser.add_argument('--noengine', action='store_true')
    ActionHandler.Prepare(parser, clist.lst, init=init)
Example #11
0
def main():
    ctx = Attributize()
    ctx.other = other[flags.who]
    ActionHandler.Run(ctx)
Example #12
0
def args(parser):
    clist = CmdsList().add(test)
    parser.add_argument('--arch', type=guess_arch)
    parser.add_argument('--data', type=FileFormatHelper.Read)
    parser.add_argument('--addr', type=cmisc.to_int, default=0)
    ActionHandler.Prepare(parser, clist.lst, global_action=1)
Example #13
0
def args(parser):
    clist = CmdsList().add(test)
    parser.add_argument('--outfile')
    parser.add_argument('--infile')
    ActionHandler.Prepare(parser, clist.lst, global_action=1)
Example #14
0
def args(parser):
    clist = CmdsList().add(test)
    ActionHandler.Prepare(parser, clist.lst, global_action=1)
    parser.add_argument('--port', type=int, default=8080)
Example #15
0
def args(parser):
    clist = CmdsList().add(test)
    ActionHandler.Prepare(parser, clist.lst, global_action=1)
    parser.add_argument('a', type=str)
    parser.add_argument('b', type=str)
Example #16
0
def main():
  ctx = Attributize()
  ctx.circuit_desc = FileFormatHelper.Read(cmisc.path_here('./layers.desc.yaml'), mode='attr_yaml')
  ActionHandler.Run(ctx)
Example #17
0
def args(parser):
  clist = CmdsList().add(test)


  ActionHandler.Prepare(parser, clist.lst)
  parser.add_argument('--mem', default='./dump.state1.bin')
Example #18
0
def args(parser):
  clist = CmdsList().add(test)
  ActionHandler.Prepare(parser, clist.lst)
  parser.add_argument('--n', type=int, default=10)
  parser.add_argument('--nv', type=int)
  parser.add_argument('--wordsize', type=int, default=32)
Example #19
0
def args(parser):
    clist = CmdsList().add(test)
    ActionHandler.Prepare(parser, clist.lst, global_action=0)
Example #20
0
def args(parser):
    args_def(parser)
    clist = CmdsList().add(parse).add(to_binary_stl)
    ActionHandler.Prepare(parser, clist.lst)
Example #21
0
def args(parser):
  clist = CmdsList().add(test).add(extract_conn).add(try_packetize).add(search).add(extract_smb)
  ActionHandler.Prepare(parser, clist.lst)
  parser.add_argument('--file')
  parser.add_argument('--ofile')
Example #22
0
def args(parser):
    clist = CmdsList().add(test)
    ActionHandler.Prepare(parser, clist.lst)
    parser.add_argument('--file', nargs=2)
Example #23
0
def main():
    global m
    m = Z.swig.opa_math_common_swig
    ctx = Attributize()
    ActionHandler.Run(ctx)
Example #24
0
def main():
    g_data.set_m32(False)
    ctx = Attributize()
    ActionHandler.Run(ctx)
Example #25
0
def args(parser):
    clist = CmdsList().add(test).add(decode1).add(test1)
    ActionHandler.Prepare(parser, clist.lst)
Example #26
0
def args(parser):
    clist = CmdsList().add(test).add(test2).add(test3).add(test4)
    ActionHandler.Prepare(parser, clist.lst)
Example #27
0
def args(parser):
    clist = CmdsList().add(test_uc)
    ActionHandler.Prepare(parser, clist.lst)
    parser.add_argument('--binary')
    parser.add_argument('--base', type=int, default=0x100000)
Example #28
0
def args(parser):
    clist = CmdsList().add(test).add(alberry).add(test2).add(test3)
    parser.add_argument('--port', default='/dev/ttyACM0')
    parser.add_argument('--simulate', action='store_true')
    parser.add_argument('--hook-code', action='store_true')
    ActionHandler.Prepare(parser, clist.lst, global_action=0)
Example #29
0
def main():
    ctx = Attributize()
    ActionHandler.Run(ctx)
Example #30
0
def args(parser):
  clist = CmdsList().add(test).add(solve)
  parser.add_argument('--data-file', default='./data.pickle')
  parser.add_argument('--local', action='store_true')
  ActionHandler.Prepare(parser, clist.lst)