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
323,400
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/views/editor.py
scriptorium.views.editor.ScrptEditorView
from scriptorium.widgets import ThemeSelector from gi.repository import Adw, Gtk, GObject, Gio, GLib from scriptorium.models import Project, Image from pathlib import Path from scriptorium.globals import BASE from scriptorium.dialogs import ScrptAddDialog @Gtk.Template(resource_path=f'{BASE}/views/editor.ui') class Sc...
@Gtk.Template(resource_path=f'{BASE}/views/editor.ui') class ScrptEditorView(Adw.NavigationPage): '''The editor is the main view to modify a manuscript.''' def __init__(self): '''Create a new instance of the editor.''' pass def connect_to_project(self, project: Project): pass @...
14
7
18
3
13
3
2
0.2
1
5
2
0
8
0
8
8
183
36
123
38
110
24
87
37
75
3
1
2
17
323,401
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/views/library.py
scriptorium.views.library.ScrptLibraryView
from scriptorium.widgets import ThemeSelector from scriptorium.dialogs import ScrptAddDialog from scriptorium.models import Library, Project from gi.repository import Adw, GObject, Gio, Gtk from .library_item import LibraryItem from gi.repository import GLib from scriptorium.globals import BASE @Gtk.Template(resource_...
@Gtk.Template(resource_path=f'{BASE}/views/library.ui') class ScrptLibraryView(Adw.NavigationPage): def __init__(self, **kwargs): pass @Gtk.Template.Callback() def on_scrptlibraryview_shown(self, _src): '''Update the selected project to None.''' pass @Gtk.Template.Callback() ...
23
8
14
2
9
3
2
0.26
1
5
3
0
14
0
14
14
247
54
153
66
131
40
127
60
111
6
1
2
29
323,402
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/views/library_item.py
scriptorium.views.library_item.LibraryItem
from scriptorium.globals import BASE from gi.repository import GObject from gi.repository import Gtk from gi.repository import Gio @Gtk.Template(resource_path=f'{BASE}/views/library_item.ui') class LibraryItem(Gtk.Box): __gtype_name__ = 'LibraryItem' cover_picture = Gtk.Template.Child() stack = Gtk.Templat...
@Gtk.Template(resource_path=f'{BASE}/views/library_item.ui') class LibraryItem(Gtk.Box): def bind(self, project): '''Connect the entry to a project.''' pass def refresh_display(self): '''Update the entry for the project in case something changes.''' pass def on_cover_chang...
5
2
23
2
16
4
3
0.21
1
0
0
0
3
1
3
3
83
13
58
15
54
12
41
15
37
6
1
2
10
323,403
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/views/plan/editor_entities.py
scriptorium.views.plan.editor_entities.ScrptEntityPanel
from scriptorium.dialogs import ScrptAddDialog from scriptorium.globals import BASE from scriptorium.models import Entity from gi.repository import Adw, Gtk from .editor_entities_details import ScrptEntitiesDetailsPanel from scriptorium.widgets import EntityCard @Gtk.Template(resource_path=f'{BASE}/views/plan/editor_e...
@Gtk.Template(resource_path=f'{BASE}/views/plan/editor_entities.ui') class ScrptEntityPanel(Adw.NavigationPage): def __init__(self, editor, **kwargs): '''Create an instance of the panel.''' pass @Gtk.Template.Callback() def on_add_entity_clicked(self, _button): '''Handle a request t...
8
2
9
1
7
1
1
0.1
1
4
3
0
3
1
3
3
41
7
31
18
24
3
24
16
19
2
1
1
5
323,404
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/views/plan/editor_entities_details.py
scriptorium.views.plan.editor_entities_details.ScrptEntitiesDetailsPanel
from scriptorium.globals import BASE from gi.repository import Adw, Gtk, GObject @Gtk.Template(resource_path=f'{BASE}/views/plan/editor_entities_details.ui') class ScrptEntitiesDetailsPanel(Adw.NavigationPage): __gtype_name__ = 'ScrptEntitiesDetailsPanel' edit_title = Gtk.Template.Child() edit_synopsis = G...
@Gtk.Template(resource_path=f'{BASE}/views/plan/editor_entities_details.ui') class ScrptEntitiesDetailsPanel(Adw.NavigationPage): def __init__(self, entity, **kwargs): '''Create an instance of the panel.''' pass @Gtk.Template.Callback() def on_delete_entity_activated(self, _button): ...
6
3
15
2
11
2
1
0.16
1
1
0
0
3
1
3
3
53
10
37
11
32
6
22
10
18
2
1
1
4
323,405
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/views/plan/editor_images.py
scriptorium.views.plan.editor_images.ScrptImagesPanel
from .editor_images_item import ImageItem from scriptorium.globals import BASE from gi.repository import Adw, Gtk @Gtk.Template(resource_path=f'{BASE}/views/plan/editor_images.ui') class ScrptImagesPanel(Adw.NavigationPage): __gtype_name__ = 'ScrptImagesPanel' __icon_name__ = 'image-x-generic-symbolic' __d...
@Gtk.Template(resource_path=f'{BASE}/views/plan/editor_images.ui') class ScrptImagesPanel(Adw.NavigationPage): def __init__(self, editor, **kwargs): '''Create an instance of the panel.''' pass
3
1
8
2
4
2
1
0.2
1
2
1
0
1
1
1
1
16
4
10
8
8
2
10
8
8
1
1
0
1
323,406
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/views/plan/editor_images_item.py
scriptorium.views.plan.editor_images_item.ImageItem
from gi.repository import Adw, Gtk from scriptorium.globals import BASE @Gtk.Template(resource_path=f'{BASE}/views/plan/editor_images_item.ui') class ImageItem(Gtk.Overlay): __gtype_name__ = 'ImageItem' picture = Gtk.Template.Child() remove_image_button = Gtk.Template.Child() set_as_cover_button = Gtk....
@Gtk.Template(resource_path=f'{BASE}/views/plan/editor_images_item.ui') class ImageItem(Gtk.Overlay): def __init__(self, image): pass @Gtk.Template.Callback() def on_eventcontrollermotion_enter(self, _src, _x, _y): pass @Gtk.Template.Callback() def on_eventcontrollermotion_leave(sel...
7
0
5
1
3
1
1
0.12
1
1
0
0
3
0
3
3
25
6
17
10
11
2
13
8
9
1
1
0
3
323,407
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/views/plan/editor_manuscript.py
scriptorium.views.plan.editor_manuscript.ScrptManuscriptPanel
from scriptorium.globals import BASE from gi.repository import Adw, Gtk, GObject, Gio @Gtk.Template(resource_path=f'{BASE}/views/plan/editor_manuscript.ui') class ScrptManuscriptPanel(Adw.NavigationPage): __gtype_name__ = 'ScrptManuscriptPanel' __title__ = 'Description' __icon_name__ = 'dictionary-symbolic...
@Gtk.Template(resource_path=f'{BASE}/views/plan/editor_manuscript.ui') class ScrptManuscriptPanel(Adw.NavigationPage): def __init__(self, editor, **kwargs): '''Create an instance of the panel.''' pass def create_message_entry(self, message): '''Add a message to the history.''' ...
6
4
18
2
14
2
2
0.12
1
1
0
0
4
1
4
4
87
11
68
21
63
8
44
21
39
2
1
1
6
323,408
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/views/plan/editor_overview.py
scriptorium.views.plan.editor_overview.ScrptOverviewPanel
from gi.repository import Adw, Gtk from .editor_overview_item import ScrptOverviewPanelItem from scriptorium.globals import BASE from scriptorium.widgets import ChapterColumn @Gtk.Template(resource_path=f'{BASE}/views/plan/editor_overview.ui') class ScrptOverviewPanel(Adw.NavigationPage): __gtype_name__ = 'ScrptOv...
@Gtk.Template(resource_path=f'{BASE}/views/plan/editor_overview.ui') class ScrptOverviewPanel(Adw.NavigationPage): def __init__(self, editor, **kwargs): '''Create an instance of the panel.''' pass def bind_chapter(self, chapter): '''Bind a scene card to a scene.''' pass de...
6
2
6
1
4
1
1
0.19
1
3
2
0
4
1
4
4
35
10
21
15
16
4
21
15
16
1
1
0
4
323,409
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/views/plan/editor_overview_item.py
scriptorium.views.plan.editor_overview_item.ScrptOverviewPanelItem
from gi.repository import Adw, Gtk from scriptorium.models import Manuscript, Chapter, Resource from scriptorium.globals import BASE @Gtk.Template(resource_path=f'{BASE}/views/plan/editor_overview_item.ui') class ScrptOverviewPanelItem(Adw.Bin): __gtype_name__ = 'ScrptOverviewPanelItem' title = Gtk.Template.Ch...
@Gtk.Template(resource_path=f'{BASE}/views/plan/editor_overview_item.ui') class ScrptOverviewPanelItem(Adw.Bin): def bind_to_resource(self, resource: Resource): '''Connect this item to an instance of Resource.''' pass def on_signallistitemfactory_setup(self, _, list_item): pass de...
5
1
13
2
8
2
2
0.23
1
0
0
0
3
1
3
3
48
11
30
15
26
7
29
15
25
3
1
1
5
323,410
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/views/plan/editor_scenes.py
scriptorium.views.plan.editor_scenes.ScrptScenesPanel
from gi.repository import Adw, Gtk from scriptorium.dialogs import ScrptAddDialog from .editor_scenes_details import ScrptScenesDetailsPanel from scriptorium.widgets import SceneCard from scriptorium.models import Scene from scriptorium.globals import BASE @Gtk.Template(resource_path=f'{BASE}/views/plan/editor_scenes....
@Gtk.Template(resource_path=f'{BASE}/views/plan/editor_scenes.ui') class ScrptScenesPanel(Adw.NavigationPage): '''Panel to list all the scenes and edit their content.''' def __init__(self, editor, **kwargs): '''Create an instance of the panel.''' pass @Gtk.Template.Callback() def on_lis...
8
3
10
1
8
1
1
0.09
1
4
3
0
3
1
3
3
45
9
33
19
26
3
26
17
21
2
1
1
5
323,411
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/views/plan/editor_scenes_details.py
scriptorium.views.plan.editor_scenes_details.ScrptScenesDetailsPanel
from scriptorium.widgets import EntityCard from scriptorium.globals import BASE from scriptorium.dialogs import ScrptSelectEntitiesDialog from gi.repository import Adw, Gtk, GObject @Gtk.Template(resource_path=f'{BASE}/views/plan/editor_scenes_details.ui') class ScrptScenesDetailsPanel(Adw.NavigationPage): __gtype...
@Gtk.Template(resource_path=f'{BASE}/views/plan/editor_scenes_details.ui') class ScrptScenesDetailsPanel(Adw.NavigationPage): def __init__(self, scene): '''Create an instance of the panel.''' pass @Gtk.Template.Callback() def on_droptarget_drop(self, _target, _entity, _x, _y): pass ...
12
4
14
1
11
1
1
0.1
1
3
2
0
6
1
6
6
107
16
83
25
72
8
49
22
41
2
1
1
9
323,412
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/views/plan/page.py
scriptorium.views.plan.page.PlanPage
from gi.repository import Adw, Gtk, GObject from scriptorium.models import Project from scriptorium.globals import BASE @Gtk.Template(resource_path=f'{BASE}/views/plan/page.ui') class PlanPage(Adw.Bin): __gtype_name__ = 'PlanPage' panels_list = Gtk.Template.Child() panels = Gtk.Template.Child() project...
@Gtk.Template(resource_path=f'{BASE}/views/plan/page.ui') class PlanPage(Adw.Bin): def __init__(self): '''Create a new instance of the planning page.''' pass def on_map(self, _): pass def connect_to_project(self, project): pass def initialise_panels(self): '''...
8
3
13
2
9
2
3
0.17
1
2
0
0
5
0
5
5
79
17
53
22
46
9
51
21
45
5
1
2
13
323,413
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/views/publish/page.py
scriptorium.views.publish.page.NavigationRow
from gi.repository import Adw, Gtk, Gio, GLib class NavigationRow(Gtk.Box): def __init__(self, part): super().__init__(margin_top=6) self._part = part label = Gtk.Label(label=part.title) self.append(label) @property def part(self): return self._part
class NavigationRow(Gtk.Box): def __init__(self, part): pass @property def part(self): pass
4
0
6
1
4
1
1
0.22
1
1
0
0
2
1
2
2
15
4
9
6
5
2
8
5
5
1
1
0
2
323,414
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/views/publish/page.py
scriptorium.views.publish.page.PublishPage
from scriptorium.utils.publisher import Publisher from gi.repository import Adw, Gtk, Gio, GLib from scriptorium.globals import BASE from pathlib import Path @Gtk.Template(resource_path=f'{BASE}/views/publish/page.ui') class PublishPage(Adw.Bin): __gtype_name__ = 'PublishPage' __title__ = 'Formatting' __ic...
@Gtk.Template(resource_path=f'{BASE}/views/publish/page.ui') class PublishPage(Adw.Bin): def __init__(self, **kwargs): pass def connect_to_project(self, project): pass @Gtk.Template.Callback() def on_publishpage_map(self, page): pass def reload_book(self): pass ...
11
1
13
2
10
2
2
0.14
1
6
2
0
6
3
6
6
107
19
77
32
67
11
65
30
57
4
1
1
12
323,415
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/views/write/navigation.py
scriptorium.views.write.navigation.WriteNavigation
from gi.repository import Gio, Graphene, Gtk, Adw from scriptorium.models import Chapter, Manuscript, Scene from scriptorium.globals import BASE from .navigation_item import NavigationItem @Gtk.Template(resource_path=f'{BASE}/views/write/navigation.ui') class WriteNavigation(Adw.Bin): __gtype_name__ = 'WriteNaviga...
@Gtk.Template(resource_path=f'{BASE}/views/write/navigation.ui') class WriteNavigation(Adw.Bin): def __init__(self): pass @Gtk.Template.Callback() def on_list_item_setup(self, _, list_item): pass @Gtk.Template.Callback() def on_list_item_bind(self, _, list_item): '''Bind an ...
8
2
17
3
10
4
1
0.33
1
2
1
0
4
0
4
4
86
18
51
23
44
17
38
21
33
2
1
0
5
323,416
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/views/write/navigation_item.py
scriptorium.views.write.navigation_item.NavigationItem
from scriptorium.globals import BASE from scriptorium.models import Manuscript, Chapter, Resource from gi.repository import Adw, Gdk, Gio, GObject, Gtk @Gtk.Template(resource_path=f'{BASE}/views/write/navigation_item.ui') class NavigationItem(Adw.Bin): __gtype_name__ = 'NavigationItem' resource = GObject.Prope...
@Gtk.Template(resource_path=f'{BASE}/views/write/navigation_item.ui') class NavigationItem(Adw.Bin): def __init__(self): pass def on_drag_prepare(self, _source, _x, _y): '''Prepare for a DnD event by attaching the element being grabbed.''' pass def on_drag_begin(self, source, drag...
14
6
15
2
11
3
2
0.22
1
3
1
0
12
1
12
12
204
37
138
48
125
30
115
48
102
5
1
2
25
323,417
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/views/write/navigation_item.py
scriptorium.views.write.navigation_item.SpecialItem
import enum class SpecialItem(enum.IntEnum): MANUSCRIPT = 0 DRAFTS = 1
class SpecialItem(enum.IntEnum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
55
3
0
3
3
2
0
3
3
2
0
3
0
0
323,418
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/views/write/navigation_item.py
scriptorium.views.write.navigation_item.State
import enum class State(enum.IntEnum): NEUTRAL = 0 PUSHED = 1
class State(enum.IntEnum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
55
3
0
3
3
2
0
3
3
2
0
3
0
0
323,419
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/views/write/page.py
scriptorium.views.write.page.WritePage
from scriptorium.globals import BASE from scriptorium.widgets import AnnotationCard from scriptorium.utils import switch_tag_for_selection from scriptorium.models import Scene from gi.repository import Adw, Gtk, Gdk, GLib, Gio, GObject @Gtk.Template(resource_path=f'{BASE}/views/write/page.ui') class WritePage(Adw.Bin)...
@Gtk.Template(resource_path=f'{BASE}/views/write/page.ui') class WritePage(Adw.Bin): def __init__(self): '''Create an instance of the editor.''' pass def connect_to_project(self, project): pass def unselect_on_delete(self, _src): '''Handle case when a selected resource is ...
19
6
17
2
12
3
2
0.21
1
3
1
0
14
7
14
14
271
49
184
68
166
38
137
65
122
5
1
4
26
323,420
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/widgets/annotation.py
scriptorium.widgets.annotation.AnnotationCard
from gi.repository import Adw, Gtk, GObject from scriptorium.models import Annotation from scriptorium.globals import BASE @Gtk.Template(resource_path=f'{BASE}/widgets/annotation.ui') class AnnotationCard(Adw.Bin): __gtype_name__ = 'AnnotationCard' annotation = GObject.Property(type=Annotation) title = GOb...
@Gtk.Template(resource_path=f'{BASE}/widgets/annotation.ui') class AnnotationCard(Adw.Bin): def __init__(self, text_buffer, annotation: Annotation): pass def on_suggestion_click(self, button, text_buffer): pass
4
0
16
2
13
2
3
0.09
1
1
0
0
2
0
2
2
42
6
33
13
30
3
29
13
26
5
1
1
6
323,421
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/widgets/cards_list.py
scriptorium.widgets.cards_list.Card
from gi.repository import Gtk, GObject, Gdk, Gio, Adw class Card(Adw.Bin): __gtype_name__ = 'Card' def __init__(self, parent, create_widget_func, entry): """Create an instance of the card.""" super().__init__() self._parent = parent self._create_widget_func = create_widget_func...
class Card(Adw.Bin): def __init__(self, parent, create_widget_func, entry): '''Create an instance of the card.''' pass @GObject.Property(type=Gtk.Widget) def widget(self): pass def get_title(self): pass def on_drag_prepare(self, _source, x, y): pass d...
15
2
10
1
8
1
1
0.1
1
2
0
0
13
9
13
13
151
32
108
40
93
11
103
39
89
2
1
1
17
323,422
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/widgets/cards_list.py
scriptorium.widgets.cards_list.CardDropZone
from gi.repository import Gtk, GObject, Gdk, Gio, Adw class CardDropZone(Gtk.Box): __gtype_name__ = 'CardDropZone' def __init__(self, parent): """Create an instance of the drop zone.""" super().__init__() self._parent = parent self.set_size_request(120, 120) if self._pa...
class CardDropZone(Gtk.Box): def __init__(self, parent): '''Create an instance of the drop zone.''' pass def on_drop(self, _target, entry, _x, _y): pass def on_state_flags_changed(self, widget, _previous_flags): '''Manually remove the highlight area.''' pass
4
2
11
2
9
1
2
0.11
1
1
0
0
3
1
3
3
39
8
28
10
24
3
25
10
21
2
1
1
5
323,423
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/widgets/cards_list.py
scriptorium.widgets.cards_list.CardsList
from gi.repository import Gtk, GObject, Gdk, Gio, Adw class CardsList(Gtk.Box): """Widget to display a list of cards""" __gtype_name__ = 'CardsList' __gsignals__ = {'start-drag': (GObject.SignalFlags.RUN_FIRST, None, ()), 'stop-drag': (GObject.SignalFlags.RUN_FIRST, None, ())} def __init__(self): ...
class CardsList(Gtk.Box): '''Widget to display a list of cards''' def __init__(self): pass def bind_model(self, model, create_widget_func) -> None: '''Connect the widget to a model.''' pass @GObject.Property(type=Gio.ListStore) def model(self): pass def on_ite...
7
3
12
2
7
3
2
0.35
1
4
2
0
5
3
5
5
76
18
43
21
36
15
39
20
33
4
1
1
11
323,424
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/widgets/chapter.py
scriptorium.widgets.chapter.ChapterCard
from scriptorium.models import Chapter from gi.repository import Adw, Gtk, GObject @Gtk.Template(resource_path='/com/github/cgueret/Scriptorium/widgets/chapter.ui') class ChapterCard(Adw.Bin): __gtype_name__ = 'ChapterCard' _scene = None title = GObject.Property(type=str) synopsis = GObject.Property(ty...
@Gtk.Template(resource_path='/com/github/cgueret/Scriptorium/widgets/chapter.ui') class ChapterCard(Adw.Bin): def __init__(self, chapter: Chapter): pass @GObject.Property(type=Chapter) def chapter(self): pass
5
0
8
1
7
1
1
0.05
1
1
0
0
2
1
2
2
27
6
20
10
16
1
15
9
12
1
1
0
2
323,425
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/widgets/chapter_column.py
scriptorium.widgets.chapter_column.ChapterColumn
from gi.repository import Adw, Gtk, GObject, Gdk from scriptorium.models import Chapter from .scene import SceneCard @Gtk.Template(resource_path='/com/github/cgueret/Scriptorium/widgets/chapter_column.ui') class ChapterColumn(Adw.Bin): __gtype_name__ = 'ChapterColumn' scenes_list = Gtk.Template.Child() col...
@Gtk.Template(resource_path='/com/github/cgueret/Scriptorium/widgets/chapter_column.ui') class ChapterColumn(Adw.Bin): def __init__(self, **kwargs): '''Create a new instance of the class.''' pass def connect_to_chapter(self, chapter: Chapter): '''Connect the column to a chapter.''' ...
8
6
9
1
6
2
1
0.36
1
2
1
0
6
0
6
6
65
12
39
18
32
14
39
18
32
2
1
1
7
323,426
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/widgets/entity_card.py
scriptorium.widgets.entity_card.EntityCard
from scriptorium.models import Entity from scriptorium.globals import BASE from gi.repository import Adw, Gtk, GObject @Gtk.Template(resource_path=f'{BASE}/widgets/entity_card.ui') class EntityCard(Adw.Bin): __gtype_name__ = 'EntityCard' _entity = None title = GObject.Property(type=str) synopsis = GObj...
@Gtk.Template(resource_path=f'{BASE}/widgets/entity_card.ui') class EntityCard(Adw.Bin): def __init__(self, entity: Entity, can_activate: bool=False, can_move: bool=False): pass @GObject.Property(type=Entity) def entity(self): pass
5
0
15
2
12
2
1
0.09
1
2
0
0
2
0
2
2
43
7
33
13
27
3
18
10
15
1
1
0
2
323,427
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/widgets/multiline_entry_row.py
scriptorium.widgets.multiline_entry_row.MultiLineEntryRow
from gi.repository import Adw, Gtk, GObject from scriptorium.globals import BASE @Gtk.Template(resource_path=f'{BASE}/widgets/multiline_entry_row.ui') class MultiLineEntryRow(Adw.PreferencesRow): __gtype_name__ = 'MultiLineEntryRow' header = GObject.Property(type=str) text = GObject.Property(type=str) ...
@Gtk.Template(resource_path=f'{BASE}/widgets/multiline_entry_row.ui') class MultiLineEntryRow(Adw.PreferencesRow): def __init__(self, **kwargs): '''Create an instance of the panel.''' pass @Gtk.Template.Callback() def on_state_flags_changed(self, _content, _flags): '''Set the entry ...
5
2
10
1
8
2
2
0.13
1
1
0
0
2
0
2
2
33
6
24
10
20
3
16
9
13
2
1
1
3
323,428
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/widgets/scene.py
scriptorium.widgets.scene.SceneCard
from gi.repository import Adw, Gtk, GObject from scriptorium.utils import get_child_at from scriptorium.models import Scene @Gtk.Template(resource_path='/com/github/cgueret/Scriptorium/widgets/scene.ui') class SceneCard(Adw.Bin): __gtype_name__ = 'SceneCard' _scene = None title = GObject.Property(type=str)...
@Gtk.Template(resource_path='/com/github/cgueret/Scriptorium/widgets/scene.ui') class SceneCard(Adw.Bin): def __init__(self, scene: Scene, can_activate: bool=False, can_move: bool=False): pass @GObject.Property(type=Scene) def scene(self): pass def _get_avatar(self, entity): pa...
7
1
11
2
8
2
2
0.18
1
3
0
0
4
0
4
4
58
12
39
19
33
7
34
18
29
3
1
1
7
323,429
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/widgets/text_view.py
scriptorium.widgets.text_view.ScrptTextView
from scriptorium.globals import BASE from gi.repository import Gtk, GObject, Pango, Gdk, Gio @Gtk.Template(resource_path=f'{BASE}/widgets/text_view.ui') class ScrptTextView(Gtk.TextView): __gtype_name__ = 'ScrptTextView' css_provider = Gtk.CssProvider() line_height = GObject.Property(type=float) font_d...
@Gtk.Template(resource_path=f'{BASE}/widgets/text_view.ui') class ScrptTextView(Gtk.TextView): def __init__(self, **kwargs): pass @Gtk.Template.Callback() def on_settings_changed(self, _settings=None, _key=None): ''' Handle a change in settings by updating the CSS ''' ...
5
1
42
5
33
7
3
0.18
1
1
0
0
2
0
2
2
98
15
73
19
69
13
37
18
34
5
1
2
6
323,430
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/widgets/theme_selector.py
scriptorium.widgets.theme_selector.ThemeSelector
from gi.repository import Adw, Gtk, GLib from scriptorium.globals import BASE @Gtk.Template(resource_path=f'{BASE}/widgets/theme_selector.ui') class ThemeSelector(Adw.Bin): __gtype_name__ = 'ThemeSelector' box = Gtk.Template.Child() dark = Gtk.Template.Child() light = Gtk.Template.Child() follow = ...
@Gtk.Template(resource_path=f'{BASE}/widgets/theme_selector.ui') class ThemeSelector(Adw.Bin): def __init__(self): pass def on_notify_system_supports_color_schemes(self, style_manager): pass def on_notify_dark(self, style_manager, _value): pass
5
0
9
1
8
0
1
0
1
1
0
0
3
1
3
3
37
8
29
12
25
0
25
12
21
2
1
1
4
323,431
cgueret/Scriptorium
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/cgueret_Scriptorium/scriptorium/window.py
scriptorium.window.ScrptWindow
from scriptorium.globals import BASE from gi.repository import Gtk, Adw, GObject, Gdk, Gio, GLib from scriptorium.views import ScrptEditorView from pathlib import Path from scriptorium.models import Project @Gtk.Template(resource_path=f'{BASE}/window.ui') class ScrptWindow(Adw.ApplicationWindow): __gtype_name__ = ...
@Gtk.Template(resource_path=f'{BASE}/window.ui') class ScrptWindow(Adw.ApplicationWindow): def __init__(self, **kwargs): pass @Gtk.Template.Callback() def on_close_request(self, event): pass def _open_library(self): pass def on_project_changed(self, _navigation, _other): ...
9
1
18
3
11
4
2
0.47
1
4
1
0
6
1
6
6
140
28
76
23
68
36
52
22
45
4
1
2
11
323,432
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/benchmarks/benchmarks/server/gateway/csp/state.py
benchmarks.server.gateway.csp.state.CspStruct
from datetime import datetime import typing from csp import Enum, Struct class CspStruct(Struct): a: int = 0 b: str c: datetime = datetime.now() d: str = '' e: typing.Dict[str, str] = {'A': 'hhello', 'B': 'bbye'} f: MyEnum = MyEnum.A h: typing.List[int] = [1, 2, 4] i: list = [1, 2, 4] ...
class CspStruct(Struct): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
11
0
11
10
10
0
11
10
10
0
1
0
0
323,433
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/benchmarks/benchmarks/server/gateway/csp/state.py
benchmarks.server.gateway.csp.state.CspSubStruct
import typing from datetime import datetime from csp import Enum, Struct class CspSubStruct(Struct): suba: int = 1 subb: str = 'b' subc: datetime = datetime.now() subd: str sube: typing.Dict[str, str] subf: MyEnum = MyEnum.A
class CspSubStruct(Struct): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
7
0
7
5
6
0
7
5
6
0
1
0
0
323,434
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/benchmarks/benchmarks/server/gateway/csp/state.py
benchmarks.server.gateway.csp.state.NonCspStruct
import typing from datetime import datetime class NonCspStruct(object): a: int = 0 b: str c: datetime = datetime.now() d: str = '' e: typing.Dict[str, str] = {'A': 'hhello', 'B': 'bbye'} f: MyEnum = MyEnum.A g: CspSubStruct = CspSubStruct() def __init__(self, **kwargs): for k, ...
class NonCspStruct(object): def __init__(self, **kwargs): pass
2
0
3
0
3
0
2
0
1
0
0
0
1
0
1
1
12
1
11
9
9
0
11
9
9
2
1
1
2
323,435
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/benchmarks/benchmarks/server/gateway/csp/state.py
benchmarks.server.gateway.csp.state.StateFirstQueryAll
from csp_gateway import Filter, FilterCondition, Query, State, StateType, disable_duckdb_state, enable_duckdb_state, modify_buffer_threshold class StateFirstQueryAll: params = [_STATES, _BUFFER_SIZES] param_names = ['StateType', '#Queries'] timeout = 300 def setup(self, state_typ, threshold): ...
class StateFirstQueryAll: def setup(self, state_typ, threshold): pass def time_query(self, state_typ, _): pass
3
0
6
0
6
0
3
0.06
0
4
3
0
2
1
2
2
20
3
17
9
14
1
16
9
13
4
0
1
5
323,436
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/benchmarks/benchmarks/server/gateway/csp/state.py
benchmarks.server.gateway.csp.state.StateFirstQueryFilter
from csp_gateway import Filter, FilterCondition, Query, State, StateType, disable_duckdb_state, enable_duckdb_state, modify_buffer_threshold class StateFirstQueryFilter: params = [_STATES, _BUFFER_SIZES] param_names = ['StateType', '#Queries'] timeout = 300 def setup(self, state_typ, threshold): ...
class StateFirstQueryFilter: def setup(self, state_typ, threshold): pass def time_query(self, state_typ, _): pass
3
0
6
0
6
0
3
0.06
0
4
3
0
2
1
2
2
20
3
17
9
14
1
16
9
13
4
0
1
5
323,437
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/benchmarks/benchmarks/server/gateway/csp/state.py
benchmarks.server.gateway.csp.state.StateInitialize
from csp_gateway import Filter, FilterCondition, Query, State, StateType, disable_duckdb_state, enable_duckdb_state, modify_buffer_threshold class StateInitialize: params = _STATES param_names = ['StateType'] def setup(self, state_typ): if state_typ == StateType.DEFAULT: disable_duckdb...
class StateInitialize: def setup(self, state_typ): pass def time_create(self, state_typ): pass
3
0
4
0
4
0
2
0
0
1
1
0
2
0
2
2
13
2
11
6
8
0
10
6
7
3
0
1
4
323,438
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/benchmarks/benchmarks/server/gateway/csp/state.py
benchmarks.server.gateway.csp.state.StateInsert
from csp_gateway import Filter, FilterCondition, Query, State, StateType, disable_duckdb_state, enable_duckdb_state, modify_buffer_threshold class StateInsert: params = [_STATES, _BUFFER_SIZES] param_names = ['StateType', '#Inserts'] timeout = 300 def setup(self, state_typ, _): if state_typ ==...
class StateInsert: def setup(self, state_typ, _): pass def time_insert(self, state_typ, threshold): pass
3
0
6
0
6
0
3
0.07
0
4
3
0
2
1
2
2
17
2
15
9
12
1
14
9
11
3
0
1
5
323,439
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/benchmarks/benchmarks/server/gateway/csp/state.py
benchmarks.server.gateway.csp.state.StateInsertKeyBy
from csp_gateway import Filter, FilterCondition, Query, State, StateType, disable_duckdb_state, enable_duckdb_state, modify_buffer_threshold class StateInsertKeyBy: params = [_STATES, _BUFFER_SIZES] param_names = ['StateType', '#Inserts'] timeout = 300 def setup(self, state_typ, _): if state_t...
class StateInsertKeyBy: def setup(self, state_typ, _): pass def time_insert(self, state_typ, threshold): pass
3
0
6
0
6
1
3
0.13
0
4
3
0
2
1
2
2
18
2
15
9
12
2
14
9
11
3
0
1
5
323,440
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/benchmarks/benchmarks/server/gateway/csp/state.py
benchmarks.server.gateway.csp.state.StateMultiQueryAll
from csp_gateway import Filter, FilterCondition, Query, State, StateType, disable_duckdb_state, enable_duckdb_state, modify_buffer_threshold class StateMultiQueryAll: params = [_STATES, _BUFFER_SIZES] param_names = ['StateType', '#Queries'] timeout = 300 def setup(self, state_typ, threshold): ...
class StateMultiQueryAll: def setup(self, state_typ, threshold): pass def time_query(self, state_typ, _): pass
3
0
6
0
6
0
3
0.06
0
4
3
0
2
1
2
2
18
2
16
9
13
1
15
9
12
4
0
1
5
323,441
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/benchmarks/benchmarks/server/gateway/csp/state.py
benchmarks.server.gateway.csp.state.StateMultiQueryFilter
from csp_gateway import Filter, FilterCondition, Query, State, StateType, disable_duckdb_state, enable_duckdb_state, modify_buffer_threshold class StateMultiQueryFilter: params = [_STATES, _BUFFER_SIZES] param_names = ['StateType', '#Queries'] timeout = 300 def setup(self, state_typ, threshold): ...
class StateMultiQueryFilter: def setup(self, state_typ, threshold): pass def time_query(self, state_typ, _): pass
3
0
6
0
6
0
3
0.06
0
4
3
0
2
1
2
2
18
2
16
9
13
1
15
9
12
4
0
1
5
323,442
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/benchmarks/benchmarks/utils/id_generator.py
benchmarks.utils.id_generator.Counter
from csp_gateway import GatewayModule, get_counter class Counter: def setup(self): self.counter = get_counter(MyGatewayModule()) def time_counter_next(self): self.counter.next()
class Counter: def setup(self): pass def time_counter_next(self): pass
3
0
2
0
2
0
1
0
0
1
1
0
2
1
2
2
6
1
5
4
2
0
5
4
2
1
0
0
2
323,443
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/benchmarks/benchmarks/utils/id_generator.py
benchmarks.utils.id_generator.IDGenerator
from csp_gateway import GatewayModule, get_counter class IDGenerator: def time_get_counter(self): _ = get_counter(MyGatewayModule())
class IDGenerator: def time_get_counter(self): pass
2
0
2
0
2
0
1
0
0
1
1
0
1
0
1
1
3
0
3
3
1
0
3
3
1
1
0
0
1
323,444
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/benchmarks/benchmarks/utils/id_generator.py
benchmarks.utils.id_generator.MyGatewayModule
from csp_gateway import GatewayModule, get_counter class MyGatewayModule(GatewayModule): def connect(self, channels): pass def shutdown(self): pass
class MyGatewayModule(GatewayModule): def connect(self, channels): pass def shutdown(self): pass
3
0
2
0
2
0
1
0
1
0
0
0
2
0
2
2
6
1
5
3
2
0
5
3
2
1
1
0
2
323,445
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/client/client.py
csp_gateway.client.client.AsyncGatewayClient
class AsyncGatewayClient(AsyncGatewayClientMixin, BaseGatewayClient): """ An asynchronous Gateway client. This client will expose async methods: - controls - last - lookup - next - send - state These methods will depend on the configuration of the corresponding GatewayServer. ...
class AsyncGatewayClient(AsyncGatewayClientMixin, BaseGatewayClient): ''' An asynchronous Gateway client. This client will expose async methods: - controls - last - lookup - next - send - state These methods will depend on the configuration of the corresponding GatewayServer. ...
1
1
0
0
0
0
0
8
2
0
0
0
0
0
0
42
23
5
2
1
1
16
2
1
1
0
2
0
0
323,446
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/client/client.py
csp_gateway.client.client.AsyncGatewayClientMixin
from typing import TYPE_CHECKING, Any, Callable, Dict, List, Literal, Optional, Tuple, Union, cast from ..utils import Query, ServerRouteNotFoundException, ServerRouteNotMountedException, ServerUnknownException, ServerUnprocessableException, get_thread class AsyncGatewayClientMixin: @_raiseIfNotMounted async ...
class AsyncGatewayClientMixin: @_raiseIfNotMounted async def controls(self, field: str='', data: Any=None, timeout: float=_DEFAULT_TIMEOUT) -> ResponseType: pass @_raiseIfNotMounted async def last(self, field: str='', timeout: float=_DEFAULT_TIMEOUT) -> ResponseType: pass @_raiseIfNotMount...
17
4
7
1
2
3
1
1.03
0
4
1
1
10
0
10
10
81
18
31
19
14
32
25
13
14
2
0
1
13
323,447
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/client/client.py
csp_gateway.client.client.BaseGatewayClient
from copy import deepcopy from asyncio import AbstractEventLoop, Future, Queue, get_event_loop, new_event_loop, run_coroutine_threadsafe, set_event_loop, wrap_future from jsonref import replace_refs from ..utils import Query, ServerRouteNotFoundException, ServerRouteNotMountedException, ServerUnknownException, ServerUn...
class BaseGatewayClient(BaseModel): def __init__(self, config: GatewayClientConfig=None, **kwargs) -> None: pass @model_validator(mode='after') def validate_client(self): pass def _initializeStreaming(self) -> None: pass def _initializeStreaming(self) -> None: pas...
47
0
9
1
8
0
3
0.07
1
19
6
2
32
0
32
32
365
63
282
114
218
20
200
72
163
8
1
5
84
323,448
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/client/client.py
csp_gateway.client.client.GatewayClientConfig
from pydantic import Field, PrivateAttr, field_validator, model_validator from typing import TYPE_CHECKING, Any, Callable, Dict, List, Literal, Optional, Tuple, Union, cast class GatewayClientConfig(BaseModel): model_config = dict(extra='forbid') protocol: Literal['http', 'https'] = 'http' host: str = 'loc...
class GatewayClientConfig(BaseModel): @model_validator(mode='after') def validate_config(self): pass def __hash__(self): pass
4
0
7
0
6
1
3
0.08
1
1
0
0
2
0
2
2
28
3
24
13
20
2
21
12
18
4
1
1
5
323,449
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/client/client.py
csp_gateway.client.client.ResponseWrapper
from pydantic import Field, PrivateAttr, field_validator, model_validator from typing import TYPE_CHECKING, Any, Callable, Dict, List, Literal, Optional, Tuple, Union, cast from packaging import version class ResponseWrapper(BaseModel): json_data: Any openapi_schema: Optional[Dict[str, Any]] = None @field...
class ResponseWrapper(BaseModel): @field_validator('openapi_schema', mode='after') def validate_openapi_schema(cls, v): pass def is_empty(self): pass def as_json(self): pass def as_pandas_df(self) -> 'PandasDataFrame': pass def as_polars_df(self) -> 'PolarsD...
7
0
11
1
10
1
3
0.12
1
5
0
0
5
0
5
5
66
8
52
17
43
6
50
15
42
7
1
3
17
323,450
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/client/client.py
csp_gateway.client.client.SyncGatewayClient
class SyncGatewayClient(SyncGatewayClientMixin, BaseGatewayClient): """ A synchronous (blocking) Gateway client. This client will expose synchronous methods to connect to the server's REST endpoints: - controls - last - lookup - next - send - state Thes...
class SyncGatewayClient(SyncGatewayClientMixin, BaseGatewayClient): ''' A synchronous (blocking) Gateway client. This client will expose synchronous methods to connect to the server's REST endpoints: - controls - last - lookup - next - send - state These m...
1
1
0
0
0
0
0
8
2
0
0
0
0
0
0
42
24
6
2
1
1
16
2
1
1
0
2
0
0
323,451
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/client/client.py
csp_gateway.client.client.SyncGatewayClientMixin
from ..utils import Query, ServerRouteNotFoundException, ServerRouteNotMountedException, ServerUnknownException, ServerUnprocessableException, get_thread from typing import TYPE_CHECKING, Any, Callable, Dict, List, Literal, Optional, Tuple, Union, cast class SyncGatewayClientMixin: @_raiseIfNotMounted def con...
class SyncGatewayClientMixin: @_raiseIfNotMounted def controls(self, field: str='', data: Any=None, timeout: float=_DEFAULT_TIMEOUT, return_raw_json_override: Optional[bool]=None) -> ResponseType: pass @_raiseIfNotMounted def last(self, field: str='', timeout: float=_DEFAULT_TIMEOUT, return_ra...
17
4
11
1
7
3
2
0.42
0
5
1
1
10
0
10
10
121
17
73
36
50
31
60
24
49
4
0
1
24
323,452
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/demo/omnibus.py
csp_gateway.server.demo.omnibus.ExampleCspStruct
import csp class ExampleCspStruct(csp.Struct): z: int = 12
class ExampleCspStruct(csp.Struct): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
2
1
0
2
2
1
0
1
0
0
323,453
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/demo/omnibus.py
csp_gateway.server.demo.omnibus.ExampleData
import numpy as np from typing import Annotated, Dict, List from csp.typing import Numpy1DArray from pydantic import AfterValidator, Field, field_validator from datetime import date, datetime, timedelta from csp_gateway import Controls, Gateway, GatewayChannels, GatewayModule, GatewaySettings, GatewayStruct, MountAPIKe...
class ExampleData(GatewayStruct): @classmethod def __get_validator_dict__(cls): pass
3
0
2
0
2
0
1
0
1
0
0
0
0
0
1
1
12
1
11
9
8
0
10
8
8
1
1
0
1
323,454
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/demo/omnibus.py
csp_gateway.server.demo.omnibus.ExampleEnum
from csp import Enum, ts class ExampleEnum(Enum): A = 1 B = 2 C = 3 def __lt__(self, other): return self.value < other.value
class ExampleEnum(Enum): def __lt__(self, other): pass
2
0
3
0
2
1
1
0.17
1
0
0
0
1
0
1
1
8
1
6
5
4
1
6
5
4
1
1
0
1
323,455
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/demo/omnibus.py
csp_gateway.server.demo.omnibus.ExampleGatewayChannels
from csp import Enum, ts from csp_gateway import Controls, Gateway, GatewayChannels, GatewayModule, GatewaySettings, GatewayStruct, MountAPIKeyMiddleware, MountChannelsGraph, MountControls, MountOutputsFolder, MountPerspectiveTables, MountRestRoutes, MountWebSocketRoutes, State from perspective import Server as Perspec...
class ExampleGatewayChannels(GatewayChannels): pass
1
0
0
0
0
0
0
0.5
1
0
0
0
0
0
0
0
21
6
10
10
9
5
10
10
9
0
1
0
0
323,456
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/demo/omnibus.py
csp_gateway.server.demo.omnibus.ExampleModule
import csp from csp_gateway import Controls, Gateway, GatewayChannels, GatewayModule, GatewaySettings, GatewayStruct, MountAPIKeyMiddleware, MountChannelsGraph, MountControls, MountOutputsFolder, MountPerspectiveTables, MountRestRoutes, MountWebSocketRoutes, State import numpy as np from typing import Annotated, Dict, ...
class ExampleModule(GatewayModule): @csp.node def subscribe(self, trigger: ts[bool], multiplier: int=3) -> ts[ExampleData]: pass @csp.node def subscribe_list(self, data: ts[ExampleData]) -> ts[List[ExampleData]]: pass def dynamic_keys(self): pass def connect(self, cha...
7
0
16
2
13
2
2
0.14
1
6
3
0
4
0
4
4
74
10
56
21
42
8
33
12
28
2
1
1
6
323,457
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/demo/omnibus.py
csp_gateway.server.demo.omnibus.ExampleModuleCustomTable
from datetime import date, datetime, timedelta from csp import Enum, ts from perspective import Server as PerspectiveServer, Table as PerspectiveTable import csp from csp_gateway import Controls, Gateway, GatewayChannels, GatewayModule, GatewaySettings, GatewayStruct, MountAPIKeyMiddleware, MountChannelsGraph, MountCon...
class ExampleModuleCustomTable(GatewayModule): '''This shows how you can customize the perspective tables.''' def connect(self, channels: ExampleGatewayChannels): pass @csp.node def push_to_perspective(self, timeseries: ts[ExampleData], table: PerspectiveTable): pass
4
1
19
2
16
2
3
0.12
1
8
2
0
2
0
2
2
44
7
34
16
26
4
23
11
20
4
1
2
5
323,458
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/demo/omnibus.py
csp_gateway.server.demo.omnibus.ExampleModuleFeedback
from datetime import date, datetime, timedelta from csp_gateway import Controls, Gateway, GatewayChannels, GatewayModule, GatewaySettings, GatewayStruct, MountAPIKeyMiddleware, MountChannelsGraph, MountControls, MountOutputsFolder, MountPerspectiveTables, MountRestRoutes, MountWebSocketRoutes, State from csp import Enu...
class ExampleModuleFeedback(GatewayModule): @csp.node def subscribe(self, data: ts[ExampleData]) -> ts[ExampleData]: pass def connect(self, channels: ExampleGatewayChannels): pass
4
0
9
1
8
1
2
0.17
1
3
3
0
2
0
2
2
24
3
18
10
11
3
11
6
8
3
1
2
4
323,459
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/demo/simple.py
csp_gateway.server.demo.simple.ExampleData
from csp_gateway import GatewayChannels, GatewayModule, GatewayStruct class ExampleData(GatewayStruct): x: int
class ExampleData(GatewayStruct): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
1
0
0
323,460
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/demo/simple.py
csp_gateway.server.demo.simple.ExampleGatewayChannels
from csp import ts from csp_gateway import GatewayChannels, GatewayModule, GatewayStruct class ExampleGatewayChannels(GatewayChannels): example: ts[ExampleData] = None
class ExampleGatewayChannels(GatewayChannels): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
2
1
0
2
2
1
0
1
0
0
323,461
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/demo/simple.py
csp_gateway.server.demo.simple.ExampleModule
from datetime import timedelta import csp from csp_gateway import GatewayChannels, GatewayModule, GatewayStruct from csp import ts class ExampleModule(GatewayModule): interval: timedelta = timedelta(seconds=1) @csp.node def subscribe(self, trigger: ts[bool]) -> ts[ExampleData]: with csp.state(): ...
class ExampleModule(GatewayModule): @csp.node def subscribe(self, trigger: ts[bool]) -> ts[ExampleData]: pass def connect(self, channels: ExampleGatewayChannels): pass
4
0
6
1
5
1
2
0.25
1
3
2
0
2
0
2
2
18
3
12
7
8
3
11
6
8
2
1
1
3
323,462
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/gateway/csp/Channels.py
csp_gateway.server.gateway.csp.Channels.Channels
from csp.impl.types.tstype import TsType, isTsType from csp.impl.wiring.delayed_edge import DelayedEdge, _UnsetNodedef from .futures import ConcurrentFutureAdapter, named_on_request_node, named_on_request_node_dict_basket, named_wait_for_next_node, named_wait_for_next_node_dict_basket from pydantic import BaseModel, Co...
class Channels(BaseModel, metaclass=ChannelsMetaclass): '''Collection of Channels that gateway modules and users use to communicate with each other. Each channel is a csp time series ``TsType`` of an underlying struct type which represents the type of data being streamed on that channel. The ``GatewayChann...
38
5
22
3
14
5
4
0.39
2
13
1
0
28
0
31
114
773
144
453
158
395
178
369
132
336
25
5
5
140
323,463
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/gateway/csp/Channels.py
csp_gateway.server.gateway.csp.Channels.ChannelsMetaclass
from pydantic._internal._model_construction import ModelMetaclass from datetime import datetime from typing import TYPE_CHECKING, Any, DefaultDict, Dict, List, Optional, Set, Tuple, Type, TypeVar, Union, get_args, get_origin from pydantic import BaseModel, ConfigDict, PrivateAttr, create_model class ChannelsMetaclass(...
class ChannelsMetaclass(ModelMetaclass): def __new__(mcs: Any, name: Any, bases: Any, namespace: Any, **kwargs: Any) -> Any: pass
2
0
24
3
18
3
5
0.16
1
5
1
1
1
0
1
30
25
3
19
10
17
3
19
10
17
5
4
2
5
323,464
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/gateway/csp/channels.py
csp_gateway.server.gateway.csp.channels.Channels
from csp.impl.types.tstype import TsType, isTsType from csp.impl.wiring.feedback import FeedbackInputDef, FeedbackOutputDef from csp.impl.wiring.edge import Edge from csp.impl.genericpushadapter import GenericPushAdapter from csp.impl.wiring.delayed_edge import DelayedEdge, _UnsetNodedef from datetime import datetime f...
class Channels(BaseModel, metaclass=ChannelsMetaclass): '''Collection of Channels that gateway modules and users use to communicate with each other. Each channel is a csp time series ``TsType`` of an underlying struct type which represents the type of data being streamed on that channel. The ``GatewayChann...
38
5
22
3
14
5
4
0.39
2
13
1
0
28
0
31
114
773
144
453
158
395
178
369
132
336
25
5
5
140
323,465
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/gateway/csp/channels.py
csp_gateway.server.gateway.csp.channels.ChannelsMetaclass
from pydantic import BaseModel, ConfigDict, PrivateAttr, create_model from pydantic._internal._model_construction import ModelMetaclass from datetime import datetime from typing import TYPE_CHECKING, Any, DefaultDict, Dict, List, Optional, Set, Tuple, Type, TypeVar, Union, get_args, get_origin class ChannelsMetaclass(...
class ChannelsMetaclass(ModelMetaclass): def __new__(mcs: Any, name: Any, bases: Any, namespace: Any, **kwargs: Any) -> Any: pass
2
0
24
3
18
3
5
0.16
1
5
1
1
1
0
1
30
25
3
19
10
17
3
19
10
17
5
4
2
5
323,466
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/gateway/csp/factory.py
csp_gateway.server.gateway.csp.factory.ChannelsFactory
from .channels import ChannelsType from pydantic import Field from .module import Module from csp.impl.enum import Enum from typing import Generic, List, Optional, Type from csp_gateway.utils import get_dict_basket_key_type from csp.impl.genericpushadapter import GenericPushAdapter from datetime import datetime from cc...
class ChannelsFactory(BaseModel, Generic[ChannelsType]): def build(self, channels: ChannelsType) -> ChannelsType: pass
2
0
64
10
36
20
17
0.37
2
2
0
1
1
0
1
3
89
12
59
15
57
22
40
14
38
17
1
4
17
323,467
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/gateway/csp/futures/adapter.py
csp_gateway.server.gateway.csp.futures.adapter.AsyncFutureAdapter
from asyncio import AbstractEventLoop, Future as AsyncFuture class AsyncFutureAdapter(FutureAdapter): def __init__(self, loop: AbstractEventLoop=None, name: str=None) -> None: super().__init__(kind='async', loop=loop, name=name)
class AsyncFutureAdapter(FutureAdapter): def __init__(self, loop: AbstractEventLoop=None, name: str=None) -> None: pass
2
0
2
0
2
0
1
0
1
3
0
0
1
0
1
3
3
0
3
2
1
0
3
2
1
1
2
0
1
323,468
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/gateway/csp/futures/adapter.py
csp_gateway.server.gateway.csp.futures.adapter.ConcurrentFutureAdapter
class ConcurrentFutureAdapter(FutureAdapter): def __init__(self, name: str=None) -> None: super().__init__(kind='concurrent', name=name)
class ConcurrentFutureAdapter(FutureAdapter): def __init__(self, name: str=None) -> None: pass
2
0
2
0
2
0
1
0
1
2
0
0
1
0
1
3
3
0
3
2
1
0
3
2
1
1
2
0
1
323,469
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/gateway/csp/futures/adapter.py
csp_gateway.server.gateway.csp.futures.adapter.FutureAdapter
from asyncio import AbstractEventLoop, Future as AsyncFuture from csp.impl.genericpushadapter import GenericPushAdapter from concurrent.futures import Future as ConcurrentFuture import asyncio class FutureAdapter(GenericPushAdapter): def __init__(self, kind: str, loop: AbstractEventLoop=None, name: str=None) -> N...
class FutureAdapter(GenericPushAdapter): def __init__(self, kind: str, loop: AbstractEventLoop=None, name: str=None) -> None: pass def push_tick(self, future: EitherFutureType=None) -> EitherFutureType: pass
3
0
8
0
8
0
3
0
1
3
0
2
2
2
2
2
17
1
16
6
13
0
14
6
11
3
1
1
5
323,470
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/gateway/csp/module.py
csp_gateway.server.gateway.csp.module.Module
from csp_gateway.server.shared import ChannelSelection from csp_gateway.utils import GatewayStruct from typing import Any, Dict, Generic, List, Optional, Set, Type, Union import abc from datetime import datetime from .channels import ChannelsType from pydantic import Field, TypeAdapter, model_validator from ccflow impo...
class Module(BaseModel, Generic[ChannelsType], abc.ABC): @abc.abstractmethod def connect(self, Channels: ChannelsType) -> None: pass def rest(self, app: 'GatewayWebApp') -> None: pass @abc.abstractmethod def shutdown(self) -> None: pass def dynamic_keys(self) -> Optio...
12
2
3
0
2
2
1
0.57
3
4
1
1
8
0
8
30
55
11
28
17
20
16
23
14
14
1
4
0
8
323,471
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/gateway/csp/state.py
csp_gateway.server.gateway.csp.state.BaseState
from typing import Any, Deque, Dict, List, Tuple, Union import abc class BaseState(abc.ABC): """Abstract class for State""" @abc.abstractmethod def query(self, query: 'Query'=None) -> List[Any]: ... @abc.abstractmethod def __iter__(self) -> Any: ... @abc.abstractmethod de...
class BaseState(abc.ABC): '''Abstract class for State''' @abc.abstractmethod def query(self, query: 'Query'=None) -> List[Any]: pass @abc.abstractmethod def __iter__(self) -> Any: pass @abc.abstractmethod def insert(self, record: Any) -> None: pass @abc.abstractm...
9
1
1
0
1
0
1
0.11
1
2
0
2
4
0
4
24
14
4
9
9
4
1
9
5
4
1
4
0
4
323,472
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/gateway/csp/state.py
csp_gateway.server.gateway.csp.state.DefaultState
from pprint import pformat from typing import Any, Deque, Dict, List, Tuple, Union from collections import deque from typing_extensions import override class DefaultState(BaseState): def __init__(self, keyby: Union[Tuple[str, ...], str]) -> None: super().__init__() self._records: Dict = {} ...
class DefaultState(BaseState): def __init__(self, keyby: Union[Tuple[str, ...], str]) -> None: pass @override def query(self, query: 'Query'=None) -> List[Any]: pass @override def __iter__(self) -> Any: pass @override def insert(self, record: Any) -> None: p...
10
0
10
2
7
2
3
0.2
1
7
0
0
5
2
5
29
61
13
40
22
30
8
35
18
29
5
5
3
14
323,473
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/gateway/csp/state.py
csp_gateway.server.gateway.csp.state.DuckDBState
import numpy from csp import Struct, ts from typing import Any, Deque, Dict, List, Tuple, Union import fsspec from atomic_counter import Counter import threading from ccflow.enums import BaseEnum as CoreBaseEnum, Enum as CoreEnum import orjson import logging import duckdb from pprint import pformat from typing_extensio...
null
16
6
24
3
16
6
4
0.45
1
11
0
0
8
19
9
9
263
40
154
66
138
69
133
61
122
11
1
4
39
323,474
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/gateway/csp/state.py
csp_gateway.server.gateway.csp.state.State
from csp import Struct, ts from typing_extensions import override from functools import lru_cache from typing import Any, Deque, Dict, List, Tuple, Union class State(BaseState): def __init__(self, keyby: Union[Tuple[str, ...], str]=('id',)) -> None: """Switch case between different state specializations b...
class State(BaseState): def __init__(self, keyby: Union[Tuple[str, ...], str]=('id',)) -> None: '''Switch case between different state specializations based on the type of the records''' pass def state_type(self) -> StateType: '''Return the state type being used internally''' ...
14
2
6
0
5
1
2
0.14
1
7
3
0
6
2
7
31
56
7
43
21
28
6
37
14
28
4
5
3
12
323,475
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/gateway/csp/state.py
csp_gateway.server.gateway.csp.state.StateQueryParams
from pydantic import BaseModel class StateQueryParams(BaseModel): ...
class StateQueryParams(BaseModel): pass
1
0
0
0
0
0
0
0.5
1
0
0
0
0
0
0
82
3
0
2
1
1
1
2
1
1
0
5
0
0
323,476
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/gateway/csp/state.py
csp_gateway.server.gateway.csp.state.StateType
from ccflow.enums import BaseEnum as CoreBaseEnum, Enum as CoreEnum class StateType(CoreEnum): UNKNOWN = 0 DEFAULT = 1 DUCKDB = 2
class StateType(CoreEnum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
4
3
0
4
4
3
0
1
0
0
323,477
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/gateway/gateway.py
csp_gateway.server.gateway.gateway.Gateway
from csp import ts import logging import os import multiprocessing.pool from socket import gethostname import csp from datetime import datetime, timedelta from typing import Any, Callable, List, Optional, Type, Union, get_args, get_origin from csp_gateway.server.gateway import State from .csp import Channels, ChannelsF...
null
19
4
27
4
17
6
5
0.33
1
18
2
0
12
1
13
16
406
73
252
71
212
82
193
47
178
14
2
5
59
323,478
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/gateway/gateway.py
csp_gateway.server.gateway.gateway.GatewayChannels
from .csp import Channels, ChannelsFactory, ChannelsType, Module from typing import Any, Callable, List, Optional, Type, Union, get_args, get_origin class GatewayChannels(Channels): @classmethod def fields(cls) -> List[str]: return list(cls.model_fields.keys())
class GatewayChannels(Channels): @classmethod def fields(cls) -> List[str]: pass
3
0
2
0
2
0
1
0
1
2
0
2
0
0
1
1
4
0
4
3
1
0
3
2
1
1
1
0
1
323,479
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/gateway/gateway.py
csp_gateway.server.gateway.gateway.GatewayModule
from .csp import Channels, ChannelsFactory, ChannelsType, Module import csp class GatewayModule(Module[GatewayChannels]): model_config = {'ignored_types': (csp.impl.wiring.GraphDefMeta, csp.impl.wiring.NodeDefMeta)} def __hash__(self): return id(self) def shutdown(self): """Perform cleanu...
class GatewayModule(Module[GatewayChannels]): def __hash__(self): pass def shutdown(self): '''Perform cleanup when the module is shutting down''' pass
3
1
3
0
2
1
1
0.18
1
0
0
3
2
0
2
32
15
2
11
4
8
2
6
4
3
1
5
0
2
323,480
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/middleware/api_key.py
csp_gateway.server.middleware.api_key.MountAPIKeyMiddleware
from ..web import GatewayWebApp from fastapi.responses import HTMLResponse, JSONResponse, RedirectResponse from csp_gateway.server import GatewayChannels, GatewayModule from datetime import timedelta from pydantic import Field, PrivateAttr from .hacks.api_key_middleware_websocket_fix.api_key import APIKeyCookie, APIKey...
class MountAPIKeyMiddleware(GatewayModule): def connect(self, channels: GatewayChannels) -> None: pass def rest(self, app: GatewayWebApp) -> None: pass async def get_api_key(api_key_query: str=Security(api_key_query), api_key_header: pass @auth_router.get('/lo...
14
0
18
1
16
1
2
0.13
1
5
4
0
2
0
2
2
99
13
76
29
58
10
39
20
30
3
1
2
13
323,481
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/middleware/hacks/api_key_middleware_websocket_fix/api_key.py
csp_gateway.server.middleware.hacks.api_key_middleware_websocket_fix.api_key.APIKeyBase
from fastapi.security.base import SecurityBase class APIKeyBase(SecurityBase): pass
class APIKeyBase(SecurityBase): pass
1
0
0
0
0
0
0
0
1
0
0
3
0
0
0
0
2
0
2
1
1
0
2
1
1
0
1
0
0
323,482
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/middleware/hacks/api_key_middleware_websocket_fix/api_key.py
csp_gateway.server.middleware.hacks.api_key_middleware_websocket_fix.api_key.APIKeyCookie
from starlette.requests import HTTPConnection from fastapi.openapi.models import APIKey, APIKeyIn from starlette.status import HTTP_403_FORBIDDEN from starlette.exceptions import HTTPException from typing import Optional from .utils import handle_exc_for_ws class APIKeyCookie(APIKeyBase): def __init__(self, *, na...
class APIKeyCookie(APIKeyBase): def __init__(self, *, name: str, scheme_name: Optional[str]=None, description: Optional[str]=None, auto_error: bool=True): pass @handle_exc_for_ws async def __call__(self, request: HTTPConnection) -> Optional[str]: pass
4
0
12
0
12
1
2
0.04
1
2
0
0
2
3
2
2
26
1
25
15
14
1
12
7
9
3
2
2
4
323,483
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/middleware/hacks/api_key_middleware_websocket_fix/api_key.py
csp_gateway.server.middleware.hacks.api_key_middleware_websocket_fix.api_key.APIKeyHeader
from typing import Optional from starlette.requests import HTTPConnection from .utils import handle_exc_for_ws from starlette.exceptions import HTTPException from fastapi.openapi.models import APIKey, APIKeyIn from starlette.status import HTTP_403_FORBIDDEN class APIKeyHeader(APIKeyBase): def __init__(self, *, na...
class APIKeyHeader(APIKeyBase): def __init__(self, *, name: str, scheme_name: Optional[str]=None, description: Optional[str]=None, auto_error: bool=True): pass @handle_exc_for_ws async def __call__(self, request: HTTPConnection) -> Optional[str]: pass
4
0
12
0
12
1
2
0.04
1
2
0
0
2
3
2
2
26
1
25
15
14
1
12
7
9
3
2
2
4
323,484
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/middleware/hacks/api_key_middleware_websocket_fix/api_key.py
csp_gateway.server.middleware.hacks.api_key_middleware_websocket_fix.api_key.APIKeyQuery
from starlette.status import HTTP_403_FORBIDDEN from typing import Optional from .utils import handle_exc_for_ws from starlette.requests import HTTPConnection from starlette.exceptions import HTTPException from fastapi.openapi.models import APIKey, APIKeyIn class APIKeyQuery(APIKeyBase): def __init__(self, *, nam...
class APIKeyQuery(APIKeyBase): def __init__(self, *, name: str, scheme_name: Optional[str]=None, description: Optional[str]=None, auto_error: bool=True): pass @handle_exc_for_ws async def __call__(self, request: HTTPConnection) -> Optional[str]: pass
4
0
12
0
12
1
2
0.04
1
2
0
0
2
3
2
2
26
1
25
15
14
1
12
7
9
3
2
2
4
323,485
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/middleware/hacks/api_key_middleware_websocket_fix/http.py
csp_gateway.server.middleware.hacks.api_key_middleware_websocket_fix.http.HTTPAuthorizationCredentials
from pydantic import BaseModel class HTTPAuthorizationCredentials(BaseModel): scheme: str credentials: str
class HTTPAuthorizationCredentials(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
323,486
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/middleware/hacks/api_key_middleware_websocket_fix/http.py
csp_gateway.server.middleware.hacks.api_key_middleware_websocket_fix.http.HTTPBase
from fastapi.security.base import SecurityBase from utils import get_authorization_scheme_param, handle_exc_for_ws from fastapi.exceptions import HTTPException from typing import Optional from starlette.requests import HTTPConnection from fastapi.openapi.models import HTTPBase as HTTPBaseModel, HTTPBearer as HTTPBearer...
class HTTPBase(SecurityBase): def __init__(self, *, scheme: str, scheme_name: Optional[str]=None, description: Optional[str]=None, auto_error: bool=True): pass @handle_exc_for_ws async def __call__(self, request: HTTPConnection) -> Optional[HTTPAuthorizationCredentials]: pass
4
0
10
0
10
0
2
0
1
3
1
3
2
3
2
2
23
1
22
16
11
0
13
8
10
3
1
2
4
323,487
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/middleware/hacks/api_key_middleware_websocket_fix/http.py
csp_gateway.server.middleware.hacks.api_key_middleware_websocket_fix.http.HTTPBasic
from base64 import b64decode from starlette.requests import HTTPConnection from typing import Optional from fastapi.openapi.models import HTTPBase as HTTPBaseModel, HTTPBearer as HTTPBearerModel from utils import get_authorization_scheme_param, handle_exc_for_ws from fastapi.exceptions import HTTPException from starlet...
class HTTPBasic(HTTPBase): def __init__(self, *, scheme_name: Optional[str]=None, realm: Optional[str]=None, description: Optional[str]=None, auto_error: bool=True): pass @handle_exc_for_ws async def __call__(self, request: HTTPConnection) -> Optional[HTTPBasicCredentials]: pass
4
0
22
0
22
1
4
0.02
1
4
1
0
2
4
2
4
46
1
45
23
32
1
25
13
22
6
2
2
7
323,488
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/middleware/hacks/api_key_middleware_websocket_fix/http.py
csp_gateway.server.middleware.hacks.api_key_middleware_websocket_fix.http.HTTPBasicCredentials
from pydantic import BaseModel class HTTPBasicCredentials(BaseModel): username: str password: str
class HTTPBasicCredentials(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
323,489
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/middleware/hacks/api_key_middleware_websocket_fix/http.py
csp_gateway.server.middleware.hacks.api_key_middleware_websocket_fix.http.HTTPBearer
from starlette.requests import HTTPConnection from utils import get_authorization_scheme_param, handle_exc_for_ws from fastapi.exceptions import HTTPException from fastapi.openapi.models import HTTPBase as HTTPBaseModel, HTTPBearer as HTTPBearerModel from starlette.status import HTTP_401_UNAUTHORIZED, HTTP_403_FORBIDDE...
class HTTPBearer(HTTPBase): def __init__(self, *, bearerFormat: Optional[str]=None, scheme_name: Optional[str]=None, description: Optional[str]=None, auto_error: bool=True): pass @handle_exc_for_ws async def __call__(self, request: HTTPConnection) -> Optional[HTTPAuthorizationCredentials]: ...
4
0
14
0
14
0
3
0
1
3
1
0
2
3
2
4
31
1
30
16
19
0
17
8
14
5
2
2
6
323,490
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/middleware/hacks/api_key_middleware_websocket_fix/http.py
csp_gateway.server.middleware.hacks.api_key_middleware_websocket_fix.http.HTTPDigest
from fastapi.openapi.models import HTTPBase as HTTPBaseModel, HTTPBearer as HTTPBearerModel from fastapi.exceptions import HTTPException from typing import Optional from starlette.requests import HTTPConnection from starlette.status import HTTP_401_UNAUTHORIZED, HTTP_403_FORBIDDEN from utils import get_authorization_sc...
class HTTPDigest(HTTPBase): def __init__(self, *, scheme_name: Optional[str]=None, description: Optional[str]=None, auto_error: bool=True): pass @handle_exc_for_ws async def __call__(self, request: HTTPConnection) -> Optional[HTTPAuthorizationCredentials]: pass
4
0
12
0
12
0
3
0
1
3
1
0
2
3
2
4
27
1
26
15
16
0
15
8
12
4
2
2
5
323,491
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/modules/controls/controls.py
csp_gateway.server.modules.controls.controls.MountControls
from datetime import datetime, timezone from csp import ts import psutil import csp from csp_gateway.server import GatewayChannels, GatewayModule from csp_gateway.server.web import GatewayWebApp import threading import resource from csp_gateway.utils import Controls class MountControls(GatewayModule): mount_heartb...
class MountControls(GatewayModule): def connect(self, channels: GatewayChannels) -> None: pass def rest(self, app: GatewayWebApp) -> None: pass @csp.node def manage_controls(self, data: ts[Controls]): pass @csp.graph def subscribe(self, data: ts[Controls]): pas...
7
0
14
2
10
2
3
0.15
1
5
1
0
4
0
4
4
64
12
46
14
39
7
40
12
35
5
1
2
11
323,492
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/modules/filedrop/adapter.py
csp_gateway.server.modules.filedrop.adapter.EventHandlerCustom
from csp.impl.pushadapter import PushInputAdapter from watchdog.events import FileSystemEvent, FileSystemEventHandler class EventHandlerCustom(FileSystemEventHandler): def __init__(self, adapter: PushInputAdapter, file_reader: FileReaderBase): self.file_reader = file_reader self.adapter = adapter ...
class EventHandlerCustom(FileSystemEventHandler): def __init__(self, adapter: PushInputAdapter, file_reader: FileReaderBase): pass def on_created(self, event: FileSystemEvent): pass def on_opened(self, event: FileSystemEvent): pass def on_modified(self, event: FileSystemEven...
6
0
5
0
5
0
2
0
1
3
1
0
5
6
5
5
31
4
27
15
21
0
27
14
21
4
1
3
10
323,493
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/modules/filedrop/adapter.py
csp_gateway.server.modules.filedrop.adapter.FileDropAdapterConfiguration
from typing import Any, Callable, Dict, List, Optional, TypeVar from dataclasses import dataclass @dataclass class FileDropAdapterConfiguration: """Configuration for the filedrop push adapter""" dir_path: str filedrop_type: FileDropType extensions: List[str] loader: Optional[Callable[[str], List[An...
@dataclass class FileDropAdapterConfiguration: '''Configuration for the filedrop push adapter''' pass
2
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
15
1
7
1
6
7
7
1
6
0
0
0
0
323,494
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/modules/filedrop/adapter.py
csp_gateway.server.modules.filedrop.adapter.FileDropType
from enum import Enum, auto class FileDropType(Enum): CUSTOM = auto() CSV = auto() JSON = auto() PARQUET = auto()
class FileDropType(Enum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
49
5
0
5
5
4
0
5
5
4
0
4
0
0
323,495
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/modules/filedrop/adapter.py
csp_gateway.server.modules.filedrop.adapter.FileReaderBase
from csp.impl.types.container_type_normalizer import ContainerTypeNormalizer from typing import Any, Callable, Dict, List, Optional, TypeVar from pydantic import TypeAdapter class FileReaderBase: """The base file reader that reads data from files and generates structs""" def __init__(self, config: FileDropAda...
class FileReaderBase: '''The base file reader that reads data from files and generates structs''' def __init__(self, config: FileDropAdapterConfiguration, ts_typ: object): pass def deserialize_tick(data, type_adapter=type_adapter, context=self.context): pass d...
5
3
9
1
7
1
3
0.11
0
6
1
4
3
3
3
3
37
7
27
14
22
3
25
14
20
5
0
2
10
323,496
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/modules/filedrop/adapter.py
csp_gateway.server.modules.filedrop.adapter.FileReaderCsv
import csv from typing import Any, Callable, Dict, List, Optional, TypeVar class FileReaderCsv(FileReaderBase): """File reader for json file type""" def read_impl(self, src_path: str) -> List[Any]: data = [] with open(src_path, 'r') as f: reader = csv.DictReader(f) for ...
class FileReaderCsv(FileReaderBase): '''File reader for json file type''' def read_impl(self, src_path: str) -> List[Any]: pass
2
1
7
0
7
0
2
0.13
1
3
0
0
1
0
1
4
10
1
8
6
6
1
8
5
6
2
1
2
2
323,497
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/modules/filedrop/adapter.py
csp_gateway.server.modules.filedrop.adapter.FileReaderCustom
from typing import Any, Callable, Dict, List, Optional, TypeVar class FileReaderCustom(FileReaderBase): """File reader for a custom file loader""" def __init__(self, config: FileDropAdapterConfiguration, ts_typ: object): super().__init__(config, ts_typ) self._loader = config.loader def re...
class FileReaderCustom(FileReaderBase): '''File reader for a custom file loader''' def __init__(self, config: FileDropAdapterConfiguration, ts_typ: object): pass def read_impl(self, src_path: str) -> List[Any]: pass
3
1
3
0
3
0
1
0.17
1
5
1
0
2
1
2
5
9
2
6
4
3
1
6
4
3
1
1
0
2
323,498
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/modules/filedrop/adapter.py
csp_gateway.server.modules.filedrop.adapter.FileReaderJson
import orjson from typing import Any, Callable, Dict, List, Optional, TypeVar class FileReaderJson(FileReaderBase): """File reader for json file type""" def read_impl(self, src_path: str) -> List[Any]: with open(src_path, 'rb') as f: data = orjson.loads(f.read()) if isinstance(data...
class FileReaderJson(FileReaderBase): '''File reader for json file type''' def read_impl(self, src_path: str) -> List[Any]: pass
2
1
8
0
8
0
2
0.11
1
3
0
0
1
0
1
4
11
1
9
5
7
1
8
4
6
2
1
1
2
323,499
Point72/csp-gateway
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Point72_csp-gateway/csp_gateway/server/modules/filedrop/adapter.py
csp_gateway.server.modules.filedrop.adapter.FileReaderParquet
import pyarrow.parquet as pq from typing import Any, Callable, Dict, List, Optional, TypeVar class FileReaderParquet(FileReaderBase): """File reader for parquet file type""" def read_impl(self, src_path: str) -> List[Any]: table = pq.read_table(src_path) return table.to_pylist()
class FileReaderParquet(FileReaderBase): '''File reader for parquet file type''' def read_impl(self, src_path: str) -> List[Any]: pass
2
1
3
0
3
0
1
0.25
1
2
0
0
1
0
1
4
6
1
4
3
2
1
4
3
2
1
1
0
1