repo_name stringlengths 7 65 | path stringlengths 5 185 | copies stringlengths 1 4 | size stringlengths 4 6 | content stringlengths 977 990k | license stringclasses 14
values | hash stringlengths 32 32 | line_mean float64 7.18 99.4 | line_max int64 31 999 | alpha_frac float64 0.25 0.95 | ratio float64 1.5 7.84 | autogenerated bool 1
class | config_or_test bool 2
classes | has_no_keywords bool 2
classes | has_few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rhinstaller/anaconda | pyanaconda/installation_tasks.py | 4 | 9170 | # installation_tasks.py
# Container classes for running of installation tasks.
#
# Copyright (C) 2016 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your optio... | gpl-2.0 | fbbd10998aab6e26895e4b11e7636fec | 30.512027 | 98 | 0.617448 | 4.25522 | false | false | false | false |
rhinstaller/anaconda | pyanaconda/modules/network/firewall/firewall.py | 6 | 8649 | #
# Firewall configuration module.
#
# Copyright (C) 2018 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later version.
# This program is distr... | gpl-2.0 | 8016a4b1947cca86c694fac5a8012bb2 | 36.120172 | 98 | 0.667129 | 4.474392 | false | false | false | false |
andikleen/pmu-tools | event_download.py | 1 | 10436 | #!/usr/bin/env python
# Copyright (c) 2014-2020, Intel Corporation
# Author: Andi Kleen
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distribut... | gpl-2.0 | e3a804ac55f0d746d6c6e7710f6e3b30 | 33.90301 | 128 | 0.542545 | 3.720499 | false | false | false | false |
rhinstaller/anaconda | pyanaconda/kexec.py | 3 | 4647 | # kexec.py
#
# Setup kexec to restart the system using the default bootloader entry
#
# Copyright (C) 2015 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your o... | gpl-2.0 | fed7bb1aec6ca6b212496d985a6882d2 | 36.780488 | 106 | 0.669249 | 3.784202 | false | false | false | false |
rhinstaller/anaconda | pyanaconda/ui/gui/spokes/installation_source.py | 3 | 63850 | # Installation source spoke classes
#
# Copyright (C) 2019 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later version.
# This program is dist... | gpl-2.0 | d3c9baf565e369fb37e57a6dc66d65c0 | 41.200925 | 105 | 0.610274 | 4.068952 | false | false | false | false |
rhinstaller/anaconda | pyanaconda/core/startup/dbus_launcher.py | 5 | 6026 | #
# Functions to launch and test DBus session.
#
# Functions here are NOT RECOMMENDED to be called in modules. These functions
# could have unexpected behavior when called in modules and not in main
# anaconda application.
#
# Copyright (C) 2018
# Red Hat, Inc. All rights reserved.
#
# This program is free software; y... | gpl-2.0 | 1f1394a09daaca64384ca72d335e0b6f | 31.397849 | 98 | 0.642217 | 3.76625 | false | true | false | false |
rhinstaller/anaconda | tests/unit_tests/pyanaconda_tests/modules/storage/partitioning/test_module_part_specification.py | 5 | 3283 | #
# Copyright (C) 2020 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later version.
# This program is distributed in the hope that it will be... | gpl-2.0 | 3dea856c88821737eb8779ee6f025c23 | 46.57971 | 96 | 0.70728 | 3.452156 | false | true | false | false |
rhinstaller/anaconda | pyanaconda/modules/storage/checker/utils.py | 3 | 30069 | #
# Copyright (C) 2019 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later version.
# This program is distributed in the hope that it will be... | gpl-2.0 | ee9f75ad35af8ed785801226c74fd089 | 39.361074 | 98 | 0.635804 | 4.323364 | false | false | false | false |
rhinstaller/anaconda | pyanaconda/modules/storage/partitioning/constants.py | 6 | 1499 | #
# The constants for partitioning.
#
# Copyright (C) 2019 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later version.
# This program is dist... | gpl-2.0 | f0894ef82822bd2adc2a1f5fa6d18e7e | 45.84375 | 98 | 0.775851 | 3.88342 | false | false | false | false |
rhinstaller/anaconda | pyanaconda/modules/payloads/source/live_os/live_os.py | 3 | 4765 | #
# Kickstart module for Live OS payload source.
#
# Copyright (C) 2019 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later version.
# This pr... | gpl-2.0 | 66fd98240281a71e33c4f18d75a3cc07 | 31.862069 | 97 | 0.654984 | 4.139878 | false | false | false | false |
rhinstaller/anaconda | pyanaconda/modules/storage/partitioning/interactive/interactive_partitioning.py | 5 | 3393 | #
# Copyright (C) 2019 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later version.
# This program is distributed in the hope that it will be... | gpl-2.0 | 77d54dfdf4348adee6c1a2cf36d5d919 | 38.453488 | 98 | 0.710286 | 4.204461 | false | false | false | false |
andikleen/pmu-tools | parser/mmap.py | 1 | 2751 | # track mmap updates in a perf stream and allow lookup of symbols
#
# Copyright (c) 2013-2014, Intel Corporation
# Author: Andi Kleen
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Soft... | gpl-2.0 | fc73d5edc7eb54659ae939d290e768bb | 34.269231 | 77 | 0.562704 | 3.682731 | false | false | false | false |
rhinstaller/anaconda | pyanaconda/modules/storage/partitioning/validate.py | 5 | 2374 | #
# Tasks for the validation of the storage model.
#
# Copyright (C) 2019 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later version.
# This ... | gpl-2.0 | 0b18f3873edf654df49277c2fc0719c2 | 33.911765 | 77 | 0.70219 | 4.38817 | false | false | false | false |
rhinstaller/anaconda | pyanaconda/modules/common/structures/kickstart.py | 5 | 3975 | #
# DBus structures for kickstart.
#
# Copyright (C) 2019 Red Hat, Inc. All rights reserved.
#
# 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 op... | gpl-2.0 | 5fd43014c1b047ef55f61393ca112e8a | 24.811688 | 71 | 0.612075 | 4.106405 | false | false | false | false |
rhinstaller/anaconda | pyanaconda/ui/gui/spokes/datetime_spoke.py | 3 | 35530 | # Datetime configuration spoke class
#
# Copyright (C) 2012-2013 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later version.
# This program i... | gpl-2.0 | 5e48ba8ab154141e03dc50bbab8b29fa | 35.107724 | 97 | 0.613116 | 3.89797 | false | false | false | false |
rhinstaller/anaconda | pyanaconda/modules/storage/iscsi/discover.py | 5 | 6674 | #
# Discovery tasks
#
# Copyright (C) 2019 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later version.
# This program is distributed in the h... | gpl-2.0 | bfcc4540388da0ad0f7c39e2270c6fa2 | 36.284916 | 97 | 0.644591 | 4.356397 | false | false | false | false |
rhinstaller/anaconda | pyanaconda/modules/storage/installation.py | 3 | 14479 | #
# Installation tasks
#
# Copyright (C) 2019 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later version.
# This program is distributed in th... | gpl-2.0 | 17082b65b632c58a70b76b7de2194565 | 34.92804 | 99 | 0.610332 | 4.1499 | false | false | false | false |
rhinstaller/anaconda | pyanaconda/core/constants.py | 3 | 16103 | #
# constants.py: anaconda constants
#
# Copyright (C) 2001 Red Hat, Inc. All rights reserved.
#
# 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 ... | gpl-2.0 | 8de74678cdbf209b93120bc038828db2 | 30.761341 | 168 | 0.733901 | 3.18682 | false | false | false | false |
andikleen/pmu-tools | node.py | 1 | 1923 | # Helper classes and functions for nodes
# Decorator class to declare reference dependecies between classes
class requires(object):
"""Decorator to mark required references. These references will
be added to the object as instance attributes. Example:
@requires("ref1", "ref2")
class SomeClass(object):... | gpl-2.0 | 59a68a1b755c5c67295844da619be29e | 30.016129 | 75 | 0.634945 | 4.180435 | false | false | false | false |
rhinstaller/anaconda | pyanaconda/ui/gui/spokes/lib/network_secret_agent.py | 5 | 11628 | # Implementation of GUI Secret Agent for wireless configuration
#
# Copyright (C) 2020 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later ve... | gpl-2.0 | ca4b3f67d07156689faf457327bc5d09 | 38.020134 | 92 | 0.589267 | 4.146933 | false | false | false | false |
rhinstaller/anaconda | pyanaconda/modules/payloads/payload/live_image/download_progress.py | 5 | 2577 | #
# Copyright (C) 2021 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later version.
# This program is distributed in the hope that it will be... | gpl-2.0 | 4312ff5adce9440b45ce3ae35004ad09 | 34.791667 | 77 | 0.666279 | 4.149758 | false | false | false | false |
rhinstaller/anaconda | tests/rpm_tests/test_create_rpm.py | 4 | 13987 | #
# Copyright (C) 2018 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later version.
# This program is distributed in the hope that it will be... | gpl-2.0 | 9fe2d18123da6bea0203daa6c02cb477 | 29.740659 | 97 | 0.607135 | 3.863812 | false | false | false | false |
rhinstaller/anaconda | pyanaconda/ui/gui/spokes/blivet_gui.py | 5 | 12140 | #
# Copyright (C) 2015 - 2017 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later version.
# This program is distributed in the hope that it ... | gpl-2.0 | 0218bfea70ddb942db9b92188b71158a | 36.239264 | 143 | 0.647035 | 4.094435 | false | false | false | false |
rhinstaller/anaconda | pyanaconda/modules/common/structures/validation.py | 6 | 1962 | #
# DBus structures for validation.
#
# Copyright (C) 2019 Red Hat, Inc. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your o... | gpl-2.0 | c4d218ddc0770db74da2fe30f8e3cf28 | 27.852941 | 71 | 0.66106 | 4.139241 | false | false | false | false |
andikleen/pmu-tools | listutils.py | 1 | 1302 | # generic utilities for lists
import sys
from itertools import chain
if sys.version_info.major == 3:
from itertools import zip_longest
else:
from itertools import izip_longest
zip_longest = izip_longest
def flatten(x):
return list(chain(*x))
def filternot(p, l):
return list(filter(lambda x: not p... | gpl-2.0 | 1b2806e6424b16b92810bbdf8a8d8a8e | 21.067797 | 69 | 0.579877 | 3.137349 | false | false | false | false |
rhinstaller/anaconda | tests/unit_tests/pyanaconda_tests/modules/subscription/test_subscription_tasks.py | 5 | 45702 | #
# Copyright (C) 2020 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later version.
# This program is distributed in the hope that it will be... | gpl-2.0 | 3d8d7634df7ae88f32035544c34baa9a | 48.461039 | 98 | 0.584942 | 4.45482 | false | true | false | false |
rhinstaller/anaconda | pyanaconda/modules/storage/partitioning/interactive/utils.py | 3 | 40362 | #
# Utilities for the interactive partitioning module
#
# Copyright (C) 2019 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later version.
# Th... | gpl-2.0 | e11894777fad641b9c74dff41ff24cc1 | 31.523771 | 95 | 0.657078 | 4.035393 | false | false | false | false |
andikleen/pmu-tools | ucevent/md2hman.py | 1 | 1297 | #!/usr/bin/env python
# convert README.md to include files for help2man
from __future__ import print_function
import sys
import re
skip_sections = ( "Command Line options reference", "Debugging and testing", "Support",
"Author", "Other Projects providing uncore monitoring")
tabmode = False
skip = False
for ... | gpl-2.0 | 66aba88241245a26c66a70ef5a96eab0 | 26.020833 | 87 | 0.466461 | 3.234414 | false | false | false | false |
rhinstaller/anaconda | pyanaconda/modules/storage/partitioning/custom/custom_module.py | 6 | 3689 | #
# Custom partitioning module.
#
# Copyright (C) 2019 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later version.
# This program is distribu... | gpl-2.0 | aca5af3873fa20d17bae66e0162c4faa | 34.471154 | 85 | 0.689347 | 4.44994 | false | false | false | false |
rhinstaller/anaconda | pyanaconda/modules/payloads/source/harddrive/harddrive.py | 5 | 6730 | #
# Kickstart module for Hard drive payload source.
#
# Copyright (C) 2020 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later version.
# This... | gpl-2.0 | c02ec14de920c268360c8033362aae9f | 31.990196 | 96 | 0.646805 | 4.259494 | false | false | false | false |
sosreport/sos | sos/report/plugins/cs.py | 4 | 4482 | # Copyright (C) 2007-2010 Red Hat, Inc., Kent Lamb <klamb@redhat.com>
# Marc Sauton <msauton@redhat.com>
# Pierre Carrier <pcarrier@redhat.com>
# This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted mat... | gpl-2.0 | 2a4e186904f13007a139a17f983ae925 | 35.737705 | 77 | 0.490183 | 3.543083 | false | false | false | false |
sosreport/sos | sos/report/plugins/openstack_database.py | 3 | 2471 | # Copyright (C) 2021 Red Hat, Inc., Jake Hunsaker <jhunsake@redhat.com>
# This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the GNU Gen... | gpl-2.0 | ef608e38dac99cde3488e5f5ebdae651 | 28.771084 | 78 | 0.602185 | 3.90981 | false | false | false | false |
sosreport/sos | sos/report/plugins/teamd.py | 2 | 1096 | # Copyright (C) 2014 Red Hat, Inc. Bryn M. Reeves <bmr@redhat.com>
# This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the GNU General P... | gpl-2.0 | 34e797ced368c888acd2f2352a5eba1a | 30.314286 | 74 | 0.632299 | 3.512821 | false | false | false | false |
sosreport/sos | sos/report/plugins/opencontrail.py | 3 | 1350 | # Copyright (C) 2021 Mirntis, Inc., Oleksii Molchanov <omolchanov@mirantis.com>
# This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the... | gpl-2.0 | f571970c2d850c69462bc5639f3743c9 | 33.615385 | 79 | 0.65037 | 3.543307 | false | false | false | false |
sosreport/sos | tests/report_tests/plugin_tests/teamd.py | 2 | 1754 | # This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the GNU General Public License.
#
# See the LICENSE file in the source distribution ... | gpl-2.0 | b3cbe6eb178af59f8d5c6b8720a3ea1f | 37.130435 | 94 | 0.692132 | 3.747863 | false | true | false | false |
sosreport/sos | sos/report/plugins/sas3ircu.py | 4 | 1245 | # This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the GNU General Public License.
#
# See the LICENSE file in the source distribution ... | gpl-2.0 | 477b3a298b28ea0ca958b19148b4c35f | 31.763158 | 79 | 0.660241 | 3.640351 | false | false | false | false |
sosreport/sos | sos/report/plugins/clear_containers.py | 4 | 2536 | # This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the GNU General Public License.
#
# See the LICENSE file in the source distribution ... | gpl-2.0 | 1acaaa12d611a1d037c6a3ef5f21ac5a | 30.308642 | 74 | 0.611987 | 3.950156 | false | true | false | false |
sosreport/sos | sos/cleaner/mappings/ip_map.py | 3 | 7841 | # Copyright 2020 Red Hat, Inc. Jake Hunsaker <jhunsake@redhat.com>
# This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the GNU General ... | gpl-2.0 | ef0d26210c8f5543ac632efe032c9c7a | 37.625616 | 79 | 0.608213 | 4.211063 | false | false | false | false |
sosreport/sos | sos/report/plugins/qaucli.py | 4 | 1399 | # This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the GNU General Public License.
#
# See the LICENSE file in the source distribution ... | gpl-2.0 | 526ab7166d46158791a19fdf95d1680a | 33.121951 | 74 | 0.570407 | 3.730667 | false | false | false | false |
sosreport/sos | sos/cleaner/mappings/hostname_map.py | 2 | 10404 | # Copyright 2020 Red Hat, Inc. Jake Hunsaker <jhunsake@redhat.com>
# This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the GNU General ... | gpl-2.0 | c3e406254a203842db5a9b89e6e1e3d1 | 39.325581 | 79 | 0.546328 | 4.333195 | false | false | false | false |
sosreport/sos | sos/cleaner/archives/sos.py | 3 | 3556 | # Copyright 2021 Red Hat, Inc. Jake Hunsaker <jhunsake@redhat.com>
# This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the GNU General ... | gpl-2.0 | 994ac1688f47fdb1eaebe65061fe3a60 | 31.036036 | 79 | 0.638358 | 3.83603 | false | false | false | false |
sosreport/sos | sos/report/plugins/nodejs.py | 5 | 1209 | # Copyright (C) 2016 Red Hat, Inc., Tomas Tomecek <ttomecek@redhat.com>
# This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the GNU Gen... | gpl-2.0 | cf825d69b8ffa8f1140fc281bbe78613 | 30.815789 | 74 | 0.679074 | 3.641566 | false | false | false | false |
sosreport/sos | sos/report/plugins/pam.py | 4 | 1372 | # This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the GNU General Public License.
#
# See the LICENSE file in the source distribution ... | gpl-2.0 | 05088fc086eb35a85170e843998ca847 | 24.886792 | 79 | 0.620991 | 3.508951 | false | false | false | false |
sosreport/sos | sos/report/plugins/opensvc.py | 4 | 2675 | # This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the GNU General Public License.
#
# See the LICENSE file in the source distribution ... | gpl-2.0 | 6f51bd600b48e17576a754bf2e0d4240 | 31.228916 | 77 | 0.508785 | 3.783593 | false | false | false | false |
sosreport/sos | sos/report/plugins/gcp.py | 2 | 5364 | # This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the GNU General Public License.
#
# See the LICENSE file in the source distribution ... | gpl-2.0 | 5aca22736e77d40bb438919439a9d2f2 | 36.25 | 78 | 0.595078 | 4.47 | false | false | false | false |
sosreport/sos | sos/report/plugins/fwupd.py | 4 | 1365 | # This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the GNU General Public License.
#
# See the LICENSE file in the source distribution ... | gpl-2.0 | 6b65019651a2e882dc9a6f2b31d11e15 | 27.4375 | 74 | 0.592674 | 3.64 | false | false | false | false |
sosreport/sos | plugins_overview.py | 4 | 4944 | # this script generates for each plugin:
# - its name
# - URL to upstream code
# - list of distros
# - list of profiles
# - list of packages that enable the plugin (no other enabling pieces)
# - list of paths it collects (add_copy_spec)
# - list of paths it forbits to collect (add_forbidden_path)
# - list of commands i... | gpl-2.0 | 9aaeaf4df38ec034af5d342c60f56bd3 | 40.546218 | 131 | 0.594256 | 3.518861 | false | false | false | false |
sosreport/sos | sos/report/plugins/crio.py | 2 | 3700 | # Copyright (C) 2018 Red Hat, Inc. Daniel Walsh <dwalsh@redhat.com>
# This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the GNU General... | gpl-2.0 | 4add7ff2586edb7264737c68432298f2 | 30.896552 | 78 | 0.538378 | 3.748734 | false | false | false | false |
sosreport/sos | sos/report/plugins/rpmostree.py | 3 | 1145 | # Copyright (C) 2019 Red Hat, Inc., Jake Hunsaker <jhunsake@redhat.com>
# This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the GNU Gen... | gpl-2.0 | 4a049aebc48f5381fcb23fa37a04d78f | 26.261905 | 77 | 0.61048 | 3.555901 | false | false | false | false |
sosreport/sos | sos/report/plugins/gluster.py | 4 | 5283 | # This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the GNU General Public License.
#
# See the LICENSE file in the source distribution ... | gpl-2.0 | 47397d783390196a2dba65ccfa5cc905 | 38.721805 | 79 | 0.539277 | 3.93373 | false | false | false | false |
sosreport/sos | sos/report/plugins/landscape.py | 5 | 3183 | # This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the GNU General Public License.
#
# See the LICENSE file in the source distribution ... | gpl-2.0 | b5b6a2d7786a9381d5d1183610513d32 | 31.151515 | 74 | 0.5011 | 3.629418 | false | false | false | false |
sosreport/sos | sos/cleaner/parsers/keyword_parser.py | 3 | 1661 | # Copyright 2020 Red Hat, Inc. Jake Hunsaker <jhunsake@redhat.com>
# This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the GNU General ... | gpl-2.0 | 186cac9563699069380fd39e8ee90fbc | 37.627907 | 75 | 0.656833 | 4.071078 | false | false | false | false |
sosreport/sos | sos/report/plugins/ds.py | 4 | 3534 | # Copyright (C) 2007 Red Hat, Inc., Kent Lamb <klamb@redhat.com>
# Copyright (C) 2014 Red Hat, Inc., Bryn M. Reeves <bmr@redhat.com>
# Copyright (C) 2021 Red Hat, Inc., Mark Reynolds <mreynolds@redhat.com>
#
# This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made a... | gpl-2.0 | 5c0567fc846da7a0cc8dfb3769d3bf5f | 36.595745 | 79 | 0.568478 | 2.972246 | false | false | false | false |
sosreport/sos | sos/report/plugins/pcp.py | 4 | 6374 | # Copyright (C) 2014 Michele Baldessari <michele at acksyn.org>
# This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the GNU General Pub... | gpl-2.0 | afc0bbf9cda839f5a31dce1962d7c18f | 37.865854 | 79 | 0.560088 | 3.638128 | false | false | false | false |
sosreport/sos | sos/report/plugins/saphana.py | 4 | 2564 | # This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the GNU General Public License.
#
# See the LICENSE file in the source distribution ... | gpl-2.0 | dbf7faa3e99224e41a67487face30714 | 35.628571 | 78 | 0.50273 | 3.721335 | false | false | false | false |
sosreport/sos | sos/report/plugins/gnocchi.py | 2 | 3693 | # Copyright (C) 2016 Red Hat, Inc., Sachin Patil <psachin@redhat.com>
# Copyright (C) 2017 Red Hat, Inc., Martin Schuppert <mschuppert@redhat.com>
# This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redist... | gpl-2.0 | 41b5a0c3588d02ce50b4e28e2901719e | 30.564103 | 79 | 0.548335 | 3.507123 | false | false | false | false |
sosreport/sos | sos/report/plugins/s390.py | 4 | 2432 | # Copyright (C) 2007 Red Hat, Inc., Justin Payne <jpayne@redhat.com>
# This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the GNU Genera... | gpl-2.0 | 54220ec59cbbc41f44703c3c952aefa3 | 29.4 | 74 | 0.504523 | 3.313351 | false | false | false | false |
sosreport/sos | sos/report/plugins/mysql.py | 2 | 4133 | # This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the GNU General Public License.
#
# See the LICENSE file in the source distribution ... | gpl-2.0 | 9fff24dbc623130f515a6d0dbb7651a5 | 30.310606 | 77 | 0.54827 | 3.550687 | false | false | false | false |
localwiki/localwiki-backend-server | localwiki/stars/signals.py | 3 | 9906 | from django.db.models.signals import post_save, post_delete
from django.utils.translation import ugettext as _
from django.conf import settings
from django.contrib.auth.models import User
from django.core.mail.utils import DNS_NAME
from django.conf import settings
from actstream import action
from follow.models import... | gpl-2.0 | 0b927553311725946783b60f76d9faf1 | 33.880282 | 112 | 0.638199 | 3.791045 | false | false | false | false |
localwiki/localwiki-backend-server | localwiki/region_scores/models.py | 3 | 1970 | from celery import shared_task
from django.utils.translation import ugettext as _
from django.db import models
from django.db.models.signals import post_save
from regions.models import Region
class RegionScore(models.Model):
"""
A score assigned to a region that, roughly speaking, represents its
quality... | gpl-2.0 | c3c9ec0aa04ecc7f01de26bb19bcaf4a | 25.621622 | 71 | 0.658376 | 3.709981 | false | false | false | false |
localwiki/localwiki-backend-server | localwiki/redirects/views.py | 3 | 5822 | from django.core.urlresolvers import reverse
from django.utils.translation import ugettext as _
from versionutils.versioning.views import UpdateView
from versionutils import diff
from utils.views import CreateObjectMixin, PermissionRequiredMixin, DeleteView
from pages.models import Page, slugify
from regions.views imp... | gpl-2.0 | 0ae59637dd05583fc14ee338999447e4 | 35.3875 | 93 | 0.627791 | 4.155603 | false | false | false | false |
localwiki/localwiki-backend-server | localwiki/versionutils/versioning/utils.py | 3 | 7642 | from django.db import models
from django.conf import settings
from django.db.models.constants import LOOKUP_SEP
import exceptions
def is_versioned(m):
"""
Args:
m: A model instance or model class.
Returns:
True if the model has changes tracked.
"""
history_manager_name = getattr(... | gpl-2.0 | 665a642dfe4db8f495bef6c78c90a53d | 31.798283 | 76 | 0.591468 | 4.056263 | false | false | false | false |
localwiki/localwiki-backend-server | localwiki/regions/migrations/0007_auto__add_field_regionsettings_logo.py | 3 | 7360 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'RegionSettings.logo'
db.add_column(u'regions_regionsettings', 'logo',
... | gpl-2.0 | ffe7ae2666b8c3bad0bb3aaf3208f11e | 72.61 | 205 | 0.560054 | 3.663514 | false | false | false | false |
localwiki/localwiki-backend-server | localwiki/page_scores/migrations/0001_initial.py | 3 | 4489 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'PageScore'
db.create_table(u'page_scores_pagescore', (
(u'id', self.gf('django.d... | gpl-2.0 | 932f84867c17aecd90ef589ac73e771a | 62.239437 | 205 | 0.55959 | 3.649593 | false | false | false | false |
localwiki/localwiki-backend-server | localwiki/regions/views.py | 2 | 19777 | import copy
import random
import urllib
from itertools import chain
from django.conf import settings
from django.views.generic import TemplateView as DjangoTemplateView
from django.db.models import Q
from django.utils.translation import get_language
from django.utils import translation
from django.views.generic import... | gpl-2.0 | bb99d29b6f7a0ec72ac1fbfa414ad7c3 | 37.778431 | 143 | 0.636851 | 3.972083 | false | false | false | false |
localwiki/localwiki-backend-server | localwiki/tags/tag_utils.py | 3 | 2051 | from copy import copy
from .models import *
def fix_tags(region, pts_qs=None):
"""
Ensure that the provided `PageTagSet`s point at
`Tag` models /inside/ the provided `region`.
"""
# XXX TODO: This should be no longer needed once we have a single
# global `Tag` model rather than per-region `Ta... | gpl-2.0 | 4342204b294aea579c5ec31c8815b857 | 32.622951 | 85 | 0.496343 | 4.05336 | false | false | false | false |
localwiki/localwiki-backend-server | localwiki/regions/api.py | 3 | 2334 | from django.conf import settings
from rest_framework import viewsets
from rest_framework_filters import filters, FilterSet
from rest_framework_gis.filters import GeoFilterSet
from main.api import router
from main.api.views import AllowFieldLimitingMixin
from .models import Region, RegionSettings
from .serializers im... | gpl-2.0 | 487e90ee059e39ec5e3325d09ac57afb | 32.826087 | 185 | 0.710368 | 4.101933 | false | false | false | false |
localwiki/localwiki-backend-server | localwiki/links/migrations/0006_populate_included_tag_lists.py | 3 | 7288 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import DataMigration
from django.utils.encoding import smart_str
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
from pages.models import slugify
from links import extract_included_t... | gpl-2.0 | 0cd1982b1a5a4ccac758da37aecd16b9 | 66.481481 | 205 | 0.549671 | 3.752832 | false | false | false | false |
localwiki/localwiki-backend-server | localwiki/maps/models.py | 3 | 1259 | from django.contrib.gis.db import models
from django.core.urlresolvers import reverse
from regions.models import Region
from versionutils import versioning
from .fields import FlatCollectionFrom
class MapData(models.Model):
points = models.MultiPointField(null=True, blank=True)
lines = models.MultiLineStrin... | gpl-2.0 | c2cdf6254818b1fc8b6491ba1f7d6517 | 28.27907 | 76 | 0.691025 | 3.946708 | false | false | false | false |
localwiki/localwiki-backend-server | localwiki/versionutils/diff/views.py | 4 | 2522 | from dateutil.parser import parse as dateparser
from django.shortcuts import render_to_response
from django.views.generic import DetailView
from django.http import Http404
from versionutils.versioning import get_versions
class CompareView(DetailView):
"""
A Class-based view used for displaying a difference.... | gpl-2.0 | 79807d11c582d96bb538637aee4817fd | 37.8 | 74 | 0.572958 | 4.182421 | false | false | false | false |
localwiki/localwiki-backend-server | localwiki/regions/models.py | 3 | 5060 | import re
import unicodedata
from urllib import unquote_plus
from django.db import IntegrityError
from django.db.models import Count
from django.conf import settings
from django.utils.translation import ugettext as _
from django.utils.translation import ugettext_lazy
from django.contrib.auth.models import User
from dj... | gpl-2.0 | 5139d87b0485ea97ddc0e22552576a72 | 33.657534 | 183 | 0.664822 | 3.795949 | false | false | false | false |
localwiki/localwiki-backend-server | localwiki/maps/forms.py | 3 | 3320 | from django.conf import settings
from django import forms
from django.contrib.gis.geos import GeometryCollection, GEOSGeometry
from olwidget.forms import MapModelForm
from versionutils.merging.forms import MergeMixin
from versionutils.versioning.forms import CommentMixin
from .models import MapData
from .widgets imp... | gpl-2.0 | 9d6ca3576803bd3daf1ed424b35c3390 | 36.303371 | 78 | 0.626807 | 3.92435 | false | false | false | false |
localwiki/localwiki-backend-server | localwiki/utils/templatetags/smart_url.py | 3 | 8132 | import re
from copy import copy
from django.template import Library, Node
from django.template.defaulttags import URLNode
from django.utils.encoding import smart_text
from django.conf import settings
from django.template import TemplateSyntaxError
from django_hosts.templatetags.hosts import HostURLNode
from regions.... | gpl-2.0 | 2648292101e6fe60972845c24b37f623 | 38.285024 | 149 | 0.597024 | 4.102926 | false | false | false | false |
localwiki/localwiki-backend-server | localwiki/links/__init__.py | 3 | 3426 | import html5lib
import urlparse
from pages.models import slugify, url_to_name
def _is_absolute(href):
return bool(urlparse.urlparse(href).scheme)
def _is_anchor_link(href):
return href.startswith('#')
def _is_plugin(a):
if 'class' in a.attrib:
return 'plugin' in a.attrib['class']
return Fals... | gpl-2.0 | 545252e474f62ad790cc873936c2dc3a | 27.31405 | 89 | 0.587274 | 3.687836 | false | false | false | false |
localwiki/localwiki-backend-server | localwiki/users/migrations/0001_initial.py | 3 | 4331 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'UserProfile'
db.create_table(u'users_userprofile', (
(u'id', self.gf('django.db.... | gpl-2.0 | 52849216690cad64afe7a2e13595769c | 60.885714 | 187 | 0.562688 | 3.717597 | false | false | false | false |
localwiki/localwiki-backend-server | localwiki/links/migrations/0005_auto__add_includedtagslist__add_unique_includedtagslist_source_include.py | 3 | 7598 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'IncludedTagList'
db.create_table(u'links_includedtaglist', (
(u'id', self.gf('dj... | gpl-2.0 | 88a21f50e7277f3447f9c0a2438febde | 70.009346 | 205 | 0.568439 | 3.612934 | false | false | false | false |
localwiki/localwiki-backend-server | localwiki/users/api.py | 3 | 1665 | from django.contrib.auth.models import User, Group
from rest_framework import viewsets
from rest_framework_filters import filters, FilterSet
from main.api import router
from main.api.views import AllowFieldLimitingMixin
from .serializers import UserSerializer
DATETIME_INPUT_FORMATS = (
'%Y-%m-%dT%H:%M:%S.%f',
)... | gpl-2.0 | 9b98aa87e6b3bc6cea928884e04d3131 | 29.833333 | 138 | 0.691892 | 3.945498 | false | false | false | false |
localwiki/localwiki-backend-server | localwiki/blog/urls.py | 3 | 1279 | from django.conf.urls.defaults import *
from django.views.generic.detail import DetailView
from django.views.generic.dates import ArchiveIndexView
from django.conf import settings
from .feeds import BlogPostsFeed
from .models import Post
class FullBodyFeed(BlogPostsFeed):
def item_description(self, item):
... | gpl-2.0 | c1132dda3e1aabc0aec85e605b0992b5 | 27.422222 | 107 | 0.647381 | 3.533149 | false | false | false | false |
localwiki/localwiki-backend-server | localwiki/regions/migrations/0008_auto__add_field_regionsettings_domain.py | 3 | 7465 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'RegionSettings.domain'
db.add_column(u'regions_regionsettings', 'domain',
... | gpl-2.0 | 3078a57d94f08f39f23ef8a49bfe53b8 | 72.920792 | 205 | 0.559812 | 3.664703 | false | false | false | false |
localwiki/localwiki-backend-server | localwiki/pages/serializers.py | 3 | 2554 | from rest_framework import serializers
from rest_framework.exceptions import ParseError
from localwiki.main.api.fields import HISTORY_FIELDS
from tags.models import Tag, PageTagSet
from .models import Page, PageFile
class HyperlinkedFileField(serializers.FileField):
"""
Link to the full file URI rather than... | gpl-2.0 | 6ea1436df17f85eca674d161820af3c7 | 30.530864 | 78 | 0.636648 | 3.978193 | false | false | false | false |
candlepin/python-rhsm | test/unit/connection-tests.py | 1 | 23288 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2011 - 2012 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. You... | gpl-2.0 | a8565f2cc744582c5b2f1400564a60bd | 38.181818 | 124 | 0.619618 | 4.037121 | false | true | false | false |
candlepin/python-rhsm | src/rhsm/connection.py | 1 | 54767 | # A proxy interface to initiate and interact with candlepin.
#
# Copyright (c) 2010 - 2012 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FI... | gpl-2.0 | b34aeddcd4c63bb00212fd9e41779a56 | 37.731966 | 122 | 0.600599 | 4.268667 | false | false | false | false |
exaile/exaile | plugins/multialarmclock/cellrenderers.py | 1 | 5309 | # Copyright (C) 2010 by Brian Parma
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 1, or (at your option)
# any later version.
#
# This program is distributed in the hope that ... | gpl-2.0 | 8f4d5d0a430d0f2da3335975c08cca4f | 33.474026 | 110 | 0.610096 | 3.797568 | false | false | false | false |
exaile/exaile | plugins/lastfmdynamic/__init__.py | 1 | 2574 | # Copyright (C) 2009-2010 Aren Olson
#
# 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, or (at your option)
# any later version.
#
# This program is distributed in the hope that... | gpl-2.0 | 9090fa13d00fa8a617cc844baaab5306 | 30.777778 | 92 | 0.702797 | 3.779736 | false | false | false | false |
exaile/exaile | xl/xdg.py | 1 | 4888 | # Copyright (C) 2008-2010 Adam Olsen
#
# 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, or (at your option)
# any later version.
#
# This program is distributed in the hope that... | gpl-2.0 | 5d771187b9866d9dd3308fc11b4cf1bf | 26.460674 | 84 | 0.686784 | 3.141388 | false | true | false | false |
exaile/exaile | xlgui/panel/menus.py | 1 | 10310 | # Copyright (C) 2014 Dustin Spicuzza <dustin@virtualroadside.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is... | gpl-2.0 | 782cb74152b271900058478b56a9d1d3 | 27.879552 | 87 | 0.642386 | 3.899395 | false | false | false | false |
exaile/exaile | xlgui/preferences/collection.py | 1 | 2775 | # Copyright (C) 2010 Adam Olsen
#
# 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, or (at your option)
# any later version.
#
# This program is distributed in the hope that it w... | gpl-2.0 | ad4690d604664f7436071a7517361599 | 34.126582 | 81 | 0.683964 | 3.848821 | false | false | false | false |
exaile/exaile | xlgui/preferences/__init__.py | 1 | 8885 | # Copyright (C) 2008-2010 Adam Olsen
#
# 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, or (at your option)
# any later version.
#
# This program is distributed in the hope that... | gpl-2.0 | 57739759c03a8bc368216dd85285f917 | 31.075812 | 87 | 0.58233 | 4.175282 | false | false | false | false |
jim-easterbrook/pywws | src/pywws/service/mqtt.py | 1 | 13764 | # pywws - Python software for USB Wireless Weather Stations
# http://github.com/jim-easterbrook/pywws
# Copyright (C) 2018-22 pywws contributors
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation;... | gpl-2.0 | 2ba089e9549e96e352080b61bde697c8 | 46.958188 | 140 | 0.564952 | 3.107699 | false | false | false | false |
jim-easterbrook/pywws | src/pywws/service/weathercloud.py | 1 | 4762 | # pywws - Python software for USB Wireless Weather Stations
# http://github.com/jim-easterbrook/pywws
# Copyright (C) 2018-22 pywws contributors
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation;... | gpl-2.0 | 4c910f74c5e10cc8c15e432870534591 | 30.959732 | 81 | 0.593448 | 3.084197 | false | false | false | false |
jim-easterbrook/pywws | src/pywws/service/ftp.py | 1 | 4176 | # pywws - Python software for USB Wireless Weather Stations
# http://github.com/jim-easterbrook/pywws
# Copyright (C) 2008-22 pywws contributors
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation;... | gpl-2.0 | 0cedd0ff2449b078526ad688e164c91c | 35.313043 | 81 | 0.655172 | 3.772358 | false | false | false | false |
jim-easterbrook/pywws | src/pywws/template.py | 1 | 23787 | # -*- coding: utf-8 -*-
# pywws - Python software for USB Wireless Weather Stations
# http://github.com/jim-easterbrook/pywws
# Copyright (C) 2008-21 pywws contributors
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the F... | gpl-2.0 | 227a8624df16153074cb1432ff2b4ecf | 37.299517 | 93 | 0.575975 | 3.927345 | false | false | false | false |
bit-team/backintime | qt/plugins/qt4plugin.py | 1 | 1826 | # Back In Time
# Copyright (C) 2008-2022 Oprea Dan, Bart de Koning, Richard Bailey, Germar Reitze
#
# 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... | gpl-2.0 | e7059f8dfb58be8898ca171338676f9d | 27.092308 | 107 | 0.654436 | 4.112613 | false | false | false | false |
bit-team/backintime | common/driveinfo.py | 1 | 5614 | # Back In Time
# Copyright (C) 2008-2022 Oprea Dan, Bart de Koning, Richard Bailey, Germar Reitze
#
# 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... | gpl-2.0 | 03acf0761a3a40dea5fa9bb08c3667fe | 30.717514 | 85 | 0.531885 | 3.808684 | false | false | false | false |
allianceauth/allianceauth | allianceauth/authentication/migrations/0004_create_permissions.py | 6 | 2607 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-09-09 23:19
from __future__ import unicode_literals
from django.db import migrations
def create_permissions(apps, schema_editor):
User = apps.get_model('auth', 'User')
ContentType = apps.get_model('contenttypes', 'ContentType')
Permission = apps... | gpl-2.0 | fbdb492eefa48c21ed8c19fdd71b2165 | 59.627907 | 139 | 0.745301 | 3.641061 | false | false | false | false |
allianceauth/allianceauth | allianceauth/fleetactivitytracking/models.py | 5 | 1147 | from django.contrib.auth.models import User
from django.db import models
from django.utils import timezone
from allianceauth.eveonline.models import EveCharacter
def get_sentinel_user():
return User.objects.get_or_create(username='deleted')[0]
class Fatlink(models.Model):
fatdatetime = models.DateTimeField... | gpl-2.0 | b590aa0fb4a674379735a5c7b1717414 | 31.771429 | 78 | 0.721883 | 3.606918 | false | false | false | false |
opencobra/cobrapy | tests/test_io/test_json.py | 1 | 3371 | """Test functionalities of I/O in JSON format."""
import json
from pathlib import Path
from typing import Any, Callable, Dict, Union
import pytest
from importlib_resources import files
from cobra import Model
from cobra import io as cio
@pytest.fixture(scope="module")
def json_schema_v1() -> Dict[str, Union[str, b... | gpl-2.0 | 551c0212d728e3176b38d3ad56247541 | 38.197674 | 80 | 0.685257 | 3.275996 | false | true | false | false |
opencobra/cobrapy | src/cobra/io/yaml.py | 1 | 4243 | """Provide functions for I/O in YAML format."""
import io
from pathlib import Path
from typing import TYPE_CHECKING, Any, Dict, Optional, Union
from ruamel.yaml.compat import StringIO
from ruamel.yaml.main import YAML
from .dict import model_from_dict, model_to_dict
if TYPE_CHECKING:
from io import TextIOBase
... | gpl-2.0 | bda04c691b500b6072a9b7f345fd2cba | 24.560241 | 78 | 0.603582 | 4.107454 | false | false | false | false |
opencobra/cobrapy | src/cobra/medium/minimal_medium.py | 1 | 9707 | """Provide functions and helpers to obtain minimal growth media."""
import logging
from typing import TYPE_CHECKING, Iterable, Union
import pandas as pd
from optlang.interface import OPTIMAL
from optlang.symbolics import Zero
from .boundary_types import find_boundary_types
if TYPE_CHECKING:
from cobra import M... | gpl-2.0 | 04e26f798ee5e5d7910af19eb15747dd | 36.191571 | 83 | 0.606779 | 4.308478 | false | false | false | false |
opencobra/cobrapy | tests/test_util/test_solver.py | 1 | 7822 | """Test functions of solver.py."""
import logging
from typing import TYPE_CHECKING, Optional
import numpy as np
import pytest
from cobra.exceptions import OptimizationError
from cobra.util import solver as su
if TYPE_CHECKING:
from cobra import Model
stable_optlang = ["glpk", "cplex", "gurobi"]
optlang_solver... | gpl-2.0 | bdd33eb3bc7334f3b2d9ca84d23cd149 | 35.381395 | 84 | 0.675531 | 3.462594 | false | true | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.