repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
mbattistello/lambda_converters | pythonocc/lib/OCC/BRepLib.py | <reponame>mbattistello/lambda_converters
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instance... |
mbattistello/lambda_converters | pythonocc/lib/OCC/TopAbs.py | <reponame>mbattistello/lambda_converters
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instance... |
mbattistello/lambda_converters | pythonocc/lib/OCC/TopoDSToStep.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _TopoDST... |
mbattistello/lambda_converters | pythonocc/lib/OCC/IntTools.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _IntTool... |
mbattistello/lambda_converters | pythonocc/lib/OCC/ShapeAlgo.py | <reponame>mbattistello/lambda_converters
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instance... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Law.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _Law.SWI... |
mbattistello/lambda_converters | pythonocc/lib/OCC/RWStepGeom.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _RWStepG... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Materials.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _Materia... |
mbattistello/lambda_converters | pythonocc/lib/OCC/StepGeom.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _StepGeo... |
mbattistello/lambda_converters | pythonocc/lib/OCC/BRepMesh.py | <gh_stars>1-10
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst... |
mbattistello/lambda_converters | pythonocc/lib/OCC/GCE2d.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _GCE2d.S... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Message.py | <gh_stars>1-10
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst... |
mbattistello/lambda_converters | pythonocc/lib/OCC/STEPEdit.py | <filename>pythonocc/lib/OCC/STEPEdit.py
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancem... |
mbattistello/lambda_converters | pythonocc/lib/OCC/gp.py | <gh_stars>1-10
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst... |
mbattistello/lambda_converters | pythonocc/lib/OCC/HLRBRep.py | <reponame>mbattistello/lambda_converters
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instance... |
mbattistello/lambda_converters | pythonocc/lib/OCC/XBRepMesh.py | <reponame>mbattistello/lambda_converters
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instance... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Contap.py | <reponame>mbattistello/lambda_converters<filename>pythonocc/lib/OCC/Contap.py
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if vers... |
mbattistello/lambda_converters | pythonocc/lib/OCC/HLRTopoBRep.py | <reponame>mbattistello/lambda_converters
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instance... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Expr.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _Expr.SW... |
mbattistello/lambda_converters | pythonocc/lib/OCC/GC.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _GC.SWIG... |
mbattistello/lambda_converters | pythonocc/lib/OCC/MAT.py | <gh_stars>1-10
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst... |
mbattistello/lambda_converters | pythonocc/lib/OCC/BRepLProp.py | <filename>pythonocc/lib/OCC/BRepLProp.py
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instance... |
mbattistello/lambda_converters | pythonocc/lib/OCC/StepAP203.py | <reponame>mbattistello/lambda_converters<gh_stars>1-10
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
... |
mbattistello/lambda_converters | pythonocc/lib/OCC/OSD.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _OSD.SWI... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Aspect.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _Aspect.... |
mbattistello/lambda_converters | pythonocc/lib/OCC/StlMesh.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _StlMesh... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Display/qtDisplay.py | <reponame>mbattistello/lambda_converters
#!/usr/bin/env python
##Copyright 2009-2014 <NAME> (<EMAIL>)
##
##This file is part of pythonOCC.
##
##pythonOCC is free software: you can redistribute it and/or modify
##it under the terms of the GNU Lesser General Public License as published by
##the Free Software Fou... |
mbattistello/lambda_converters | pythonocc/lib/OCC/RWStepAP203.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _RWStepA... |
mbattistello/lambda_converters | pythonocc/lib/OCC/IntAna.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _IntAna.... |
mbattistello/lambda_converters | pythonocc/lib/OCC/NLPlate.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _NLPlate... |
mbattistello/lambda_converters | pythonocc/lib/OCC/TopOpeBRep.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _TopOpeB... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Display/WebGl/threejs_renderer.py | <gh_stars>1-10
##Copyright 2011-2014 <NAME> (<EMAIL>)
##
##This file is part of pythonOCC.
##
##pythonOCC is free software: you can redistribute it and/or modify
##it under the terms of the GNU Lesser General Public License as published by
##the Free Software Foundation, either version 3 of the License, or
##(at your o... |
mbattistello/lambda_converters | pythonocc/lib/OCC/BRepClass3d.py | <reponame>mbattistello/lambda_converters
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instance... |
mbattistello/lambda_converters | pythonocc/lib/OCC/StepRepr.py | <filename>pythonocc/lib/OCC/StepRepr.py<gh_stars>1-10
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
... |
mbattistello/lambda_converters | pythonocc/lib/OCC/StepShape.py | <gh_stars>1-10
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst... |
mbattistello/lambda_converters | pythonocc/lib/OCC/TPrsStd.py | <filename>pythonocc/lib/OCC/TPrsStd.py
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instanceme... |
mbattistello/lambda_converters | pythonocc/lib/OCC/SortTools.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _SortToo... |
mbattistello/lambda_converters | pythonocc/lib/OCC/BRepFill.py | <reponame>mbattistello/lambda_converters
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instance... |
mbattistello/lambda_converters | pythonocc/lib/OCC/STEPCAFControl.py | <filename>pythonocc/lib/OCC/STEPCAFControl.py<gh_stars>1-10
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0... |
mbattistello/lambda_converters | pythonocc/lib/OCC/BOPDS.py | <filename>pythonocc/lib/OCC/BOPDS.py
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemeth... |
mbattistello/lambda_converters | pythonocc/lib/OCC/BRepProj.py | <reponame>mbattistello/lambda_converters<gh_stars>1-10
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
... |
mbattistello/lambda_converters | brd_to_step/handler.py | <gh_stars>0
from __future__ import print_function
import json
import os
from aws_s3 import AwsS3
from conversion_error import ConversionError
from brd_to_step import build
from step_to_stl import convert
STL_KEY_PREFIX = 'cad_files/stl/'
STEP_KEY_PREFIX = 'cad_files/stp/'
def lambda_handler(event, context):
pr... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Adaptor3d.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _Adaptor... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Prs3d.py | <filename>pythonocc/lib/OCC/Prs3d.py
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemeth... |
mbattistello/lambda_converters | pythonocc/lib/OCC/StepToTopoDS.py | <reponame>mbattistello/lambda_converters
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instance... |
mbattistello/lambda_converters | pythonocc/lib/OCC/RWStl.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _RWStl.S... |
mbattistello/lambda_converters | step_to_stl/spec/unittests.py | import unittest
from step_to_stl import convert
class TestConvert(unittest.TestCase):
def test_sanity(self):
self.assertEqual(1, 1)
if __name__ == '__main__':
unittest.main()
|
mbattistello/lambda_converters | pythonocc/lib/OCC/BRepFeat.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _BRepFea... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Hatch.py | <filename>pythonocc/lib/OCC/Hatch.py
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemeth... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Intrv.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _Intrv.S... |
mbattistello/lambda_converters | pythonocc/lib/OCC/LProp.py | <filename>pythonocc/lib/OCC/LProp.py
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemeth... |
mbattistello/lambda_converters | pythonocc/lib/OCC/TDF.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _TDF.SWI... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Display/WebGl/x3dom_renderer.py | <reponame>mbattistello/lambda_converters<filename>pythonocc/lib/OCC/Display/WebGl/x3dom_renderer.py
##Copyright 2011-2014 <NAME> (<EMAIL>)
##
##This file is part of pythonOCC.
##
##pythonOCC is free software: you can redistribute it and/or modify
##it under the terms of the GNU Lesser General Public License as publishe... |
mbattistello/lambda_converters | pythonocc/lib/OCC/TopCnx.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _TopCnx.... |
mbattistello/lambda_converters | pythonocc/lib/OCC/RWStepBasic.py | <reponame>mbattistello/lambda_converters<filename>pythonocc/lib/OCC/RWStepBasic.py
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if... |
mbattistello/lambda_converters | pythonocc/lib/OCC/TColGeom2d.py | <gh_stars>1-10
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst... |
mbattistello/lambda_converters | pythonocc/lib/OCC/GeomAbs.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _GeomAbs... |
mbattistello/lambda_converters | pythonocc/lib/OCC/FilletSurf.py | <reponame>mbattistello/lambda_converters<filename>pythonocc/lib/OCC/FilletSurf.py
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if ... |
mbattistello/lambda_converters | pythonocc/lib/OCC/BRepBlend.py | <gh_stars>1-10
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Approx.py | <filename>pythonocc/lib/OCC/Approx.py
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemet... |
mbattistello/lambda_converters | pythonocc/lib/OCC/BRepTools.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _BRepToo... |
mbattistello/lambda_converters | pythonocc/lib/OCC/XCAFPrs.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _XCAFPrs... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Quantity.py | <filename>pythonocc/lib/OCC/Quantity.py
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancem... |
mbattistello/lambda_converters | pythonocc/lib/OCC/BOPInt.py | <reponame>mbattistello/lambda_converters
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instance... |
mbattistello/lambda_converters | pythonocc/lib/OCC/StepAP214.py | <gh_stars>1-10
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst... |
mbattistello/lambda_converters | pythonocc/lib/OCC/TColGeom.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _TColGeo... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Display/SimpleGui.py | #!/usr/bin/env python
# Copyright 2009-2016 <NAME> (<EMAIL>)
##
# This file is part of pythonOCC.
##
# pythonOCC is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (a... |
mbattistello/lambda_converters | pythonocc/lib/OCC/HLRAlgo.py | <reponame>mbattistello/lambda_converters<filename>pythonocc/lib/OCC/HLRAlgo.py
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if ver... |
mbattistello/lambda_converters | pythonocc/lib/OCC/GccEnt.py | <reponame>mbattistello/lambda_converters
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instance... |
dyvniy/vosk-api | python/example/webServ.py | #!/usr/bin/python3
from vosk import Model, KaldiRecognizer #, SetLogLevel
import sys
import os
import wave
import time
import tornado.ioloop
import tornado.web
#SetLogLevel(0)
#model = Model("model")
class MainHandler(tornado.web.RequestHandler):
def get(self):
tm = time.time();
self.write("Hell\n")
... |
dyvniy/vosk-api | python/test/transcribe_scp.py | #!/usr/bin/python3
from vosk import Model, KaldiRecognizer
import sys
import os
import wave
import json
model = Model("model")
for line in open(sys.argv[1]):
uid, fn = line.split()
wf = wave.open(fn, "rb")
rec = KaldiRecognizer(model, wf.getframerate())
text = ""
while True:
data = wf.re... |
slideup-benni/bimmer_connected | bimmer_connected/last_trip.py | <gh_stars>0
"""Models the last trip of a vehicle."""
from bimmer_connected.const import LAST_TRIP_URL
class LastTrip(object):
"""Models the last trip of a vehicle."""
def __init__(self, account, vehicle):
"""Constructor."""
self._account = account
self._vehicle = vehicle
self.... |
WilShi/weather_robot | weatherRobot.py | <gh_stars>0
#! -*- coding: utf-8 -*-
"""
Author: <NAME>
Create type_time: 2021-12-27
Info: 定期向企业微信推送天气预报消息
"""
import requests, json
import datetime
import time
import sys
import psutil, os
class RainbowFart:
def __init__(self) -> None:
self.key = 'ac18d7a473825f23a4075332f42a9c7c'
... |
uoneway/kss | setup.py | <gh_stars>0
import codecs
from setuptools import setup, find_packages
def read_file(filename, cb):
with codecs.open(filename, 'r', 'utf8') as f:
return cb(f)
with open('README.md', encoding='utf-8') as f:
long_description = f.read()
setup(
name='kss',
version='2.2.0.2',
author='<NAME>',... |
uoneway/kss | kss/base.py | <reponame>uoneway/kss<filename>kss/base.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Korean Sentence Splitter
# Split Korean text into sentences using heuristic algorithm.
#
# Copyright (C) 2019 <NAME> <<EMAIL>> and <NAME> <<EMAIL>>
# All rights reserved.
#
# This software may be modified and distributed under t... |
uoneway/kss | kss/table.py | <reponame>uoneway/kss
from collections import defaultdict
from typing import Any
from kss.base import Stats, ID, Const
def create_dict(d, default: Any = 0):
return defaultdict(lambda: default, d)
# Pattern Mapping Table for Sentence Splitter
Table = create_dict({
Stats.DA:
create_dict({
... |
uoneway/kss | tests/test_kss.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
import kss
class KssTest(unittest.TestCase):
def test_split(self):
text = "회사 동료 분들과 다녀왔는데 분위기도 좋고 음식도 맛있었어요 다만, 강남 토끼정이 강남 쉑쉑버거 골목길로 쭉 올라가야 하는데 다들 쉑쉑버거의 유혹에 넘어갈 뻔 했답니다 강남역 맛집 토끼정의 외부 모습."
splitted = kss.split_sentences(text)
... |
JHP4911/Rig_STBT | test_stbt_rig.py | <gh_stars>0
from __future__ import absolute_import, division, print_function
import glob
import os
import platform
import random
import re
import threading
import time
from contextlib import contextmanager
from sys import executable as python
from textwrap import dedent
import pytest
import requests
import stbt_rig
... |
JHP4911/Rig_STBT | stbt_rig.py | <reponame>JHP4911/Rig_STBT<gh_stars>0
#!/usr/bin/env python
# PYTHON_ARGCOMPLETE_OK
"""Command-line tool for interacting with the Stb-tester Portal's REST API.
For more details, and to get the latest version of this script, see
<https://github.com/stb-tester/stbt-rig>.
Copyright 2017-2020 Stb-tester.com Ltd. <<EMAIL... |
JHP4911/Rig_STBT | test_retry_session.py | <filename>test_retry_session.py
from __future__ import (
absolute_import, division, print_function, unicode_literals)
import logging
from collections import namedtuple
from contextlib import contextmanager
import requests
from stbt_rig import RetrySession
RetrySessionTestCtx = namedtuple(
"RetrySessionTest... |
s1530129650/BeamSearch | models.py | <filename>models.py
import random
import torch
import torch.nn as nn
import torch.nn.functional as F
# EncoderRNN {{{
class EncoderRNN(nn.Module):
def __init__(self, embd_size, enc_h_size, dec_h_size, v_size, device):
super(EncoderRNN, self).__init__()
self.enc_h_size = enc_h_size
self.de... |
s1530129650/BeamSearch | run.py | """RNN Beam Search example
I refered the following code for Beam Search.
https://github.com/budzianowski/PyTorch-Beam-Search-Decoding
"""
import argparse
import math
import os
import time
import spacy
import torch
import torch.nn as nn
import torch.optim as optim
from torchtext.datasets import Multi30k
from torchtext... |
s1530129650/BeamSearch | beam.py | import copy
from heapq import heappush, heappop
import torch
# BeamSearchNode {{{
class BeamSearchNode(object):
def __init__(self, h, prev_node, wid, logp, length):
self.h = h
self.prev_node = prev_node
self.wid = wid
self.logp = logp
self.length = length
def eval(sel... |
jhreinholdt/fizzbuzz | fizzbuzz.py | """
Created on Wed Sep 20 10:58:19 2017
@author: jhreinholdt
Fizz Buzz - Write a program that prints the numbers from 1 to 100.
But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”.
For numbers which are multiples of both three and five print “FizzBuzz”.
"... |
SnovvyOwl/SampleCode | LineTracing/lanetracing.py | <gh_stars>0
import cv2
import sys
import math
import cv2 as cv
import numpy as np
cap = cv2.VideoCapture("test.mp4")
while (True):
ret, src = cap.read()
src = cv2.resize(src, (640, 360))
dst = cv.Canny(src, 50, 200, None, 3)
cdst = cv.cvtColor(dst, cv.COLOR_GRAY2BGR)
cdstP = np.copy(cdst)
... |
SnovvyOwl/SampleCode | LineTracing/loadvideo.py | import cv2
import numpy as np
cap = cv2.VideoCapture("test.mp4")
while(cap.isOpened()):
# 동영상 파일로부터 이미지를 가져옴
ret, frame = cap.read()
# 화면에 이미지를 출력, 연속적으로 화면에 출력하면 동영상이 됨.
cv2.imshow('frame',frame)
# ESC 키 누르면 루프 중단
if cv2.waitKey(1) & 0xFF == 27:
break;
# 모든 자원을 해제함
cap.release()
cv2.... |
SnovvyOwl/SampleCode | LineTracing/captureCamera.py | <filename>LineTracing/captureCamera.py
import cv2
cap = cv2.VideoCapture(0);
width = cap.get(cv2.CAP_PROP_FRAME_WIDTH)
height = cap.get(cv2.CAP_PROP_FRAME_HEIGHT)
print("size: {0} x {1}".format(width, height))
# 영상 저장을 위한 VideoWriter 인스턴스 생성
fourcc = cv2.VideoWriter_fourcc(*'XVID')
writer = cv2.VideoWriter('test... |
meisterT/rules_webtesting | web/internal/browser.bzl | # Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... |
Bartpab/meson-js | test/backend/main.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import logging
import MesonPy
from logging.handlers import RotatingFileHandler
from MesonPy.BackendApplication import BackendApplication
import asyncio
import websockets
# cr�ation de l'objet logger qui va nous servir � �crire dans les logs
logger = logging.... |
cgostic/squirrel_app_CG | app.py | <reponame>cgostic/squirrel_app_CG
import altair as alt
import pandas as pd
import json
import dash
import dash_core_components as dcc
import dash_bootstrap_components as dbc
import dash_html_components as html
from dash.dependencies import Input, Output
external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.cs... |
cgostic/squirrel_app_CG | scripts/wrangle_full.py | # Load packages
import pandas as pd
import altair as alt
import geopandas as gpd
import json
from shapely.geometry import Point, Polygon
from shapely.ops import cascaded_union
import shapely.wkt
# Need to enable this to allow work with larger datasets (https://altair-viz.github.io/user_guide/faq.html)
alt.data_transf... |
libero/eLife-style-content-adapter | tests/python/test_operators.py | from airflow.operators.bash_operator import BashOperator
from dags.libero.operators import create_node_task
from tests.python.factories import DAGFactory
def test_create_node_task_returns_bash_operator():
dag = DAGFactory()
task = create_node_task('test', '/test/script', dag)
assert isinstance(task, Ba... |
libero/eLife-style-content-adapter | dags/process_zip_dag.py | """
DAG processes a zip file stored in an AWS S3 bucket and prepares the extracted xml
file for Libero content API and sends to the content store via a PUT request.
"""
import logging
from datetime import timedelta
from airflow import DAG
from airflow.utils import timezone
from libero.operators import create_node_tas... |
libero/eLife-style-content-adapter | tests/python/helpers.py | <gh_stars>0
def populate_task_return_value(return_value, context, task_id=None):
"""
Helper function for testing. Populates first task instance in list by
default (typically the previous task). Use task_id for deterministic results
"""
instances = context['dag_run'].get_task_instances()
ti = i... |
libero/eLife-style-content-adapter | tests/python/conftest.py | import os
import socket
import pytest
from airflow.utils import timezone
from airflow.utils.db import create_session
from airflow.utils.state import State
from pytest_socket import disable_socket, SocketBlockedError
from tests.python import mocks
from tests.python.factories import DAGFactory, PythonOperatorFactory
... |
libero/eLife-style-content-adapter | tests/assets/__init__.py | from pathlib import Path
from typing import List
def get_asset(name: str) -> Path:
try:
path = next(Path(__file__).parent.rglob(name))
except StopIteration:
raise FileNotFoundError(name)
return path
def find_asset(name: str) -> List[Path]:
paths = list(Path(__file__).parent.rglob(nam... |
libero/eLife-style-content-adapter | search.py | <reponame>libero/eLife-style-content-adapter<filename>search.py
import flask
flask_app = flask.Flask(__name__)
@flask_app.route('/reindex', methods=['POST'])
def reindex():
return flask.Response("search reindexed all items")
if __name__ == '__main__':
flask_app.run(host='0.0.0.0', port=8099) |
libero/eLife-style-content-adapter | content-store.py | import flask
flask_app = flask.Flask(__name__)
@flask_app.route('/items/<articleid>/versions/1', methods=['PUT'])
def items(articleid):
return flask.Response(flask.request.data, mimetype="application/xml")
if __name__ == '__main__':
flask_app.run(host='0.0.0.0', port=8098)
|
libero/eLife-style-content-adapter | tests/python/test_context_facades.py | import pytest
from dags.libero.context_facades import (
get_previous_task_name,
get_return_value_from_previous_task,
get_file_name_passed_to_dag_run_conf_file
)
from tests.python.factories import TaskInstanceFactory
from tests.python.helpers import populate_task_return_value
def test_get_previous_task_na... |
libero/eLife-style-content-adapter | tests/python/factories.py | import factory
import pendulum
from airflow.models import DAG, DagRun, TaskInstance
from airflow.operators.python_operator import PythonOperator
from airflow.settings import Session
class DAGFactory(factory.Factory):
class Meta:
model = DAG
dag_id = factory.Sequence(lambda n: 'dag_id_%d' % n)
sta... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.