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
34,300
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/lin/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2018 Stephan Thiele <stephan.thiele@mailbox.org> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either v...
8,161
Python
.py
190
32.942105
116
0.563588
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,301
__init__.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/graycode/__init__.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2017 Christoph Rackwitz <christoph.rackwitz@rwth-aachen.de> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; eith...
860
Python
.py
22
38
76
0.763158
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,302
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/graycode/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2017 Christoph Rackwitz <christoph.rackwitz@rwth-aachen.de> ## Copyright (C) 2019 DreamSourceLab <support@dreamsourcelab.com> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Pu...
7,180
Python
.py
165
35.109091
139
0.585352
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,303
__init__.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/adf435x/__init__.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2017 Joel Holdsworth <joel@airwebreathe.org.uk> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2...
1,116
Python
.py
26
41.807692
78
0.776449
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,304
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/adf435x/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2017 Joel Holdsworth <joel@airwebreathe.org.uk> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 3...
8,887
Python
.py
214
33.042056
79
0.558637
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,305
__init__.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/0-i2c/__init__.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the Li...
937
Python
.py
23
39.652174
72
0.757675
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,306
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/0-i2c/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2010-2016 Uwe Hermann <uwe@hermann-uwe.de> ## Copyright (C) 2022 DreamSourceLab <support@dreamsourcelab.com> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as p...
10,077
Python
.py
231
34.935065
105
0.552487
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,307
__init__.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/tdm_audio/__init__.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2019 Ben Dooks <ben.dooks@codethink.co.uk> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of t...
949
Python
.py
23
40.173913
73
0.761905
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,308
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/tdm_audio/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2019 Ben Dooks <ben.dooks@codethink.co.uk> ## Copyright (C) 2024 DreamSourceLab <support@dreamsourcelab.com> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as p...
4,926
Python
.py
109
34.522936
164
0.551928
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,309
__init__.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/onewire_network/__init__.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the Li...
2,057
Python
.py
46
42.847826
78
0.770115
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,310
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/onewire_network/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2012 Iztok Jeras <iztok.jeras@gmail.com> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the...
7,166
Python
.py
169
32.852071
80
0.547343
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,311
__init__.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/swim/__init__.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2018 Mike Jagdis <mjagdis@eris-associates.co.uk> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version ...
1,148
Python
.py
26
43.038462
76
0.77748
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,312
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/swim/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2018 Mike Jagdis <mjagdis@eris-associates.co.uk> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version ...
13,957
Python
.py
267
41.981273
239
0.587197
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,313
__init__.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/i2s/__init__.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2012 Joel Holdsworth <uwe@hermann-uwe.de> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of th...
1,024
Python
.py
26
38.269231
72
0.767839
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,314
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/i2s/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk> ## Copyright (C) 2019 DreamSourceLab <support@dreamsourcelab.com> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License...
7,912
Python
.py
183
33.786885
104
0.553534
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,315
__init__.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/hdcp/__init__.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2018 Dave Craig <dcraig@brightsign.biz> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the ...
996
Python
.py
24
40.375
114
0.768834
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,316
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/hdcp/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2018 Dave Craig <dcraig@brightsign.biz> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the ...
6,743
Python
.py
175
27.474286
82
0.504731
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,317
__init__.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/0-uart/__init__.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the Li...
1,714
Python
.py
35
47.828571
76
0.774194
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,318
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/0-uart/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2011-2014 Uwe Hermann <uwe@hermann-uwe.de> ## Copyright (C) 2019 DreamSourceLab <support@dreamsourcelab.com> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as p...
10,962
Python
.py
240
37.366667
126
0.589878
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,319
__init__.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/em4305/__init__.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2015 Benjamin Larsson <benjamin@southpole.se> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 o...
845
Python
.py
22
37.318182
71
0.760049
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,320
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/em4305/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2016 Benjamin Larsson <benjamin@southpole.se> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 o...
18,462
Python
.py
353
39.929178
128
0.521419
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,321
__init__.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/microwire/__init__.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2017 Kevin Redon <kingkevin@cuvoodoo.info> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of t...
1,523
Python
.py
34
42.882353
78
0.766689
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,322
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/microwire/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2017 Kevin Redon <kingkevin@cuvoodoo.info> ## Copyright (C) 2019 DreamSourceLab <support@dreamsourcelab.com> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as p...
9,040
Python
.py
183
32.606557
89
0.475297
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,323
__init__.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/i2cfilter/__init__.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2012 Bert Vermeulen <bert@biot.com> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 3 of the Lice...
1,456
Python
.py
31
45.645161
76
0.775265
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,324
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/i2cfilter/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2012 Bert Vermeulen <bert@biot.com> ## Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the...
3,553
Python
.py
80
36.8625
85
0.628588
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,325
__init__.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/1-i2c/__init__.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the Li...
937
Python
.py
23
39.652174
72
0.757675
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,326
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/1-i2c/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2010-2016 Uwe Hermann <uwe@hermann-uwe.de> ## Copyright (C) 2022 DreamSourceLab <support@dreamsourcelab.com> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as p...
11,379
Python
.py
261
34.835249
105
0.551183
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,327
__init__.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/xy2-100/__init__.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2019 Uli Huber ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your o...
895
Python
.py
24
36.125
71
0.761246
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,328
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/xy2-100/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2019 Uli Huber ## Copyright (C) 2020 Soeren Apel ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version ...
9,207
Python
.py
206
33.092233
179
0.517345
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,329
__init__.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/st25r39xx_spi/__init__.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2019-2020 Benjamin Vernoux <bvernoux@gmail.com> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2...
1,265
Python
.py
26
47.461538
142
0.777958
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,330
lists.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/st25r39xx_spi/lists.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2019-2020 Benjamin Vernoux <bvernoux@gmail.com> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2...
6,381
Python
.py
225
25.151111
144
0.69034
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,331
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/st25r39xx_spi/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2019-2020 Benjamin Vernoux <bvernoux@gmail.com> ## Copyright (C) 2022 DreamSourceLab <support@dreamsourcelab.com> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License...
14,594
Python
.py
321
33.626168
106
0.538543
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,332
__init__.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/c2/__init__.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the Li...
1,264
Python
.py
28
44
75
0.767857
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,333
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/c2/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2024 DreamSourceLab <support@dreamsourcelab.com> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version ...
8,926
Python
.py
197
28.639594
147
0.456229
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,334
__init__.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/cfp/__init__.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2018 Elias Oenal <sigrok@eliasoenal.com> ## All rights reserved. ## ## Redistribution and use in source and binary forms, with or without ## modification, are permitted provided that the following conditions are met: ## ## 1. Redistributions of...
1,583
Python
.py
32
48.40625
79
0.78244
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,335
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/cfp/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2018 Elias Oenal <sigrok@eliasoenal.com> ## All rights reserved. ## ## Redistribution and use in source and binary forms, with or without ## modification, are permitted provided that the following conditions are met: ## ## 1. Redistributions of...
4,389
Python
.py
102
36.088235
105
0.624445
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,336
__init__.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/spdif/__init__.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2014 Guenther Wenninger <robin@bitschubbser.org> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version ...
902
Python
.py
23
38.130435
71
0.765108
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,337
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/spdif/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2014 Guenther Wenninger <robin@bitschubbser.org> ## Copyright (C) 2023 DreamSourceLab <support@dreamsourcelab.com> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public Licens...
16,141
Python
.py
380
30.028947
108
0.513961
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,338
__init__.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/can-fd/__init__.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the Li...
1,042
Python
.py
26
38.961538
71
0.766041
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,339
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/can-fd/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2012-2013 Uwe Hermann <uwe@hermann-uwe.de> ## Copyright (C) 2019 Stephan Thiele <stephan.thiele@mailbox.org> ## Copyright (C) 2024 DreamSourceLab <support@dreamsourcelab.com> ## ## This program is free software; you can redistribute it and/or m...
24,828
Python
.py
507
37.491124
127
0.547237
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,340
__init__.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/t55xx/__init__.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2015 Benjamin Larsson <benjamin@southpole.se> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 o...
921
Python
.py
23
38.956522
71
0.766741
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,341
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/t55xx/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2015 Benjamin Larsson <benjamin@southpole.se> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 o...
15,108
Python
.py
299
37.963211
104
0.50805
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,342
__init__.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/adxl345/__init__.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2020 Analog Devices Inc. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## ...
946
Python
.py
24
38.333333
76
0.763043
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,343
lists.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/adxl345/lists.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2020 Analog Devices Inc. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## ...
2,836
Python
.py
90
27.822222
76
0.579562
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,344
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/adxl345/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2020 Analog Devices Inc. ## Copyright (C) 2022 DreamSourceLab <support@dreamsourcelab.com> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the...
17,726
Python
.py
378
35.706349
135
0.545428
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,345
__init__.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/maple_bus/__init__.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2017 Marcus Comstedt <marcus@mc.pp.se> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the L...
900
Python
.py
23
38.043478
71
0.765714
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,346
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/maple_bus/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2017 Marcus Comstedt <marcus@mc.pp.se> ## Copyright (C) 2019 DreamSourceLab <support@dreamsourcelab.com> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as publi...
7,386
Python
.py
198
27.005051
140
0.509697
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,347
__init__.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/guess_bitrate/__init__.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2013 Uwe Hermann <uwe@hermann-uwe.de> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the Li...
1,664
Python
.py
34
47.764706
77
0.791872
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,348
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/guess_bitrate/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2013-2016 Uwe Hermann <uwe@hermann-uwe.de> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of t...
2,604
Python
.py
67
32.671642
97
0.646733
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,349
__init__.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/0-spi/__init__.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the Li...
1,264
Python
.py
28
44
75
0.767857
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,350
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/0-spi/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2011 Gareth McMullin <gareth@blacksphere.co.nz> ## Copyright (C) 2012-2014 Uwe Hermann <uwe@hermann-uwe.de> ## Copyright (C) 2024 DreamSourceLab <support@dreamsourcelab.com> ## ## This program is free software; you can redistribute it and/or mo...
10,775
Python
.py
238
37.693277
122
0.596704
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,351
__init__.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/edid/__init__.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2012 Bert Vermeulen <bert@biot.com> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the Lice...
1,316
Python
.py
30
42.7
79
0.782201
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,352
pd.py
DreamSourceLab_DSView/libsigrokdecode4DSL/decoders/edid/pd.py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2012 Bert Vermeulen <bert@biot.com> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 3 of the Lice...
28,446
Python
.py
610
34.121311
111
0.503132
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,353
mathstack.h
DreamSourceLab_DSView/DSView/pv/data/mathstack.h
/* * This file is part of the PulseView project. * DSView is based on PulseView. * * Copyright (C) 2016 DreamSourceLab <support@dreamsourcelab.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software...
3,635
Python
.tac
122
25.155738
76
0.70644
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,354
decoderstack.h
DreamSourceLab_DSView/DSView/pv/data/decoderstack.h
/* * This file is part of the PulseView project. * DSView is based on PulseView. * * Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk> * Copyright (C) 2014 DreamSourceLab <support@dreamsourcelab.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of th...
5,980
Python
.tac
180
28.905556
105
0.6931
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,355
spectrumstack.cpp
DreamSourceLab_DSView/DSView/pv/data/spectrumstack.cpp
/* * This file is part of the PulseView project. * DSView is based on PulseView. * * Copyright (C) 2016 DreamSourceLab <support@dreamsourcelab.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software ...
5,224
Python
.tac
173
25.83815
109
0.638939
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,356
mathstack.cpp
DreamSourceLab_DSView/DSView/pv/data/mathstack.cpp
/* * This file is part of the PulseView project. * DSView is based on PulseView. * * Copyright (C) 2016 DreamSourceLab <support@dreamsourcelab.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software...
14,531
Python
.tac
453
25.428256
109
0.598857
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,357
decoderstack.cpp
DreamSourceLab_DSView/DSView/pv/data/decoderstack.cpp
/* * This file is part of the PulseView project. * DSView is based on PulseView. * * Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk> * Copyright (C) 2014 DreamSourceLab <support@dreamsourcelab.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of th...
23,545
Python
.tac
747
24.168675
114
0.567935
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,358
spectrumstack.h
DreamSourceLab_DSView/DSView/pv/data/spectrumstack.h
/* * This file is part of the PulseView project. * DSView is based on PulseView. * * Copyright (C) 2016 DreamSourceLab <support@dreamsourcelab.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software...
2,348
Python
.tac
78
26.538462
76
0.720214
DreamSourceLab/DSView
1,112
414
383
GPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
34,359
setup.py
mps-youtube_yewtube/setup.py
#!/usr/bin/python3 """ setup.py for yewtube. https://github.com/mps-youtube/yewtube python setup.py sdist bdist_wheel """ import os import sys if sys.version_info < (3, 6): sys.exit("yewtube requires minimum python 3.6") from setuptools import setup with open("README.md", "r", encoding="utf-8") as fh: lo...
3,550
Python
.py
92
31.326087
119
0.603659
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,360
screen.py
mps-youtube_yewtube/mps_youtube/screen.py
import subprocess import os import sys from . import g, content, config, util mswin = os.name == "nt" def update(fill_blank=True): """ Display content, show message, blank screen.""" clear() if isinstance(g.content, content.PaginatedContent): util.xprint(g.content.getPage(g.current_page)) ...
1,651
Python
.py
51
26.607843
72
0.610373
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,361
c.py
mps-youtube_yewtube/mps_youtube/c.py
""" Module for holding colour code values. """ import os import re import sys if sys.stdout.isatty(): white = "\x1b[%sm" % 0 ul = "\x1b[%sm" * 2 % (2, 4) if not os.getenv('NO_COLOR'): ul += "\x1b[%33m" cols = ["\x1b[%sm" % n for n in range(91, 96)] red, green, yellow, blue, pink = [""]*5...
808
Python
.py
22
33
82
0.584833
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,362
content.py
mps-youtube_yewtube/mps_youtube/content.py
import math import copy import random from . import g, c, config from .util import getxy, fmt_time, uea_pad, yt_datetime, F try: import qrcode import io HAS_QRCODE = True except ImportError: HAS_QRCODE = False # In the future, this could support more advanced features class Content: pass clas...
9,173
Python
.py
218
34.105505
96
0.542767
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,363
description_parser.py
mps-youtube_yewtube/mps_youtube/description_parser.py
""" Module for trying to parse and retrieve song data from descriptions """ import re import random def calculate_certainty(line): """ Determine if a line contains a """ certainty_indexes = [ {'regex': r"(?:\(?(?:\d{0,4}:)?\d{0,2}:\d{0,2}\)?(?: - )?){1,2}", 'weight': 1}, {'regex'...
5,017
Python
.py
127
32.362205
79
0.558896
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,364
util.py
mps-youtube_yewtube/mps_youtube/util.py
import collections import ctypes import json import logging import os import platform import re import subprocess import sys import time import unicodedata import urllib from datetime import datetime, timezone from importlib import import_module from . import c, description_parser, g, terminalsize from .playlist impor...
17,164
Python
.py
453
30.582781
127
0.591942
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,365
config.py
mps-youtube_yewtube/mps_youtube/config.py
import os import re import sys import copy import pickle import json from urllib.request import urlopen from urllib.error import HTTPError from urllib.parse import urlencode try: import pylast has_pylast = True except ImportError: has_pylast = False from . import g, c, paths, util mswin = os.name == "nt...
14,450
Python
.py
337
32.635015
115
0.56439
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,366
streams.py
mps-youtube_yewtube/mps_youtube/streams.py
import time import threading from urllib.request import urlopen from . import pafy from . import g, c, screen, config, util def prune(): """ Keep cache size in check. """ while len(g.pafs) > g.max_cached_streams: g.pafs.popitem(last=False) while len(g.streams) > g.max_cached_streams: g.st...
7,145
Python
.py
156
37.807692
127
0.596254
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,367
contentquery.py
mps-youtube_yewtube/mps_youtube/contentquery.py
""" ContentQuery is an abstraction layer between the the pafy.call_gdata and the listViews. It lets you treat A query as a list of all the results, even though data is only queried when requested. """ from . import util, pafy class ContentQuery: """ A wrapper for pafy.call_gdata. I lets you trea...
1,956
Python
.py
52
29.923077
81
0.621277
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,368
playlists.py
mps-youtube_yewtube/mps_youtube/playlists.py
import os import sys import pickle from . import g, c, screen, util, pafy from .playlist import Playlist, Video def save(): """ Save playlists. Called each time a playlist is saved or deleted. """ for pl in g.userpl: with open(os.path.join(g.PLFOLDER, pl+'.m3u'), 'w') as plf: plf.write('...
5,350
Python
.py
137
29.518248
92
0.573558
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,369
history.py
mps-youtube_yewtube/mps_youtube/history.py
import os import pickle from . import g, c from .util import dbg from .playlist import Playlist from .playlists import read_m3u def add(song): """ Add song to history. """ if not g.userhist.get('history'): g.userhist['history'] = Playlist('history') g.userhist['history'].songs.append(song) ...
1,409
Python
.py
41
27.926829
76
0.614191
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,370
mpris.py
mps-youtube_yewtube/mps_youtube/mpris.py
""" mps-youtube. https://github.com/np1/mps-youtube Copyright (C) 2014 nagev This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ...
19,026
Python
.py
485
27.82268
99
0.556573
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,371
playlist.py
mps-youtube_yewtube/mps_youtube/playlist.py
class Playlist: """ Representation of a playist, has list of songs. """ def __init__(self, name=None, songs=None): """ class members. """ self.name = name self.songs = songs or [] def __len__(self): """ Return number of tracks. """ return len(self.songs) def _...
1,098
Python
.py
32
26.75
73
0.566288
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,372
init.py
mps-youtube_yewtube/mps_youtube/init.py
import argparse import logging import multiprocessing import os import platform import re import sys import tempfile try: # pylint: disable=F0401 import colorama has_colorama = True except ImportError: has_colorama = False try: import readline readline.set_history_length(2000) has_readlin...
9,175
Python
.py
235
32.621277
195
0.628919
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,373
cache.py
mps-youtube_yewtube/mps_youtube/cache.py
import os import pickle from . import g, c, streams from .util import dbg # Updated every time incompatible changes are made to cache format, # So old cache can be dropped CACHE_VERSION = 1 def load(): """ Import cache file. """ if os.path.isfile(g.CACHEFILE): try: with open(g.CACHEFI...
1,381
Python
.py
39
26.076923
79
0.560755
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,374
__init__.py
mps-youtube_yewtube/mps_youtube/__init__.py
from pip._vendor import pkg_resources __version__ = next((p.version for p in pkg_resources.working_set if p.project_name.lower() == 'yewtube'), "unable to determine") __author__ = "iamtalhaasghar" __license__ = "GPLv3" __url__ = "https://github.com/mps-youtube/yewtube"
272
Python
.py
5
53
128
0.70566
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,375
helptext.py
mps-youtube_yewtube/mps_youtube/helptext.py
""" Holds all help text """ import pathlib import re import socket from urllib.error import HTTPError, URLError from urllib.request import urlopen from . import c, g from .util import F, get_near_name def helptext(): """ Return a list of help categories, with their contents. """ return [ ("basic...
19,123
Python
.py
342
48.061404
138
0.634807
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,376
player.py
mps-youtube_yewtube/mps_youtube/player.py
import logging import math import os import random import shlex import socket import subprocess import sys import time from abc import ABCMeta, abstractmethod from urllib.error import HTTPError, URLError from . import c, config, content, g, history, screen, streams, util from .commands import lastfm from .util import ...
13,172
Python
.py
302
32.268212
132
0.556486
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,377
paths.py
mps-youtube_yewtube/mps_youtube/paths.py
import os mswin = os.name == "nt" def get_default_ddir(): """ Get system default Download directory, append mps dir. """ user_home = os.path.expanduser("~") join, exists = os.path.join, os.path.exists if mswin: return join(user_home, "Downloads", "yewtube") USER_DIRS = join(user_home, "...
1,563
Python
.py
37
35.432432
78
0.618447
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,378
pafy.py
mps-youtube_yewtube/mps_youtube/pafy.py
import json import os, glob import random import re from urllib.parse import parse_qs, urlparse import requests import yt_dlp from youtubesearchpython import VideosSearch, ChannelsSearch, PlaylistsSearch, Suggestions, Playlist, playlist_from_channel_id, Comments, Video, Channel, ChannelSearch class MyLogger: de...
7,641
Python
.py
194
32.881443
167
0.662296
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,379
terminalsize.py
mps-youtube_yewtube/mps_youtube/terminalsize.py
# https://gist.github.com/jtriley/1108174 """ Terminal Size. """ import os import sys import shlex import shutil import struct import platform import subprocess def get_terminal_size(): """ getTerminalSize(). - get width and height of console - works on linux,os x,windows,cygwin(windows) originally...
2,867
Python
.py
87
24.988506
87
0.587786
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,380
main.py
mps-youtube_yewtube/mps_youtube/main.py
""" mps-youtube. https://github.com/np1/mps-youtube Copyright (C) 2014, 2015 np1 and contributors This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option...
5,043
Python
.py
132
30.530303
78
0.628237
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,381
g.py
mps-youtube_yewtube/mps_youtube/g.py
""" Module for holding globals that are needed throught mps-youtube. """ import collections import os import sys from . import c, paths from .playlist import Playlist volume = None transcoder_path = "auto" delete_orig = True encoders = [] muxapp = False meta = {} artist = "" # Mostly used for scrobbling purposes alb...
6,889
Python
.py
180
33.105556
140
0.572004
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,382
test_mpris.py
mps-youtube_yewtube/mps_youtube/test/test_mpris.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from unittest.mock import MagicMock import dbus import pytest from mps_youtube import mpris def test_mprsi2controller_init(): assert mpris.Mpris2Controller() def test_mpris2mediaplayer_init(): bus = MagicMock() obj = mpris.Mpris2MediaPlayer(bus) assert...
3,511
Python
.py
102
23.833333
88
0.519859
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,383
test_main.py
mps-youtube_yewtube/mps_youtube/test/test_main.py
import unittest import pytest import mps_youtube.main as mps class TestMain(unittest.TestCase): def test_fmt_time(self): pytest.skip('main not have tested attribute') self.assertEqual(mps.fmt_time(0), '00:00') self.assertEqual(mps.fmt_time(59), '00:59') self.assertEqual(mps.fmt_t...
1,072
Python
.py
24
37.583333
58
0.650672
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,384
test_players_mplayer.py
mps-youtube_yewtube/mps_youtube/test/test_players_mplayer.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from unittest import mock import pytest from mps_youtube.players import mplayer @pytest.mark.parametrize( "exename, exp_err", [ ("", (OSError, PermissionError)), ("mplayersomething", FileNotFoundError), ], ) def test_get_mplayer_version_no_mp...
1,255
Python
.py
33
32.545455
88
0.66804
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,385
test_util.py
mps-youtube_yewtube/mps_youtube/test/test_util.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import pytest import mps_youtube.util as util @pytest.mark.parametrize( "num,t,exp_res", ( (0, "", ""), (0, None, ""), ), ) def test_uea_pad(num, t, exp_res): res = util.uea_pad(num, t) assert res == exp_res
293
Python
.py
14
17.142857
34
0.561594
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,386
play.py
mps-youtube_yewtube/mps_youtube/commands/play.py
import random import sys import typing as T import webbrowser from urllib.error import HTTPError, URLError from .. import c, config, content, g, streams, util from . import RS, WORD, command from .search import related, yt_url from .songlist import plist @command(r'play all', 'play all') def play_loaded(): g.mode...
5,519
Python
.py
142
30.640845
86
0.582131
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,387
download.py
mps-youtube_yewtube/mps_youtube/commands/download.py
import os import re import sys import time import shlex import random import subprocess from urllib.request import urlopen from urllib.error import HTTPError from .. import g, c, screen, streams, content, config, util, pafy from . import command, PL from .search import yt_url, user_pls from .songlist import dump, plis...
17,514
Python
.py
446
31.955157
109
0.569422
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,388
config.py
mps-youtube_yewtube/mps_youtube/commands/config.py
from .. import g, c, config, util from . import command @command(r'set|showconfig', 'set', 'showconfig') def showconfig(): """ Dump config data. """ width = util.getxy().width longest_key = 17 longest_val = 0 has_temps = False for setting in config: val = config[setting] longe...
3,110
Python
.py
76
33.723684
99
0.568673
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,389
spotify_playlist.py
mps-youtube_yewtube/mps_youtube/commands/spotify_playlist.py
import re import time import difflib try: # pylint: disable=F0401 import spotipy import spotipy.oauth2 as oauth2 has_spotipy = True except ImportError: has_spotipy = False from .. import c, g, screen, __version__, __url__, content, config, util from . import command from .songlist import paginat...
9,324
Python
.py
225
31.484444
109
0.563787
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,390
search.py
mps-youtube_yewtube/mps_youtube/commands/search.py
import base64 import json import logging import math import re import typing as T from argparse import ArgumentParser from datetime import datetime, timedelta from urllib import parse from .. import pafy parser = ArgumentParser() parser.add_argument('-d', '--duration', choices=('any', 'short', 'medium', 'long')) pars...
19,995
Python
.py
482
34.176349
139
0.595689
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,391
lastfm.py
mps-youtube_yewtube/mps_youtube/commands/lastfm.py
import time import datetime try: import pylast has_pylast = True except ImportError: has_pylast = False from .. import g, util, config from . import command @command(r'lastfm_connect', 'lastfm_connect') def init_network(verbose=True): """ Initialize the global pylast network variable """ if not h...
2,192
Python
.py
53
33
85
0.64946
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,392
generate_playlist.py
mps-youtube_yewtube/mps_youtube/commands/generate_playlist.py
""" Playlist Generation """ from os import path from random import choice import string from .. import content, g, playlists, screen, util, listview from ..playlist import Playlist from . import command, search, album_search @command(r'mkp\s*(.{1,100})', 'mkp') def generate_playlist(sourcefile): """Generate ...
3,984
Python
.py
106
30.896226
69
0.631033
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,393
__init__.py
mps-youtube_yewtube/mps_youtube/commands/__init__.py
import collections import re from .. import g from ..main import completer Command = collections.namedtuple('Command', 'regex category usage function') # input types WORD = r'[^\W\d][-\w\s]{,100}' RS = r'(?:(?:repeat|shuffle|-[avfw])\s*)' PL = r'\S*?((?:RD|PL|LL|UU|FL|OL)[-_0-9a-zA-Z]+)\s*' ## @command decorator ##...
1,259
Python
.py
32
36.65625
92
0.724816
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,394
local_playlist.py
mps-youtube_yewtube/mps_youtube/commands/local_playlist.py
import re from .. import g, c, playlists, content, util from ..playlist import Playlist, Video from . import command, WORD from .songlist import paginatesongs, songlist_rm_add from ..util import parse_video_length @command(r'rmp\s*(\d+|%s)' % WORD, 'rmp') def playlist_remove(name): """ Delete a saved playlist by...
6,435
Python
.py
150
35.266667
166
0.594742
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,395
album_search.py
mps-youtube_yewtube/mps_youtube/commands/album_search.py
import re import time import difflib from urllib.request import build_opener from urllib.error import HTTPError, URLError from urllib.parse import urlencode from xml.etree import ElementTree as ET from .. import c, g, screen, __version__, __url__, config, util, pafy from .. import content as content_py from . import ...
9,719
Python
.py
227
34.991189
96
0.59656
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,396
songlist.py
mps-youtube_yewtube/mps_youtube/commands/songlist.py
import math import random from .. import g, c, screen, streams, content, util, pafy from ..playlist import Video from . import command, PL def paginatesongs(func, page=0, splash=True, dumps=False, length=None, msg=None, failmsg=None, loadmsg=None): """ A utility function for handling lists of songs,...
7,913
Python
.py
197
33.055838
105
0.612671
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,397
misc.py
mps-youtube_yewtube/mps_youtube/commands/misc.py
import re from datetime import datetime, timedelta import socket import traceback from urllib.request import urlopen from urllib.error import HTTPError, URLError from .. import player try: # pylint: disable=F0401 import pyperclip has_pyperclip = True except ImportError: has_pyperclip = False try: ...
11,991
Python
.py
280
35.385714
121
0.567182
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,398
vlc.py
mps-youtube_yewtube/mps_youtube/players/vlc.py
import os import subprocess from .. import config, g, util from ..player import CmdPlayer class vlc(CmdPlayer): def __init__(self, player): self.player = player def _generate_real_playerargs(self): args = config.PLAYERARGS.get.strip().split() pd = g.playerargs_defaults['vlc'] ...
1,561
Python
.py
38
32.578947
128
0.600662
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)
34,399
mplayer.py
mps-youtube_yewtube/mps_youtube/players/mplayer.py
import os import re import subprocess import sys import tempfile import typing as T from .. import c, config, g, paths, screen, util from ..player import CmdPlayer from ..util import not_utf8_environment mswin = os.name == "nt" class mplayer(CmdPlayer): def __init__(self, player): self.player = player ...
8,608
Python
.py
196
32.438776
95
0.537448
mps-youtube/yewtube
8,070
645
212
GPL-3.0
9/5/2024, 5:15:03 PM (Europe/Amsterdam)