repo_name stringlengths 6 90 | path stringlengths 4 230 | copies stringlengths 1 4 | size stringlengths 4 7 | content stringlengths 734 985k | license stringclasses 15
values | hash int64 -9,223,303,126,770,100,000 9,223,233,360B | line_mean float64 3.79 99.6 | line_max int64 19 999 | alpha_frac float64 0.25 0.96 | autogenerated bool 1
class | ratio float64 1.5 8.06 | config_test bool 2
classes | has_no_keywords bool 2
classes | few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
tech-team/convnet | convnet/layers/full_connected_layer.py | 1 | 2443 | import numpy as np
from convnet.layers.base_layer import BaseLayer, BaseLayerSettings
from convnet.layers.convolutional_layer import ConvolutionalLayerSettings, _ConvolutionalLayer
from convnet.layers.relu_layer import _ReluLayer, ReluLayerSettings
class FullConnectedLayerSettings(ConvolutionalLayerSettings):
TY... | mit | 800,448,699,343,490,400 | 39.04918 | 120 | 0.6316 | false | 4.219344 | false | false | false |
joesusecom/salt-tutorial | salt/runners/spacewalk.py | 1 | 5048 | # -*- coding: utf-8 -*-
'''
Spacewalk Runner
================
.. versionadded:: 2016.3.0
Runner to interact with Spacewalk using Spacewalk API
:codeauthor: Nitin Madhok <nmadhok@clemson.edu>, Joachim Werner <joe@suse.com>
To use this runner, set up the Spacewalk URL, username and password in the
master configuratio... | apache-2.0 | 4,392,703,425,858,653,700 | 25.708995 | 107 | 0.604596 | false | 4.090762 | true | false | false |
custom22/google-python-exercises | logpuzzle/logpuzzle.py | 1 | 2850 | #!/usr/bin/python
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
import os
import re
import sys
import urllib
"""Logpuzzle exercise
Given an apache logfile, ... | apache-2.0 | 4,801,061,822,929,659,000 | 28.6875 | 192 | 0.654035 | false | 3.077754 | false | false | false |
Saint-Joe/weewx | bin/weewx/drivers/archive/windrain.py | 1 | 1104 | from time import sleep
import time
import RPi.GPIO as GPIO
import syslog
loopDelay = 10
windClicks = 0
rainClicks = 0
speedPin = 15 # GPIO pin
rainPin = 18
GPIO.setmode(GPIO.BCM) # tell the GPIO module that we want to use the chip's pin numbering scheme
GPIO.setup(speedPin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setu... | gpl-3.0 | 1,478,007,918,639,280,400 | 24.090909 | 97 | 0.6875 | false | 2.905263 | false | false | false |
victormanakkat/Taco-Chronicles | baddieAI.py | 1 | 4344 | #Baddie AI Module By Tyler Spadgenske
import pygame, sys, random
from pygame.locals import *
#Custom Modules
from person import Person
class AI(Person):
'''
The AI class is in charge of the bad guy's intellagence.
it has four functions: get_rect(), get_gun_rect(), move(X, gunX),
and think(x, baddieX, baddieGunX, d... | gpl-3.0 | -7,151,587,909,410,761,000 | 43.783505 | 156 | 0.528545 | false | 3.706485 | false | false | false |
samsath/django-easydata | easydata/models/entidad.py | 2 | 3785 | # -*- coding: utf-8 -*-
#------------------------------------------------------------------------------
# EasyData/Django: an app to publish your django projects data using
# vocabularies.
# Copyright (C) 2013 Jose Manuel Llerena Carmona
#
# This program is free software: you can redistri... | gpl-3.0 | -273,258,903,435,322,080 | 36.85 | 79 | 0.603699 | false | 3.926349 | false | false | false |
educalleja/mezzanine-developer-extension | mezzanine_developer_extension/views.py | 1 | 1824 |
from django.http import HttpResponse, JsonResponse
from django.shortcuts import render
from mezzanine.conf import settings
from mezzanine_developer_extension.utils import refactor_html, is_valid_xhtml
from mezzanine_developer_extension.widgets import DemoForm
def get_preview(request):
""" View called to generate ... | bsd-3-clause | -3,566,120,151,348,047,400 | 34.076923 | 79 | 0.6875 | false | 4.053333 | false | false | false |
blinktrade/bitex | tools/arbitrage/b2u.py | 8 | 3920 | #!/usr/bin/env python
import sys
import urllib2
from time import sleep
import json
from arbitrator import BlinkTradeArbitrator
import datetime
import hmac
import hashlib
import ConfigParser
from ws4py.exc import HandshakeError
B2U_API_KEY = 'XXXX'
B2U_API_SECRET = 'YYYY'
def send_order_to_b2u(sender, order):
non... | gpl-3.0 | 2,023,399,140,943,858,700 | 28.473684 | 203 | 0.608163 | false | 2.965204 | true | false | false |
PaleTomato/datapoint-basic | datapointbasic/forecast.py | 1 | 4725 | import datapoint
from datapointbasic.tools import get_place_id
class FullForecast(object):
"""
Class that utilises a number of DayForecast objects to return a full 5 day
forecast
"""
def __init__(self, api_key, place_name):
"""
Initialises the class by creating the v... | gpl-3.0 | 8,944,989,029,704,984,000 | 29.939189 | 80 | 0.552593 | false | 4.403541 | false | false | false |
ParthGanatra/mitmproxy | pathod/pathoc.py | 1 | 17304 | import contextlib
import sys
import os
import itertools
import hashlib
import Queue
import random
import select
import time
import threading
import OpenSSL.crypto
import six
from netlib import tcp, http, certutils, websockets, socks
from netlib.exceptions import HttpException, TcpDisconnect, TcpTimeout, TlsException,... | mit | 4,161,679,152,113,346,600 | 31.404494 | 112 | 0.495955 | false | 4.390764 | false | false | false |
vrk-kpa/api-catalog | ckanext/ckanext-apicatalog_routes/setup.py | 1 | 3635 | from setuptools import setup, find_packages # Always prefer setuptools over distutils
from codecs import open # To use a consistent encoding
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encoding='utf-8') as... | mit | -2,096,732,649,810,870,300 | 39.388889 | 104 | 0.694911 | false | 3.972678 | false | false | false |
westernx/mayatools | mayatools/camera/importer.py | 1 | 2659 | import os
import re
from uitools.qt import QtCore, QtGui, Qt
from maya import cmds, mel
from sgfs.ui import product_select
import sgfs.ui.scene_name.widget as scene_name
from sgpublish.importer.generic import Importer
from sgpublish.importer.ui.dialog import ImportDialog
from sgpublish.importer.ui.workarea import Wo... | bsd-3-clause | -5,770,091,082,683,958,000 | 26.412371 | 80 | 0.540053 | false | 4.28871 | false | false | false |
TheWardoctor/Wardoctors-repo | script.module.fantastic/lib/resources/lib/sources/en/movie4kis.py | 1 | 4184 | # -*- coding: utf-8 -*-
'''
fantastic Add-on
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This pro... | apache-2.0 | -8,561,244,453,882,242,000 | 33.866667 | 155 | 0.520076 | false | 4.030829 | false | false | false |
wezhang/vim-setup | bundle/powerline/powerline/renderers/vim.py | 1 | 4776 | # vim:fileencoding=utf-8:noet
from __future__ import absolute_import, unicode_literals
from powerline.bindings.vim import vim_get_func, environ
from powerline.renderer import Renderer
from powerline.colorscheme import ATTR_BOLD, ATTR_ITALIC, ATTR_UNDERLINE
from powerline.theme import Theme
import vim
import sys
tr... | apache-2.0 | 1,513,077,561,150,283,800 | 28.300613 | 123 | 0.650544 | false | 2.953618 | false | false | false |
KeplerGO/K2fov | K2fov/__init__.py | 2 | 1160 | from __future__ import (division, absolute_import)
import os
import logging
logging.basicConfig() # Avoid "No handlers could be found for logger" warning
logger = logging.getLogger(__name__)
# Suppress FutureWarnings from older versions of matplotlib, cf. issue #14
import warnings
warnings.simplefilter(action="ignor... | mit | 8,052,576,539,222,066,000 | 32.142857 | 80 | 0.721552 | false | 3.323782 | false | false | false |
dgketchum/MT_Rsense | sandbox/gdal_funcs.py | 1 | 5905 | # ===============================================================================
# Copyright 2017 dgketchum
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses... | apache-2.0 | 2,765,356,876,787,646,000 | 36.852564 | 116 | 0.573412 | false | 3.594035 | false | false | false |
ktnyt/chainer | chainer/_backprop_utils.py | 2 | 6507 | import six
import chainer
def _reduce(grad_list):
if not grad_list:
return None
if len(grad_list) >= 2:
grad_list[:] = [chainer.functions.add(*grad_list)]
return grad_list[0]
def _pure(grad):
return [] if grad is None else [grad]
def _pop_or_none(grad_list):
return grad_list.p... | mit | -885,742,439,727,360,400 | 35.351955 | 79 | 0.535731 | false | 4.252941 | false | false | false |
A-Manning/FStar | .scripts/fstar_fish_completions.py | 2 | 1649 | #!/usr/bin/env python3
import re
OPT_RE = re.compile(
r"""\s*--(?P<name>[a-zA-Z0-9-_.]*) """ +
r"""(\[(?P<arg>.*)\] )?""" +
r"""(?P<desc>.*)""")
class Option:
def __init__(self, name, arg_name, desc):
self.name = name
self.arg_name = arg_name
self.desc = desc
@classmetho... | apache-2.0 | -6,069,643,919,783,010,000 | 26.949153 | 70 | 0.559733 | false | 3.553879 | false | false | false |
mandre/kolla | kolla/tests/test_build.py | 1 | 9765 | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | apache-2.0 | -4,670,891,304,348,498,000 | 35.301115 | 78 | 0.618638 | false | 3.611317 | true | false | false |
jnano/nomadgram | nomadgram/images/migrations/0001_initial.py | 1 | 1296 | # Generated by Django 2.0.7 on 2018-08-02 03:08
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Comment',
fields=[
('id', models.AutoField(... | mit | -2,676,831,070,657,559,000 | 31.4 | 114 | 0.511574 | false | 4.6121 | false | false | false |
total-impact/impactstory-analytics | impactstoryanalytics/widgets/signup_funnel.py | 2 | 1191 | import logging
import arrow
from impactstoryanalytics.widgets.widget import Widget
import widget_api_helpers
logger = logging.getLogger("impactstoryanalytics.widgets.signup_funnel")
class Signup_funnel(Widget):
def get_data(self):
mixpanel_data = widget_api_helpers.Mixpanel.get_data("omtm")
r... | mit | -8,683,679,562,276,372,000 | 24.340426 | 83 | 0.575987 | false | 3.642202 | false | false | false |
gazpachoking/deluge-old | deluge/ui/gtkui/listview.py | 1 | 30090 | # -*- coding: utf-8 -*-
#
# listview.py
#
# Copyright (C) 2007, 2008 Andrew Resch <andrewresch@gmail.com>
#
# Deluge is free software.
#
# You may redistribute it and/or modify it under the terms of the
# GNU General Public License, as published by the Free Software
# Foundation; either version 3 of the License, or (at... | gpl-3.0 | -572,721,323,619,275,260 | 40.103825 | 102 | 0.600273 | false | 4.104215 | true | false | false |
jaloren/robotframework | src/robot/variables/assigner.py | 5 | 8783 | # Copyright 2008-2015 Nokia Networks
# Copyright 2016- Robot Framework Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | apache-2.0 | -2,498,740,843,630,877,700 | 33.853175 | 81 | 0.614369 | false | 4.07753 | false | false | false |
bmcfee/gordon | gordon/io/audio.py | 1 | 21629 | #! /usr/bin/env python
# Copyright (C) 2010 Douglas Eck
#
# This file is part of Gordon.
#
# Gordon is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your opti... | gpl-3.0 | -7,245,646,757,278,904,000 | 41.431727 | 180 | 0.561838 | false | 3.902039 | false | false | false |
anchore/anchore-engine | anchore_engine/db/db_registries.py | 1 | 2924 | from anchore_engine import db
from anchore_engine.db import Registry
# from db import Base
# Base = declarative_base()
# specific DB interface helpers for the 'services' table
def add(registry, userId, inobj, session=None):
if not session:
session = db.Session
our_service = (
session.query... | apache-2.0 | -6,228,419,550,458,150,000 | 21.84375 | 88 | 0.599521 | false | 3.852437 | false | false | false |
cicatiello/PokemonGo-Bot | pokecli.py | 2 | 16538 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
pgoapi - Pokemon Go API
Copyright (c) 2016 tjado <https://github.com/tejado>
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, ... | gpl-3.0 | -8,397,860,525,133,066,000 | 32.545639 | 204 | 0.592575 | false | 3.986021 | true | false | false |
treetrnk/Tuxemon | tuxemon/core/states/world/world_menus.py | 2 | 6267 | from __future__ import division
import logging
from functools import partial
import pygame
from core import prepare
from core.components.locale import translator
from core.components.menu.interface import MenuItem
from core.components.menu.menu import Menu
from core.tools import open_dialog
# Create a logger for op... | gpl-3.0 | -2,158,408,905,924,739,600 | 35.017241 | 85 | 0.601404 | false | 4.153082 | false | false | false |
edx/edx-proctoring | edx_proctoring/backends/backend.py | 1 | 4191 | """
Defines the abstract base class that all backends should derive from
"""
import abc
from edx_proctoring import constants
class ProctoringBackendProvider(metaclass=abc.ABCMeta):
"""
The base abstract class for all proctoring service providers
"""
verbose_name = u'Unknown'
ping_interval = cons... | agpl-3.0 | 2,006,594,801,253,870,000 | 28.723404 | 117 | 0.627535 | false | 4.839492 | false | false | false |
maelnor/cinder | cinder/volume/drivers/emc/emc_smis_iscsi.py | 2 | 8545 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2012 EMC Corporation.
# Copyright (c) 2012 OpenStack LLC.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the Lic... | apache-2.0 | -989,358,441,390,263,000 | 34.604167 | 79 | 0.588414 | false | 4.281062 | false | false | false |
repotvsupertuga/tvsupertuga.repository | script.module.streamtvsupertuga/lib/resources/lib/sources/en/to_be_fixed/sitedown/icefilmsis.py | 7 | 5060 | # -*- coding: utf-8 -*-
'''
Covenant Add-on
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This prog... | gpl-2.0 | 3,108,822,299,171,216,400 | 40.47541 | 130 | 0.481621 | false | 4.23431 | false | false | false |
tansey/gfl | pygfl/__init__.py | 1 | 4413 | '''Copyright (C) 2015 by Wesley Tansey
This file is part of the GFL library.
The GFL library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at you... | lgpl-3.0 | -6,601,913,607,089,255,000 | 38.401786 | 424 | 0.658736 | false | 3.743003 | false | false | false |
globocom/database-as-a-service | dbaas/maintenance/admin/remove_instance_database.py | 1 | 1121 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django.utils.html import format_html
from .database_maintenance_task import DatabaseMaintenanceTaskAdmin
class RemoveInstanceDatabaseAdmin(DatabaseMaintenanceTaskAdmin):
list_filter = [
"database__team", "current_step",... | bsd-3-clause | -2,077,413,463,388,482,600 | 31.970588 | 80 | 0.619982 | false | 3.852234 | false | false | false |
sertansenturk/tomato | src/tomato/symbolic/symbtr/section.py | 1 | 14779 | # Copyright 2015 - 2018 Sertan Şentürk
#
# This file is part of tomato: https://github.com/sertansenturk/tomato/
#
# tomato is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation (FSF), either version 3 of the ... | agpl-3.0 | 4,704,575,006,073,696,000 | 43.369369 | 79 | 0.584569 | false | 4.031378 | false | false | false |
jeicher/cobrapy | cobra/flux_analysis/summary.py | 2 | 9092 | from six.moves import zip_longest
from six import print_, iteritems
import pandas as pd
from tabulate import tabulate
from .variability import flux_variability_analysis
def format_long_string(string, max_length):
if len(string) > max_length:
string = string[:max_length - 3]
string += '...'
r... | lgpl-2.1 | 5,317,556,404,797,831,000 | 34.795276 | 79 | 0.565332 | false | 3.606505 | false | false | false |
digidudeofdw/enigma2 | lib/python/Screens/About.py | 2 | 3813 | from Screen import Screen
from Components.ActionMap import ActionMap
from Components.Sources.StaticText import StaticText
from Components.Harddisk import harddiskmanager
from Components.NimManager import nimmanager
from Components.About import about
from Components.ScrollLabel import ScrollLabel
class About(Screen):
... | gpl-2.0 | -8,644,702,633,410,855,000 | 27.036765 | 119 | 0.642014 | false | 2.976581 | false | false | false |
inorichi/syncsub | syncsub/explorer/views.py | 1 | 2717 | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from django.shortcuts import render, redirect
from django.views.generic import TemplateView
from django.http import Http... | mpl-2.0 | -7,479,055,337,261,726,000 | 31.73494 | 92 | 0.711446 | false | 4.013294 | false | false | false |
catapult-project/catapult | telemetry/telemetry/timeline/model.py | 3 | 9149 | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""A container for timeline-based events and traces and can handle importing
raw event data from different sources. This model closely resembles that in the
t... | bsd-3-clause | 1,823,961,723,758,308,400 | 33.011152 | 79 | 0.695158 | false | 4.06803 | false | false | false |
JonathanRaiman/Dali | data/utils.py | 2 | 1366 | import fnmatch
import os
import subprocess
def print_progress(fraction_completed, total_work=1.0):
progress = fraction_completed/total_work
print("█" * (int(20 * (progress))) + " %.1f%% \r" % (100 * progress,), end="", flush=True)
def findfiles (path, filter):
for root, dirs, files in os.walk(path):
... | mit | -2,179,382,452,548,579,000 | 35.864865 | 94 | 0.596774 | false | 4.083832 | false | false | false |
Pulgama/supriya | supriya/commands/BufferZeroRequest.py | 1 | 1799 | import supriya.osc
from supriya.commands.Request import Request
from supriya.commands.RequestBundle import RequestBundle
from supriya.enums import RequestId
class BufferZeroRequest(Request):
"""
A /b_zero request.
::
>>> import supriya.commands
>>> request = supriya.commands.BufferZeroRe... | mit | 131,431,129,311,408,380 | 22.671053 | 74 | 0.574764 | false | 3.980088 | false | false | false |
cmohl2013/140327 | filteredMemapToTiff.py | 1 | 1519 | import sys
import numpy as np
sys.path.append("/mnt/moehlc/home/idaf_library")
#import mahotas
import libidaf.idafIO as io
import matplotlib.pyplot as plt
import re
import vigra
import os
import pickle
#SAVE MEMAPS AS 32bit tiff stacks
#input dirs, locally on animate-x3
path_filtered40 = '/home/moehlc/raman_bloo... | mit | -6,494,323,389,754,799,000 | 23.111111 | 105 | 0.736011 | false | 2.707665 | false | false | false |
akolishchak/doom-net-pytorch | src/simulator.py | 1 | 6758 | #
# simulator.py, doom-net
#
# Created by Andrey Kolishchak on 07/04/17.
#
#
import os
import argparse
import os.path
import math
import matplotlib.pyplot as plt
from matplotlib.pyplot import cm
import numpy as np
import vizdoom
from doom_env import init_doom_env
from doom_object import DoomObject
from multiprocessing ... | mit | 7,085,476,561,264,590,000 | 34.197917 | 131 | 0.597514 | false | 3.414856 | false | false | false |
Dte-ba/suite-backend | escuelas/views/escuela.py | 1 | 10924 | # coding: utf-8
from __future__ import unicode_literals
import xlwt
from django.db.models import Q
from django.http import HttpResponse
from rest_framework import viewsets
from rest_framework.decorators import list_route, detail_route
from rest_framework.filters import SearchFilter
from rest_framework.response import R... | gpl-3.0 | 9,103,565,183,023,031,000 | 37.59364 | 126 | 0.619209 | false | 3.360615 | false | false | false |
scylladb/scylla-cluster-tests | sdcm/utils/profiler.py | 1 | 14981 | # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be usefu... | agpl-3.0 | 6,477,343,540,046,995,000 | 34.249412 | 112 | 0.61805 | false | 3.990677 | false | false | false |
orion-42/numerics-physics-stuff | damped_harm_osc.py | 1 | 1402 | import numpy as np
from scipy.integrate import odeint
import matplotlib.pyplot as plt
def plot_damped_oscillator(m=1.0, k=1.0, b=1.0):
"""
m = 1.0 # mass [kg]
k = 1.0 # spring constant [N/m]
b = 1.0 # friction constant [Ns/m = kgm/s^2*s/m = kg/s]
"""
two_gamma = b/m
omega_squared = k/m
... | mit | -2,507,370,534,966,312,000 | 22.366667 | 59 | 0.53067 | false | 2.530686 | false | false | false |
etingof/pyasn1-modules | tests/test_rfc8360.py | 2 | 28276 | #
# This file is part of pyasn1-modules software.
#
# Created by Russ Housley
# Copyright (c) 2019, Vigil Security, LLC
# License: http://snmplabs.com/pyasn1/license.html
#
import sys
import unittest
from pyasn1.codec.der.decoder import decode as der_decoder
from pyasn1.codec.der.encoder import encode as der_encoder
... | bsd-2-clause | 5,437,514,953,401,678,000 | 59.939655 | 73 | 0.959542 | false | 1.618268 | true | false | false |
mhbu50/erpnext | erpnext/support/report/issue_summary/issue_summary.py | 2 | 10142 | # Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
import json
from six import iteritems
from frappe import _, scrub
from frappe.utils import flt
def execute(filters=None):
return IssueSummary(fi... | gpl-3.0 | 4,984,161,357,955,088,000 | 26.786301 | 110 | 0.621376 | false | 2.989976 | false | false | false |
TOTVS/mdmpublic | couchbase-cli/lib/python/couchbase/migrator/migrator_json.py | 1 | 1840 | #
# Copyright 2012, Couchbase, Inc.
# All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | bsd-2-clause | 9,212,418,349,929,273,000 | 30.724138 | 74 | 0.582065 | false | 4.088889 | false | false | false |
Ceasar/grammar | grammar/automata/fsm.py | 1 | 3011 |
class FiniteStateAutomaton(object):
def __init__(self, alphabet, states, start_state, transitions,
accepting_states):
self.alphabet = alphabet
self.states = states
self.start_state = start_state
self.transitions = transitions
self.accepting_states = accepti... | mit | -3,686,582,581,244,470,000 | 32.087912 | 75 | 0.561275 | false | 4.091033 | false | false | false |
ichbinjakes/CodeExamples | population_class_genetic_algorithm.py | 1 | 2448 | import numpy as np
import gen_func as gf
class AlgPop:
def __init__(self, stock_name):
self.stock_name = stock_name
self.data = np.loadtxt(stock_name , delimiter=',')
self.n_fit = 0
self.n_xo = 0
self.n_mut = 0
self.pop_size = 0
self.pop = np.array([])
... | gpl-3.0 | 2,656,549,824,653,028,400 | 33.971429 | 88 | 0.552288 | false | 3.098734 | false | false | false |
tingcar/PSEP | src/contact/migrations/0002_auto__add_field_contact_iid.py | 1 | 1294 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as 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 'Contact.iid'
db.add_column(u'contact_contact', 'iid',
... | apache-2.0 | 30,820,010,810,371,612 | 37.088235 | 116 | 0.57187 | false | 3.697143 | false | false | false |
machinalis/django-srd20 | srd20/migrations/0023_auto__del_field_monster_combat_defense_bonus__add_field_monster_combat.py | 1 | 14289 | # encoding: 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):
# Deleting field 'Monster.combat_defense_bonus'
db.delete_column('srd20_monster', 'combat_defense_bonus')
... | bsd-3-clause | -8,642,191,371,146,575,000 | 80.651429 | 158 | 0.550983 | false | 3.547418 | false | false | false |
allison-group/indigo-bondorder | archive/src/indigox/misc.py | 1 | 12129 | from abc import ABCMeta, abstractmethod
import logging
from random import randrange
import sys
from bitarray import bitarray
from indigox.config import (INFINITY, RUN_QBND, BASIS_LEVEL, ALLOW_HYPERVALENT,
ELECTRON_PAIRS, HYPERPENALTY, PREFILL_LOCATIONS,
COUNTERP... | mit | 8,786,251,618,261,628,000 | 32.321429 | 80 | 0.492539 | false | 3.329399 | false | false | false |
ApolloAuto/apollo | modules/tools/record_analyzer/metrics/lon_acceleration.py | 3 | 6905 | #!/usr/bin/env python3
###############################################################################
# Copyright 2019 The Apollo Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy... | apache-2.0 | -5,832,253,060,532,185,000 | 35.534392 | 103 | 0.535844 | false | 3.327711 | false | false | false |
MCDong/barbican | barbican/model/repositories.py | 2 | 70380 | # Copyright (c) 2013-2014 Rackspace, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | apache-2.0 | 6,780,932,154,063,828,000 | 34.581395 | 79 | 0.618571 | false | 4.184802 | false | false | false |
ptarroso/JoinSplit | JoinSplit.py | 1 | 13972 | # -*- coding: utf-8 -*-
"""
/***************************************************************************
JoinSplit
A QGIS plugin
JoinSplit
-------------------
begin : 2015-02-25
git sha : $Format:%H$
cop... | gpl-3.0 | 1,155,874,662,261,019,100 | 34.017544 | 89 | 0.564271 | false | 4.186994 | false | false | false |
junsooo/Fake_love | emotionAnalysis/multi_class_data_loader.py | 1 | 3816 | import numpy as np
import csv
class MultiClassDataLoader(object):
"""
Handles multi-class training data. It takes predefined sets of "train_data_file" and "dev_data_file"
of the following record format.
<text>\t<class label>
ex. "what a masterpiece! Positive"
Class labels are given as "... | mit | 4,874,144,335,571,108,000 | 40.043011 | 115 | 0.590671 | false | 3.484932 | false | false | false |
dc3-plaso/plaso | plaso/cli/views.py | 1 | 6891 | # -*- coding: utf-8 -*-
"""The CLI view classes."""
import abc
from plaso.lib import py2to3
class BaseTableView(object):
"""Class that implements the table view interface."""
def __init__(self, column_names=None, title=None):
"""Initializes the table view object.
Args:
column_names (Optional[str... | apache-2.0 | -2,667,941,632,701,242,400 | 27.126531 | 78 | 0.637934 | false | 3.638332 | false | false | false |
MadManRises/Madgine | shared/bullet3-2.89/examples/pybullet/gym/pybullet_envs/deep_mimic/learning/solvers/mpi_solver.py | 2 | 2994 | from mpi4py import MPI
import tensorflow as tf
import numpy as np
import pybullet_envs.deep_mimic.learning.tf_util as TFUtil
import pybullet_utils.math_util as MathUtil
import pybullet_utils.mpi_util as MPIUtil
from pybullet_utils.logger import Logger
from pybullet_envs.deep_mimic.learning.solvers.solver import Solver... | mit | 2,672,641,459,118,987,000 | 27.788462 | 96 | 0.654643 | false | 3.115505 | false | false | false |
yugangw-msft/azure-cli | src/azure-cli/azure/cli/command_modules/acs/_completers.py | 9 | 3765 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | mit | -1,407,343,597,366,396,200 | 43.821429 | 116 | 0.694024 | false | 4.005319 | false | false | false |
jeremi/couchdbkit | couchdbkit/schema/properties.py | 1 | 24895 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2008-2009 Benoit Chesneau <benoitc@e-engura.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTW... | isc | 4,791,506,020,287,918,000 | 32.506057 | 179 | 0.592488 | false | 4.081148 | false | false | false |
florisvb/dyneye | Theory/Simulation/kalman.py | 1 | 19215 | """
-----------------------------------------------------------------------
dyneye
Copyright (C) Floris van Breugel, 2013.
florisvb@gmail.com
Released under the GNU GPL license, Version 3
This file is part of dyneye.
dyneye is free software: you can redistribute it and/or modify it
under the terms of the GNU Gene... | gpl-3.0 | 1,831,414,878,170,564,900 | 34.45203 | 123 | 0.550507 | false | 3.316934 | false | false | false |
mindm/2017Challenges | challenge_2/python/mindm/src/single.py | 2 | 1523 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
from collections import defaultdict
def main():
if len(sys.argv) == 1: # Arguments provided by piping in shell
args = sys.stdin.read()
elif len(sys.argv) == 2: # Arguments provided as command line args
args = sys.argv[1]
els... | mit | 3,685,166,984,850,200,000 | 23.967213 | 77 | 0.587656 | false | 3.826633 | false | false | false |
ldamewood/figures | scripts/plot_density.py | 1 | 10016 | #!/usr/bin/env python
# plot_density.py
import argparse
import itertools
import matplotlib
import numpy
import os
import interpolate
import charge_density
#if "DISPLAY" not in os.environ:
# matplotlib.use('Agg')
import matplotlib.pyplot as plt
__all__ = [
"plot_density",
]
class plot_... | mit | -3,721,832,626,652,486,700 | 40.218107 | 145 | 0.596745 | false | 3.873163 | false | false | false |
voriux/Flexget | flexget/plugins/output/dump.py | 4 | 4263 | from __future__ import unicode_literals, division, absolute_import
import logging
from flexget import options, plugin
from flexget.event import event
from flexget.utils.tools import console
log = logging.getLogger('dump')
def dump(entries, debug=False, eval_lazy=False, trace=False):
"""
Dump *entries* to st... | mit | 8,518,360,649,367,407,000 | 38.110092 | 118 | 0.549848 | false | 4.246016 | false | false | false |
acsone/hr | hr_employee_id/models/res_config.py | 6 | 1924 | # -*- coding: utf-8 -*-
# © 2015 Salton Massally <smassally@idtlabs.sl>
# © 2016 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields, api
class HumanResourcesConfiguration(models.TransientModel):
_inherit = 'hr.config.settings'
def _d... | agpl-3.0 | -3,932,528,732,081,048,000 | 33.945455 | 75 | 0.639438 | false | 3.660952 | false | false | false |
garnertb/firecares | scripts/match_districts.py | 2 | 1319 | import glob
import os
import sys
sys.path.append(os.pardir)
from firecares.firestation.management.commands.match_districts import Command
from firecares.firestation.models import FireDepartment, FireStation
from django.contrib.gis.geos import GeometryCollection as GC
import django
django.setup()
files = glob.glob(sy... | mit | -2,229,901,645,709,202,400 | 40.21875 | 181 | 0.709629 | false | 3.408269 | false | false | false |
benpicco/mate-deskbar-applet | deskbar/handlers/iswitch-window.py | 1 | 2955 | from deskbar.defs import VERSION
from gettext import gettext as _
import deskbar.interfaces.Module
import deskbar.interfaces.Match
import deskbar.interfaces.Action
import deskbar
import gtk
import logging
import matewnck
LOGGER = logging.getLogger(__name__)
HANDLERS = ["ISwitchWindowHandler"]
class SwitchToWindowActi... | gpl-2.0 | -3,468,808,907,461,285,000 | 35.036585 | 146 | 0.576988 | false | 4.053498 | false | false | false |
cx421774557/bootstrapFrame | Test/Test/settings.py | 1 | 2036 | """
Django settings for Test project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
impor... | lgpl-2.1 | -5,569,612,545,054,246,000 | 23.53012 | 71 | 0.722986 | false | 3.278583 | false | false | false |
pwollstadt/trentoolxl | test/test_idtxl_utils.py | 2 | 4007 | """Unit tests for IDTxl utilities module."""
import numpy as np
from idtxl import idtxl_utils as utils
def test_swap_chars():
"""Test swapping of characters in a string."""
s = utils.swap_chars('psr', 0, 1)
assert s == 'spr', 'Chars were not swapped correctly.'
def test_combine_discrete_dimensions():
... | gpl-3.0 | 712,185,628,431,409,400 | 37.161905 | 79 | 0.617919 | false | 2.847903 | true | false | false |
chschmitt/reflexif | reflexif/tools/jpegscanner.py | 1 | 2109 | '''
Created on 26.06.2017
@author: gongy
'''
import io
from reflexif.parsers.parser_jpeg import JPEGStreamParser
import traceback
MARKER = b'\xff\xd8'
class FileScanner(object):
def __init__(self, data, source=None):
self.data = data
self.source = None
self.children = []
self.erro... | bsd-3-clause | -1,524,920,650,623,326,000 | 26.763158 | 65 | 0.50166 | false | 4.218 | false | false | false |
brainwood-school/cs470 | bzagents/agentNonConforming.py | 1 | 4321 | #!/usr/bin/python -tt
# An incredibly simple agent. All we do is find the closest enemy tank, drive
# towards it, and shoot. Note that if friendly fire is allowed, you will very
# often kill your own tanks with this code.
#################################################################
# NOTE TO STUDENTS
# This is... | gpl-3.0 | 6,296,217,380,829,875,000 | 34.130081 | 158 | 0.585513 | false | 3.536007 | false | false | false |
ngannguyen/immunoseq | src/rnaseq-genesfpkm.py | 1 | 6843 | #!/usr/bin/env python
#Jun 11 2012
#
#Input: input directory containing genes.fpkm_tracking of each sample
# file that maps geneID to name
# (list of genes of interest)
#Output: FPKM table where rows = genes and columns = samples
#
import os, sys, re, time
from optparse import OptionParser
from sonLib.bi... | mit | -5,084,364,888,370,489,000 | 33.560606 | 195 | 0.559112 | false | 3.387624 | false | false | false |
bobthekingofegypt/bobswitch-python | bobswitch/sockjs_ext.py | 1 | 2844 | # -*- coding: utf-8 -*-
"""
Socket
~~~~~~~~~~~~
Contains a subclass of the socks tornado Socket class that
implements the use of event decorators on your SockJSConnection.
This code is all based on the event mechanism from tornadio2
https://github.com/MrJoes/tornadio2
license is contained ... | bsd-2-clause | -3,622,302,980,731,289,600 | 24.392857 | 88 | 0.581575 | false | 4.080344 | false | false | false |
showell/zulip | zerver/tests/test_create_video_call.py | 2 | 9289 | from unittest import mock
import responses
from django.http import HttpResponseRedirect
from zerver.lib.test_classes import ZulipTestCase
class TestVideoCall(ZulipTestCase):
def setUp(self) -> None:
super().setUp()
self.user = self.example_user("hamlet")
self.login_user(self.user)
d... | apache-2.0 | 4,310,921,001,221,871,000 | 42.00463 | 150 | 0.609646 | false | 3.693439 | true | false | false |
akalugin/worldforge_pipeline | blender/wf_tool_panel.py | 1 | 3885 | bl_info = {
"name": "Tools Panel",
"category": "WorldForge",
"author": "anisimkalugin.com",
"description": "Worldforge Pipeline Panel",
}
import bpy
bpy.types.Scene.Rig = bpy.props.StringProperty()
def get_armature (name):
'''gets the name of the current armature '''
for ob in bpy.da... | mit | -7,374,382,617,539,760,000 | 30.585366 | 92 | 0.621107 | false | 3.194901 | false | false | false |
joh12041/route-externalities | preprocessing/generate_grid_scores.py | 1 | 11042 | """Generate grid cell scores from Empath analysis of user-generated content."""
import csv
import json
import argparse
import re
import traceback
from math import floor
from nltk.stem import WordNetLemmatizer
import numpy
from shapely.geometry import shape, box, point
from empath import Empath
SCALE = 3
def preproce... | mit | -7,046,919,673,669,392,000 | 41.469231 | 120 | 0.552436 | false | 3.645428 | false | false | false |
oplatek/python-arpa | src/arpa/models/base.py | 1 | 2327 | from abc import ABCMeta, abstractmethod
class ARPAModel(metaclass=ABCMeta):
def __init__(self):
self._base = 10
def __contains__(self, word):
return word in self.vocabulary()
def __len__(self):
return len(self.vocabulary())
@abstractmethod
def add_count(self, order, coun... | mit | -1,822,992,058,283,437,300 | 24.021505 | 75 | 0.517834 | false | 3.884808 | false | false | false |
ravik/mapbox-baseSDK | mapbox/services/directions.py | 1 | 3752 | from uritemplate import URITemplate
from mapbox.encoding import encode_waypoints
from mapbox.services.base import Service
from mapbox import errors
class Directions(Service):
"""Access to the Directions API."""
valid_profiles = ['mapbox.driving',
'mapbox.cycling',
... | mit | 6,457,834,770,907,477,000 | 35.427184 | 79 | 0.570629 | false | 4.707654 | false | false | false |
ofrei/ldsc | ldscore/ldscore.py | 1 | 15575 | from __future__ import division
import numpy as np
import bitarray as ba
def getBlockLefts(coords, max_dist):
'''
Converts coordinates + max block length to the a list of coordinates of the leftmost
SNPs to be included in blocks.
Parameters
----------
coords : array
Array of coordinat... | gpl-3.0 | 2,344,853,911,928,441,000 | 35.390187 | 134 | 0.532071 | false | 3.23334 | false | false | false |
olegv142/stm32tivc_usb_cdc | tools/elink_api.py | 1 | 6509 | import time
import struct
from collections import namedtuple
from elink_serial import *
import logging
log = logging.getLogger("serial.api")
#
# Operations
#
api_op_info = 0 # retrieve endpoint descriptor
api_op_reg_rd = 1 # register read
api_op_reg_wr = 2 # register write
api_op_buf_rd = 4 # buffer... | unlicense | -2,126,494,304,536,735,500 | 24.326848 | 108 | 0.645875 | false | 2.756883 | false | false | false |
PegasusWang/tornado-cn-auth | examples/kaixin-test.py | 4 | 1054 | import tornado.ioloop
import tornado.web
import tornadocnauth.Kaixin
from tornado import gen
class AuthHandler(tornado.web.RequestHandler, tornadocnauth.Kaixin.KaixinMixin):
@tornado.web.asynchronous
@gen.coroutine
def get(self):
if self.get_argument('code', None):
user = yield self.ge... | mit | -7,743,803,820,773,897,000 | 33 | 80 | 0.589184 | false | 3.737589 | false | false | false |
chicagopython/chipy.org | chipy_org/apps/meetings/migrations/0001_squashed_0015_auto_20200208_1904.py | 1 | 11009 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings
import tinymce.models
# Functions from the following migrations need manual copying.
# Move them and any dependencies into this file, then update the
# RunPython operations to ref... | mit | 3,485,553,061,414,839,000 | 50.204651 | 503 | 0.567536 | false | 4.226104 | false | false | false |
p-l-/ivre | ivre/passive.py | 1 | 24882 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of IVRE.
# Copyright 2011 - 2020 Pierre LALET <pierre@droids-corp.org>
#
# IVRE 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 versio... | gpl-3.0 | -7,294,533,162,350,726,000 | 32.533693 | 130 | 0.519974 | false | 3.639315 | false | false | false |
sunqm/pyscf | examples/solvent/02-casci_with_ddcosmo.py | 2 | 1202 | #!/usr/bin/env python
#
# Author: Qiming Sun <osirpt.sun@gmail.com>
#
'''
Using solvent model in the CASCI calculations. There are two ways to
incorporate solvent effects. One is allow solvent to response to the
electron density. The other is to freeze the solvent effects for certain
electron density.
'''
from pyscf ... | apache-2.0 | 817,503,450,126,927,600 | 26.953488 | 80 | 0.675541 | false | 2.882494 | false | false | false |
knaperek/djangosaml2 | djangosaml2/backends.py | 1 | 12929 | # Copyright (C) 2010-2012 Yaco Sistemas (http://www.yaco.es)
# Copyright (C) 2009 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ... | apache-2.0 | -3,582,932,271,968,825,000 | 42.827119 | 138 | 0.615361 | false | 4.436857 | false | false | false |
west2554/fofix | src/Drum.py | 1 | 85408 | #####################################################################
# -*- coding: iso-8859-1 -*- #
# #
# Frets on Fire #
# Copyright (C) 2006 Sami Kyostila ... | gpl-2.0 | 4,442,607,022,697,778,000 | 41.281188 | 197 | 0.561997 | false | 3.259847 | false | false | false |
pvtodorov/indra | indra/tests/test_pmc_client.py | 2 | 3218 | from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
from indra.literature import pmc_client
from nose.tools import raises
from indra.util import unicode_strs
from nose.plugins.attrib import attr
example_ids = {'pmid': '25361007',
'pmcid': 'PMC4322985',... | bsd-2-clause | 8,962,284,891,015,370,000 | 28.254545 | 75 | 0.653201 | false | 2.847788 | true | false | false |
DataONEorg/d1_python | utilities/src/d1_util/check_object_checksums.py | 1 | 1970 | #!/usr/bin/env python
# This work was created by participants in the DataONE project, and is
# jointly copyrighted by participating institutions in DataONE. For
# more information on DataONE, see our web site at http://dataone.org.
#
# Copyright 2009-2017 DataONE
#
# Licensed under the Apache License, Version 2.0 (t... | apache-2.0 | 5,856,782,619,263,488,000 | 30.774194 | 87 | 0.711675 | false | 3.450088 | false | false | false |
Undeterminant/math-modeling | mathmodeling/wikipedia.py | 1 | 8816 | import requests
import dateutil.parser as dateparser
from datetime import datetime, date
from itertools import islice
from .misc import date_to_float
__all__ = ['request', 'revert_fix', 'spike_fix', 'augment']
_URL = 'https://en.wikipedia.org/w/api.php?format=json&action=query&titles={}&prop=revisions&rvdir=newer&r... | cc0-1.0 | -8,792,898,333,862,548,000 | 25.634441 | 146 | 0.637704 | false | 2.850307 | false | false | false |
markuskiller/textblob-de | tests/test_blob.py | 1 | 43697 | # -*- coding: utf-8 -*-
# Code imported from the main `TextBlob`_ library.
#
# :repo: `https://github.com/sloria/TextBlob`_
# :source: tests/test_blob.py
# :version: 2014-06-29 (8351166e36)
#
# :modified: 2014-08-03 <m.killer@langui.ch>
#
"""Tests for the text processor."""
from __future__ import unicode_literals
impo... | mit | 733,154,708,755,087,200 | 37.524735 | 198 | 0.600665 | false | 3.342019 | true | false | false |
xlorepdarkhelm/colors | colors/base.py | 1 | 42592 | """Base module containing the core components for the colors system."""
import enum
import functools
import inspect
import typing
import colormath
import colormath.color_conversions
import colormath.color_diff
import colormath.color_objects
class ColorMeta(type):
"""
Metaclass for colors that sets up class ... | mit | -6,135,173,416,011,191,000 | 28.931131 | 79 | 0.536274 | false | 4.141176 | false | false | false |
davidlmorton/spikepy | spikepy/gui/named_controls.py | 1 | 4085 | # Copyright (C) 2012 David Morton
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distribut... | gpl-3.0 | 7,054,337,534,660,025,000 | 33.041667 | 73 | 0.642105 | false | 3.77193 | false | false | false |
johnny-die-tulpe/illuminati | sauron/emitters/CampfireBot.py | 3 | 2174 | #! /usr/bin/env python
#
# Copyright (c) 2011 SEOmoz
#
# 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, m... | mit | -2,000,838,252,385,424,600 | 36.482759 | 75 | 0.678473 | false | 4.180769 | false | false | false |
felipedau/sphinxformat | sphinxformat/SphinxParams.py | 1 | 4855 | # Copyright 2011 Ian Goldberg
#
# This file is part of Sphinx.
#
# Sphinx is free software: you can redistribute it and/or modify
# it under the terms of version 3 of the GNU Lesser General Public
# License as published by the Free Software Foundation.
#
# Sphinx is distributed in the hope that it will be useful,
# but... | gpl-3.0 | 1,638,757,383,103,690,500 | 29.15528 | 80 | 0.611946 | false | 3.448153 | false | false | false |
AntonPashkowskiy/Tars | Program/commands_description/commands_description_module.py | 2 | 6037 | #!/usr/bin/python3
from commands_description.interfaces.commands_description_interface import CommandsDescriptionInterface
from common.commands_description import target_block_types, action_types
from common.settings import setting_keys
from settings.settings_module import SettingsModule
from logger.logger_module impor... | mit | -7,143,109,327,489,956,000 | 44.052239 | 113 | 0.677986 | false | 3.963887 | false | false | false |
CSB-IG/target-space | rugplot_pca.py | 1 | 1278 | import csv
import numpy as np
import svgwrite, random
from rugplot import CircleMarker, Scatter
from itertools import combinations
from pprint import pprint
colors = ['olivedrab', 'navajowhite',
'indigo', 'tan',
'slategrey', 'palegreen',
'maroon', 'brown',
'lightsteelblue', '... | gpl-3.0 | 978,848,598,342,335,500 | 21.821429 | 97 | 0.628326 | false | 2.760259 | false | false | false |
DataSploit/datasploit | active_scan.py | 3 | 2612 | import optparse
from domain_dnsrecords import fetch_dns_records,parse_dns_records
import requests
from termcolor import colored
parser = optparse.OptionParser()
parser.add_option('-e', '--email_file', action="store", dest="emailfile", help="File containing list of Email ids", default="spam")
parser.add_option('-s',... | gpl-3.0 | -6,922,425,301,382,478,000 | 32.922078 | 143 | 0.655054 | false | 3.026651 | false | false | false |
dlancer/django-appcore | appcore/views/mixins.py | 1 | 2320 | """Implements decorator chaining mixin for class based view"""
from django.contrib import messages
from django.http import JsonResponse
class DecoratorChainingMixin(object):
def dispatch(self, *args, **kwargs):
decorators = getattr(self, 'decorators', [])
base = super(DecoratorChainingMixin, self... | bsd-3-clause | 4,706,384,295,690,623,000 | 34.707692 | 97 | 0.643966 | false | 4.402277 | false | false | false |
chriscallan/Euler | Probs_1_to_50/045_TriangularPentagonalHexagonal.py | 1 | 1062 | # Problem 45
# Triangle, pentagonal, and hexagonal numbers are generated by the following formulae:
#
# Triangle Tn=n(n+1)/2 1, 3, 6, 10, 15, ...
# Pentagonal Pn=n(3n−1)/2 1, 5, 12, 22, 35, ...
# Hexagonal Hn=n(2n−1) 1, 6, 15, 28, 45, ...
# It can be verified that T285 = P165 = H143 = 40755.
#
# Find the ne... | gpl-3.0 | 3,944,228,986,804,069,000 | 39.692308 | 92 | 0.689036 | false | 2.89863 | false | false | false |
163gal/Time-Line | timelinelib/wxgui/components/twostatebutton.py | 2 | 1675 | # Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015 Rickard Lindberg, Roger Lindberg
#
# This file is part of Timeline.
#
# Timeline is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of th... | gpl-3.0 | 5,728,237,642,829,227,000 | 41.948718 | 90 | 0.711642 | false | 3.625541 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.