id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1
value | extension stringclasses 14
values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12
values | repo_extraction_date stringclasses 433
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2,284,000 | ik.py | jgashler_rjg/build/ik.py | import maya.cmds as mc
from importlib import reload
import rjg.libs.attribute as rAttr
import rjg.build.chain as rChain
import rjg.libs.control.ctrl as rCtrl
import rjg.build.guide as rGuide
reload(rAttr)
reload(rChain)
reload(rChain)
reload(rGuide)
class Ik:
def __init__(self, side=None, part=None, guide_list=No... | 8,106 | Python | .py | 129 | 52.093023 | 244 | 0.631798 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,001 | rigModule.py | jgashler_rjg/build/rigModule.py | import maya.cmds as mc
from importlib import reload
import rjg.build.rigBase as rBase
import rjg.libs.attribute as rAttr
import rjg.libs.common as rCommon
reload(rBase)
reload(rAttr)
reload(rCommon)
'''
Base class for all buildable parts. Adds to base hierarchy the part hierarchy for modules and controls.
'''
class ... | 2,430 | Python | .py | 52 | 38.403846 | 145 | 0.636826 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,002 | buildPart.py | jgashler_rjg/build/buildPart.py | import maya.cmds as mc
from importlib import reload
import rjg.libs.attribute as rAttr
import rjg.build.parts.root as rRoot
import rjg.build.parts.hip as rHip
import rjg.build.parts.chest as rChest
import rjg.build.parts.finger as rFinger
import rjg.build.parts.bipedLimb as rBipedLimb
import rjg.build.parts.clavicle a... | 2,495 | Python | .py | 71 | 29.605634 | 158 | 0.700869 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,003 | chain.py | jgashler_rjg/build/chain.py | import maya.cmds as mc
from importlib import reload
import rjg.libs.control.ctrl as rCtrl
import rjg.libs.common as rCommon
import rjg.libs.attribute as rAttr
import rjg.libs.transform as rXform
import rjg.libs.math as rMath
reload(rCtrl)
reload(rCommon)
reload(rAttr)
reload(rXform)
reload(rMath)
'''
Class used to cr... | 18,881 | Python | .py | 345 | 43.231884 | 194 | 0.577334 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,004 | prop.py | jgashler_rjg/build/prop.py | import maya.cmds as mc
from importlib import reload
import rjg.libs.file as rFile
import rjg.build.rigModule as rModule
import rjg.libs.attribute as rAttr
reload(rFile)
reload(rAttr)
reload(rModule)
class Prop():
def __init__(self, name='prop', prop_filepath=None, target_names=None, target_list=None, char_ctrl=No... | 1,496 | Python | .py | 33 | 34.818182 | 138 | 0.598202 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,005 | guide.py | jgashler_rjg/build/guide.py | import maya.cmds as mc
import maya.api.OpenMaya as om
from importlib import reload
import rjg.libs.attribute as rAttr
import rjg.libs.math as rMath
reload(rAttr)
reload(rMath)
def clean_pv_guide(guide_list=None, name=None, suffix=None, slide_pv=None, offset_pv=5):
if not suffix:
suffix = 'guide'
if no... | 7,806 | Python | .py | 169 | 36.91716 | 101 | 0.591675 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,006 | template.py | jgashler_rjg/build/parts/template.py | import maya.cmds as mc
from importlib import reload
import rjg.build.rigModule as rModule
import rjg.build.chain as rChain
import rjg.libs.control.ctrl as rCtrl
import rjg.libs.attribute as rAttr
reload(rModule)
reload(rChain)
reload(rCtrl)
reload(rAttr)
class Part(rModule.RigModule):
# constructor. see init para... | 3,919 | Python | .py | 75 | 42.88 | 147 | 0.639064 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,007 | finger.py | jgashler_rjg/build/parts/finger.py | import maya.cmds as mc
from importlib import reload
import rjg.build.rigModule as rModule
import rjg.libs.attribute as rAttr
import rjg.build.chain as rChain
import rjg.build.fk as rFk
reload(rModule)
reload(rAttr)
reload(rChain)
reload(rFk)
class Finger(rModule.RigModule, rFk.Fk):
def __init__(self, side=None, p... | 2,076 | Python | .py | 45 | 38.955556 | 159 | 0.656916 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,008 | metaFinger.py | jgashler_rjg/build/parts/metaFinger.py | import maya.cmds as mc
from importlib import reload
import rjg.build.rigModule as rModule
import rjg.libs.attribute as rAttr
import rjg.build.chain as rChain
import rjg.build.fk as rFk
reload(rModule)
reload(rAttr)
reload(rChain)
reload(rFk)
class MetaFinger(rModule.RigModule, rFk.Fk):
def __init__(self, side=Non... | 3,069 | Python | .py | 58 | 45.258621 | 183 | 0.658537 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,009 | hinge.py | jgashler_rjg/build/parts/hinge.py | import maya.cmds as mc
from importlib import reload
import rjg.build.rigModule as rModule
import rjg.build.chain as rChain
import rjg.libs.control.ctrl as rCtrl
import rjg.libs.attribute as rAttr
reload(rModule)
reload(rChain)
reload(rCtrl)
reload(rAttr)
class Hinge(rModule.RigModule):
def __init__(self, side=Non... | 2,276 | Python | .py | 40 | 50.35 | 268 | 0.691269 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,010 | fk_chain.py | jgashler_rjg/build/parts/fk_chain.py | import maya.cmds as mc
from importlib import reload
import rjg.build.rigModule as rModule
import rjg.build.chain as rChain
import rjg.build.fk as rFk
import rjg.libs.attribute as rAttr
reload(rModule)
reload(rChain)
reload(rFk)
reload(rAttr)
class fk_chain(rModule.RigModule, rFk.Fk):
def __init__(self, side=None,... | 1,842 | Python | .py | 41 | 37.536585 | 152 | 0.660303 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,011 | root.py | jgashler_rjg/build/parts/root.py | import maya.cmds as mc
from importlib import reload
import rjg.build.rigModule as rModule
import rjg.build.chain as rChain
import rjg.libs.control.ctrl as rCtrl
reload(rModule)
reload(rChain)
reload(rCtrl)
'''
Class for root joint and control.
'''
class Root(rModule.RigModule):
def __init__(self, side=None, part=... | 3,097 | Python | .py | 58 | 46.517241 | 266 | 0.672835 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,012 | lookEyes.py | jgashler_rjg/build/parts/lookEyes.py | import maya.cmds as mc
from importlib import reload
import rjg.build.rigModule as rModule
import rjg.build.chain as rChain
import rjg.libs.control.ctrl as rCtrl
import rjg.libs.attribute as rAttr
reload(rModule)
reload(rChain)
reload(rCtrl)
reload(rAttr)
class LookEyes(rModule.RigModule):
def __init__(self, side=... | 3,772 | Python | .py | 53 | 63.886792 | 248 | 0.680638 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,013 | clavicle.py | jgashler_rjg/build/parts/clavicle.py | import maya.cmds as mc
from importlib import reload
import rjg.build.rigModule as rModule
import rjg.libs.attribute as rAttr
import rjg.build.chain as rChain
import rjg.libs.control.ctrl as rCtrl
reload(rAttr)
reload(rModule)
reload(rChain)
reload(rCtrl)
class Clavicle(rModule.RigModule):
def __init__(self, side... | 6,429 | Python | .py | 126 | 37.507937 | 247 | 0.553321 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,014 | neck.py | jgashler_rjg/build/parts/neck.py | import maya.cmds as mc
from importlib import reload
import rjg.build.rigModule as rModule
import rjg.libs.attribute as rAttr
import rjg.build.chain as rChain
import rjg.libs.control.ctrl as rCtrl
import rjg.build.spline as rSpline
reload(rAttr)
reload(rModule)
reload(rChain)
reload(rCtrl)
reload(rSpline)
class Neck(r... | 6,810 | Python | .py | 106 | 54.650943 | 261 | 0.637659 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,015 | hip.py | jgashler_rjg/build/parts/hip.py | import maya.cmds as mc
from importlib import reload
import rjg.build.rigModule as rModule
import rjg.build.chain as rChain
import rjg.libs.control.ctrl as rCtrl
import rjg.libs.attribute as rAttr
reload(rModule)
reload(rChain)
reload(rCtrl)
reload(rAttr)
class Hip(rModule.RigModule):
def __init__(self, side=None,... | 3,546 | Python | .py | 55 | 56.363636 | 300 | 0.661574 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,016 | hand.py | jgashler_rjg/build/parts/hand.py | import maya.cmds as mc
from importlib import reload
import rjg.build.rigModule as rModule
import rjg.libs.attribute as rAttr
import rjg.build.chain as rChain
import rjg.libs.control.ctrl as rCtrl
reload(rAttr)
reload(rModule)
reload(rChain)
reload(rCtrl)
class Hand(rModule.RigModule):
def __init__(self, side=Non... | 5,446 | Python | .py | 75 | 61.853333 | 173 | 0.62899 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,017 | spine.py | jgashler_rjg/build/parts/spine.py | import maya.cmds as mc
from importlib import reload
import rjg.build.rigModule as rModule
import rjg.build.chain as rChain
import rjg.build.spline as rSpline
import rjg.libs.control.ctrl as rCtrl
import rjg.libs.attribute as rAttr
reload(rModule)
reload(rChain)
reload(rSpline)
reload(rCtrl)
reload(rAttr)
class Spine... | 9,883 | Python | .py | 166 | 46.722892 | 136 | 0.589775 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,018 | ik_chain.py | jgashler_rjg/build/parts/ik_chain.py | import maya.cmds as mc
from importlib import reload
import rjg.build.rigModule as rModule
import rjg.build.chain as rChain
import rjg.build.ik as rIk
import rjg.libs.attribute as rAttr
reload(rModule)
reload(rChain)
reload(rIk)
reload(rAttr)
class IkChain(rModule.RigModule, rIk.Ik):
def __init__(self, side=None, ... | 3,611 | Python | .py | 63 | 46.206349 | 152 | 0.642633 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,019 | fingerAttr.py | jgashler_rjg/build/parts/fingerAttr.py | import maya.cmds as mc
from importlib import reload
import rjg.build.rigModule as rModule
import rjg.libs.attribute as rAttr
import rjg.libs.control.ctrl as rCtrl
reload(rModule)
reload(rAttr)
reload(rCtrl)
class FingerAttr(rModule.RigModule):
def __init__(self, side=None, part=None, guide_list=None, ctrl_scale=1... | 3,075 | Python | .py | 46 | 59.391304 | 252 | 0.669774 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,020 | chest.py | jgashler_rjg/build/parts/chest.py | import maya.cmds as mc
from importlib import reload
import rjg.build.rigModule as rModule
import rjg.build.chain as rChain
import rjg.libs.control.ctrl as rCtrl
import rjg.libs.attribute as rAttr
reload(rModule)
reload(rChain)
reload(rCtrl)
reload(rAttr)
class Chest(rModule.RigModule):
def __init__(self, side=Non... | 3,997 | Python | .py | 57 | 61.649123 | 319 | 0.665646 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,021 | head.py | jgashler_rjg/build/parts/head.py | import maya.cmds as mc
from importlib import reload
import rjg.build.rigModule as rModule
import rjg.libs.attribute as rAttr
import rjg.build.chain as rChain
import rjg.libs.control.ctrl as rCtrl
reload(rAttr)
reload(rModule)
reload(rChain)
reload(rCtrl)
class Head(rModule.RigModule):
def __init__(self, side=None... | 4,027 | Python | .py | 60 | 57.716667 | 271 | 0.645749 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,022 | foot.py | jgashler_rjg/build/parts/foot.py | import maya.cmds as mc
from importlib import reload
import rjg.build.rigModule as rModule
import rjg.libs.attribute as rAttr
import rjg.build.chain as rChain
import rjg.libs.control.ctrl as rCtrl
import rjg.build.ik as rIk
import rjg.build.fk as rFk
reload(rAttr)
reload(rModule)
reload(rChain)
reload(rCtrl)
reload(rIk... | 12,650 | Python | .py | 164 | 67.780488 | 289 | 0.648168 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,023 | floatBone.py | jgashler_rjg/build/parts/floatBone.py | import maya.cmds as mc
from importlib import reload
import rjg.build.rigModule as rModule
import rjg.build.chain as rChain
import rjg.libs.control.ctrl as rCtrl
import rjg.libs.attribute as rAttr
reload(rModule)
reload(rChain)
reload(rCtrl)
reload(rAttr)
class FloatBone(rModule.RigModule):
def __init__(self, side... | 2,517 | Python | .py | 43 | 51.813953 | 262 | 0.695528 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,024 | bipedLimb.py | jgashler_rjg/build/parts/bipedLimb.py | import maya.cmds as mc
from importlib import reload
import rjg.build.rigModule as rModule
import rjg.build.chain as rChain
import rjg.build.fk as rFk
import rjg.build.ik as rIk
import rjg.libs.attribute as rAttr
reload(rModule)
reload(rChain)
reload(rFk)
reload(rIk)
reload(rAttr)
class BipedLimb(rModule.RigModule, r... | 14,312 | Python | .py | 253 | 38.343874 | 193 | 0.498858 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,025 | arbit.py | jgashler_rjg/build/parts/arbit.py | import maya.cmds as mc
from importlib import reload
import rjg.build.rigModule as rModule
import rjg.build.chain as rChain
import rjg.libs.control.ctrl as rCtrl
import rjg.libs.attribute as rAttr
reload(rModule)
reload(rChain)
reload(rCtrl)
reload(rAttr)
class Arbitrary(rModule.RigModule):
def __init__(self, side... | 2,187 | Python | .py | 38 | 51.131579 | 257 | 0.695082 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,026 | tail.py | jgashler_rjg/build/parts/tail.py | import maya.cmds as mc
from importlib import reload
import rjg.build.rigModule as rModule
import rjg.libs.attribute as rAttr
import rjg.build.chain as rChain
import rjg.build.fk as rFk
reload(rModule)
reload(rAttr)
reload(rChain)
reload(rFk)
class Tail(rModule.RigModule, rFk.Fk):
def __init__(self, side=None, par... | 2,022 | Python | .py | 45 | 37.755556 | 159 | 0.658686 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,027 | partTest.cpython-310.pyc | jgashler_rjg/build/parts/__pycache__/partTest.cpython-310.pyc | o
;åød¿ ã @ s> d dl mZ d dlZd dlm mZ e e¡ ddd„ZdS )é NÚ
partHoinkyc C s
t | ¡S )N)Ú buildTestÚbuildSphere)Úname© r úAC:\Users/jgash/Documents/maya/scripts\rjg\build\parts\partTest.pyÚpartTestSph s
r )r ) Ú m... | 444 | Python | .py | 7 | 62.285714 | 146 | 0.5 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,028 | faceProject.py | jgashler_rjg/post/faceProject.py | import maya.cmds as mc
from importlib import reload
import rjg.libs.file as rFile
import rjg.libs.control.ctrl as rCtrl
reload(rFile)
reload(rCtrl)
def project(body=None, char=None, f_model=None, f_rig=None, f_skel=None, extras=None, f_extras=None, rig_par='head_M_02_CTRL_CNST_GRP', tY=0):
# reparent face sections... | 5,266 | Python | .py | 125 | 32.592 | 142 | 0.570644 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,029 | finalize.py | jgashler_rjg/post/finalize.py | import maya.cmds as mc
from importlib import reload
import rjg.libs.control.ctrl as rCtrl
import rjg.libs.attribute as rAttr
import rjg.libs.space as rSpace
reload(rCtrl)
reload(rAttr)
reload(rSpace)
def get_ctrl_types():
type_dict = {}
if mc.objExists('face_M'):
type_dict['face'] = ['face_M']
f... | 20,509 | Python | .py | 433 | 34.916859 | 195 | 0.535396 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,030 | textures.py | jgashler_rjg/post/textures.py | import maya.cmds as mc
import maya.mel as mel
def set_textures(character):
mt = mc.ls(type='aiStandardSurface')
if character == 'Rayden':
path = 'production/character/rayden/tex/main/variants/default/src/'
f_suff = 'SG_DiffuseColor_sRGB-Texture.1001.jpeg'
elif character == 'Robin':
... | 2,826 | Python | .py | 28 | 92.321429 | 1,484 | 0.668941 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,031 | ng_weights.py | jgashler_rjg/post/dataIO/ng_weights.py | import os, json
import maya.cmds as mc
import pipe.util as pu
from ngSkinTools2 import api as ngst_api
from ngSkinTools2.api import VertexTransferMode, InfluenceMappingConfig
from importlib import reload
import rjg.post.dataIO.weights as rWeightIO
reload(rWeightIO)
def write_skin(mesh, directory, name='skin_weights... | 6,340 | Python | .py | 131 | 36.793893 | 187 | 0.633929 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,032 | controls.py | jgashler_rjg/post/dataIO/controls.py | import maya.cmds as mc
import json, os
from importlib import reload
import rjg.libs.control.ctrl as rCtrl
reload(rCtrl)
def write_ctrls(directory, name='control_curves', force=False):
curve_data = {}
for c_dict in mc.ls('*.ctrlDict'):
ctrl_name = c_dict.split('.')[0]
ctrl = rCtrl.Control(ctrl=... | 1,369 | Python | .py | 32 | 35.71875 | 185 | 0.629992 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,033 | weights.py | jgashler_rjg/post/dataIO/weights.py | import maya.cmds as mc
import json, os
def write_skin(directory, name='skin_weights', force=False, full=False, version=False):
skin = build_skin_dict()
if not full:
path = '{}/{}.json'.format(directory, name)
else:
path = directory
dump = json.dumps(skin, indent=4)
if force or... | 2,053 | Python | .py | 42 | 40.285714 | 187 | 0.639899 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,034 | util.py | jgashler_rjg/libs/util.py | import maya.cmds as mc
import rjg.libs.control.ctrl as rCtrl
def create_pxWrap(*argv):
a = argv if len(argv) > 1 else argv[0]
driven = a[:-1]
driver = a[-1]
#print(f"adding driver: {driver} to driven: {driven}")
mc.select(driven)
pxWrap = mc.proximityWrap()
mc.proximityWrap(pxWrap, e=True... | 2,748 | Python | .py | 67 | 35.402985 | 198 | 0.665913 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,035 | transform.py | jgashler_rjg/libs/transform.py | import maya.cmds as mc
from importlib import reload
from collections import OrderedDict
'''
moves all transform attributes of node to those specified
param node: node to transform
param translate: object, list, or tuple. if list or tuple, must be of length 3 (x, y, z) and translate will be changed to those values in ... | 3,094 | Python | .py | 75 | 35.493333 | 149 | 0.679841 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,036 | file.py | jgashler_rjg/libs/file.py | import maya.cmds as mc
# imports a scene, finds all root nodes (no parent) and returns them
def import_hierarchy(path, namespace='default', parent=None):
if not path:
return
mc.file(path, i=True, namespace=namespace)
root_list = mc.ls(namespace + ':|*') # this gets all the root nodes... | 648 | Python | .py | 15 | 38.133333 | 99 | 0.662975 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,037 | attribute.py | jgashler_rjg/libs/attribute.py | import maya.cmds as mc
from importlib import reload
class Attribute:
def __init__(self, add=True, type=None, node=None, name=None, value=None, enum_list=None, lock=False, min=None, max=None, keyable=None, children_name=None, transfer_to=None):
self.type = type
self.node = node
self.name = n... | 7,045 | Python | .py | 138 | 38.782609 | 222 | 0.603776 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,038 | space.py | jgashler_rjg/libs/space.py | import maya.cmds as mc
from importlib import reload
import rjg.libs.attribute as rAttr
def space_switch(node, driver, target_list=[], name_list=[], name='space', constraint_type='parent', value=0):
node_split = node.split('_')
base_name = node_split[0] + '_' + node_split[1]
if constraint_type != 'parent'... | 2,275 | Python | .py | 46 | 40.586957 | 112 | 0.608637 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,039 | math.py | jgashler_rjg/libs/math.py | import maya.cmds as mc
import maya.api.OpenMaya as om
# import math
def vector_from_two_points(point_a=None, point_b=None):
pos_a = get_world_pose(point_a)
pos_b = get_world_pose(point_b)
return [b-a for a, b in zip(pos_a, pos_b)]
def get_world_pose(pos):
if isinstance(pos, list) or isinstance(pos, ... | 1,232 | Python | .py | 33 | 30.30303 | 78 | 0.622166 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,040 | common.py | jgashler_rjg/libs/common.py | import maya.cmds as mc
'''
gets shapes under selected node
returns list of shapes, or None of there are no shapes
'''
def get_shapes(node):
shape_list = mc.listRelatives(node, shapes=True, noIntermediate=True)
if not shape_list:
shape_list = mc.ls(node, shapes=True)
if shape_list:
return... | 895 | Python | .py | 29 | 25 | 83 | 0.67063 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,041 | group.py | jgashler_rjg/libs/group.py | import maya.cmds as mc
from importlib import reload
class Group:
'''
takes a list of nodes and adds them to a group with padding
param nodes: the list of nodes to be grouped
param pad_name_list: a list of pad names, one hierarchy layer will be created for each one
param name: name of group
''... | 1,956 | Python | .py | 53 | 25.490566 | 98 | 0.528594 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,042 | muscle_commands.py | jgashler_rjg/libs/muscle/muscle_commands.py | import maya.cmds as mc
def make_cMuscleObject(object=None, fat=0.5):
cmo = mc.createNode('cMuscleObject', name=object + '_cMuscleObject')
mc.connectAttr(object + '.worldMatrix[0]', cmo + '.worldMatrixStart')
mc.connectAttr(object + '.worldMesh[0]', cmo + '.meshIn')
mc.setAttr(cmo + '.draw', 0)
... | 1,847 | Python | .py | 35 | 46.485714 | 87 | 0.693058 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,043 | ctrl.py | jgashler_rjg/libs/control/ctrl.py | import maya.cmds as mc
from importlib import reload
import ast
import rjg.libs.control.draw as rDraw
import rjg.libs.group as rGroup
import rjg.libs.common as rCommon
import rjg.libs.attribute as rAttr
import rjg.libs.transform as rXform
reload(rDraw)
reload(rGroup)
reload(rCommon)
reload(rAttr)
reload(rXform)
class ... | 5,845 | Python | .py | 132 | 32.954545 | 126 | 0.568234 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,044 | draw.py | jgashler_rjg/libs/control/draw.py | import maya.cmds as mc
from importlib import reload
import json
import os
import rjg.libs.common as rCommon
reload(rCommon)
SHAPE_DIR = os.path.dirname(os.path.realpath(__file__)) + "/shapes"
'''
shapes to add to library
2D: 3-arrow, IK, FK
3D: 3-pyramid, tri-prism, cylinder?, 3D-circle, 3D-square,
'''
class Draw... | 8,545 | Python | .py | 197 | 31.167513 | 155 | 0.537391 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,045 | square_pyramid | jgashler_rjg/libs/control/shapes/square_pyramid | {
"curveShape1": {
"min": 0.0,
"max": 10.0,
"spans": 10,
"degree": 1,
"form": 0,
"cv_len": 11,
"cv_pose": [
[
-1.0,
-0.7559914077902349,
1.0
],
[
-1.0,
... | 1,366 | Python | .py | 67 | 6.507463 | 36 | 0.219231 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,046 | build_script.py | jgashler_rjg/UI/build_script.py | import maya.cmds as mc
from importlib import reload
import rjg.build.buildPart as rBuild
import rjg.post.finalize as rFinal
def build(info):
mp = info['model_path']
gp = info['guide_path']
mc.file(new=True, f=True)
### BUILD SCRIPT
root = rBuild.build_module(module_type='root', side='M'... | 2,366 | Python | .py | 28 | 76.142857 | 241 | 0.649362 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,047 | build_ui.py | jgashler_rjg/UI/build_ui.py | import maya.cmds as mc
import json, os
from importlib import reload
import rjg.UI.build_script as rBuildScript
reload(rBuildScript)
def launch_build_ui(title):
window_id = 'build_id'
if mc.window(window_id, exists=True):
mc.deleteUI(window_id)
mc.window(window_id, title=title, sizeable=Fa... | 5,195 | Python | .py | 104 | 44.067308 | 156 | 0.667797 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,048 | arbit_test.py | jgashler_rjg/demos/arbit_test.py | import maya.cmds as mc
from importlib import reload
import rjg.build.buildPart as rBuild
import rjg.post.finalize as rFinal
reload(rBuild)
reload(rFinal)
mp = ''
gp = '/users/animation/jgashler/Desktop/arbit_test.mb'
mc.file(new=True, f=True)
arbit_guides = ['arb'+str(i+1) for i in range(3)]
root = rBuild.build_m... | 693 | Python | .py | 15 | 44.2 | 178 | 0.742129 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,049 | neck_test.py | jgashler_rjg/demos/neck_test.py | import maya.cmds as mc
from importlib import reload
import rjg.build.buildPart as rBuild
import rjg.post.finalize as rFinal
import rjg.build.prop as rProp
reload(rProp)
reload(rBuild)
reload(rFinal)
mp = 'C:/Users/jgash/Documents/maya/projects/F23/ninja_model.mb'
gp = 'C:/Users/jgash/Documents/maya/projects/F23/ninja... | 693 | Python | .py | 16 | 41.8125 | 130 | 0.762332 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,050 | ninja_hand.py | jgashler_rjg/demos/ninja_hand.py | import maya.cmds as mc
from importlib import reload
import rjg.build.buildPart as rBuild
import rjg.post.finalize as rFinal
reload(rBuild)
reload(rFinal)
mp = 'C:/Users/jgash/Documents/maya/projects/F23/ninja_model.mb'
gp = 'C:/Users/jgash/Documents/maya/projects/F23/ninja_guides.mb'
mc.file(new=True, f=True)
### B... | 1,555 | Python | .py | 28 | 52.214286 | 187 | 0.679682 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,051 | ik_demo.py | jgashler_rjg/demos/ik_demo.py | import maya.cmds as mc
from importlib import reload
import rjg.build.parts.ik_chain as rIk
reload(rIk)
ik = rIk.IkChain(side='L', part='arm', guide_list=mc.ls(sl=True), ctrl_scale=1.5, sticky=None, solver=None, pv_guide='auto', offset_pv=0, slide_pv=None,
stretchy=True, twisty=True, bendy=True, segm... | 362 | Python | .py | 6 | 56 | 153 | 0.717514 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,052 | tail_test.py | jgashler_rjg/demos/tail_test.py | import maya.cmds as mc
from importlib import reload
import rjg.build.buildPart as rBuild
import rjg.post.finalize as rFinal
import rjg.build.prop as rProp
reload(rProp)
reload(rBuild)
reload(rFinal)
mp = ''
gp = '/users/animation/jgashler/Desktop/tail_test.mb'
mc.file(new=True, f=True)
tail_guides = ['Tail'+str(i+1... | 633 | Python | .py | 16 | 38.125 | 107 | 0.757377 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,053 | UBM_guides_test.py | jgashler_rjg/demos/UBM_guides_test.py | import maya.cmds as mc
import json, os
from importlib import reload
def place_guides(model, directory, filename):
path = directory + filename
if os.path.isfile(path):
file = open(path, 'r')
guide_data = json.loads(file.read())
else:
mc.error('Guides file {} does not exist.'.format(p... | 1,998 | Python | .py | 56 | 27.607143 | 94 | 0.5863 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,054 | place_bone_locs.py | jgashler_rjg/demos/place_bone_locs.py | import maya.cmds as mc
all_bones = mc.listRelatives('skeleton_grp', children=True)
print(len(all_bones), all_bones)
loc_grp = mc.group(empty=True, n='bone_locs')
for bone in all_bones:
mc.select(bone)
mc.CenterPivot()
loc = mc.spaceLocator(n=bone + '_LOC')
mc.matchTransform(loc, bone)
mc... | 341 | Python | .py | 10 | 30 | 59 | 0.70625 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,055 | spine_test.py | jgashler_rjg/demos/spine_test.py | import maya.cmds as mc
from importlib import reload
import rjg.build.buildPart as rBuild
import rjg.post.finalize as rFinal
import rjg.build.prop as rProp
reload(rProp)
reload(rBuild)
reload(rFinal)
mp = 'C:/Users/jgash/Documents/maya/projects/F23/ninja_model.mb'
gp = 'C:/Users/jgash/Documents/maya/projects/F23/ninja... | 712 | Python | .py | 16 | 43.125 | 151 | 0.757971 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,056 | partTest.cpython-310.pyc | jgashler_rjg/build/parts/__pycache__/partTest.cpython-310.pyc | o
;åød¿ ã @ s> d dl mZ d dlZd dlm mZ e e¡ ddd„ZdS )é NÚ
partHoinkyc C s
t | ¡S )N)Ú buildTestÚbuildSphere)Úname© r úAC:\Users/jgash/Documents/maya/scripts\rjg\build\parts\partTest.pyÚpartTestSph s
r )r ) Ú m... | 444 | Python | .pyt | 7 | 62.285714 | 146 | 0.5 | jgashler/rjg | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,057 | providentia_v3.py | novateams_nova_core/nova/core/plugins/inventory/providentia_v3.py | DOCUMENTATION = """
name: nova.core.providentia_v3
plugin_type: inventory
short_description: Providentia inventory source
requirements:
- requests_oauthlib
- oauthlib
description:
- Get inventory hosts and groups from Providentia.
- Uses a YAML configuration file that ends with providentia.(ym... | 8,145 | Python | .py | 166 | 42.831325 | 166 | 0.715528 | novateams/nova.core | 8 | 8 | 1 | AGPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,058 | addresses.py | novateams_nova_core/nova/core/plugins/filter/addresses.py |
DOCUMENTATION="""
name: addresses
description: |
This is filter plugin for getting specific addresses from interfaces list. Interfaces list is a variable that is based on Providentia's API
The interfaces list can also be built manually when Providentia is not used. Example can be found here: ht... | 6,136 | Python | .py | 120 | 39.758333 | 197 | 0.617025 | novateams/nova.core | 8 | 8 | 1 | AGPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,059 | getIP.py | novateams_nova_core/nova/core/plugins/filter/getIP.py | from ansible.errors import AnsibleFilterError
from ansible.module_utils.common.text.converters import to_text
DOCUMENTATION = """
name: getIP
author: bl0way
short_description: Get an IP.
description:
- Extract the first IP on the selected interface and type from hostvars['vm_name'].
version... | 2,389 | Python | .py | 63 | 27.920635 | 143 | 0.57081 | novateams/nova.core | 8 | 8 | 1 | AGPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,060 | install.py | bytedance_emuMonitor/install.py | import os
import sys
import stat
CWD = os.getcwd()
PYTHON_PATH = os.path.dirname(os.path.abspath(sys.executable))
def check_python_version():
"""
Check python version.
python3 is required, anaconda3 is better.
"""
print('>>> Check python version.')
current_python = sys.version_info[:2]
r... | 12,735 | Python | .py | 266 | 41.898496 | 229 | 0.646071 | bytedance/emuMonitor | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,061 | common_sqlite3.py | bytedance_emuMonitor/common/common_sqlite3.py | import os
import re
import sys
import sqlite3
sys.path.append(str(os.environ['EMU_MONITOR_INSTALL_PATH']))
from common import common
def connect_db_file(db_file, mode='read'):
"""
Connect specified db_file with read/write mode.
"""
result = 'passed'
conn = ''
if mode == 'write':
jour... | 11,149 | Python | .py | 263 | 33.680608 | 227 | 0.565012 | bytedance/emuMonitor | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,062 | common_pyqt5.py | bytedance_emuMonitor/common/common_pyqt5.py | import re
import os
import datetime
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg
from matplotlib.figure import Figure
from matplotlib.backends.backend_qt5 import NavigationToolbar2QT
from matplotlib.dates import num2date
from PyQt5.QtWidgets import QDesktopWidget, QComboBox, QLineEdit, QListWidget, ... | 13,156 | Python | .py | 320 | 30.640625 | 168 | 0.595878 | bytedance/emuMonitor | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,063 | common_zebu.py | bytedance_emuMonitor/common/common_zebu.py | import re
import copy
import os
import sys
import yaml
from datetime import datetime
# Import config file
sys.path.append(str(os.environ['EMU_MONITOR_INSTALL_PATH']))
from config import config
def parse_current_zebu_info(current_zebu_info):
current_zebu_dic = {
'info': {},
'unit_list': [... | 11,527 | Python | .py | 201 | 39.507463 | 194 | 0.507657 | bytedance/emuMonitor | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,064 | common_protium.py | bytedance_emuMonitor/common/common_protium.py | import os
import re
import sys
import copy
import yaml
sys.path.append(str(os.environ['EMU_MONITOR_INSTALL_PATH']))
from common import common
from config import config
def get_protium_sys_info(path=None, command=None):
"""
Get protium sys information.
"""
logger = common.get_logger()
protium_sys_... | 9,240 | Python | .py | 184 | 37.673913 | 162 | 0.554927 | bytedance/emuMonitor | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,065 | common_palladium.py | bytedance_emuMonitor/common/common_palladium.py | import os
import re
import sys
import copy
import socket
import yaml
sys.path.append(str(os.environ['EMU_MONITOR_INSTALL_PATH']))
from config import config
from common import common
def get_test_server_info(hardware, test_server, host):
test_server_info = []
# get current server ip and hostname
current_... | 18,345 | Python | .py | 273 | 46.245421 | 176 | 0.513881 | bytedance/emuMonitor | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,066 | common.py | bytedance_emuMonitor/common/common.py | import subprocess
import xlwt
import logging
import os
import re
import sys
def print_error(message):
"""
Print error message with red color.
"""
print('\033[1;31m' + str(message) + '\033[0m')
def print_warning(message):
"""
Print warning message with yellow color.
"""
print('\033[1;... | 11,706 | Python | .py | 247 | 34.558704 | 171 | 0.553946 | bytedance/emuMonitor | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,067 | zebu_monitor.py | bytedance_emuMonitor/bin/zebu_monitor.py | # -*- coding: utf-8 -*-
import os
import re
import sys
import yaml
import stat
import getpass
import logging
from datetime import datetime, timedelta
# Import PyQt
from PyQt5.QtWidgets import QApplication, QWidget, QMainWindow, QAction, qApp, QTabWidget, QFrame, QGridLayout, QTableWidget, QTableWidgetItem, QPushButto... | 73,466 | Python | .py | 1,179 | 49.850721 | 270 | 0.634919 | bytedance/emuMonitor | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,068 | palladium_monitor.py | bytedance_emuMonitor/bin/palladium_monitor.py | # -*- coding: utf-8 -*-
import os
import re
import sys
import time
import stat
import yaml
import copy
import getpass
import datetime
import logging
from PyQt5.QtWidgets import QApplication, QWidget, QMainWindow, QAction, qApp, QTabWidget, QFrame, QGridLayout, QTableWidget, QTableWidgetItem, QPushButton, QLabel, QMes... | 142,963 | Python | .py | 2,310 | 49.138095 | 274 | 0.633333 | bytedance/emuMonitor | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,069 | psample.py | bytedance_emuMonitor/bin/psample.py | # -*- coding: utf-8 -*-
import os
import re
import sys
import yaml
import argparse
import datetime
import logging
sys.path.append(str(os.environ['EMU_MONITOR_INSTALL_PATH']))
from common import common, common_palladium
from config import config
os.environ["PYTHONUNBUFFERED"] = '1'
logger = common.get_logger(level=l... | 19,361 | Python | .py | 319 | 45.586207 | 196 | 0.568071 | bytedance/emuMonitor | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,070 | protium_monitor.py | bytedance_emuMonitor/bin/protium_monitor.py | #!/ic/software/tools/python3/3.8.8/bin/python3
# -*- coding: utf-8 -*-
################################
# File Name : ptm_monitor.py
# Author : zhangjingwen.silvia
# Created On : 2024-02-21 15:59:05
# Description :
################################
import os
import re
import sys
import yaml
import time
import lo... | 95,809 | Python | .py | 1,712 | 44.235981 | 274 | 0.631603 | bytedance/emuMonitor | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,071 | protium_sample.py | bytedance_emuMonitor/bin/protium_sample.py | #!/ic/software/tools/python3/3.8.8/bin/python3
# -*- coding: utf-8 -*-
################################
# File Name : ptm_sample.py
# Author : zhangjingwen.silvia
# Created On : 2024-02-21 15:28:22
# Description :
################################
import os
import sys
import yaml
import logging
import datetime
i... | 10,533 | Python | .py | 197 | 42.299492 | 171 | 0.608475 | bytedance/emuMonitor | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,072 | message.py | bytedance_emuMonitor/tools/message.py | # -*- coding: utf-8 -*-
################################
# File Name : message.py
# Author : liyanqing
# Created On : 2021-11-30 00:00:00
# Description :
################################
import os
import sys
import argparse
from PyQt5.QtWidgets import QApplication, QMainWindow, QTabWidget, QFrame, QGridLayout,... | 2,482 | Python | .py | 72 | 27.333333 | 94 | 0.588777 | bytedance/emuMonitor | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,073 | patch.py | bytedance_emuMonitor/tools/patch.py | #!/ic/software/tools/python3/3.8.8/bin/python3
# -*- coding: utf-8 -*-
################################
# File Name : patch.py
# Author : liyanqing.1987
# Created On : 2023-05-16 21:22:52
# Description : This script is used for replacing all changed python files from
# patch path to current instal... | 4,107 | Python | .py | 95 | 33.147368 | 185 | 0.534003 | bytedance/emuMonitor | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,074 | FixColorspaces.py | NicSJ_FixColorspace/FixColorspaces.py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is ... | 5,848 | Python | .py | 134 | 36.276119 | 137 | 0.651229 | NicSJ/FixColorspace | 8 | 0 | 1 | GPL-2.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,075 | Tutorial.ipynb | seeslab_HyGMMSBM/Tutorial.ipynb | {
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Tutorial\n",
"\n",
"The purpose of this code is to make predictions of unobserved binary hyperedges in a hypergraph with binary hyperedges.\n",
"Note that the training contains data about all observations of hyperedges an... | 14,437 | Python | .py | 465 | 26.092473 | 174 | 0.57515 | seeslab/HyGMMSBM | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,076 | mmsbm.py | seeslab_HyGMMSBM/mmsbm.py | import numpy as np
from random import *
from math import *
from scipy.stats import sem
from itertools import permutations
from numba import jit
import time
PADDING_ELEMENT = 0
eps= 1e-10
max_list = 0
max_set = 0
def ReadEdges(inputfile,maxS):
nodes=[]#for each node it stores the total number of hyperedges of e... | 12,079 | Python | .py | 331 | 25.836858 | 129 | 0.536222 | seeslab/HyGMMSBM | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,077 | assortative.py | seeslab_HyGMMSBM/assortative.py | import numpy as np
from random import random
from math import *
from scipy.stats import sem
eps= 1e-10
def ReadEdges(inputfile,maxS):
nodes=[]#for each node it stores the total number of hyperedges of each size
node2id=[]##store for each node number 0,1,2,... its corresponding real string
edges=[] ##list o... | 5,788 | Python | .py | 171 | 22.625731 | 88 | 0.515208 | seeslab/HyGMMSBM | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,078 | main.py | jin-taiyu_Bnalyser/main.py | from PyQt5 import QtWidgets
from GUI.GUI import MyWindow
import sys
# 主程序
if __name__ == "__main__":
app = QtWidgets.QApplication(sys.argv)
window = MyWindow()
sys.exit(app.exec_())
| 201 | Python | .py | 8 | 21.75 | 42 | 0.693548 | jin-taiyu/Bnalyser | 8 | 1 | 1 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,079 | Theme.py | jin-taiyu_Bnalyser/topic/Theme.py | from wordcloud import WordCloud
import matplotlib.pyplot as plt
import seaborn as sns
import json
import os
from transformers import BertForSequenceClassification
from transformers import BertTokenizer
import torch
class WordCloudGenerator:
def __init__(self, data, texts, results):
self.texts = texts
... | 3,020 | Python | .py | 73 | 28.60274 | 125 | 0.551144 | jin-taiyu/Bnalyser | 8 | 1 | 1 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,080 | SenAnalyse.py | jin-taiyu_Bnalyser/sentiment/SenAnalyse.py | from transformers import BertForSequenceClassification
from transformers import BertTokenizer
import torch
import seaborn as sns
import matplotlib.pyplot as plt
import json
import os
class SenAnalyse:
def __init__(self, data, texts, results, negative, positive):
self.texts = texts
self.results = re... | 2,380 | Python | .py | 57 | 30 | 107 | 0.592507 | jin-taiyu/Bnalyser | 8 | 1 | 1 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,081 | trainSen.py | jin-taiyu_Bnalyser/train/trainSen.py | import os
import time
import datetime
import random
import warnings
import tensorflow as tf
import torch
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
from sklearn.metrics import matthews_corrcoef
from transformers import BertTokenizer
from torch.utils.data import TensorDa... | 19,252 | Python | .py | 465 | 34.202151 | 120 | 0.653244 | jin-taiyu/Bnalyser | 8 | 1 | 1 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,082 | trainCla.py | jin-taiyu_Bnalyser/train/trainCla.py | import os
import time
import csv
import datetime
import random
import warnings
import tensorflow as tf
import torch
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
from sklearn.metrics import matthews_corrcoef
from transformers import BertTokenizer
from torch.utils.data impo... | 21,019 | Python | .py | 502 | 34.057769 | 120 | 0.647765 | jin-taiyu/Bnalyser | 8 | 1 | 1 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,083 | CorpusProcessor.py | jin-taiyu_Bnalyser/processing/CorpusProcessor.py | import csv
import json
import jieba
import codecs
import os
# 定义一个类 CorpusProcessor 用于对语料进行预处理
class CorpusProcessor:
# 初始化 此处形参为源语料文件路径
def __init__(self, file_path):
self.file_path = file_path
self.corpus = []
self.vocab = set()
self.stop_words = set()
def load_csv(self):... | 2,500 | Python | .py | 59 | 29.59322 | 111 | 0.577365 | jin-taiyu/Bnalyser | 8 | 1 | 1 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,084 | GUI.py | jin-taiyu_Bnalyser/GUI/GUI.py | import sys
import os
from processing.CorpusProcessor import CorpusProcessor
from sentiment.SenAnalyse import SenAnalyse
from topic.Theme import WordCloudGenerator
from PyQt5 import QtWidgets
from PyQt5 import QtCore
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QImage, QPixmap
from PyQt5.QtWidgets import QApplica... | 15,260 | Python | .py | 310 | 35.06129 | 169 | 0.58919 | jin-taiyu/Bnalyser | 8 | 1 | 1 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,085 | GUI.cpython-310.pyc | jin-taiyu_Bnalyser/GUI/__pycache__/GUI.cpython-310.pyc | o
7Î#dœ; ã @ sà d dl Z d dlZd dlmZ d dlmZ d dlmZ d dlm Z d dlm
Z
d dlmZ d dl
mZmZ d d lmZmZmZmZmZmZmZmZmZmZmZmZ G d
d„ de jƒZedkrnee j ƒZ!eƒ Z"e #e! $¡ ¡ dS dS )
é N)ÚCorpusProcessor)Ú
SenAnalyse)ÚWordC... | 7,810 | Python | .py | 99 | 77.777778 | 506 | 0.435555 | jin-taiyu/Bnalyser | 8 | 1 | 1 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,086 | GUI.cpython-310.pyc | jin-taiyu_Bnalyser/GUI/__pycache__/GUI.cpython-310.pyc | o
7Î#dœ; ã @ sà d dl Z d dlZd dlmZ d dlmZ d dlmZ d dlm Z d dlm
Z
d dlmZ d dl
mZmZ d d lmZmZmZmZmZmZmZmZmZmZmZmZ G d
d„ de jƒZedkrnee j ƒZ!eƒ Z"e #e! $¡ ¡ dS dS )
é N)ÚCorpusProcessor)Ú
SenAnalyse)ÚWordC... | 7,810 | Python | .pyt | 99 | 77.777778 | 506 | 0.435555 | jin-taiyu/Bnalyser | 8 | 1 | 1 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,087 | __main__.py | AmoreForever_Shizu/shizu/__main__.py | # Shizu Copyright (C) 2023-2024 AmoreForever
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distri... | 3,643 | Python | .py | 59 | 58.779661 | 99 | 0.471661 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,088 | extrapatchs.py | AmoreForever_Shizu/shizu/extrapatchs.py | # Shizu Copyright (C) 2023-2024 AmoreForever
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distri... | 2,104 | Python | .py | 49 | 35.102041 | 83 | 0.667327 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,089 | fsm.py | AmoreForever_Shizu/shizu/fsm.py | # Sh1t-UB (telegram userbot by sh1tn3t)
# Copyright (C) 2021-2022 Sh1tN3t
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option... | 5,575 | Python | .py | 133 | 32.578947 | 82 | 0.600815 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,090 | loader.py | AmoreForever_Shizu/shizu/loader.py | # Sh1t-UB (telegram userbot by sh1tn3t)
# Copyright (C) 2021-2022 Sh1tN3t
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option... | 22,745 | Python | .py | 542 | 31.531365 | 133 | 0.582359 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,091 | auth.py | AmoreForever_Shizu/shizu/auth.py | # Shizu Copyright (C) 2023-2024 AmoreForever
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distri... | 8,654 | Python | .py | 207 | 31.618357 | 112 | 0.595213 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,092 | utils.py | AmoreForever_Shizu/shizu/utils.py | # Shizu Copyright (C) 2023-2024 AmoreForever
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distri... | 21,775 | Python | .py | 561 | 29.324421 | 147 | 0.606975 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,093 | __init__.py | AmoreForever_Shizu/shizu/__init__.py | __license__ = "GNU Affero General Public License v3.0"
__copyright__ = "Copyright (C) 2023 Shizu"
__developer__ = "https://t.me/hikamoru"
__github__ = "https://github.com/AmoreForever/"
| 186 | Python | .py | 4 | 45.5 | 54 | 0.681319 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,094 | dispatcher.py | AmoreForever_Shizu/shizu/dispatcher.py | # Shizu Copyright (C) 2023-2024 AmoreForever
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distri... | 4,270 | Python | .py | 100 | 34.17 | 169 | 0.642495 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,095 | logger.py | AmoreForever_Shizu/shizu/logger.py | # Shizu Copyright (C) 2023-2024 AmoreForever
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distri... | 11,375 | Python | .py | 279 | 30.817204 | 134 | 0.58474 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,096 | version.py | AmoreForever_Shizu/shizu/version.py | # Shizu Copyright (C) 2023-2024 AmoreForever
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distri... | 793 | Python | .py | 16 | 48.0625 | 72 | 0.773732 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,097 | translator.py | AmoreForever_Shizu/shizu/translator.py | """
█ █ ▀ █▄▀ ▄▀█ █▀█ ▀ ▄▀█ ▀█▀ ▄▀█ █▀▄▀█ ▄▀█
█▀█ █ █ █ █▀█ █▀▄ █ ▄ █▀█ █ █▀█ █ ▀ █ █▀█
Copyright 2022 t.me/hikariatama
Licensed under the GNU GPLv3
"""
# Shizu Copyright (C) 2023-2024 AmoreForever
# This program is free software: you can redistribute it and/or modify
# it under the terms of t... | 2,532 | Python | .py | 63 | 30.873016 | 84 | 0.589217 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,098 | main.py | AmoreForever_Shizu/shizu/main.py | # Shizu Copyright (C) 2023-2024 AmoreForever
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distri... | 1,452 | Python | .py | 38 | 34.421053 | 72 | 0.723496 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,099 | types.py | AmoreForever_Shizu/shizu/types.py | # Shizu Copyright (C) 2023-2024 AmoreForever
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distri... | 3,654 | Python | .py | 95 | 30.684211 | 124 | 0.644337 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |