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
20,500
unpair.py
pwr-Solaar_Solaar/lib/solaar/cli/unpair.py
## Copyright (C) 2012-2013 Daniel Pavel ## ## 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 option) any later version. ## ## This program is di...
1,619
Python
.py
34
42.970588
92
0.700822
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,501
probe.py
pwr-Solaar_Solaar/lib/solaar/cli/probe.py
## Copyright (C) 2020 ## ## 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 option) any later version. ## ## This program is distributed in the ho...
5,341
Python
.py
114
36.947368
125
0.592216
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,502
__init__.py
pwr-Solaar_Solaar/lib/solaar/cli/__init__.py
## Copyright (C) 2012-2013 Daniel Pavel ## ## 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 option) any later version. ## ## This program is di...
7,794
Python
.py
194
32.020619
120
0.614561
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,503
profiles.py
pwr-Solaar_Solaar/lib/solaar/cli/profiles.py
## Copyright (C) 2012-2013 Daniel Pavel ## ## 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 option) any later version. ## ## This program is di...
2,643
Python
.py
56
38.75
94
0.658262
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,504
hidconsole.py
pwr-Solaar_Solaar/lib/hidapi/hidconsole.py
## Copyright (C) 2012-2013 Daniel Pavel ## ## 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 option) any later version. ## ## This program is di...
7,817
Python
.py
201
30.303483
111
0.593267
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,505
hidapi_impl.py
pwr-Solaar_Solaar/lib/hidapi/hidapi_impl.py
## Copyright (C) 2012-2013 Daniel Pavel ## ## 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 option) any later version. ## ## This program is di...
18,269
Python
.py
424
37.365566
125
0.682482
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,506
common.py
pwr-Solaar_Solaar/lib/hidapi/common.py
from __future__ import annotations import dataclasses @dataclasses.dataclass class DeviceInfo: path: str bus_id: str | None vendor_id: str product_id: str interface: str | None driver: str | None manufacturer: str | None product: str | None serial: str | None release: str | No...
397
Python
.py
17
19.117647
34
0.676393
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,507
udev_impl.py
pwr-Solaar_Solaar/lib/hidapi/udev_impl.py
## Copyright (C) 2012-2013 Daniel Pavel ## ## 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 option) any later version. ## ## This program is di...
16,249
Python
.py
386
34.559585
116
0.645358
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,508
generate.py
pwr-Solaar_Solaar/lib/keysyms/generate.py
#!/usr/bin/env python3 """Extract key symbol encodings from X11 header files.""" from pathlib import Path from pprint import pprint from re import findall from subprocess import run from tempfile import TemporaryDirectory repo = "https://gitlab.freedesktop.org/xorg/proto/xorgproto.git" pattern = r"#define XK_(\w+)\s+...
1,231
Python
.py
30
34.266667
69
0.594799
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,509
keysymdef.py
pwr-Solaar_Solaar/lib/keysyms/keysymdef.py
# flake8: noqa key_symbols = { "0": 48, "1": 49, "2": 50, "3": 51, "3270_AltCursor": 64784, "3270_Attn": 64782, "3270_BackTab": 64773, "3270_ChangeScreen": 64793, "3270_Copy": 64789, "3270_CursorBlink": 64783, "3270_CursorSelect": 64796, "3270_DeleteWord": 64794, "327...
61,816
Python
.py
2,294
21.952049
41
0.620796
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,510
__init__.py
pwr-Solaar_Solaar/lib/hid_parser/__init__.py
# SPDX-License-Identifier: MIT from __future__ import annotations # noqa:F407 import functools import struct import sys import textwrap import typing import warnings from typing import Any from typing import Dict from typing import Iterable from typing import Iterator from typing import List from typing import Lite...
34,400
Python
.py
840
29.190476
124
0.548729
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,511
data.py
pwr-Solaar_Solaar/lib/hid_parser/data.py
# SPDX-License-Identifier: MIT import enum from typing import Any from typing import Dict from typing import List from typing import Optional from typing import Tuple class _DataMeta(type): """ This metaclass populates _single and _range, following the structure described bellow The class should declar...
57,667
Python
.py
1,018
50.936149
108
0.701437
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,512
test_hidpp20_complex.py
pwr-Solaar_Solaar/tests/logitech_receiver/test_hidpp20_complex.py
## Copyright (C) 2024 Solaar Contributors https://pwr-solaar.github.io/Solaar/ ## ## 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 option) any ...
35,379
Python
.py
746
41.607239
127
0.694871
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,513
test_notifications.py
pwr-Solaar_Solaar/tests/logitech_receiver/test_notifications.py
import pytest from logitech_receiver import notifications from logitech_receiver.base import HIDPPNotification from logitech_receiver.common import Notification from logitech_receiver.hidpp10_constants import BoltPairingError from logitech_receiver.hidpp10_constants import PairingError from logitech_receiver.hidpp10_c...
1,824
Python
.py
35
47.057143
103
0.759415
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,514
test_device.py
pwr-Solaar_Solaar/tests/logitech_receiver/test_device.py
## Copyright (C) 2024 Solaar Contributors https://pwr-solaar.github.io/Solaar/ ## ## 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 option) any ...
13,801
Python
.py
300
39.74
123
0.644206
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,515
test_diversion.py
pwr-Solaar_Solaar/tests/logitech_receiver/test_diversion.py
import textwrap from unittest import mock from unittest.mock import mock_open import pytest from logitech_receiver import diversion from logitech_receiver.base import HIDPPNotification from logitech_receiver.hidpp20_constants import SupportedFeature @pytest.fixture def rule_config(): rule_content = """ %YA...
3,558
Python
.py
101
28.663366
108
0.650831
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,516
test_receiver.py
pwr-Solaar_Solaar/tests/logitech_receiver/test_receiver.py
from dataclasses import dataclass from functools import partial from unittest import mock import pytest from logitech_receiver import base from logitech_receiver import common from logitech_receiver import exceptions from logitech_receiver import receiver from . import fake_hidpp class LowLevelInterfaceFake: d...
7,078
Python
.py
157
39.713376
127
0.686366
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,517
test_desktop_notifications.py
pwr-Solaar_Solaar/tests/logitech_receiver/test_desktop_notifications.py
from unittest import mock from logitech_receiver import desktop_notifications def test_notifications_available(): result = desktop_notifications.notifications_available() assert not result def test_init(): assert not desktop_notifications.init() def test_uninit(): assert desktop_notifications.un...
463
Python
.py
13
31.692308
60
0.772727
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,518
test_common.py
pwr-Solaar_Solaar/tests/logitech_receiver/test_common.py
from enum import IntFlag import pytest import yaml from logitech_receiver import common def test_crc16(): value = b"123456789" expected = 0x29B1 result = common.crc16(value) assert result == expected def test_named_int(): named_int = common.NamedInt(0x2, "pulse") assert named_int.name =...
7,879
Python
.py
198
34.39899
125
0.667237
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,519
test_base.py
pwr-Solaar_Solaar/tests/logitech_receiver/test_base.py
import struct import sys from unittest import mock import pytest from logitech_receiver import base from logitech_receiver import exceptions from logitech_receiver.base import HIDPP_SHORT_MESSAGE_ID from logitech_receiver.base import request from logitech_receiver.hidpp10_constants import ERROR @pytest.mark.parame...
6,135
Python
.py
152
33.756579
119
0.657643
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,520
fake_hidpp.py
pwr-Solaar_Solaar/tests/logitech_receiver/fake_hidpp.py
## Copyright (C) 2024 Solaar Contributors https://pwr-solaar.github.io/Solaar/ ## ## 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 option) any ...
21,905
Python
.py
403
49.30273
126
0.703928
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,521
test_hidpp20_simple.py
pwr-Solaar_Solaar/tests/logitech_receiver/test_hidpp20_simple.py
## Copyright (C) 2024 Solaar Contributors https://pwr-solaar.github.io/Solaar/ ## ## 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 option) any ...
14,555
Python
.py
313
40.43131
109
0.704145
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,522
test_settings.py
pwr-Solaar_Solaar/tests/logitech_receiver/test_settings.py
import pytest from logitech_receiver import settings @pytest.mark.parametrize( "current, new, expected", [ (False, "toggle", True), (True, "~", False), ("don't care", True, True), ("don't care", "true", True), ("don't care", "false", False), ("don't care", "no"...
671
Python
.py
21
25.619048
62
0.55418
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,523
test_setting_templates.py
pwr-Solaar_Solaar/tests/logitech_receiver/test_setting_templates.py
## Copyright (C) 2024 Solaar Contributors https://pwr-solaar.github.io/Solaar/ ## ## 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 option) any ...
38,737
Python
.py
790
41.370886
127
0.659427
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,524
test_hidpp10.py
pwr-Solaar_Solaar/tests/logitech_receiver/test_hidpp10.py
from dataclasses import dataclass from dataclasses import field from typing import Any from typing import List from typing import Optional import pytest from logitech_receiver import common from logitech_receiver import hidpp10 from logitech_receiver import hidpp10_constants from logitech_receiver.hidpp10_constants i...
11,131
Python
.py
257
36.910506
119
0.691859
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,525
test_keysymdef.py
pwr-Solaar_Solaar/tests/test_keysyms/test_keysymdef.py
from keysyms import keysymdef def test_keysymdef(): key_mapping = keysymdef.key_symbols assert key_mapping["0"] == 48 assert key_mapping["A"] == 65 assert key_mapping["a"] == 97
197
Python
.py
6
28.666667
39
0.680851
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,526
test_about_dialog.py
pwr-Solaar_Solaar/tests/solaar/ui/test_about_dialog.py
from solaar.ui.about import about from solaar.ui.about.model import AboutModel def test_about_model(): expected_name = "Daniel Pavel" model = AboutModel() authors = model.get_authors() assert expected_name in authors[0] def test_about_dialog(mocker): view_mock = mocker.Mock() about.show(v...
802
Python
.py
19
37.631579
56
0.729032
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,527
test_desktop_notifications.py
pwr-Solaar_Solaar/tests/solaar/ui/test_desktop_notifications.py
from unittest import mock from solaar.ui import desktop_notifications def test_notifications_available(): result = desktop_notifications.notifications_available() assert not result def test_init(): assert not desktop_notifications.init() def test_uninit(): assert desktop_notifications.uninit() i...
553
Python
.py
16
30.5625
60
0.761905
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,528
test_pair_window.py
pwr-Solaar_Solaar/tests/solaar/ui/test_pair_window.py
from dataclasses import dataclass from dataclasses import field from typing import Any from typing import Callable from typing import List from typing import Optional from unittest import mock import gi import pytest from logitech_receiver import receiver from solaar.ui import pair_window gi.require_version("Gtk", "...
8,887
Python
.py
206
35.276699
125
0.625478
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,529
test_common.py
pwr-Solaar_Solaar/tests/solaar/ui/test_common.py
from unittest import mock from unittest.mock import PropertyMock import pytest from solaar.ui import common @pytest.mark.parametrize( "reason, expected_in_title, expected_in_text", [ ( "permissions", "Permissions error", "not have permission to open", ), ...
744
Python
.py
22
28
72
0.670391
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,530
test_i18n.py
pwr-Solaar_Solaar/tests/solaar/ui/test_i18n.py
import locale import os import platform import pytest from solaar import i18n @pytest.fixture def set_locale_de(): backup_lang = os.environ.get("LC_ALL", "") try: yield finally: os.environ["LC_ALL"] = backup_lang i18n.set_locale_to_system_default() @pytest.mark.skipif(platform....
615
Python
.py
20
26.55
80
0.688245
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,531
test_hidapi.py
pwr-Solaar_Solaar/tests/hidapi/test_hidapi.py
import platform from unittest import mock if platform.system() == "Linux": import hidapi.udev_impl as hidapi else: import hidapi.hidapi_impl as hidapi def test_find_paired_node(): hidapi.enumerate(mock.Mock())
226
Python
.py
8
25.25
39
0.761682
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,532
test_data.py
pwr-Solaar_Solaar/tests/hid_parser/test_data.py
from hid_parser.data import Button from hid_parser.data import Consumer def test_consumer(): consumer = Consumer() assert consumer.PLAY_PAUSE == 0xCD def test_button(): button = Button() assert button.NO_BUTTON == 0x0 assert button.BUTTON_1 == 0x1
274
Python
.py
9
26.555556
38
0.725869
pwr-Solaar/Solaar
5,327
400
31
GPL-2.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,533
hamster-cli.py
projecthamster_hamster/src/hamster-cli.py
#!/usr/bin/env python3 # - coding: utf-8 - # Copyright (C) 2010 Matías Ribecky <matias at mribecky.com.ar> # Copyright (C) 2010-2012 Toms Bauģis <toms.baugis@gmail.com> # Copyright (C) 2012 Ted Smith <tedks at cs.umd.edu> # This file is part of Project Hamster. # Project Hamster is free software: you can redistribut...
18,772
Python
.py
408
36.691176
102
0.611111
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,534
hamster-windows-service.py
projecthamster_hamster/src/hamster-windows-service.py
#!/usr/bin/env python3 # nicked off hamster-service import dbus import dbus.service import os.path import subprocess from dbus.mainloop.glib import DBusGMainLoop from gi.repository import GLib as glib import hamster DBusGMainLoop(set_as_default=True) loop = glib.MainLoop() if "org.gnome.Hamster.WindowServer" in d...
2,777
Python
.py
68
34.808824
87
0.67473
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,535
hamster-service.py
projecthamster_hamster/src/hamster-service.py
#!/usr/bin/env python3 # nicked off gwibber import dbus import dbus.service from gi.repository import GLib as glib from gi.repository import Gio as gio import hamster from hamster import logger as hamster_logger from hamster.lib import i18n i18n.setup_i18n() # noqa: E402 from hamster.storage import db from hamster...
16,133
Python
.py
357
35.254902
106
0.613161
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,536
client.py
projecthamster_hamster/src/hamster/client.py
# - coding: utf-8 - # Copyright (C) 2007 Patryk Zawadzki <patrys at pld-linux.org> # Copyright (C) 2007-2009 Toms Baugis <toms.baugis@gmail.com> # This file is part of Project Hamster. # Project Hamster is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as ...
11,182
Python
.py
220
41.154545
117
0.647685
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,537
about.py
projecthamster_hamster/src/hamster/about.py
# -*- coding: utf-8 -*- # Copyright (C) 2007, 2008 Toms Bauģis <toms.baugis at gmail.com> # This file is part of Project Hamster. # Project Hamster 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 ver...
2,216
Python
.py
44
42.181818
76
0.656119
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,538
edit_activity.py
projecthamster_hamster/src/hamster/edit_activity.py
# -*- coding: utf-8 -*- # Copyright (C) 2007-2009, 2014 Toms Bauģis <toms.baugis at gmail.com> # This file is part of Project Hamster. # Project Hamster 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...
15,579
Python
.py
316
38.427215
96
0.624523
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,539
overview.py
projecthamster_hamster/src/hamster/overview.py
# -*- coding: utf-8 -*- # Copyright (C) 2014 Toms Bauģis <toms.baugis at gmail.com> # This file is part of Project Hamster. # Project Hamster 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 ...
24,442
Python
.py
502
37.960159
160
0.61951
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,540
reports.py
projecthamster_hamster/src/hamster/reports.py
# - coding: utf-8 - # Copyright (C) 2008-2012 Toms Bauģis <toms.baugis at gmail.com> # Copyright (C) 2008 Nathan Samson <nathansamson at gmail dot com> # Copyright (C) 2008 Giorgos Logiotatidis <seadog at sealabs dot net> # Copyright (C) 2012 Ted Smith <tedks at cs.umd.edu> # This file is part of Project Hamster. #...
12,055
Python
.py
257
36.303502
145
0.5921
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,541
__init__.py
projecthamster_hamster/src/hamster/__init__.py
import gi gi.require_version('Gtk', '3.0') # noqa: E402 gi.require_version('PangoCairo', '1.0') # noqa: E402 # for some reason performance is improved by importing Gtk early from gi.repository import Gtk as gtk from hamster.lib import default_logger from hamster.version import get_version logger = default_logger(_...
462
Python
.py
13
34.153846
64
0.774775
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,542
preferences.py
projecthamster_hamster/src/hamster/preferences.py
# -*- coding: utf-8 -*- # Copyright (C) 2007, 2008, 2014 Toms Bauģis <toms.baugis at gmail.com> # This file is part of Project Hamster. # Project Hamster 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, eit...
19,247
Python
.py
388
38.664948
119
0.619149
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,543
version.py
projecthamster_hamster/src/hamster/version.py
# Should not normally be used directly, use hamster.__version__ and # hamster.installed instead def get_installed_version(): try: # defs.py is created by waf from defs.py.in from hamster import defs return defs.VERSION except ImportError: # if defs is not there, we are running f...
1,456
Python
.py
39
31.410256
79
0.661462
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,544
facttree.py
projecthamster_hamster/src/hamster/widgets/facttree.py
# -*- coding: utf-8 -*- # Copyright (C) 2008-2009, 2014 Toms Bauģis <toms.baugis at gmail.com> # This file is part of Project Hamster. # Project Hamster 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...
22,557
Python
.py
501
34.243513
171
0.587959
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,545
tags.py
projecthamster_hamster/src/hamster/widgets/tags.py
# - coding: utf-8 - # Copyright (C) 2009 Toms Bauģis <toms.baugis at gmail.com> # This file is part of Project Hamster. # Project Hamster 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...
12,521
Python
.py
287
33.58885
147
0.596376
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,546
activityentry.py
projecthamster_hamster/src/hamster/widgets/activityentry.py
# - coding: utf-8 - # Copyright (C) 2008-2009 Toms Bauģis <toms.baugis at gmail.com> # This file is part of Project Hamster. # Project Hamster 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...
23,206
Python
.py
510
35.523529
127
0.611621
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,547
dayline.py
projecthamster_hamster/src/hamster/widgets/dayline.py
# -*- coding: utf-8 -*- # Copyright (C) 2007-2010 Toms Bauģis <toms.baugis at gmail.com> # This file is part of Project Hamster. # Project Hamster 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 ver...
9,083
Python
.py
171
42.163743
148
0.616072
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,548
dates.py
projecthamster_hamster/src/hamster/widgets/dates.py
# - coding: utf-8 - # Copyright (C) 2008-2009, 2014 Toms Bauģis <toms.baugis at gmail.com> # This file is part of Project Hamster. # Project Hamster 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...
7,559
Python
.py
163
38.01227
142
0.634123
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,549
__init__.py
projecthamster_hamster/src/hamster/widgets/__init__.py
# - coding: utf-8 - # Copyright (C) 2007-2009 Toms Bauģis <toms.baugis at gmail.com> # This file is part of Project Hamster. # Project Hamster 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,157
Python
.py
67
41.940299
90
0.71987
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,550
timeinput.py
projecthamster_hamster/src/hamster/widgets/timeinput.py
# - coding: utf-8 - # Copyright (C) 2008-2009 Toms Bauģis <toms.baugis at gmail.com> # This file is part of Project Hamster. # Project Hamster 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...
10,598
Python
.py
238
34.268908
116
0.598075
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,551
reportchooserdialog.py
projecthamster_hamster/src/hamster/widgets/reportchooserdialog.py
# - coding: utf-8 - # Copyright (C) 2009 Toms Bauģis <toms.baugis at gmail.com> # This file is part of Project Hamster. # Project Hamster 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 ...
5,060
Python
.py
108
36.12963
91
0.595567
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,552
configuration.py
projecthamster_hamster/src/hamster/lib/configuration.py
# -*- coding: utf-8 -*- # Copyright (C) 2008, 2014 Toms Bauģis <toms.baugis at gmail.com> # This file is part of Project Hamster. # Project Hamster 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 ve...
5,681
Python
.py
141
33.510638
116
0.646534
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,553
fact.py
projecthamster_hamster/src/hamster/lib/fact.py
# This file is part of Hamster # Copyright (c) The Hamster time tracker developers # SPDX-License-Identifier: GPL-3.0-or-later """Fact definition.""" import logging logger = logging.getLogger(__name__) # noqa: E402 import calendar from copy import deepcopy from hamster.lib import datetime as dt from hamster.li...
8,453
Python
.py
202
31.371287
149
0.587741
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,554
datetime.py
projecthamster_hamster/src/hamster/lib/datetime.py
# This file is part of Hamster # Copyright (c) The Hamster time tracker developers # SPDX-License-Identifier: GPL-3.0-or-later """Hamster datetime. Python datetime replacement, tuned for hamster use. """ import logging logger = logging.getLogger(__name__) # noqa: E402 import datetime as pdt # standard datetime...
25,503
Python
.py
597
30.276382
95
0.517052
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,555
pytweener.py
projecthamster_hamster/src/hamster/lib/pytweener.py
# pyTweener # # Tweening functions for python # # Heavily based on caurina Tweener: http://code.google.com/p/tweener/ # # Released under M.I.T License - see above url # Python version by Ben Harling 2009 # All kinds of slashing and dashing by Toms Baugis 2010, 2014 import math import collections import time import re ...
13,052
Python
.py
280
35.821429
107
0.584319
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,556
dbus.py
projecthamster_hamster/src/hamster/lib/dbus.py
import dbus from dbus.mainloop.glib import DBusGMainLoop as DBusMainLoop from json import dumps, loads from calendar import timegm from hamster.lib import datetime as dt from hamster.lib.fact import Fact """D-Bus communication utilities.""" # file layout: functions sorted in alphabetical order, # not taking into ac...
3,629
Python
.py
94
32.393617
94
0.653451
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,557
layout.py
projecthamster_hamster/src/hamster/lib/layout.py
# - coding: utf-8 - # Copyright (c) 2011-2012 Media Modifications, Ltd. # Copyright (c) 2014 Toms Baugis <toms.baugis@gmail.com> # Dual licensed under the MIT or GPL Version 2 licenses. import math from gi.repository import Gtk as gtk from gi.repository import Gdk as gdk from gi.repository import GObject as gobject f...
36,925
Python
.py
725
40.034483
153
0.599889
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,558
parsing.py
projecthamster_hamster/src/hamster/lib/parsing.py
import logging logger = logging.getLogger(__name__) # noqa: E402 import re from hamster.lib import datetime as dt # separator between times and activity activity_separator = r"\s+" # match #tag followed by any space or # that will be ignored # tag must not contain '#' or ',' tag_re = re.compile(r""" \# ...
2,780
Python
.py
75
31.186667
79
0.62281
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,559
charting.py
projecthamster_hamster/src/hamster/lib/charting.py
# - coding: utf-8 - # Copyright (C) 2008-2010 Toms Bauģis <toms.baugis at gmail.com> # This file is part of Project Hamster. # Project Hamster 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...
12,327
Python
.py
244
39.745902
114
0.602805
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,560
i18n.py
projecthamster_hamster/src/hamster/lib/i18n.py
# - coding: utf-8 - import os import locale, gettext import hamster def setup_i18n(): #determine location of po files # to avoid confusion, we won't translate unless running installed # reason for that is that bindtextdomain is expecting # localedir/language/LC_MESSAGES/domain.mo format, but we have...
1,164
Python
.py
29
34
76
0.690053
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,561
__init__.py
projecthamster_hamster/src/hamster/lib/__init__.py
import logging logger = logging.getLogger(__name__) # noqa: E402 from hamster.lib.fact import Fact # for backward compatibility with v2 def default_logger(name): """Return a toplevel logger. This should be used only in the toplevel file. Files deeper in the hierarchy should use ``logger = loggin...
1,147
Python
.py
24
41.541667
80
0.683738
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,562
stuff.py
projecthamster_hamster/src/hamster/lib/stuff.py
# - coding: utf-8 - # Copyright (C) 2008-2010, 2014 Toms Bauģis <toms.baugis at gmail.com> # This file is part of Project Hamster. # Project Hamster 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 ve...
8,528
Python
.py
204
36.014706
102
0.659603
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,563
graphics.py
projecthamster_hamster/src/hamster/lib/graphics.py
# - coding: utf-8 - # Copyright (c) 2008-2012 Toms Bauģis <toms.baugis at gmail.com> # Copyright (c) 2011-2012 Media Modifications, Ltd. # Dual licensed under the MIT or GPL Version 2 licenses. # See http://github.com/tbaugis/hamster_experiments/blob/master/README.textile from collections import defaultdict import m...
86,442
Python
.py
1,728
38.863426
146
0.593542
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,564
db.py
projecthamster_hamster/src/hamster/storage/db.py
# - coding: utf-8 - # Copyright (C) 2007-2009, 2012, 2014 Toms Bauģis <toms.baugis at gmail.com> # Copyright (C) 2007 Patryk Zawadzki <patrys at pld-linux.org> # This file is part of Project Hamster. # Project Hamster is free software: you can redistribute it and/or modify # it under the terms of the GNU General Pu...
40,987
Python
.py
817
35.504284
140
0.530881
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,565
storage.py
projecthamster_hamster/src/hamster/storage/storage.py
# - coding: utf-8 - # Copyright (C) 2007 Patryk Zawadzki <patrys at pld-linux.org> # Copyright (C) 2007-2012 Toms Baugis <toms.baugis@gmail.com> # This file is part of Project Hamster. # Project Hamster is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as ...
8,298
Python
.py
196
32.857143
92
0.618119
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,566
Configure.py
projecthamster_hamster/waflib/Configure.py
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2005-2018 (ita) """ Configuration system A :py:class:`waflib.Configure.ConfigurationContext` instance is created when ``waf configure`` is called, it is used to: * create data dictionaries (ConfigSet instances) * store the list of modules to import * hold config...
19,197
Python
.py
539
32.519481
172
0.704439
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,567
Logs.py
projecthamster_hamster/waflib/Logs.py
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2005-2018 (ita) """ logging, colors, terminal width and pretty-print """ import os, re, traceback, sys from waflib import Utils, ansiterm if not os.environ.get('NOSYNC', False): # synchronized output is nearly mandatory to prevent garbled output if sys.stdout....
9,755
Python
.py
326
27.153374
102
0.695058
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,568
Node.py
projecthamster_hamster/waflib/Node.py
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2005-2018 (ita) """ Node: filesystem structure #. Each file/folder is represented by exactly one node. #. Some potential class properties are stored on :py:class:`waflib.Build.BuildContext` : nodes to depend on, etc. Unused class members can increase the `.wa...
25,493
Python
.py
815
27.771779
125
0.685082
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,569
Scripting.py
projecthamster_hamster/waflib/Scripting.py
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2005-2018 (ita) "Module called for configuring, compiling and installing targets" from __future__ import with_statement import os, shlex, shutil, traceback, errno, sys, stat from waflib import Utils, Configure, Logs, Options, ConfigSet, Context, Errors, Build, N...
16,906
Python
.py
538
27.933086
158
0.692965
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,570
ConfigSet.py
projecthamster_hamster/waflib/ConfigSet.py
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2005-2018 (ita) """ ConfigSet: a special dict The values put in :py:class:`ConfigSet` must be serializable (dicts, lists, strings) """ import copy, re, os from waflib import Logs, Utils re_imp = re.compile(r'^(#)*?([^#=]*?)\ =\ (.*?)$', re.M) class ConfigSet(o...
8,294
Python
.py
301
24.10299
117
0.671751
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,571
ansiterm.py
projecthamster_hamster/waflib/ansiterm.py
#!/usr/bin/env python # encoding: utf-8 """ Emulate a vt100 terminal in cmd.exe By wrapping sys.stdout / sys.stderr with Ansiterm, the vt100 escape characters will be interpreted and the equivalent actions will be performed with Win32 console commands. """ import os, re, sys from waflib import Utils wlock = Utils....
10,939
Python
.py
289
33.910035
137
0.701331
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,572
__init__.py
projecthamster_hamster/waflib/__init__.py
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2005-2018 (ita)
71
Python
.py
3
22.666667
30
0.705882
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,573
Errors.py
projecthamster_hamster/waflib/Errors.py
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2010-2018 (ita) """ Exceptions used in the Waf code """ import traceback, sys class WafError(Exception): """Base class for all Waf errors""" def __init__(self, msg='', ex=None): """ :param msg: error message :type msg: string :param ex: exception causi...
1,713
Python
.py
57
27.263158
94
0.714286
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,574
Build.py
projecthamster_hamster/waflib/Build.py
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2005-2018 (ita) """ Classes related to the build phase (build, clean, install, step, etc) The inheritance tree is the following: """ import os, sys, errno, re, shutil, stat try: import cPickle except ImportError: import pickle as cPickle from waflib import No...
43,520
Python
.py
1,269
30.669031
158
0.694038
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,575
TaskGen.py
projecthamster_hamster/waflib/TaskGen.py
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2005-2018 (ita) """ Task generators The class :py:class:`waflib.TaskGen.task_gen` encapsulates the creation of task objects (low-level code) The instances can have various parameters, but the creation of task nodes (Task.py) is deferred. To achieve this, various ...
26,525
Python
.py
765
31.424837
149
0.69893
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,576
Options.py
projecthamster_hamster/waflib/Options.py
#!/usr/bin/env python # encoding: utf-8 # Scott Newton, 2005 (scottn) # Thomas Nagy, 2006-2018 (ita) """ Support for waf command-line options Provides default and command-line options, as well the command that reads the ``options`` wscript function. """ import os, tempfile, optparse, sys, re from waflib import Logs,...
11,958
Python
.py
299
36.535117
161
0.67592
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,577
Runner.py
projecthamster_hamster/waflib/Runner.py
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2005-2018 (ita) """ Runner.py: Task scheduling and execution """ import heapq, traceback try: from queue import Queue, PriorityQueue except ImportError: from Queue import Queue try: from Queue import PriorityQueue except ImportError: class PriorityQueue(Q...
16,394
Python
.py
542
26.188192
104
0.687928
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,578
Context.py
projecthamster_hamster/waflib/Context.py
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2010-2018 (ita) """ Classes and functions enabling the command system """ import os, re, sys from waflib import Utils, Errors, Logs import waflib.Node if sys.hexversion > 0x3040000: import types class imp(object): new_module = lambda x: types.ModuleType(x) e...
21,252
Python
.py
629
30.337043
295
0.693392
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,579
fixpy2.py
projecthamster_hamster/waflib/fixpy2.py
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2010-2018 (ita) from __future__ import with_statement import os all_modifs = {} def fixdir(dir): """Call all substitution functions on Waf folders""" for k in all_modifs: for v in all_modifs[k]: modif(os.path.join(dir, 'waflib'), k, v) def modif(dir, na...
1,488
Python
.py
51
26.588235
125
0.656601
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,580
Task.py
projecthamster_hamster/waflib/Task.py
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2005-2018 (ita) """ Tasks represent atomic operations such as processes. """ import os, re, sys, tempfile, traceback from waflib import Utils, Logs, Errors # task states NOT_RUN = 0 """The task was not executed yet""" MISSING = 1 """The task has been executed b...
39,486
Python
.py
1,195
29.598326
130
0.673766
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,581
Utils.py
projecthamster_hamster/waflib/Utils.py
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2005-2018 (ita) """ Utilities and platform-specific fixes The portability fixes try to provide a consistent behavior of the Waf API through Python versions 2.5 to 3.X and across different platforms (win32, linux, etc) """ from __future__ import with_statement i...
25,802
Python
.py
923
25.326111
114
0.697442
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,582
processor.py
projecthamster_hamster/waflib/processor.py
#! /usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2016-2018 (ita) import os, sys, traceback, base64, signal try: import cPickle except ImportError: import pickle as cPickle try: import subprocess32 as subprocess except ImportError: import subprocess try: TimeoutExpired = subprocess.TimeoutExpired except A...
1,601
Python
.py
59
24.59322
72
0.71559
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,583
eclipse.py
projecthamster_hamster/waflib/extras/eclipse.py
#! /usr/bin/env python # encoding: utf-8 # Eclipse CDT 5.0 generator for Waf # Richard Quirk 2009-1011 (New BSD License) # Thomas Nagy 2011 (ported to Waf 1.6) """ Usage: def options(opt): opt.load('eclipse') To add additional targets beside standard ones (configure, dist, install, check) the environment ECLIPSE_EX...
19,719
Python
.py
427
41.419204
148
0.690915
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,584
pytest.py
projecthamster_hamster/waflib/extras/pytest.py
#! /usr/bin/env python # encoding: utf-8 # Calle Rosenquist, 2016-2018 (xbreak) """ Provides Python unit test support using :py:class:`waflib.Tools.waf_unit_test.utest` task via the **pytest** feature. To use pytest the following is needed: 1. Load `pytest` and the dependency `waf_unit_test` tools. 2. Create a task ...
8,866
Python
.py
190
42.547368
107
0.702922
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,585
cpplint.py
projecthamster_hamster/waflib/extras/cpplint.py
#! /usr/bin/env python # encoding: utf-8 # # written by Sylvain Rouquette, 2014 ''' This is an extra tool, not bundled with the default waf binary. To add the cpplint tool to the waf file: $ ./waf-light --tools=compat15,cpplint this tool also requires cpplint for python. If you have PIP, you can install it like this...
7,522
Python
.py
173
34.450867
136
0.595515
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,586
slow_qt4.py
projecthamster_hamster/waflib/extras/slow_qt4.py
#! /usr/bin/env python # Thomas Nagy, 2011 (ita) """ Create _moc.cpp files The builds are 30-40% faster when .moc files are included, you should NOT use this tool. If you really really want it: def configure(conf): conf.load('compiler_cxx qt4') conf.load('slow_qt4') See playground/slow_qt/wscript for a complete e...
2,814
Python
.py
77
31.428571
107
0.672921
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,587
boo.py
projecthamster_hamster/waflib/extras/boo.py
#! /usr/bin/env python # encoding: utf-8 # Yannick LM 2011 """ Support for the boo programming language, for example:: bld(features = "boo", # necessary feature source = "src.boo", # list of boo files gen = "world.dll", # target type = "library", # library/exe ("-target:xyz" flag) name ...
2,280
Python
.py
68
31.102941
94
0.678035
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,588
relocation.py
projecthamster_hamster/waflib/extras/relocation.py
#! /usr/bin/env python # encoding: utf-8 """ Waf 1.6 Try to detect if the project directory was relocated, and if it was, change the node representing the project directory. Just call: waf configure build Note that if the project directory name changes, the signatures for the tasks using files in that directory wi...
2,267
Python
.py
66
31.939394
109
0.721815
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,589
build_logs.py
projecthamster_hamster/waflib/extras/build_logs.py
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2013 (ita) """ A system for recording all outputs to a log file. Just add the following to your wscript file:: def init(ctx): ctx.load('build_logs') """ import atexit, sys, time, os, shutil, threading from waflib import ansiterm, Logs, Context # adding th...
2,824
Python
.py
96
26.666667
95
0.71776
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,590
why.py
projecthamster_hamster/waflib/extras/why.py
#! /usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2010 (ita) """ This tool modifies the task signature scheme to store and obtain information about the task execution (why it must run, etc):: def configure(conf): conf.load('why') After adding the tool, a full rebuild is necessary: waf clean build --zones=ta...
1,891
Python
.py
63
27.269841
142
0.696084
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,591
fast_partial.py
projecthamster_hamster/waflib/extras/fast_partial.py
#! /usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2017-2018 (ita) """ A system for fast partial rebuilds Creating a large amount of task objects up front can take some time. By making a few assumptions, it is possible to avoid posting creating task objects for targets that are already up-to-date. On a silly be...
15,511
Python
.py
452
30.533186
107
0.694459
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,592
freeimage.py
projecthamster_hamster/waflib/extras/freeimage.py
#!/usr/bin/env python # encoding: utf-8 # # written by Sylvain Rouquette, 2011 ''' To add the freeimage tool to the waf file: $ ./waf-light --tools=compat15,freeimage or, if you have waf >= 1.6.2 $ ./waf update --files=freeimage The wscript will look like: def options(opt): opt.load('compiler_cxx freeimage') def ...
2,117
Python
.py
59
33.118644
72
0.712677
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,593
ocaml.py
projecthamster_hamster/waflib/extras/ocaml.py
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2006-2010 (ita) "ocaml support" import os, re from waflib import Utils, Task from waflib.Logs import error from waflib.TaskGen import feature, before_method, after_method, extension EXT_MLL = ['.mll'] EXT_MLY = ['.mly'] EXT_MLI = ['.mli'] EXT_MLC = ['.c'] EXT_ML...
9,528
Python
.py
293
29.808874
117
0.680392
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,594
gdbus.py
projecthamster_hamster/waflib/extras/gdbus.py
#!/usr/bin/env python # encoding: utf-8 # Copyright Garmin International or its subsidiaries, 2018 # # Heavily based on dbus.py """ Compiles dbus files with **gdbus-codegen** Typical usage:: def options(opt): opt.load('compiler_c gdbus') def configure(conf): conf.load('compiler_c gdbus') def build(bld): tg = ...
2,906
Python
.py
77
35.441558
213
0.721178
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,595
batched_cc.py
projecthamster_hamster/waflib/extras/batched_cc.py
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2006-2015 (ita) """ Instead of compiling object files one by one, c/c++ compilers are often able to compile at once: cc -c ../file1.c ../file2.c ../file3.c Files are output on the directory where the compiler is called, and dependencies are more difficult to trac...
4,694
Python
.py
133
32.421053
172
0.692104
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,596
fc_xlf.py
projecthamster_hamster/waflib/extras/fc_xlf.py
#! /usr/bin/env python # encoding: utf-8 # harald at klimachs.de import re from waflib import Utils,Errors from waflib.Tools import fc,fc_config,fc_scan from waflib.Configure import conf from waflib.Tools.compiler_fc import fc_compiler fc_compiler['aix'].insert(0, 'fc_xlf') @conf def find_xlf(conf): """Find the xlf...
1,615
Python
.py
52
28.942308
115
0.688789
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,597
color_rvct.py
projecthamster_hamster/waflib/extras/color_rvct.py
#!/usr/bin/env python # encoding: utf-8 # Replaces the default formatter by one which understands RVCT output and colorizes it. __author__ = __maintainer__ = "Jérôme Carretero <cJ-waf@zougloub.eu>" __copyright__ = "Jérôme Carretero, 2012" import sys import atexit from waflib import Logs errors = [] def show_errors...
1,317
Python
.py
42
27.380952
87
0.675119
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,598
fluid.py
projecthamster_hamster/waflib/extras/fluid.py
#!/usr/bin/python # encoding: utf-8 # Grygoriy Fuchedzhy 2009 """ Compile fluid files (fltk graphic library). Use the 'fluid' feature in conjunction with the 'cxx' feature. """ from waflib import Task from waflib.TaskGen import extension class fluid(Task.Task): color = 'BLUE' ext_out = ['.h'] run_str = '${FLUID...
862
Python
.py
23
35.652174
113
0.701923
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)
20,599
msvs.py
projecthamster_hamster/waflib/extras/msvs.py
#! /usr/bin/env python # encoding: utf-8 # Avalanche Studios 2009-2011 # Thomas Nagy 2011 """ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this...
31,202
Python
.py
905
31.418785
177
0.70063
projecthamster/hamster
1,069
250
128
GPL-3.0
9/5/2024, 5:12:46 PM (Europe/Amsterdam)