id
int64
0
328k
repository_name
stringlengths
7
58
file_path
stringlengths
9
302
class_name
stringlengths
5
256
human_written_code
stringlengths
16
2.16M
class_skeleton
stringlengths
18
1.49M
⌀
total_program_units
int64
1
1.76k
total_doc_str
int64
0
771
AvgCountLine
float64
0
7.89k
AvgCountLineBlank
float64
0
297
AvgCountLineCode
float64
0
7.89k
AvgCountLineComment
float64
0
7.89k
AvgCyclomatic
float64
0
130
CommentToCodeRatio
float64
0
168
CountClassBase
float64
0
40
CountClassCoupled
float64
0
583
CountClassCoupledModified
float64
0
575
CountClassDerived
float64
0
5.35k
CountDeclInstanceMethod
float64
0
529
CountDeclInstanceVariable
float64
0
296
CountDeclMethod
float64
0
599
CountDeclMethodAll
float64
0
1.12k
CountLine
float64
1
40.4k
CountLineBlank
float64
0
8.16k
CountLineCode
float64
1
25.7k
CountLineCodeDecl
float64
1
8.15k
CountLineCodeExe
float64
0
24.2k
CountLineComment
float64
0
16.5k
CountStmt
float64
1
9.71k
CountStmtDecl
float64
1
8.15k
CountStmtExe
float64
0
9.69k
MaxCyclomatic
float64
0
759
MaxInheritanceTree
float64
0
16
MaxNesting
float64
0
34
SumCyclomatic
float64
0
2.9k
24,100
jopohl/urh
jopohl_urh/src/urh/controller/widgets/ChecksumWidget.py
urh.controller.widgets.ChecksumWidget.ChecksumWidget
from urh.signalprocessing.Message import Message import array from urh.signalprocessing.ChecksumLabel import ChecksumLabel from urh.util.GenericCRC import GenericCRC import copy from collections import OrderedDict from PyQt5.QtWidgets import QWidget, QHeaderView, QAbstractItemView, QLineEdit from PyQt5.QtGui import QRe...
class ChecksumWidget(QWidget): class RangeTableModel(QAbstractTableModel): def __init__(self, checksum_label: ChecksumLabel, message: Message, proto_view: int, parent=None): ''' :param message: :type field_types: list of FieldType :param parent: ...
49
1
11
0
11
0
2
0.03
1
13
8
0
24
3
24
24
420
47
365
88
304
10
210
61
176
8
1
3
69
24,101
jopohl/urh
jopohl_urh/src/urh/controller/widgets/DeviceSettingsWidget.py
urh.controller.widgets.DeviceSettingsWidget.DeviceSettingsWidget
import numpy as np from urh.dev.BackendHandler import BackendHandler, Backends from urh.dev import config from urh.plugins.PluginManager import PluginManager from urh.ui.ui_send_recv_device_settings import Ui_FormDeviceSettings from urh.util.ProjectManager import ProjectManager from statistics import median from PyQt5....
class DeviceSettingsWidget(QWidget): def __init__(self, project_manager: ProjectManager, is_tx: bool, backend_handler: BackendHandler=None, continuous_send_mode=False, parent=None): pass def bootstrap(self, conf_dict: dict, enforce_default=False): pass def set_val(ui_widget, key: str...
78
0
13
1
12
0
2
0.01
1
17
7
0
45
6
45
45
658
98
559
144
474
7
373
106
326
17
1
4
104
24,102
jopohl/urh
jopohl_urh/src/urh/controller/widgets/ModulationSettingsWidget.py
urh.controller.widgets.ModulationSettingsWidget.ModulationSettingsWidget
from urh import settings from PyQt5.QtWidgets import QWidget from PyQt5.QtCore import pyqtSlot from urh.ui.ui_modulation_settings_widget import Ui_ModulationSettings from urh.signalprocessing.Modulator import Modulator from urh.controller.dialogs.ModulatorDialog import ModulatorDialog class ModulationSettingsWidget(QW...
class ModulationSettingsWidget(QWidget): def __init__(self, modulators, selected_index=0, signal_tree_model=None, parent=None): ''' :type modulators: list of Modulator :param parent: ''' pass @property def selected_modulator(self) -> Modulator: pass @sel...
14
1
9
1
8
1
2
0.07
1
7
3
0
8
3
8
8
88
15
69
24
53
5
48
17
39
3
1
1
12
24,103
jopohl/urh
jopohl_urh/src/urh/controller/widgets/PluginFrame.py
urh.controller.widgets.PluginFrame.PluginFrame
from urh.models.PluginListModel import PluginListModel from PyQt5.QtCore import pyqtSlot from urh.ui.ui_plugins import Ui_FramePlugins from PyQt5.QtWidgets import QFrame, QVBoxLayout from urh import settings class PluginFrame(QFrame): def __init__(self, plugins, highlighted_plugins=None, parent=None): """...
class PluginFrame(QFrame): def __init__(self, plugins, highlighted_plugins=None, parent=None): ''' :type plugins: list of Plugin :type highlighted_plugins: list of Plugin ''' pass def create_connects(self): pass def save_enabled_states(self): pass ...
6
1
10
1
8
1
2
0.12
1
4
2
0
4
3
4
4
44
6
34
13
28
4
27
12
22
3
1
2
8
24,104
jopohl/urh
jopohl_urh/src/urh/controller/widgets/SignalFrame.py
urh.controller.widgets.SignalFrame.SignalFrame
from urh.controller.dialogs.CostaOptionsDialog import CostaOptionsDialog from urh.controller.dialogs.FilterDialog import FilterDialog import math from urh.controller.dialogs.SendDialog import SendDialog import time from urh.controller.dialogs.SignalDetailsDialog import SignalDetailsDialog from multiprocessing import Pr...
null
144
0
16
2
14
0
2
0.02
1
30
16
0
92
20
92
92
1,621
249
1,361
308
1,207
21
943
238
850
16
1
3
225
24,105
jopohl/urh
jopohl_urh/src/urh/controller/widgets/SniffSettingsWidget.py
urh.controller.widgets.SniffSettingsWidget.SniffSettingsWidget
from PyQt5.QtCore import pyqtSlot, pyqtSignal from urh.ui.ui_send_recv_sniff_settings import Ui_SniffSettings import os from urh.dev.BackendHandler import BackendHandler from PyQt5.QtWidgets import QWidget, QCompleter, QDirModel from urh.signalprocessing.ProtocolSniffer import ProtocolSniffer from urh.util.ProjectManag...
class SniffSettingsWidget(QWidget): def __init__(self, device_name: str, project_manager: ProjectManager, signal=None, backend_handler=None, network_raw_mode=False, signals=None, parent=None): pass def __set_center_offset_visibility(self): pass def bootstrap(self, conf_dict: dict, signal...
36
0
13
1
12
0
2
0
1
12
4
0
20
4
20
20
297
38
258
59
213
1
143
35
121
8
1
2
43
24,106
jopohl/urh
jopohl_urh/src/urh/dev/BackendHandler.py
urh.dev.BackendHandler.BackendContainer
from urh import settings class BackendContainer(object): def __init__(self, name, avail_backends: set, supports_rx: bool, supports_tx: bool): self.name = name self.avail_backends = avail_backends self.selected_backend = Backends[settings.read(name + '_selected_backend', 'none')] if...
class BackendContainer(object): def __init__(self, name, avail_backends: set, supports_rx: bool, supports_tx: bool): pass def __repr__(self): pass @property def supports_rx(self) -> bool: pass @property def supports_tx(self) -> bool: pass @property def ...
14
0
6
0
5
0
2
0.06
1
4
1
0
9
6
9
9
64
11
50
20
36
3
37
16
27
6
1
2
15
24,107
jopohl/urh
jopohl_urh/src/urh/dev/BackendHandler.py
urh.dev.BackendHandler.BackendHandler
from subprocess import call, DEVNULL from urh import settings import sys import os class BackendHandler(object): """ This class controls the devices backend. 1) List available backends for devices 2) List available devices (at least one backend) 3) Manage the selection of devices backend """ ...
class BackendHandler(object): ''' This class controls the devices backend. 1) List available backends for devices 2) List available devices (at least one backend) 3) Manage the selection of devices backend ''' def __init__(self): pass @property def gr_python_interpreter(sel...
34
1
11
2
10
0
3
0.04
1
9
2
0
19
4
20
20
285
52
224
64
180
10
171
49
140
13
1
2
58
24,108
jopohl/urh
jopohl_urh/src/urh/dev/BackendHandler.py
urh.dev.BackendHandler.Backends
from enum import Enum class Backends(Enum): none = 'no available backend' native = 'native backend' grc = 'GNU Radio backend' network = 'Network Backend'
class Backends(Enum): pass
1
0
0
0
0
0
0
0.2
1
0
0
0
0
0
0
49
5
0
5
5
4
1
5
5
4
0
4
0
0
24,109
jopohl/urh
jopohl_urh/src/urh/dev/EndlessSender.py
urh.dev.EndlessSender.EndlessSender
import numpy as np from urh import settings from urh.util.RingBuffer import RingBuffer from urh.dev.VirtualDevice import Mode, VirtualDevice class EndlessSender(object): """ Enter endless send mode for a device and send data if data gets pushed to ringbuffer. """ def __init__(self, backend_handler, na...
class EndlessSender(object): ''' Enter endless send mode for a device and send data if data gets pushed to ringbuffer. ''' def __init__(self, backend_handler, name: str): pass @property def device(self) -> VirtualDevice: pass @device.setter def device(self) -> VirtualDe...
13
1
4
0
4
0
1
0.08
1
5
3
0
8
2
8
8
50
8
39
15
26
3
25
11
16
2
1
1
9
24,110
jopohl/urh
jopohl_urh/src/urh/dev/PCAP.py
urh.dev.PCAP.PCAP
import os import struct import time from urh.util.Logger import logger class PCAP(object): def __init__(self): self.timestamp_sec = None self.timestamp_nsec = None def reset_timestamp(self): self.timestamp_sec = None self.timestamp_nsec = None def build_global_header(self...
class PCAP(object): def __init__(self): pass def reset_timestamp(self): pass def build_global_header(self) -> bytes: pass def build_packet(self, ts_sec: int, ts_nsec: int, data: bytes) -> bytes: pass def write_packets(self, packets, filename: str, sample_rate: i...
8
1
11
1
9
1
2
0.11
1
3
0
0
5
2
6
6
73
12
56
22
48
6
40
20
33
3
1
2
10
24,111
jopohl/urh
jopohl_urh/src/urh/dev/VirtualDevice.py
urh.dev.VirtualDevice.Mode
from enum import Enum class Mode(Enum): receive = 1 send = 2 spectrum = 3
class Mode(Enum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
49
4
0
4
4
3
0
4
4
3
0
4
0
0
24,112
jopohl/urh
jopohl_urh/src/urh/dev/VirtualDevice.py
urh.dev.VirtualDevice.VirtualDevice
from urh.dev.BackendHandler import Backends, BackendHandler from urh.dev import config import numpy as np import time from PyQt5.QtCore import pyqtSignal, QObject from urh.plugins.NetworkSDRInterface.NetworkSDRInterfacePlugin import NetworkSDRInterfacePlugin from urh.util.Logger import logger from urh.dev.native.Device...
class VirtualDevice(QObject): ''' Wrapper class for providing sending methods for grc and native devices ''' def __init__(self, backend_handler, name: str, mode: Mode, freq=None, sample_rate=None, bandwidth=None, gain=None, if_gain=None, baseband_gain=None, samples_to_send=None, device_ip=None, sendin...
142
3
9
0
9
0
3
0.02
1
28
19
0
79
6
79
79
887
114
761
194
587
17
440
111
346
32
1
3
217
24,113
jopohl/urh
jopohl_urh/src/urh/dev/gr/AbstractBaseThread.py
urh.dev.gr.AbstractBaseThread.AbstractBaseThread
import time from threading import Thread from urh.util.Logger import logger import socket import sys from subprocess import Popen, PIPE import os from queue import Queue, Empty from urh import settings from PyQt5.QtCore import QThread, pyqtSignal class AbstractBaseThread(QThread): started = pyqtSignal() stoppe...
class AbstractBaseThread(QThread): def __init__(self, frequency, sample_rate, bandwidth, gain, if_gain, baseband_gain, receiving: bool, ip='127.0.0.1', parent=None): pass @property def sample_rate(self): pass @sample_rate.setter def sample_rate(self): pass @property ...
48
0
9
1
8
0
2
0.02
1
14
0
3
27
22
27
27
286
41
245
92
186
4
183
60
155
5
1
2
56
24,114
jopohl/urh
jopohl_urh/src/urh/dev/gr/ReceiverThread.py
urh.dev.gr.ReceiverThread.ReceiverThread
from urh.util.Logger import logger import numpy as np from urh import settings from urh.dev.gr.AbstractBaseThread import AbstractBaseThread class ReceiverThread(AbstractBaseThread): def __init__(self, frequency, sample_rate, bandwidth, gain, if_gain, baseband_gain, ip='127.0.0.1', parent=None, resume_on_full_rece...
class ReceiverThread(AbstractBaseThread): def __init__(self, frequency, sample_rate, bandwidth, gain, if_gain, baseband_gain, ip='127.0.0.1', parent=None, resume_on_full_receive_buffer=False): pass def init_recv_buffer(self): pass def run(self): pass
4
0
28
3
24
1
5
0.04
1
4
0
0
3
3
3
30
86
11
74
24
59
3
46
12
42
12
2
6
14
24,115
jopohl/urh
jopohl_urh/src/urh/dev/gr/SenderThread.py
urh.dev.gr.SenderThread.SenderThread
from urh.util.Logger import logger from urh.dev.gr.AbstractBaseThread import AbstractBaseThread import numpy as np from urh.util import util import numpy import time import socket class SenderThread(AbstractBaseThread): MAX_SAMPLES_PER_TRANSMISSION = 4096 def __init__(self, frequency, sample_rate, bandwidth, ...
class SenderThread(AbstractBaseThread): def __init__(self, frequency, sample_rate, bandwidth, gain, if_gain, baseband_gain, ip='127.0.0.1', parent=None): pass @property def repeat_endless(self): pass @property def samples_per_transmission(self): pass @samples_per_transm...
9
0
15
1
14
0
2
0.01
1
3
0
0
5
7
5
32
85
12
73
29
54
1
39
16
33
6
2
3
12
24,116
jopohl/urh
jopohl_urh/src/urh/dev/gr/SpectrumThread.py
urh.dev.gr.SpectrumThread.SpectrumThread
from urh.util.Logger import logger from urh.dev.gr.AbstractBaseThread import AbstractBaseThread import numpy as np from urh import settings class SpectrumThread(AbstractBaseThread): def __init__(self, frequency, sample_rate, bandwidth, gain, if_gain, baseband_gain, ip='127.0.0.1', parent=None): super().__...
class SpectrumThread(AbstractBaseThread): def __init__(self, frequency, sample_rate, bandwidth, gain, if_gain, baseband_gain, ip='127.0.0.1', parent=None): pass def run(self): pass
3
0
42
5
37
1
5
0.03
1
5
0
0
2
5
2
29
86
11
75
26
62
2
51
14
48
9
2
4
10
24,117
jopohl/urh
jopohl_urh/src/urh/dev/gr/scripts/InputHandlerThread.py
urh.dev.gr.scripts.InputHandlerThread.InputHandlerThread
import time from queue import Queue, Empty import sys from threading import Thread class InputHandlerThread(Thread): def __init__(self, device): Thread.__init__(self) self.queue = Queue() self.device = device self.daemon = True t = Thread(target=self.enqueue_input, args=(sy...
class InputHandlerThread(Thread): def __init__(self, device): pass def enqueue_input(self, inp, queue): pass def read_input(self): pass def run(self): pass
5
0
21
1
20
0
6
0.01
1
4
0
0
4
3
4
29
87
7
80
14
75
1
65
14
60
19
1
5
25
24,118
jopohl/urh
jopohl_urh/src/urh/dev/gr/scripts/airspy_recv.py
urh.dev.gr.scripts.airspy_recv.top_block
from gnuradio import gr from gnuradio import blocks import osmosdr class top_block(gr.top_block): def __init__(self, sample_rate, frequency, freq_correction, rf_gain, if_gain, bb_gain, bandwidth, port): gr.top_block.__init__(self, 'Top Block') self.sample_rate = sample_rate self.rf_gain = ...
class top_block(gr.top_block): def __init__(self, sample_rate, frequency, freq_correction, rf_gain, if_gain, bb_gain, bandwidth, port): pass def get_sample_rate(self): pass def set_sample_rate(self, sample_rate): pass def get_rf_gain(self): pass def set_rf_gain(...
24
0
4
0
4
0
1
0
1
1
0
0
23
13
23
23
113
25
88
47
54
0
74
37
50
1
1
0
23
24,119
jopohl/urh
jopohl_urh/src/urh/dev/gr/scripts/bladerf_recv.py
urh.dev.gr.scripts.bladerf_recv.top_block
from gnuradio import gr import osmosdr from gnuradio import blocks class top_block(gr.top_block): def __init__(self, sample_rate, frequency, freq_correction, rf_gain, if_gain, bb_gain, bandwidth, port): gr.top_block.__init__(self, 'Top Block') self.sample_rate = sample_rate self.rf_gain = ...
class top_block(gr.top_block): def __init__(self, sample_rate, frequency, freq_correction, rf_gain, if_gain, bb_gain, bandwidth, port): pass def get_sample_rate(self): pass def set_sample_rate(self, sample_rate): pass def get_rf_gain(self): pass def set_rf_gain(...
24
0
4
0
4
0
1
0
1
1
0
0
23
13
23
23
113
25
88
47
54
0
74
37
50
1
1
0
23
24,120
jopohl/urh
jopohl_urh/src/urh/dev/gr/scripts/bladerf_send.py
urh.dev.gr.scripts.bladerf_send.top_block
from gnuradio import gr from gnuradio import blocks import osmosdr class top_block(gr.top_block): def __init__(self, sample_rate, frequency, freq_correction, rf_gain, if_gain, bb_gain, bandwidth, port): gr.top_block.__init__(self, 'Top Block') self.sample_rate = sample_rate self.rf_gain = ...
class top_block(gr.top_block): def __init__(self, sample_rate, frequency, freq_correction, rf_gain, if_gain, bb_gain, bandwidth, port): pass def get_sample_rate(self): pass def set_sample_rate(self, sample_rate): pass def get_rf_gain(self): pass def set_rf_gain(...
24
0
4
0
4
0
1
0
1
1
0
0
23
13
23
23
111
25
86
47
52
0
74
37
50
1
1
0
23
24,121
jopohl/urh
jopohl_urh/src/urh/dev/gr/scripts/funcube_recv.py
urh.dev.gr.scripts.funcube_recv.top_block
from gnuradio import gr import osmosdr from gnuradio import blocks class top_block(gr.top_block): def __init__(self, sample_rate, frequency, freq_correction, rf_gain, if_gain, bb_gain, bandwidth, port): gr.top_block.__init__(self, 'Top Block') self.sample_rate = sample_rate self.rf_gain = ...
class top_block(gr.top_block): def __init__(self, sample_rate, frequency, freq_correction, rf_gain, if_gain, bb_gain, bandwidth, port): pass def get_sample_rate(self): pass def set_sample_rate(self, sample_rate): pass def get_rf_gain(self): pass def set_rf_gain(...
24
0
4
0
4
0
1
0
1
1
0
0
23
13
23
23
111
25
86
47
52
0
74
37
50
1
1
0
23
24,122
jopohl/urh
jopohl_urh/src/urh/dev/gr/scripts/hackrf_recv.py
urh.dev.gr.scripts.hackrf_recv.top_block
import osmosdr from gnuradio import gr from gnuradio import blocks class top_block(gr.top_block): def __init__(self, sample_rate, frequency, freq_correction, rf_gain, if_gain, bb_gain, bandwidth, port): gr.top_block.__init__(self, 'Top Block') self.sample_rate = sample_rate self.rf_gain = ...
class top_block(gr.top_block): def __init__(self, sample_rate, frequency, freq_correction, rf_gain, if_gain, bb_gain, bandwidth, port): pass def get_sample_rate(self): pass def set_sample_rate(self, sample_rate): pass def get_rf_gain(self): pass def set_rf_gain(...
24
0
4
0
4
0
1
0
1
1
0
0
23
13
23
23
113
25
88
47
54
0
74
37
50
1
1
0
23
24,123
jopohl/urh
jopohl_urh/src/urh/dev/gr/scripts/hackrf_send.py
urh.dev.gr.scripts.hackrf_send.top_block
from gnuradio import gr from gnuradio import blocks import osmosdr class top_block(gr.top_block): def __init__(self, sample_rate, frequency, freq_correction, rf_gain, if_gain, bb_gain, bandwidth, port): gr.top_block.__init__(self, 'Top Block') self.sample_rate = sample_rate self.rf_gain = ...
class top_block(gr.top_block): def __init__(self, sample_rate, frequency, freq_correction, rf_gain, if_gain, bb_gain, bandwidth, port): pass def get_sample_rate(self): pass def set_sample_rate(self, sample_rate): pass def get_rf_gain(self): pass def set_rf_gain(...
24
0
4
0
4
0
1
0
1
1
0
0
23
13
23
23
111
25
86
47
52
0
74
37
50
1
1
0
23
24,124
jopohl/urh
jopohl_urh/src/urh/dev/gr/scripts/rtl-sdr_recv.py
urh.dev.gr.scripts.rtl-sdr_recv.top_block
from gnuradio import blocks import osmosdr from gnuradio import gr class top_block(gr.top_block): def __init__(self, sample_rate, frequency, freq_correction, rf_gain, if_gain, bb_gain, bandwidth, port): gr.top_block.__init__(self, 'Top Block') self.sample_rate = sample_rate self.rf_gain = ...
class top_block(gr.top_block): def __init__(self, sample_rate, frequency, freq_correction, rf_gain, if_gain, bb_gain, bandwidth, port): pass def get_sample_rate(self): pass def set_sample_rate(self, sample_rate): pass def get_rf_gain(self): pass def set_rf_gain(...
24
0
4
0
4
0
1
0
1
1
0
0
23
13
23
23
111
25
86
47
52
0
74
37
50
1
1
0
23
24,125
jopohl/urh
jopohl_urh/src/urh/dev/gr/scripts/sdrplay_recv.py
urh.dev.gr.scripts.sdrplay_recv.top_block
from gnuradio import gr from gnuradio import blocks import osmosdr class top_block(gr.top_block): def __init__(self, sample_rate, frequency, freq_correction, rf_gain, if_gain, bb_gain, bandwidth, port): gr.top_block.__init__(self, 'Top Block') self.sample_rate = sample_rate self.rf_gain = ...
class top_block(gr.top_block): def __init__(self, sample_rate, frequency, freq_correction, rf_gain, if_gain, bb_gain, bandwidth, port): pass def get_sample_rate(self): pass def set_sample_rate(self, sample_rate): pass def get_rf_gain(self): pass def set_rf_gain(...
24
0
4
0
4
0
1
0
1
1
0
0
23
13
23
23
113
25
88
47
54
0
74
37
50
1
1
0
23
24,126
jopohl/urh
jopohl_urh/src/urh/dev/gr/scripts/usrp_recv.py
urh.dev.gr.scripts.usrp_recv.top_block
from gnuradio import gr from gnuradio import blocks import osmosdr class top_block(gr.top_block): def __init__(self, sample_rate, frequency, freq_correction, rf_gain, if_gain, bb_gain, bandwidth, port): gr.top_block.__init__(self, 'Top Block') self.sample_rate = sample_rate self.rf_gain = ...
class top_block(gr.top_block): def __init__(self, sample_rate, frequency, freq_correction, rf_gain, if_gain, bb_gain, bandwidth, port): pass def get_sample_rate(self): pass def set_sample_rate(self, sample_rate): pass def get_rf_gain(self): pass def set_rf_gain(...
24
0
4
0
4
0
1
0
1
1
0
0
23
13
23
23
111
25
86
47
52
0
74
37
50
1
1
0
23
24,127
jopohl/urh
jopohl_urh/src/urh/dev/gr/scripts/usrp_send.py
urh.dev.gr.scripts.usrp_send.top_block
from gnuradio import gr import osmosdr from gnuradio import blocks class top_block(gr.top_block): def __init__(self, sample_rate, frequency, freq_correction, rf_gain, if_gain, bb_gain, bandwidth, port): gr.top_block.__init__(self, 'Top Block') self.sample_rate = sample_rate self.rf_gain = ...
class top_block(gr.top_block): def __init__(self, sample_rate, frequency, freq_correction, rf_gain, if_gain, bb_gain, bandwidth, port): pass def get_sample_rate(self): pass def set_sample_rate(self, sample_rate): pass def get_rf_gain(self): pass def set_rf_gain(...
24
0
4
0
4
0
1
0
1
1
0
0
23
13
23
23
111
25
86
47
52
0
74
37
50
1
1
0
23
24,128
jopohl/urh
jopohl_urh/src/urh/dev/native/AirSpy.py
urh.dev.native.AirSpy.AirSpy
from urh.dev.native.lib import airspy from multiprocessing.connection import Connection import numpy as np from urh.dev.native.Device import Device from urh.util.Logger import logger class AirSpy(Device): DEVICE_LIB = airspy ASYNCHRONOUS = True DEVICE_METHODS = Device.DEVICE_METHODS.copy() DEVICE_METHO...
class AirSpy(Device): @classmethod def setup_device(cls, ctrl_connection: Connection, device_identifier): pass @classmethod def shutdown_device(cls, ctrl_connection, is_tx=False): pass @classmethod def enter_async_receive_mode(cls, data_connection: Connection, ctrl_connection: ...
10
0
9
1
8
0
1
0
1
3
0
0
1
2
5
80
64
9
55
30
34
0
28
15
22
1
2
0
5
24,129
jopohl/urh
jopohl_urh/src/urh/dev/native/BladeRF.py
urh.dev.native.BladeRF.BladeRF
from multiprocessing import Array from urh.dev.native.lib import bladerf from urh.dev.native.Device import Device from multiprocessing.connection import Connection import numpy as np from collections import OrderedDict class BladeRF(Device): SYNC_RX_CHUNK_SIZE = 16384 SYNC_TX_CHUNK_SIZE = 16384 DEVICE_LIB ...
class BladeRF(Device): @classmethod def get_device_list(cls): pass @classmethod def adapt_num_read_samples_to_sample_rate(cls, sample_rate): pass @classmethod def setup_device(cls, ctrl_connection: Connection, device_identifier): pass @classmethod def init_devic...
28
0
6
0
6
0
1
0
1
6
0
0
3
1
14
89
126
19
107
52
68
0
54
28
39
3
2
1
16
24,130
jopohl/urh
jopohl_urh/src/urh/dev/native/Device.py
urh.dev.native.Device.Device
from multiprocessing.connection import Connection from collections import OrderedDict import time import threading import numpy as np from urh.util.Formatter import Formatter from urh import settings from multiprocessing import Value, Process, Pipe from pickle import UnpicklingError from urh.util.Logger import logger f...
class Device(object): class Command(Enum): @classmethod def get_device_list(cls): pass @classmethod def process_command(cls, command, ctrl_connection, is_tx: bool): pass @classmethod def setup_device(cls, ctrl_connection: Connection, device_identifier): pass @c...
128
0
9
1
8
0
2
0.02
1
24
4
11
59
48
75
75
843
140
695
254
540
13
497
170
420
14
1
4
168
24,131
jopohl/urh
jopohl_urh/src/urh/dev/native/HackRF.py
urh.dev.native.HackRF.HackRF
from collections import OrderedDict import numpy as np from urh.dev.native.Device import Device from multiprocessing.connection import Connection from urh.dev.native.lib import hackrf from multiprocessing import Array class HackRF(Device): DEVICE_LIB = hackrf ASYNCHRONOUS = True DEVICE_METHODS = Device.DEV...
class HackRF(Device): @classmethod def get_device_list(cls): pass @classmethod def setup_device(cls, ctrl_connection: Connection, device_identifier): pass @classmethod def shutdown_device(cls, ctrl_conn: Connection, is_tx: bool): pass @classmethod def enter_asyn...
20
0
10
1
9
0
1
0
1
5
0
0
3
2
10
85
128
16
112
44
81
0
51
24
40
2
2
1
13
24,132
jopohl/urh
jopohl_urh/src/urh/dev/native/LimeSDR.py
urh.dev.native.LimeSDR.LimeSDR
from collections import OrderedDict import numpy as np from urh.dev.native.Device import Device from multiprocessing import Array from multiprocessing.connection import Connection from urh.dev.native.lib import limesdr class LimeSDR(Device): SYNC_RX_CHUNK_SIZE = 32768 SYNC_TX_CHUNK_SIZE = 32768 RECV_FIFO_S...
class LimeSDR(Device): @classmethod def get_device_list(cls): pass @classmethod def adapt_num_read_samples_to_sample_rate(cls, sample_rate): pass @classmethod def setup_device(cls, ctrl_connection: Connection, device_identifier): pass @classmethod def init_devic...
29
0
8
0
7
0
1
0.01
1
6
0
0
4
1
15
90
171
25
145
60
105
1
80
36
64
3
2
1
19
24,133
jopohl/urh
jopohl_urh/src/urh/dev/native/PlutoSDR.py
urh.dev.native.PlutoSDR.PlutoSDR
from urh.dev.native.lib import plutosdr from multiprocessing import Array from collections import OrderedDict import numpy as np import re from urh.dev.native.Device import Device from multiprocessing.connection import Connection class PlutoSDR(Device): SYNC_RX_CHUNK_SIZE = 65536 SYNC_TX_CHUNK_SIZE = 65536 ...
class PlutoSDR(Device): @classmethod def get_device_list(cls): pass @classmethod def adapt_num_read_samples_to_sample_rate(cls, sample_rate): pass @classmethod def setup_device(cls, ctrl_connection: Connection, device_identifier): pass @classmethod def init_devi...
28
0
6
0
6
0
1
0
1
8
0
0
3
1
14
89
122
18
104
53
65
0
60
29
45
5
2
2
18
24,134
jopohl/urh
jopohl_urh/src/urh/dev/native/RTLSDR.py
urh.dev.native.RTLSDR.RTLSDR
from collections import OrderedDict from urh.util.Logger import logger from urh.dev.native.lib import rtlsdr import numpy as np from multiprocessing.connection import Connection from urh.dev.native.Device import Device class RTLSDR(Device): DEVICE_LIB = rtlsdr ASYNCHRONOUS = False DEVICE_METHODS = Device.D...
class RTLSDR(Device): @classmethod def get_device_list(cls): pass @classmethod def setup_device(cls, ctrl_connection: Connection, device_identifier): pass @classmethod def prepare_sync_receive(cls, ctrl_connection: Connection): pass @classmethod def receive_sync...
21
0
6
0
6
0
1
0.03
1
6
0
0
4
4
11
86
103
15
87
35
64
3
41
24
29
2
2
1
12
24,135
jopohl/urh
jopohl_urh/src/urh/dev/native/RTLSDRTCP.py
urh.dev.native.RTLSDRTCP.RTLSDRTCP
import select from urh.dev.native.Device import Device from urh.util.Logger import logger import socket import numpy as np class RTLSDRTCP(Device): MAXDATASIZE = 65536 ENDIAN = 'big' RTL_TCP_CONSTS = {'centerFreq': 1, 'sampleRate': 2, 'tunerGainMode': 3, 'tunerGain': 4, 'freqCorrection': 5, 'tunerIFGain': ...
class RTLSDRTCP(Device): @staticmethod def receive_sync(data_connection, ctrl_connection, device_number: int, center_freq: int, sample_rate: int, bandwidth: int, gain: int, freq_correction: int, direct_sampling_mode: int, bias_tee_enabled: bool, device_ip: str, port: int): pass def process_comman...
13
0
25
2
22
1
4
0.05
1
6
0
0
7
8
9
84
261
27
226
57
191
12
116
30
106
12
2
4
37
24,136
jopohl/urh
jopohl_urh/src/urh/dev/native/Rad1o.py
urh.dev.native.Rad1o.Rad1o
import numpy as np from multiprocessing import Array from collections import OrderedDict from multiprocessing.connection import Connection from urh.dev.native.lib import hackrf from urh.dev.native.Device import Device class Rad1o(Device): DEVICE_LIB = hackrf ASYNCHRONOUS = True DEVICE_METHODS = Device.DEVI...
class Rad1o(Device): @classmethod def get_device_list(cls): pass @classmethod def setup_device(cls, ctrl_connection: Connection, device_identifier): pass @classmethod def shutdown_device(cls, ctrl_conn: Connection, is_tx: bool): pass @classmethod def enter_async...
20
0
10
1
9
0
1
0
1
5
0
0
3
2
10
85
126
16
110
44
79
0
51
24
40
2
2
1
13
24,137
jopohl/urh
jopohl_urh/src/urh/dev/native/SDRPlay.py
urh.dev.native.SDRPlay.SDRPlay
from urh.dev.native.Device import Device from urh.dev.native.lib import sdrplay from collections import OrderedDict from urh.util.Logger import logger from multiprocessing.connection import Connection import numpy as np class SDRPlay(Device): DEVICE_LIB = sdrplay ASYNCHRONOUS = True DEVICE_METHODS = Device...
class SDRPlay(Device): def __init__(self, center_freq, sample_rate, bandwidth, gain, if_gain=1, baseband_gain=1, resume_on_full_receive_buffer=False): pass @staticmethod def device_dict_to_string(d): pass @property def device_parameters(self): pass @property def has...
18
0
14
1
14
0
1
0
1
9
0
0
3
2
9
84
156
16
140
48
109
0
59
26
49
3
2
1
12
24,138
jopohl/urh
jopohl_urh/src/urh/dev/native/SendConfig.py
urh.dev.native.SendConfig.SendConfig
from multiprocessing import Value from urh.util.RingBuffer import RingBuffer import numpy as np class SendConfig(object): def __init__(self, send_buffer, current_sent_index: Value, current_sending_repeat: Value, total_samples: int, sending_repeats: int, continuous: bool=False, iq_to_bytes_method: callable=None, c...
class SendConfig(object): def __init__(self, send_buffer, current_sent_index: Value, current_sending_repeat: Value, total_samples: int, sending_repeats: int, continuous: bool=False, iq_to_bytes_method: callable=None, continuous_send_ring_buffer: RingBuffer=None): pass def get_data_to_send(self, buffe...
5
0
15
1
14
1
3
0.05
1
5
1
0
4
8
4
4
65
6
58
26
43
3
36
16
31
5
1
3
11
24,139
jopohl/urh
jopohl_urh/src/urh/dev/native/SoundCard.py
urh.dev.native.SoundCard.SoundCard
from collections import OrderedDict from urh.util.Logger import logger import pyaudio from multiprocessing import Array from urh.dev.native.Device import Device from multiprocessing.connection import Connection import numpy as np class SoundCard(Device): DEVICE_LIB = pyaudio ASYNCHRONOUS = False DEVICE_MET...
class SoundCard(Device): @classmethod def init_device(cls, ctrl_connection: Connection, is_tx: bool, parameters: OrderedDict) -> bool: pass @classmethod def setup_device(cls, ctrl_connection: Connection, device_identifier): pass @classmethod def prepare_sync_receive(cls, ctrl_c...
22
0
9
0
9
0
2
0.01
1
9
0
0
2
2
11
86
132
16
115
43
91
1
74
27
62
4
2
2
21
24,140
jopohl/urh
jopohl_urh/src/urh/dev/native/USRP.py
urh.dev.native.USRP.USRP
from urh.dev.native.Device import Device from urh.dev.native.lib import usrp from multiprocessing import Array from multiprocessing.connection import Connection from collections import OrderedDict import numpy as np class USRP(Device): DEVICE_METHODS = Device.DEVICE_METHODS.copy() DEVICE_METHODS.update({'SET_S...
class USRP(Device): @classmethod def get_device_list(cls): pass @classmethod def adapt_num_read_samples_to_sample_rate(cls, sample_rate): pass @classmethod def setup_device(cls, ctrl_connection: Connection, device_identifier): pass @classmethod def init_device(c...
29
0
7
0
6
0
1
0.01
1
6
0
0
4
3
15
90
143
22
121
58
81
1
68
34
52
3
2
1
18
24,141
jopohl/urh
jopohl_urh/src/urh/models/FieldTypeTableModel.py
urh.models.FieldTypeTableModel.FieldTypeTableModel
from PyQt5.QtCore import QAbstractTableModel, Qt, QModelIndex from urh.signalprocessing.ProtocoLabel import ProtocolLabel from urh.signalprocessing.FieldType import FieldType class FieldTypeTableModel(QAbstractTableModel): header_labels = ['Caption', 'Function', 'Default display type'] def __init__(self, fiel...
class FieldTypeTableModel(QAbstractTableModel): def __init__(self, fieldtypes, parent=None): ''' :type fieldtypes: list of FieldType :param parent: ''' pass def update(self): pass def columnCount(self, parent=None, *args, **kwargs): pass def r...
9
1
7
1
6
1
3
0.08
1
7
3
0
8
1
8
8
66
12
50
17
41
4
47
17
38
8
1
4
21
24,142
jopohl/urh
jopohl_urh/src/urh/models/FileFilterProxyModel.py
urh.models.FileFilterProxyModel.FileFilterProxyModel
from PyQt5.QtCore import QModelIndex, Qt, QSortFilterProxyModel from PyQt5.QtGui import QFont, QColor class FileFilterProxyModel(QSortFilterProxyModel): def __init__(self, parent=None): super().__init__(parent) self.open_files = set() def filterAcceptsRow(self, source_row: int, source_parent:...
class FileFilterProxyModel(QSortFilterProxyModel): def __init__(self, parent=None): pass def filterAcceptsRow(self, source_row: int, source_parent: QModelIndex): pass def get_file_path(self, index: QModelIndex): pass def data(self, index: QModelIndex, role=None): pas...
5
0
5
0
5
0
2
0
1
3
0
0
4
1
4
4
24
4
20
9
15
0
19
9
14
5
1
3
8
24,143
jopohl/urh
jopohl_urh/src/urh/models/FileIconProvider.py
urh.models.FileIconProvider.FileIconProvider
from PyQt5.QtGui import QIcon import os from PyQt5.QtCore import QFileInfo from urh import settings from PyQt5.QtWidgets import QFileIconProvider class FileIconProvider(QFileIconProvider): def __init__(self): super().__init__() def icon(self, arg): if isinstance(arg, QFileInfo): t...
class FileIconProvider(QFileIconProvider): def __init__(self): pass def icon(self, arg): pass
3
0
9
1
8
1
3
0.06
1
1
0
0
2
0
2
2
19
2
16
3
13
1
11
3
8
4
1
3
5
24,144
jopohl/urh
jopohl_urh/src/urh/models/FileSystemModel.py
urh.models.FileSystemModel.FileSystemModel
from PyQt5.QtWidgets import QFileSystemModel from PyQt5.QtCore import QDir class FileSystemModel(QFileSystemModel): def __init__(self, parent=None): super().__init__(parent) self.setFilter(QDir.Files | QDir.Dirs | QDir.NoDotAndDotDot) self.setReadOnly(True) def columnCount(self, QMode...
class FileSystemModel(QFileSystemModel): def __init__(self, parent=None): pass def columnCount(self, QModelIndex_parent=None, *args, **kwargs): pass
3
0
3
0
3
0
1
0
1
1
0
0
2
0
2
2
8
1
7
3
4
0
7
3
4
1
1
0
2
24,145
jopohl/urh
jopohl_urh/src/urh/models/FuzzingTableModel.py
urh.models.FuzzingTableModel.FuzzingTableModel
import math from PyQt5.QtCore import QAbstractTableModel, QModelIndex, Qt import numpy from urh.signalprocessing.ProtocoLabel import ProtocolLabel from PyQt5.QtGui import QFont class FuzzingTableModel(QAbstractTableModel): def __init__(self, fuzzing_label: ProtocolLabel, proto_view: int, parent=None): sup...
class FuzzingTableModel(QAbstractTableModel): def __init__(self, fuzzing_label: ProtocolLabel, proto_view: int, parent=None): pass def update(self): pass def rowCount(self, QModelIndex_parent=None, *args, **kwargs): pass def columnCount(self, QModelIndex_parent=None, *args, ...
12
0
13
1
12
0
4
0
1
7
1
0
11
5
11
11
153
22
131
43
119
0
98
43
86
9
1
3
40
24,146
jopohl/urh
jopohl_urh/src/urh/models/GeneratorListModel.py
urh.models.GeneratorListModel.GeneratorListModel
from urh.signalprocessing.ProtocoLabel import ProtocolLabel from PyQt5.QtCore import QAbstractListModel, Qt, QModelIndex, pyqtSignal from urh.signalprocessing.Message import Message from urh import settings class GeneratorListModel(QAbstractListModel): protolabel_fuzzing_status_changed = pyqtSignal(ProtocolLabel) ...
class GeneratorListModel(QAbstractListModel): def __init__(self, message: Message, parent=None): pass @property def labels(self): pass @property def message(self): pass @message.setter def message(self): pass def last_index(self): pass def ...
17
0
6
0
5
0
2
0
1
6
1
0
13
1
13
13
92
16
76
28
59
0
68
25
54
7
1
2
28
24,147
jopohl/urh
jopohl_urh/src/urh/models/GeneratorTableModel.py
urh.models.GeneratorTableModel.GeneratorTableModel
from urh.signalprocessing.ChecksumLabel import ChecksumLabel from collections import defaultdict from urh.signalprocessing.Message import Message from urh.signalprocessing.ProtocolAnalyzer import ProtocolAnalyzer from PyQt5.QtCore import Qt, QModelIndex, pyqtSlot, pyqtSignal from urh.ui.actions.Clear import Clear from ...
class GeneratorTableModel(TableModel): def __init__(self, tree_root_item: ProtocolTreeItem, decodings, parent=None): pass def refresh_fonts(self): pass def delete_range(self, msg_start: int, msg_end: int, index_start: int, index_end: int): pass def flags(self, index: QModelI...
15
0
18
2
16
0
4
0.02
1
20
8
0
13
10
13
34
250
40
208
67
191
5
137
63
123
9
2
4
46
24,148
jopohl/urh
jopohl_urh/src/urh/models/GeneratorTreeModel.py
urh.models.GeneratorTreeModel.GeneratorTreeModel
from urh.models.ProtocolTreeModel import ProtocolTreeModel from PyQt5.QtGui import QIcon from PyQt5.QtCore import QModelIndex, Qt class GeneratorTreeModel(ProtocolTreeModel): def __init__(self, controller, parent=None): super().__init__(controller, parent) def set_root_item(self, root_item): ...
class GeneratorTreeModel(ProtocolTreeModel): def __init__(self, controller, parent=None): pass def set_root_item(self, root_item): pass def flags(self, index: QModelIndex): pass def mimeTypes(self): pass def data(self, index: QModelIndex, role=None): pas...
6
0
4
0
4
0
2
0.09
1
1
0
0
5
1
5
36
27
5
22
8
16
2
16
8
10
3
2
1
8
24,149
jopohl/urh
jopohl_urh/src/urh/models/LabelValueTableModel.py
urh.models.LabelValueTableModel.LabelValueTableModel
from urh.signalprocessing.ProtocoLabel import ProtocolLabel import array from urh.signalprocessing.ProtocolAnalyzer import ProtocolAnalyzer from PyQt5.QtGui import QFont from PyQt5.QtCore import QAbstractTableModel, Qt, QModelIndex, pyqtSignal from urh.signalprocessing.ChecksumLabel import ChecksumLabel from urh.util i...
class LabelValueTableModel(QAbstractTableModel): def __init__(self, proto_analyzer: ProtocolAnalyzer, controller, parent=None): pass def __display_data(self, lbl: ProtocolLabel, expected_checksum: array=None): pass @property def message_index(self): pass @message_index.set...
19
0
12
1
11
0
3
0.01
1
8
3
0
15
6
15
15
207
31
176
45
157
1
121
42
105
18
1
3
51
24,150
jopohl/urh
jopohl_urh/src/urh/models/MessageTypeTableModel.py
urh.models.MessageTypeTableModel.MessageTypeTableModel
from PyQt5.QtCore import Qt, QModelIndex, QAbstractTableModel, pyqtSignal from urh.signalprocessing.MessageType import MessageType from PyQt5.QtGui import QFont class MessageTypeTableModel(QAbstractTableModel): message_type_visibility_changed = pyqtSignal(MessageType) message_type_removed = pyqtSignal(MessageT...
class MessageTypeTableModel(QAbstractTableModel): def __init__(self, message_types: list, parent=None): pass def get_num_active_rules_of_message_type_at(self, index: int) -> int: pass def rowCount(self, QModelIndex_parent=None, *args, **kwargs): pass def columnCount(self, pa...
12
0
7
0
7
0
3
0.01
1
6
0
0
11
2
11
11
94
15
79
24
67
1
67
24
55
11
1
2
30
24,151
jopohl/urh
jopohl_urh/src/urh/models/PLabelTableModel.py
urh.models.PLabelTableModel.PLabelTableModel
from PyQt5.QtCore import QAbstractTableModel, pyqtSignal, Qt, QModelIndex from urh.signalprocessing.Message import Message from urh.simulator.SimulatorProtocolLabel import SimulatorProtocolLabel from urh.signalprocessing.ProtocoLabel import ProtocolLabel class PLabelTableModel(QAbstractTableModel): header_labels =...
class PLabelTableModel(QAbstractTableModel): def __init__(self, message: Message, field_types, parent=None): ''' :param message: :type field_types: list of FieldType :param parent: ''' pass @property def message(self) -> Message: pass @message.se...
16
1
10
1
8
1
3
0.06
1
8
3
0
13
5
13
13
147
25
116
34
100
7
90
32
76
10
1
2
35
24,152
jopohl/urh
jopohl_urh/src/urh/models/ParticipantLegendListModel.py
urh.models.ParticipantLegendListModel.ParticipantLegendListModel
from urh import settings from PyQt5.QtGui import QColor from PyQt5.QtCore import QAbstractListModel, Qt, QModelIndex class ParticipantLegendListModel(QAbstractListModel): def __init__(self, participants, parent=None): """ :type participants: list of Participant """ super().__init_...
class ParticipantLegendListModel(QAbstractListModel): def __init__(self, participants, parent=None): ''' :type participants: list of Participant ''' pass def rowCount(self, QModelIndex_parent=None, *args, **kwargs): pass def data(self, index: QModelIndex, role=Non...
6
1
9
0
8
1
3
0.07
1
3
0
0
5
1
5
5
51
5
43
10
37
3
32
10
26
11
1
3
15
24,153
jopohl/urh
jopohl_urh/src/urh/models/ParticipantListModel.py
urh.models.ParticipantListModel.ParticipantListModel
from PyQt5.QtCore import QAbstractListModel, Qt, QModelIndex, pyqtSignal class ParticipantListModel(QAbstractListModel): show_state_changed = pyqtSignal() def __init__(self, participants, parent=None): """ :type participants: list of Participant """ super().__init__(parent) ...
class ParticipantListModel(QAbstractListModel): def __init__(self, participants, parent=None): ''' :type participants: list of Participant ''' pass def rowCount(self, QModelIndex_parent=None, *args, **kwargs): pass def data(self, index: QModelIndex, role=None): ...
7
1
9
1
7
1
3
0.07
1
4
0
0
6
2
6
6
59
10
46
11
39
3
40
11
33
9
1
3
19
24,154
jopohl/urh
jopohl_urh/src/urh/models/ParticipantTableModel.py
urh.models.ParticipantTableModel.ParticipantTableModel
from urh import settings from urh.signalprocessing.Participant import Participant import itertools from PyQt5.QtCore import QAbstractTableModel, pyqtSignal, QModelIndex, Qt, QItemSelection import random class ParticipantTableModel(QAbstractTableModel): INITIAL_NAMES = ['Alice', 'Bob', 'Carl', 'Dave', 'Eve', 'Frank...
class ParticipantTableModel(QAbstractTableModel): def __init__(self, participants): pass def update(self): pass def columnCount(self, parent: QModelIndex=None, *args, **kwargs): pass def rowCount(self, parent: QModelIndex=None, *args, **kwargs): pass def headerD...
14
0
14
2
12
0
3
0.01
1
9
1
0
13
2
13
13
214
35
178
42
164
2
114
42
100
9
1
3
44
24,155
jopohl/urh
jopohl_urh/src/urh/models/PluginListModel.py
urh.models.PluginListModel.PluginListModel
from PyQt5.QtGui import QFont from urh import settings from PyQt5.QtCore import QAbstractListModel, Qt, QModelIndex class PluginListModel(QAbstractListModel): def __init__(self, plugins, highlighted_plugins=None, parent=None): """ :type plugins: list of Plugin :type highlighted_plugins: li...
class PluginListModel(QAbstractListModel): def __init__(self, plugins, highlighted_plugins=None, parent=None): ''' :type plugins: list of Plugin :type highlighted_plugins: list of Plugin ''' pass def rowCount(self, QModelIndex_parent=None, *args, **kwargs): pas...
6
1
7
0
6
1
2
0.13
1
1
0
0
5
2
5
5
40
4
32
10
26
4
23
10
17
6
1
1
12
24,156
jopohl/urh
jopohl_urh/src/urh/models/ProtocolTableModel.py
urh.models.ProtocolTableModel.ProtocolTableModel
from urh.models.TableModel import TableModel from urh import settings from urh.ui.actions.DeleteBitsAndPauses import DeleteBitsAndPauses from collections import defaultdict from urh.signalprocessing.ProtocolAnalyzer import ProtocolAnalyzer from PyQt5.QtCore import pyqtSignal, QModelIndex, Qt class ProtocolTableModel(T...
class ProtocolTableModel(TableModel): def __init__(self, proto_analyzer: ProtocolAnalyzer, participants, controller, parent=None): pass @property def diff_columns(self) -> defaultdict(set): pass @property def refindex(self): pass @refindex.setter def refindex(self):...
11
0
8
1
8
0
2
0.02
1
6
2
0
7
5
7
28
71
12
59
23
46
1
40
17
32
5
2
2
16
24,157
jopohl/urh
jopohl_urh/src/urh/models/ProtocolTreeItem.py
urh.models.ProtocolTreeItem.ProtocolTreeItem
from urh.signalprocessing.ProtocolGroup import ProtocolGroup from urh.signalprocessing.Encoding import Encoding from PyQt5.QtCore import Qt import copy from urh.signalprocessing.ProtocolAnalyzer import ProtocolAnalyzer class ProtocolTreeItem(object): def __init__(self, data: ProtocolAnalyzer or ProtocolGroup, par...
class ProtocolTreeItem(object): def __init__(self, data: ProtocolAnalyzer or ProtocolGroup, parent): ''' :param data: ProtocolGroup for Folder or ProtoAnalyzer for ProtoFrame :type parent: ProtocolTreeItem :return: ''' pass @property def protocol(self): ...
39
3
6
0
5
1
2
0.11
1
10
3
0
31
5
31
31
211
41
157
56
118
18
127
48
95
5
1
4
57
24,158
jopohl/urh
jopohl_urh/src/urh/models/ProtocolTreeModel.py
urh.models.ProtocolTreeModel.ProtocolTreeModel
from urh.models.ProtocolTreeItem import ProtocolTreeItem from urh.signalprocessing.ProtocolAnalyzer import ProtocolAnalyzer from PyQt5.QtWidgets import QMessageBox, QWidget from urh.util.Logger import logger from PyQt5.QtGui import QIcon, QFont from urh.signalprocessing.ProtocolGroup import ProtocolGroup from PyQt5.QtC...
class ProtocolTreeModel(QAbstractItemModel): def __init__(self, controller, parent=None): pass @property def protocols(self): ''' :rtype: dict[int, list of ProtocolAnalyzer] ''' pass @property def ngroups(self): pass @property def groups(self...
36
5
11
1
9
1
3
0.1
1
14
3
1
31
2
31
31
366
61
279
85
243
28
226
81
194
19
1
3
81
24,159
jopohl/urh
jopohl_urh/src/urh/models/RulesetTableModel.py
urh.models.RulesetTableModel.RulesetTableModel
from urh.signalprocessing.Ruleset import Ruleset, Rule from PyQt5.QtCore import QAbstractTableModel, Qt, QModelIndex class RulesetTableModel(QAbstractTableModel): header_labels = ['Start', 'End', 'Viewtype', 'Operator', 'Value'] def __init__(self, ruleset: Ruleset, operator_descriptions: list, parent=None): ...
class RulesetTableModel(QAbstractTableModel): def __init__(self, ruleset: Ruleset, operator_descriptions: list, parent=None): pass def update(self): pass def columnCount(self, parent: QModelIndex=None, *args, **kwargs): pass def rowCount(self, parent: QModelIndex=None, *args...
9
0
7
0
7
0
3
0
1
6
2
0
8
2
8
8
66
11
55
17
46
0
50
17
41
8
1
3
23
24,160
jopohl/urh
jopohl_urh/src/urh/models/SimulatorMessageFieldModel.py
urh.models.SimulatorMessageFieldModel.SimulatorMessageFieldModel
from urh.signalprocessing.FieldType import FieldType from PyQt5.QtWidgets import qApp from PyQt5.QtCore import QAbstractTableModel, Qt, QModelIndex, pyqtSignal from urh.signalprocessing.ProtocoLabel import ProtocolLabel from urh import settings from urh.simulator.SimulatorProtocolLabel import SimulatorProtocolLabel fro...
class SimulatorMessageFieldModel(QAbstractTableModel): def __init__(self, controller, parent=None): pass def update(self): pass def columnCount(self, parent: QModelIndex=None, *args, **kwargs): pass def rowCount(self, parent: QModelIndex=None, *args, **kwargs): pass ...
12
0
15
1
14
1
5
0.04
1
9
3
0
11
2
11
11
184
24
160
33
148
6
116
33
104
30
1
4
60
24,161
jopohl/urh
jopohl_urh/src/urh/models/SimulatorMessageTableModel.py
urh.models.SimulatorMessageTableModel.SimulatorMessageTableModel
from PyQt5.QtCore import QModelIndex, Qt from urh.signalprocessing.ProtocolAnalyzer import ProtocolAnalyzer from collections import defaultdict from urh.models.TableModel import TableModel class SimulatorMessageTableModel(TableModel): def __init__(self, project_manager, parent=None): super().__init__(None...
class SimulatorMessageTableModel(TableModel): def __init__(self, project_manager, parent=None): pass def update(self): pass def refresh_label_mask(self): pass def refresh_vertical_header(self): pass def delete_range(self, msg_start: int, msg_end: int, index_star...
8
0
12
2
10
0
3
0
1
6
1
0
7
6
7
28
91
21
70
28
60
0
57
25
49
6
2
3
24
24,162
jopohl/urh
jopohl_urh/src/urh/models/SimulatorParticipantListModel.py
urh.models.SimulatorParticipantListModel.SimulatorParticipantListModel
from urh.simulator.SimulatorConfiguration import SimulatorConfiguration from urh.signalprocessing.Participant import Participant from PyQt5.QtCore import Qt, QModelIndex, QAbstractListModel, pyqtSignal class SimulatorParticipantListModel(QAbstractListModel): participant_simulate_changed = pyqtSignal(Participant) ...
class SimulatorParticipantListModel(QAbstractListModel): def __init__(self, config: SimulatorConfiguration, parent=None): pass def update(self): pass def rowCount(self, parent: QModelIndex=None, *args, **kwargs): pass def data(self, index: QModelIndex, role=Qt.DisplayRole): ...
7
0
5
1
5
0
2
0
1
2
1
0
6
1
6
6
38
9
29
13
22
0
28
13
21
5
1
1
11
24,163
jopohl/urh
jopohl_urh/src/urh/models/TableModel.py
urh.models.TableModel.TableModel
import array from urh.util.Logger import logger import math from PyQt5.QtWidgets import QUndoStack from urh.ui.actions.InsertColumn import InsertColumn from urh.signalprocessing.ChecksumLabel import ChecksumLabel from PyQt5.QtGui import QFont, QColor from urh.util import util from collections import defaultdict from ur...
class TableModel(QAbstractTableModel): def __init__(self, participants, parent=None): pass @property def participants(self): pass @participants.setter def participants(self): pass @property def proto_view(self): pass @proto_view.setter def proto_view...
26
3
20
2
17
1
4
0.06
1
13
2
3
21
23
21
21
455
72
368
103
342
21
249
98
227
14
1
3
91
24,164
jopohl/urh
jopohl_urh/src/urh/plugins/FlipperZeroSub/FlipperZeroSubPlugin.py
urh.plugins.FlipperZeroSub.FlipperZeroSubPlugin.FlipperZeroSubPlugin
from urh.util.Logger import logger import sys from urh.plugins.Plugin import SDRPlugin class FlipperZeroSubPlugin(SDRPlugin): def __init__(self): super().__init__(name='FlipperZeroSub') self.filetype = 'Flipper SubGhz RAW File' self.version = 1 self.protocol = 'RAW' self.ma...
class FlipperZeroSubPlugin(SDRPlugin): def __init__(self): pass def getFuriHalString(self, modulation_type, given_bandwidth_deviation=0): pass def write_sub_file(self, filename, messages, sample_rates, modulators, project_manager): pass
4
0
31
2
24
6
6
0.25
1
4
0
0
3
4
3
11
97
8
73
24
67
18
60
21
56
10
3
3
18
24,165
jopohl/urh
jopohl_urh/src/urh/plugins/InsertSine/InsertSinePlugin.py
urh.plugins.InsertSine.InsertSinePlugin.InsertSinePlugin
from PyQt5.QtGui import QBrush, QColor, QPen, QRegExpValidator import numpy as np import os from urh.util.Logger import logger from urh.signalprocessing.IQArray import IQArray from urh.util.Formatter import Formatter from PyQt5.QtWidgets import QApplication, QDialog from urh.ui.painting.SceneManager import SceneManager...
class InsertSinePlugin(SignalEditorPlugin): def __init__(self): pass @property def dialog_ui(self) -> QDialog: pass @property def amplitude(self) -> float: pass @amplitude.setter def amplitude(self) -> float: pass @property def frequency(self) -> flo...
48
0
8
1
8
0
2
0
1
8
3
0
27
11
27
35
280
47
233
74
183
1
151
52
123
7
3
2
44
24,166
jopohl/urh
jopohl_urh/src/urh/plugins/MessageBreak/MessageBreakAction.py
urh.plugins.MessageBreak.MessageBreakAction.MessageBreakAction
from urh.signalprocessing.Message import Message from PyQt5.QtWidgets import QUndoCommand import copy from urh.signalprocessing.ProtocolAnalyzer import ProtocolAnalyzer class MessageBreakAction(QUndoCommand): def __init__(self, proto_analyzer: ProtocolAnalyzer, msg_nr: int, pos: int): super().__init__() ...
class MessageBreakAction(QUndoCommand): def __init__(self, proto_analyzer: ProtocolAnalyzer, msg_nr: int, pos: int): pass def redo(self): pass def undo(self): pass def __get_zero_seq_indexes(self, message: str, following_zeros: int): ''' :rtype: list[tuple of...
5
1
13
1
11
1
2
0.07
1
6
2
0
4
4
4
4
56
8
45
15
40
3
30
15
25
6
1
3
9
24,167
jopohl/urh
jopohl_urh/src/urh/plugins/MessageBreak/MessageBreakPlugin.py
urh.plugins.MessageBreak.MessageBreakPlugin.MessageBreakPlugin
from ..MessageBreak.MessageBreakAction import MessageBreakAction from PyQt5.QtWidgets import QAction, QUndoStack, QMessageBox from ..Plugin import ProtocolPlugin from urh.signalprocessing.ProtocolAnalyzer import ProtocolAnalyzer class MessageBreakPlugin(ProtocolPlugin): def __init__(self): super().__init_...
class MessageBreakPlugin(ProtocolPlugin): def __init__(self): pass def get_action(self, parent, undo_stack: QUndoStack, sel_range, protocol: ProtocolAnalyzer, view: int): ''' :type parent: QTableView :type undo_stack: QUndoStack :type protocol_analyzers: list of Protoc...
4
1
12
1
8
2
2
0.27
1
4
2
0
3
2
3
12
38
5
26
15
15
7
19
8
15
3
3
1
5
24,168
jopohl/urh
jopohl_urh/src/urh/plugins/NetworkSDRInterface/NetworkSDRInterfacePlugin.py
urh.plugins.NetworkSDRInterface.NetworkSDRInterfacePlugin.NetworkSDRInterfacePlugin
import socket import socketserver import threading from urh import settings import numpy as np from urh.signalprocessing.IQArray import IQArray import time from urh.util.RingBuffer import RingBuffer from PyQt5.QtCore import pyqtSlot, pyqtSignal from urh.plugins.Plugin import SDRPlugin from urh.signalprocessing.Message ...
class NetworkSDRInterfacePlugin(SDRPlugin): class MyTCPHandler(socketserver.BaseRequestHandler): def handle(self): pass def __init__(self, raw_mode=False, resume_on_full_receive_buffer=False, spectrum=False, sending=False): ''' :param raw_mode: If true, sending and re...
40
3
14
1
12
1
3
0.07
1
17
4
0
24
21
27
35
437
65
354
104
306
24
247
84
217
10
3
5
72
24,169
jopohl/urh
jopohl_urh/src/urh/plugins/Plugin.py
urh.plugins.Plugin.Plugin
from PyQt5 import uic from PyQt5.QtCore import QObject, pyqtSignal, Qt, QSettings from urh.util.Logger import logger import logging import os class Plugin(QObject): enabled_changed = pyqtSignal() def __init__(self, name: str): super().__init__() self.__enabled = Qt.Unchecked self.name ...
class Plugin(QObject): def __init__(self, name: str): pass @property def settings_frame(self): pass @property def enabled(self) -> bool: pass @enabled.setter def enabled(self) -> bool: pass def load_description(self): pass def destroy_setti...
11
0
5
0
5
0
2
0
1
4
0
3
7
6
7
7
49
8
41
21
30
0
34
16
26
3
1
2
11
24,170
jopohl/urh
jopohl_urh/src/urh/plugins/Plugin.py
urh.plugins.Plugin.ProtocolPlugin
from PyQt5.QtWidgets import QUndoCommand, QUndoStack class ProtocolPlugin(Plugin): def __init__(self, name: str): Plugin.__init__(self, name) def get_action(self, parent, undo_stack: QUndoStack, sel_range, groups, view: int) -> QUndoCommand: """ :type parent: QTableView :type ...
class ProtocolPlugin(Plugin): def __init__(self, name: str): pass def get_action(self, parent, undo_stack: QUndoStack, sel_range, groups, view: int) -> QUndoCommand: ''' :type parent: QTableView :type undo_stack: QUndoStack :type groups: list of ProtocolGroups ...
3
1
6
0
3
3
1
0.71
1
3
0
2
2
0
2
9
13
1
7
5
2
5
5
3
2
1
2
0
2
24,171
jopohl/urh
jopohl_urh/src/urh/plugins/Plugin.py
urh.plugins.Plugin.SDRPlugin
class SDRPlugin(Plugin): def __init__(self, name: str): Plugin.__init__(self, name)
class SDRPlugin(Plugin): def __init__(self, name: str): pass
2
0
2
0
2
0
1
0
1
1
0
3
1
0
1
8
3
0
3
2
1
0
3
2
1
1
2
0
1
24,172
jopohl/urh
jopohl_urh/src/urh/plugins/Plugin.py
urh.plugins.Plugin.SignalEditorPlugin
class SignalEditorPlugin(Plugin): def __init__(self, name: str): Plugin.__init__(self, name)
class SignalEditorPlugin(Plugin): def __init__(self, name: str): pass
2
0
2
0
2
0
1
0
1
1
0
1
1
0
1
8
3
0
3
2
1
0
3
2
1
1
2
0
1
24,173
jopohl/urh
jopohl_urh/src/urh/plugins/PluginManager.py
urh.plugins.PluginManager.PluginManager
from urh.plugins.Plugin import Plugin, ProtocolPlugin import importlib from urh import settings from urh.util.Logger import logger import os class PluginManager(object): def __init__(self): self.plugin_path = os.path.dirname(os.path.realpath(__file__)) self.installed_plugins = self.load_installed_...
class PluginManager(object): def __init__(self): pass @property def protocol_plugins(self): pass def load_installed_plugins(self): ''':rtype: list of Plugin''' pass @staticmethod def load_plugin(plugin_name): pass def is_plugin_enabled(self, plugin...
9
1
7
0
7
0
2
0.02
1
4
1
0
5
2
6
6
52
7
44
20
35
1
37
17
30
5
1
3
12
24,174
jopohl/urh
jopohl_urh/src/urh/plugins/RfCat/RfCatPlugin.py
urh.plugins.RfCat.RfCatPlugin.RfCatPlugin
from urh.util.Errors import Errors from PyQt5.QtCore import pyqtSignal from urh.plugins.Plugin import SDRPlugin from urh.signalprocessing.Message import Message from urh import settings from threading import Thread import time import numpy as np from urh.util.Logger import logger import os from subprocess import PIPE, ...
class RfCatPlugin(SDRPlugin): def __init__(self): pass def __del__(self): pass @property def is_sending(self) -> bool: pass @is_sending.setter def is_sending(self) -> bool: pass @property def rfcat_is_found(self): pass def is_rfcat_executab...
28
0
9
0
9
0
2
0.02
1
13
2
0
20
15
22
30
242
25
216
69
180
5
152
52
129
15
3
4
49
24,175
jopohl/urh
jopohl_urh/src/urh/plugins/ZeroHide/ZeroHideAction.py
urh.plugins.ZeroHide.ZeroHideAction.ZeroHideAction
from urh.signalprocessing.ProtocolAnalyzer import ProtocolAnalyzer from PyQt5.QtWidgets import QUndoCommand class ZeroHideAction(QUndoCommand): def __init__(self, protocol: ProtocolAnalyzer, following_zeros: int, view: int, zero_hide_offsets: dict): super().__init__() self.protocol = protocol ...
class ZeroHideAction(QUndoCommand): def __init__(self, protocol: ProtocolAnalyzer, following_zeros: int, view: int, zero_hide_offsets: dict): pass def redo(self): pass def undo(self): pass def __get_zero_seq_indexes(self, message: str, following_zeros: int): ''' ...
5
1
17
2
14
1
4
0.05
1
7
1
0
4
4
4
4
72
12
57
26
46
3
45
20
40
7
1
3
15
24,176
jopohl/urh
jopohl_urh/src/urh/plugins/ZeroHide/ZeroHidePlugin.py
urh.plugins.ZeroHide.ZeroHidePlugin.ZeroHidePlugin
from ..ZeroHide.ZeroHideAction import ZeroHideAction from PyQt5.QtWidgets import QAction, QUndoStack from ..Plugin import ProtocolPlugin class ZeroHidePlugin(ProtocolPlugin): def __init__(self): super().__init__(name='ZeroHide') self.following_zeros = 5 if 'following_zeros' not in self.qsettings.a...
class ZeroHidePlugin(ProtocolPlugin): def __init__(self): pass def create_connects(self): pass def set_following_zeros(self): pass def get_action(self, parent, undo_stack: QUndoStack, sel_range, protocol, view: int): ''' :type parent: QTableView :type...
6
1
7
0
6
1
1
0.13
1
4
1
0
5
4
5
14
40
5
31
13
23
4
21
11
15
2
3
0
6
24,177
jopohl/urh
jopohl_urh/src/urh/signalprocessing/ChecksumLabel.py
urh.signalprocessing.ChecksumLabel.ChecksumLabel
from urh.signalprocessing.FieldType import FieldType import ast import array from urh.util.WSPChecksum import WSPChecksum from enum import Enum import xml.etree.ElementTree as ET from urh.signalprocessing.ProtocoLabel import ProtocolLabel from urh.util.GenericCRC import GenericCRC class ChecksumLabel(ProtocolLabel): ...
class ChecksumLabel(ProtocolLabel): class Category(Enum): def __init__(self, name: str, start: int, end: int, color_index: int, field_type: FieldType, fuzz_created=False, auto_created=False, data_range_start=0): pass def calculate_checksum(self, bits: array.array) -> array.array: pass ...
21
0
10
0
10
0
2
0.02
1
12
5
0
10
7
12
38
146
17
129
54
96
2
73
31
59
4
2
2
21
24,178
jopohl/urh
jopohl_urh/src/urh/signalprocessing/ContinuousModulator.py
urh.signalprocessing.ContinuousModulator.ContinuousModulator
from multiprocessing import Process, Value import time from urh import settings from urh.util.Logger import logger from urh.signalprocessing.Modulator import Modulator from urh.util.RingBuffer import RingBuffer class ContinuousModulator(object): """ This class is used in continuous sending mode. You pass a...
class ContinuousModulator(object): ''' This class is used in continuous sending mode. You pass a list of messages and modulators to it, and it takes care of modulating the messages sequentially. This avoids running out of RAM for large amounts of messages. ''' def __init__(self, messages, modu...
7
2
15
3
12
2
3
0.21
1
5
2
0
5
7
5
5
90
19
61
24
54
13
49
21
43
8
1
4
16
24,179
jopohl/urh
jopohl_urh/src/urh/signalprocessing/Encoding.py
urh.signalprocessing.Encoding.Encoding
from urh.util import util import copy import array from urh import settings from urh.util.GenericCRC import GenericCRC from xml.etree import ElementTree as ET class Encoding(object): """ Full featured encoding/decoding of protocols. """ class ErrorState: SUCCESS = 'success' PREAMBLE_NO...
class Encoding(object): ''' Full featured encoding/decoding of protocols. ''' class ErrorState: def __init__(self, chain=None): pass def __hash__(self): pass @property def symbol_len(self): pass @property def name(self): pass @property ...
49
3
24
2
21
2
6
0.11
1
14
2
0
31
19
37
37
964
107
788
186
739
87
574
176
535
29
1
6
213
24,180
jopohl/urh
jopohl_urh/src/urh/signalprocessing/FieldType.py
urh.signalprocessing.FieldType.FieldType
from urh import settings from enum import Enum from xml.dom import minidom import xml.etree.ElementTree as ET class FieldType(object): __slots__ = ['caption', 'function', 'display_format_index'] class Function(Enum): PREAMBLE = 'preamble' SYNC = 'synchronization' LENGTH = 'length' ...
class FieldType(object): class Function(Enum): def __init__(self, caption: str, function: Function, display_format_index: int=None): pass def __eq__(self, other): pass def __repr__(self): pass @staticmethod def from_caption(caption: str): pass @staticmeth...
16
4
11
1
8
2
2
0.16
1
6
1
0
4
3
9
9
131
23
94
45
76
15
64
37
53
5
1
3
21
24,181
jopohl/urh
jopohl_urh/src/urh/signalprocessing/Filter.py
urh.signalprocessing.Filter.Filter
from urh.cythonext import signal_functions from urh import settings import math from urh.util import util import numpy as np from urh.util.Logger import logger class Filter(object): BANDWIDTHS = {'Very Narrow': 0.001, 'Narrow': 0.01, 'Medium': 0.08, 'Wide': 0.1, 'Very Wide': 0.42} def __init__(self, taps: lis...
null
18
0
9
2
7
1
2
0.15
1
6
1
0
3
2
10
10
114
25
82
37
64
12
60
30
49
3
1
1
18
24,182
jopohl/urh
jopohl_urh/src/urh/signalprocessing/Filter.py
urh.signalprocessing.Filter.FilterType
from enum import Enum class FilterType(Enum): moving_average = 'moving average' dc_correction = 'DC correction' custom = 'custom'
class FilterType(Enum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
49
4
0
4
4
3
0
4
4
3
0
4
0
0
24,183
jopohl/urh
jopohl_urh/src/urh/signalprocessing/IQArray.py
urh.signalprocessing.IQArray.IQArray
import numpy as np import wave import tempfile from urh.cythonext.util import get_magnitudes import tarfile import os class IQArray(object): def __init__(self, data: np.ndarray, dtype=None, n=None, skip_conversion=False): if data is None: self.__data = np.zeros((n, 2), dtype, order='C') ...
class IQArray(object): def __init__(self, data: np.ndarray, dtype=None, n=None, skip_conversion=False): pass def __getitem__(self, item): pass def __setitem__(self, key, value: np.ndarray): pass def __len__(self): pass def __eq__(self, other): pass @...
46
0
9
0
8
0
3
0.05
1
7
0
0
26
1
30
30
309
43
256
57
208
13
171
38
140
28
1
3
90
24,184
jopohl/urh
jopohl_urh/src/urh/signalprocessing/Interval.py
urh.signalprocessing.Interval.Interval
class Interval(object): __slots__ = ['data'] def __init__(self, start: int, end: int): self.data = (start, end) @property def start(self): return self.data[0] @property def end(self): return self.data[1] def __hash__(self): return hash(self.data) def ...
class Interval(object): def __init__(self, start: int, end: int): pass @property def start(self): pass @property def end(self): pass def __hash__(self): pass def __len__(self): pass def __eq__(self, other): pass def __lt__(self, ot...
16
0
3
0
3
0
1
0
1
5
0
0
11
1
12
12
55
12
43
20
27
0
32
17
19
2
1
1
15
24,185
jopohl/urh
jopohl_urh/src/urh/signalprocessing/Message.py
urh.signalprocessing.Message.Message
import math from urh.signalprocessing.Participant import Participant import array from urh.signalprocessing.ProtocoLabel import ProtocolLabel from urh.signalprocessing.MessageType import MessageType from urh.signalprocessing.Encoding import Encoding from urh.util.Formatter import Formatter import time import xml.etree....
class Message(object): ''' A protocol message is a single line of a protocol. ''' def __init__(self, plain_bits, pause: int, message_type: MessageType, rssi=0, modulator_index=0, decoder=None, fuzz_created=False, bit_sample_pos=None, samples_per_symbol=100, participant=None, bits_per_symbol=1, timesta...
81
11
10
1
8
1
2
0.14
1
25
8
1
48
21
53
53
641
105
483
194
372
68
330
137
276
10
1
3
123
24,186
jopohl/urh
jopohl_urh/src/urh/signalprocessing/MessageType.py
urh.signalprocessing.MessageType.MessageType
from PyQt5.QtCore import Qt from urh.signalprocessing.ChecksumLabel import ChecksumLabel import uuid from urh.util.Logger import logger import xml.etree.ElementTree as ET from urh.signalprocessing.ProtocoLabel import ProtocolLabel import copy from urh import settings import random from urh.signalprocessing.FieldType im...
class MessageType(list): ''' A message type is a list of protocol fields. ''' def __init__(self, name: str, iterable=None, id=None, ruleset=None): pass def __hash__(self): pass def __getitem__(self, index) -> ProtocolLabel: pass def __repr__(self): pass ...
30
4
11
1
10
1
2
0.07
1
12
5
0
21
6
23
56
304
42
246
84
190
17
122
51
98
5
2
3
48
24,187
jopohl/urh
jopohl_urh/src/urh/signalprocessing/Modulator.py
urh.signalprocessing.Modulator.Modulator
import xml.etree.ElementTree as ET from PyQt5.QtGui import QPen from urh.cythonext import path_creator, signal_functions from urh.ui.painting.ZoomableScene import ZoomableScene import locale from urh import settings from urh.signalprocessing.IQArray import IQArray import numpy as np from urh.util.Formatter import Forma...
class Modulator(object): def __init__(self, name: str): pass def __eq__(self, other): pass @staticmethod def get_dtype(): pass @property def modulation_type(self) -> str: pass @modulation_type.setter def modulation_type(self) -> str: pass @p...
63
0
9
1
8
0
3
0.03
1
14
3
0
28
13
34
34
373
63
306
110
243
10
201
82
166
13
1
3
86
24,188
jopohl/urh
jopohl_urh/src/urh/signalprocessing/Participant.py
urh.signalprocessing.Participant.Participant
import uuid import xml.etree.ElementTree as ET class Participant(object): __slots__ = ['name', 'shortname', 'address_hex', 'color_index', 'show', 'simulate', 'relative_rssi', '__id'] def __init__(self, name: str, shortname: str=None, address_hex: str=None, color_index=0, id: str=None, relative_rssi=0, simulat...
class Participant(object): def __init__(self, name: str, shortname: str=None, address_hex: str=None, color_index=0, id: str=None, relative_rssi=0, simulate=False): pass def __eq__(self, other): pass @property def id(self): pass def __repr__(self): pass def __...
19
0
8
1
7
0
2
0
1
6
0
0
9
8
13
13
127
20
107
48
79
0
71
34
57
7
1
1
28
24,189
jopohl/urh
jopohl_urh/src/urh/signalprocessing/ProtocoLabel.py
urh.signalprocessing.ProtocoLabel.ProtocolLabel
import copy from urh.signalprocessing.FieldType import FieldType from urh.util.Formatter import Formatter import xml.etree.ElementTree as ET from urh.signalprocessing.Interval import Interval from PyQt5.QtCore import Qt class ProtocolLabel(object): """ This represents a field in the protocol, e.g. temperature ...
class ProtocolLabel(object): ''' This represents a field in the protocol, e.g. temperature Field range is described by (start, end) and it's value by value start and end always refer to bit view! ''' def __init__(self, name: str, start: int, end: int, color_index: int, fuzz_created=False, auto...
43
2
8
1
7
0
2
0.06
1
11
4
1
25
15
26
26
285
46
227
86
175
14
128
61
101
7
1
2
50
24,190
jopohl/urh
jopohl_urh/src/urh/signalprocessing/ProtocolAnalyzer.py
urh.signalprocessing.ProtocolAnalyzer.ProtocolAnalyzer
import numpy as np from PyQt5.QtCore import QObject, pyqtSignal, Qt from urh.signalprocessing.Modulator import Modulator from urh.signalprocessing.Participant import Participant from urh.signalprocessing.Signal import Signal import urh.dev.PCAPNG as PCAPNG from urh.util import util as urh_util, util from xml.dom import...
class ProtocolAnalyzer(object): ''' The ProtocolAnalyzer is what you would refer to as "protocol". The data is stored in the messages variable. This class offers several methods for protocol analysis. ''' def __init__(self, signal: Signal or None, filename=None): pass @property...
65
13
17
2
14
2
4
0.12
1
30
8
2
45
9
47
47
863
134
661
242
534
80
426
161
376
14
1
5
171
24,191
jopohl/urh
jopohl_urh/src/urh/signalprocessing/ProtocolAnalyzer.py
urh.signalprocessing.ProtocolAnalyzer.ProtocolAnalyzerSignals
from PyQt5.QtCore import QObject, pyqtSignal, Qt class ProtocolAnalyzerSignals(QObject): protocol_updated = pyqtSignal() show_state_changed = pyqtSignal() sniff_device_errors_changed = pyqtSignal(str) line_duplicated = pyqtSignal() fuzzing_started = pyqtSignal(int) current_fuzzing_message_chang...
class ProtocolAnalyzerSignals(QObject): def __init__(self, parent=None): pass
2
0
2
0
2
0
1
0
1
1
0
0
1
0
1
1
11
1
10
9
8
0
10
9
8
1
1
0
1
24,192
jopohl/urh
jopohl_urh/src/urh/signalprocessing/ProtocolAnalyzerContainer.py
urh.signalprocessing.ProtocolAnalyzerContainer.FuzzMode
from enum import Enum class FuzzMode(Enum): successive = 0 concurrent = 1 exhaustive = 2
class FuzzMode(Enum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
49
4
0
4
4
3
0
4
4
3
0
4
0
0
24,193
jopohl/urh
jopohl_urh/src/urh/signalprocessing/ProtocolAnalyzerContainer.py
urh.signalprocessing.ProtocolAnalyzerContainer.ProtocolAnalyzerContainer
import array from urh.signalprocessing.ProtocolGroup import ProtocolGroup from urh.signalprocessing.Message import Message from urh.signalprocessing.ProtocolAnalyzer import ProtocolAnalyzer from urh.util.Logger import logger import copy from urh.models.ProtocolTreeItem import ProtocolTreeItem import itertools from urh....
class ProtocolAnalyzerContainer(ProtocolAnalyzer): ''' A container to manage several ProtocolAnalyzers. This class is used by the generator to manage distinct protocols ''' def __init__(self): ''' :type modulators: list of Modulator ''' pass @property de...
18
5
11
1
9
1
2
0.17
1
19
5
0
14
3
14
61
181
25
135
50
109
23
76
38
61
12
2
3
29
24,194
jopohl/urh
jopohl_urh/src/urh/signalprocessing/ProtocolGroup.py
urh.signalprocessing.ProtocolGroup.ProtocolGroup
from urh.signalprocessing.ProtocolAnalyzer import ProtocolAnalyzer class ProtocolGroup(object): __slots__ = ['name', '__items', 'loaded_from_file'] def __init__(self, name: str): self.name = name self.__items = [] self.loaded_from_file = False @property def items(self): ...
class ProtocolGroup(object): def __init__(self, name: str): pass @property def items(self): ''' :rtype: list of ProtocolTreeItem ''' pass @property def num_protocols(self): pass @property def num_messages(self): pass @property ...
21
7
6
1
3
2
1
0.49
1
5
1
0
12
3
12
12
91
19
49
32
28
24
41
24
28
2
1
1
16
24,195
jopohl/urh
jopohl_urh/src/urh/signalprocessing/ProtocolSniffer.py
urh.signalprocessing.ProtocolSniffer.ProtocolSniffer
import numpy as np import time from urh.dev.VirtualDevice import VirtualDevice, Mode from datetime import datetime from PyQt5.QtCore import pyqtSignal, QObject from urh.signalprocessing.ProtocolAnalyzer import ProtocolAnalyzer from urh.signalprocessing.IQArray import IQArray from urh.signalprocessing.Message import Mes...
class ProtocolSniffer(ProtocolAnalyzer, QObject): ''' This class is used for live sniffing a protocol with certain signal parameters. ''' def __init__(self, samples_per_symbol: int, center: float, center_spacing: float, noise: float, tolerance: int, modulation_type: str, bits_per_symbol: int, devi...
23
2
14
1
12
1
2
0.06
2
13
7
0
18
16
18
65
283
44
228
76
193
13
154
57
135
10
2
4
43
24,196
jopohl/urh
jopohl_urh/src/urh/signalprocessing/RecordedFile.py
urh.signalprocessing.RecordedFile.RecordedFile
class RecordedFile: def __init__(self, filename, sample_rate, timestamp): self.filename = filename self.sample_rate = sample_rate self.timestamp = timestamp
class RecordedFile: def __init__(self, filename, sample_rate, timestamp): pass
2
0
4
0
4
0
1
0
0
0
0
0
1
3
1
1
5
0
5
5
3
0
5
5
3
1
0
0
1
24,197
jopohl/urh
jopohl_urh/src/urh/signalprocessing/Ruleset.py
urh.signalprocessing.Ruleset.Mode
from enum import Enum class Mode(Enum): all_apply = 0 atleast_one_applies = 1 none_applies = 2
class Mode(Enum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
49
4
0
4
4
3
0
4
4
3
0
4
0
0
24,198
jopohl/urh
jopohl_urh/src/urh/signalprocessing/Ruleset.py
urh.signalprocessing.Ruleset.Rule
import operator from urh.util.Logger import logger import xml.etree.ElementTree as ET class Rule(object): def __init__(self, start: int, end: int, operator: str, target_value: str, value_type: int): assert operator in OPERATIONS self.__start = start self.__end = end + 1 self.__valu...
class Rule(object): def __init__(self, start: int, end: int, operator: str, target_value: str, value_type: int): pass @property def start(self) -> int: pass @start.setter def start(self) -> int: pass @property def end(self) -> int: pass @end.setter d...
22
0
5
0
5
0
2
0.01
1
4
0
0
11
5
12
12
80
13
67
35
43
1
50
24
37
3
1
2
21
24,199
jopohl/urh
jopohl_urh/src/urh/signalprocessing/Ruleset.py
urh.signalprocessing.Ruleset.Ruleset
import xml.etree.ElementTree as ET class Ruleset(list): def __init__(self, mode: Mode=Mode.all_apply, rules=None): rules = rules if rules is not None else [] self.mode = mode super().__init__(rules) def applies_for_message(self, message): napplied_rules = sum((rule.applies_for...
class Ruleset(list): def __init__(self, mode: Mode=Mode.all_apply, rules=None): pass def applies_for_message(self, message): pass def to_xml(self) -> ET.Element: pass @staticmethod def from_xml(tag: ET.Element): pass
6
0
8
1
7
0
3
0
1
7
2
0
3
1
4
37
36
6
30
12
24
0
25
11
20
4
2
2
11