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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opencobra/cobrapy | src/cobra/flux_analysis/room.py | 1 | 5351 | """Provide regulatory on/off minimization (ROOM)."""
from typing import TYPE_CHECKING, Optional
from optlang.symbolics import Zero
from .parsimonious import pfba
if TYPE_CHECKING:
from cobra import Model, Solution
def room(
model: "Model",
solution: Optional["Solution"] = None,
linear: bool = Fal... | gpl-2.0 | 029c497634337fec2a7f1ccf6b9862d0 | 31.041916 | 87 | 0.604186 | 3.700553 | false | false | false | false |
tjcsl/cslbot | cslbot/commands/slap.py | 1 | 3130 | # Copyright (C) 2013-2018 Samuel Damashek, Peter Foley, James Forcier, Srijay Kasturi, Reed Koser, Christopher Reffett, and Tris Wilson
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either v... | gpl-2.0 | 57724c26d66ef806ac8fff515cf87df6 | 36.710843 | 142 | 0.533866 | 4.096859 | false | false | false | false |
tjcsl/cslbot | cslbot/helpers/reddit.py | 1 | 1674 | # Copyright (C) 2013-2018 Samuel Damashek, Peter Foley, James Forcier, Srijay Kasturi, Reed Koser, Christopher Reffett, and Tris Wilson
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either v... | gpl-2.0 | ee08862729e6b0c8ea9f23051e9f0efd | 43.052632 | 135 | 0.715054 | 3.509434 | false | false | false | false |
tjcsl/cslbot | cslbot/hooks/caps.py | 1 | 1993 | # Copyright (C) 2013-2018 Samuel Damashek, Peter Foley, James Forcier, Srijay Kasturi, Reed Koser, Christopher Reffett, and Tris Wilson
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either v... | gpl-2.0 | b8615ccb5e277dd519b5afb3069bd447 | 36.603774 | 135 | 0.624185 | 3.818008 | false | false | false | false |
tjcsl/cslbot | cslbot/commands/defersay.py | 1 | 1808 | # Copyright (C) 2013-2018 Samuel Damashek, Peter Foley, James Forcier, Srijay Kasturi, Reed Koser, Christopher Reffett, and Tris Wilson
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either v... | gpl-2.0 | 1228a043a9cae103eb03afc3742d843b | 38.304348 | 135 | 0.698562 | 3.689796 | false | false | false | false |
tjcsl/cslbot | cslbot/commands/wikipath.py | 1 | 3293 | # Copyright (C) 2013-2018 Samuel Damashek, Peter Foley, James Forcier, Srijay Kasturi, Reed Koser, Christopher Reffett, and Tris Wilson
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either v... | gpl-2.0 | 1d23caa9375f70f033119fb8e7d8e48b | 37.290698 | 135 | 0.635287 | 3.746303 | false | false | false | false |
tjcsl/cslbot | setup.py | 1 | 3154 | #!/usr/bin/env python3
# Copyright (C) 2013-2018 Samuel Damashek, Peter Foley, James Forcier, Srijay Kasturi, Reed Koser, Christopher Reffett, and Tris Wilson
#
# 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 Softwa... | gpl-2.0 | 7758dc60043ce13642efdd0a38956a2d | 33.282609 | 135 | 0.595434 | 3.646243 | false | false | false | false |
aaiyer/bugseverywhere | libbe/command/comment.py | 5 | 7305 | # Copyright (C) 2005-2012 Aaron Bentley <abentley@panoramicfeedback.com>
# Chris Ball <cjb@laptop.org>
# Gianluca Montecchi <gian@grys.it>
# Niall Douglas (s_sourceforge@nedprod.com) <spam@spamtrap.com>
# Robert Lehmann <mai... | gpl-2.0 | f8cee29569bc60898092e13d45b99a09 | 39.137363 | 87 | 0.565092 | 3.755784 | false | false | false | false |
aaiyer/bugseverywhere | libbe/diff.py | 5 | 27898 | # Copyright (C) 2005-2012 Aaron Bentley <abentley@panoramicfeedback.com>
# Chris Ball <cjb@laptop.org>
# Gianluca Montecchi <gian@grys.it>
# W. Trevor King <wking@tremily.us>
#
# This file is part of Bugs Everywhere.
#
# Bugs Everywhere is free sof... | gpl-2.0 | 941a5023b406a22549af63af13071c6e | 39.256854 | 112 | 0.552369 | 3.858111 | false | false | false | false |
aaiyer/bugseverywhere | libbe/command/subscribe.py | 5 | 16836 | # Copyright (C) 2009-2012 Chris Ball <cjb@laptop.org>
# Gianluca Montecchi <gian@grys.it>
# W. Trevor King <wking@tremily.us>
#
# This file is part of Bugs Everywhere.
#
# Bugs Everywhere is free software: you can redistribute it and/or modify it
# under the terms of the ... | gpl-2.0 | c5cdacea07da798dfa97da9948e39c9a | 41.40806 | 144 | 0.575255 | 3.596667 | false | false | false | false |
aaiyer/bugseverywhere | libbe/storage/util/properties.py | 5 | 25599 | # Bugs Everywhere - a distributed bugtracker
# Copyright (C) 2008-2012 Chris Ball <cjb@laptop.org>
# Gianluca Montecchi <gian@grys.it>
# W. Trevor King <wking@tremily.us>
#
# This file is part of Bugs Everywhere.
#
# Bugs Everywhere is free software: you can redistribute ... | gpl-2.0 | 803e7cee4d8338a9933a9dd7a72f8e61 | 37.321856 | 101 | 0.537521 | 3.978707 | false | true | false | false |
aaiyer/bugseverywhere | libbe/storage/vcs/bzr.py | 5 | 11451 | # Copyright (C) 2005-2012 Aaron Bentley <abentley@panoramicfeedback.com>
# Ben Finney <benf@cybersource.com.au>
# Chris Ball <cjb@laptop.org>
# Gianluca Montecchi <gian@grys.it>
# Marien Zwart <marien.zwart@gmail.com>
# ... | gpl-2.0 | b03ce967529c2e53a79abe43d97c9058 | 33.080357 | 79 | 0.559951 | 3.646815 | false | false | false | false |
aaiyer/bugseverywhere | libbe/util/tree.py | 5 | 7427 | # Bugs Everywhere, a distributed bugtracker
# Copyright (C) 2008-2012 Chris Ball <cjb@laptop.org>
# Gianluca Montecchi <gian@grys.it>
# W. Trevor King <wking@tremily.us>
#
# This file is part of Bugs Everywhere.
#
# Bugs Everywhere is free software: you can redistribute i... | gpl-2.0 | 46a9a2b5c64d78d17bbb6c24f74872ee | 27.565385 | 79 | 0.521072 | 3.874283 | false | false | false | false |
buildbot/buildbot | master/buildbot/test/integration/test_notifier.py | 2 | 6921 | # This file is part of Buildbot. Buildbot 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, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... | gpl-2.0 | 3d3b60e32e28b1d12c2579d4e894e31b | 40.184524 | 162 | 0.665992 | 4.278912 | false | true | false | false |
buildbot/buildbot | master/buildbot/test/unit/util/test_ComparableMixin.py | 7 | 3275 | # This file is part of Buildbot. Buildbot 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, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... | gpl-2.0 | b280c4eb623567259b045444f17fcfe3 | 33.114583 | 79 | 0.672366 | 3.567538 | false | true | false | false |
buildbot/buildbot | master/buildbot/reporters/pushjet.py | 6 | 3627 | # This file is part of Buildbot. Buildbot 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, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... | gpl-2.0 | 00d44aabbc3bb43a3656442402d24b6e | 34.910891 | 89 | 0.693411 | 4.197917 | false | false | false | false |
buildbot/buildbot | master/buildbot/test/unit/test_stats_service.py | 2 | 21492 | # This file is part of Buildbot. Buildbot 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, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... | gpl-2.0 | 589443dece6ae5e593510794bd859eec | 38.947955 | 96 | 0.618695 | 3.994053 | false | true | false | false |
buildbot/buildbot | worker/setup.py | 2 | 6296 | #!/usr/bin/env python
#
# This file is part of Buildbot. Buildbot 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, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# A... | gpl-2.0 | 15841697b5e06a0680987cf5222efd59 | 31.621762 | 142 | 0.610864 | 3.84606 | false | true | false | false |
phil65/script.extendedinfo | resources/lib/dialogs/DialogEpisodeInfo.py | 6 | 2905 | # -*- coding: utf8 -*-
# Copyright (C) 2015 - Philipp Temminghoff <phil65@kodi.tv>
# This program is Free Software see LICENSE file for details
import xbmc
from resources.lib import TheMovieDB as tmdb
from resources.lib.WindowManager import wm
from DialogVideoInfo import DialogVideoInfo
from kodi65 import imagetool... | gpl-2.0 | f024681c340073e156671dbfe4961874 | 35.772152 | 92 | 0.583477 | 3.72914 | false | false | false | false |
phil65/script.extendedinfo | resources/lib/WindowManager.py | 1 | 10695 | # -*- coding: utf8 -*-
# Copyright (C) 2015 - Philipp Temminghoff <phil65@kodi.tv>
# This program is Free Software see LICENSE file for details
import os
import re
import xbmc
import xbmcgui
import xbmcvfs
import TheMovieDB as tmdb
from kodi65 import windows
from kodi65 import addon
from kodi65 import utils
from k... | gpl-2.0 | b7f9cbc14254b9c50a47d204572dbd0a | 39.665399 | 99 | 0.520991 | 4.051136 | false | false | false | false |
phil65/script.extendedinfo | resources/lib/dialogs/DialogActorInfo.py | 1 | 1553 | # -*- coding: utf8 -*-
# Copyright (C) 2015 - Philipp Temminghoff <phil65@kodi.tv>
# This program is Free Software see LICENSE file for details
from __future__ import absolute_import
from __future__ import unicode_literals
import xbmcgui
from resources.lib import TheMovieDB as tmdb
from resources.lib.dialogs.Dialog... | gpl-2.0 | 40ba75bbca457187d5b39b34d0e85b9a | 29.45098 | 80 | 0.636832 | 3.489888 | false | false | false | false |
albfan/terminator | terminatorlib/keybindings.py | 3 | 4960 | #!/usr/bin/env python2
# Terminator - multiple gnome terminals in one window
# Copyright (C) 2006-2010 cmsj@tenshu.net
#
# 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, version 2 only.
#
# T... | gpl-2.0 | f1de45ff1d03cb932732b3df94f78969 | 37.449612 | 112 | 0.566331 | 4.420677 | false | false | false | false |
albfan/terminator | terminatorlib/plugins/maven.py | 3 | 4598 | #!/usr/bin/env python2
# Copyright (c) 2010 Julien Nicoulaud <julien.nicoulaud@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 2 only.
#
# This program is distributed in the... | gpl-2.0 | 9fc068fd5f6134900e93c95d560c7105 | 73.16129 | 935 | 0.723575 | 3.13002 | false | false | false | false |
albfan/terminator | terminatorlib/factory.py | 3 | 4001 | #!/usr/bin/env python2
# Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only
"""factory.py - Maker of objects
>>> maker = Factory()
>>> window = maker.make_window()
>>> maker.isinstance(window, 'Window')
True
>>> terminal = maker.make_terminal()
>>> maker.isinstance(terminal, 'Terminal')
True
>>> hpaned = maker.... | gpl-2.0 | 2b19332a11ebf2216f5413d419824e03 | 31.795082 | 90 | 0.566358 | 3.914873 | false | false | false | false |
jesopo/bitbot | modules/define.py | 1 | 2403 | #--depends-on commands
#--require-config wordnik-api-key
import time
from src import ModuleManager, utils
URL_WORDNIK = "https://api.wordnik.com/v4/word.json/%s/definitions"
URL_WORDNIK_RANDOM = "https://api.wordnik.com/v4/words.json/randomWord"
RANDOM_DELAY_SECONDS = 3
class Module(ModuleManager.BaseModule):
_... | gpl-2.0 | d8a84b6c4b7a265196d71c47a5ef9f6b | 35.409091 | 78 | 0.559717 | 3.900974 | false | false | false | false |
jesopo/bitbot | modules/git_webhooks/gitlab.py | 1 | 8076 | from src import ModuleManager, utils
from . import colors
EVENT_CATEGORIES = {
"ping": [
"ping" # new webhook received
],
"code": ["push"],
"pr-minimal": [
"merge_request/open", "merge_request/close", "merge_request/reopen",
"merge_request/merge"
],
"pr": [
"merg... | gpl-2.0 | 6477631b986db05b99b4832139d3c264 | 34.893333 | 79 | 0.551263 | 3.758027 | false | false | false | false |
dpinney/omf | omf/distNetViz.py | 1 | 10251 | """
Load an OMF feeder in to the new viewer.
"""
import tempfile, shutil, os, fileinput, json, webbrowser, sys
import networkx as nx
from jinja2 import Template
import omf
import omf.feeder
from omf.solvers import opendss
from omf.solvers.opendss import dssConvert
def _tests():
''' Handle the command line arguments ... | gpl-2.0 | 2477daa12a50f770edabbd37a131a25a | 49.254902 | 497 | 0.724124 | 2.933047 | false | false | false | false |
dpinney/omf | omf/scratch/tmy3Converter.py | 1 | 1426 | '''
Put me in a directory with all the TMY3s and run me to convert them to TMY2 format.
Requires NREL's TMY3 to TMY2 exe and windows.
'''
import os, csv, re, shutil
pathToExe ='"C:\\Program Files (x86)\\TMY3toTMY2_CMD\\TMY3toTMY2_CMD.exe"'
testFolder = "./tmy3 full dataset/"
os.chdir(testFolder)
def renameTmy2s():
... | gpl-2.0 | 77ddd392c2bdd40d1dea02300260f57a | 30.688889 | 83 | 0.611501 | 3.040512 | false | false | false | false |
dpinney/omf | omf/solvers/CSSS/csss/CSSS.py | 1 | 13880 | import numpy as np
# import cvxpy as cvp #cvxpy is a bad bad no good library and we only want to use it when we're using a model using this solver.
class CSSS:
### Contextually Supervised Source Seperation Class
def __init__(self, aggregateSignal):
self.aggregateSignal = aggregateSignal
self.mode... | gpl-2.0 | 6ffaeafbee04488ae47bebbabd928548 | 47.531469 | 155 | 0.545893 | 4.399366 | false | false | false | false |
makkalot/func | func/overlord/delegation_tools.py | 6 | 7115 | ##
## func delegation tools
## These are some helper methods to make dealing with delegation
## dictionary trees a little more sane when dealing with delegation
## and related functions.
##
## Copyright 2008, Red Hat, Inc.
## Steve Salevan <ssalevan@redhat.com>
##
## This software may be freely redistributed under the ... | gpl-2.0 | d23854f8a95c79f341b9661d7e5f7a38 | 32.093023 | 82 | 0.613914 | 3.768538 | false | false | false | false |
makkalot/func | func/minion/modules/nagios-check.py | 6 | 1661 | # Copyright 2007, Red Hat, Inc
# James Bowes <jbowes@redhat.com>
# Seth Vidal modified command.py to be nagios-check.py
#
# This software may be freely redistributed under the terms of the GNU
# general public license.
#
# You should have received a copy of the GNU General Public License
# along with this program; if n... | gpl-2.0 | 6e2307b96633b8622ef17059eebd5723 | 30.942308 | 128 | 0.562914 | 4.111386 | false | false | false | false |
itkinside/ufs | itkufs/accounting/views/display.py | 1 | 4488 | from django.contrib.auth.decorators import login_required
from django.http import HttpResponseForbidden
from django.utils.decorators import method_decorator
from django.utils.translation import ugettext as _
from django.views.generic import DetailView, ListView
from itkufs.common.decorators import limit_to_group
from ... | gpl-2.0 | 26187c23b4158223a32b3d780815c3db | 30.829787 | 80 | 0.622326 | 4.140221 | false | false | false | false |
makkalot/func | func/overlord/group/base.py | 4 | 1872 | class BaseBackend(object):
"""
A base class for others that will
implement a backend for groups api
"""
def add_host_to_group(self,group,host,save=True):
"""
Adds a host to a group
"""
raise NotImplementedError
def add_group(self,group,save=True):
""... | gpl-2.0 | 16220a9044782958d9ddda0e86f214c5 | 25 | 87 | 0.620192 | 4.303448 | false | true | false | false |
makkalot/func | func/minion/modules/netapp/vol/__init__.py | 6 | 6929 | ##
## NetApp Filer 'Vol' Module
##
## Copyright 2008, Red Hat, Inc
## John Eckersberg <jeckersb@redhat.com>
##
## This software may be freely redistributed under the terms of the GNU
## general public license.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, wr... | gpl-2.0 | 22df912f9e3ea08a0b869246523bd94c | 32.47343 | 216 | 0.435272 | 4.739398 | false | false | false | false |
henrysher/duplicity | duplicity/collections.py | 1 | 47277 | # -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright 2002 Ben Escoto <ben@emerose.org>
# Copyright 2007 Kenneth Loafman <kenneth@loafman.com>
#
# This file is part of duplicity.
#
# Duplicity is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License... | gpl-2.0 | f4fd53c6b11f6484a8876f0775b31c93 | 36.851882 | 113 | 0.554202 | 4.21251 | false | false | false | false |
henrysher/duplicity | duplicity/backends/pydrivebackend.py | 1 | 10371 | # -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright 2015 Yigal Asnis
#
# This file 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 ... | gpl-2.0 | 936cb116ecf3a437e01648b626e8bbca | 45.716216 | 112 | 0.5822 | 4.283767 | false | false | false | false |
henrysher/duplicity | duplicity/backends/_boto_multi.py | 1 | 9055 | # -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright 2002 Ben Escoto <ben@emerose.org>
# Copyright 2007 Kenneth Loafman <kenneth@loafman.com>
# Copyright 2011 Henrique Carvalho Alves <hcarvalhoalves@gmail.com>
#
# This file is part of duplicity.
#
# Duplicity is free software; you can redistribute it ... | gpl-2.0 | 11609ad135fd2bd326ad4021f29fcfe0 | 38.199134 | 118 | 0.591055 | 4.320134 | false | false | false | false |
henrysher/duplicity | duplicity/backends/tahoebackend.py | 2 | 2509 | # -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright 2008 Francois Deppierraz
#
# This file is part of duplicity.
#
# Duplicity 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 ... | gpl-2.0 | f56b619b6f35adcac0d28ce0cd809a5c | 32.013158 | 88 | 0.635711 | 3.615274 | false | false | false | false |
henrysher/duplicity | duplicity/dup_threading.py | 2 | 8621 | # -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright 2002 Ben Escoto <ben@emerose.org>
# Copyright 2007 Kenneth Loafman <kenneth@loafman.com>
#
# This file is part of duplicity.
#
# Duplicity is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License... | gpl-2.0 | a9c0e43bbd06dc5e943c7b9dfd9989a1 | 26.99026 | 75 | 0.636817 | 4.446106 | false | false | false | false |
henrysher/duplicity | duplicity/dup_time.py | 2 | 11464 | # -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright 2002 Ben Escoto <ben@emerose.org>
# Copyright 2007 Kenneth Loafman <kenneth@loafman.com>
#
# This file is part of duplicity.
#
# Duplicity is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License... | gpl-2.0 | 3345131b9cc3929cf4e07097f507b711 | 34.602484 | 92 | 0.606856 | 3.699258 | false | false | false | false |
henrysher/duplicity | duplicity/backends/imapbackend.py | 3 | 9352 | # -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright 2002 Ben Escoto <ben@emerose.org>
# Copyright 2007 Kenneth Loafman <kenneth@loafman.com>
# Copyright 2008 Ian Barton <ian@manor-farm.org>
#
# This file is part of duplicity.
#
# Duplicity is free software; you can redistribute it and/or modify it
# ... | gpl-2.0 | d0d13456c554b90084b79cfdc7a77628 | 34.558935 | 105 | 0.562233 | 4.025829 | false | false | false | false |
henrysher/duplicity | duplicity/lazy.py | 1 | 14418 | # -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright 2002 Ben Escoto <ben@emerose.org>
# Copyright 2007 Kenneth Loafman <kenneth@loafman.com>
#
# This file is part of duplicity.
#
# Duplicity is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License... | gpl-2.0 | 383dfe9322e737a95bb540a0e10e93f0 | 32.924706 | 87 | 0.572271 | 4.292349 | false | false | false | false |
henrysher/duplicity | testing/unit/test_collections.py | 1 | 11788 | from __future__ import print_function
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright 2002 Ben Escoto <ben@emerose.org>
# Copyright 2007 Kenneth Loafman <kenneth@loafman.com>
#
# This file is part of duplicity.
#
# Duplicity is free software; you can redistribute it and/or modify it
# under the t... | gpl-2.0 | c0c78a1f3f62032ca97892deaf9ed2cc | 46.918699 | 131 | 0.63361 | 3.305665 | false | true | false | false |
henrysher/duplicity | duplicity/backends/b2backend.py | 1 | 5724 | #
# Copyright (c) 2015 Matthew Bentley
#
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish,... | gpl-2.0 | 402da039adeedb663607016039d76fad | 37.938776 | 102 | 0.634521 | 3.958506 | false | false | false | false |
mikelolasagasti/revelation | src/bundle/AfSplitter.py | 1 | 3700 | """Implementation of anti-forensic information splitting
The AFsplitter supports secure data destruction crucial for secure on-disk key
management. The key idea is to bloat information and therefor improving the
chance of destroying a single bit of it. The information is bloated in such a
way, that a single missing bi... | gpl-2.0 | 5ebdf332c0b2b210b833f0140f11a528 | 30.623932 | 89 | 0.703514 | 3.696304 | false | false | false | false |
mikelolasagasti/revelation | src/lib/datahandler/text.py | 1 | 2373 | #
# Revelation - a password manager for GNOME 2
# http://oss.codepoet.no/revelation/
# $Id$
#
# Module for handling plain text files
#
#
# Copyright (c) 2003-2006 Erik Grinaker
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published ... | gpl-2.0 | 6a53a890730e6b8cf637cd517d5c1934 | 31.958333 | 114 | 0.589128 | 3.802885 | false | false | false | false |
fedora-infra/bodhi | bodhi-server/bodhi/server/auth/utils.py | 1 | 5965 | """Some authentication-related utilities."""
import typing
from authlib.oauth2.rfc6750 import InvalidTokenError
from pyramid.httpexceptions import HTTPFound, HTTPUnauthorized
from pyramid.security import remember
from bodhi.server import log
from bodhi.server.models import Group, User
if typing.TYPE_CHECKING: # p... | gpl-2.0 | bdea38861d8358c1fffc3f1be840fb85 | 34.295858 | 99 | 0.660017 | 4.063351 | false | false | false | false |
fedora-infra/bodhi | bodhi-server/bodhi/server/services/overrides.py | 1 | 12983 | # Copyright © 2014-2017 Red Hat, Inc. and others.
#
# This file is part of Bodhi.
#
# 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 lat... | gpl-2.0 | 1dd39652984dbe1278ef88695e941369 | 37.408284 | 100 | 0.619242 | 4.283075 | false | false | false | false |
fedora-infra/bodhi | bodhi-server/bodhi/server/scripts/sar.py | 2 | 4238 | # Copyright (c) 2018 Red Hat, Inc. and Sebastian Wojciechowski
#
# This file is part of Bodhi.
#
# 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 | d4135f0393758a1ad73ffaedace77a07 | 37.880734 | 82 | 0.62152 | 3.549414 | false | false | false | false |
fedora-infra/bodhi | devel/ci/bodhi_ci/cli.py | 1 | 8367 | #!/usr/bin/python3
# Copyright © 2018-2019 Red Hat, Inc.
#
# This file is part of Bodhi.
#
# 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) ... | gpl-2.0 | 73da1cff0bbd652c1f65984ddb348731 | 30.216418 | 100 | 0.713603 | 3.607589 | false | true | false | false |
fedora-infra/bodhi | bodhi-server/tests/scripts/test_bshell.py | 1 | 2072 | # Copyright © 2018-2019 Sebastian Wojciechowski
#
# This file is part of Bodhi.
#
# 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... | gpl-2.0 | 93fc7c81c32106aa3234188097d5c405 | 36.654545 | 81 | 0.702076 | 3.70483 | false | true | false | false |
fedora-infra/bodhi | bodhi-server/bodhi/server/tasks/clean_old_composes.py | 2 | 2397 | # Copyright © 2016-2019 Red Hat, Inc.
#
# This file is part of Bodhi.
#
# 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.
... | gpl-2.0 | 7c0f42e22c91900e853125c1685ef4a7 | 34.235294 | 98 | 0.673205 | 3.980066 | false | false | false | false |
kozec/sc-controller | setup.py | 1 | 2933 | #!/usr/bin/env python2
from distutils.core import setup, Extension
from scc.constants import DAEMON_VERSION
import glob
data_files = [
('share/scc/glade', glob.glob("glade/*.glade")),
('share/scc/glade/ae', glob.glob("glade/ae/*.glade")),
('share/scc/images', glob.glob("images/*.svg")),
('share/scc/ima... | gpl-2.0 | 07e4067bf62dfb33bb36b896de1133c6 | 37.592105 | 88 | 0.633822 | 2.788023 | false | false | false | false |
kozec/sc-controller | scc/special_actions.py | 1 | 20565 | #!/usr/bin/env python2
"""
SC Controller - Special Actions
Special Action is "special" since it cannot be handled by mapper alone.
Instead, on_sa_<actionname> method on handler instance set by
mapper.set_special_actions_handler() is called to do whatever action is supposed
to do. If handler is not set, or doesn't have... | gpl-2.0 | 58dd9ea7f94d7f046a5a3af5c0caf293 | 25.501289 | 115 | 0.664381 | 3.000876 | false | false | false | false |
kozec/sc-controller | scc/controller.py | 1 | 4079 | #!/usr/bin/env python2
from scc.constants import HapticPos
import logging
log = logging.getLogger("SCController")
next_id = 1 # Used with fallback controller id generator
class Controller(object):
"""
Base class for all controller drivers. Implementations are in
scc.drivers package.
Derived class should imple... | gpl-2.0 | 7da8f7176057d811af01910cb71d0896 | 23.721212 | 80 | 0.695023 | 3.404841 | false | false | false | false |
kozec/sc-controller | scc/lib/daemon.py | 1 | 3890 | #!/usr/bin/env python2
"""Generic linux daemon base class"""
# Adapted from http://www.jejik.com/files/examples/daemon3x.py
# thanks to the original author
import sys
import os
import time
import atexit
import signal
import syslog
class Daemon(object):
"""A generic daemon class.
Usage: subclass the daemon class ... | gpl-2.0 | 8cf730e0515cc826eb96b702ba59ce0a | 22.575758 | 88 | 0.640874 | 2.927013 | false | false | false | false |
kozec/sc-controller | scc/gui/profile_switcher.py | 1 | 12968 | #!/usr/bin/env python2
"""
SC-Controller - ProfileSwitcher
Set of widgets designed to allow user to select profile, placed in one Gtk.Box:
[ Icon | Combo box with profile selection (ch) | (S) ]
... where (S) is Save button that can be shown on demand and (ch) is change
indicator drawn in combobox.
"""
from __f... | gpl-2.0 | 52656fff624c5e5a8d3ded4ff06ce07b | 29.80285 | 94 | 0.668106 | 3.094988 | false | false | false | false |
kozec/sc-controller | scc/drivers/steamdeck.py | 1 | 8060 | #!/usr/bin/env python2
"""
SCC - Steam Deck Driver
Based on sc_by_cable and steamdeck.c
Deck uses slightly different packed format and so common handle_inpu is not used.
On top of that, deck will automatically enable lizard mode unless requested
to not do so periodically.
"""
from scc.lib import IntEnum
from scc.li... | gpl-2.0 | 49bf3b37abd9a6cb74292f7938e83533 | 31.764228 | 89 | 0.734491 | 3.018727 | false | false | false | false |
kozec/sc-controller | scc/gui/ae/osk_buttons.py | 1 | 1040 | #!/usr/bin/env python2
"""
SC-Controller - Action Editor - OSK Button Component
Binds controller buttons on on on on on... screen keyboard.
Retuses ButtonsComponent, but hides image, so user can't select mouse or gamepad
button.
"""
from __future__ import unicode_literals
from scc.tools import _
from gi.repository im... | gpl-2.0 | 436380a457e3a5fe0b063cc79cdcf93a | 25 | 80 | 0.756731 | 3.239875 | false | false | false | false |
colab/colab | colab/search/tests/test_search_view.py | 1 | 3843 | # -*- coding:utf-8 -*-
import mock
from colab.plugins.utils import filters_importer
from django.test import TestCase, Client
from django.core.management import call_command
from colab.search.forms import ColabSearchForm
class SearchViewTest(TestCase):
fixtures = ['test_data.json']
def setUp(self):
... | gpl-2.0 | f090f36633497e608a52cf7586b32fae | 35.6 | 73 | 0.598231 | 3.561631 | false | true | false | false |
colab/colab | colab/urls.py | 1 | 1586 | from django.conf.urls import patterns, include, url, static
from django.conf import settings
from django.views.generic import TemplateView
from django.contrib import admin
from django.views.generic import RedirectView
from accounts.views import UserProfileUpdateView
from django.views.defaults import permission_denied
... | gpl-2.0 | 3beff4b82f39ae18f5599db128c14692 | 33.478261 | 79 | 0.679697 | 3.679814 | false | false | false | false |
colab/colab | colab/plugins/tests/test_templatetags.py | 1 | 3936 | from mock import Mock
from django.test import TestCase, Client
from django.core.cache import cache
from colab.plugins.templatetags import plugins
from colab.accounts.models import User
class PluginsMenuTest(TestCase):
def setUp(self):
self.user = self.create_user()
self.client = Client()
... | gpl-2.0 | 1d3b9b9b48eb616f4341c89ee939c20c | 28.155556 | 71 | 0.538364 | 3.784615 | false | true | false | false |
andreafrancia/trash-cli | tests/test_restore/test_trash_directories2.py | 1 | 1385 | import unittest
import pytest
from mock import Mock, call
from trashcli.restore import TrashDirectories2
@pytest.mark.slow
class TestTrashDirectories2(unittest.TestCase):
def setUp(self):
self.trash_directories = Mock(spec=['all_trash_directories'])
self.volume_of = lambda x: "volume_of(%s)" % x
... | gpl-2.0 | 482d3e836732eeac32263ae0449a42db | 37.472222 | 77 | 0.605776 | 4.19697 | false | true | false | false |
seppius-xbmc-repo/ru | script.module.brightcove/tests/test_objects.py | 3 | 1194 | #from unittest import TestCase
#from brightcove.objects import Video, item_collection_factory
#TOKEN = 'cE97ArV7TzqBzkmeRVVhJ8O6GWME2iG_bRvjBTlNb4o.'
#class TestBrightcove(TestCase):
#def test_init(self):
#b = Brightcove(TOKEN)
#self.assertEqual(b.token, TOKEN)
#class TestVideoApis(TestCase):
... | gpl-2.0 | 464f59d32f880dde28d7117b6dc23b1f | 26.767442 | 70 | 0.620603 | 3.030457 | false | true | false | false |
seppius-xbmc-repo/ru | service.RussianKeyboard/pyperclip.py | 7 | 6793 | """
Pyperclip
A cross-platform clipboard module for Python. (only handles plain text for now)
By Al Sweigart al@inventwithpython.com
BSD License
Usage:
import pyperclip
pyperclip.copy('The text to be copied to the clipboard.')
spam = pyperclip.paste()
On Windows, no additional modules are needed.
... | gpl-2.0 | 468a2b0b1fbfb3f0d2eb1fc1ab3946c2 | 28.599099 | 167 | 0.622553 | 3.588484 | false | false | false | false |
seppius-xbmc-repo/ru | script.game.center/mainform.py | 1 | 3100 | import xbmcgui
import defines
from contextmenu import ContextMenu
import subprocess
import os
class WMainForm(xbmcgui.WindowXML):
CANCEL_DIALOG = ( 9, 10, 11, 92, 216, 247, 257, 275, 61467, 61448, )
CONTEXT_MENU_IDS = (117, 101)
CONTROL_LIST = 10
CONTROL_LABEL_PATH = 12
CONTROL_LABEL... | gpl-2.0 | 9fe3643add0d756913854d3eed9f1610 | 33.325581 | 106 | 0.599012 | 3.488506 | false | false | false | false |
seppius-xbmc-repo/ru | script.module.torrent.ts/ASCore.py | 7 | 24274 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import httplib
import urllib
import urllib2
import re
import sys,subprocess
import os
import socket
import threading
import time
import random
import json
import xbmcgui
import xbmc
import xbmcaddon
import xbmcvfs
aceport=62062
Addon = xbmcaddon.Addon(id='script.module.torr... | gpl-2.0 | 27595b9bd0329ad5d818d33d928368fe | 34.395864 | 153 | 0.522911 | 3.709288 | false | false | false | false |
seppius-xbmc-repo/ru | script.module.html5lib/lib/html5lib/inputstream.py | 616 | 30855 | from __future__ import absolute_import, division, unicode_literals
from six import text_type
from six.moves import http_client
import codecs
import re
from .constants import EOF, spaceCharacters, asciiLetters, asciiUppercase
from .constants import encodings, ReparseException
from . import utils
from io import String... | gpl-2.0 | 9c3b005b65e396aa9369688cd42c7c6d | 33.825056 | 440 | 0.562761 | 4.496502 | false | false | false | false |
seppius-xbmc-repo/ru | script.module.html5lib/lib/html5lib/filters/lint.py | 976 | 4306 | from __future__ import absolute_import, division, unicode_literals
from gettext import gettext
_ = gettext
from . import _base
from ..constants import cdataElements, rcdataElements, voidElements
from ..constants import spaceCharacters
spaceCharacters = "".join(spaceCharacters)
class LintError(Exception):
pass
... | gpl-2.0 | 352c84808290a221547d5e9116f43cbd | 45.301075 | 131 | 0.508825 | 4.680435 | false | false | false | false |
seppius-xbmc-repo/ru | script.module.xbmcswift2/lib/xbmcswift2/__init__.py | 32 | 2423 | '''
xbmcswift2
----------
A micro framework to enable rapid development of XBMC plugins.
:copyright: (c) 2012 by Jonathan Beluch
:license: GPLv3, see LICENSE for more details.
'''
from types import ModuleType
class module(ModuleType):
'''A wrapper class for a module used to override __getatt... | gpl-2.0 | c54a4884d47bd3518c0a939f1e4ff441 | 31.306667 | 79 | 0.667767 | 4.236014 | false | false | false | false |
seppius-xbmc-repo/ru | script.module.xbmcswift2/lib/xbmcswift2/plugin.py | 17 | 12906 | '''
xbmcswift2.plugin
-----------------
This module contains the Plugin class. This class handles all of the url
routing and interaction with XBMC for a plugin.
:copyright: (c) 2012 by Jonathan Beluch
:license: GPLv3, see LICENSE for more details.
'''
import os
import sys
import pickle
import ... | gpl-2.0 | bb6023377346788f4f02b5e68c40a71f | 36.847507 | 108 | 0.599799 | 4.400273 | false | false | false | false |
seppius-xbmc-repo/ru | plugin.video.stepashka.com/resources/lib/ga.py | 6 | 2882 | """
Python implementation of ga.php.
Snatched from (based on, yep!) https://github.com/b1tr0t/Google-Analytics-for-Mobile--python-
Thank you very much, man!
Let me know if you will be in Prague, b1tr0t, I will set a beer,
Eugene
"""
import re
try:
from hashlib import md5
except:
from md5 import md5
from random ... | gpl-2.0 | 9ea2839bdedcd08acab0226f4fe72f17 | 25.449541 | 93 | 0.656142 | 2.82549 | false | false | false | false |
ccnmtl/rolf | rolf/rolf_main/models.py | 1 | 15086 | from django.db import models
from django.contrib.auth.models import User, Group
import os
import stat
from datetime import datetime
from subprocess import Popen
import os.path
from tempfile import TemporaryFile
from django.forms import ModelForm
from django.conf import settings
class Category(models.Model):
name ... | gpl-2.0 | 8c7e8b9e3044a156b6135e7f7814c87b | 33.600917 | 79 | 0.553692 | 4.278503 | false | false | false | false |
ccnmtl/rolf | rolf/rolf_main/views.py | 1 | 16380 | from django.http import HttpResponse, HttpResponseRedirect
from django.http import HttpResponseForbidden, HttpResponseNotAllowed
from django.contrib.auth.decorators import login_required
from django.shortcuts import get_object_or_404, render
from models import Category, Push, Application, Deployment, Permission
from mo... | gpl-2.0 | d30939d477c121df281ca679be7c16d5 | 38.280576 | 79 | 0.580037 | 4.13219 | false | false | false | false |
buffer/thug | thug/ThugAPI/ThugAPI.py | 1 | 15639 | #!/usr/bin/env python
#
# ThugAPI.py
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; w... | gpl-2.0 | 394f453f010da73f1994c99a3fd7bcdc | 28.231776 | 114 | 0.644095 | 3.728898 | false | false | false | false |
buffer/thug | thug/DOM/External.py | 1 | 3602 | #!/usr/bin/env python
#
# External.py
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; ... | gpl-2.0 | abb80600d5e5414f79cb67e6b3f6af74 | 31.745455 | 136 | 0.656857 | 4.102506 | false | false | false | false |
buffer/thug | thug/Classifier/JSClassifier.py | 1 | 2008 | #!/usr/bin/env python
#
# JSClassifier.py
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRAN... | gpl-2.0 | cabaa37ff70a65a8f7266e45f0da0cdc | 31.918033 | 85 | 0.643924 | 3.984127 | false | false | false | false |
buffer/thug | thug/DOM/W3C/Core/DocumentFragment.py | 1 | 2466 | #!/usr/bin/env python
import logging
import bs4
from .Node import Node
log = logging.getLogger("Thug")
class DocumentFragment(Node):
def __init__(self, doc):
tag = bs4.Tag(parser = doc, name = 'documentfragment')
Node.__init__(self, doc, tag)
self.__init_documentfragment_personality()
... | gpl-2.0 | 2563bc6c966b4a25d419a3d4e04f7d54 | 29.444444 | 86 | 0.650041 | 4.158516 | false | false | false | false |
buffer/thug | thug/Logging/BaseLogging.py | 1 | 2454 | #!/usr/bin/env python
#
# BaseLogging.py
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANT... | gpl-2.0 | c6a28ac79faa31487ec07719b09e3b8d | 27.870588 | 109 | 0.59291 | 3.834375 | false | false | false | false |
buffer/thug | thug/ActiveX/modules/NamoInstaller.py | 1 | 1259 | # NamoInstaller ActiveX Control 1.x - 3.x
# CVE-NOMATCH
import logging
log = logging.getLogger("Thug")
def Install(self, arg):
if len(arg) > 1024:
log.ThugLogging.log_exploit_event(self._window.url,
"NamoInstaller ActiveX",
... | gpl-2.0 | 04df128b7ba442ad2166c7f27b7e9fd7 | 42.413793 | 102 | 0.470214 | 4.750943 | false | false | false | false |
buffer/thug | thug/DOM/W3C/HTML/HTMLTableRowElement.py | 1 | 2800 | #!/usr/bin/env python
import logging
from thug.DOM.W3C.Core.DOMException import DOMException
from .HTMLElement import HTMLElement
from .HTMLCollection import HTMLCollection
from .HTMLTableCellElement import HTMLTableCellElement
from .attr_property import attr_property
log = logging.getLogger("Thug")
class HTMLTable... | gpl-2.0 | 1ae18e66559868604f513d2bd568103e | 29.434783 | 90 | 0.608214 | 4.046243 | false | false | false | false |
buffer/thug | thug/DOM/W3C/Style/CSS/CSSStyleDeclaration.py | 1 | 1293 | #!/usr/bin/env python
import logging
from thug.DOM.JSClass import JSClass
log = logging.getLogger("Thug")
class CSSStyleDeclaration(JSClass):
def __init__(self, style):
self.props = {}
for prop in [p for p in style.split(';') if p]:
k, v = prop.strip().split(':')
self.p... | gpl-2.0 | c0a8a4222b6491894d63178542c946b6 | 25.387755 | 124 | 0.572312 | 3.715517 | false | false | false | false |
buffer/thug | tests/functional/test_brokenurl.py | 1 | 1079 | import os
import logging
from thug.ThugAPI.ThugAPI import ThugAPI
log = logging.getLogger("Thug")
class TestBrokenURL(object):
def do_perform_test(self, caplog, url, expected):
thug = ThugAPI()
thug.set_useragent('win7ie90')
thug.set_broken_url()
thug.set_ssl_verify()
th... | gpl-2.0 | f77bcc788968a3c8a596c0f56024cbdc | 25.317073 | 93 | 0.594995 | 3.608696 | false | true | false | false |
buffer/thug | tests/functional/test_misc_ie70.py | 1 | 33796 | import os
import logging
from thug.ThugAPI.ThugAPI import ThugAPI
log = logging.getLogger("Thug")
class TestMiscSamplesIE(object):
cwd_path = os.path.dirname(os.path.realpath(__file__))
misc_path = os.path.join(cwd_path, os.pardir, "samples/misc")
def do_perform_test(self, caplog, sample, expected):
... | gpl-2.0 | 1b0b7a40fb3a32ce874ce3f76cda2fff | 44.73207 | 161 | 0.55835 | 3.971328 | false | true | false | false |
buffer/thug | thug/DOM/W3C/URL/URL.py | 1 | 4843 | #!/usr/bin/env python
#
# URL.py
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; witho... | gpl-2.0 | 98b76a61c15f1cd21d8af01f7c185004 | 26.674286 | 84 | 0.606442 | 3.456817 | false | false | false | false |
metabrainz/picard | picard/coverart/__init__.py | 4 | 9015 | # -*- coding: utf-8 -*-
#
# Picard, the next-generation MusicBrainz tagger
#
# Copyright (C) 2007 Oliver Charles
# Copyright (C) 2007, 2010-2011 Lukáš Lalinský
# Copyright (C) 2007-2011, 2019-2021 Philipp Wolfer
# Copyright (C) 2011 Michael Wiencek
# Copyright (C) 2011-2012 Wieland Hoffmann
# Copyright (C) 2013-2015, 2... | gpl-2.0 | 8ff36b81bf737643d7bcb3d15e396b5e | 35.48583 | 93 | 0.568353 | 4.254958 | false | false | false | false |
metabrainz/picard | picard/util/checkupdate.py | 3 | 7161 | # -*- coding: utf-8 -*-
#
# Picard, the next-generation MusicBrainz tagger
#
# Copyright (C) 2018 Bob Swift
# Copyright (C) 2018, 2020, 2022 Philipp Wolfer
# Copyright (C) 2018, 2020-2021 Laurent Monin
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Publi... | gpl-2.0 | cf6bd93730385b2b5f8654176f0455c8 | 41.123529 | 127 | 0.597403 | 4.481227 | false | false | false | false |
metabrainz/picard | picard/formats/ac3.py | 4 | 2139 | # -*- coding: utf-8 -*-
#
# Picard, the next-generation MusicBrainz tagger
#
# Copyright (C) 2019-2020 Philipp Wolfer
# Copyright (C) 2020-2021 Laurent Monin
#
# 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 Softwar... | gpl-2.0 | 9c36e25fe976ca8ece104e853e679767 | 31.409091 | 80 | 0.655446 | 3.73951 | false | true | false | false |
metabrainz/picard | picard/oauth.py | 3 | 9965 | # -*- coding: utf-8 -*-
#
# Picard, the next-generation MusicBrainz tagger
#
# Copyright (C) 2014 Lukáš Lalinský
# Copyright (C) 2015 Sophist-UK
# Copyright (C) 2015 Wieland Hoffmann
# Copyright (C) 2015, 2018, 2021 Philipp Wolfer
# Copyright (C) 2016-2017 Sambhav Kothari
# Copyright (C) 2017 Frederik “Freso” S. Olesen... | gpl-2.0 | bb61677c4c842e3949aa97a753d677ec | 34.437722 | 100 | 0.627636 | 3.961018 | false | false | false | false |
metabrainz/picard | picard/ui/coverartbox.py | 2 | 27483 | # -*- coding: utf-8 -*-
#
# Picard, the next-generation MusicBrainz tagger
#
# Copyright (C) 2006-2007, 2011 Lukáš Lalinský
# Copyright (C) 2009 Carlin Mangar
# Copyright (C) 2009, 2018-2022 Philipp Wolfer
# Copyright (C) 2011-2013 Michael Wiencek
# Copyright (C) 2012 Chad Wilson
# Copyright (C) 2012-2014 Wieland Hoffm... | gpl-2.0 | 347352258504a54f4f4d8445a4216260 | 39.70963 | 152 | 0.602751 | 3.917177 | false | false | false | false |
metabrainz/picard | test/data/testplugins/module/dummyplugin/__init__.py | 6 | 1117 | # -*- coding: utf-8 -*-
#
# Picard, the next-generation MusicBrainz tagger
#
# Copyright (C) 2019-2021 Laurent Monin
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the L... | gpl-2.0 | 84a9f5476d67d99cba7000cb1480c2bb | 32.848485 | 80 | 0.744852 | 3.735786 | false | false | false | false |
metabrainz/picard | picard/util/time.py | 4 | 1551 | # -*- coding: utf-8 -*-
#
# Picard, the next-generation MusicBrainz tagger
#
# Copyright (C) 2021 Gabriel Ferreira
# Copyright (C) 2021 Laurent Monin
# Copyright (C) 2021 Philipp Wolfer
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as p... | gpl-2.0 | 13b96e8d6095fe862065da79a5b5d73d | 30.02 | 80 | 0.67118 | 3.165306 | false | false | false | false |
rpm-software-management/yum-utils | plugins/pkgtorrent/server/pkgtorrent-service.py | 1 | 12293 | #
# Copyright (c) 2014-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the GPLv2 license found in the COPYING
# file in the root directory of this source tree.
#
import os
import cgi
import cPickle as pickle
import time
import datetime
import locale
import glob
try:
from hashl... | gpl-2.0 | 975016203841970f536ae5c95df9fdbd | 34.022792 | 80 | 0.571463 | 3.932502 | false | false | false | false |
rpm-software-management/yum-utils | show-installed.py | 6 | 16572 | #!/usr/bin/python
"""
TODO:
* repository descriptions in kickstart format for non default repos
"""
import yum
from optparse import OptionParser
import sys
__stateprefixes = {
None : '# ',
"mandatory" : ".",
"default" : "@",
"all" : "*"
}
def state2str(o):
if isinstance(o, Group):
o... | gpl-2.0 | 88ef66bef23d84e6976102cfde63d6e0 | 39.518337 | 304 | 0.576575 | 4.237279 | false | false | false | false |
rpm-software-management/yum-utils | plugins/fs-snapshot/fs-snapshot.py | 5 | 13249 | # 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 hope that it will be useful,
# bu... | gpl-2.0 | 68c4722970089f6f21ecd857fc171760 | 39.270517 | 104 | 0.640426 | 3.659945 | false | false | false | false |
rpm-software-management/yum-utils | plugins/aliases/aliases.py | 6 | 5044 | #!/usr/bin/python
# 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 hope that it w... | gpl-2.0 | e7b5e6f66df9657079825e72aa750049 | 30.329193 | 103 | 0.576725 | 3.862175 | false | false | false | false |
rpm-software-management/yum-utils | plugins/allowdowngrade/allowdowngrade.py | 7 | 1394 | # 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 hope that it will be useful,... | gpl-2.0 | 814bd63d2313cdf76c68c3a796054ada | 39 | 76 | 0.710904 | 3.602067 | false | false | false | false |
agx/git-buildpackage | gbp/scripts/create_remote_repo.py | 1 | 13043 | # vim: set fileencoding=utf-8 :
#
# (C) 2010,2012,2015,2016 Guido Günther <agx@sigxcpu.org>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at ... | gpl-2.0 | a15a2d14a05d09e7921b4970cc806d15 | 31.115764 | 109 | 0.559859 | 3.909745 | false | true | false | false |
agx/git-buildpackage | tests/component/deb/test_pq.py | 1 | 6588 | # vim: set fileencoding=utf-8 :
#
# (C) 2017 Guido Günther <agx@sigxcpu.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) ... | gpl-2.0 | 54e45bfc0cea17f7dd5c92d20d70147c | 33.851852 | 97 | 0.605587 | 3.477825 | false | true | false | false |
agx/git-buildpackage | gbp/log.py | 1 | 5873 | # vim: set fileencoding=utf-8 :
#
# (C) 2010 Guido Günther <agx@sigxcpu.org>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) an... | gpl-2.0 | f5cca5e2f2dbe4d9433eac7e9e5242e8 | 31.988764 | 85 | 0.605586 | 3.935657 | false | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.