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
6,600
shinken_contactgroup_nomembers.cfg
shinken-solutions_shinken/test/etc/shinken_contactgroup_nomembers.cfg
accept_passive_host_checks=1 accept_passive_service_checks=1 additional_freshness_latency=15 admin_email=shinken@localhost admin_pager=shinken@localhost auto_reschedule_checks=0 auto_rescheduling_interval=30 auto_rescheduling_window=180 cached_host_check_horizon=15 cached_service_check_horizon=15 cfg_file=contactgroup_...
3,367
Python
.tac
118
27.533898
45
0.857187
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,601
shinken_contactgroups_plus_inheritance.cfg
shinken-solutions_shinken/test/etc/shinken_contactgroups_plus_inheritance.cfg
accept_passive_host_checks=1 accept_passive_service_checks=1 additional_freshness_latency=15 admin_email=shinken@localhost admin_pager=shinken@localhost auto_reschedule_checks=0 auto_rescheduling_interval=30 auto_rescheduling_window=180 cached_host_check_horizon=15 cached_service_check_horizon=15 cfg_file=contactgroups...
3,486
Python
.tac
119
28.294118
54
0.858331
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,602
contacts.cfg
shinken-solutions_shinken/test/etc/objects_and_notifways/contacts.cfg
define contactgroup{ contactgroup_name test_contact alias test_contacts_alias members test_contact } define contact{ contact_name test_contact alias test_contact_alias service_notification_period 24x7 h...
1,782
Python
.tac
47
33.042553
62
0.621089
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,603
contacts.cfg
shinken-solutions_shinken/test/etc/dependencies/contacts.cfg
define contactgroup{ contactgroup_name test_contact alias test_contacts_alias members test_contact } define contact{ contact_name test_contact alias test_contact_alias service_notification_period 24x7 ho...
593
Python
.tac
16
33.0625
54
0.59792
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,604
contacts.cfg
shinken-solutions_shinken/test/etc/problem_impact/contacts.cfg
define contactgroup{ contactgroup_name test_contact alias test_contacts_alias members test_contact } define contact{ contact_name test_contact alias test_contact_alias service_notification_period 24x7 h...
619
Python
.tac
17
32.294118
54
0.595674
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,605
contacts.cfg
shinken-solutions_shinken/test/etc/escalations/contacts.cfg
define contactgroup{ contactgroup_name test_contact alias test_contacts_alias members test_contact } define contact{ contact_name test_contact alias test_contact_alias service_notification_period 24x7 h...
4,919
Python
.tac
112
38.642857
99
0.587633
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,606
contacts.cfg
shinken-solutions_shinken/test/etc/linkify_template/contacts.cfg
define contactgroup{ contactgroup_name test_contact alias test_contacts_alias members test_contact } define contact{ contact_name test_contact alias test_contact_alias service_notification_period 24x7 h...
1,141
Python
.tac
30
33.766667
54
0.587015
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,607
contacts.cfg
shinken-solutions_shinken/test/etc/livestatus_authuser/contacts.cfg
define contact { name generic-contact service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r,f host_notification_options d,u,r,f,s service_notification_commands notify-service host_notification_commands notify-host...
1,865
Python
.tac
66
25.939394
48
0.485426
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,608
contactgroups.cfg
shinken-solutions_shinken/test/etc/livestatus_authuser/contactgroups.cfg
define contactgroup { contactgroup_name oradba members oradba1,oradba2 } define contactgroup { contactgroup_name mydba members mydba1,mydba2 } define contactgroup { contactgroup_name web members web...
656
Python
.tac
24
25.083333
48
0.535144
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,609
contacts.cfg
shinken-solutions_shinken/test/etc/exclude_include_services/contacts.cfg
define contactgroup{ contactgroup_name admins alias admins_alias members admin } define contact{ contact_name admin alias admin_alias service_notification_period 24x7 host_notifi...
630
Python
.tac
17
32.941176
52
0.552288
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,610
contacts.cfg
shinken-solutions_shinken/test/etc/standard/contacts.cfg
define contactgroup{ contactgroup_name test_contact alias test_contacts_alias members test_contact } define contact{ contact_name test_contact alias test_contact_alias service_notification_period 24x7 h...
697
Python
.tac
18
34.555556
56
0.587021
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,611
contacts.cfg
shinken-solutions_shinken/test/etc/notif_macros/contacts.cfg
define contactgroup{ contactgroup_name test_contact alias test_contacts_alias members test_contact } define contact{ contact_name test_contact alias test_contact_alias service_notification_period 24x7 h...
679
Python
.tac
18
33.555556
54
0.610606
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,612
contacts.cfg
shinken-solutions_shinken/test/etc/contactgroup_nomembers/contacts.cfg
define contactgroup{ contactgroup_name test_contact alias test_contacts_alias members test_contact } define contact{ contact_name test_contact alias test_contact_alias service_notification_period 24x7 h...
772
Python
.tac
21
32.761905
56
0.601604
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,613
contacts.cfg
shinken-solutions_shinken/test/etc/uknown_event_handler/contacts.cfg
define contactgroup{ contactgroup_name test_contact alias test_contacts_alias members test_contact } define contact{ contact_name test_contact alias test_contact_alias service_notification_period 24x7 h...
640
Python
.tac
17
33.529412
54
0.590032
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,614
contacts.cfg
shinken-solutions_shinken/test/etc/core/contacts.cfg
# This is a default admin # CHANGE ITS PASSWORD! define contact{ use generic-contact contact_name admin email shinken@localhost pager 0600000000 ; contact phone number password admin is_admin 1 } # This is a default guest user # CHANGE ITS PA...
524
Python
.tac
19
24.105263
55
0.603586
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,615
contactgroups.cfg
shinken-solutions_shinken/test/etc/core/contactgroups.cfg
# Create some contact groups define contactgroup{ contactgroup_name admins alias admins members admin } define contactgroup{ contactgroup_name users alias users members admin }
260
Python
.tac
11
20.181818
30
0.597561
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,616
contacts.cfg
shinken-solutions_shinken/test/etc/property_override/contacts.cfg
define contactgroup{ contactgroup_name admins alias admins_alias members admin } define contact{ contact_name admin alias admin_alias service_notification_period 24x7 host_notifi...
630
Python
.tac
17
32.941176
52
0.552288
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,617
contacts.cfg
shinken-solutions_shinken/test/etc/contactgroups_plus_inheritance/contacts.cfg
define contactgroup{ contactgroup_name test_contact_1 alias test_contacts_alias_1 members test_contact_1 } define contactgroup{ contactgroup_name test_contact_2 alias test_contacts_alias_2 members test_contact_2 } ...
1,305
Python
.tac
34
34.117647
56
0.588608
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,618
contacts.cfg
shinken-solutions_shinken/test/etc/notif_way/contacts.cfg
define contactgroup{ contactgroup_name test_contact alias test_contacts_alias members test_contact } define contactgroup{ contactgroup_name test_contact_template alias test_contacts_template members test_contact_tem...
3,798
Python
.tac
96
34.46875
75
0.602005
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,619
contacts.cfg
shinken-solutions_shinken/test/etc/notif_too_much/contacts.cfg
define contactgroup{ contactgroup_name test_contact alias test_contacts_alias members test_contact } define contact{ contact_name test_contact alias test_contact_alias email nobody@loc...
1,118
Python
.tac
29
32.965517
54
0.613678
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,620
contactdowntime.py
shinken-solutions_shinken/shinken/contactdowntime.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2009-2014: # Gabes Jean, naparuba@gmail.com # Gerhard Lausser, Gerhard.Lausser@consol.de # Gregory Starck, g.starck@gmail.com # Hartmut Goebel, h.goebel@goebel-consult.de # # This file is part of Shinken. # # Shinken is free software: you c...
4,248
Python
.tac
106
33.556604
82
0.63903
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,621
contact.py
shinken-solutions_shinken/shinken/objects/contact.py
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (C) 2009-2014: # Gabes Jean, naparuba@gmail.com # Gerhard Lausser, Gerhard.Lausser@consol.de # Gregory Starck, g.starck@gmail.com # Hartmut Goebel, h.goebel@goebel-consult.de # # This file is part of Shinken. # # Shinken is free software: you can redis...
13,347
Python
.tac
261
41.321839
97
0.6312
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,622
contactgroup.py
shinken-solutions_shinken/shinken/objects/contactgroup.py
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (C) 2009-2014: # Gabes Jean, naparuba@gmail.com # Gerhard Lausser, Gerhard.Lausser@consol.de # Gregory Starck, g.starck@gmail.com # Hartmut Goebel, h.goebel@goebel-consult.de # # This file is part of Shinken. # # Shinken is free software: you can redis...
6,188
Python
.tac
146
33.472603
98
0.616933
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,623
generic-contact.cfg
shinken-solutions_shinken/etc/templates/generic-contact.cfg
# Contact definition # By default the contact will ask notification by mails define contact{ name generic-contact host_notifications_enabled 1 service_notifications_enabled 1 email shinken@localhost can_submit_commands 1 notificationways email register ...
341
Python
.tac
11
28
55
0.651515
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,624
contactgroup.rst
shinken-solutions_shinken/doc/source/08_configobjects/contactgroup.rst
.. _configobjects/contactgroup: ======================== Contact Group Definition ======================== Description ============ A contact group definition is used to group one or more :ref:`contacts <configobjects/contact>` together for the purpose of sending out alert/recovery :ref:`notifications <thebasics/n...
1,881
Python
.tac
36
47.305556
357
0.642036
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,625
contact.rst
shinken-solutions_shinken/doc/source/08_configobjects/contact.rst
.. _configobjects/contact: =================== Contact Definition =================== Description ============ A contact definition is used to identify someone who should be contacted in the event of a problem on your network. The different arguments to a contact definition are described below. Definition Format ...
9,889
Python
.tac
122
77.614754
489
0.727076
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,626
contactgroups.cfg
shinken-solutions_shinken/for_fedora/etc/contactgroups.cfg
# Create some contact groups define contactgroup{ contactgroup_name admins alias admins members nagiosadmin }
119
Python
.tac
6
17.333333
28
0.828829
shinken-solutions/shinken
1,133
337
226
AGPL-3.0
9/5/2024, 5:09:53 PM (Europe/Amsterdam)
6,627
dnsrecon.py
darkoperator_dnsrecon/dnsrecon.py
#!/usr/bin/env python3 # Note: This script runs dnsrecon from dnsrecon import __main__ if __name__ == '__main__': __main__.main()
136
Python
.py
5
25
33
0.635659
darkoperator/dnsrecon
2,582
529
13
GPL-2.0
9/5/2024, 5:10:01 PM (Europe/Amsterdam)
6,628
parser.py
darkoperator_dnsrecon/tools/parser.py
#!/usr/bin/env python3 # DNSRecon Data Parser # # Copyright (C) 2012 Carlos Perez # # 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; Applies version 2 of the License. # # This...
13,003
Python
.py
290
32.451724
127
0.513311
darkoperator/dnsrecon
2,582
529
13
GPL-2.0
9/5/2024, 5:10:01 PM (Europe/Amsterdam)
6,629
tld_downloader.py
darkoperator_dnsrecon/tools/tld_downloader.py
#!/usr/bin/python3 # Read the TLD data from https://tld-list.com/df/tld-list-details.json import argparse import json def read_tld_data(file_path): with open(file_path) as f: return json.load(f) def filter_and_split_tlds(tld_data, tld_type): sponsored = [] unsponsored = [] for k, v in tld_...
1,576
Python
.py
36
37.444444
105
0.660761
darkoperator/dnsrecon
2,582
529
13
GPL-2.0
9/5/2024, 5:10:01 PM (Europe/Amsterdam)
6,630
test_dnshelper.py
darkoperator_dnsrecon/tests/test_dnshelper.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Unit test for DNSRecon's dnshelper library # Author: Filippo Lauria (@filippolauria) # # Copyright (C) 2023 Carlos Perez # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as pub...
2,908
Python
.py
72
33.819444
84
0.639745
darkoperator/dnsrecon
2,582
529
13
GPL-2.0
9/5/2024, 5:10:01 PM (Europe/Amsterdam)
6,631
test_dnsrecon.py
darkoperator_dnsrecon/tests/test_dnsrecon.py
from unittest.mock import patch, MagicMock from dnsrecon import cli def test_check_wildcard(): with patch('dnsrecon.lib.dnshelper.DnsHelper') as mock_dns_helper: mock_instance = mock_dns_helper.return_value mock_instance.check_wildcard.return_value = (True, ["192.0.2.1"]) result = cli.chec...
3,207
Python
.py
56
49.571429
114
0.676339
darkoperator/dnsrecon
2,582
529
13
GPL-2.0
9/5/2024, 5:10:01 PM (Europe/Amsterdam)
6,632
cli.py
darkoperator_dnsrecon/dnsrecon/cli.py
#!/usr/bin/env python3 # DNSRecon # # Copyright (C) 2023 Carlos Perez # # 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; Applies version 2 of the License. # # This program is di...
72,440
Python
.py
1,706
31
159
0.553845
darkoperator/dnsrecon
2,582
529
13
GPL-2.0
9/5/2024, 5:10:01 PM (Europe/Amsterdam)
6,633
yandexenum.py
darkoperator_dnsrecon/dnsrecon/lib/yandexenum.py
#!/usr/bin/env python3 # Copyright (C) 2020 Cristiano Maruti (twitter: @cmaruti) # # 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; Applies version 2 of the License. # # This prog...
2,215
Python
.py
54
35.796296
95
0.664026
darkoperator/dnsrecon
2,582
529
13
GPL-2.0
9/5/2024, 5:10:01 PM (Europe/Amsterdam)
6,634
crtenum.py
darkoperator_dnsrecon/dnsrecon/lib/crtenum.py
# Copyright (C) 2010 Carlos Perez # # 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; Applies version 2 of the License. # # This program is distributed in the hope that it will be ...
2,072
Python
.py
53
33.830189
134
0.667496
darkoperator/dnsrecon
2,582
529
13
GPL-2.0
9/5/2024, 5:10:01 PM (Europe/Amsterdam)
6,635
dnshelper.py
darkoperator_dnsrecon/dnsrecon/lib/dnshelper.py
#!/usr/bin/env python3 # Copyright (C) 2020 Carlos Perez # # 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; Applies version 2 of the License. # # This program is distributed in t...
38,944
Python
.py
833
26.409364
150
0.425977
darkoperator/dnsrecon
2,582
529
13
GPL-2.0
9/5/2024, 5:10:01 PM (Europe/Amsterdam)
6,636
bingenum.py
darkoperator_dnsrecon/dnsrecon/lib/bingenum.py
# Copyright (C) 2017 Cristiano Maruti (twitter: @cmaruti) # # 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; Applies version 2 of the License. # # This program is distributed in th...
2,251
Python
.py
66
28.19697
151
0.620341
darkoperator/dnsrecon
2,582
529
13
GPL-2.0
9/5/2024, 5:10:01 PM (Europe/Amsterdam)
6,637
whois.py
darkoperator_dnsrecon/dnsrecon/lib/whois.py
# Copyright (C) 2010 Carlos Perez # # 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; Applies version 2 of the License. # # This program is distributed in the hope that it will be ...
3,006
Python
.py
80
31.625
116
0.626804
darkoperator/dnsrecon
2,582
529
13
GPL-2.0
9/5/2024, 5:10:01 PM (Europe/Amsterdam)
6,638
tlds.py
darkoperator_dnsrecon/dnsrecon/lib/tlds.py
class TLDS: @staticmethod def generic_tlds(): gtld_extensions = [ 'aaa', 'aarp', 'abarth', 'abb', 'abbott', 'abbvie', 'abc', 'able', 'abogado', 'abudhabi', 'academy', ...
52,077
Python
.py
2,447
8.320392
35
0.262352
darkoperator/dnsrecon
2,582
529
13
GPL-2.0
9/5/2024, 5:10:01 PM (Europe/Amsterdam)
6,639
websockify.py
novnc_websockify/websockify.py
#!/usr/bin/env sh set -e cd "$(dirname "$0")" exec python3 -m websockify "$@"
78
Python
.py
4
18.5
31
0.635135
novnc/websockify
3,872
766
31
LGPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,640
setup.py
novnc_websockify/setup.py
from setuptools import setup, find_packages version = '0.12.0' name = 'websockify' long_description = open("README.md").read() + "\n" + \ open("CHANGES.txt").read() + "\n" setup(name=name, version=version, description="Websockify.", long_description=long_description, long_description_conte...
1,401
Python
.py
41
26.463415
69
0.585114
novnc/websockify
3,872
766
31
LGPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,641
test_websocket.py
novnc_websockify/tests/test_websocket.py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright(c)2013 NTT corp. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licen...
8,440
Python
.py
179
35.374302
99
0.574259
novnc/websockify
3,872
766
31
LGPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,642
echo_client.py
novnc_websockify/tests/echo_client.py
#!/usr/bin/env python import os import sys import optparse import select sys.path.insert(0,os.path.join(os.path.dirname(__file__), "..")) from websockify.websocket import WebSocket, \ WebSocketWantReadError, WebSocketWantWriteError parser = optparse.OptionParser(usage="%prog URL") (opts, args) = parser.parse_arg...
1,816
Python
.py
57
24.684211
64
0.597023
novnc/websockify
3,872
766
31
LGPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,643
test_websocketserver.py
novnc_websockify/tests/test_websocketserver.py
""" Unit tests for websocketserver """ import unittest from unittest.mock import patch, MagicMock from websockify.websocketserver import HttpWebSocket class HttpWebSocketTest(unittest.TestCase): @patch("websockify.websocketserver.WebSocket.__init__", autospec=True) def test_constructor(self, websock): ...
1,902
Python
.py
50
30.26
85
0.6503
novnc/websockify
3,872
766
31
LGPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,644
test_websocketproxy.py
novnc_websockify/tests/test_websocketproxy.py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright(c) 2015 Red Hat, Inc All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/l...
4,339
Python
.py
101
35.405941
88
0.670152
novnc/websockify
3,872
766
31
LGPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,645
test_websockifyserver.py
novnc_websockify/tests/test_websockifyserver.py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright(c)2013 NTT corp. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licen...
15,021
Python
.py
318
36.41195
93
0.617331
novnc/websockify
3,872
766
31
LGPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,646
test_auth_plugins.py
novnc_websockify/tests/test_auth_plugins.py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 """ Unit tests for Authentication plugins""" from websockify.auth_plugins import BasicHTTPAuth, AuthenticationError import unittest class BasicHTTPAuthTestCase(unittest.TestCase): def setUp(self): self.plugin = BasicHTTPAuth('Aladdin:open sesame') def te...
1,061
Python
.py
19
49.526316
102
0.739593
novnc/websockify
3,872
766
31
LGPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,647
latency.py
novnc_websockify/tests/latency.py
#!/usr/bin/env python ''' A WebSocket server that echos back whatever it receives from the client. Copyright 2010 Joel Martin Licensed under LGPL version 3 (see docs/LICENSE.LGPL-3) You can make a cert/key with openssl using: openssl req -new -x509 -days 365 -nodes -out self.pem -keyout self.pem as taken from http://...
2,456
Python
.py
60
32.866667
82
0.629832
novnc/websockify
3,872
766
31
LGPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,648
echo.py
novnc_websockify/tests/echo.py
#!/usr/bin/env python ''' A WebSocket server that echos back whatever it receives from the client. Copyright 2010 Joel Martin Licensed under LGPL version 3 (see docs/LICENSE.LGPL-3) You can make a cert/key with openssl using: openssl req -new -x509 -days 365 -nodes -out self.pem -keyout self.pem as taken from http://...
2,456
Python
.py
60
32.866667
82
0.629832
novnc/websockify
3,872
766
31
LGPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,649
test_token_plugins.py
novnc_websockify/tests/test_token_plugins.py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 """ Unit tests for Token plugins""" import sys import unittest from unittest.mock import patch, mock_open, MagicMock from jwcrypto import jwt, jwk from websockify.token_plugins import parse_source_args, ReadOnlyTokenFile, JWTTokenApi, TokenRedis class ParseSourceArguments...
17,297
Python
.py
355
39.88169
118
0.63309
novnc/websockify
3,872
766
31
LGPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,650
load.py
novnc_websockify/tests/load.py
#!/usr/bin/env python ''' WebSocket server-side load test program. Sends and receives traffic that has a random payload (length and content) that is checksummed and given a sequence number. Any errors are reported and counted. ''' import sys, os, select, random, time, optparse, logging sys.path.insert(0,os.path.join(...
5,114
Python
.py
129
28.604651
93
0.54448
novnc/websockify
3,872
766
31
LGPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,651
sysloghandler.py
novnc_websockify/websockify/sysloghandler.py
import logging.handlers as handlers, socket, os, time class WebsockifySysLogHandler(handlers.SysLogHandler): """ A handler class that sends proper Syslog-formatted messages, as defined by RFC 5424. """ _legacy_head_fmt = '<{pri}>{ident}[{pid}]: ' _rfc5424_head_fmt = '<{pri}>1 {timestamp} {hos...
3,928
Python
.py
92
30.369565
79
0.553018
novnc/websockify
3,872
766
31
LGPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,652
websocketserver.py
novnc_websockify/websockify/websocketserver.py
#!/usr/bin/env python ''' Python WebSocket server base Copyright 2011 Joel Martin Copyright 2016-2018 Pierre Ossman Licensed under LGPL version 3 (see docs/LICENSE.LGPL-3) ''' import sys from http.server import BaseHTTPRequestHandler, HTTPServer from websockify.websocket import WebSocket, WebSocketWantReadError, Web...
3,406
Python
.py
83
33.373494
91
0.68674
novnc/websockify
3,872
766
31
LGPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,653
websockifyserver.py
novnc_websockify/websockify/websockifyserver.py
#!/usr/bin/env python ''' Python WebSocket server base with support for "wss://" encryption. Copyright 2011 Joel Martin Copyright 2016 Pierre Ossman Licensed under LGPL version 3 (see docs/LICENSE.LGPL-3) You can make a cert/key with openssl using: openssl req -new -x509 -days 365 -nodes -out self.pem -keyout self.pe...
32,528
Python
.py
735
30.961905
118
0.541388
novnc/websockify
3,872
766
31
LGPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,654
websocketproxy.py
novnc_websockify/websockify/websocketproxy.py
#!/usr/bin/env python ''' A WebSocket to TCP socket proxy with support for "wss://" encryption. Copyright 2011 Joel Martin Licensed under LGPL version 3 (see docs/LICENSE.LGPL-3) You can make a cert/key with openssl using: openssl req -new -x509 -days 365 -nodes -out self.pem -keyout self.pem as taken from http://doc...
31,002
Python
.py
660
35.237879
117
0.581882
novnc/websockify
3,872
766
31
LGPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,655
token_plugins.py
novnc_websockify/websockify/token_plugins.py
import logging import os import sys import time import re import json logger = logging.getLogger(__name__) _SOURCE_SPLIT_REGEX = re.compile( r'(?<=^)"([^"]+)"(?=:|$)' r'|(?<=:)"([^"]+)"(?=:|$)' r'|(?<=^)([^:]*)(?=:|$)' r'|(?<=:)([^:]*)(?=:|$)', ) def parse_source_args(src): """It works like src....
11,883
Python
.py
294
28.622449
125
0.538635
novnc/websockify
3,872
766
31
LGPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,656
websocket.py
novnc_websockify/websockify/websocket.py
#!/usr/bin/env python ''' Python WebSocket library Copyright 2011 Joel Martin Copyright 2016 Pierre Ossman Licensed under LGPL version 3 (see docs/LICENSE.LGPL-3) Supports following protocol versions: - http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-07 - http://tools.ietf.org/html/draft-ietf-...
29,428
Python
.py
687
31.069869
109
0.572639
novnc/websockify
3,872
766
31
LGPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,657
auth_plugins.py
novnc_websockify/websockify/auth_plugins.py
class BasePlugin(): def __init__(self, src=None): self.source = src def authenticate(self, headers, target_host, target_port): pass class AuthenticationError(Exception): def __init__(self, log_msg=None, response_code=403, response_headers={}, response_msg=None): self.code = respon...
3,265
Python
.py
77
32.116883
117
0.59785
novnc/websockify
3,872
766
31
LGPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,658
setup.py
aaronsw_html2text/setup.py
import sys from setuptools import setup, find_packages setup( name = "html2text", version = "3.200.3", description = "Turn HTML into equivalent Markdown-structured text.", author = "Aaron Swartz", author_email = "me@aaronsw.com", url='http://www.aaronsw.com/2002/html2text/', classifiers=[ '...
1,224
Python
.py
35
29.285714
71
0.627104
aaronsw/html2text
2,607
412
67
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,659
html2text.py
aaronsw_html2text/html2text.py
#!/usr/bin/env python """html2text: Turn HTML into equivalent Markdown-structured text.""" __version__ = "3.200.3" __author__ = "Aaron Swartz (me@aaronsw.com)" __copyright__ = "(C) 2004-2008 Aaron Swartz. GNU GPL 3." __contributors__ = ["Martin 'Joey' Schulze", "Ricardo Reyes", "Kevin Jay North"] # TODO: # Support d...
32,121
Python
.py
783
29.90166
129
0.53222
aaronsw/html2text
2,607
412
67
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,660
run_tests.py
aaronsw_html2text/test/run_tests.py
import codecs import glob import os import re import subprocess import sys sys.path.insert(0, '..') import html2text def test_module(fn, google_doc=False, **kwargs): print_conditions('module', google_doc=google_doc, **kwargs) h = html2text.HTML2Text() if google_doc: h.google_doc = True ...
3,292
Python
.py
92
28.869565
111
0.589015
aaronsw/html2text
2,607
412
67
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,661
pyglossary.pyw
ilius_pyglossary/pyglossary.pyw
#!/usr/bin/env python3 import sys from os.path import dirname sys.path.insert(0, dirname(__file__)) from pyglossary.ui.main import main main()
147
Python
.py
6
22.833333
37
0.781022
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,662
setup.py
ilius_pyglossary/setup.py
#!/usr/bin/env python3 import glob import logging import os import re from os.path import dirname, exists, isdir, join from setuptools import setup from setuptools.command.install import install from pyglossary.ui.version import getVersion log = logging.getLogger("root") relRootDir = "share/pyglossary" class my_...
3,087
Python
.py
129
21.217054
70
0.672554
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,663
whitelist.py
ilius_pyglossary/whitelist.py
AnyStr # unused import (pyglossary/json_utils.py:6) AnyStr # unused import (pyglossary/text_utils.py:25) EntryListType # unused import (pyglossary/glossary_v2.py:65) exc_tb # unused variable (pyglossary/os_utils.py:54) exc_tb # unused variable (pyglossary/slob.py:1569) exc_tb # unused variable (pyglossary/slob.py...
9,194
Python
.py
138
65.623188
97
0.786109
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,664
main.py
ilius_pyglossary/main.py
#!/usr/bin/env python3 import sys from os.path import dirname sys.path.insert(0, dirname(__file__)) from pyglossary.ui.main import main main()
147
Python
.py
6
22.833333
37
0.781022
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,665
g_json_test.py
ilius_pyglossary/tests/g_json_test.py
import unittest from glossary_v2_test import TestGlossaryBase class TestGlossaryJSON(TestGlossaryBase): def __init__(self, *args, **kwargs): TestGlossaryBase.__init__(self, *args, **kwargs) self.dataFileCRC32.update( { "004-bar.json": "7e4b2663", "100-en-de-v4.json": "6a20c6f6", "100-en-fa.json"...
851
Python
.py
29
26.034483
50
0.679408
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,666
g_aard2_slob_test.py
ilius_pyglossary/tests/g_aard2_slob_test.py
import os import unittest from glossary_v2_test import TestGlossaryBase skip_module = False class TestGlossarySlob(TestGlossaryBase): def __init__(self, *args, **kwargs): TestGlossaryBase.__init__(self, *args, **kwargs) self.dataFileCRC32.update( { "100-en-fa-res.slob": "0216d006", "100-en-fa-res-s...
2,988
Python
.py
115
22.26087
72
0.661415
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,667
g_stardict_textual_test.py
ilius_pyglossary/tests/g_stardict_textual_test.py
import unittest from glossary_v2_test import TestGlossaryBase class TestGlossaryStarDictTextual(TestGlossaryBase): def __init__(self, *args, **kwargs): TestGlossaryBase.__init__(self, *args, **kwargs) self.dataFileCRC32.update( { "100-en-fa-sdt.xml": "48cb3336", "100-en-fa-sdt.xml.txt": "0c9b4025", ...
1,673
Python
.py
61
23.868852
59
0.673546
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,668
glossary_security_test.py
ilius_pyglossary/tests/glossary_security_test.py
import logging import os import sys import unittest from os.path import abspath, dirname rootDir = dirname(dirname(abspath(__file__))) sys.path.insert(0, rootDir) from glossary_errors_test import TestGlossaryErrors from glossary_v2_test import testCacheDir from pyglossary.glossary import Glossary class TestGlossar...
2,006
Python
.py
65
27.938462
62
0.711399
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,669
gregorian_test.py
ilius_pyglossary/tests/gregorian_test.py
import sys import unittest from os.path import abspath, dirname rootDir = dirname(dirname(abspath(__file__))) sys.path.insert(0, rootDir) from pyglossary import gregorian def getMonthLen(y: int, m: int) -> int: if m == 12: return gregorian.to_jd(y + 1, 1, 1) - gregorian.to_jd(y, 12, 1) return gregorian.to_jd(y,...
6,577
Python
.py
335
16.525373
68
0.476083
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,670
g_csv_test.py
ilius_pyglossary/tests/g_csv_test.py
import sys import unittest from os.path import abspath, dirname rootDir = dirname(dirname(abspath(__file__))) sys.path.insert(0, rootDir) from glossary_v2_test import TestGlossaryBase from pyglossary.glossary import Glossary as GlossaryLegacy class TestGlossaryCSV(TestGlossaryBase): def __init__(self, *args, **kw...
2,803
Python
.py
92
27.130435
76
0.695199
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,671
g_xdxf_test.py
ilius_pyglossary/tests/g_xdxf_test.py
import unittest from glossary_v2_test import TestGlossaryBase class TestGlossaryXDXF(TestGlossaryBase): def __init__(self, *args, **kwargs): TestGlossaryBase.__init__(self, *args, **kwargs) self.dataFileCRC32.update( { "100-cyber_lexicon_en-es.xdxf": "8d9ba394", "100-cyber_lexicon_en-es-v3.txt": "4a...
687
Python
.py
25
24.16
58
0.681957
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,672
xml_utils_test.py
ilius_pyglossary/tests/xml_utils_test.py
import sys import unittest from os.path import abspath, dirname rootDir = dirname(dirname(abspath(__file__))) sys.path.insert(0, rootDir) from pyglossary.xml_utils import xml_escape class Test_xml_escape(unittest.TestCase): def test(self): f = xml_escape self.assertEqual(f(""), "") self.assertEqual(f("abc"),...
656
Python
.py
19
32.157895
52
0.660856
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,673
g_dictunformat_test.py
ilius_pyglossary/tests/g_dictunformat_test.py
import unittest from glossary_v2_test import TestGlossaryBase class TestGlossaryDictunformat(TestGlossaryBase): def __init__(self, *args, **kwargs): TestGlossaryBase.__init__(self, *args, **kwargs) self.dataFileCRC32.update( { "100-en-fa-2.dictunformat": "03a13c1a", "100-en-fa-2.dictunformat.txt": "...
707
Python
.py
25
24.96
66
0.697329
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,674
g_dict_org_source_test.py
ilius_pyglossary/tests/g_dict_org_source_test.py
import unittest from glossary_v2_test import TestGlossaryBase class TestGlossaryDictOrg(TestGlossaryBase): def __init__(self, *args, **kwargs): TestGlossaryBase.__init__(self, *args, **kwargs) self.dataFileCRC32.update( { "100-en-fa.dtxt": "05d6e939", }, ) def convert_txt_dict_org_source(self, fn...
627
Python
.py
24
22.875
69
0.680672
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,675
stardict_test.py
ilius_pyglossary/tests/stardict_test.py
import locale import random import unittest from functools import cmp_to_key def toBytes(s): return bytes(s, "utf-8") if isinstance(s, str) else bytes(s) def sortKeyBytes(ba: bytes): assert isinstance(ba, bytes) # ba.lower() + ba is wrong return ( ba.lower(), ba, ) def stardictStrCmp(s1, s2): """ use t...
4,549
Python
.py
153
26.581699
74
0.710877
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,676
dictzip_test.py
ilius_pyglossary/tests/dictzip_test.py
import gzip import logging import unittest from pathlib import Path from glossary_v2_errors_test import TestGlossaryErrorsBase from pyglossary.os_utils import runDictzip TEXT = """ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad m...
2,934
Python
.py
71
38.676056
82
0.757459
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,677
g_dicformids_test.py
ilius_pyglossary/tests/g_dicformids_test.py
import unittest from glossary_v2_test import TestGlossaryBase class TestGlossaryDictionaryForMIDs(TestGlossaryBase): def __init__(self, *args, **kwargs): TestGlossaryBase.__init__(self, *args, **kwargs) self.dataFileCRC32.update( { "100-en-fa.mids.zip": "32d1185f", }, ) def convert_txt_mids(self, ...
1,054
Python
.py
30
31.933333
78
0.751229
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,678
slob_test.py
ilius_pyglossary/tests/slob_test.py
import io import logging import os import random import sys import tempfile import unicodedata import unittest from os.path import abspath, dirname from typing import cast rootDir = dirname(dirname(abspath(__file__))) sys.path.insert(0, rootDir) import icu from pyglossary import slob from pyglossary.core_test import...
19,014
Python
.py
617
27.072934
79
0.664007
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,679
glossary_errors_test.py
ilius_pyglossary/tests/glossary_errors_test.py
import logging import os import sys import unittest from os.path import abspath, dirname, isfile, join, relpath rootDir = dirname(dirname(abspath(__file__))) sys.path.insert(0, rootDir) from glossary_test import TestGlossaryBase, appTmpDir from pyglossary.core_test import getMockLogger from pyglossary.glossary impor...
12,469
Python
.py
420
26.352381
82
0.726135
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,680
g_kobo_test.py
ilius_pyglossary/tests/g_kobo_test.py
import gzip import unittest import marisa_trie # noqa: F401, to ensure it's installed from glossary_v2_test import TestGlossaryBase class TestGlossaryKobo(TestGlossaryBase): def __init__(self, *args, **kwargs): TestGlossaryBase.__init__(self, *args, **kwargs) # self.dataFileCRC32.update({}) def convert_txt_k...
1,189
Python
.py
35
30.914286
76
0.748038
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,681
g_stardict_sort_test.py
ilius_pyglossary/tests/g_stardict_sort_test.py
import unittest from g_stardict_test import TestGlossaryStarDictBase from glossary_errors_test import TestGlossaryErrorsBase class TestGlossaryStarDictSortCustom(TestGlossaryStarDictBase): def __init__(self, *args, **kwargs): TestGlossaryErrorsBase.__init__(self, *args, **kwargs) self.dataFileCRC32.update( {...
2,099
Python
.py
75
24.546667
63
0.713505
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,682
g_jmdict_test.py
ilius_pyglossary/tests/g_jmdict_test.py
import unittest from glossary_v2_test import TestGlossaryBase class TestGlossaryJMdict(TestGlossaryBase): def __init__(self, *args, **kwargs): TestGlossaryBase.__init__(self, *args, **kwargs) self.dataFileCRC32.update( { "050-JMdict-English": "aec9ad8c", "050-JMdict-English-v3.txt": "6068b9a7", }...
896
Python
.py
29
27.689655
80
0.698487
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,683
g_stardict_test.py
ilius_pyglossary/tests/g_stardict_test.py
import sys import unittest from os.path import abspath, dirname, relpath rootDir = dirname(dirname(abspath(__file__))) sys.path.insert(0, rootDir) from glossary_errors_test import TestGlossaryErrorsBase from pyglossary.glossary import Glossary __all__ = ["TestGlossaryStarDictBase"] class TestGlossaryStarDictBase(...
9,753
Python
.py
310
27.73871
82
0.706816
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,684
glossary_v2_errors_test.py
ilius_pyglossary/tests/glossary_v2_errors_test.py
import logging import os import sys import unittest from os.path import abspath, dirname, isfile, join, relpath rootDir = dirname(dirname(abspath(__file__))) sys.path.insert(0, rootDir) from glossary_v2_test import TestGlossaryBase, appTmpDir from pyglossary.core_test import getMockLogger from pyglossary.glossary_v2...
12,720
Python
.py
470
23.434043
82
0.702594
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,685
ebook_kobo_test.py
ilius_pyglossary/tests/ebook_kobo_test.py
# -*- coding: utf-8 -*- import sys import unittest from os.path import abspath, dirname rootDir = dirname(dirname(abspath(__file__))) sys.path.insert(0, rootDir) from pyglossary.glossary_v2 import Glossary from pyglossary.plugins.ebook_kobo import ( Writer, ) class GetPrefixTest(unittest.TestCase): def case(sel...
3,278
Python
.py
113
25.292035
73
0.610181
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,686
apple_utils_test.py
ilius_pyglossary/tests/apple_utils_test.py
import sys import unittest from os.path import abspath, dirname rootDir = dirname(dirname(abspath(__file__))) sys.path.insert(0, rootDir) from pyglossary.apple_utils import substituteAppleCSS class Test_substituteAppleCSS(unittest.TestCase): def test_remove(self): css = b""".test { -webkit-text-combine: horizont...
1,145
Python
.py
47
22.531915
68
0.745638
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,687
g_lingoes_ldf_test.py
ilius_pyglossary/tests/g_lingoes_ldf_test.py
import unittest from glossary_v2_test import TestGlossaryBase class TestGlossaryLingoesLDF(TestGlossaryBase): def __init__(self, *args, **kwargs): TestGlossaryBase.__init__(self, *args, **kwargs) self.dataFileCRC32.update( { "004-bar.ldf": "b1aa776d", "100-en-fa.ldf": "503d1a9b", }, ) def con...
1,046
Python
.py
46
19.26087
57
0.648129
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,688
g_appledict_bin_test.py
ilius_pyglossary/tests/g_appledict_bin_test.py
import sys import unittest from os.path import abspath, dirname, join rootDir = dirname(dirname(abspath(__file__))) sys.path.insert(0, rootDir) from glossary_v2_test import TestGlossaryBase from pyglossary.glossary import Glossary class TestGlossaryAppleDictBin(TestGlossaryBase): def __init__(self, *args, **kwarg...
3,869
Python
.py
122
28.098361
77
0.720332
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,689
option_test.py
ilius_pyglossary/tests/option_test.py
import sys import unittest from os.path import abspath, dirname rootDir = dirname(dirname(abspath(__file__))) sys.path.insert(0, rootDir) from pyglossary.option import ( BoolOption, DictOption, FileSizeOption, FloatOption, IntOption, ListOption, StrOption, ) class TestOptionValidateBoolNumber(unittest.TestCa...
6,371
Python
.py
177
33.039548
64
0.700309
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,690
glossary_test.py
ilius_pyglossary/tests/glossary_test.py
import hashlib import json import logging import os import random import sys import tempfile import tracemalloc import unittest import zipfile from collections.abc import Callable from os.path import abspath, dirname, isdir, isfile, join from urllib.request import urlopen rootDir = dirname(dirname(abspath(__file__))) ...
30,310
Python
.py
997
26.685055
79
0.698291
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,691
g_freedict_test.py
ilius_pyglossary/tests/g_freedict_test.py
import unittest from glossary_v2_test import TestGlossaryBase class TestGlossaryFreeDict(TestGlossaryBase): def __init__(self, *args, **kwargs): TestGlossaryBase.__init__(self, *args, **kwargs) self.dataFileCRC32.update( { "100-en-de.tei": "542c210e", "100-en-de-v4.txt": "d420a669", }, ) def ...
766
Python
.py
31
21.322581
57
0.656121
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,692
text_utils_test.py
ilius_pyglossary/tests/text_utils_test.py
import os import struct import sys import unittest from os.path import abspath, dirname rootDir = dirname(dirname(abspath(__file__))) sys.path.insert(0, rootDir) from pyglossary.text_utils import ( crc32hex, escapeNTB, fixUtf8, joinByBar, replacePostSpaceChar, splitByBar, splitByBarUnescapeNTB, uint32FromByte...
7,173
Python
.py
192
34.276042
77
0.645695
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,693
g_sql_test.py
ilius_pyglossary/tests/g_sql_test.py
import unittest from glossary_v2_test import TestGlossaryBase class TestGlossarySQL(TestGlossaryBase): def __init__(self, *args, **kwargs): TestGlossaryBase.__init__(self, *args, **kwargs) self.dataFileCRC32.update( { "100-en-fa.txt": "f5c53133", "100-en-fa.txt-v2.sql": "70cd0514", }, ) def c...
631
Python
.py
25
21.92
57
0.662207
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,694
g_dict_org_test.py
ilius_pyglossary/tests/g_dict_org_test.py
import unittest from glossary_v2_test import TestGlossaryBase class TestGlossaryDictOrg(TestGlossaryBase): def __init__(self, *args, **kwargs): TestGlossaryBase.__init__(self, *args, **kwargs) self.dataFileCRC32.update( { "100-en-fa.txt.dict": "02abe5dc", "100-en-fa.txt.index": "b10efcb4", "100-...
1,110
Python
.py
41
23.634146
62
0.668555
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,695
g_appledict_test.py
ilius_pyglossary/tests/g_appledict_test.py
import plistlib import sys import unittest from os.path import abspath, dirname, join rootDir = dirname(dirname(abspath(__file__))) sys.path.insert(0, rootDir) from glossary_v2_test import TestGlossaryBase from pyglossary.glossary import Glossary class TestGlossaryAppleDict(TestGlossaryBase): def __init__(self, *...
2,041
Python
.py
58
31.862069
81
0.736789
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,696
html_utils_test.py
ilius_pyglossary/tests/html_utils_test.py
# -*- coding: utf-8 -*- import sys import unittest from os.path import abspath, dirname rootDir = dirname(dirname(abspath(__file__))) sys.path.insert(0, rootDir) from pyglossary.html_utils import unescape_unicode class UnescapeUnicodeTest(unittest.TestCase): def case(self, text, expected): actual = unescape_uni...
1,982
Python
.py
58
30.913793
75
0.63951
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,697
g_ebook_epub2_test.py
ilius_pyglossary/tests/g_ebook_epub2_test.py
import re import sys import unittest from os.path import abspath, dirname rootDir = dirname(dirname(abspath(__file__))) sys.path.insert(0, rootDir) from glossary_v2_test import TestGlossaryBase from pyglossary.glossary import Glossary skip_module = False class TestGlossaryEPUB2(TestGlossaryBase): def __init__(se...
3,205
Python
.py
125
22.056
77
0.664814
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,698
g_xdxf_lax_test.py
ilius_pyglossary/tests/g_xdxf_lax_test.py
import unittest from glossary_v2_test import TestGlossaryBase class TestGlossaryXDXFLax(TestGlossaryBase): def __init__(self, *args, **kwargs): TestGlossaryBase.__init__(self, *args, **kwargs) self.dataFileCRC32.update( { "100-cyber_lexicon_en-es.xdxf": "8d9ba394", "100-cyber_lexicon_en-es-v3.txt": ...
716
Python
.py
26
24.192308
58
0.684751
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,699
entry_test.py
ilius_pyglossary/tests/entry_test.py
import sys import unittest from os.path import abspath, dirname rootDir = dirname(dirname(abspath(__file__))) sys.path.insert(0, rootDir) from pyglossary.entry import Entry class TestEntryBasic(unittest.TestCase): def test_exc_1(self): try: Entry(b"word", "defi") except TypeError as e: self.assertEqual(s...
4,862
Python
.py
169
25.568047
75
0.675902
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)