id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
2,287,000
serverperavg.cpython-39.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverperavg.cpython-39.pyc
a f¾`c‚ã@sHddlZddlZddlmZddlmZddlmZGdd„deƒZdS)éN)Ú clientPerAvg)ÚServer)ÚThreadcs,eZdZ‡fdd„Zdd„Zdd„Z‡ZS)ÚPerAvgcsFtƒ ||¡| ¡| |t¡td|j›...
2,060
Python
.pyt
22
92.363636
347
0.491417
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,001
serverreppt.cpython-37.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverreppt.cpython-37.pyc
B Ðecýã@shddlmZddlmZddlmZddlZddlZddlZddl Z ddl Z ddlZGdd„deƒZ dS)é)Ú clientREPPT)ÚServer)ÚThreadNcs<eZdZ‡fdd„Zdd„Zdd„Zdd„Zd d „Z‡ZS) Ú PFedRepPTcsntƒ ...
4,071
Python
.pyt
35
115.057143
397
0.461977
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,002
servermtl.cpython-37.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/servermtl.cpython-37.pyc
B ·:cc ã@s@ddlZddlmZddlmZddlmZGdd„deƒZdS)éN)Ú clientMTL)ÚServer)ÚThreadcs4eZdZ‡fdd„Zdd„Zdd„Zdd„Z‡ZS) ÚFedMTLcsÈtƒ ||¡t| |j¡ƒ|_tj|j|jf|j d�|_ |...
2,354
Python
.pyt
15
155.733333
367
0.440598
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,003
serverbase.cpython-39.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverbase.cpython-39.pyc
a ubc‹#ã@sXddlZddlZddlZddlZddlZddlZddlZddlm Z Gdd„de ƒZ dS)éN)Úread_client_datac@s°eZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„Z...
8,366
Python
.pyt
47
176.787234
760
0.4
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,004
serverbn.cpython-39.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverbn.cpython-39.pyc
a f¾`cãã@sLddlmZddlmZddlmZddlmZddlZGdd„deƒZ dS)é)ÚclientBN)ÚServer)Úread_client_data)ÚThreadNcs$eZdZ‡fdd„Zdd„Z‡ZS)ÚFedBNcsFtƒ ||¡| ¡| |t¡...
1,562
Python
.pyt
16
96.375
358
0.505495
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,005
serverpfedpt.cpython-38.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverpfedpt.cpython-38.pyc
U Õ şcšã@shddlmZddlmZddlmZddlZddlZddlZddl Z ddl Z ddl Z Gdd„deƒZ dS)é)ÚclientPT)ÚServer)ÚThreadNcsNeZdZ‡fdd„Zdd„Zdd„Zdd„Zd d „Zdd d „Zdd„Z ‡Z S)ÚPFedPTc...
6,091
Python
.pyt
58
103.758621
494
0.426086
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,006
serverbabu.cpython-38.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverbabu.cpython-38.pyc
U [Ğıcr ã@s8ddlmZddlmZddlmZGdd„deƒZdS)é)Ú clientBABU)ÚServer)ÚThreadcs,eZdZ‡fdd„Zdd„Zdd„Z‡ZS)ÚFedBABUcsFtƒ ||¡| ¡| |t¡td|j›d|j›�ƒtd...
2,164
Python
.pyt
25
85.4
254
0.477103
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,007
serverrep.cpython-38.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverrep.cpython-38.pyc
U ºĞıcí ã@sHddlmZddlmZddlmZddlZddlZGdd„deƒZdS)é)Ú clientRep)ÚServer)ÚThreadNcs,eZdZ‡fdd„Zdd„Zdd„Z‡ZS)ÚFedRepcsLtƒ ||¡| ¡| |t¡td|j›d|...
2,288
Python
.pyt
21
107.619048
383
0.472222
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,008
serverrod.cpython-39.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverrod.cpython-39.pyc
a f¾`cçã@sLddlmZddlmZddlmZddlmZddlZGdd„deƒZ dS)é)Ú clientROD)ÚServer)Úread_client_data)ÚThreadNcs$eZdZ‡fdd„Zdd„Z‡ZS)ÚFedRODcsFtƒ ||¡| ¡| |t¡...
1,568
Python
.pyt
16
96.75
360
0.507405
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,009
serveramp.cpython-38.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serveramp.cpython-38.pyc
U [Ğıc¢ ã@sdddlZddlZddlZddlZddlZddlmZmZddl m Z ddl m Z Gdd„de ƒZ dS)éN)Ú clientAMPÚweight_flatten)ÚServer)ÚThreadcs4eZdZ‡fdd„Zdd„Zdd„Zdd„Z‡ZS) ÚFedAMPc...
2,831
Python
.pyt
30
93.2
387
0.467523
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,010
serverrodpt.cpython-38.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverrodpt.cpython-38.pyc
U Õ şcÒã@stddlmZddlmZddlmZddlmZddlZddl Z ddl Z ddl Z ddl Z ddl ZGdd„deƒZdS)é)Ú clientRODPT)ÚServer)Úread_client_data)ÚThreadNcsNeZdZ‡fdd„Zdd„Zdd„Zdd„Zd d „Zdd d „Zdd...
5,946
Python
.pyt
51
115.333333
496
0.433005
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,011
serverpfedpt.cpython-39.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverpfedpt.cpython-39.pyc
a @=bc_ ã@sXddlmZddlmZddlmZddlZddlZddlZddl Z Gdd„deƒZ dS)é)ÚclientPT)ÚServer)ÚThreadNcs4eZdZ‡fdd„Zdd„Zdd„Zdd„Z‡ZS) ÚPFedPTcs\tƒ ||¡| ¡|...
2,685
Python
.pyt
27
98.185185
326
0.478751
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,012
servermoon.cpython-37.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/servermoon.cpython-37.pyc
B ¿:cc{ã@sLddlmZddlmZddlmZddlmZddlZGdd„deƒZ dS)é)Ú clientMOON)ÚServer)Úread_client_data)ÚThreadNcs$eZdZ‡fdd„Zdd„Z‡ZS)ÚMOONcsLtƒ ||¡| ¡| |t¡td|j›...
1,946
Python
.pyt
19
101.157895
370
0.475622
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,013
serverapfl.cpython-37.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverapfl.cpython-37.pyc
B ¸:cc®ã@s8ddlmZddlmZddlmZGdd„deƒZdS)é)Ú clientAPFL)ÚServer)ÚThreadcs$eZdZ‡fdd„Zdd„Z‡ZS)ÚAPFLcsFtƒ ||¡| ¡| |t¡td|j›d|j›�ƒtdƒdS)Nz Join rati...
1,442
Python
.pyt
14
101.714286
227
0.492652
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,014
serverbabu.cpython-37.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverbabu.cpython-37.pyc
B ¸:cc•ã@s8ddlmZddlmZddlmZGdd„deƒZdS)é)Ú clientBABU)ÚServer)ÚThreadcs,eZdZ‡fdd„Zdd„Zdd„Z‡ZS)ÚFedBABUcsFtƒ ||¡| ¡| |t¡td|j›d|j›�ƒtdƒdS)Nz...
2,012
Python
.pyt
16
124.5
264
0.48022
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,015
serverdyn.cpython-39.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverdyn.cpython-39.pyc
a »¢bcã@sPddlZddlZddlmZddlmZddlmZddlZGdd„deƒZ dS)éN)Ú clientDyn)ÚServer)ÚThreadcs<eZdZ‡fdd„Zdd„Zdd„Zdd„Zd d „Z‡ZS) ÚFedDyncs€tƒ ||¡| ¡|...
3,312
Python
.pyt
30
109.166667
409
0.439842
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,016
servermoonpt.cpython-38.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/servermoonpt.cpython-38.pyc
U şcÿã@stddlmZddlmZddlmZddlmZddlZddl Z ddl Z ddl Z ddl Z ddl ZGdd„deƒZdS)é)Ú clientMOONPT)ÚServer)Úread_client_data)ÚThreadNcsNeZdZ‡fdd„Zdd„Zdd„Zdd„Zd d „Zdd d „Zd...
6,327
Python
.pyt
62
100.822581
494
0.423715
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,017
serverper.cpython-39.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverper.cpython-39.pyc
a f¾`cîã@s8ddlmZddlmZddlmZGdd„deƒZdS)é)Ú clientPer)ÚServer)ÚThreadcs,eZdZ‡fdd„Zdd„Zdd„Z‡ZS)ÚFedPercsFtƒ ||¡| ¡| |t¡td|j›d|j›�ƒtdƒ...
1,913
Python
.pyt
18
105.055556
327
0.484177
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,018
serverapfl.cpython-38.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverapfl.cpython-38.pyc
U ”jfc®ã@s8ddlmZddlmZddlmZGdd„deƒZdS)é)Ú clientAPFL)ÚServer)ÚThreadcs$eZdZ‡fdd„Zdd„Z‡ZS)ÚAPFLcsFtƒ ||¡| ¡| |t¡td|j›d|j›�ƒtdƒdS)N...
1,456
Python
.pyt
17
84.411765
225
0.488889
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,019
serveravg.cpython-38.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serveravg.cpython-38.pyc
U [Ğıc·ã@sHddlZddlZddlmZddlmZddlmZGdd„deƒZdS)éN)Ú clientAVG)ÚServer)ÚThreadcs$eZdZ‡fdd„Zdd„Z‡ZS)ÚFedAvgcsLtƒ ||¡| ¡| |t¡td|j›d|j›�ƒ...
1,867
Python
.pyt
17
108.529412
383
0.47866
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,020
serverditto.cpython-37.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverditto.cpython-37.pyc
B ¾:ccüã@sHddlZddlmZddlmZddlmZddlZGdd„deƒZdS)éN)Ú clientDitto)ÚServer)ÚThreadcs$eZdZ‡fdd„Zdd„Z‡ZS)ÚDittocsLtƒ ||¡| ¡| |t¡td|j›d|j›�ƒtdƒ...
1,727
Python
.pyt
14
122
331
0.482497
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,021
serverpFedMe.cpython-37.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverpFedMe.cpython-37.pyc
B ¸:ccEã@sPddlZddlZddlZddlmZddlmZddlmZGdd„deƒZ dS)éN)Ú clientpFedMe)ÚServer)ÚThreadcsLeZdZ‡fdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z ‡Z S)ÚpFedMecs`tƒ ||¡|...
3,763
Python
.pyt
23
162.26087
430
0.466167
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,022
serveravg.cpython-39.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serveravg.cpython-39.pyc
a Ú'bcçã@sHddlZddlZddlmZddlmZddlmZGdd„deƒZdS)éN)Ú clientAVG)ÚServer)ÚThreadcs$eZdZ‡fdd„Zdd„Z‡ZS)ÚFedAvgcsLtƒ ||¡| ¡| |t¡td|j›d|j›�ƒ...
1,771
Python
.pyt
15
116.733333
369
0.491747
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,023
serverphp.cpython-38.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverphp.cpython-38.pyc
U •ic‚ã@sHddlmZddlmZddlmZddlZddlZGdd„deƒZdS)é)Ú clientPHP)ÚServer)ÚThreadNcs,eZdZ‡fdd„Zdd„Zdd„Z‡ZS)ÚFedPHPcsLtƒ ||¡| ¡| |t¡td|j›d|...
1,735
Python
.pyt
17
100.823529
350
0.482257
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,024
serverbn.cpython-37.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverbn.cpython-37.pyc
B ¿:ccãã@sLddlmZddlmZddlmZddlmZddlZGdd„deƒZ dS)é)ÚclientBN)ÚServer)Úread_client_data)ÚThreadNcs$eZdZ‡fdd„Zdd„Z‡ZS)ÚFedBNcsFtƒ ||¡| ¡| |t¡td|j›d...
1,512
Python
.pyt
13
115
346
0.498
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,025
serverrod.cpython-37.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverrod.cpython-37.pyc
B ¸:ccçã@sLddlmZddlmZddlmZddlmZddlZGdd„deƒZ dS)é)Ú clientROD)ÚServer)Úread_client_data)ÚThreadNcs$eZdZ‡fdd„Zdd„Z‡ZS)ÚFedRODcsFtƒ ||¡| ¡| |t¡td|j›...
1,518
Python
.pyt
13
115.461538
348
0.5
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,026
serveramp.cpython-37.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serveramp.cpython-37.pyc
B ·:ccÍ ã@sdddlZddlZddlZddlZddlZddlmZmZddl m Z ddl m Z Gdd„de ƒZ dS)éN)Ú clientAMPÚweight_flatten)ÚServer)ÚThreadcs4eZdZ‡fdd„Zdd„Zdd„Zdd„Z‡ZS) ÚFedAMPcsVtƒ |...
2,678
Python
.pyt
24
110.291667
333
0.469303
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,027
serverlocal.cpython-37.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverlocal.cpython-37.pyc
B ¿:cc…ã@s8ddlmZddlmZddlmZGdd„deƒZdS)é)Ú clientAVG)ÚServer)ÚThreadcs$eZdZ‡fdd„Zdd„Z‡ZS)ÚLocalcsFtƒ ||¡| ¡| |t¡td|j›d|j›�ƒtdƒdS)Nz Join rati...
1,375
Python
.pyt
13
104.461538
306
0.48496
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,028
serverperavg.cpython-37.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverperavg.cpython-37.pyc
B ¿:cc‚ã@sHddlZddlZddlmZddlmZddlmZGdd„deƒZdS)éN)Ú clientPerAvg)ÚServer)ÚThreadcs,eZdZ‡fdd„Zdd„Zdd„Z‡ZS)ÚPerAvgcsFtƒ ||¡| ¡| |t¡td|j›d|j›�ƒ...
2,014
Python
.pyt
16
124.5
335
0.486243
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,029
servermoon.cpython-38.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/servermoon.cpython-38.pyc
U [Ðýc’ã@sLddlmZddlmZddlmZddlmZddlZGdd„deƒZ dS)é)Ú clientMOON)ÚServer)Úread_client_data)ÚThreadNcs$eZdZ‡fdd„Zdd„Z‡ZS)ÚMOONcsLtƒ ||¡| ¡| |t¡...
2,012
Python
.pyt
22
90.227273
352
0.473631
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,030
serverbase.cpython-38.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverbase.cpython-38.pyc
U ¨ÿcÍ)ã@sXddlZddlZddlZddlZddlZddlZddlZddlm Z Gdd„de ƒZ dS)éN)Úread_client_datac@s°eZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„Z...
9,576
Python
.pyt
50
190.36
711
0.388055
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,031
serverbase.cpython-37.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverbase.cpython-37.pyc
B vĞecû'ã@sXddlZddlZddlZddlZddlZddlZddlZddlm Z Gdd„de ƒZ dS)éN)Úread_client_datac@s°eZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„Zdd „Z...
9,090
Python
.pyt
50
180.68
695
0.394757
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,032
serverfomo.cpython-38.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverfomo.cpython-38.pyc
U •icWã@s`ddlZddlZddlZddlZddlZddlmZddlm Z ddl m Z Gdd„de ƒZ dS)éN)Ú clientFomo)ÚServer)ÚThreadcs4eZdZ‡fdd„Zdd„Zdd„Zdd„Z‡ZS) ÚFedFomocs€tƒ ||¡...
2,998
Python
.pyt
28
105.928571
428
0.453383
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,033
serverproto.cpython-39.pyc
hkgdifyu_pFedPT/system/flcore/servers/__pycache__/serverproto.cpython-39.pyc
a f¾`cÜã@shddlmZddlmZddlmZddlmZddlZddl Z ddl m Z Gdd„deƒZ d d „ZdS) é)Ú clientProto)ÚServer)Úread_client_data)ÚThreadN)Ú defaultdictcs>eZdZ‡fdd„Zdd„Zdd„Zdd„Zd d d „Z‡ZS...
3,711
Python
.pyt
33
111.30303
408
0.437075
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,034
data_utils.cpython-38.pyc
hkgdifyu_pFedPT/system/utils/__pycache__/data_utils.cpython-38.pyc
U ?şcbã@sZddlZddlZddlZddlZdd„Zdd„Zdd„Zdd d „Zdd d „Z dd d„Z dS)éNccs‚|d}|d}tj ¡}tj |¡tj |¡tj |¡tdt|ƒ|ƒD].}||||…}||||…}||fVqNdS)z— data is...
3,614
Python
.pyt
30
119.033333
601
0.35258
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,035
data_utils.cpython-37.pyc
hkgdifyu_pFedPT/system/utils/__pycache__/data_utils.cpython-37.pyc
B Ê:cc®ã@sZddlZddlZddlZddlZdd„Zdd„Zdd„Zdd d „Zdd d „Z dd d„Z dS)éNccs†|d}|d}tj ¡}tj |¡tj |¡tj |¡xBtdt|ƒ|ƒD].}||||…}||||…}||fVqPWdS)z— data is a d...
3,403
Python
.pyt
25
134.6
606
0.356318
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,036
mem_utils.cpython-37.pyc
hkgdifyu_pFedPT/system/utils/__pycache__/mem_utils.cpython-37.pyc
B Ë:ccEã@s~ddlZddlZddlmZddlmZmZmZddlZddlm Z ddl m Z e e dœdd„Zd Zd Zd ZGd d „d ƒZdS)éN)Ú defaultdict)ÚOptionalÚTupleÚList)Úisnan)Úsize)Ú num_bytesÚreturncCst|ƒr dSd t|ƒ¡S)NÚz{:.2f})...
5,571
Python
.pyt
60
87.666667
390
0.482107
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,037
data_utils.cpython-39.pyc
hkgdifyu_pFedPT/system/utils/__pycache__/data_utils.cpython-39.pyc
a f¾`c®ã@sZddlZddlZddlZddlZdd„Zdd„Zdd„Zdd d „Zdd d „Z dd d„Z dS)éNccs‚|d}|d}tj ¡}tj |¡tj |¡tj |¡tdt|ƒ|ƒD].}||||…}||||…}||fVqNdS)z— data is...
3,490
Python
.pyt
25
138.08
593
0.359492
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,038
result_utils.cpython-37.pyc
hkgdifyu_pFedPT/system/utils/__pycache__/result_utils.cpython-37.pyc
B Ë:ccÇã@s:ddlZddlZddlZd dd„Zd dd„Zdd d „ZdS)éNÚé é c Csnt||||t|ƒƒ}tj|dd�}g}x"t|ƒD]}| || ¡¡q0Wtdt |¡ƒtdt  |¡ƒdS)Nr)Úaxiszstd for best accurancy:zmean for best accuran...
1,378
Python
.pyt
10
136.5
467
0.42575
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,039
result_utils.cpython-38.pyc
hkgdifyu_pFedPT/system/utils/__pycache__/result_utils.cpython-38.pyc
U çYgcÈã@s:ddlZddlZddlZd dd„Zd dd„Zdd d „ZdS)éNÚé é c Csjt||||t|ƒƒ}tj|dd�}g}t|ƒD]}| || ¡¡q.tdt |¡ƒtdt  |¡ƒdS)Nr)Úaxiszstd for best accurancy:zmean for best acc...
1,442
Python
.pyt
11
129.818182
497
0.412587
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,040
privacy.cpython-38.pyc
hkgdifyu_pFedPT/system/utils/__pycache__/privacy.cpython-38.pyc
U e¾`cã@sPddlmZddlmZdZdZdZdZdZdd „Z d d „Z d d „Z dd„Z dS)é)Ú PrivacyEngine)ÚDPModelInspectorgğ?gI@gH¯¼šò×z>édécCs$t||tt|td�}| |¡dS)N)Ú sample_rateZ target_deltaZnoise_multipl...
1,200
Python
.pyt
6
198.833333
480
0.445188
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,041
mem_utils.cpython-38.pyc
hkgdifyu_pFedPT/system/utils/__pycache__/mem_utils.cpython-38.pyc
U –jfcEã@s~ddlZddlZddlmZddlmZmZmZddlZddlm Z ddl m Z e e dœdd„Zd Zd Zd ZGd d „d ƒZdS)éN)Ú defaultdict)ÚOptionalÚTupleÚList)Úisnan)Úsize)Ú num_bytesÚreturncCst|ƒr dSd t|ƒ¡S)NÚz...
5,594
Python
.pyt
60
88.05
406
0.478292
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,042
dataset_utils.cpython-38.pyc
hkgdifyu_pFedPT/dataset/utils/__pycache__/dataset_utils.cpython-38.pyc
U )Qgcâã@sjddlZddlZddlZddlZddlmZdZdZedeZ dd d „Z dd d „Z d d„Z ddd„Z dS)éN)Útrain_test_splitégè?éFTçš™™™™™¹?c CsÔtj |¡rŒt|dƒ�} t | ¡} W5QRX| d|krŒ| d|krŒ| d|krŒ...
5,383
Python
.pyt
63
84.365079
504
0.367224
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,043
dataset_utils.cpython-37.pyc
hkgdifyu_pFedPT/dataset/utils/__pycache__/dataset_utils.cpython-37.pyc
B 4ØccÊã@snddlZddlZddlZddlZddlmZdZdZedeZ dZ dd d „Z dd d „Z d d„Z ddd„ZdS)éN)Útrain_test_splitégè?égš™™™™™¹?FTc CsÔtj |¡rŒt|dƒ�}t |¡} WdQRX| d|krŒ| d|krŒ| d|krŒ| d...
5,332
Python
.pyt
54
97.592593
489
0.37526
hkgdifyu/pFedPT
8
3
0
GPL-2.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,044
backend_main.py
OSSQA-PUM_OSSQA/src/backend_main.py
""" This is the main entry point for the backend of the application. It creates an instance of the Flask app using the `create_app()` function from the `backend.server` module, and then runs the app on port 5090, allowing connections from any host. Usage: python backend_main.py """ import backend.server as server...
419
Python
.py
12
32.583333
73
0.727047
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,045
web_main.py
OSSQA-PUM_OSSQA/src/web_main.py
""" This module serves as the entry point for running the web application. It imports the `run` function from the `main.frontend.web_api` module and calls it when the script is executed. This module is used by the docker-compose file to start the web application. Usage: python web_main.py """ from main.frontend....
378
Python
.py
11
32.181818
76
0.748619
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,046
test_backend_main.py
OSSQA-PUM_OSSQA/src/test_backend_main.py
""" This script starts a test server for the backend application. Usage: python test_backend_main.py The server runs on port 5091 by default. """ import backend.server as server if __name__ == "__main__": app = server.create_test_app() app.run(port=5091)
271
Python
.py
10
24.5
61
0.715953
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,047
cli_main.py
OSSQA-PUM_OSSQA/src/cli_main.py
""" The entry point of the CLI. Example usage: python cli_main.py -a -p ../sboms/example-SBOM.json -g [YOUR_GIT_TOKEN] """ from main.frontend.cli import ossqa_cli if __name__ == "__main__": ossqa_cli()
213
Python
.py
8
24.25
75
0.663366
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,048
util.py
OSSQA-PUM_OSSQA/src/main/util.py
""" This module contains utility functions for the main module. Functions: - get_git_sha1: Gets the SHA1 hash for a version of a dependency. - is_valid_sha1: Check the validity of a sha1 string. """ import re import os import datetime from math import inf from time import time import requests class TokenLimitExceede...
7,005
Python
.py
188
29.601064
79
0.629345
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,049
constants.py
OSSQA-PUM_OSSQA/src/main/constants.py
""" This module contains constants used in the application. Attributes: HOST (str): The host URL for the application. """ HOST = "http://host.docker.internal:5090"
170
Python
.py
6
26.333333
55
0.746914
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,050
sbom_processor.py
OSSQA-PUM_OSSQA/src/main/sbom_processor.py
""" This module contains the SBOM processor class, which is responsible for processing SBOMs. Classes: - SbomProcessor: Represents an SBOM processor that defines the process of analyzing SBOMs. - SbomProcessorStatus: Represents the status of the SBOM processor. """ from enum import StrEnum from datacl...
7,265
Python
.py
185
29.648649
79
0.632482
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,051
backend_communication.py
OSSQA-PUM_OSSQA/src/main/backend_communication.py
""" This module contains functions for communicating with the database. Functions: - add_sbom: Adds an SBOM, its dependencies, and their scores to the database. - get_sboms_by_name: Gets all versions of a SBOM:s with a specific name. - get_sbom_names: Returns the names of all the SBOMs in the database. - get_existing_...
8,467
Python
.py
203
30.600985
78
0.592854
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,052
front_end_api.py
OSSQA-PUM_OSSQA/src/main/frontend/front_end_api.py
""" Front-end API for interacting with the SBOM processor and performing various operations such as analyzing SBOMs, looking up stored SBOMs, and retrieving previous SBOMs by name. """ import copy from typing import Callable, Any from main.data_types.sbom_types.sbom import Sbom from main.data_types.user_requirements im...
3,399
Python
.py
83
32.240964
76
0.656155
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,053
cli.py
OSSQA-PUM_OSSQA/src/main/frontend/cli.py
""" This script defines a command-line argument parser for the Open Source Security and Quality Assessment (OSSQA) program. The script uses the argparse module to define and parse command-line arguments for two commands: analyze and lookup. The analyze command takes several arguments including the file path to the SB...
19,382
Python
.py
448
34.957589
90
0.64011
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,054
web_api.py
OSSQA-PUM_OSSQA/src/main/frontend/web_api.py
import json from dataclasses import asdict from flask import Flask, request from main.frontend.front_end_api import FrontEndAPI from main.data_types.sbom_types.sbom import Sbom from main.data_types.user_requirements import (UserRequirements, RequirementsType) from main.s...
4,409
Python
.py
118
30.228814
70
0.664246
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,055
dependency_grader.py
OSSQA-PUM_OSSQA/src/main/frontend/dependency_grader.py
""" This module contains the function to calculate the final scores for the dependencies in the SBOM. """ import copy from main.data_types.sbom_types.sbom import Sbom from main.data_types.user_requirements import UserRequirements from main.data_types.sbom_types.dependency import Dependency def grade_dependencies(sbom...
1,988
Python
.py
52
30.711538
77
0.665281
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,056
user_requirements.py
OSSQA-PUM_OSSQA/src/main/data_types/user_requirements.py
""" This module contains every datatype related to user-specified requirements. """ from enum import StrEnum class RequirementsType(StrEnum): """ Mappings between strings and OpenSSF Scorecard tests. """ VULNERABILITIES = "vulnerabilities" DEPENDENCY_UPDATE_TOOL = "dependency_update_tool" MAIN...
9,848
Python
.py
224
32.830357
78
0.596962
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,057
event.py
OSSQA-PUM_OSSQA/src/main/data_types/event.py
""" This module defines the Event class, which allows subscribing to and invoking callback functions. Example usage: event = Event[int]() event.subscribe(callback_function) event.invoke(42) """ from typing import TypeVar, Generic, Callable, Any T = TypeVar('T') class Event(Generic[T]): """ Rep...
1,691
Python
.py
50
25.5
78
0.594096
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,058
dependency_scorer.py
OSSQA-PUM_OSSQA/src/main/data_types/dependency_scorer.py
""" This module contains classes for analyzing or fetching dependencies. The class DependencyScorer is an abstract base class based on the Strategy design pattern, with children implementing different ways of retrieving Dependencies with scored data. """ from abc import ABC, abstractmethod from typing import Any, Call...
19,185
Python
.py
450
29.577778
79
0.572791
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,059
dependency_manager.py
OSSQA-PUM_OSSQA/src/main/data_types/sbom_types/dependency_manager.py
""" This module contains the DependencyManager class, which manages the dependencies (components) of an SBOM. Classes: - DependencyManager: Represents a dependency manager that manages dependencies for a project. """ from typing import Callable from main.data_types.sbom_types.dependency import Dependency class D...
4,498
Python
.py
121
25.826446
78
0.578609
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,060
sbom.py
OSSQA-PUM_OSSQA/src/main/data_types/sbom_types/sbom.py
""" This module contains the Sbom class, which represents a Software Bill of Materials (SBOM) object. Classes: - Sbom: Represents a Software Bill of Materials (SBOM) object. """ from re import match import requests from main.data_types.sbom_types.dependency_manager import DependencyManager from main.data_types.sbom_t...
7,160
Python
.py
175
30.954286
78
0.600058
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,061
dependency.py
OSSQA-PUM_OSSQA/src/main/data_types/sbom_types/dependency.py
""" This module contains the Dependency class which represents a dependency for a project. """ from urllib.parse import urlparse from re import search from dataclasses import dataclass from main.data_types.sbom_types.scorecard import Scorecard @dataclass class Dependency: """ Represents a dependency for a pro...
8,436
Python
.py
231
25.549784
78
0.555977
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,062
scorecard.py
OSSQA-PUM_OSSQA/src/main/data_types/sbom_types/scorecard.py
""" This module contains classes that represent data from OpenSSF Scorecard results. Classes: - Check: Represents a scorecard check. - Scorecard: Represents the results of OpenSSF Scorecard. - ScorecardChecks: Represents the checks that can be performed by OpenSSF Scorecard on a dependency. """ from dataclasses impor...
5,654
Python
.py
157
27.88535
78
0.619352
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,063
models.py
OSSQA-PUM_OSSQA/src/backend/models.py
""" This module handles the configuration of each database model and their relations. """ import json from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() dependency_sbom = db.Table("dependency_sbom", db.Column("dependency_id", db.Integer, db.Foreig...
4,551
Python
.py
116
28.939655
79
0.581237
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,064
routes.py
OSSQA-PUM_OSSQA/src/backend/routes.py
""" This module handles the endpoints that the backend communication interface interfaces with. It also handles functionality for creating and updating various objects in the database. """ import json from flask import Flask, jsonify, request from flask_sqlalchemy import SQLAlchemy from backend.models import SBOM, Dep...
6,066
Python
.py
161
26.093168
78
0.547591
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,065
server.py
OSSQA-PUM_OSSQA/src/backend/server.py
""" This module handles the creation and configuration of the flask app, which is our backend and database. """ from flask import Flask from backend.models import db from backend.routes import register_endpoints, register_test_endpoints def create_test_app() -> Flask: """ Creates a flask app that can be use...
1,018
Python
.py
35
24.485714
70
0.664603
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,066
test_dependency_grader.py
OSSQA-PUM_OSSQA/src/tests/main/unit/test_dependency_grader.py
from main.data_types.sbom_types.sbom import Sbom from main.data_types.sbom_types.dependency import Dependency from main.data_types.sbom_types.scorecard import Scorecard, ScorecardChecks from main.frontend.dependency_grader import grade_dependencies from main.data_types.user_requirements import UserRequirements minimal...
8,917
Python
.py
282
22.741135
79
0.559907
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,067
sboms.py
OSSQA-PUM_OSSQA/src/tests/main/unit/sboms/sboms.py
from pathlib import Path DIRECTORY = Path(__file__).parent PATHS = [ DIRECTORY / "example-SBOM.json", ] SBOM_COMPONENT_URLS = [ "github.com/ProtonMail/proton-bridge", "github.com/allan-simon/go-singleinstance", "github.com/andybalholm/cascadia", "gitsnub.com/ProtonMail/proton-bridge", "", ...
19,516
Python
.py
650
19.852308
169
0.483934
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,068
scorecards.py
OSSQA-PUM_OSSQA/src/tests/main/unit/scorecards/scorecards.py
from pathlib import Path from main.data_types.sbom_types.scorecard import ScorecardChecks DIRECTORY = Path(__file__).parent PATHS = [ DIRECTORY / "docker.json", DIRECTORY / "pad-left.json", DIRECTORY / "pytorch.json", DIRECTORY / "react.json", DIRECTORY / "OSSQA-PUM-scorecard.json" ] UNPARSABLE_S...
5,882
Python
.py
228
13.144737
64
0.351567
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,069
test_event.py
OSSQA-PUM_OSSQA/src/tests/main/unit/data_types/test_event.py
import pytest from main.data_types.event import Event def test_event_initialization(): """ Test the initialization of the Event class. """ event = Event() assert isinstance(event, Event) assert isinstance(event._callbacks, list) def test_event_subscribe_int(): """ Test the subscribe ...
3,513
Python
.py
100
29.56
77
0.701183
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,070
test_user_requirements.py
OSSQA-PUM_OSSQA/src/tests/main/unit/data_types/test_user_requirements.py
import pytest from main.data_types.user_requirements import (UserRequirements, RequirementsType) REQ_TYPES = [req_type.value for req_type in RequirementsType] @pytest.fixture(name="valid_empty_reqs") def valid_empty_reqs_fixture() -> dict: return {} @pytest.fixtu...
2,330
Python
.py
62
29.983871
70
0.670364
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,071
test_dependency_scorer.py
OSSQA-PUM_OSSQA/src/tests/main/unit/data_types/test_dependency_scorer.py
import json import pytest from main.data_types.dependency_scorer import ScorecardAnalyzer from main.data_types.sbom_types.scorecard import Scorecard from tests.main.unit.scorecards.scorecards import PATHS # Dummy dependencies for testing DUMMY_DEPS = [ { "name": "github.com/", "version": "1.0" ...
1,084
Python
.py
33
28.272727
64
0.689952
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,072
test_dependency_manager.py
OSSQA-PUM_OSSQA/src/tests/main/unit/data_types/sbom_types/test_dependency_manager.py
""" This module contains unit tests for the `DependencyManager` class in the `dependency_manager` module of the `sbom_types` package. The `DependencyManager` class is responsible for managing dependencies in a software bill of materials (SBOM). It provides methods for initializing the manager, updating the dependencie...
8,831
Python
.py
200
37.94
79
0.711959
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,073
test_scorecard.py
OSSQA-PUM_OSSQA/src/tests/main/unit/data_types/sbom_types/test_scorecard.py
""" Test the Scorecard class and its methods. The Scorecard class represents a scorecard retrieved from OpenSSF Scorecard. It contains information about the scorecard, such as the date, score, and checks. The class provides methods for initializing a scorecard, converting the scorecard to a dictionary representation, ...
4,323
Python
.py
109
33.798165
79
0.700239
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,074
test_sbom.py
OSSQA-PUM_OSSQA/src/tests/main/unit/data_types/sbom_types/test_sbom.py
""" This module contains unit tests for the `Sbom` class in the `sbom` module of the `sbom_types` package. """ import json import pytest from tests.main.unit.sboms.sboms import (PATHS as SBOM_PATHS, BAD_SBOMS, SBOM_COMPONENT_URLS, ...
3,263
Python
.py
91
30.274725
75
0.679455
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,075
test_dependency.py
OSSQA-PUM_OSSQA/src/tests/main/unit/data_types/sbom_types/test_dependency.py
""" This file contains test cases for the Dependency class. The Dependency class represents a single dependency in a software bill of materials (SBOM). It contains information about the dependency, such as its name, version, and scorecard. The class provides methods for initializing a dependency, comparing dependencie...
5,357
Python
.py
145
31.517241
75
0.687934
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,076
expected_results.py
OSSQA-PUM_OSSQA/src/tests/main/unit/data_types/sbom_types/expected_jsons/expected_results.py
import json from pathlib import Path from tests.main.unit.scorecards.scorecards import PATHS from main.data_types.sbom_types.scorecard import Scorecard DIRECTORY = Path(__file__).parent PATHS = [ DIRECTORY / "dependency_pad_left.json", ] def test(): with open(PATHS[1], "r") as file: scorecard = json...
455
Python
.py
14
28.928571
58
0.709382
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,077
test_get_named_sboms.py
OSSQA-PUM_OSSQA/src/tests/main/integration/test_get_named_sboms.py
""" This module tests the functionality of gettings SBOMs with specific names from the database. """ import sys from unittest.mock import patch import pytest import requests from main.backend_communication import BackendCommunication from main.data_types.dependency_scorer import StepResponse from main.data_types.sbom...
4,066
Python
.py
89
37.955056
78
0.67163
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,078
constants.py
OSSQA-PUM_OSSQA/src/tests/main/integration/constants.py
""" This module contains constants that are useful for integration testing. """ HOST = "http://localhost:5091"
112
Python
.py
4
26.75
71
0.766355
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,079
test_get_sbom_names.py
OSSQA-PUM_OSSQA/src/tests/main/integration/test_get_sbom_names.py
""" This module tests the functionality of getting SBOM names from the database. """ import json import sys from pathlib import Path from unittest.mock import patch import pytest import requests from main.backend_communication import BackendCommunication from main.data_types.dependency_scorer import StepResponse from...
3,531
Python
.py
80
36.7875
78
0.679267
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,080
test_analyze_sbom.py
OSSQA-PUM_OSSQA/src/tests/main/integration/test_analyze_sbom.py
""" This module tests the functionality of analyzing an SBOM. """ import os import sys from pathlib import Path from unittest.mock import patch import pytest import requests from main.backend_communication import BackendCommunication from main.frontend.cli import ossqa_cli from main.frontend.front_end_api import Fron...
4,298
Python
.py
112
31.875
77
0.664903
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,081
__init__.py
OSSQA-PUM_OSSQA/src/tests/main/integration/sboms/__init__.py
""" This module contains downscaled SBOMs tailored to be used in the integration tests. """ import json from pathlib import Path from main.data_types.sbom_types.sbom import Sbom from main.data_types.sbom_types.scorecard import Scorecard DIR_PATH = Path(__file__).parent SBOM_PATH = DIR_PATH / "downscaled-ddmanager-con...
8,777
Python
.py
203
31.541872
151
0.568927
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,082
test_routes.py
OSSQA-PUM_OSSQA/src/tests/backend/test_routes.py
""" This module contains tests for each route in the flask app. """ import json from typing import Generator from flask.testing import FlaskClient from pytest import fixture, FixtureRequest from backend.server import create_test_app from backend.models import db from tests.backend.sboms import PATHS @fixture(name="...
2,980
Python
.py
74
33.486486
79
0.654193
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,083
__init__.py
OSSQA-PUM_OSSQA/src/tests/backend/sboms/__init__.py
from pathlib import Path BASE_DIR = Path(__file__).parent PATHS = [ BASE_DIR / "fake_sbom.json", ]
104
Python
.py
5
18.8
32
0.673469
OSSQA-PUM/OSSQA
8
1
2
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,084
manage.py
codegenius2_Editoral/manage.py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'PyEditorial.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Im...
631
Python
.py
17
31.176471
75
0.681967
codegenius2/Editoral
8
0
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,085
settings.py
codegenius2_Editoral/PyEditorial/settings.py
""" Django settings for PyEditorial project. Generated by 'django-admin startproject' using Django 3.0.8. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import o...
6,996
Python
.py
189
32.407407
196
0.663955
codegenius2/Editoral
8
0
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,086
asgi.py
codegenius2_Editoral/PyEditorial/asgi.py
""" ASGI config for PyEditorial project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_S...
399
Python
.py
10
38.3
78
0.806789
codegenius2/Editoral
8
0
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,087
urls.py
codegenius2_Editoral/PyEditorial/urls.py
"""PyEditorial URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-b...
1,244
Python
.py
27
43.037037
95
0.738056
codegenius2/Editoral
8
0
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,088
wsgi.py
codegenius2_Editoral/PyEditorial/wsgi.py
""" WSGI config for PyEditorial project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_S...
399
Python
.py
10
38.3
78
0.806789
codegenius2/Editoral
8
0
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,089
models.py
codegenius2_Editoral/content/models.py
from django.db import models from django.utils.translation import ugettext_lazy as _ from ckeditor_uploader.fields import RichTextUploadingField class BlogCategory(models.Model): title = models.CharField( max_length=256, verbose_name=_('Title :'), unique=True, blank=False, ...
4,956
Python
.py
179
20.424581
68
0.58769
codegenius2/Editoral
8
0
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,090
urls.py
codegenius2_Editoral/content/urls.py
from django.urls import path from . import views urlpatterns = [ path('', views.Index.as_view(), name='index'), path('search/', views.Search.as_view(), name='search'), path('blog/', views.Blog.as_view(), name='blog'), path('create/blog/', views.BlogCreateView.as_view(), name='blog_create'), path('...
1,630
Python
.py
22
69.727273
119
0.709215
codegenius2/Editoral
8
0
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,091
context_processors.py
codegenius2_Editoral/content/context_processors.py
from . import models from constance import config def show_system_content(request): return { 'blog_categories': models.BlogCategory.objects.all(), 'videocast_categories': models.VideocastCategory.objects.all(), 'podcast_categories': models.PodcastCategory.objects.all(), 'podcasts':...
417
Python
.py
10
35.7
84
0.698765
codegenius2/Editoral
8
0
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,092
admin.py
codegenius2_Editoral/content/admin.py
from django.contrib import admin from django.utils.translation import ugettext_lazy as _ from . import models class BlogAdmin(admin.ModelAdmin): list_display = ['title', 'display_category', 'publish'] list_editable = ('publish',) list_filter = ('publish', 'category',) search_fields = ('title',) m...
1,394
Python
.py
31
41.354839
73
0.72452
codegenius2/Editoral
8
0
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,093
views.py
codegenius2_Editoral/content/views.py
from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.messages.views import SuccessMessageMixin from django.shortcuts import render, redirect from django.urls import reverse from django.views import generic, View from django.db.models import Q from . import models from .forms import SearchForm ...
5,293
Python
.py
119
37.697479
95
0.704803
codegenius2/Editoral
8
0
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,094
setup.py
mabrains_path_length_analysis/setup.py
# ========================================================================================= # Copyright (c) 2024, Mabrains LLC # Licensed under the GNU Lesser General Public License, Version 3.0 (the "License"); # you may not use this file except in compliance with the License. # GNU Lesser General ...
1,841
Python
.py
39
44.205128
91
0.648664
mabrains/path_length_analysis
8
4
0
LGPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,095
path_length.py
mabrains_path_length_analysis/path_length.py
# ========================================================================================= # Copyright (c) 2024, Mabrains LLC # Licensed under the GNU Lesser General Public License, Version 3.0 (the "License"); # you may not use this file except in compliance with the License. # GNU Lesser General ...
3,995
Python
.py
100
35.09
91
0.632911
mabrains/path_length_analysis
8
4
0
LGPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,096
__init__.py
mabrains_path_length_analysis/path_analysis/__init__.py
# ========================================================================================= # Copyright (c) 2024, Mabrains LLC # Licensed under the GNU Lesser General Public License, Version 3.0 (the "License"); # you may not use this file except in compliance with the License. # GNU Lesser General ...
1,208
Python
.py
21
56.380952
91
0.635135
mabrains/path_length_analysis
8
4
0
LGPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,097
path_analysis.py
mabrains_path_length_analysis/path_analysis/path_analysis.py
# ========================================================================================= # Copyright (c) 2024, Mabrains LLC # Licensed under the GNU Lesser General Public License, Version 3.0 (the "License"); # you may not use this file except in compliance with the License. # GNU Lesser General ...
26,111
Python
.py
591
37.62775
100
0.667637
mabrains/path_length_analysis
8
4
0
LGPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,098
pytest_path_length.py
mabrains_path_length_analysis/tests/pytest_path_length.py
# ========================================================================================= # Copyright (c) 2024, Mabrains LLC # Licensed under the GNU Lesser General Public License, Version 3.0 (the "License"); # you may not use this file except in compliance with the License. # GNU Lesser General ...
4,820
Python
.py
103
41.407767
96
0.647309
mabrains/path_length_analysis
8
4
0
LGPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,287,099
aws-glueetl-costs-analysis.py
zhiweio_data-engineer-scripts/src/aws-glueetl-costs-analysis/aws-glueetl-costs-analysis.py
import argparse import json import os from datetime import datetime from typing import Generator, List import boto3 import pandas as pd import plotly.express as px class GlueClient: def __init__(self): self.client = boto3.client("glue") def get_jobs(self) -> Generator[dict, None, None]: """G...
4,664
Python
.py
110
33.509091
84
0.589325
zhiweio/data-engineer-scripts
8
0
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)