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
324,100
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/const.py
custom_components.komfovent.const.HeatRecoveryControl
from enum import IntEnum class HeatRecoveryControl(IntEnum): """Heat recovery control modes.""" AUTO = 0 CONSTANT = 1 NON_STOP = 2
class HeatRecoveryControl(IntEnum): '''Heat recovery control modes.''' pass
1
1
0
0
0
0
0
0.25
1
0
0
0
0
0
0
55
6
1
4
4
3
1
4
4
3
0
3
0
0
324,101
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/const.py
custom_components.komfovent.const.HolidayMicroventilation
from enum import IntEnum class HolidayMicroventilation(IntEnum): """Holiday microventilation modes.""" ONCE_PER_DAY = 1 TWICE_PER_DAY = 2 THRICE_PER_DAY = 3 FOUR_TIMES_PER_DAY = 4
class HolidayMicroventilation(IntEnum): '''Holiday microventilation modes.''' pass
1
1
0
0
0
0
0
0.2
1
0
0
0
0
0
0
55
7
1
5
5
4
1
5
5
4
0
3
0
0
324,102
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/const.py
custom_components.komfovent.const.MicroVentilation
from enum import IntEnum class MicroVentilation(IntEnum): """Holiday mode micro-ventilation frequency.""" ONCE = 1 TWICE = 2 THRICE = 3 FOUR = 4
class MicroVentilation(IntEnum): '''Holiday mode micro-ventilation frequency.''' pass
1
1
0
0
0
0
0
0.2
1
0
0
0
0
0
0
55
7
1
5
5
4
1
5
5
4
0
3
0
0
324,103
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/const.py
custom_components.komfovent.const.OperationMode
from enum import IntEnum class OperationMode(IntEnum): """Operation modes.""" STANDBY = 0 AWAY = 1 NORMAL = 2 INTENSIVE = 3 BOOST = 4 KITCHEN = 5 FIREPLACE = 6 OVERRIDE = 7 HOLIDAY = 8 AIR_QUALITY = 9 OFF = 10
class OperationMode(IntEnum): '''Operation modes.''' pass
1
1
0
0
0
0
0
0.08
1
0
0
0
0
0
0
55
14
1
12
12
11
1
12
12
11
0
3
0
0
324,104
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/const.py
custom_components.komfovent.const.OutdoorHumiditySensor
from enum import IntEnum class OutdoorHumiditySensor(IntEnum): """Outdoor humidity sensor options.""" NONE = 0 SENSOR1 = 1 SENSOR2 = 2
class OutdoorHumiditySensor(IntEnum): '''Outdoor humidity sensor options.''' pass
1
1
0
0
0
0
0
0.25
1
0
0
0
0
0
0
55
6
1
4
4
3
1
4
4
3
0
3
0
0
324,105
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/const.py
custom_components.komfovent.const.OverrideActivation
from enum import IntEnum class OverrideActivation(IntEnum): """ Override mode types. Determines when override mode can be activated: - ALL_TIME: Override can be activated at any time - IF_ON: Override only when unit is running - IF_OFF: Override only when unit is stopped """ ALL_TIME =...
class OverrideActivation(IntEnum): ''' Override mode types. Determines when override mode can be activated: - ALL_TIME: Override can be activated at any time - IF_ON: Override only when unit is running - IF_OFF: Override only when unit is stopped ''' pass
1
1
0
0
0
0
0
1.75
1
0
0
0
0
0
0
55
13
2
4
4
3
7
4
4
3
0
3
0
0
324,106
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/const.py
custom_components.komfovent.const.ResetSettings
from enum import IntEnum class ResetSettings(IntEnum): """Reset settings options.""" AWAY = 1 NORMAL = 2 INTENSIVE = 3 BOOST = 4 HOLIDAYS = 5 OVERRIDE = 6 KITCHEN = 7 FIREPLACE = 8 AIR_QUALITY = 9 ECO = 10 ADVANCED = 11
class ResetSettings(IntEnum): '''Reset settings options.''' pass
1
1
0
0
0
0
0
0.08
1
0
0
0
0
0
0
55
14
1
12
12
11
1
12
12
11
0
3
0
0
324,107
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/const.py
custom_components.komfovent.const.SchedulerMode
from enum import IntEnum class SchedulerMode(IntEnum): """Scheduler operation modes.""" STAY_AT_HOME = 0 WORKING_WEEK = 1 OFFICE = 2 CUSTOM = 3
class SchedulerMode(IntEnum): '''Scheduler operation modes.''' pass
1
1
0
0
0
0
0
0.2
1
0
0
0
0
0
0
55
7
1
5
5
4
1
5
5
4
0
3
0
0
324,108
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/const.py
custom_components.komfovent.const.TemperatureControl
from enum import IntEnum class TemperatureControl(IntEnum): """Temperature control types.""" SUPPLY = 0 EXTRACT = 1 ROOM = 2 BALANCE = 3
class TemperatureControl(IntEnum): '''Temperature control types.''' pass
1
1
0
0
0
0
0
0.2
1
0
0
0
0
0
0
55
7
1
5
5
4
1
5
5
4
0
3
0
0
324,109
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/coordinator.py
custom_components.komfovent.coordinator.KomfoventCoordinator
from homeassistant.helpers.typing import UNDEFINED, UndefinedType from typing import Any from datetime import timedelta from homeassistant import config_entries from . import registers from homeassistant.exceptions import ConfigEntryNotReady from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, Up...
class KomfoventCoordinator(DataUpdateCoordinator): '''Class to manage fetching Komfovent data.''' def __init__(self, hass: HomeAssistant, *, config_entry: config_entries.ConfigEntry | None | UndefinedType=UNDEFINED, **kwargs: Any) -> None: '''Initialize.''' pass async def connect(self) ->...
4
4
39
7
25
7
4
0.3
1
10
3
0
3
1
3
3
125
26
77
22
66
23
55
14
50
9
1
3
13
324,110
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/datetime.py
custom_components.komfovent.datetime.KomfoventDateTime
from .const import DOMAIN from homeassistant.helpers.update_coordinator import CoordinatorEntity import zoneinfo from datetime import datetime, timedelta from homeassistant.components.datetime import DateTimeEntity, DateTimeEntityDescription class KomfoventDateTime(CoordinatorEntity, DateTimeEntity): """Representa...
class KomfoventDateTime(CoordinatorEntity, DateTimeEntity): '''Representation of a Komfovent datetime entity.''' def __init__(self, coordinator: KomfoventCoordinator, register_id: int, entity_description: DateTimeEntityDescription) -> None: '''Initialize the datetime entity.''' pass @prope...
5
4
18
2
13
3
2
0.24
2
9
0
0
3
4
3
3
61
10
41
21
31
10
28
15
24
4
1
1
7
324,111
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/modbus.py
custom_components.komfovent.modbus.KomfoventModbusClient
from pymodbus import ModbusException from pymodbus.client import AsyncModbusTcpClient import asyncio from .registers import REGISTERS_16BIT_SIGNED, REGISTERS_16BIT_UNSIGNED, REGISTERS_32BIT_UNSIGNED class KomfoventModbusClient: """Modbus client for Komfovent devices.""" def __init__(self, host: str, port: int...
class KomfoventModbusClient: '''Modbus client for Komfovent devices.''' def __init__(self, host: str, port: int=502) -> None: '''Initialize the Modbus client.''' pass async def connect(self) -> bool: '''Connect to the Modbus device.''' pass async def close(self) -> No...
6
6
18
1
14
3
3
0.2
0
8
0
0
5
2
5
5
97
12
71
20
65
14
47
19
41
8
0
3
16
324,112
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/number.py
custom_components.komfovent.number.FlowNumber
from homeassistant.const import CONCENTRATION_PARTS_PER_MILLION, PERCENTAGE, EntityCategory, UnitOfTemperature, UnitOfTime, UnitOfVolumeFlowRate from .const import DEFAULT_STEP_CO2, DEFAULT_STEP_FLOW, DEFAULT_STEP_HUMIDITY, DEFAULT_STEP_TEMPERATURE, DEFAULT_STEP_TIMER, DEFAULT_STEP_VOC, DOMAIN, OPT_STEP_CO2, OPT_STEP_F...
class FlowNumber(KomfoventNumber): '''Flow number with dynamic units based on flow unit setting.''' @property def native_unit_of_measurement(self) -> str | None: '''Return the unit of measurement.''' pass
3
2
20
3
15
2
7
0.18
1
4
3
0
1
0
1
4
24
4
17
5
14
3
15
4
13
7
2
2
7
324,113
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/number.py
custom_components.komfovent.number.KomfoventNumber
from .const import DEFAULT_STEP_CO2, DEFAULT_STEP_FLOW, DEFAULT_STEP_HUMIDITY, DEFAULT_STEP_TEMPERATURE, DEFAULT_STEP_TIMER, DEFAULT_STEP_VOC, DOMAIN, OPT_STEP_CO2, OPT_STEP_FLOW, OPT_STEP_HUMIDITY, OPT_STEP_TEMPERATURE, OPT_STEP_TIMER, OPT_STEP_VOC, AirQualitySensorType, Controller, FlowControl, FlowUnit from homeassi...
class KomfoventNumber(CoordinatorEntity, NumberEntity): '''Base representation of a Komfovent number entity.''' def __init__(self, coordinator: KomfoventCoordinator, register_id: int, entity_description: NumberEntityDescription) -> None: '''Initialize the number entity.''' pass @property ...
5
4
12
1
10
1
2
0.12
2
6
1
2
3
4
3
3
45
7
34
16
24
4
21
10
17
4
1
1
6
324,114
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/number.py
custom_components.komfovent.number.TemperatureNumber
class TemperatureNumber(KomfoventNumber): """Temperature number with x10 scaling.""" @property def native_value(self) -> float | None: """Return the current value.""" value = super().native_value if value is None: return None return value / 10 async def asyn...
class TemperatureNumber(KomfoventNumber): '''Temperature number with x10 scaling.''' @property def native_value(self) -> float | None: '''Return the current value.''' pass async def async_set_native_value(self, value: float) -> None: '''Update the current value.''' pass
4
3
6
1
4
1
2
0.33
1
2
0
0
2
0
2
5
16
4
9
5
5
3
8
4
5
2
2
1
3
324,115
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/select.py
custom_components.komfovent.select.KomfoventOperationModeSelect
from . import registers, services class KomfoventOperationModeSelect(KomfoventSelect): """Special select entity for operation mode that handles power and auto mode.""" async def async_select_option(self, option: str) -> None: """Change the selected option.""" await services.set_operation_mode(...
class KomfoventOperationModeSelect(KomfoventSelect): '''Special select entity for operation mode that handles power and auto mode.''' async def async_select_option(self, option: str) -> None: '''Change the selected option.''' pass
2
2
3
0
2
1
1
0.67
1
1
0
0
1
0
1
4
6
1
3
2
1
2
3
2
1
1
2
0
1
324,116
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/select.py
custom_components.komfovent.select.KomfoventSelect
from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import DOMAIN, AirQualitySensorType, CoilType, Controller, ControlStage, FlowControl, HeatRecoveryControl, MicroVentilation, OperationMode, OutdoorHumiditySensor, OverrideActivation, SchedulerMode, TemperatureControl from typing import T...
class KomfoventSelect(CoordinatorEntity, SelectEntity): '''Representation of a Komfovent select entity.''' def __init__(self, coordinator: KomfoventCoordinator, register_id: int, enum_class: type[IntEnum], entity_description: SelectEntityDescription) -> None: '''Initialize the select entity.''' ...
5
4
14
1
12
1
2
0.1
2
7
1
1
3
5
3
3
50
7
39
19
28
4
25
12
21
3
1
1
6
324,117
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/sensor.py
custom_components.komfovent.sensor.AbsoluteHumiditySensor
class AbsoluteHumiditySensor(FloatX100Sensor): """Humidity sensor with range validation.""" @property def native_value(self) -> StateType: """Return the humidity value if within valid range.""" value = super().native_value if value is None: return None if MIN_ABS...
class AbsoluteHumiditySensor(FloatX100Sensor): '''Humidity sensor with range validation.''' @property def native_value(self) -> StateType: '''Return the humidity value if within valid range.''' pass
3
2
9
1
7
1
3
0.22
1
1
0
0
1
0
1
5
13
2
9
4
6
2
8
3
6
3
4
1
3
324,118
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/sensor.py
custom_components.komfovent.sensor.CO2Sensor
class CO2Sensor(KomfoventSensor): """CO2 sensor with range validation.""" @property def native_value(self) -> StateType: """Return the CO2 value if within valid range.""" value = super().native_value if value is None: return None if 0 <= value <= MAX_CO2_PPM: ...
class CO2Sensor(KomfoventSensor): '''CO2 sensor with range validation.''' @property def native_value(self) -> StateType: '''Return the CO2 value if within valid range.''' pass
3
2
9
1
7
1
3
0.22
1
1
0
0
1
0
1
3
13
2
9
4
6
2
8
3
6
3
2
1
3
324,119
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/sensor.py
custom_components.komfovent.sensor.ConnectedPanelsSensor
from .const import DOMAIN, AirQualitySensorType, ConnectedPanels, Controller, FlowControl, FlowUnit, HeatExchangerType, OutdoorHumiditySensor class ConnectedPanelsSensor(KomfoventSensor): """Connected panels sensor.""" @property def native_value(self) -> StateType: """Return the connected panels s...
class ConnectedPanelsSensor(KomfoventSensor): '''Connected panels sensor.''' @property def native_value(self) -> StateType: '''Return the connected panels state name.''' pass
3
2
10
1
8
1
3
0.2
1
3
1
0
1
0
1
3
14
2
10
4
7
2
9
3
7
3
2
1
3
324,120
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/sensor.py
custom_components.komfovent.sensor.DutyCycleSensor
class DutyCycleSensor(FloatX10Sensor): """Temperature sensor with range validation.""" @property def native_value(self) -> StateType: """Return the temperature value if within valid range.""" value = super().native_value if value is None: return None if MIN_DUTY_...
class DutyCycleSensor(FloatX10Sensor): '''Temperature sensor with range validation.''' @property def native_value(self) -> StateType: '''Return the temperature value if within valid range.''' pass
3
2
9
1
7
1
3
0.22
1
1
0
0
1
0
1
5
13
2
9
4
6
2
8
3
6
3
4
1
3
324,121
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/sensor.py
custom_components.komfovent.sensor.FirmwareVersionSensor
from .helpers import get_version_from_int class FirmwareVersionSensor(KomfoventSensor): """Firmware version sensor.""" @property def native_value(self) -> StateType: """Return the firmware version string.""" value = super().native_value if value is None: return None ...
class FirmwareVersionSensor(KomfoventSensor): '''Firmware version sensor.''' @property def native_value(self) -> StateType: '''Return the firmware version string.''' pass
3
2
11
2
8
1
3
0.2
1
1
0
0
1
0
1
3
15
3
10
5
7
2
9
4
7
3
2
1
3
324,122
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/sensor.py
custom_components.komfovent.sensor.FloatSensor
class FloatSensor(KomfoventSensor): """Temperature sensor with x10 scaling.""" @property def native_value(self) -> StateType: """Return the float value of the sensor.""" value = super().native_value if value is None: return None try: return float(valu...
class FloatSensor(KomfoventSensor): '''Temperature sensor with x10 scaling.''' @property def native_value(self) -> StateType: '''Return the float value of the sensor.''' pass
3
2
10
1
8
1
3
0.2
1
4
0
3
1
0
1
3
14
2
10
4
7
2
9
3
7
3
2
1
3
324,123
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/sensor.py
custom_components.komfovent.sensor.FloatX1000Sensor
class FloatX1000Sensor(KomfoventSensor): """Sensor that divides its value by 1000.""" @property def native_value(self) -> StateType: """Return the energy value in kWh.""" value = super().native_value if value is None: return None return value / 1000
class FloatX1000Sensor(KomfoventSensor): '''Sensor that divides its value by 1000.''' @property def native_value(self) -> StateType: '''Return the energy value in kWh.''' pass
3
2
7
1
5
1
2
0.29
1
1
0
1
1
0
1
3
11
2
7
4
4
2
6
3
4
2
2
1
2
324,124
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/sensor.py
custom_components.komfovent.sensor.FloatX100Sensor
class FloatX100Sensor(FloatSensor): """Sensor that divides its value by 100.""" @property def native_value(self) -> StateType: """Return the value divided by 100.""" value = super().native_value if value is None: return None return value / 100
class FloatX100Sensor(FloatSensor): '''Sensor that divides its value by 100.''' @property def native_value(self) -> StateType: '''Return the value divided by 100.''' pass
3
2
7
1
5
1
2
0.29
1
1
0
1
1
0
1
4
11
2
7
4
4
2
6
3
4
2
3
1
2
324,125
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/sensor.py
custom_components.komfovent.sensor.FloatX10Sensor
class FloatX10Sensor(FloatSensor): """Sensor that divides its value by 10.""" @property def native_value(self) -> StateType: """Return the sensor value divided by 10.""" value = super().native_value if value is None: return None return value / 10
class FloatX10Sensor(FloatSensor): '''Sensor that divides its value by 10.''' @property def native_value(self) -> StateType: '''Return the sensor value divided by 10.''' pass
3
2
7
1
5
1
2
0.29
1
1
0
2
1
0
1
4
11
2
7
4
4
2
6
3
4
2
3
1
2
324,126
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/sensor.py
custom_components.komfovent.sensor.FlowSensor
from .const import DOMAIN, AirQualitySensorType, ConnectedPanels, Controller, FlowControl, FlowUnit, HeatExchangerType, OutdoorHumiditySensor from homeassistant.const import CONCENTRATION_GRAMS_PER_CUBIC_METER, CONCENTRATION_PARTS_PER_MILLION, PERCENTAGE, UnitOfEnergy, UnitOfPower, UnitOfPressure, UnitOfTemperature, Un...
class FlowSensor(FloatSensor): '''Flow sensor with dynamic units based on flow unit setting.''' @property def native_unit_of_measurement(self) -> str | None: '''Return the unit of measurement.''' pass
3
2
20
3
15
2
7
0.18
1
4
3
0
1
0
1
4
24
4
17
5
14
3
15
4
13
7
3
2
7
324,127
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/sensor.py
custom_components.komfovent.sensor.FlowUnitSensor
from .const import DOMAIN, AirQualitySensorType, ConnectedPanels, Controller, FlowControl, FlowUnit, HeatExchangerType, OutdoorHumiditySensor class FlowUnitSensor(KomfoventSensor): """Flow unit sensor.""" @property def native_value(self) -> StateType: """Return the flow units state name.""" ...
class FlowUnitSensor(KomfoventSensor): '''Flow unit sensor.''' @property def native_value(self) -> StateType: '''Return the flow units state name.''' pass
3
2
10
1
8
1
3
0.2
1
3
1
0
1
0
1
3
14
2
10
4
7
2
9
3
7
3
2
1
3
324,128
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/sensor.py
custom_components.komfovent.sensor.HeatExchangerTypeSensor
from .const import DOMAIN, AirQualitySensorType, ConnectedPanels, Controller, FlowControl, FlowUnit, HeatExchangerType, OutdoorHumiditySensor class HeatExchangerTypeSensor(KomfoventSensor): """Heat exchanger type sensor.""" @property def native_value(self) -> StateType: """Return the heat exchange...
class HeatExchangerTypeSensor(KomfoventSensor): '''Heat exchanger type sensor.''' @property def native_value(self) -> StateType: '''Return the heat exchanger type name.''' pass
3
2
10
1
8
1
3
0.2
1
3
1
0
1
0
1
3
14
2
10
4
7
2
9
3
7
3
2
1
3
324,129
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/sensor.py
custom_components.komfovent.sensor.KomfoventSensor
from homeassistant.helpers.update_coordinator import CoordinatorEntity from homeassistant.components.sensor import SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass from .const import DOMAIN, AirQualitySensorType, ConnectedPanels, Controller, FlowControl, FlowUnit, HeatExchangerType, OutdoorHum...
class KomfoventSensor(CoordinatorEntity, SensorEntity): '''Base representation of a Komfovent sensor.''' def __init__(self, coordinator: KomfoventCoordinator, register_id: int, entity_description: SensorEntityDescription) -> None: '''Initialize the sensor.''' pass @property def native_...
4
3
13
1
11
1
2
0.12
2
5
1
10
2
4
2
2
32
4
25
14
16
3
12
8
9
2
1
1
3
324,130
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/sensor.py
custom_components.komfovent.sensor.RelativeHumiditySensor
class RelativeHumiditySensor(KomfoventSensor): """Humidity sensor with range validation.""" @property def native_value(self) -> StateType: """Return the humidity value if within valid range.""" value = super().native_value if value is None: return None if 0 <= va...
class RelativeHumiditySensor(KomfoventSensor): '''Humidity sensor with range validation.''' @property def native_value(self) -> StateType: '''Return the humidity value if within valid range.''' pass
3
2
9
1
7
1
3
0.22
1
1
0
0
1
0
1
3
13
2
9
4
6
2
8
3
6
3
2
1
3
324,131
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/sensor.py
custom_components.komfovent.sensor.SPISensor
class SPISensor(FloatX1000Sensor): """SPI sensor with scaling and range validation.""" @property def native_value(self) -> StateType: """Return the SPI value if within valid range.""" value = super().native_value if value is None: return None if 0 <= value <= MAX...
class SPISensor(FloatX1000Sensor): '''SPI sensor with scaling and range validation.''' @property def native_value(self) -> StateType: '''Return the SPI value if within valid range.''' pass
3
2
9
1
7
1
3
0.22
1
1
0
0
1
0
1
4
13
2
9
4
6
2
8
3
6
3
3
1
3
324,132
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/sensor.py
custom_components.komfovent.sensor.SystemTimeSensor
from datetime import date, datetime, timedelta import zoneinfo class SystemTimeSensor(KomfoventSensor): """System time sensor.""" @property def native_value(self) -> StateType: """Return the system time as datetime from Unix timestamp.""" value = super().native_value if value is No...
class SystemTimeSensor(KomfoventSensor): '''System time sensor.''' @property def native_value(self) -> StateType: '''Return the system time as datetime from Unix timestamp.''' pass
3
2
15
2
10
3
3
0.33
1
8
0
0
1
0
1
3
19
3
12
6
9
4
11
5
9
3
2
1
3
324,133
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/sensor.py
custom_components.komfovent.sensor.TemperatureSensor
class TemperatureSensor(FloatX10Sensor): """Temperature sensor with range validation.""" @property def native_value(self) -> StateType: """Return the temperature value if within valid range.""" value = super().native_value if value is None: return None if MIN_TEM...
class TemperatureSensor(FloatX10Sensor): '''Temperature sensor with range validation.''' @property def native_value(self) -> StateType: '''Return the temperature value if within valid range.''' pass
3
2
9
1
7
1
3
0.22
1
1
0
0
1
0
1
5
13
2
9
4
6
2
8
3
6
3
4
1
3
324,134
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/sensor.py
custom_components.komfovent.sensor.VOCSensor
class VOCSensor(KomfoventSensor): """VOC sensor with range validation.""" @property def native_value(self) -> StateType: """Return the VOC value if within valid range.""" value = super().native_value if value is None: return None if 0 <= value <= MAX_VOC: ...
class VOCSensor(KomfoventSensor): '''VOC sensor with range validation.''' @property def native_value(self) -> StateType: '''Return the VOC value if within valid range.''' pass
3
2
9
1
7
1
3
0.22
1
1
0
0
1
0
1
3
13
2
9
4
6
2
8
3
6
3
2
1
3
324,135
lnagel/hass-komfovent
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/lnagel_hass-komfovent/custom_components/komfovent/switch.py
custom_components.komfovent.switch.KomfoventSwitch
from homeassistant.helpers.update_coordinator import CoordinatorEntity from homeassistant.components.switch import SwitchEntity, SwitchEntityDescription from .const import DOMAIN class KomfoventSwitch(CoordinatorEntity, SwitchEntity): """Representation of a Komfovent switch.""" _attr_has_entity_name = True ...
class KomfoventSwitch(CoordinatorEntity, SwitchEntity): '''Representation of a Komfovent switch.''' def __init__(self, coordinator: KomfoventCoordinator, register_id: int, entity_description: SwitchEntityDescription) -> None: '''Initialize the switch.''' pass @property def is_on(self) ...
6
5
9
0
8
1
2
0.15
2
5
1
0
4
4
4
4
44
5
34
17
23
5
21
11
16
3
1
1
6
324,136
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/api_module.py
discoursemap.modules.api_module.APISecurityModule
from colorama import Fore, Style, init from urllib.parse import urljoin, urlparse, parse_qs import time from threading import Lock, BoundedSemaphore import weakref from urllib3.util.retry import Retry import gc from requests.adapters import HTTPAdapter from concurrent.futures import ThreadPoolExecutor, as_completed cl...
class APISecurityModule: def __init__(self, scanner): pass def _setup_session_pool(self): '''Setup session with connection pooling and retry strategy''' pass def _adaptive_request(self, url, method='GET', **kwargs): '''Make request with adaptive rate limiting''' p...
20
17
44
6
34
4
6
0.13
0
10
0
0
18
15
18
18
846
140
633
159
611
80
359
144
337
14
0
7
112
324,137
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/asset_file_checker.py
discoursemap.modules.asset_file_checker.AssetFileChecker
from .malicious_pattern_checker import MaliciousPatternChecker import requests from urllib.parse import urljoin, urlparse import re class AssetFileChecker: """Checks asset files for security vulnerabilities and malicious content""" def __init__(self, scanner): self.scanner = scanner self.sessi...
class AssetFileChecker: '''Checks asset files for security vulnerabilities and malicious content''' def __init__(self, scanner): pass def run(self): '''Run asset file security check''' pass def check_asset_files(self): '''Check asset files for security issues''' ...
11
10
36
5
28
3
5
0.12
0
4
1
0
10
4
10
10
373
61
281
76
270
35
155
73
144
11
0
7
49
324,138
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/auth_module.py
discoursemap.modules.auth_module.AuthModule
import time import json import base64 from ..lib.discourse_utils import extract_csrf_token from urllib.parse import urljoin, quote, parse_qs, urlparse class AuthModule: """Authentication and authorization testing module for Discourse forums""" def __init__(self, scanner): self.scanner = scanner ...
null
41
40
30
4
23
3
4
0.15
0
4
0
0
40
2
40
40
1,241
208
902
231
859
138
445
231
402
10
0
5
164
324,139
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/compliance_module.py
discoursemap.modules.compliance_module.ComplianceModule
from colorama import Fore, Style import requests import json from urllib.parse import urljoin, urlparse class ComplianceModule: def __init__(self, scanner): self.scanner = scanner self.target_url = scanner.target_url self.session = scanner.session self.results = {'module_name': 'Co...
class ComplianceModule: def __init__(self, scanner): pass def run(self): '''Run compliance and regulatory testing module (main entry point)''' pass def run_scan(self): '''Run comprehensive compliance testing''' pass def _test_gdpr_compliance(self): ''...
23
21
44
7
34
3
6
0.09
0
4
0
0
22
9
22
22
999
171
758
165
735
70
414
145
391
11
0
5
137
324,140
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/config_module.py
discoursemap.modules.config_module.ConfigModule
from ..lib.discourse_utils import extract_csrf_token from bs4 import BeautifulSoup import time from urllib.parse import urljoin, quote import json import re class ConfigModule: """Configuration security testing module for Discourse forums""" def __init__(self, scanner): self.scanner = scanner ...
class ConfigModule: '''Configuration security testing module for Discourse forums''' def __init__(self, scanner): pass def run(self): '''Run complete configuration security scan (main entry point)''' pass def run_scan(self): '''Run complete configuration security scan...
18
16
60
6
48
5
5
0.11
0
10
0
0
16
2
16
16
1,016
124
806
122
773
88
219
119
186
9
0
5
84
324,141
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/core_file_checker.py
discoursemap.modules.core_file_checker.CoreFileChecker
import hashlib from urllib.parse import urljoin class CoreFileChecker: """Checks Discourse core files for integrity""" def __init__(self, scanner): self.scanner = scanner self.core_file_patterns = {'/assets/application.js': {'type': 'javascript', 'expected_size_range': (100000, 2000000), 'expe...
class CoreFileChecker: '''Checks Discourse core files for integrity''' def __init__(self, scanner): pass def check_core_files(self): '''Check Discourse core files for integrity''' pass def _check_file_modifications(self, file_info): '''Check if a core file has been mo...
5
4
35
5
27
3
5
0.12
0
1
0
0
4
2
4
4
147
24
110
29
105
13
61
29
56
12
0
5
18
324,142
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/crypto_module.py
discoursemap.modules.crypto_module.CryptoModule
import re from urllib.parse import urljoin, quote import time import json import base64 from ..lib.discourse_utils import extract_csrf_token, make_request class CryptoModule: """Cryptographic security testing module for Discourse forums""" def __init__(self, scanner): self.scanner = scanner se...
null
29
27
34
5
25
5
5
0.19
0
9
0
0
27
2
27
27
955
167
669
165
640
129
384
164
355
12
0
6
147
324,143
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/cve_exploit_module.py
discoursemap.modules.cve_exploit_module.CVEExploitModule
import tempfile import json import time from pathlib import Path import os import subprocess class CVEExploitModule: """Ruby-based CVE exploit runner for Discourse forums""" def __init__(self, scanner): self.scanner = scanner self.results = {'module_name': 'CVE Exploit Testing (Ruby Runner)', ...
class CVEExploitModule: '''Ruby-based CVE exploit runner for Discourse forums''' def __init__(self, scanner): pass def run(self): '''Run Ruby-based CVE exploit testing''' pass def _get_ruby_exploits_dir(self): '''Get the Ruby exploits directory path''' pass ...
9
8
27
4
21
3
4
0.13
0
6
0
0
8
4
8
8
227
38
168
43
159
22
104
37
95
9
0
5
34
324,144
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/database_module.py
discoursemap.modules.database_module.DatabaseModule
import json import re from urllib.parse import urljoin, quote, unquote import time class DatabaseModule: def __init__(self, scanner): self.scanner = scanner self.results = {'sql_injection': [], 'nosql_injection': [], 'database_enumeration': [], 'data_extraction': [], 'blind_sqli': [], 'time_based_...
class DatabaseModule: def __init__(self, scanner): pass def run(self): '''Run all database security tests''' pass def _establish_baseline(self): '''Establish baseline response time for time-based detection''' pass def _test_sql_injection(self): '''Tes...
30
28
32
5
23
4
4
0.18
0
4
0
0
29
5
29
29
948
175
664
151
634
118
342
145
312
14
0
3
117
324,145
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/endpoint_module.py
discoursemap.modules.endpoint_module.EndpointModule
from bs4 import BeautifulSoup from concurrent.futures import ThreadPoolExecutor, as_completed from colorama import Fore, Style from typing import Dict, Any, List, Optional, Set, Tuple from urllib.parse import urljoin, urlparse import threading import re import requests import time class EndpointModule: """Module f...
class EndpointModule: '''Module for discovering and testing various endpoints''' def __init__(self, scanner) -> None: '''Initialize EndpointModule Args: scanner: DiscourseScanner instance ''' pass def run(self) -> Dict[str, Any]: '''Run Discourse-specif...
25
25
37
5
27
5
5
0.18
0
10
3
0
24
5
24
24
922
151
656
139
626
119
292
134
262
20
0
6
118
324,146
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/file_integrity_module.py
discoursemap.modules.file_integrity_module.FileIntegrityModule
from .theme_file_checker import ThemeFileChecker from .asset_file_checker import AssetFileChecker from .plugin_file_checker import PluginFileChecker from .suspicious_file_scanner import SuspiciousFileScanner from .core_file_checker import CoreFileChecker class FileIntegrityModule: """Checks file integrity and dete...
class FileIntegrityModule: '''Checks file integrity and detects modifications''' def __init__(self, scanner): pass def run(self): '''Run file integrity checks''' pass def _calculate_integrity_score(self, results): '''Calculate overall integrity score''' pass
4
3
24
3
18
3
7
0.17
0
7
5
0
3
6
3
3
78
15
54
18
50
9
42
18
38
18
0
6
20
324,147
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/info_module.py
discoursemap.modules.info_module.InfoModule
from urllib.parse import urljoin, urlparse import re import time from ..lib.discourse_utils import extract_discourse_version, extract_csrf_token from typing import Dict, Any, List, Optional from bs4 import BeautifulSoup import json class InfoModule: """Information gathering module for Discourse forums""" def ...
class InfoModule: '''Information gathering module for Discourse forums''' def __init__(self, scanner) -> None: '''Initialize InfoModule Args: scanner: DiscourseScanner instance ''' pass def run(self) -> Dict[str, Any]: '''Run information gathering modul...
13
13
46
8
34
5
5
0.14
0
8
0
0
12
3
12
12
566
103
407
89
390
58
219
86
202
10
0
5
64
324,148
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/malicious_pattern_checker.py
discoursemap.modules.malicious_pattern_checker.MaliciousPatternChecker
import re class MaliciousPatternChecker: """Utility class for detecting malicious patterns in content""" def __init__(self): self.malicious_patterns = ['eval\\s*\\(', 'exec\\s*\\(', 'system\\s*\\(', 'shell_exec\\s*\\(', 'passthru\\s*\\(', 'base64_decode\\s*\\(', 'gzinflate\\s*\\(', 'str_rot13\\s*\\(',...
class MaliciousPatternChecker: '''Utility class for detecting malicious patterns in content''' def __init__(self): pass def check_malicious_patterns(self, content): '''Check content for malicious patterns''' pass def check_suspicious_plugin_content(self, content): '''...
5
4
16
1
15
1
2
0.07
0
0
0
0
4
3
4
4
71
6
61
13
56
4
20
13
15
3
0
2
8
324,149
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/network_module.py
discoursemap.modules.network_module.NetworkModule
import socket from concurrent.futures import ThreadPoolExecutor, as_completed import re from urllib.parse import urljoin, urlparse import time class NetworkModule: """Network security testing module for Discourse forums""" def __init__(self, scanner): self.scanner = scanner self.results = {'mo...
class NetworkModule: '''Network security testing module for Discourse forums''' def __init__(self, scanner): pass def run(self): '''Run network security testing module (main entry point)''' pass def run_scan(self): '''Run complete network security scan''' pass...
25
22
31
5
24
4
5
0.19
0
10
0
0
22
3
22
22
745
133
539
137
509
102
327
132
297
13
0
6
120
324,150
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/passive_scanner_module.py
discoursemap.modules.passive_scanner_module.PassiveScannerModule
from urllib.parse import urljoin, urlparse import re from bs4 import BeautifulSoup import time class PassiveScannerModule: """Passive scanning module for Discourse forums""" def __init__(self, scanner): self.scanner = scanner self.results = {'module_name': 'Passive Scanner', 'target': scanner....
null
12
11
31
5
23
4
4
0.18
0
4
0
0
11
3
11
11
358
62
253
78
238
46
167
75
152
11
0
5
49
324,151
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/plugin_bruteforce_module.py
discoursemap.modules.plugin_bruteforce_module.PluginBruteforceModule
from urllib.parse import urljoin, quote import json class PluginBruteforceModule: """Plugin vulnerability bruteforce attack module""" def __init__(self, scanner): self.scanner = scanner self.results = {'module_name': 'Plugin Bruteforce Attacks', 'target': scanner.target_url, 'endpoint_attacks'...
null
18
17
31
3
25
3
4
0.14
0
3
0
0
17
5
17
17
546
74
418
83
400
57
151
83
133
9
0
5
64
324,152
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/plugin_detection_module.py
discoursemap.modules.plugin_detection_module.PluginDetectionModule
from ..lib.discourse_utils import make_request import hashlib import re import json from urllib.parse import urljoin, urlparse from bs4 import BeautifulSoup class PluginDetectionModule: """ plugin and technology detection module""" def __init__(self, scanner): self.scanner = scanner self.resul...
class PluginDetectionModule: ''' plugin and technology detection module''' def __init__(self, scanner): pass def _load_plugin_vulnerabilities(self): '''Load plugin vulnerabilities from YAML database''' pass def _build_plugin_signatures(self): '''Build plugin signature...
64
63
29
2
24
3
6
0.12
0
8
0
0
63
8
63
63
1,878
224
1,484
367
1,420
175
781
336
717
16
0
8
369
324,153
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/plugin_file_checker.py
discoursemap.modules.plugin_file_checker.PluginFileChecker
from .malicious_pattern_checker import MaliciousPatternChecker from urllib.parse import urljoin import re class PluginFileChecker: """Checks Discourse plugin files for security and integrity issues""" def __init__(self, scanner): self.scanner = scanner self.pattern_checker = MaliciousPatternCh...
class PluginFileChecker: '''Checks Discourse plugin files for security and integrity issues''' def __init__(self, scanner): pass def check_plugin_files(self): '''Check plugin files for integrity and security issues''' pass def _extract_plugin_names(self, content): '''...
6
5
37
5
29
4
4
0.15
0
3
1
0
5
5
5
5
193
29
146
33
140
22
57
33
51
7
0
2
18
324,154
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/plugin_module.py
discoursemap.modules.plugin_module.PluginModule
from urllib.parse import urljoin, quote import json from bs4 import BeautifulSoup class PluginModule: """Plugin security testing module for Discourse forums""" def __init__(self, scanner): self.scanner = scanner self.results = {'module_name': 'Plugin Security Testing', 'target': scanner.target...
class PluginModule: '''Plugin security testing module for Discourse forums''' def __init__(self, scanner): pass def run(self): '''Run plugin security testing module (main entry point)''' pass def run_scan(self): '''Run complete plugin security scan''' pass ...
19
18
25
3
19
3
4
0.14
0
5
1
0
18
2
18
18
474
78
349
101
329
49
189
101
169
10
0
5
72
324,155
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/plugin_vuln_db.py
discoursemap.modules.plugin_vuln_db.PluginVulnDB
import yaml from typing import Dict, List, Optional, Any import os class PluginVulnDB: """Plugin vulnerability database handler""" def __init__(self, db_path: str=None): if db_path is None: current_dir = os.path.dirname(os.path.abspath(__file__)) db_path = os.path.join(os.path....
class PluginVulnDB: '''Plugin vulnerability database handler''' def __init__(self, db_path: str=None): pass def _load_database(self) -> Dict[str, Any]: '''Load vulnerability database from YAML file''' pass def get_plugin_vulnerabilities(self, plugin_name: str) -> List[Dict[st...
18
17
15
3
11
2
3
0.16
0
7
0
0
17
2
17
17
280
62
190
73
169
30
148
66
130
8
0
3
51
324,156
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/reporter.py
discoursemap.modules.reporter.Reporter
from datetime import datetime from jinja2 import Template import json import csv class Reporter: """Report generation class for scan results""" def __init__(self, target_url): self.target_url = target_url self.scan_time = datetime.now() self.results = {} def add_module_results(sel...
class Reporter: '''Report generation class for scan results''' def __init__(self, target_url): pass def add_module_results(self, module_name, results): '''Add results from a scanning module''' pass def generate_json_report(self, output_file=None): '''Generate JSON for...
9
8
88
6
77
9
8
0.11
0
5
0
0
8
4
8
8
714
59
620
83
608
69
239
80
227
39
0
7
65
324,157
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/scanner.py
discoursemap.modules.scanner.DiscourseScanner
from colorama import Fore, Style from urllib3.util.retry import Retry from .compliance_module import ComplianceModule from .network_module import NetworkModule from .plugin_detection_module import PluginDetectionModule import weakref import gc from ..lib.discourse_utils import extract_csrf_token, extract_discourse_vers...
class DiscourseScanner: '''Main Discourse security scanner class''' def __init__(self, target_url: str, threads: Optional[int]=None, timeout: Optional[int]=None, proxy: Optional[str]=None, user_agent: Optional[str]=None, delay: Optional[float]=None, verify_ssl: Optional[bool]=None, verbose: bool=False, quiet:...
16
16
40
6
23
11
5
0.47
0
30
18
0
15
27
15
15
613
110
353
91
325
166
238
73
220
21
0
4
76
324,158
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/suspicious_file_scanner.py
discoursemap.modules.suspicious_file_scanner.SuspiciousFileScanner
from urllib.parse import urljoin import re from .malicious_pattern_checker import MaliciousPatternChecker class SuspiciousFileScanner: """Discourse-specific suspicious file scanner Detects suspicious files that shouldn't exist in a Discourse forum installation, including potential backdoors, malware, and ...
class SuspiciousFileScanner: '''Discourse-specific suspicious file scanner Detects suspicious files that shouldn't exist in a Discourse forum installation, including potential backdoors, malware, and security threats specific to Ruby-based Discourse platform. ''' def __init__(self, scanner): ...
8
7
43
4
35
6
3
0.21
0
1
1
0
7
4
7
7
314
38
243
27
235
50
65
27
57
7
0
3
22
324,159
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/theme_file_checker.py
discoursemap.modules.theme_file_checker.ThemeFileChecker
from urllib.parse import urljoin import re from .malicious_pattern_checker import MaliciousPatternChecker class ThemeFileChecker: """Checks Discourse theme files for security and integrity issues""" def __init__(self, scanner): self.scanner = scanner self.pattern_checker = MaliciousPatternChec...
class ThemeFileChecker: '''Checks Discourse theme files for security and integrity issues''' def __init__(self, scanner): pass def check_theme_files(self): '''Check theme files for integrity and security issues''' pass def _extract_theme_files(self, content, base_path): ...
7
6
48
5
38
5
5
0.13
0
4
1
0
6
5
6
6
295
38
229
35
222
29
66
35
59
10
0
4
27
324,160
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/user_module.py
discoursemap.modules.user_module.UserModule
import random import time from typing import Dict, Any, List, Optional from bs4 import BeautifulSoup import re import json from urllib.parse import urljoin, quote from ..lib.discourse_utils import extract_csrf_token class UserModule: """User security testing module for Discourse forums""" def __init__(self, s...
null
20
20
65
9
49
8
10
0.16
0
10
0
0
19
4
19
19
1,256
195
937
195
916
146
517
194
496
25
0
8
183
324,161
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/vulnerability_module.py
discoursemap.modules.vulnerability_module.VulnerabilityModule
import requests from urllib.parse import urljoin, quote, urlparse import time from typing import Dict, Any, List, Optional, Tuple import re class VulnerabilityModule: """Vulnerability testing module for Discourse forums""" def __init__(self, scanner) -> None: """ Initialize vulnerability testi...
null
16
16
48
7
35
8
5
0.23
0
5
0
0
15
3
15
15
737
115
519
112
503
117
244
112
228
14
0
6
77
324,162
ibrahmsql/discoursemap
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ibrahmsql_discoursemap/discoursemap/modules/waf_bypass_module.py
discoursemap.modules.waf_bypass_module.WAFBypassModule
from urllib.parse import urljoin, quote, unquote import random from ..lib.discourse_utils import random_user_agent import base64 import time class WAFBypassModule: """WAF bypass testing module for Discourse forums""" def __init__(self, scanner): self.scanner = scanner self.results = {'module_n...
null
8
7
40
6
31
3
5
0.09
0
4
0
0
7
2
7
7
291
52
220
53
212
20
116
50
108
8
0
5
33
324,163
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/api/login.py
nonebot_plugin_skland.api.login.SklandLoginAPI
from ..exception import RequestException from ..schemas import CRED import httpx class SklandLoginAPI: _headers = {'User-Agent': 'Skland/1.32.1 (com.hypergryph.skland; build:103201004; Android 33; ) Okhttp/4.11.0', 'Accept-Encoding': 'gzip', 'Connection': 'close'} @classmethod async def get_grant_code(cls...
class SklandLoginAPI: @classmethod async def get_grant_code(cls, token: str, grant_type: int) -> str: ''' 获取认证代码或token。 Args: token (str): 用户token grant_type (int): 授权类型。0 返回森空岛认证代码(code),1 返回官网通行证token。 Returns: str: grant_type 为 0 时返回森空岛认证代...
17
3
12
0
12
0
3
0
0
2
1
0
0
0
6
6
90
7
83
38
70
0
53
19
46
4
0
4
19
324,164
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/api/request.py
nonebot_plugin_skland.api.request.SklandAPI
from datetime import datetime from urllib.parse import urlparse from ..exception import LoginException, RequestException, UnauthorizedException import hashlib import json import hmac import httpx from typing import Literal from ..schemas import CRED, ArkCard, GachaCate, RogueData, GachaResponse, ArkSignResponse from no...
class SklandAPI: @classmethod async def get_binding(cls, cred: CRED) -> list: '''获取绑定的角色''' pass @classmethod def get_sign_header(cls, cred: CRED, url: str, method: Literal['get', 'post'], query_body: dict | None=None) -> dict: '''获取带sign请求头''' pass @classmethod async d...
17
7
21
0
20
1
5
0.04
0
8
3
0
0
0
6
6
144
7
132
57
113
5
86
30
79
6
0
4
32
324,165
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/config.py
nonebot_plugin_skland.config.Config
from pydantic import BaseModel from pydantic import Field class Config(BaseModel): skland: ScopedConfig = Field(default_factory=ScopedConfig)
class Config(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
2
0
2
2
1
0
2
2
1
0
5
0
0
324,166
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/config.py
nonebot_plugin_skland.config.CustomSource
import random from typing import Any, Literal from nonebot import logger import nonebot_plugin_localstore as store from pathlib import Path from nonebot.compat import PYDANTIC_V2 from pydantic import BaseModel from pydantic import AnyUrl as Url class CustomSource(BaseModel): uri: Url | Path def to_uri(self) -...
class CustomSource(BaseModel): def to_uri(self) -> Any: pass
2
0
23
3
19
3
7
0.14
1
3
0
0
1
0
1
83
26
4
21
4
19
3
19
4
17
7
5
3
7
324,167
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/config.py
nonebot_plugin_skland.config.ScopedConfig
from pydantic import BaseModel from typing import Any, Literal class ScopedConfig(BaseModel): github_proxy_url: str = '' 'GitHub 代理 URL' github_token: str = '' 'GitHub Token' check_res_update: bool = False '启动时检查资源更新' background_source: Literal['default', 'Lolicon', 'random'] | CustomSource...
class ScopedConfig(BaseModel): pass
1
0
0
0
0
0
0
0.86
1
0
0
0
0
0
0
82
13
0
7
7
6
6
7
7
6
0
5
0
0
324,168
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/download.py
nonebot_plugin_skland.download.DownloadProgress
from rich.text import Text from collections.abc import Iterable from rich.table import Table from rich.panel import Panel from itertools import islice from rich.progress import Task, TaskID, Progress, BarColumn, TextColumn, DownloadColumn, TimeRemainingColumn, TransferSpeedColumn class DownloadProgress(Progress): ...
class DownloadProgress(Progress): '''下载进度条''' def make_tasks_table(self, tasks: Iterable[Task]) -> Table: pass
2
1
35
4
31
0
6
0.03
1
7
0
0
1
0
1
29
48
7
40
14
38
1
26
14
24
6
2
2
6
324,169
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/download.py
nonebot_plugin_skland.download.File
from pydantic import BaseModel from urllib.parse import quote from nonebot.compat import model_validator class File(BaseModel): name: str download_url: str @model_validator(mode='before') def modify_download_url(cls, values): from .config import config values['download_url'] = quote(va...
class File(BaseModel): @model_validator(mode='before') def modify_download_url(cls, values): pass
3
0
6
0
6
0
2
0
1
0
0
0
1
0
1
83
11
1
10
3
7
0
9
2
7
2
5
1
2
324,170
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/download.py
nonebot_plugin_skland.download.GameResourceDownloader
from httpx import HTTPError, AsyncClient from pathlib import Path import asyncio from rich.progress import Task, TaskID, Progress, BarColumn, TextColumn, DownloadColumn, TimeRemainingColumn, TransferSpeedColumn from datetime import datetime from nonebot import logger from .exception import RequestException class GameR...
class GameResourceDownloader: '''游戏数据下载''' @classmethod async def get_version(cls) -> str: '''获取最新版本''' pass @classmethod async def check_update(cls, dir: Path) -> str: '''检查更新''' pass @classmethod def update_version_file(cls, version: str): '''更新本地版本文件''' pa...
16
8
18
1
17
1
2
0.07
0
16
3
0
0
0
6
6
134
12
114
57
91
8
78
33
70
3
0
4
17
324,171
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/exception.py
nonebot_plugin_skland.exception.Exception
from nonebot.exception import NoneBotException class Exception(NoneBotException): """异常基类"""
class Exception(NoneBotException): '''异常基类''' pass
1
1
0
0
0
0
0
1
1
0
0
3
0
0
0
0
2
0
1
1
0
1
1
1
0
0
1
0
0
324,172
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/exception.py
nonebot_plugin_skland.exception.LoginException
class LoginException(Exception): """登录错误"""
class LoginException(Exception): '''登录错误''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
0
2
0
1
1
0
1
1
1
0
0
2
0
0
324,173
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/exception.py
nonebot_plugin_skland.exception.RequestException
class RequestException(Exception): """请求错误"""
class RequestException(Exception): '''请求错误''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
0
2
0
1
1
0
1
1
1
0
0
2
0
0
324,174
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/exception.py
nonebot_plugin_skland.exception.UnauthorizedException
class UnauthorizedException(Exception): """登录授权错误"""
class UnauthorizedException(Exception): '''登录授权错误''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
0
2
0
1
1
0
1
1
1
0
0
2
0
0
324,175
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/model.py
nonebot_plugin_skland.model.Character
from sqlalchemy import VARCHAR, Text, BigInteger, ForeignKey, UniqueConstraint from sqlalchemy.orm import Mapped, relationship, mapped_column from nonebot_plugin_orm import Model class Character(Model): __tablename__ = 'skland_characters' id: Mapped[int] = mapped_column(primary_key=True) 'Character ID' ...
class Character(Model): pass
1
0
0
0
0
0
0
0.63
1
0
0
0
0
0
0
0
14
1
8
7
7
5
8
7
7
0
1
0
0
324,176
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/schemas/ark_card.py
nonebot_plugin_skland.schemas.ark_card.ArkCard
from nonebot.compat import model_validator from pydantic import BaseModel from datetime import datetime from typing import Any from .ark_models import Skin, Medal, Tower, Status, Recruit, Routine, Building, Campaign, BaseCount, Character, Equipment, AssistChar, ManufactureFormulaInfo class ArkCard(BaseModel): stat...
class ArkCard(BaseModel): @property def recruit_finished(self) -> int: pass @property def recruit_complete_time(self) -> str: pass @property def trainee_char(self) -> str: pass @model_validator(mode='after') def inject_uniequip_uris(cls, values) -> Any: ...
11
0
15
2
13
0
3
0
1
5
0
0
5
0
5
87
97
13
84
33
71
0
73
27
65
7
5
3
17
324,177
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/schemas/ark_card.py
nonebot_plugin_skland.schemas.ark_card.CharInfo
from pydantic import BaseModel class CharInfo(BaseModel): id: str name: str
class CharInfo(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
3
0
3
1
2
0
3
1
2
0
5
0
0
324,178
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/schemas/ark_models/assist_chars.py
nonebot_plugin_skland.schemas.ark_models.assist_chars.AssistChar
from pydantic import BaseModel from urllib.parse import quote from .base import Equip from ...config import RES_DIR, CACHE_DIR from nonebot import logger class AssistChar(BaseModel): """ 助战干员 Attributes: charId : 干员 ID skinId : 皮肤 ID level : 等级 evolvePhase : 升级阶段 po...
class AssistChar(BaseModel): ''' 助战干员 Attributes: charId : 干员 ID skinId : 皮肤 ID level : 等级 evolvePhase : 升级阶段 potentialRank : 潜能等级 skillId : 技能 ID mainSkillLvl : 主技能等级 specializeLevel : 专精等级 equip : 装备技能 ''' @property def p...
9
1
7
0
7
0
2
0.34
1
1
0
0
4
0
4
86
60
6
41
19
32
14
37
15
32
4
5
2
8
324,179
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/schemas/ark_models/assist_chars.py
nonebot_plugin_skland.schemas.ark_models.assist_chars.Equipment
from pydantic import BaseModel class Equipment(BaseModel): id: str name: str typeIcon: str
class Equipment(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
4
0
4
1
3
0
4
1
3
0
5
0
0
324,180
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/schemas/ark_models/base.py
nonebot_plugin_skland.schemas.ark_models.base.BaseCount
from pydantic import BaseModel class BaseCount(BaseModel): """ 获取/完成进度 Attributes: current (int): 当前值。 total (int): 总值/上限。 """ current: int total: int
class BaseCount(BaseModel): ''' 获取/完成进度 Attributes: current (int): 当前值。 total (int): 总值/上限。 ''' pass
1
1
0
0
0
0
0
2
1
0
0
0
0
0
0
82
11
2
3
1
2
6
3
1
2
0
5
0
0
324,181
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/schemas/ark_models/base.py
nonebot_plugin_skland.schemas.ark_models.base.Equip
from pydantic import BaseModel class Equip(BaseModel): """ 干员装备技能 Attributes: id : 技能 ID level : 等级 """ id: str level: int locked: bool
class Equip(BaseModel): ''' 干员装备技能 Attributes: id : 技能 ID level : 等级 ''' pass
1
1
0
0
0
0
0
1.5
1
0
0
0
0
0
0
82
12
2
4
1
3
6
4
1
3
0
5
0
0
324,182
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/schemas/ark_models/building.py
nonebot_plugin_skland.schemas.ark_models.building.Building
from pydantic import BaseModel from .base import BaseCount from .buildings import Hire, Labor, Power, Control, Meeting, Trading, Training, Dormitory, Furniture, TiredChar, Manufacture from datetime import datetime class Building(BaseModel): """ 基建信息 Attributes: tiredChars : 疲劳干员 powers : ...
class Building(BaseModel): ''' 基建信息 Attributes: tiredChars : 疲劳干员 powers : 发电站 manufactures : 制造站 tradings : 交易站 dormitories : 宿舍 meeting : 会客室 hire : 人力办公室 training : 训练室 labor : 无人机 furniture : 家具 control : ...
9
4
8
0
7
1
3
0.41
1
1
0
0
4
0
4
86
68
6
44
22
35
18
40
18
35
4
5
3
11
324,183
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/schemas/ark_models/buildings/Hire.py
nonebot_plugin_skland.schemas.ark_models.buildings.Hire.Hire
from pydantic import BaseModel from datetime import datetime from .base import BuildingChar class Hire(BaseModel): """人事办公室""" slotId: str level: int chars: list[BuildingChar] state: int refreshCount: int completeWorkTime: int slotState: int @property def refresh_complete_time(...
class Hire(BaseModel): '''人事办公室''' @property def refresh_complete_time(self) -> str: pass
3
1
7
1
6
0
2
0.07
1
2
0
0
1
0
1
83
19
3
15
5
11
1
14
4
11
2
5
1
2
324,184
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/schemas/ark_models/buildings/base.py
nonebot_plugin_skland.schemas.ark_models.buildings.base.Bubble
from pydantic import BaseModel class Bubble(BaseModel): normal: BubbleInfo assist: BubbleInfo
class Bubble(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
3
0
3
1
2
0
3
1
2
0
5
0
0
324,185
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/schemas/ark_models/buildings/base.py
nonebot_plugin_skland.schemas.ark_models.buildings.base.BubbleInfo
from pydantic import BaseModel class BubbleInfo(BaseModel): add: int ts: int
class BubbleInfo(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
3
0
3
1
2
0
3
1
2
0
5
0
0
324,186
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/schemas/ark_models/buildings/base.py
nonebot_plugin_skland.schemas.ark_models.buildings.base.BuildingChar
from pydantic import BaseModel class BuildingChar(BaseModel): """基建进驻干员信息""" charId: str ap: int lastApAddTime: int index: int bubble: Bubble workTime: int
class BuildingChar(BaseModel): '''基建进驻干员信息''' pass
1
1
0
0
0
0
0
0.14
1
0
0
0
0
0
0
82
9
1
7
1
6
1
7
1
6
0
5
0
0
324,187
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/schemas/ark_models/buildings/base.py
nonebot_plugin_skland.schemas.ark_models.buildings.base.Furniture
from pydantic import BaseModel class Furniture(BaseModel): """家具持有数""" total: int
class Furniture(BaseModel): '''家具持有数''' pass
1
1
0
0
0
0
0
0.5
1
0
0
0
0
0
0
82
4
1
2
1
1
1
2
1
1
0
5
0
0
324,188
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/schemas/ark_models/buildings/base.py
nonebot_plugin_skland.schemas.ark_models.buildings.base.Labor
from pydantic import BaseModel from datetime import datetime class Labor(BaseModel): """无人机""" maxValue: int value: int lastUpdateTime: int remainSecs: int @property def labor_now(self) -> int: if self.maxValue == self.value: return self.maxValue elapsed_time = ...
class Labor(BaseModel): '''无人机''' @property def labor_now(self) -> int: pass
3
1
6
0
6
0
2
0.08
1
2
0
0
1
0
1
83
15
2
12
5
9
1
11
4
9
2
5
1
2
324,189
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/schemas/ark_models/buildings/control.py
nonebot_plugin_skland.schemas.ark_models.buildings.control.Control
from pydantic import BaseModel from .base import BuildingChar class Control(BaseModel): """控制中枢""" slotId: str slotState: int level: int chars: list[BuildingChar]
class Control(BaseModel): '''控制中枢''' pass
1
1
0
0
0
0
0
0.2
1
0
0
0
0
0
0
82
7
1
5
1
4
1
5
1
4
0
5
0
0
324,190
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/schemas/ark_models/buildings/dormitory.py
nonebot_plugin_skland.schemas.ark_models.buildings.dormitory.Dormitory
from pydantic import BaseModel from .base import BuildingChar class Dormitory(BaseModel): """宿舍""" slotId: str level: int chars: list[BuildingChar] comfort: int
class Dormitory(BaseModel): '''宿舍''' pass
1
1
0
0
0
0
0
0.2
1
0
0
0
0
0
0
82
7
1
5
1
4
1
5
1
4
0
5
0
0
324,191
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/schemas/ark_models/buildings/hire.py
nonebot_plugin_skland.schemas.ark_models.buildings.hire.Hire
from datetime import datetime from pydantic import BaseModel from .base import BuildingChar class Hire(BaseModel): """人事办公室""" slotId: str level: int chars: list[BuildingChar] state: int refreshCount: int completeWorkTime: int slotState: int @property def refresh_complete_time(...
class Hire(BaseModel): '''人事办公室''' @property def refresh_complete_time(self) -> str: pass
3
1
7
1
6
0
2
0.07
1
2
0
0
1
0
1
83
19
3
15
5
11
1
14
4
11
2
5
1
2
324,192
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/schemas/ark_models/buildings/manufacture.py
nonebot_plugin_skland.schemas.ark_models.buildings.manufacture.Manufacture
from pydantic import BaseModel from .base import BuildingChar class Manufacture(BaseModel): """制造站""" slotId: str level: int chars: list[BuildingChar] completeWorkTime: int lastUpdateTime: int formulaId: str capacity: int weight: int complete: int remain: int speed: floa...
class Manufacture(BaseModel): '''制造站''' pass
1
1
0
0
0
0
0
0.08
1
0
0
0
0
0
0
82
14
1
12
1
11
1
12
1
11
0
5
0
0
324,193
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/schemas/ark_models/buildings/manufacture.py
nonebot_plugin_skland.schemas.ark_models.buildings.manufacture.ManufactureFormulaInfo
from pydantic import BaseModel class ManufactureFormulaInfo(BaseModel): """制造站配方""" id: str itemId: str weight: int costPoint: int
class ManufactureFormulaInfo(BaseModel): '''制造站配方''' pass
1
1
0
0
0
0
0
0.2
1
0
0
0
0
0
0
82
7
1
5
1
4
1
5
1
4
0
5
0
0
324,194
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/schemas/ark_models/buildings/meeting.py
nonebot_plugin_skland.schemas.ark_models.buildings.meeting.Clue
from pydantic import BaseModel class Clue(BaseModel): """线索信息""" own: int received: int dailyReward: bool needReceive: int board: list[str] sharing: bool shareCompleteTime: int
class Clue(BaseModel): '''线索信息''' pass
1
1
0
0
0
0
0
0.13
1
0
0
0
0
0
0
82
10
1
8
1
7
1
8
1
7
0
5
0
0
324,195
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/schemas/ark_models/buildings/meeting.py
nonebot_plugin_skland.schemas.ark_models.buildings.meeting.Meeting
from .base import BuildingChar from pydantic import BaseModel class Meeting(BaseModel): """会客厅""" slotId: str level: int chars: list[BuildingChar] clue: Clue lastUpdateTime: int completeWorkTime: int
class Meeting(BaseModel): '''会客厅''' pass
1
1
0
0
0
0
0
0.14
1
0
0
0
0
0
0
82
9
1
7
1
6
1
7
1
6
0
5
0
0
324,196
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/schemas/ark_models/buildings/power.py
nonebot_plugin_skland.schemas.ark_models.buildings.power.Power
from .base import BuildingChar from pydantic import BaseModel class Power(BaseModel): """发电站""" slotId: str level: int chars: list[BuildingChar]
class Power(BaseModel): '''发电站''' pass
1
1
0
0
0
0
0
0.25
1
0
0
0
0
0
0
82
6
1
4
1
3
1
4
1
3
0
5
0
0
324,197
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/schemas/ark_models/buildings/tired.py
nonebot_plugin_skland.schemas.ark_models.buildings.tired.TiredChar
from pydantic import BaseModel from .base import Bubble class TiredChar(BaseModel): """疲劳干员""" charId: str ap: int lastApAddTime: int roomSlotId: str index: int bubble: Bubble workTime: int
class TiredChar(BaseModel): '''疲劳干员''' pass
1
1
0
0
0
0
0
0.13
1
0
0
0
0
0
0
82
10
1
8
1
7
1
8
1
7
0
5
0
0
324,198
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/schemas/ark_models/buildings/trading.py
nonebot_plugin_skland.schemas.ark_models.buildings.trading.DeliveryItem
from pydantic import BaseModel class DeliveryItem(BaseModel): id: str count: int type: str
class DeliveryItem(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
4
0
4
1
3
0
4
1
3
0
5
0
0
324,199
FrostN0v0/nonebot-plugin-skland
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/FrostN0v0_nonebot-plugin-skland/nonebot_plugin_skland/schemas/ark_models/buildings/trading.py
nonebot_plugin_skland.schemas.ark_models.buildings.trading.Gain
from pydantic import BaseModel class Gain(BaseModel): id: str count: int type: str
class Gain(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
4
0
4
1
3
0
4
1
3
0
5
0
0