index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
53,697
alex14324/Eagel
refs/heads/main
/plugins/spider.py
from utils.status import * from .helper import Plugin,utils from urllib.parse import urlparse from utils.decorators import OnErrorReturnValue from bs4 import BeautifulSoup import re import urllib.parse import utils.multitask as multitask class Spider(Plugin): def __init__(self): self.name = "Sense...
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,698
alex14324/Eagel
refs/heads/main
/plugins/cve-2019-5418.py
from utils.status import * from .helper import Plugin,utils class CVE_2019_5418(Plugin): def __init__(self): self.name = "Ruby on Rails LFI - CVE_2019_5418" self.enable = True self.description = "" def presquites(self, host): if utils.isalive( utils.uri(host) ): ...
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,699
alex14324/Eagel
refs/heads/main
/utils/wrappers.py
import requests import hashlib import requests.packages.urllib3 requests.packages.urllib3.disable_warnings() class Requests(object): def __init__(self): self.cache = {} self.enable = True def token(self,method,*args,**kwargs): if "url" in kwargs.keys(): url = kwargs["url"]....
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,700
alex14324/Eagel
refs/heads/main
/plugins/ftp.py
from utils.status import * from .helper import Plugin,utils from utils.decorators import OnErrorReturnValue import ftplib import socket class FTP(Plugin): def __init__(self): self.name = "Anonymous FTP " self.enable = True self.description = "" def presquites(self, host): ...
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,701
alex14324/Eagel
refs/heads/main
/main.py
import os import sys from base64 import b64encode from utils.db import JsonDB from utils.status import * import utils.multitask as multitask import utils.console as console targets = [x.strip() for x in open(console.args.file,"r").readlines() if x.strip()] dir_target = os.path.dirname(os.path.realpath(console.args.fi...
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,702
alex14324/Eagel
refs/heads/main
/plugins/traversal.py
from utils.status import * from .helper import Plugin,utils class PathTraveral(Plugin): def __init__(self): self.name = "Path Traveral" self.enable = True self.description = "" def presquites(self, host): if utils.isalive( utils.uri(host) ): return True ...
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,703
alex14324/Eagel
refs/heads/main
/plugins/cve-2018-11776.py
from utils.status import * from .helper import Plugin,utils class CVE_2018_11776(Plugin): def __init__(self): self.name = "Struts RCE - CVE_2018_11776" self.enable = True self.description = "" def presquites(self, host): if utils.isalive( utils.uri(host) ): ...
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,704
alex14324/Eagel
refs/heads/main
/plugins/cve-2019-2725.py
from utils.status import * from .helper import Plugin,utils class CVE_2019_2725(Plugin): def __init__(self): self.name = "WebLogic RCE - CVE_2019_2725" self.enable = True self.description = "" def presquites(self, host): if utils.isalive( utils.uri(host) ): ...
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,705
alex14324/Eagel
refs/heads/main
/plugins/cve-2019-8451.py
from utils.status import * from .helper import Plugin,utils class CVE_2019_8451(Plugin): def __init__(self): self.name = "Atlassian SSRF - CVE_2019_8451" self.enable = True self.description = "" def presquites(self, host): if utils.isalive( utils.uri(host) ): ...
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,706
alex14324/Eagel
refs/heads/main
/plugins/spf.py
from utils.status import * from .helper import Plugin,utils class SPF(Plugin): def __init__(self): self.name = "SPF Record" self.enable = True self.description = "" def presquites(self, host): return True def main(self,host): request = utils.requests.po...
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,707
alex14324/Eagel
refs/heads/main
/plugins/firebase.py
from utils.status import * from .helper import Plugin,utils from urllib.parse import urlparse import tldextract class FireBase(Plugin): def __init__(self): self.name = "Firebase" self.enable = True self.description = "" def presquites(self, host): return True d...
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,708
alex14324/Eagel
refs/heads/main
/utils/data.py
import zlib import base64 import threading def compress(data): if not data: return '' data = zlib.compress(data,9) return base64.b64encode(data).decode('utf8') def decompress(data): if not data: return '' data = base64.b64decode(data.encode('utf8')) return zlib.decompress(data) savelock = thr...
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,709
alex14324/Eagel
refs/heads/main
/plugins/s3.py
from utils.decorators import OnErrorReturnValue from botocore.handlers import disable_signing from botocore.config import Config from .helper import Plugin,utils from botocore import UNSIGNED from utils.status import * from io import StringIO import threading import boto3 import re class S3Security(Plugin): def _...
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,710
alex14324/Eagel
refs/heads/main
/utils/decorators.py
def OnErrorReturnValue(value): def decorator(function): def wrapper(*args, **kwargs): try: result = function(*args, **kwargs) return result except Exception as e: #print(e) return value return wrapper return...
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,711
alex14324/Eagel
refs/heads/main
/plugins/plugin.py
from utils.status import * from .helper import Plugin class MyPlugin(Plugin): def __init__(self): self.name = "Example Plugin" self.enable = False self.description = "" def presquites(self, host): return True def main(self,host): return Result(SUCCESS,...
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,712
alex14324/Eagel
refs/heads/main
/utils/db.py
import json import os import sys import threading class JsonDB(): def __init__(self,name): if not os.path.isfile(name): open(name,"w").write("{}") self.data = json.loads(open(name,'r').read()) self.__lock = threading.Lock() self.__name = name def save(self): with self._...
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,713
alex14324/Eagel
refs/heads/main
/plugins/subtakeover.py
from utils.status import * from .helper import Plugin,utils from dns import resolver import json import sys class TakeOver(Plugin): def __init__(self): self.name = "Subdomain Takeover" self.enable = True self.description = "" self.fingerprints = json.loads( open(sys.p...
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,714
alex14324/Eagel
refs/heads/main
/scripts/ping.py
from utils.status import * from utils.console import args import utils.multitask as multitask import utils import os def pinger(host): if utils.isalive(utils.uri(host)): return Result(SUCCESS,utils.uri(host),None,None) return Result(FAILED,utils.uri(host),None,None) def ping(hosts,silent=None): ...
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,715
alex14324/Eagel
refs/heads/main
/plugins/helper.py
import utils class __PluginsManager(object): def __init__(self): self.loaded = [] def load(self,instance): self.loaded.append(instance) def unload(self,instance): self.loaded.remove(instance) class Plugin: pass loader = __PluginsManager()
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,716
alex14324/Eagel
refs/heads/main
/plugins/sumggler.py
from urllib.parse import urlparse from base64 import b64encode from .helper import Plugin from utils.status import * import utils.multitask as multitask import utils.data as data import threading import socket import utils import json import time import ssl MAX_EXCEPTION = 10 MAX_VULNERABLE = 5 t_base_headers = { ...
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,717
alex14324/Eagel
refs/heads/main
/utils/urls.py
from .wrappers import wRequests as requests from .decorators import OnErrorReturnValue from urllib.parse import urlparse,urlunparse import dns.resolver alive_cache = {} def isalive(url): url = sanitize(url) if url in alive_cache.keys(): return alive_cache[url] try: status = bool( requests...
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,718
alex14324/Eagel
refs/heads/main
/utils/console.py
from .status import * import datetime import argparse import sys import re from threading import Lock lock = Lock() banner_str = """ .---. .----------- / \ __ / ------ / / \( )/ ----- ////// ' \/ ` --- Multipurpose vulnerability scanner //// / // : : --- v1....
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,719
alex14324/Eagel
refs/heads/main
/plugins/cve-2012-1823.py
from utils.status import * from .helper import Plugin,utils class CVE_2012_1823(Plugin): def __init__(self): self.name = "PHP-CGI - CVE_2012_1823" self.enable = True self.description = "" def presquites(self, host): if utils.isalive( utils.uri(host) ): r...
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,720
alex14324/Eagel
refs/heads/main
/utils/status.py
from collections import namedtuple from colorama import Fore from colorama import init ERROR = 0 SUCCESS = 1 FAILED = 2 WARNING = 3 UNKNOWN = 4 INFO = 5 LOG = 6 s2s = { ERROR: 'error', SUCCESS: 'success', FAILED: 'failed', WARNING: 'warning', UNKNOWN: 'unknown', INFO: 'info', ...
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,721
alex14324/Eagel
refs/heads/main
/plugins/__init__.py
from .helper import loader from glob import glob import importlib import os def main(): for plugin in glob("plugins/*.py"): path = plugin.replace("/",".").replace("\\",".").replace(".py",".")[:-1] plugin = os.path.basename(plugin).replace(".py","") if plugin in ["helper","__init__"]: co...
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,722
alex14324/Eagel
refs/heads/main
/plugins/cve-2019-10098.py
from utils.status import * from .helper import Plugin,utils class CVE_2019_10098(Plugin): def __init__(self): self.name = "Apache Httpd mod_rewrite - CVE_2019_10098" self.enable = True self.description = "" def presquites(self, host): if utils.isalive( utils.uri(hos...
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,723
alex14324/Eagel
refs/heads/main
/plugins/cve-2014-6271.py
from utils.status import * from .helper import Plugin,utils class CVE_2014_6271(Plugin): def __init__(self): self.name = "Shell Shock - CVE_2014_6271" self.enable = True self.description = "" def presquites(self, host): if utils.isalive( utils.uri(host) ): ...
{"/plugins/files.py": ["/utils/status.py", "/plugins/helper.py", "/utils/multitask.py"], "/plugins/cve-2019-3396.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/crlf.py": ["/utils/status.py", "/plugins/helper.py"], "/plugins/spider.py": ["/utils/status.py", "/plugins/helper.py", "/utils/decorators.py", "/uti...
53,724
yomthegrappler/ReviewerTest
refs/heads/master
/Test/test_main.py
import pytest from Utility.constant import Constant from Utility.excel_mgmt import ExcelExec from Utility.module_mapping import DriverMapping import time @pytest.mark.usefixtures("setup") class TestMainExec: @pytest.fixture(autouse=True) def initial_setup(self, setup): self.constant = Constant() ...
{"/Test/test_main.py": ["/Utility/constant.py", "/Utility/excel_mgmt.py", "/Utility/module_mapping.py"], "/Utility/excel_mgmt.py": ["/Utility/constant.py"], "/Driver/webdriver_factory.py": ["/Utility/constant.py"], "/Utility/module_mapping.py": ["/Driver/selenium_webdriver.py"]}
53,725
yomthegrappler/ReviewerTest
refs/heads/master
/Utility/excel_mgmt.py
import openpyxl from Utility.constant import Constant class ExcelExec: def __init__(self): self.constant = Constant() self.work_book = openpyxl.load_workbook(self.constant.Path_Excel) def get_sheet_name(self, sheet_name): sheet = self.work_book[sheet_name] return sheet de...
{"/Test/test_main.py": ["/Utility/constant.py", "/Utility/excel_mgmt.py", "/Utility/module_mapping.py"], "/Utility/excel_mgmt.py": ["/Utility/constant.py"], "/Driver/webdriver_factory.py": ["/Utility/constant.py"], "/Utility/module_mapping.py": ["/Driver/selenium_webdriver.py"]}
53,726
yomthegrappler/ReviewerTest
refs/heads/master
/Driver/webdriver_factory.py
from selenium import webdriver from Utility.constant import Constant class GetWebdriverInstance: def __init__(self, browser): self.browser = browser.lower() self.constant = Constant() def getbrowserInstance(self): if self.browser == 'chrome': driverLocation = self.constan...
{"/Test/test_main.py": ["/Utility/constant.py", "/Utility/excel_mgmt.py", "/Utility/module_mapping.py"], "/Utility/excel_mgmt.py": ["/Utility/constant.py"], "/Driver/webdriver_factory.py": ["/Utility/constant.py"], "/Utility/module_mapping.py": ["/Driver/selenium_webdriver.py"]}
53,727
yomthegrappler/ReviewerTest
refs/heads/master
/Utility/constant.py
class Constant: Path_Chrome_Driver = "E:\\chromedriver.exe" Path_Firefox_Driver = "E:\\geckodriver.exe" Path_Excel = "E:\\ReviewerPytest\\reviewer.xlsx" Sheetname_Module = "Test Module" Sheetname_Scenario = "Test Collection" Sheetname_Objects = "Test Objects" Test_Module_ID_Col_1 = 1 T...
{"/Test/test_main.py": ["/Utility/constant.py", "/Utility/excel_mgmt.py", "/Utility/module_mapping.py"], "/Utility/excel_mgmt.py": ["/Utility/constant.py"], "/Driver/webdriver_factory.py": ["/Utility/constant.py"], "/Utility/module_mapping.py": ["/Driver/selenium_webdriver.py"]}
53,728
yomthegrappler/ReviewerTest
refs/heads/master
/Driver/selenium_webdriver.py
from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import time class SeleniumDriver: def __init__(self, driver): self.driver = driver def navigate(self, data): self.driver.get(data...
{"/Test/test_main.py": ["/Utility/constant.py", "/Utility/excel_mgmt.py", "/Utility/module_mapping.py"], "/Utility/excel_mgmt.py": ["/Utility/constant.py"], "/Driver/webdriver_factory.py": ["/Utility/constant.py"], "/Utility/module_mapping.py": ["/Driver/selenium_webdriver.py"]}
53,729
yomthegrappler/ReviewerTest
refs/heads/master
/Utility/module_mapping.py
from Driver.selenium_webdriver import SeleniumDriver class DriverMapping(SeleniumDriver): def execute_keyword(self, keyword, value, objectname): if keyword == 'navigate': result = None result = self.navigate(value) return result elif keyword == 'input': ...
{"/Test/test_main.py": ["/Utility/constant.py", "/Utility/excel_mgmt.py", "/Utility/module_mapping.py"], "/Utility/excel_mgmt.py": ["/Utility/constant.py"], "/Driver/webdriver_factory.py": ["/Utility/constant.py"], "/Utility/module_mapping.py": ["/Driver/selenium_webdriver.py"]}
53,944
asmodehn/celeros
refs/heads/master
/celeros/bootsteps/batterywatcher.py
#!/usr/bin/env python import sys import os import logging import multiprocessing import pyros import kombu from celery import Celery, bootsteps from celery.platforms import signals as _signals from celery.utils.log import get_logger from celery.utils.functional import maybe_list _logger = get_logger(__name__) # TO...
{"/celeros/app.py": ["/celeros/bootsteps/__init__.py", "/celeros/__init__.py"], "/celeros/rostasks.py": ["/celeros/app.py"], "/celeros/__init__.py": ["/celeros/rosperiodictasks.py", "/celeros/scheduler.py", "/celeros/app.py"], "/celeros/customlogger.py": ["/celeros/__init__.py"], "/celeros/bootsteps/__init__.py": ["/ce...
53,945
asmodehn/celeros
refs/heads/master
/tests/celeros/testceleros.py
#!/usr/bin/env python import logging import unittest import sys import os import time # Unit test import try: import rostest import rospy import roslaunch from std_msgs.msg import String, Empty from std_srvs.srv import Trigger, TriggerResponse from pyros_setup import rostest_nose except ImportE...
{"/celeros/app.py": ["/celeros/bootsteps/__init__.py", "/celeros/__init__.py"], "/celeros/rostasks.py": ["/celeros/app.py"], "/celeros/__init__.py": ["/celeros/rosperiodictasks.py", "/celeros/scheduler.py", "/celeros/app.py"], "/celeros/customlogger.py": ["/celeros/__init__.py"], "/celeros/bootsteps/__init__.py": ["/ce...
53,946
asmodehn/celeros
refs/heads/master
/celeros/app.py
from __future__ import absolute_import import time import datetime import random from celery import Celery from celery.bin import Option from celery.result import AsyncResult from .bootsteps import PyrosBoot, BatteryWatcher # REQUIRED, to have celerybeatredis subpackage loaded by celery beat... from . import celeryb...
{"/celeros/app.py": ["/celeros/bootsteps/__init__.py", "/celeros/__init__.py"], "/celeros/rostasks.py": ["/celeros/app.py"], "/celeros/__init__.py": ["/celeros/rosperiodictasks.py", "/celeros/scheduler.py", "/celeros/app.py"], "/celeros/customlogger.py": ["/celeros/__init__.py"], "/celeros/bootsteps/__init__.py": ["/ce...
53,947
asmodehn/celeros
refs/heads/master
/celeros/rostasks.py
import os import socket import time import datetime from .app import celeros_app from celery import Task, states from celery.contrib.abortable import AbortableTask from celery.utils.log import get_task_logger _logger = get_task_logger(__name__) # TODO : fancy task decorators and behaviors for ROS-style tasks # ht...
{"/celeros/app.py": ["/celeros/bootsteps/__init__.py", "/celeros/__init__.py"], "/celeros/rostasks.py": ["/celeros/app.py"], "/celeros/__init__.py": ["/celeros/rosperiodictasks.py", "/celeros/scheduler.py", "/celeros/app.py"], "/celeros/customlogger.py": ["/celeros/__init__.py"], "/celeros/bootsteps/__init__.py": ["/ce...
53,948
asmodehn/celeros
refs/heads/master
/celeros/__init__.py
from __future__ import absolute_import # This monkey patch celery from . import customlogger from .rosperiodictasks import PeriodicTask from .scheduler import RedisScheduler, RedisScheduleEntry from .celerybeatredis import DateTimeEncoder, DateTimeDecoder from .app import celeros_app from celery.task.control import ...
{"/celeros/app.py": ["/celeros/bootsteps/__init__.py", "/celeros/__init__.py"], "/celeros/rostasks.py": ["/celeros/app.py"], "/celeros/__init__.py": ["/celeros/rosperiodictasks.py", "/celeros/scheduler.py", "/celeros/app.py"], "/celeros/customlogger.py": ["/celeros/__init__.py"], "/celeros/bootsteps/__init__.py": ["/ce...
53,949
asmodehn/celeros
refs/heads/master
/celeros/customlogger.py
# Ref : http://loose-bits.com/2010/12/celery-logging-with-python-logging.html # TODO : probably a better solution if we can setup handlers before starting celery worker # While telling celery not to hijack existing root logger import logging import celery.app.log from celery.app.log import ColorFormatter from . impor...
{"/celeros/app.py": ["/celeros/bootsteps/__init__.py", "/celeros/__init__.py"], "/celeros/rostasks.py": ["/celeros/app.py"], "/celeros/__init__.py": ["/celeros/rosperiodictasks.py", "/celeros/scheduler.py", "/celeros/app.py"], "/celeros/customlogger.py": ["/celeros/__init__.py"], "/celeros/bootsteps/__init__.py": ["/ce...
53,950
asmodehn/celeros
refs/heads/master
/celeros/flowerconfig.py
import ast import json from flower.utils.template import humanize # Enable debug logging logging = 'DEBUG' # This should parse and change to json the args and kwargs # TODO : doesnt seem to do anything. fix it ! def format_task(task): print (task) task.args = json.dumps(task.args) task.kwargs = json.dum...
{"/celeros/app.py": ["/celeros/bootsteps/__init__.py", "/celeros/__init__.py"], "/celeros/rostasks.py": ["/celeros/app.py"], "/celeros/__init__.py": ["/celeros/rosperiodictasks.py", "/celeros/scheduler.py", "/celeros/app.py"], "/celeros/customlogger.py": ["/celeros/__init__.py"], "/celeros/bootsteps/__init__.py": ["/ce...
53,951
asmodehn/celeros
refs/heads/master
/examples/src/turtlecmd_ui.py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'turtlecmd.ui' # # Created: Wed Sep 30 14:12:29 2015 # by: PyQt4 UI code generator 4.10.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except Attr...
{"/celeros/app.py": ["/celeros/bootsteps/__init__.py", "/celeros/__init__.py"], "/celeros/rostasks.py": ["/celeros/app.py"], "/celeros/__init__.py": ["/celeros/rosperiodictasks.py", "/celeros/scheduler.py", "/celeros/app.py"], "/celeros/customlogger.py": ["/celeros/__init__.py"], "/celeros/bootsteps/__init__.py": ["/ce...
53,952
asmodehn/celeros
refs/heads/master
/examples/src/turtle_ui.py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'turtle.ui' # # Created: Wed Sep 30 14:12:15 2015 # by: PyQt4 UI code generator 4.10.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except Attribu...
{"/celeros/app.py": ["/celeros/bootsteps/__init__.py", "/celeros/__init__.py"], "/celeros/rostasks.py": ["/celeros/app.py"], "/celeros/__init__.py": ["/celeros/rosperiodictasks.py", "/celeros/scheduler.py", "/celeros/app.py"], "/celeros/customlogger.py": ["/celeros/__init__.py"], "/celeros/bootsteps/__init__.py": ["/ce...
53,953
asmodehn/celeros
refs/heads/master
/celeros/config.py
# # sample celeros configuration. # this file can be overloaded and passed as argument to change the celeros configuration # # TODO : move to a cleaner way to do configuration ( probably after mutating into up a pure python package ) import logging import logging.handlers import os from kombu import Queue # # These ...
{"/celeros/app.py": ["/celeros/bootsteps/__init__.py", "/celeros/__init__.py"], "/celeros/rostasks.py": ["/celeros/app.py"], "/celeros/__init__.py": ["/celeros/rosperiodictasks.py", "/celeros/scheduler.py", "/celeros/app.py"], "/celeros/customlogger.py": ["/celeros/__init__.py"], "/celeros/bootsteps/__init__.py": ["/ce...
53,954
asmodehn/celeros
refs/heads/master
/celeros/bootsteps/__init__.py
from __future__ import absolute_import from .pyrosboot import PyrosBoot from .batterywatcher import BatteryWatcher __all__ = [ 'PyrosBoot', 'BatteryWatcher', ]
{"/celeros/app.py": ["/celeros/bootsteps/__init__.py", "/celeros/__init__.py"], "/celeros/rostasks.py": ["/celeros/app.py"], "/celeros/__init__.py": ["/celeros/rosperiodictasks.py", "/celeros/scheduler.py", "/celeros/app.py"], "/celeros/customlogger.py": ["/celeros/__init__.py"], "/celeros/bootsteps/__init__.py": ["/ce...
53,955
asmodehn/celeros
refs/heads/master
/celeros/__main__.py
#!/usr/bin/python # All ways to run celeros # should be defined here for consistency from __future__ import absolute_import import os import sys import click import errno import celery import celery.bin.worker # logging configuration should be here to not be imported by users of celeros. # only used from command line...
{"/celeros/app.py": ["/celeros/bootsteps/__init__.py", "/celeros/__init__.py"], "/celeros/rostasks.py": ["/celeros/app.py"], "/celeros/__init__.py": ["/celeros/rosperiodictasks.py", "/celeros/scheduler.py", "/celeros/app.py"], "/celeros/customlogger.py": ["/celeros/__init__.py"], "/celeros/bootsteps/__init__.py": ["/ce...
53,956
asmodehn/celeros
refs/heads/master
/celeros/bootsteps/pyrosconsumer.py
#!/usr/bin/env python import sys import os import logging import multiprocessing from celery import Celery, bootsteps from kombu import Consumer, Queue from celery.platforms import signals as _signals from celery.utils.log import get_logger logger = get_logger(__name__) # If We need more than a CustomerStep class...
{"/celeros/app.py": ["/celeros/bootsteps/__init__.py", "/celeros/__init__.py"], "/celeros/rostasks.py": ["/celeros/app.py"], "/celeros/__init__.py": ["/celeros/rosperiodictasks.py", "/celeros/scheduler.py", "/celeros/app.py"], "/celeros/customlogger.py": ["/celeros/__init__.py"], "/celeros/bootsteps/__init__.py": ["/ce...
53,957
asmodehn/celeros
refs/heads/master
/celeros/rosperiodictasks.py
from __future__ import absolute_import # The only way that works to import package content based on file structure # instead of parent package content, which is not loaded when extending celery. from .celerybeatredis import PeriodicTask as celerybeatredis_PeriodicTask class PeriodicTask(celerybeatredis_PeriodicTask)...
{"/celeros/app.py": ["/celeros/bootsteps/__init__.py", "/celeros/__init__.py"], "/celeros/rostasks.py": ["/celeros/app.py"], "/celeros/__init__.py": ["/celeros/rosperiodictasks.py", "/celeros/scheduler.py", "/celeros/app.py"], "/celeros/customlogger.py": ["/celeros/__init__.py"], "/celeros/bootsteps/__init__.py": ["/ce...
53,958
asmodehn/celeros
refs/heads/master
/examples/src/turtlecommand.py
from __future__ import absolute_import import sys from PyQt4 import QtCore, QtGui from turtle_ui import Ui_Form from turtlecmd_ui import Ui_MainWindow try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: def _fromUtf8(s): return s try: _encoding = QtGui.QApplication.UnicodeUTF8 de...
{"/celeros/app.py": ["/celeros/bootsteps/__init__.py", "/celeros/__init__.py"], "/celeros/rostasks.py": ["/celeros/app.py"], "/celeros/__init__.py": ["/celeros/rosperiodictasks.py", "/celeros/scheduler.py", "/celeros/app.py"], "/celeros/customlogger.py": ["/celeros/__init__.py"], "/celeros/bootsteps/__init__.py": ["/ce...
53,959
asmodehn/celeros
refs/heads/master
/examples/src/turtletasks.py
from __future__ import absolute_import import time import random from celeros import celeros_app import rospy import rostful_node from celery import states from celery.contrib.abortable import AbortableTask from celery.exceptions import Ignore, Reject from celery.utils.log import get_task_logger _logger = get_task_...
{"/celeros/app.py": ["/celeros/bootsteps/__init__.py", "/celeros/__init__.py"], "/celeros/rostasks.py": ["/celeros/app.py"], "/celeros/__init__.py": ["/celeros/rosperiodictasks.py", "/celeros/scheduler.py", "/celeros/app.py"], "/celeros/customlogger.py": ["/celeros/__init__.py"], "/celeros/bootsteps/__init__.py": ["/ce...
53,960
asmodehn/celeros
refs/heads/master
/celeros/scheduler.py
from __future__ import absolute_import from celery.utils.log import get_logger import pyros logger = get_logger(__name__) # The only way that works to import package content based on file structure # instead of parent package content, which is not loaded when extending celery. from .celerybeatredis import RedisSch...
{"/celeros/app.py": ["/celeros/bootsteps/__init__.py", "/celeros/__init__.py"], "/celeros/rostasks.py": ["/celeros/app.py"], "/celeros/__init__.py": ["/celeros/rosperiodictasks.py", "/celeros/scheduler.py", "/celeros/app.py"], "/celeros/customlogger.py": ["/celeros/__init__.py"], "/celeros/bootsteps/__init__.py": ["/ce...
53,961
asmodehn/celeros
refs/heads/master
/celeros/config_simulation.py
# # sample celeros configuration. # this file can be overloaded and passed as argument to change the celeros configuration # # TODO : move to a cleaner way to do configuration ( probably after mutating into up a pure python package ) from kombu import Queue from .config import * # We only override what is different ...
{"/celeros/app.py": ["/celeros/bootsteps/__init__.py", "/celeros/__init__.py"], "/celeros/rostasks.py": ["/celeros/app.py"], "/celeros/__init__.py": ["/celeros/rosperiodictasks.py", "/celeros/scheduler.py", "/celeros/app.py"], "/celeros/customlogger.py": ["/celeros/__init__.py"], "/celeros/bootsteps/__init__.py": ["/ce...
53,962
asmodehn/celeros
refs/heads/master
/setup.py
# This setup is usable by catkin, or on its own as usual python setup.py _CATKIN = False try: from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup _CATKIN = True except Exception as e: from setuptools import setup # CAREFUL distutils and setuptools take differe...
{"/celeros/app.py": ["/celeros/bootsteps/__init__.py", "/celeros/__init__.py"], "/celeros/rostasks.py": ["/celeros/app.py"], "/celeros/__init__.py": ["/celeros/rosperiodictasks.py", "/celeros/scheduler.py", "/celeros/app.py"], "/celeros/customlogger.py": ["/celeros/__init__.py"], "/celeros/bootsteps/__init__.py": ["/ce...
53,963
asmodehn/celeros
refs/heads/master
/celeros/bootsteps/pyrosboot.py
#!/usr/bin/env python import sys import os import logging import multiprocessing from functools import partial import pyros from celery import Celery, bootsteps from celery.platforms import signals as _signals from celery.utils.log import get_logger _logger = get_logger(__name__) # TODO : fix logging : http://doc...
{"/celeros/app.py": ["/celeros/bootsteps/__init__.py", "/celeros/__init__.py"], "/celeros/rostasks.py": ["/celeros/app.py"], "/celeros/__init__.py": ["/celeros/rosperiodictasks.py", "/celeros/scheduler.py", "/celeros/app.py"], "/celeros/customlogger.py": ["/celeros/__init__.py"], "/celeros/bootsteps/__init__.py": ["/ce...
53,973
sanghviyashiitb/GANS-VanillaAndMinibatchDiscrimination
refs/heads/master
/test_minibatch_discrimination.py
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from minibatch_discrimination import MiniBatchDiscrimination BATCH_SIZE = 100 INPUT_DIM = 784 # Instantiate a MiniBatch Discrimination Layer and check output size mbd_test = MiniBatchDiscrimination(128, 64, 50,...
{"/test_minibatch_discrimination.py": ["/minibatch_discrimination.py"]}
53,974
sanghviyashiitb/GANS-VanillaAndMinibatchDiscrimination
refs/heads/master
/vanilla_gan.py
from __future__ import print_function import torch import torchvision import torchvision.transforms as transforms import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import numpy as np import matplotlib.pyplot as plt # Input dimensions for an MNIST image MNIST_W = 28 MNIST_H = 28 MNIST_...
{"/test_minibatch_discrimination.py": ["/minibatch_discrimination.py"]}
53,975
sanghviyashiitb/GANS-VanillaAndMinibatchDiscrimination
refs/heads/master
/minibatch_discrimination.py
import torch import torch.nn as nn from torch.autograd import Variable from torch.nn.parameter import Parameter class MiniBatchDiscrimination(nn.Module): def __init__(self, A, B, C, batch_size): super(MiniBatchDiscrimination, self).__init__() self.feat_num = A self.out_size = B self.row_size = C self.N = b...
{"/test_minibatch_discrimination.py": ["/minibatch_discrimination.py"]}
53,976
fsahbaz/elec491
refs/heads/main
/VLP_methods/tdoa.py
import numpy as np import math """ *: coordinate center of cari |--------| | car1 | |-------*| | y | |---------| | | car2 | |-------------------|*--------| d """ class TDoA: ...
{"/Bound_Estimation/parameter_deviation_calculator.py": ["/Bound_Estimation/matfile_read.py", "/config.py"], "/plot_simulation_data.py": ["/config.py"], "/generate_simulation_data.py": ["/VLP_methods/aoa.py", "/VLP_methods/rtof.py", "/VLP_methods/tdoa.py", "/Bound_Estimation/matfile_read.py", "/config.py"], "/simulatio...
53,977
fsahbaz/elec491
refs/heads/main
/Bound_Estimation/half_crlb_bound_simulator.py
from half_crlb_init import HalfCRLBInit from matfile_read import load_mat import os import pickle import numpy as np # Roberts' method, CRLB calculation for a single position estimation def roberts_half_crlb_single_instance(crlb_inst, tx1, tx2, noise_factor): fim = np.zeros(shape=(2,2)) for param1, param2 in ...
{"/Bound_Estimation/parameter_deviation_calculator.py": ["/Bound_Estimation/matfile_read.py", "/config.py"], "/plot_simulation_data.py": ["/config.py"], "/generate_simulation_data.py": ["/VLP_methods/aoa.py", "/VLP_methods/rtof.py", "/VLP_methods/tdoa.py", "/Bound_Estimation/matfile_read.py", "/config.py"], "/simulatio...
53,978
fsahbaz/elec491
refs/heads/main
/config.py
from yacs.config import CfgNode as CN # Parameters for generate_simulation_data.py gen_sim_data = CN() gen_sim_data.names = CN() # directory names gen_sim_data.names.data_names = ['v2lcRun_sm1_laneChange', 'v2lcRun_sm2_platoonFormExit', 'v2lcRun_sm3_comparisonSoA'] gen_sim_data.names.folder_names = ['1/', '2/', '3/'] ...
{"/Bound_Estimation/parameter_deviation_calculator.py": ["/Bound_Estimation/matfile_read.py", "/config.py"], "/plot_simulation_data.py": ["/config.py"], "/generate_simulation_data.py": ["/VLP_methods/aoa.py", "/VLP_methods/rtof.py", "/VLP_methods/tdoa.py", "/Bound_Estimation/matfile_read.py", "/config.py"], "/simulatio...
53,979
fsahbaz/elec491
refs/heads/main
/Bound_Estimation/half_crlb_init.py
import numpy as np import math class HalfCRLBInit: def __init__(self, L_1, L_2, rx_area, rx_fov, tx_half_angle, c=3e8): """ Contains derivatives that will be used in CRLB calculations from Soner's paper :param L_1: distance between two tx leds :param L_2: distance between two rx d...
{"/Bound_Estimation/parameter_deviation_calculator.py": ["/Bound_Estimation/matfile_read.py", "/config.py"], "/plot_simulation_data.py": ["/config.py"], "/generate_simulation_data.py": ["/VLP_methods/aoa.py", "/VLP_methods/rtof.py", "/VLP_methods/tdoa.py", "/Bound_Estimation/matfile_read.py", "/config.py"], "/simulatio...
53,980
fsahbaz/elec491
refs/heads/main
/Bound_Estimation/crlb_bound_simulator.py
from CRLB_init import * from matfile_read import load_mat import numpy as np from config_est import bound_est_data # Roberts' method, CRLB calculation for a single position estimation def roberts_crlb_single_instance(crlb_obj, tx1, tx2, delays, curr_t, dt_vhc, max_pow, sig_freq, meas_dt, T, i_bg, noise_factors, powers...
{"/Bound_Estimation/parameter_deviation_calculator.py": ["/Bound_Estimation/matfile_read.py", "/config.py"], "/plot_simulation_data.py": ["/config.py"], "/generate_simulation_data.py": ["/VLP_methods/aoa.py", "/VLP_methods/rtof.py", "/VLP_methods/tdoa.py", "/Bound_Estimation/matfile_read.py", "/config.py"], "/simulatio...
53,981
fsahbaz/elec491
refs/heads/main
/Bound_Estimation/parameter_deviation_calculator.py
import pickle import scipy.signal as signal from Bound_Estimation.matfile_read import load_mat import numpy as np from numba import njit import math import os from config import gen_sim_data class TDoA: """ Exact replica of the VLP_methods/tdoa.py with last parts deleted, instead of calculating the position, ...
{"/Bound_Estimation/parameter_deviation_calculator.py": ["/Bound_Estimation/matfile_read.py", "/config.py"], "/plot_simulation_data.py": ["/config.py"], "/generate_simulation_data.py": ["/VLP_methods/aoa.py", "/VLP_methods/rtof.py", "/VLP_methods/tdoa.py", "/Bound_Estimation/matfile_read.py", "/config.py"], "/simulatio...
53,982
fsahbaz/elec491
refs/heads/main
/plot_simulation_data.py
### BS: my virtualenv doesn't have tkinter, so a basic check. ### from: https://stackoverflow.com/questions/1871549/determine-if-python-is-running-inside-virtualenv import sys def get_base_prefix_compat(): """Get base/real prefix, or sys.prefix if there is none.""" return getattr(sys, "base_prefix", None)...
{"/Bound_Estimation/parameter_deviation_calculator.py": ["/Bound_Estimation/matfile_read.py", "/config.py"], "/plot_simulation_data.py": ["/config.py"], "/generate_simulation_data.py": ["/VLP_methods/aoa.py", "/VLP_methods/rtof.py", "/VLP_methods/tdoa.py", "/Bound_Estimation/matfile_read.py", "/config.py"], "/simulatio...
53,983
fsahbaz/elec491
refs/heads/main
/Bound_Estimation/parameter_deviation_data_extractor.py
import os import pickle import numpy as np def deviation_from_actual_value(array): """ Calculates standard deviation for the parameters :param array: either (num_iters, num_points_in_sim, [n] params) or (num_iters, num_points_in_sim, [n*m] params) :return: """ if array.ndim == 3: devia...
{"/Bound_Estimation/parameter_deviation_calculator.py": ["/Bound_Estimation/matfile_read.py", "/config.py"], "/plot_simulation_data.py": ["/config.py"], "/generate_simulation_data.py": ["/VLP_methods/aoa.py", "/VLP_methods/rtof.py", "/VLP_methods/tdoa.py", "/Bound_Estimation/matfile_read.py", "/config.py"], "/simulatio...
53,984
fsahbaz/elec491
refs/heads/main
/Bound_Estimation/config_est.py
from yacs.config import CfgNode as CN from matfile_read import load_mat bound_est_data = CN() # theoretical analysis parameters bound_est_data.params = CN() # points skipped while reading data bound_est_data.params.number_of_skip_data = 10 # noise params bound_est_data.params.T = 298 # Kelvin bound_est_data.params.I_...
{"/Bound_Estimation/parameter_deviation_calculator.py": ["/Bound_Estimation/matfile_read.py", "/config.py"], "/plot_simulation_data.py": ["/config.py"], "/generate_simulation_data.py": ["/VLP_methods/aoa.py", "/VLP_methods/rtof.py", "/VLP_methods/tdoa.py", "/Bound_Estimation/matfile_read.py", "/config.py"], "/simulatio...
53,985
fsahbaz/elec491
refs/heads/main
/generate_simulation_data.py
from VLP_methods.aoa import * from VLP_methods.rtof import * from VLP_methods.tdoa import * from Bound_Estimation.matfile_read import * import numpy as np import matplotlib matplotlib.use('TkAgg') from scipy.io import loadmat import math import os from config import gen_sim_data def main(): # obtain real-life sim...
{"/Bound_Estimation/parameter_deviation_calculator.py": ["/Bound_Estimation/matfile_read.py", "/config.py"], "/plot_simulation_data.py": ["/config.py"], "/generate_simulation_data.py": ["/VLP_methods/aoa.py", "/VLP_methods/rtof.py", "/VLP_methods/tdoa.py", "/Bound_Estimation/matfile_read.py", "/config.py"], "/simulatio...
53,986
fsahbaz/elec491
refs/heads/main
/Bound_Estimation/CRLB_init.py
import math import numpy as np class CRLB_init: """ This class contains the equations and their derivatives for calculation of CRLB bounds for three methods: Robert, Bechadergue, Soner """ def __init__(self, L_1, L_2, rx_area, rx_fov, tx_half_angle, c = 3e8): """ :param L_1: dista...
{"/Bound_Estimation/parameter_deviation_calculator.py": ["/Bound_Estimation/matfile_read.py", "/config.py"], "/plot_simulation_data.py": ["/config.py"], "/generate_simulation_data.py": ["/VLP_methods/aoa.py", "/VLP_methods/rtof.py", "/VLP_methods/tdoa.py", "/Bound_Estimation/matfile_read.py", "/config.py"], "/simulatio...
53,987
fsahbaz/elec491
refs/heads/main
/simulation.py
#!/usr/bin/env python import PySimpleGUI as sg import matplotlib.patches as mpatches import matplotlib.pyplot as plt import numpy as np from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg from matplotlib.offsetbox import OffsetImage, AnnotationBbox from config import sim_data def draw_figure(canvas, figu...
{"/Bound_Estimation/parameter_deviation_calculator.py": ["/Bound_Estimation/matfile_read.py", "/config.py"], "/plot_simulation_data.py": ["/config.py"], "/generate_simulation_data.py": ["/VLP_methods/aoa.py", "/VLP_methods/rtof.py", "/VLP_methods/tdoa.py", "/Bound_Estimation/matfile_read.py", "/config.py"], "/simulatio...
53,988
fsahbaz/elec491
refs/heads/main
/VLP_methods/rtof.py
import scipy.signal as signal import numpy as np from numba import njit import math """ *: coordinate center of cari |--------| | car1 | |-------*| | y | |---------| | | car2 | |-------------------|*-...
{"/Bound_Estimation/parameter_deviation_calculator.py": ["/Bound_Estimation/matfile_read.py", "/config.py"], "/plot_simulation_data.py": ["/config.py"], "/generate_simulation_data.py": ["/VLP_methods/aoa.py", "/VLP_methods/rtof.py", "/VLP_methods/tdoa.py", "/Bound_Estimation/matfile_read.py", "/config.py"], "/simulatio...
53,989
fsahbaz/elec491
refs/heads/main
/Bound_Estimation/matfile_read.py
from mat4py import loadmat from scipy.io import loadmat, matlab import numpy as np def load_mat(filename): """ This function should be called instead of direct scipy.io.loadmat as it cures the problem of not properly recovering python dictionaries from mat files. It calls the function check keys to cu...
{"/Bound_Estimation/parameter_deviation_calculator.py": ["/Bound_Estimation/matfile_read.py", "/config.py"], "/plot_simulation_data.py": ["/config.py"], "/generate_simulation_data.py": ["/VLP_methods/aoa.py", "/VLP_methods/rtof.py", "/VLP_methods/tdoa.py", "/Bound_Estimation/matfile_read.py", "/config.py"], "/simulatio...
53,990
fsahbaz/elec491
refs/heads/main
/Bound_Estimation/plot_theoretical.py
import matplotlib.pyplot as plt import numpy as np from glob import glob from matfile_read import load_mat from config_est import bound_est_data def deviation_from_actual_value(array, actual_val): return np.sqrt(np.mean(abs(array - actual_val) ** 2, axis=0)) def main(): dir = bound_est_data.plot.directory ...
{"/Bound_Estimation/parameter_deviation_calculator.py": ["/Bound_Estimation/matfile_read.py", "/config.py"], "/plot_simulation_data.py": ["/config.py"], "/generate_simulation_data.py": ["/VLP_methods/aoa.py", "/VLP_methods/rtof.py", "/VLP_methods/tdoa.py", "/Bound_Estimation/matfile_read.py", "/config.py"], "/simulatio...
53,991
fsahbaz/elec491
refs/heads/main
/VLP_methods/aoa.py
from Bound_Estimation.matfile_read import load_mat, rec_func import math import numpy as np """ *: coordinate center of cari |--------| | car1 | |-------*| | y | |---------| | | car2 | |---------------...
{"/Bound_Estimation/parameter_deviation_calculator.py": ["/Bound_Estimation/matfile_read.py", "/config.py"], "/plot_simulation_data.py": ["/config.py"], "/generate_simulation_data.py": ["/VLP_methods/aoa.py", "/VLP_methods/rtof.py", "/VLP_methods/tdoa.py", "/Bound_Estimation/matfile_read.py", "/config.py"], "/simulatio...
53,996
YuhanLiin/HtN-2017
refs/heads/master
/test.py
from symbols import Novel print(Novel.generate())
{"/test.py": ["/symbols.py"], "/helpers.py": ["/grammar.py"], "/symbols.py": ["/grammar.py", "/helpers.py"], "/main.py": ["/symbols.py"]}
53,997
YuhanLiin/HtN-2017
refs/heads/master
/helpers.py
from grammar import join def pluralize(word): if word.endswith('ay'): return word + 's' elif word.endswith('s') or word.endswith('ch'): return word + 'es' elif word.endswith('y'): return word[:-1] + 'ies' return word + 's' def pluralize_all(words): return [pluralize(word) f...
{"/test.py": ["/symbols.py"], "/helpers.py": ["/grammar.py"], "/symbols.py": ["/grammar.py", "/helpers.py"], "/main.py": ["/symbols.py"]}
53,998
YuhanLiin/HtN-2017
refs/heads/master
/grammar.py
from random import randint, random from bisect import bisect_left no_op = lambda x:x def join(lis): string = '' for s in lis: if s != '': string += ' ' + s return string[1:] class Many(): def __init__(self, rule, lo, hi): self.rule = rule self.low = lo self...
{"/test.py": ["/symbols.py"], "/helpers.py": ["/grammar.py"], "/symbols.py": ["/grammar.py", "/helpers.py"], "/main.py": ["/symbols.py"]}
53,999
YuhanLiin/HtN-2017
refs/heads/master
/symbols.py
from grammar import Rule, Many, Production, maybe from helpers import pluralize_all, resolve_pronouns, replace_pronouns, replace_you, verbs_to_3rd, deleteIf, \ prevent_collection_repeat, format_quotes from random import random # Declarations Verb, SpeakVerb, Adverb, Noun, Adjective, Name, NamePhrase, Subject3rd, Subje...
{"/test.py": ["/symbols.py"], "/helpers.py": ["/grammar.py"], "/symbols.py": ["/grammar.py", "/helpers.py"], "/main.py": ["/symbols.py"]}
54,000
YuhanLiin/HtN-2017
refs/heads/master
/main.py
from symbols import Novel import os from flask import Flask app = Flask(__name__) dir = os.path.dirname(os.path.realpath(__file__)) @app.route("/") def index(): with open(os.path.join(dir, 'templates', 'index.html')) as html: return html.read() @app.route("/api") def api(): return Novel.generate() ...
{"/test.py": ["/symbols.py"], "/helpers.py": ["/grammar.py"], "/symbols.py": ["/grammar.py", "/helpers.py"], "/main.py": ["/symbols.py"]}
54,001
tylhhh/API_qianchengdai
refs/heads/master
/Common/handle_phone.py
import random from Common.handle_db import HandleDB from Common.handle_requests import send_requests from Common.handle_config import conf prefix = [133, 149, 153, 173, 177, 180, 181, 189, 199, 130, 131, 132, 145, 155, 156, 166, 171, 175, 176, 185, 186, 166, 134, 135, 136, 137, 138, 139, 147, 150, 1...
{"/Common/handle_phone.py": ["/Common/handle_db.py", "/Common/handle_requests.py", "/Common/handle_config.py"], "/Common/handle_db.py": ["/Common/handle_config.py"], "/TestCases/test_withdraw.py": ["/Common/handle_path.py", "/Common/handle_db.py", "/Common/handle_log.py", "/Common/handle_phone.py", "/Common/handle_requ...
54,002
tylhhh/API_qianchengdai
refs/heads/master
/Common/handle_path.py
import os base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # 测试用例路径 cases_dir = os.path.join(base_dir, "TestCases") # 测试数据的路径 datas_dir = os.path.join(base_dir,"TestDatas") # 测试报告 reports_dir = os.path.join(base_dir,"Outputs\\reports") # 日志的路径 logs_dir = os.path.join(base_dir,"Outputs\\logs") # 配置...
{"/Common/handle_phone.py": ["/Common/handle_db.py", "/Common/handle_requests.py", "/Common/handle_config.py"], "/Common/handle_db.py": ["/Common/handle_config.py"], "/TestCases/test_withdraw.py": ["/Common/handle_path.py", "/Common/handle_db.py", "/Common/handle_log.py", "/Common/handle_phone.py", "/Common/handle_requ...
54,003
tylhhh/API_qianchengdai
refs/heads/master
/Common/handle_db.py
import pymysql from Common.handle_config import conf class HandleDB: def __init__(self): # 1、连接数据库 self.conn = pymysql.connect( host=conf.get("mysql","host"), port=conf.getint("mysql","port"), user=conf.get("mysql","user"), password=conf.get("mysql","...
{"/Common/handle_phone.py": ["/Common/handle_db.py", "/Common/handle_requests.py", "/Common/handle_config.py"], "/Common/handle_db.py": ["/Common/handle_config.py"], "/TestCases/test_withdraw.py": ["/Common/handle_path.py", "/Common/handle_db.py", "/Common/handle_log.py", "/Common/handle_phone.py", "/Common/handle_requ...
54,004
tylhhh/API_qianchengdai
refs/heads/master
/扩展学习/13_上传文件.py
""" requests模块传参有四种方式:params、data、json和files params:传递查询字符串参数(常用于get请求) data:传递表单类型的参数(参数类型:Content-Type:application/x-www-form-urlencoded) json:传递json类型的参数(参数类型:Content-Type:application/json) files:用于上传文件(参数类型: content-type:multipart/form-data) files为字典类型,上传的文件为键值对的形式,参数名作为键 参数值是一个元组,内容为一下格式(文件名,打开的文件流,文件类型) 注意:除了上传的文...
{"/Common/handle_phone.py": ["/Common/handle_db.py", "/Common/handle_requests.py", "/Common/handle_config.py"], "/Common/handle_db.py": ["/Common/handle_config.py"], "/TestCases/test_withdraw.py": ["/Common/handle_path.py", "/Common/handle_db.py", "/Common/handle_log.py", "/Common/handle_phone.py", "/Common/handle_requ...
54,005
tylhhh/API_qianchengdai
refs/heads/master
/扩展学习/01_excel数据处理.py
""" openpyxl是读写Excel的Python库,是一个比较综合的工具,能够同时读取和修改Excel文档 openpyxl中有三个不同层次的类,每一个类都有各自的属性和方法: workbook是一个Excel工作表 worksheet是工作表中的表单 cell是表单中的单元格 row:行 column:列 步骤: 1、导入load_workbook模块 2、打开数据文件,Workbook对象 -- wb = load_workbook("文件路径") 3、根据表单名称选择表单 -- sh = wb["表单名称"] 4、遍历第一行的每一列 5、遍历表单中除去第一行的每一行 6、关闭文件 """ from openpyxl i...
{"/Common/handle_phone.py": ["/Common/handle_db.py", "/Common/handle_requests.py", "/Common/handle_config.py"], "/Common/handle_db.py": ["/Common/handle_config.py"], "/TestCases/test_withdraw.py": ["/Common/handle_path.py", "/Common/handle_db.py", "/Common/handle_log.py", "/Common/handle_phone.py", "/Common/handle_requ...
54,006
tylhhh/API_qianchengdai
refs/heads/master
/扩展学习/09_数据库操作.py
""" 对于支持事务的数据库,在Python数据库中,当游标创建时,就自动开始了一个隐形对的数据库事务 commit()方法游标的所有更新操作 rollback()方法回滚当前游标的所有操作 每一个方法都开始了一个新的事务 """ import pymysql config = { "host":"api.lemonban.com", "port":3306, "user":"future", "password":"123456", "database":"futureloan", "charset":"utf8", "cursorclass":pymysql.cursors...
{"/Common/handle_phone.py": ["/Common/handle_db.py", "/Common/handle_requests.py", "/Common/handle_config.py"], "/Common/handle_db.py": ["/Common/handle_config.py"], "/TestCases/test_withdraw.py": ["/Common/handle_path.py", "/Common/handle_db.py", "/Common/handle_log.py", "/Common/handle_phone.py", "/Common/handle_requ...
54,007
tylhhh/API_qianchengdai
refs/heads/master
/TestCases/test_withdraw.py
import unittest,json from Common.handle_excel import HandleExcel from Common.handle_path import datas_dir from Common.myddt import ddt, data from Common.handle_db import HandleDB from Common.handle_log import logger from Common.handle_phone import get_new_phone,get_old_phone from Common.handle_data import replace_data...
{"/Common/handle_phone.py": ["/Common/handle_db.py", "/Common/handle_requests.py", "/Common/handle_config.py"], "/Common/handle_db.py": ["/Common/handle_config.py"], "/TestCases/test_withdraw.py": ["/Common/handle_path.py", "/Common/handle_db.py", "/Common/handle_log.py", "/Common/handle_phone.py", "/Common/handle_requ...
54,008
tylhhh/API_qianchengdai
refs/heads/master
/TestCases/test_register.py
import unittest from Common.handle_excel import HandleExcel from Common.handle_path import datas_dir from Common.myddt import ddt, data from Common.handle_db import HandleDB from Common.handle_log import logger from Common.handle_phone import get_new_phone from Common.handle_data import replace_data from Common.handle...
{"/Common/handle_phone.py": ["/Common/handle_db.py", "/Common/handle_requests.py", "/Common/handle_config.py"], "/Common/handle_db.py": ["/Common/handle_config.py"], "/TestCases/test_withdraw.py": ["/Common/handle_path.py", "/Common/handle_db.py", "/Common/handle_log.py", "/Common/handle_phone.py", "/Common/handle_requ...
54,009
tylhhh/API_qianchengdai
refs/heads/master
/TestCases/test_recharge.py
import unittest,json from Common.handle_excel import HandleExcel from Common.handle_path import datas_dir from Common.myddt import ddt, data from Common.handle_db import HandleDB from Common.handle_log import logger from Common.handle_phone import get_new_phone,get_old_phone from Common.handle_data import replace_data...
{"/Common/handle_phone.py": ["/Common/handle_db.py", "/Common/handle_requests.py", "/Common/handle_config.py"], "/Common/handle_db.py": ["/Common/handle_config.py"], "/TestCases/test_withdraw.py": ["/Common/handle_path.py", "/Common/handle_db.py", "/Common/handle_log.py", "/Common/handle_phone.py", "/Common/handle_requ...
54,010
tylhhh/API_qianchengdai
refs/heads/master
/Common/handle_extract_data.py
import jsonpath from Common.handle_data import EnvData def extract_data(extract_exprs,response_dict): """ 根据jsonpath提取表达式,从响应结果当中,提取数据并设置为环境变量EnvData类的类属性,作为全局变量使用。 :param extract_exprs: 从excel当中读取出来的,提取表达式的字符串。 :param response_dict: http请求之后的响应结果。 :return:Nonoe """ # 将提取表达式转换成字典 extr...
{"/Common/handle_phone.py": ["/Common/handle_db.py", "/Common/handle_requests.py", "/Common/handle_config.py"], "/Common/handle_db.py": ["/Common/handle_config.py"], "/TestCases/test_withdraw.py": ["/Common/handle_path.py", "/Common/handle_db.py", "/Common/handle_log.py", "/Common/handle_phone.py", "/Common/handle_requ...
54,011
tylhhh/API_qianchengdai
refs/heads/master
/扩展学习/08_利用正则替换数据.py
""" re 模块使 Python 语言拥有全部的正则表达式功能。 re.findall(re规则,字符串):把所有匹配的字符放在列表中并返回 re.sub(re规则,替换串,被替换串):匹配字符并替换 """ """ ${memberID} 对应的正则表达式 '\$\{.*\}' \$ 转义替换字符串中 $ \{ 转义替换字符串中 { . 除了\n中的任意单个自符 * 匹配*前面的字符零次或者多次 \} 转义替换字符串中 } """ import re dict = {"memberId": "${memberID}", "password": "123456", "loanId": "${loanId}", "amount"...
{"/Common/handle_phone.py": ["/Common/handle_db.py", "/Common/handle_requests.py", "/Common/handle_config.py"], "/Common/handle_db.py": ["/Common/handle_config.py"], "/TestCases/test_withdraw.py": ["/Common/handle_path.py", "/Common/handle_db.py", "/Common/handle_log.py", "/Common/handle_phone.py", "/Common/handle_requ...
54,012
tylhhh/API_qianchengdai
refs/heads/master
/Common/handle_log.py
import logging,os from Common.handle_config import conf from Common.handle_path import logs_dir class HandleLog: def __init__(self,name, path): # 创建一个日志收集器 self.logger = logging.getLogger(name) self.logger.setLevel(logging.INFO) self.stream_handle = logging.StreamHandler() s...
{"/Common/handle_phone.py": ["/Common/handle_db.py", "/Common/handle_requests.py", "/Common/handle_config.py"], "/Common/handle_db.py": ["/Common/handle_config.py"], "/TestCases/test_withdraw.py": ["/Common/handle_path.py", "/Common/handle_db.py", "/Common/handle_log.py", "/Common/handle_phone.py", "/Common/handle_requ...
54,013
tylhhh/API_qianchengdai
refs/heads/master
/扩展学习/03_configparse模块.py
""" ConfigParser 是用来读取配置文件的包。 配置文件的格式如下:中括号“[ ]”内包含的为section。section 下面为类似于key-value 的配置内容 [section] option=value """ # ConfigParser 初始化对象 import configparser config = configparser.ConfigParser() config.read("test.ini", encoding="utf-8") # 获取所用的section节点 print(config.sections()) # 获取指定section的options res = config.op...
{"/Common/handle_phone.py": ["/Common/handle_db.py", "/Common/handle_requests.py", "/Common/handle_config.py"], "/Common/handle_db.py": ["/Common/handle_config.py"], "/TestCases/test_withdraw.py": ["/Common/handle_path.py", "/Common/handle_db.py", "/Common/handle_log.py", "/Common/handle_phone.py", "/Common/handle_requ...
54,014
tylhhh/API_qianchengdai
refs/heads/master
/Common/handle_config.py
import os from configparser import ConfigParser from Common.handle_path import conf_dir class HandleConfig(ConfigParser): def __init__(self, file_path): super().__init__() self.read(file_path, encoding="utf-8") file_path = os.path.join(conf_dir, "conf.ini") conf = HandleConfig(file_path)
{"/Common/handle_phone.py": ["/Common/handle_db.py", "/Common/handle_requests.py", "/Common/handle_config.py"], "/Common/handle_db.py": ["/Common/handle_config.py"], "/TestCases/test_withdraw.py": ["/Common/handle_path.py", "/Common/handle_db.py", "/Common/handle_log.py", "/Common/handle_phone.py", "/Common/handle_requ...
54,015
tylhhh/API_qianchengdai
refs/heads/master
/TestCases/test_audit.py
import unittest import json from Common.handle_excel import HandleExcel from Common.handle_path import datas_dir from Common.myddt import ddt,data from Common.handle_log import logger from Common.handle_data import EnvData,clear_EnvData_atts,replace_case_by_regular from Common.handle_requests import send_requests from ...
{"/Common/handle_phone.py": ["/Common/handle_db.py", "/Common/handle_requests.py", "/Common/handle_config.py"], "/Common/handle_db.py": ["/Common/handle_config.py"], "/TestCases/test_withdraw.py": ["/Common/handle_path.py", "/Common/handle_db.py", "/Common/handle_log.py", "/Common/handle_phone.py", "/Common/handle_requ...
54,016
tylhhh/API_qianchengdai
refs/heads/master
/扩展学习/05_json和eval的区别应用.py
""" json:是什么样就直接转换,没有计算,json不认单引号,json中的字符串需要用双引号包起来 eval:python表达式去计算 """ import json ss = '{"mobile_phone":"18600001112","pwd":"123456789","type":1,"reg_name":"美丽可爱的小简","flag":null}' # json字符串转换成字典 ss_dict = json.loads(ss) print(ss_dict) print(type(ss_dict)) dict_ss = {'mobile_phone': '18600001112', 'pwd': '123456...
{"/Common/handle_phone.py": ["/Common/handle_db.py", "/Common/handle_requests.py", "/Common/handle_config.py"], "/Common/handle_db.py": ["/Common/handle_config.py"], "/TestCases/test_withdraw.py": ["/Common/handle_path.py", "/Common/handle_db.py", "/Common/handle_log.py", "/Common/handle_phone.py", "/Common/handle_requ...
54,017
tylhhh/API_qianchengdai
refs/heads/master
/Common/handle_requests.py
import json,requests from Common.handle_config import conf from Common.handle_log import logger def send_requests(method, url, data=None, token=None): logger.info("发起一次HTTP请求") headers = handle_header(token) url = pre_url(url) data = pre_data(data) logger.info("请求头为:{}".format(headers)) logger.i...
{"/Common/handle_phone.py": ["/Common/handle_db.py", "/Common/handle_requests.py", "/Common/handle_config.py"], "/Common/handle_db.py": ["/Common/handle_config.py"], "/TestCases/test_withdraw.py": ["/Common/handle_path.py", "/Common/handle_db.py", "/Common/handle_log.py", "/Common/handle_phone.py", "/Common/handle_requ...
54,018
tylhhh/API_qianchengdai
refs/heads/master
/扩展学习/test.py
import hashlib def md5(str): str_md5 = hashlib.md5(str.encode(encoding='UTF-8')).hexdigest() return str_md5 def get_mol_sign(request_data): str_parm = '' # 目标md5串 data_dict = eval(request_data) list_data = sorted(data_dict) for item in list_data: # 将字典中的key排序,存在在列表中 if item == "signa...
{"/Common/handle_phone.py": ["/Common/handle_db.py", "/Common/handle_requests.py", "/Common/handle_config.py"], "/Common/handle_db.py": ["/Common/handle_config.py"], "/TestCases/test_withdraw.py": ["/Common/handle_path.py", "/Common/handle_db.py", "/Common/handle_log.py", "/Common/handle_phone.py", "/Common/handle_requ...
54,019
tylhhh/API_qianchengdai
refs/heads/master
/扩展学习/10_RSA加密签名处理.py
""" RSA加密:http://www.lemfix.com/topics/355 调用接口加密处理参考方案: https://www.cnblogs.com/Simple-Small/p/11284110.html 测试小白也能懂:常用加密算法解析 http://www.lemfix.com/topics/43408 安装:pip3 install rsa """ import rsa import base64 from time import time def rsaEncrypt(msg): """ 公钥加密 :param msg: 要加密的内容 :type msg: str ...
{"/Common/handle_phone.py": ["/Common/handle_db.py", "/Common/handle_requests.py", "/Common/handle_config.py"], "/Common/handle_db.py": ["/Common/handle_config.py"], "/TestCases/test_withdraw.py": ["/Common/handle_path.py", "/Common/handle_db.py", "/Common/handle_log.py", "/Common/handle_phone.py", "/Common/handle_requ...
54,020
tylhhh/API_qianchengdai
refs/heads/master
/扩展学习/02_日志处理.py
import logging # 1、创建一个日志收集器 logger = logging.getLogger("mylogger") # 2、给日志收集器设置日志级别 logger.setLevel(logging.DEBUG) # 3、给日志收集器创建一个输出渠道 stream_handler = logging.StreamHandler() file_handler = logging.FileHandler('error.log', encoding="utf-8") file_handler.setLevel(logging.ERROR) # 4、给渠道设置一个日志输出内容的格式 fmt = "%(asctime...
{"/Common/handle_phone.py": ["/Common/handle_db.py", "/Common/handle_requests.py", "/Common/handle_config.py"], "/Common/handle_db.py": ["/Common/handle_config.py"], "/TestCases/test_withdraw.py": ["/Common/handle_path.py", "/Common/handle_db.py", "/Common/handle_log.py", "/Common/handle_phone.py", "/Common/handle_requ...
54,021
tylhhh/API_qianchengdai
refs/heads/master
/TestCases/test_login.py
import unittest from Common.handle_excel import HandleExcel from Common.handle_path import datas_dir from Common.myddt import ddt, data from Common.handle_db import HandleDB from Common.handle_log import logger from Common.handle_requests import send_requests get_excel = HandleExcel(datas_dir+"/api_cases.xlsx","登陆") ...
{"/Common/handle_phone.py": ["/Common/handle_db.py", "/Common/handle_requests.py", "/Common/handle_config.py"], "/Common/handle_db.py": ["/Common/handle_config.py"], "/TestCases/test_withdraw.py": ["/Common/handle_path.py", "/Common/handle_db.py", "/Common/handle_log.py", "/Common/handle_phone.py", "/Common/handle_requ...
54,022
tylhhh/API_qianchengdai
refs/heads/master
/扩展学习/11_常用的加密算法.py
""" 算法1:base64(编码算法) 常用在URL、cookie、网页中传输少量二进制数据 """ # 编码 import base64 byte_str = "I like you".encode("utf-8") encode_str = base64.b64encode(byte_str) print(encode_str) # 解码 decode_str = base64.b64decode("SSBsaWtlIHlvdQ==") print(decode_str.decode("utf-8")) """ 算法2:urlencode(URL编码) base64的特征是尾部经常带有=号 url编码的特征是%很多 """...
{"/Common/handle_phone.py": ["/Common/handle_db.py", "/Common/handle_requests.py", "/Common/handle_config.py"], "/Common/handle_db.py": ["/Common/handle_config.py"], "/TestCases/test_withdraw.py": ["/Common/handle_path.py", "/Common/handle_db.py", "/Common/handle_log.py", "/Common/handle_phone.py", "/Common/handle_requ...
54,023
tylhhh/API_qianchengdai
refs/heads/master
/TestCases/test_business.py
import unittest,json from Common.handle_excel import HandleExcel from Common.handle_path import datas_dir from Common.myddt import ddt,data from Common.handle_log import logger from Common.handle_phone import get_new_phone from Common.handle_data import EnvData,clear_EnvData_atts,replace_case_by_regular from Common.han...
{"/Common/handle_phone.py": ["/Common/handle_db.py", "/Common/handle_requests.py", "/Common/handle_config.py"], "/Common/handle_db.py": ["/Common/handle_config.py"], "/TestCases/test_withdraw.py": ["/Common/handle_path.py", "/Common/handle_db.py", "/Common/handle_log.py", "/Common/handle_phone.py", "/Common/handle_requ...