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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
38,200 | compression.py | liftoff_pyminifier/pyminifier/compression.py | # -*- coding: utf-8 -*-
__doc__ = """\
compression.py - A module providing functions to turn a python script into a
self-executing archive in a few different formats...
**gz_pack format:**
- Typically provides better compression than bzip2 (for Python scripts).
- Scripts compressed via this method can still ... | 11,380 | Python | .py | 253 | 37.699605 | 135 | 0.656813 | liftoff/pyminifier | 1,446 | 222 | 116 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,201 | conf.py | liftoff_pyminifier/docs/source/conf.py | # -*- coding: utf-8 -*-
#
# pyminifier documentation build configuration file, created by
# sphinx-quickstart on Sat May 24 14:25:46 2014.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
... | 8,543 | Python | .py | 200 | 41.165 | 79 | 0.73268 | liftoff/pyminifier | 1,446 | 222 | 116 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,202 | test_minification.py | liftoff_pyminifier/tests/test_minification.py | #!/usr/bin/env python
import unittest
import subprocess
import tempfile
import os
import shutil
testdir = os.path.abspath(os.path.split(__file__)[0])
maindir = os.path.dirname(testdir)
class TestPyMinify(unittest.TestCase):
def setUp(self):
self._testdir = tempfile.mkdtemp()
self.testdir = os.pa... | 1,701 | Python | .py | 47 | 27.893617 | 78 | 0.61899 | liftoff/pyminifier | 1,446 | 222 | 116 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,203 | setup.py | trehn_termdown/setup.py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name="termdown",
version="1.18.0",
description="Countdown timer for your terminal",
author="Torsten Rehn",
author_email="torsten@rehn.email",
license="GPLv3",
url="https://github.com/trehn/... | 1,204 | Python | .py | 44 | 20.613636 | 75 | 0.57377 | trehn/termdown | 1,343 | 113 | 29 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,204 | termdown.py | trehn_termdown/termdown.py | #!/usr/bin/env python
VERSION = "1.18.0"
import curses
from datetime import datetime, timedelta
from functools import wraps
from math import ceil
from queue import Empty, Queue
import re
import os
from os.path import abspath, dirname
from subprocess import DEVNULL, Popen, STDOUT
from sys import exit, stderr, stdout
fr... | 32,238 | Python | .py | 769 | 29.009103 | 110 | 0.52561 | trehn/termdown | 1,343 | 113 | 29 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,205 | latest-wired-python3-lyu.pyw | drcoms_drcom-generic/latest-wired-python3-lyu.pyw | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
import struct
import time
from hashlib import md5
import sys
import os
import random
import binascii
# CONFIG
server = '192.168.2.5'
username = '2018123456'#临沂大学登陆账号(学生是学号)
password = '123456'#密码(学生是身份证后六位默认)
CONTROLCHECKSTATUS = b'\x20'
A... | 16,444 | Python | .py | 442 | 29.18552 | 120 | 0.566806 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,206 | latest-pppoe.py | drcoms_drcom-generic/latest-pppoe.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
import struct
import time
import sys
import random
import os
import hashlib
from array import array
from string import join
from struct import pack, unpack
# CONFIG
server = '172.30.1.80'
pppoe_flag = '\x2a'
keep_alive2_flag = '\xdc'
# CONFIG_END
host_ip = ... | 14,011 | Python | .py | 406 | 26.248768 | 102 | 0.510981 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,207 | drcom_p_config.py | drcoms_drcom-generic/drcom_p_config.py | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 03 23:45:49 2014
@author: latyas
"""
from binascii import hexlify
import re
def hexed(s):
ret = ''
for i in s:
ret += '\\x' + hex(ord(i))[2:].rjust(2, '0')
return ret
filename = 'drp.pcapng'
f = open(filename, 'rb')
text = f.read()
offset = re.searc... | 728 | Python | .py | 22 | 31 | 83 | 0.638177 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,208 | latest-pppoe-python3.py | drcoms_drcom-generic/latest-pppoe-python3.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import socket
import struct
import time
import sys
import random
import os
import hashlib
import binascii
# CONFIG
server = '172.30.1.80'
pppoe_flag = b'\x2a'
keep_alive2_flag = b'\xdc'
# CONFIG_END
host_ip = server
IS_TEST = True
CONF = "/etc/drcom.conf"
DEBUG = False #... | 10,426 | Python | .py | 306 | 25.660131 | 95 | 0.534229 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,209 | latest-wired.py | drcoms_drcom-generic/latest-wired.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
import struct
import time
import hashlib
import sys
import os
import random
import traceback
# CONFIG
server = "192.168.100.150"
username = ""
password = ""
host_name = "LIYUANYUAN"
host_os = "8089D"
host_ip = "10.30.22.17"
PRIMARY_DNS = "114.114.114.114"
dh... | 18,049 | Python | .py | 533 | 26.125704 | 119 | 0.558368 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,210 | latest-wired-python3.py | drcoms_drcom-generic/latest-wired-python3.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
import struct
import time
from hashlib import md5
import sys
import os
import random
import binascii
# CONFIG
server = "192.168.100.150"
username = ""
password = ""
host_name = "LIYUANYUAN"
host_os = "8089D"
host_ip = "10.30.22.17"
PRIMARY_DNS = "114.114.114... | 15,765 | Python | .py | 441 | 28.981859 | 119 | 0.582312 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,211 | drcom_d_config.py | drcoms_drcom-generic/drcom_d_config.py | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 03 23:45:49 2014
Last Modified: 2016/10/19 12:13
@author: latyas
"""
from binascii import hexlify
import re
def hexed(s):
ret = ''
for i in s:
ret += '\\x' + hex(ord(i))[2:].rjust(2, '0')
return ret
filename = '3.pcapng'
f = open(filename, 'rb')
text... | 1,889 | Python | .py | 46 | 39.217391 | 125 | 0.643478 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,212 | drcom_d_云南师范大学商学院(杨林校区).py | drcoms_drcom-generic/custom/drcom_d_云南师范大学商学院(杨林校区).py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
import struct
import time
from hashlib import md5
import sys
import os
import random
# CONFIG
server = '172.26.0.2'
username = '151xxxxx'
password = '123456'
CONTROLCHECKSTATUS = '\x20'
ADAPTERNUM = '\x04'
host_ip ... | 16,074 | Python | .py | 460 | 27.191304 | 119 | 0.560409 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,213 | drcom_d_广东财经大学.py | drcoms_drcom-generic/custom/drcom_d_广东财经大学.py | #coding=UTF-8
#test version
import socket, struct, time,random,re
from hashlib import md5
#config
server = '58.62.247.115'
username=''
password=''
CONTROLCHECKSTATUS = '\x20'
ADAPTERNUM = '\x04'
host_ip = '172.31.37.194'
IPDOG = '\x01'
host_name = 'DRCOMFUCKER'
PRIMARY_DNS = '202.96.128.166'
dhcp_server = '222.202.1... | 10,118 | Python | .py | 303 | 27.079208 | 111 | 0.582352 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,214 | haue_drcom.py | drcoms_drcom-generic/custom/haue_drcom.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
import struct
import time
import hashlib
import sys
import os
import random
import traceback
# CONFIG
server = "10.27.100.5"
username = "" #账号
password = "" #密码
host_name = "" #自定
host_os = "OSX" #自定
host_ip = "" #获取到的ip
PRIMARY_DNS = "114.114.114.114"
dhcp_... | 18,093 | Python | .py | 533 | 26.148218 | 119 | 0.558156 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,215 | 湖南信息职业技术学院_d.py | drcoms_drcom-generic/custom/湖南信息职业技术学院_d.py | #coding=UTF-8
#test version
#Licensed under the AGPLv3
#thx all authors before
import socket, struct, time,random,re
from hashlib import md5
#config
server = '172.17.0.253'
username=''
password=''
CONTROLCHECKSTATUS = '\x20'
ADAPTERNUM = '\x03'
host_ip = '10.24.1.39'
IPDOG = '\x01'
host_name = 'DRCOMFUCKER'
PRIMARY... | 10,445 | Python | .py | 324 | 26.938272 | 108 | 0.598241 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,216 | haust_drcom.py | drcoms_drcom-generic/custom/haust_drcom.py |
import socket
import struct
import time
from hashlib import md5
import sys
import os
import random
import binascii
# CONFIG
server = '210.43.0.195'
username='15××××'#学号
password='****'#密码
CONTROLCHECKSTATUS = b'\x20'
ADAPTERNUM = b'\x03'
host_ip = '172.20.63.77'
IPDOG = b'\x01'
host_name = 'GILIGILIEYE'
PRIMARY_DNS ... | 15,747 | Python | .py | 439 | 29.041002 | 119 | 0.582249 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,217 | drcom-generic-debug-u62.py | drcoms_drcom-generic/custom/drcom-generic-debug-u62.py | # 1.Please edit this file in editors which supports UNIX files if you are in Windows OS
# 2.tested pass in v0.8 u62R0
# 3.edit basic configuration first.
# 4.if you can use it to access Internet stablely, contacting administrators.
# else contacting administrators with drcom_client.log
import socket, struct, time
fr... | 10,663 | Python | .py | 302 | 28.751656 | 106 | 0.578809 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,218 | Drcom_CQU_HuxiCampus.py | drcoms_drcom-generic/custom/Drcom_CQU_HuxiCampus.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
import struct
import time
import hashlib
import sys
import os
import random
import traceback
# CONFIG
server = "10.10.8.162"
username = "2018xxxx"
password = "xxxxxx"
host_name = "GILIGILIEYE"
host_os = "NOTE7"
host_ip = "10.230.59.251"
PRIMARY_DNS = "202.20... | 18,063 | Python | .py | 533 | 26.15197 | 119 | 0.558722 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,219 | 长沙联通.py | drcoms_drcom-generic/custom/长沙联通.py | # This version has passed the test.
import socket, struct, time
from hashlib import md5
import sys
import os
class ChallengeException (Exception):
def __init__(self):
pass
class LoginException (Exception):
def __init__(self):
pass
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.bind(("0.0.0.0"... | 10,260 | Python | .py | 297 | 27.912458 | 106 | 0.572817 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,220 | heau-drcom.py | drcoms_drcom-generic/custom/heau-drcom.py | # 1.Please edit this file in editors which supports UNIX files if you are in Windows OS
# 2.tested pass in v0.8 u62R0
# 3.edit basic configuration first.
# 4.if you can use it to access Internet stablely, contacting administrators.
# else contacting administrators with drcom_client.log
import socket, struct, time
fr... | 10,605 | Python | .py | 300 | 28.776667 | 106 | 0.579483 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,221 | bistu_drcom_d.py | drcoms_drcom-generic/custom/bistu_drcom_d.py | #coding=UTF-8
#test version
#Licensed under the AGPLv3
#thx all authors before
#此版本适配北京信息科技大学
import socket, struct, time,random,re
from hashlib import md5
#config
server = '192.168.211.3'
username='' #学号
password='' #密码
CONTROLCHECKSTATUS = '\x20'
ADAPTERNUM = '\x02'
host_ip = '' #dhcp到的ip地址
IPDO... | 10,813 | Python | .py | 324 | 26.716049 | 107 | 0.575075 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,222 | drcom_d_云南师范大学商学院(海源校区).py | drcoms_drcom-generic/custom/drcom_d_云南师范大学商学院(海源校区).py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
import struct
import time
from hashlib import md5
import sys
import os
import random
# CONFIG
server = '192.168.0.2'
username = '151xxxxx'
password = '123456'
CONTROLCHECKSTATUS = '\x20'
ADAPTERNUM = '\x03'
host_ip ... | 16,076 | Python | .py | 460 | 27.195652 | 119 | 0.560466 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,223 | ynudcc_dr.py | drcoms_drcom-generic/custom/ynudcc_dr.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
import struct
import time
import hashlib
import sys
import os
import random
import traceback
# CONFIG
server = '192.168.1.252'
username='20152123017'
password='199711'
CONTROLCHECKSTATUS = '\x20'
ADAPTERNUM = '\x04'
host_ip = '10.114.10.67'
IPDOG = '\x01'
ho... | 17,963 | Python | .py | 528 | 26.234848 | 119 | 0.557804 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,224 | drcom_d_广西工业职业技术学院(武鸣三校区).py | drcoms_drcom-generic/custom/drcom_d_广西工业职业技术学院(武鸣三校区).py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
import struct
import time
import hashlib
import sys
import os
import random
import traceback
# CONFIG
server = '172.18.0.2'
username = '*@unicom' # 宽带账号+@运营商(19级以前一般是准考证号,19级以后一般是学号)
password = '******' # 宽带密码(一般是身份证后六位)
CONTROLCHECKSTATUS = '\x20'
ADAPTERNU... | 18,166 | Python | .py | 528 | 26.407197 | 119 | 0.55799 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,225 | drcom_d_中国民航大学.py | drcoms_drcom-generic/custom/drcom_d_中国民航大学.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket, struct, time
from hashlib import md5
import sys
import os
import random
# CONFIG
server = "192.168.100.251"
username = "
password = "
host_ip = "10.5.155.177"
host_name = "fuyumi"
host_os = "Windows 8.1"
dhcp_server = "0.0.0.0"
mac = 0xb63d020c60fd
CONTROLCH... | 11,298 | Python | .py | 343 | 26.6793 | 106 | 0.574437 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,226 | drcom_for_dlnu_520(x).py | drcoms_drcom-generic/custom/drcom_for_dlnu_520(x).py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket, struct, time
from hashlib import md5
import sys
import os
import random
# CONFIG
server = '172.16.192.111'
username=''
password=''
CONTROLCHECKSTATUS = '\x00'
ADAPTERNUM = '\x00'
host_ip = '0.210.30.0'
IPDOG = '\x00'
host_name = 'DRCOMFUCKER'
PRIMARY_DNS = '... | 12,107 | Python | .py | 350 | 27.565714 | 106 | 0.563604 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,227 | Drcom_LYU.py | drcoms_drcom-generic/custom/Drcom_LYU.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
import struct
import time
from hashlib import md5
import sys
import os
import random
import binascii
# CONFIG
server = '192.168.2.5'
username = '2018123456'#临沂大学登陆账号(学生是学号)
password = '123456'#密码(学生是身份证后六位默认)
CONTROLCHECKSTATUS = b'\x20'
ADAPTERNUM = b'\x08... | 15,958 | Python | .py | 442 | 29.18552 | 119 | 0.583095 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,228 | drcom_d_version.py | drcoms_drcom-generic/custom/drcom_d_version.py | #coding=UTF-8
#test version
#Licensed under the GPL
#thx all authors before
import socket, struct, time,sys,urllib2,random,re,uuid
from hashlib import md5
#config
server = '10.1.1.10'
username=''
password=''
CONTROLCHECKSTATUS = '\x20'
ADAPTERNUM = '\x03'
host_ip = '10.50.23.19'
IPDOG = '\x01'
host_name = 'DRCOMFUC... | 9,994 | Python | .py | 310 | 26.822581 | 106 | 0.5972 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,229 | Drcom_SWUPL.py | drcoms_drcom-generic/custom/Drcom_SWUPL.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Code Adapted for SouthWest University of Political Science and Law,2016-11-3
# Modify the 3 lines commented with chinese below
# Run as root user if error occours
# The Client is (D) version
# Tested under Ubuntu 16.10 64-bit,have fun~
import socket, struct, time
from h... | 12,356 | Python | .py | 357 | 27.708683 | 114 | 0.565629 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,230 | drcom_d_gxnuedu.py | drcoms_drcom-generic/custom/drcom_d_gxnuedu.py | #coding=UTF-8
#test version
import socket, struct, time,random,re
from hashlib import md5
#config
server = '192.168.125.13'
username='填上你的学号@cuc'#联通电信移动分别是cuc,cmc,ctc
password='学号密码'
CONTROLCHECKSTATUS = '\x20'
ADAPTERNUM = '\x01'
host_ip = '路由器的IP'
IPDOG = '\x01'
host_name = 'DRCOMFUCKER'
PRIMARY_DNS = '202.193.16... | 9,870 | Python | .py | 303 | 27.019802 | 108 | 0.60293 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,231 | drcom_d_衡水学院.py | drcoms_drcom-generic/custom/drcom_d_衡水学院.py | #coding=UTF-8
#适用于衡水学院校园网,已通过测试
#在下面需要输入帐号信息的地方输入账号等信息
#有问题请联系littledongdong@foxmail.com
#最后编辑时间:2017-2-22 10:14:51
#by Dong
import socket, struct, time,random,re
from hashlib import md5
#config
server = '192.168.114.11'
username=''#引号内输入校园网账号(学号)
password=''#引号内输入校园网密码
CONTROLCHECKSTATUS = '\x20'
ADAPTERNUM = '\x04... | 10,126 | Python | .py | 307 | 27.042345 | 108 | 0.605895 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,232 | drcom_BISTU.py | drcoms_drcom-generic/custom/drcom_BISTU.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#https://raw.githubusercontent.com/drcoms/drcom-generic/master/latest-wired.py
#感谢学长的配置文件
import socket
import struct
import time
import hashlib
import sys
import os
import random
import traceback
# CONFIG
server = "192.168.211.3"
username = ""
password = ""
host_name = "... | 18,158 | Python | .py | 535 | 26.194393 | 119 | 0.559813 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,233 | 长沙保险职业学院_u6x.py | drcoms_drcom-generic/custom/长沙保险职业学院_u6x.py | #coding=UTF-8
#test version
#Licensed under the GPL
#thx all authors before
import socket, struct, time,sys,urllib2,random,re,uuid
from hashlib import md5
#config
server = '119.39.32.154'
username=''
password=''
CONTROLCHECKSTATUS = '\x20'
ADAPTERNUM = '\x01'
host_ip = '1.1.1.1'
IPDOG = '\x01'
host_name = 'DRCOMFUC... | 10,550 | Python | .py | 326 | 27.082822 | 108 | 0.599565 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,234 | drcom_d_hnist.py | drcoms_drcom-generic/custom/drcom_d_hnist.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
import struct
import time
import hashlib
import sys
import os
import random
import traceback
# 中国联通 d版
# CONFIG
server = '172.19.253.2'
username='xxxx@hnlg'
password='xxxx'
CONTROLCHECKSTATUS = '\x20'
ADAPTERNUM = '\x06'
host_ip = '10.107.20.174'
IPDOG = '\... | 17,977 | Python | .py | 529 | 26.187146 | 119 | 0.557535 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,235 | Drcom_CQU.py | drcoms_drcom-generic/custom/Drcom_CQU.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#history:
# 1.Please edit this file in editors which supports UNIX files if you are using Windows OS
# 2.tests passed on v0.8 u62R0
# 3.edit basic configuration first.
# 4.Code adapted for ChongQing University Dr.com Client && Server
# --By GY
#Date: 2015.07.01
#Au... | 14,774 | Python | .py | 369 | 29.634146 | 92 | 0.591389 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,236 | database_passcode.py | drcoms_drcom-generic/utils/database_passcode.py | #!/usr/bin/python
# Copyright (c) 2015 Ice Weng # May 23
# Copyright (c) 2016 Artoria2e5 # refactor, changes released under CC0
"""DRCOM db passcode obfuscation utils."""
import sys
try:
raw_input
except:
raw_input = input # py3
codearray = [28, 57, 86, 19, 47, 76, 9, 38, 66, 95, 28, 57, 86, 18, 47, 76]
d... | 1,533 | Python | .py | 40 | 32.075 | 79 | 0.56393 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,237 | pppoe_heartbeat_analysis.py | drcoms_drcom-generic/tests/pppoe_heartbeat_analysis.py | #coding=utf8
from binascii import hexlify, crc32
import re
import struct
import md4
class PPPOEHeartbeat:
def __init__(self, num):
self.count = num # 计数器
def _make_challenge(self):
data = '\x07'
data += chr(self.count)
data += '\x08\x00\x01\x00'
data+= '\x00\x00'
return data
def _encrypt_md4(self, dat... | 4,605 | Python | .py | 167 | 23.095808 | 90 | 0.615885 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,238 | fake_svr.py | drcoms_drcom-generic/tests/fake_svr.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
import re
# CONFIG
server = '192.168.1.14'
username = 'a'
password = 'a'
host_name = 'LIYUANYUAN'
host_os = '8089D'
host_ip = '10.30.22.17'
PRIMARY_DNS = '114.114.114.114'
dhcp_server = '0.0.0.0'
mac = 0xb888e3051680
CONTROLCHECKSTATUS = '\x20'
ADAPTERNUM = '... | 4,936 | Python | .py | 89 | 49.640449 | 694 | 0.658743 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,239 | latest-wired-python3-lyu.pyw | drcoms_drcom-generic/latest-wired-python3-lyu.pyw | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
import struct
import time
from hashlib import md5
import sys
import os
import random
import binascii
# CONFIG
server = '192.168.2.5'
username = '2018123456'#临沂大学登陆账号(学生是学号)
password = '123456'#密码(学生是身份证后六位默认)
CONTROLCHECKSTATUS = b'\x20'
A... | 16,444 | Python | .pyt | 442 | 29.18552 | 120 | 0.566806 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,240 | latest-pppoe-python3.py | drcoms_drcom-generic/latest-pppoe-python3.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import socket
import struct
import time
import sys
import random
import os
import hashlib
import binascii
# CONFIG
server = '172.30.1.80'
pppoe_flag = b'\x2a'
keep_alive2_flag = b'\xdc'
# CONFIG_END
host_ip = server
IS_TEST = True
CONF = "/etc/drcom.conf"
DEBUG = False #... | 10,426 | Python | .pyt | 306 | 25.660131 | 95 | 0.534229 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,241 | latest-wired-python3.py | drcoms_drcom-generic/latest-wired-python3.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
import struct
import time
from hashlib import md5
import sys
import os
import random
import binascii
# CONFIG
server = "192.168.100.150"
username = ""
password = ""
host_name = "LIYUANYUAN"
host_os = "8089D"
host_ip = "10.30.22.17"
PRIMARY_DNS = "114.114.114... | 15,765 | Python | .pyt | 441 | 28.981859 | 119 | 0.582312 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,242 | latest-wired-python3-lyu.pyw | drcoms_drcom-generic/latest-wired-python3-lyu.pyw | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
import struct
import time
from hashlib import md5
import sys
import os
import random
import binascii
# CONFIG
server = '192.168.2.5'
username = '2018123456'#临沂大学登陆账号(学生是学号)
password = '123456'#密码(学生是身份证后六位默认)
CONTROLCHECKSTATUS = b'\x20'
A... | 16,444 | Python | .pyw | 442 | 29.18552 | 120 | 0.566806 | drcoms/drcom-generic | 1,127 | 266 | 46 | AGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,243 | .pydevproject | phimpme_phimpme-generator/Phimpme/.pydevproject | <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?eclipse-pydev version="1.0"?><pydev_project>
<pydev_variables_property name="org.python.pydev.PROJECT_VARIABLE_SUBSTITUTION">
<key>DJANGO_MANAGE_LOCATION</key>
<value>manage.py</value>
</pydev_variables_property>
<pydev_pathproperty name="org.python.pydev.PROJECT... | 591 | Python | .py | 12 | 48.25 | 91 | 0.780656 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,244 | manage.py | phimpme_phimpme-generator/Phimpme/manage.py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Phimpme.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| 241 | Python | .py | 7 | 32.571429 | 68 | 0.766234 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,245 | settings.py | phimpme_phimpme-generator/Phimpme/Phimpme/settings.py | """
Django settingsfor Phimpme project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
imp... | 4,350 | Python | .py | 123 | 33.731707 | 85 | 0.748926 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,246 | urls.py | phimpme_phimpme-generator/Phimpme/Phimpme/urls.py | from django.conf.urls import patterns, include, url
from django.contrib import admin
import Phimpme
from Phimpme.apps.usermgt import urls
from Phimpme.apps.orders import urls
from Phimpme.apps.defray import urls
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'Phimpme.views.home', name... | 682 | Python | .py | 17 | 37.235294 | 64 | 0.714502 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,247 | wsgi.py | phimpme_phimpme-generator/Phimpme/Phimpme/wsgi.py | """
WSGI config for Phimpme project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Phimpme.settings")
from django.core.w... | 389 | Python | .py | 10 | 37.5 | 78 | 0.802667 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,248 | models.py | phimpme_phimpme-generator/Phimpme/Phimpme/apps/defray/models.py | #!/usr/bin/env python
# coding:utf-8
from django.db import models
# Create your models here.
| 95 | Python | .py | 4 | 22.25 | 28 | 0.775281 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,249 | urls.py | phimpme_phimpme-generator/Phimpme/Phimpme/apps/defray/urls.py | #!/usr/bin/env python
# coding:utf-8
from django.conf.urls import patterns, include, url
from django.contrib import admin
from Phimpme.apps.defray.views import *
from Phimpme.apps import defray
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'Phimpme.views.home', name='home'),
# url(r'^blog/', includ... | 411 | Python | .py | 13 | 28.846154 | 52 | 0.688608 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,250 | admin.py | phimpme_phimpme-generator/Phimpme/Phimpme/apps/defray/admin.py | #!/usr/bin/env python
# coding:utf-8
from django.contrib import admin
# Register your models here.
| 102 | Python | .py | 4 | 23.75 | 32 | 0.789474 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,251 | views.py | phimpme_phimpme-generator/Phimpme/Phimpme/apps/defray/views.py | #!/usr/bin/env python
# coding:utf-8
from django.shortcuts import render, render_to_response
from django.http.response import HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.http.response import HttpResponse
from django import forms
from Phimpme.apps.orders.models import order
from Phimp... | 5,982 | Python | .py | 139 | 31.028777 | 138 | 0.553817 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,252 | models.py | phimpme_phimpme-generator/Phimpme/Phimpme/apps/orders/models.py | #!/usr/bin/env python
# coding:utf-8
from django.db import models
from django.contrib.auth.models import User
from Phimpme.settings import OUTPUT_PATH
class order(models.Model):
"orders' records"
order_related_user = models.ForeignKey(User)
order_status = models.IntegerField(default=0)
order_created_time = mode... | 974 | Python | .py | 21 | 44.285714 | 100 | 0.798942 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,253 | urls.py | phimpme_phimpme-generator/Phimpme/Phimpme/apps/orders/urls.py | #!/usr/bin/env python
# coding:utf-8
from django.conf.urls import patterns, url
from Phimpme.apps.orders.views import *
urlpatterns = patterns('',
url(r'^order/', orders_preordering),
url(r'^review/', orders_review),
url(r'^history/', order_operation_switch)
)
| 276 | Python | .py | 9 | 28 | 45 | 0.719697 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,254 | admin.py | phimpme_phimpme-generator/Phimpme/Phimpme/apps/orders/admin.py | #!/usr/bin/env python
# coding:utf-8
from django.contrib import admin
from Phimpme.apps.orders.models import order
# Register your models here.
class orderAdmin(admin.ModelAdmin):
"""
"""
list_display = ('id', 'order_related_user', 'order_values', 'order_appname', 'order_created_time', 'order_features')
... | 394 | Python | .py | 11 | 33.272727 | 120 | 0.746032 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,255 | views.py | phimpme_phimpme-generator/Phimpme/Phimpme/apps/orders/views.py | #!/usr/bin/env python
# coding:utf-8
import datetime
from django.shortcuts import render_to_response, render
from django.template import Template, Context
from django.http.response import HttpResponseRedirect
from django.http.response import HttpResponse
from django.http import Http404
from django import forms
from dja... | 7,614 | Python | .py | 206 | 33.228155 | 111 | 0.688558 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,256 | models.py | phimpme_phimpme-generator/Phimpme/Phimpme/apps/usermgt/models.py | #!/usr/bin/env python
# coding:utf-8
from django.db import models
from django.contrib.auth.models import User
class passwd_regain(models.Model):
user = models.ForeignKey(User)
date = models.DateTimeField(auto_now_add=True)
active_key = models.CharField(max_length=256) | 282 | Python | .py | 8 | 32.625 | 50 | 0.772894 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,257 | urls.py | phimpme_phimpme-generator/Phimpme/Phimpme/apps/usermgt/urls.py | #!/usr/bin/env python
# coding:utf-8
'''
Created on 2014年6月28日
@author: tony
'''
from django.conf.urls import patterns, include, url
from Phimpme import settings
from Phimpme.apps.usermgt.views import *
urlpatterns = patterns('',
url(r'^login/', usermgt_login),
url(r'^register/', usermgt_register),
url(r'... | 485 | Python | .py | 17 | 25.588235 | 51 | 0.712418 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,258 | admin.py | phimpme_phimpme-generator/Phimpme/Phimpme/apps/usermgt/admin.py | from django.contrib import admin
from Phimpme.apps.usermgt.models import passwd_regain
# Register your models here.
admin.site.register(passwd_regain) | 155 | Python | .py | 4 | 36.75 | 53 | 0.85034 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,259 | views.py | phimpme_phimpme-generator/Phimpme/Phimpme/apps/usermgt/views.py | #!/usr/bin/env python
# coding:utf-8
import thread
import random
import datetime
import time
from django.contrib.auth import authenticate, login, logout
from django.shortcuts import render_to_response, render
from django.http.response import HttpResponse
from django.contrib.auth.models import User
from django.contrib.... | 7,942 | Python | .py | 181 | 34.18232 | 134 | 0.603439 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,260 | models.py | phimpme_phimpme-generator/Phimpme/Phimpme/apps/appshop/models.py | #!/usr/bin/env python
# coding:utf-8
import thread
import os
from django.db import models
from django.contrib.auth.decorators import login_required
from Phimpme.apps.orders.models import order
# Create your models here.
class appshop_paramters(models.Model):
key_name = models.CharField(max_length=256)
value = mode... | 1,500 | Python | .py | 54 | 25.296296 | 118 | 0.73431 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,261 | gen_script.py | phimpme_phimpme-generator/Phimpme/Phimpme/apps/appshop/gen_script.py | #!/usr/bin/env python
# The prototype of Phimpme Generator
# To test it, simply run this file
# The output APK will be put in the working directory
import os
import re
import shutil
import stat
import sys
def set_name(path, app_name):
re_str = r'<string name="app_name">.*</string>'
target_str = r'<string name="ap... | 4,983 | Python | .py | 103 | 45.902913 | 118 | 0.728077 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,262 | admin.py | phimpme_phimpme-generator/Phimpme/Phimpme/apps/appshop/admin.py | #!/usr/bin/env python
# coding:utf-8
from django.contrib import admin
from Phimpme.apps.appshop.models import appshop_paramters
# Register your models here.
class appshopAdmin(admin.ModelAdmin):
"""
"""
list_display = ('id', 'key_name', 'value')
# add appshop_paramters model to adminsystem
admin.site.r... | 362 | Python | .py | 11 | 30.272727 | 57 | 0.765217 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,263 | sh.py | phimpme_phimpme-generator/Phimpme/site-packages/sh.py | #===============================================================================
# Copyright (C) 2011-2012 by Andrew Moffat
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restricti... | 60,983 | Python | .py | 1,349 | 34.870274 | 114 | 0.59644 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,264 | mock.py | phimpme_phimpme-generator/Phimpme/site-packages/mock.py | # mock.py
# Test tools for mocking and patching.
# Copyright (C) 2007-2012 Michael Foord & the mock team
# E-mail: fuzzyman AT voidspace DOT org DOT uk
# mock 1.0
# http://www.voidspace.org.uk/python/mock/
# Released subject to the BSD License
# Please see http://www.voidspace.org.uk/python/license.shtml
# Scripts m... | 75,527 | Python | .py | 1,872 | 31.060897 | 86 | 0.594792 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,265 | six.py | phimpme_phimpme-generator/Phimpme/site-packages/six.py | """Utilities for writing code that runs on Python 2 and 3"""
# Copyright (c) 2010-2014 Benjamin Peterson
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including with... | 22,857 | Python | .py | 515 | 37.879612 | 183 | 0.651429 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,266 | docopt.py | phimpme_phimpme-generator/Phimpme/site-packages/docopt.py | """Pythonic command-line interface parser that will make you smile.
* http://docopt.org
* Repository and issue-tracker: https://github.com/docopt/docopt
* Licensed under terms of MIT license (see LICENSE-MIT)
* Copyright (c) 2013 Vladimir Keleshev, vladimir@keleshev.com
"""
import sys
import re
__all__ = ['doco... | 19,946 | Python | .py | 478 | 32.474895 | 79 | 0.569732 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,267 | util.py | phimpme_phimpme-generator/Phimpme/site-packages/paypalrestsdk/util.py | import re
try:
from urllib.parse import urlencode
except ImportError:
from urllib import urlencode
def join_url(url, *paths):
"""
Joins individual URL strings together, and returns a single string.
Usage::
>>> util.join_url("example.com", "index.html")
'example.com/index.html'
... | 1,155 | Python | .py | 34 | 28.323529 | 96 | 0.620036 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,268 | vault.py | phimpme_phimpme-generator/Phimpme/site-packages/paypalrestsdk/vault.py | from paypalrestsdk.resource import Find, Create, Delete
class CreditCard(Find, Create, Delete):
"""Use vault api to avoid having to store sensitive information
such as credit card related details on your server. API docs at
https://developer.paypal.com/docs/api/#vault
Usage::
>>> credit_card... | 589 | Python | .py | 12 | 43.583333 | 74 | 0.705779 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,269 | api.py | phimpme_phimpme-generator/Phimpme/site-packages/paypalrestsdk/api.py | from __future__ import division
import base64
import datetime
import requests
import json
import logging
import os
import platform
import paypalrestsdk.util as util
from paypalrestsdk import exceptions
from paypalrestsdk.version import __version__
class Api(object):
# User-Agent for HTTP request
library_de... | 11,073 | Python | .py | 215 | 41.888372 | 197 | 0.630395 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,270 | invoices.py | phimpme_phimpme-generator/Phimpme/site-packages/paypalrestsdk/invoices.py | import paypalrestsdk.util as util
from paypalrestsdk.resource import List, Find, Delete, Create, Update, Post, Resource
from paypalrestsdk.api import default as default_api
class Invoice(List, Find, Create, Delete, Update, Post):
"""Invoice class wrapping the REST v1/invoices/invoice endpoint
Usage::
... | 1,077 | Python | .py | 25 | 36.96 | 85 | 0.672115 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,271 | openid_connect.py | phimpme_phimpme-generator/Phimpme/site-packages/paypalrestsdk/openid_connect.py | from paypalrestsdk.resource import Resource
import paypalrestsdk.util as util
import paypalrestsdk.api as api
from paypalrestsdk.version import __version__
from six import string_types
class Base(Resource):
user_agent = "PayPalSDK/openid-connect-python %s (%s)" % (__version__, api.Api.library_details)
@clas... | 4,101 | Python | .py | 96 | 35.697917 | 99 | 0.653895 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,272 | payments.py | phimpme_phimpme-generator/Phimpme/site-packages/paypalrestsdk/payments.py | from paypalrestsdk.resource import List, Find, Create, Post, Update, Replace, Resource
from paypalrestsdk.api import default as default_api
import paypalrestsdk.util as util
from paypalrestsdk import exceptions
class Payment(List, Find, Create, Post):
"""Payment class wrapping the REST v1/payments/payment endpoin... | 5,642 | Python | .py | 116 | 42.5 | 101 | 0.694698 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,273 | __init__.py | phimpme_phimpme-generator/Phimpme/site-packages/paypalrestsdk/__init__.py | from paypalrestsdk.api import Api, set_config, configure
from paypalrestsdk.payments import Payment, Sale, Refund, Authorization, Capture, BillingPlan, BillingAgreement
from paypalrestsdk.invoices import Invoice
from paypalrestsdk.vault import CreditCard
from paypalrestsdk.openid_connect import Tokeninfo, Userinfo
from... | 451 | Python | .py | 7 | 63.428571 | 111 | 0.873874 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,274 | resource.py | phimpme_phimpme-generator/Phimpme/site-packages/paypalrestsdk/resource.py | import uuid
import paypalrestsdk.util as util
from paypalrestsdk.api import default as default_api
class Resource(object):
"""Base class for all REST services
"""
convert_resources = {}
def __init__(self, attributes=None, api=None):
attributes = attributes or {}
self.__dict__['api'] ... | 6,859 | Python | .py | 177 | 29.338983 | 102 | 0.578653 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,275 | exceptions.py | phimpme_phimpme-generator/Phimpme/site-packages/paypalrestsdk/exceptions.py |
class ConnectionError(Exception):
def __init__(self, response, content=None, message=None):
self.response = response
self.content = content
self.message = message
def __str__(self):
message = "Failed."
if hasattr(self.response, 'status_code'):
message += " R... | 1,813 | Python | .py | 67 | 21.268657 | 76 | 0.638905 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,276 | codeunit.py | phimpme_phimpme-generator/Phimpme/site-packages/coverage/codeunit.py | """Code unit (module) handling for Coverage."""
import glob, os
from coverage.backward import open_source, string_class, StringIO
from coverage.misc import CoverageException
def code_unit_factory(morfs, file_locator):
"""Construct a list of CodeUnits from polymorphic inputs.
`morfs` is a module or a filena... | 4,487 | Python | .py | 113 | 30.99115 | 79 | 0.596039 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,277 | xmlreport.py | phimpme_phimpme-generator/Phimpme/site-packages/coverage/xmlreport.py | """XML reporting for coverage.py"""
import os, sys, time
import xml.dom.minidom
from coverage import __url__, __version__
from coverage.backward import sorted, rpartition # pylint: disable=W0622
from coverage.report import Reporter
def rate(hit, num):
"""Return the fraction of `hit`/`num`, as a string."""
... | 5,809 | Python | .py | 121 | 37.636364 | 79 | 0.609834 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,278 | __main__.py | phimpme_phimpme-generator/Phimpme/site-packages/coverage/__main__.py | """Coverage.py's main entry point."""
import sys
from coverage.cmdline import main
sys.exit(main())
| 100 | Python | .py | 4 | 24 | 37 | 0.770833 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,279 | config.py | phimpme_phimpme-generator/Phimpme/site-packages/coverage/config.py | """Config file for coverage.py"""
import os, re, sys
from coverage.backward import string_class, iitems
# In py3, # ConfigParser was renamed to the more-standard configparser
try:
import configparser # pylint: disable=F0401
except ImportError:
import ConfigParser as configparser
... | 7,099 | Python | .py | 171 | 32.666667 | 79 | 0.57871 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,280 | annotate.py | phimpme_phimpme-generator/Phimpme/site-packages/coverage/annotate.py | """Source file annotation for Coverage."""
import os, re
from coverage.backward import sorted # pylint: disable=W0622
from coverage.report import Reporter
class AnnotateReporter(Reporter):
"""Generate annotated source files showing line coverage.
This reporter creates annotated copies of ... | 3,097 | Python | .py | 83 | 26.542169 | 79 | 0.517195 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,281 | bytecode.py | phimpme_phimpme-generator/Phimpme/site-packages/coverage/bytecode.py | """Bytecode manipulation for coverage.py"""
import opcode, types
from coverage.backward import byte_to_int
class ByteCode(object):
"""A single bytecode."""
def __init__(self):
# The offset of this bytecode in the code object.
self.offset = -1
# The opcode, defined in the `opcode` mod... | 2,036 | Python | .py | 56 | 26.232143 | 77 | 0.550739 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,282 | execfile.py | phimpme_phimpme-generator/Phimpme/site-packages/coverage/execfile.py | """Execute files of Python code."""
import imp, marshal, os, sys
from coverage.backward import exec_code_object, open_source
from coverage.misc import ExceptionDuringRun, NoCode, NoSource
try:
# In Py 2.x, the builtins were in __builtin__
BUILTINS = sys.modules['__builtin__']
except KeyError:
# In Py 3.... | 5,865 | Python | .py | 140 | 33.242857 | 79 | 0.600632 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,283 | report.py | phimpme_phimpme-generator/Phimpme/site-packages/coverage/report.py | """Reporter foundation for Coverage."""
import fnmatch, os
from coverage.codeunit import code_unit_factory
from coverage.files import prep_patterns
from coverage.misc import CoverageException, NoSource, NotPython
class Reporter(object):
"""A base class for all reporters."""
def __init__(self, coverage, confi... | 3,031 | Python | .py | 71 | 31.084507 | 78 | 0.589316 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,284 | cmdline.py | phimpme_phimpme-generator/Phimpme/site-packages/coverage/cmdline.py | """Command-line support for Coverage."""
import optparse, os, sys, time, traceback
from coverage.backward import sorted # pylint: disable=W0622
from coverage.execfile import run_python_file, run_python_module
from coverage.misc import CoverageException, ExceptionDuringRun, NoSource
from coverage.debug ... | 25,136 | Python | .py | 639 | 29.422535 | 79 | 0.570966 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,285 | summary.py | phimpme_phimpme-generator/Phimpme/site-packages/coverage/summary.py | """Summary reporting"""
import sys
from coverage.report import Reporter
from coverage.results import Numbers
from coverage.misc import NotPython
class SummaryReporter(Reporter):
"""A reporter for writing the summary report."""
def __init__(self, coverage, config):
super(SummaryReporter, self).__ini... | 2,972 | Python | .py | 71 | 30.056338 | 77 | 0.531532 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,286 | collector.py | phimpme_phimpme-generator/Phimpme/site-packages/coverage/collector.py | """Raw data collector for Coverage."""
import os, sys, threading
try:
# Use the C extension code when we can, for speed.
from coverage.tracer import CTracer # pylint: disable=F0401,E0611
except ImportError:
# Couldn't import the C extension, maybe it isn't built.
if os.getenv('COVERAGE_TEST_TR... | 13,412 | Python | .py | 297 | 34.919192 | 79 | 0.603645 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,287 | results.py | phimpme_phimpme-generator/Phimpme/site-packages/coverage/results.py | """Results of coverage measurement."""
import os
from coverage.backward import iitems, set, sorted # pylint: disable=W0622
from coverage.misc import format_lines, join_regex, NoSource
from coverage.parser import CodeParser
class Analysis(object):
"""The results of analyzing a code unit."""
def __init... | 10,005 | Python | .py | 235 | 32.574468 | 79 | 0.594403 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,288 | __init__.py | phimpme_phimpme-generator/Phimpme/site-packages/coverage/__init__.py | """Code coverage measurement for Python.
Ned Batchelder
http://nedbatchelder.com/code/coverage
"""
from coverage.version import __version__, __url__
from coverage.control import coverage, process_startup
from coverage.data import CoverageData
from coverage.cmdline import main, CoverageScript
from coverage.misc impo... | 4,505 | Python | .py | 98 | 43.030612 | 79 | 0.754618 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,289 | html.py | phimpme_phimpme-generator/Phimpme/site-packages/coverage/html.py | """HTML reporting for Coverage."""
import os, re, shutil, sys
import coverage
from coverage.backward import pickle
from coverage.misc import CoverageException, Hasher
from coverage.phystokens import source_token_lines, source_encoding
from coverage.report import Reporter
from coverage.results import Numbers
from cove... | 13,097 | Python | .py | 324 | 29.87963 | 79 | 0.560113 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,290 | debug.py | phimpme_phimpme-generator/Phimpme/site-packages/coverage/debug.py | """Control of and utilities for debugging."""
import os
# When debugging, it can be helpful to force some options, especially when
# debugging the configuration mechanisms you usually use to control debugging!
# This is a list of forced debugging options.
FORCED_DEBUG = []
class DebugControl(object):
"""Contro... | 1,706 | Python | .py | 41 | 33.95122 | 78 | 0.606538 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,291 | control.py | phimpme_phimpme-generator/Phimpme/site-packages/coverage/control.py | """Core control stuff for Coverage."""
import atexit, os, random, socket, sys
from coverage.annotate import AnnotateReporter
from coverage.backward import string_class, iitems, sorted # pylint: disable=W0622
from coverage.codeunit import code_unit_factory, CodeUnit
from coverage.collector import Collector
from cover... | 29,646 | Python | .py | 625 | 36.6224 | 83 | 0.611667 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,292 | templite.py | phimpme_phimpme-generator/Phimpme/site-packages/coverage/templite.py | """A simple Python template renderer, for a nano-subset of Django syntax."""
# Coincidentally named the same as http://code.activestate.com/recipes/496702/
import re
from coverage.backward import set # pylint: disable=W0622
class CodeBuilder(object):
"""Build source code conveniently."""
... | 6,868 | Python | .py | 167 | 29.221557 | 79 | 0.51967 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,293 | parser.py | phimpme_phimpme-generator/Phimpme/site-packages/coverage/parser.py | """Code parsing for Coverage."""
import dis, re, sys, token, tokenize
from coverage.backward import set, sorted, StringIO # pylint: disable=W0622
from coverage.backward import open_source, range # pylint: disable=W0622
from coverage.backward import reversed # pylint: disable=W0622
from coverage.backwa... | 25,684 | Python | .py | 571 | 32.770578 | 94 | 0.565242 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,294 | phystokens.py | phimpme_phimpme-generator/Phimpme/site-packages/coverage/phystokens.py | """Better tokenizing for coverage.py."""
import codecs, keyword, re, sys, token, tokenize
from coverage.backward import set # pylint: disable=W0622
from coverage.parser import generate_tokens
def phys_tokens(toks):
"""Return all physical tokens, even line continuations.
tokenize.genera... | 7,401 | Python | .py | 176 | 31.176136 | 79 | 0.556946 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,295 | backward.py | phimpme_phimpme-generator/Phimpme/site-packages/coverage/backward.py | """Add things to old Pythons so I can pretend they are newer."""
# This file does lots of tricky stuff, so disable a bunch of lintisms.
# pylint: disable=F0401,W0611,W0622
# F0401: Unable to import blah
# W0611: Unused import blah
# W0622: Redefining built-in blah
import os, re, sys
# Python 2.3 doesn't have `set`
t... | 5,187 | Python | .py | 159 | 26.660377 | 78 | 0.629422 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,296 | misc.py | phimpme_phimpme-generator/Phimpme/site-packages/coverage/misc.py | """Miscellaneous stuff for Coverage."""
import errno
import inspect
import os
import sys
from coverage.backward import md5, sorted # pylint: disable=W0622
from coverage.backward import string_class, to_bytes
def nice_pair(pair):
"""Make a nice string representation of a pair of numbers.
If the number... | 4,376 | Python | .py | 132 | 25.734848 | 79 | 0.590164 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,297 | files.py | phimpme_phimpme-generator/Phimpme/site-packages/coverage/files.py | """File wrangling."""
from coverage.backward import to_string
from coverage.misc import CoverageException
import fnmatch, os, os.path, re, sys
import ntpath, posixpath
class FileLocator(object):
"""Understand how filenames work."""
def __init__(self):
# The absolute path to our current directory.
... | 10,724 | Python | .py | 247 | 33.48583 | 79 | 0.602112 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,298 | version.py | phimpme_phimpme-generator/Phimpme/site-packages/coverage/version.py | """The version and URL for coverage.py"""
# This file is exec'ed in setup.py, don't import anything!
__version__ = "3.7.1" # see detailed history in CHANGES.txt
__url__ = "http://nedbatchelder.com/code/coverage"
if max(__version__).isalpha():
# For pre-releases, use a version-specific URL.
_... | 348 | Python | .py | 7 | 47.285714 | 77 | 0.625369 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,299 | data.py | phimpme_phimpme-generator/Phimpme/site-packages/coverage/data.py | """Coverage data for Coverage."""
import os
from coverage.backward import iitems, pickle, sorted # pylint: disable=W0622
from coverage.files import PathAliases
from coverage.misc import file_be_gone
class CoverageData(object):
"""Manages collected coverage data, including file storage.
The data file for... | 9,188 | Python | .py | 218 | 32.091743 | 79 | 0.57486 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |