repo_name stringlengths 5 92 | path stringlengths 4 221 | copies stringclasses 19
values | size stringlengths 4 6 | content stringlengths 766 896k | license stringclasses 15
values | hash int64 -9,223,277,421,539,062,000 9,223,102,107B | line_mean float64 6.51 99.9 | line_max int64 32 997 | alpha_frac float64 0.25 0.96 | autogenerated bool 1
class | ratio float64 1.5 13.6 | config_test bool 2
classes | has_no_keywords bool 2
classes | few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
gihankarunarathne/udp | EXTRACTFLO2DWATERLEVEL.py | 1 | 22923 | #!/usr/bin/python3
import csv
import getopt
import json
import os
import sys
import traceback
import copy
from datetime import datetime, timedelta
from os.path import join as pjoin
from curwmysqladapter import MySQLAdapter
import Constants
from LIBFLO2DWATERLEVELGRID import getWaterLevelOfChannels
from Util.LibForec... | apache-2.0 | 7,930,331,980,908,002,000 | 41.06055 | 136 | 0.551019 | false | 3.621899 | true | false | false |
adalke/rdkit | rdkit/Chem/Subshape/SubshapeBuilder.py | 1 | 4360 | # $Id$
#
# Copyright (C) 2007 by Greg Landrum
# All rights reserved
#
from __future__ import print_function
from rdkit import Chem,Geometry
from rdkit.Chem import AllChem
from rdkit.Chem.Subshape import SubshapeObjects
from rdkit.Chem.Subshape import BuilderUtils
from rdkit.six.moves import cPickle
import time
#----... | bsd-3-clause | -3,022,887,758,401,373,000 | 34.447154 | 95 | 0.68555 | false | 3.143475 | false | false | false |
bbc/ebu-tt-live-toolkit | ebu_tt_live/adapters/base.py | 1 | 3499 | import logging
import weakref
from abc import abstractmethod, abstractproperty
from ebu_tt_live.utils import AutoRegisteringABCMeta, AbstractStaticMember, validate_types_only
log = logging.getLogger(__name__)
# Interfaces
# ==========
class IDocumentDataAdapter(object, metaclass=AutoRegisteringABCMeta):
"""
... | bsd-3-clause | 7,567,805,828,722,318,000 | 31.700935 | 112 | 0.606745 | false | 4.806319 | false | false | false |
qtproject/qt-creator | src/libs/3rdparty/syntax-highlighting/data/generators/generate-cmake-syntax.py | 1 | 5026 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Generate Kate syntax file for CMake
#
# Copyright (c) 2017-2019 Alex Turbov <i.zaufi@gmail.com>
#
# To install prerequisites:
#
# $ pip install --user click jinja2 yaml
#
# To use:
#
# $ ./generate-cmake-syntax.py cmake.yaml > ../syntax/cmake.xml
#
import click
imp... | gpl-3.0 | 3,560,213,243,156,102,700 | 27.885057 | 105 | 0.606446 | false | 3.377688 | false | false | false |
annoviko/pyclustering | pyclustering/nnet/examples/hysteresis_examples.py | 1 | 2173 | """!
@brief Examples of usage and demonstration of abilities of Hysteresis Oscillatory Network.
@authors Andrei Novikov (pyclustering@yandex.ru)
@date 2014-2020
@copyright BSD-3-Clause
"""
from pyclustering.nnet.hysteresis import hysteresis_network, hysteresis_visualizer;
from pyclustering.nnet import *;... | gpl-3.0 | 8,405,484,669,327,025,000 | 34.25 | 162 | 0.650253 | false | 3.01387 | false | false | false |
rbaravalle/imfractal | imfractal/Algorithm/MFS_3D.py | 1 | 11780 | """
Copyright (c) 2013 Rodrigo Baravalle
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following... | bsd-3-clause | 1,529,415,426,108,300,800 | 32.276836 | 111 | 0.519864 | false | 3.210684 | false | false | false |
karec/oct-browser | octbrowser/browser.py | 1 | 14578 | """This file contain the main class for the octbrowser
It represent a simple browser object with all methods
"""
import re
import os
import lxml.html as lh
import requests
from lxml.cssselect import CSSSelector
from octbrowser.exceptions import FormNotFoundException, NoUrlOpen, LinkNotFound, NoFormWaiting, HistoryI... | mit | -6,376,803,414,716,263,000 | 32.131818 | 121 | 0.599465 | false | 4.480025 | false | false | false |
DarthMaulware/EquationGroupLeaks | Leak #5 - Lost In Translation/windows/Resources/Ops/PyScripts/lib/ops/pprint.py | 1 | 4263 |
from __future__ import print_function
from __future__ import division
import dsz
import dsz.ui
import ops.data
ALIGN_LEFT = '<'
ALIGN_CENTER = '_'
ALIGN_RIGHT = '>'
def pprint(data, header=None, dictorder=None, echocodes=None, align=None, print_handler=print):
if ((data is None) or (len(data) == 0)):
retu... | unlicense | -8,518,540,465,188,391,000 | 35.444444 | 147 | 0.451325 | false | 3.36996 | false | false | false |
lmarent/network_agents_ver2_python | simulation_site/simulation/forms.py | 1 | 4022 | from django import forms
from django.core.exceptions import ValidationError
from django.forms.models import inlineformset_factory
import inspect
import os
import re
import sys
from simulation.models import ProbabilityDistribution
from simulation.models import DiscreteProbabilityDistribution
from simulation.models impo... | mit | -7,739,133,508,648,501,000 | 39.22 | 94 | 0.663352 | false | 4.242616 | false | false | false |
USStateDept/geonode | geonode/documents/models.py | 1 | 6056 | import logging
import os
import uuid
from django.db import models
from django.db.models import signals
from django.conf import settings
from django.contrib.contenttypes.models import ContentType
from django.core.urlresolvers import reverse
from django.contrib.contenttypes import generic
from django.contrib.staticfiles... | gpl-3.0 | -3,836,716,759,410,032,600 | 31.735135 | 107 | 0.63177 | false | 4 | false | false | false |
rodrigozc/mockatron | mockatron_core/utils.py | 1 | 6477 | from django.http import HttpResponse
from django.template import Context
from .models import *
from .constants import *
from .classes import *
from xml.etree import ElementTree
import hashlib, json, xmltodict, re, urllib.request, logging
logger = logging.getLogger("django")
def extract_agent_data_from_request(requ... | apache-2.0 | 4,762,224,527,407,931,000 | 48.068182 | 195 | 0.64428 | false | 3.897112 | false | false | false |
hradec/gaffer | python/GafferUI/PlugLayout.py | 1 | 28367 | ##########################################################################
#
# Copyright (c) 2014, Image Engine Design Inc. All rights reserved.
# Copyright (c) 2014, John Haddon. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that ... | bsd-3-clause | -3,389,370,072,250,530,000 | 35.936198 | 165 | 0.706913 | false | 3.701814 | false | false | false |
UCSBarchlab/PyRTL | tests/rtllib/test_barrel.py | 1 | 2448 | import unittest
import random
import pyrtl
from pyrtl.rtllib import barrel
class TestBarrel(unittest.TestCase):
# @classmethod
# def setUpClass(cls):
# # this is to ensure reproducibility
# random.seed(777906374)
def setUp(self):
pyrtl.reset_working_block()
self.inp_val =... | bsd-3-clause | -2,724,166,392,009,105,000 | 40.491525 | 99 | 0.574346 | false | 3.14249 | true | false | false |
leth/nose2 | nose2/plugins/loader/discovery.py | 1 | 8390 | """
Discovery-based test loader.
This plugin implements nose2's automatic test module discovery. It
looks for test modules in packages and directories whose names start
with 'test', then fires the :func:`loadTestsFromModule` hook for each
one to allow other plugins to load the actual tests.
It also fires :func:`handl... | bsd-2-clause | -5,359,058,218,203,558,000 | 36.792793 | 79 | 0.590942 | false | 4.106706 | true | false | false |
edm1/error-aware-demultiplexer | extras/install_pypy3-2.4.0.py | 1 | 4815 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# The MIT License (MIT)
#
# Copyright (c) 2014 Edward Mountjoy
#
# 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, includin... | mit | -2,608,913,167,537,939,000 | 33.640288 | 87 | 0.637799 | false | 3.569311 | false | false | false |
Liakoni/pgn2csv | pgn2csv.py | 1 | 8232 | #pgn2csv 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.
#You should have received a copy of the GNU General Public License
#along with p... | gpl-3.0 | 1,060,888,842,327,421,300 | 54.248322 | 151 | 0.565233 | false | 4.136683 | false | false | false |
L5hunter/TestCoin | qa/rpc-tests/mempool_coinbase_spends.py | 1 | 3854 | #!/usr/bin/env python2
# Copyright (c) 2014 The Testcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test re-org scenarios with a mempool that contains transactions
# that spend (directly or indirectly) coi... | mit | -2,353,289,480,723,677,000 | 40 | 98 | 0.656201 | false | 3.484629 | true | false | false |
jricardo27/holiday_planner | holiday_planner/holiday_place/models/place.py | 1 | 4516 | """Place representing a geographical point on the map."""
from django.db import models
from model_utils import Choices
class PlaceTypeMixin:
"""Place type definitions."""
PLACE_TYPES = Choices(
('city', 'City'),
('town', 'Town'),
('beach', 'Beach'),
('cafe', 'Cafe'),
(... | bsd-3-clause | 3,256,515,929,308,662,000 | 25.409357 | 66 | 0.568423 | false | 3.522621 | false | false | false |
paveu/api_mocker | apimocker/settings/components/logging.py | 1 | 3197 | from __future__ import absolute_import
import logging
from logstash.formatter import LogstashFormatterVersion1
class SuppressDeprecated(logging.Filter):
def filter(self, record):
WARNINGS_TO_SUPPRESS = [
'RemovedInDjango110Warning',
'RemovedInDjango20Warning',
]
# ... | mit | -1,602,555,381,508,861,700 | 26.09322 | 96 | 0.487645 | false | 4.179085 | false | false | false |
par2/lamana | lamana/output_.py | 1 | 29238 | # -----------------------------------------------------------------------------
'''Classes and functions for handling visualizations, plots and exporting data. BETA'''
# _distribplot(): independent plots of single and multiple geometries
# _multiplot(): aggregates severa; distribplots into a grid of subplots
# flake8 ... | bsd-3-clause | 8,377,580,359,115,972,000 | 34.743276 | 131 | 0.569157 | false | 3.756649 | false | false | false |
jaeilepp/eggie | mne/viz/topo.py | 1 | 27382 | """Functions to plot M/EEG data on topo (one axes per channel)
"""
from __future__ import print_function
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Denis Engemann <denis.engemann@gmail.com>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Eric Larson <larson.eri... | bsd-2-clause | -3,022,529,476,795,081,000 | 36.768276 | 79 | 0.616281 | false | 3.769548 | false | false | false |
jodogne/OrthancMirror | OrthancServer/Resources/Samples/Python/ArchiveStudiesInTimeRange.py | 1 | 3416 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Orthanc - A Lightweight, RESTful DICOM Store
# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
# Department, University Hospital of Liege, Belgium
# Copyright (C) 2017-2021 Osimis S.A., Belgium
#
# This program is free software: you can redistribute it and/or
# mo... | gpl-3.0 | -516,811,386,712,827,460 | 35.731183 | 105 | 0.650761 | false | 3.43662 | false | false | false |
anuragpapineni/Hearthbreaker-evolved-agent | hearthbreaker/agents/trade_agent.py | 1 | 4738 | # from hearthbreaker.agents.basic_agents import RandomAgent
from hearthbreaker.agents.trade.possible_play import PlayMixin
from hearthbreaker.agents.trade.trade import TradeMixin, AttackMixin
from hearthbreaker.agents.trade.util import Util
import hearthbreaker.cards.battlecries
class BattlecryType:
@staticmethod... | mit | -1,693,280,705,883,882,800 | 31.231293 | 85 | 0.632967 | false | 3.716078 | false | false | false |
fabiobalzano/LED | maingui.py | 1 | 5125 | """
Copyright (c) 2012, fabiodive@gmail.com All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, self
list of conditions and the... | bsd-3-clause | -911,846,867,217,889,300 | 34.10274 | 88 | 0.618341 | false | 4.221582 | false | false | false |
acbraith/crossfit_scraper | data_analysis.py | 1 | 23756 | from crossfit_api import get_analysis_dataframe
import numpy as np
import pandas as pd
from memoize import persistent_memoize, memoize
from functools import partial
from sklearn.pipeline import Pipeline
from sklearn.feature_selection import SelectFromModel, RFECV
from sklearn.linear_model import Lasso, RANSACRegresso... | mit | 18,189,834,306,985,480 | 31.233379 | 141 | 0.658655 | false | 2.672517 | false | false | false |
browseinfo/odoo_saas3_nicolas | addons/project_mrp/project_procurement.py | 1 | 5722 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | 3,890,371,232,505,141,000 | 52.981132 | 163 | 0.627753 | false | 3.86883 | false | false | false |
jalaziz/django-cms-grappelli-old | cms/middleware/multilingual.py | 1 | 6166 | # -*- coding: utf-8 -*-
from cms.utils.i18n import get_default_language
from django.conf import settings
from django.core.urlresolvers import reverse
from django.middleware.locale import LocaleMiddleware
from django.utils import translation
import re
import urllib
SUPPORTED = dict(settings.CMS_LANGUAGES)
HAS_LANG_PRE... | bsd-3-clause | -1,841,472,630,449,027,300 | 46.430769 | 123 | 0.57444 | false | 3.944978 | false | false | false |
nuobit/odoo-addons | connector_sage/models/payroll_sage_payslip.py | 1 | 1319 | # Copyright NuoBiT Solutions, S.L. (<https://www.nuobit.com>)
# Eric Antones <eantones@nuobit.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
from odoo import api, fields, models, _
from odoo.exceptions import UserError, ValidationError
class Payslip(models.Model):
_inherit = 'payroll.sage.pa... | agpl-3.0 | 8,481,821,566,376,713,000 | 42.966667 | 115 | 0.620925 | false | 3.684358 | false | false | false |
rueckstiess/jiratopic | onlineldavb/lookup_topic.py | 1 | 1908 | import sys, os, re, random, math, urllib2, time, cPickle
import numpy
import argparse
import onlineldavb
from operator import itemgetter
topics_30 = [
"NETWORKING / CONNECTIONS",
"HARDWARE / RESOURCES",
"DRIVERS",
"MMS",
"?1",
"JIRA",
"QUERY",
"REPLICATION",
"REPLICATION",
"STORAGE???",
"NETWORKING / SETUP / LIMITS",... | apache-2.0 | 4,325,715,177,712,102,400 | 26.652174 | 128 | 0.649895 | false | 3.072464 | false | false | false |
battlemidget/shipit | shipit/git.py | 1 | 1605 | # -*- coding: utf-8 -*-
"""
shipit.git
~~~~~~~~~~
Operations on git repositories.
"""
import os
import tempfile
import subprocess
def get_remotes():
"""
Get a list of the git remote URLs for this repository.
Return a dictionary of remote names mapped to URL strings if remotes were
found.
Othe... | gpl-3.0 | 6,923,824,859,608,695,000 | 24.078125 | 84 | 0.611838 | false | 3.459052 | false | false | false |
NoviceLive/unish | py/gh.py | 1 | 2560 | #!/usr/bin/env python3
from os.path import basename, splitext
from logging import basicConfig, DEBUG
import click
from plumbum import local, FG
__author__ = 'Gu Zhengxiong'
__version__ = '0.1.0'
PROGRAM_NAME = 'GH'
PACKAGE_NAME = PROGRAM_NAME.lower()
VERSION_PROMPT = (
'{version}\n\nCopyright 2015-2016 {autho... | gpl-3.0 | 6,983,805,230,766,400,000 | 24.346535 | 64 | 0.596484 | false | 3.459459 | false | false | false |
tonnrueter/pymca_devel | PyMca/SpsDataSource.py | 1 | 12025 | #/*##########################################################################
# Copyright (C) 2004-2012 European Synchrotron Radiation Facility
#
# This file is part of the PyMca X-ray Fluorescence Toolkit developed at
# the ESRF by the Software group.
#
# This toolkit is free software; you can redistribute it and/or m... | gpl-2.0 | 4,840,702,036,057,973,000 | 39.762712 | 103 | 0.47526 | false | 4.648241 | false | false | false |
tapomayukh/projects_in_python | classification/Classification_with_kNN/Single_Contact_Classification/Feature_Comparison/multiple_features/results/test10_cross_validate_objects_1200ms_scaled_method_v_area_motion.py | 1 | 4600 |
# Principal Component Analysis Code :
from numpy import mean,cov,double,cumsum,dot,linalg,array,rank,size,flipud
from pylab import *
import numpy as np
import matplotlib.pyplot as pp
#from enthought.mayavi import mlab
import scipy.ndimage as ni
import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3')
import ro... | mit | 718,970,347,211,313,800 | 33.074074 | 666 | 0.646087 | false | 2.90404 | false | false | false |
John-Lin/RuleEngine | malware/core/engine.py | 1 | 13571 | import re
import sys
import os
import logging
import time
import hashlib
from urlparse import urlparse
from virus_total_apis import PrivateApi as VirusTotal
import pcap
import decoder
import apikey
from snort import SnortRule
from database import SQLiteTool
logger = logging.getLogger(__name__)
REQUEST_RATE = 300
AP... | apache-2.0 | -4,869,667,672,339,214,000 | 35.877717 | 118 | 0.474247 | false | 4.157782 | false | false | false |
takaakiaoki/PyFoam | PyFoam/Basics/TemplateFile.py | 1 | 16441 | # ICE Revision: $Id$
import re
from math import *
import sys
from PyFoam.Error import error,warning
from PyFoam.ThirdParty.pyratemp import Template as PyratempTemplate
from PyFoam.ThirdParty.pyratemp import EvalPseudoSandbox,TemplateRenderError
from PyFoam.ThirdParty.pyratemp import Renderer as PyratempRenderer
fro... | gpl-2.0 | 5,101,484,783,056,229,000 | 38.90534 | 144 | 0.543884 | false | 4.609195 | false | false | false |
dcifuen/cloudbday | src/birthday/constants.py | 1 | 1046 |
#Environment related constants
ENV_PRODUCTION = 'PRODUCTION'
#Staging is used for testing by replicating the same production remote env
ENV_STAGING = 'STAGING'
#Development local env
ENV_DEVELOPMENT = 'DEV'
#Automated tests local env
ENV_TESTING = 'TEST'
ENVIRONMENT_CHOICES = [
ENV_PRODUCTION,
ENV_STAGING,
... | mit | -6,952,644,356,848,802,000 | 25.846154 | 382 | 0.692161 | false | 2.745407 | false | false | false |
mlml/autovot | autovot/bin/auto_vot_append_files.py | 1 | 4617 | #! /usr/bin/env python3
#
# Copyright (c) 2014 Joseph Keshet, Morgan Sonderegger, Thea Knowles
#
# This file is part of Autovot, a package for automatic extraction of
# voice onset time (VOT) from audio files.
#
# Autovot is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser Gen... | lgpl-3.0 | -8,348,166,290,750,049,000 | 36.536585 | 116 | 0.619883 | false | 4.155716 | false | false | false |
fallen/artiq | artiq/transforms/quantize_time.py | 1 | 4035 | """
This transform turns calls to delay() that use non-integer time
expressed in seconds into calls to delay_mu() that use int64 time
expressed in multiples of ref_period.
It does so by inserting multiplication/division/rounding operations around
those calls.
The seconds_to_mu and mu_to_seconds core language function... | gpl-3.0 | -2,171,472,973,711,803,400 | 34.707965 | 74 | 0.513507 | false | 3.952008 | false | false | false |
GNOME/pygoocanvas | demo/customs/custom-svg.py | 1 | 4302 | import gobject
import gtk
import goocanvas
import rsvg
import cairo
class CustomSvgItem(goocanvas.ItemSimple):
# setup our custom properties
__gproperties__ = {
'x': (float, # property type
'X', # property nick name
... | lgpl-2.1 | -2,475,605,450,880,108,500 | 27.302632 | 103 | 0.477685 | false | 4.031865 | false | false | false |
Balannen/LSMASOMM | atom3/Kernel/ATOM3Types/ATOM3Text.py | 1 | 9751 | # Implements : class ATOM3Constraint
# Author : Juan de Lara
# Description : A class for the ATOM3 Constraint type.
# Modified : 17 Oct 2002
# Changes :
# ____________________________________________________________________________________________________________________
from Tkinter imp... | gpl-3.0 | 613,949,713,060,251,900 | 43.143519 | 118 | 0.537278 | false | 4.358963 | false | false | false |
j-griffith/cinder | cinder/api/v3/volumes.py | 1 | 16280 | #
# 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
# ... | apache-2.0 | 5,036,993,927,993,056,000 | 40.958763 | 79 | 0.565295 | false | 4.378698 | false | false | false |
JasonFruit/quartermaster | inventory.py | 1 | 11732 | import os
from sqlite3 import connect
import codecs
import math
from datetime import datetime, timedelta
from dateutil.parser import parse
from glob import glob
class Report(object):
def __init__(self, filename=None):
if filename:
with codecs.open(filename, "r", "utf-8") as f:
... | gpl-3.0 | 5,854,646,780,610,648,000 | 30.708108 | 97 | 0.528299 | false | 4.238439 | false | false | false |
bd808/tools-stashbot | stashbot/bot.py | 1 | 11661 | # -*- coding: utf-8 -*-
#
# This file is part of bd808's stashbot application
# Copyright (C) 2015 Bryan Davis and contributors
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3... | gpl-3.0 | -687,042,839,125,175,300 | 34.990741 | 78 | 0.565646 | false | 3.958248 | true | false | false |
jpypi/othello-rl | nn.py | 1 | 3616 | #!/usr/bin/env python3
import math
import numpy as np
import random
import pickle
from scipy.special import expit
class NN:
def __init__(self, layer_dims, learning_rate):
self.learning_rate = learning_rate
self.layer_dims = layer_dims
self.layers = []
for i in range(len(layer_dims... | mit | -8,640,016,886,223,186,000 | 30.719298 | 107 | 0.583794 | false | 3.263538 | false | false | false |
DamienIrving/ocean-analysis | visualisation/plot_zonal_ensemble.py | 1 | 16584 | """
Filename: plot_zonal_ensemble.py
Author: Damien Irving, irving.damien@gmail.com
Description: Plot zonal ensemble
"""
# Import general Python modules
import sys, os, pdb
import argparse
from itertools import groupby
from more_itertools import unique_everseen
import numpy
import iris
from iris.experi... | mit | 2,047,722,086,865,415,700 | 34.511777 | 156 | 0.613965 | false | 3.474544 | false | false | false |
ReneHollander/rep0st | rep0st/db/post.py | 1 | 6485 | import enum
import logging
from itertools import groupby
from typing import List, Optional
from injector import Module, ProviderOf, inject
from sqlalchemy import Boolean, Column, DateTime, Enum, Index, Integer, String, and_, func
from sqlalchemy.orm import Session, relationship
from rep0st.config.rep0st_database impo... | mit | 811,414,169,857,554,000 | 27.69469 | 90 | 0.643639 | false | 3.416754 | false | false | false |
mknorps/pp_TCF | apriori_SGS_fede_timestat.py | 1 | 5259 | # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# File name: apriori_SGS_fede_timestat.py
# Created by: gemusia
# Creation date: 11-07-2017
# Last modified: 12-08-2017 08:48:12
# Purpose:computation of apriori statistics of particles,
# statistic derived from scratch
# - test of possible substitution of ... | mit | -6,074,349,511,344,591,000 | 37.386861 | 118 | 0.602206 | false | 2.456329 | false | false | false |
n0x5/scripts | _nonworking_instagrab_all.py | 1 | 3066 | # instagrabALL.py - download all images from instagram user
import re
from selenium import webdriver
import time
import sys
import itertools
import os
import urllib.request
from urllib.request import FancyURLopener
from selenium.webdriver import Chrome, ChromeOptions
from selenium.webdriver.common.desired_capabilities... | gpl-2.0 | -2,309,897,375,846,428,700 | 38.307692 | 122 | 0.594586 | false | 3.456595 | false | false | false |
kim135797531/opencog-python-blending | opencog_b/python/blending/connector/connector_finder.py | 1 | 1096 | from opencog_b.python.blending.connector.connect_conflict_random import \
ConnectConflictRandom
from opencog_b.python.blending.connector.connect_conflict_viable import \
ConnectConflictAllViable
from opencog_b.python.blending.connector.connect_simple import ConnectSimple
from opencog_b.python.blending.util.blen... | agpl-3.0 | 7,915,618,802,387,955,000 | 32.212121 | 76 | 0.665146 | false | 3.805556 | false | false | false |
w1ll1am23/home-assistant | homeassistant/components/climacell/config_flow.py | 1 | 5415 | """Config flow for ClimaCell integration."""
from __future__ import annotations
import logging
from typing import Any
from pyclimacell import ClimaCellV3
from pyclimacell.exceptions import (
CantConnectException,
InvalidAPIKeyException,
RateLimitedException,
)
from pyclimacell.pyclimacell import ClimaCell... | apache-2.0 | 4,533,324,280,178,194,400 | 31.620482 | 88 | 0.598523 | false | 3.926759 | true | false | false |
gbowerman/azurerm | test/insights_test.py | 1 | 6201 | # azurerm unit tests - insights
# To run tests: python -m unittest insights_test.py
# Note: The insights test unit creates a VM scale set in order to add autoscale rules.
# Therefore it is a fairly good way to exercise storage, network, compute AND insights functions.
import azurerm
from cryptography.hazmat.primitive... | mit | 7,930,434,742,642,818,000 | 42.669014 | 99 | 0.643122 | false | 3.751361 | true | false | false |
pvpnvz/internshipsystem | app/main/form.py | 1 | 8930 | from flask.ext.wtf import Form
from wtforms import StringField, SubmitField, TextAreaField, DateTimeField, SelectField, BooleanField, DateField, \
validators, FileField
from wtforms.validators import Required, URL, Email
from .. import db
from flask.ext.pagedown.fields import PageDownField
# datepicker failed
'''
f... | mit | -2,135,802,151,291,333,400 | 43.479769 | 136 | 0.690408 | false | 2.614339 | false | false | false |
tumi8/INSALATA | src/insalata/model/Layer3Network.py | 1 | 2247 | from xml.etree.ElementTree import SubElement
from insalata.model.Node import Node
from insalata.helper import ipAddressHelper
class Layer3Network(Node):
def __init__(self, id, address, netmask, collectorName=None, timeout=None):
Node.__init__(self, collectorName=collectorName, timeout=timeout)
self... | apache-2.0 | 1,989,012,771,868,093,700 | 35.241935 | 111 | 0.64753 | false | 4.161111 | false | false | false |
pleeplee-robot/location | pleepleeloc/utils.py | 1 | 4107 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
##################################################
# AUTHOR : Loïc Banet #
# SUMMARY : Contain enum class that define color #
##################################################
import math
from enum import Enum
from itertools import count
cla... | mit | 5,753,621,721,867,769,000 | 30.829457 | 80 | 0.585485 | false | 4.472767 | false | false | false |
Kosinkadink/jno | jno/commands/build.py | 1 | 1575 | from jno.util import interpret_configs
from jno.util import run_arduino_process
from jno.util import create_build_directory
from jno.util import get_common_parameters
from jno.util import JnoException
from jno.util import verify_arduino_dir
from jno.commands.command import Command
import getopt
class Build(Command):
... | mit | 5,202,770,822,314,608,000 | 31.142857 | 140 | 0.707302 | false | 2.988615 | false | false | false |
laramies/theHarvester | theHarvester/discovery/takeover.py | 1 | 3519 | from theHarvester.lib.core import *
import re
class TakeOver:
def __init__(self, hosts):
# NOTE THIS MODULE IS ACTIVE RECON
self.hosts = hosts
self.results = ""
self.totalresults = ""
self.proxy = False
# Thank you to https://github.com/EdOverflow/can-i-take-over-x... | gpl-2.0 | -1,580,792,400,011,075,600 | 53.138462 | 141 | 0.522876 | false | 4.420854 | false | false | false |
ziozzang/coreos-stuff | sample/etcd-reader.py | 1 | 1490 | # This code is used for "internal docker container" read/write value at etcd.
#
# CoreOS (etcd Activated)
# | ^
# | NAT | iptables
# V |
# Docker Container -> python code.
#
# This can be used for "distriburted or HA environment"
import requests
import json
class etcd... | mit | 5,701,041,995,374,456,000 | 25.607143 | 81 | 0.567785 | false | 3.281938 | false | false | false |
lifemapper/core | LmBackend/common/lmobj.py | 1 | 8598 | """Module containing the base Lifemapper object class.
"""
import glob
import inspect
import json
import os
import sys
import traceback
from LmCommon.common.lmconstants import LMFormat
# ............................................................................
class LMObject:
"""Base class for all objects in ... | gpl-3.0 | -5,408,623,335,341,066,000 | 33.669355 | 79 | 0.491626 | false | 4.726773 | false | false | false |
tbarbugli/django_email_multibackend | django_email_multibackend/conditions.py | 1 | 2706 | from django.core.mail import EmailMessage
class BaseCondition(object):
def __init__(self, **kwargs):
self.params = kwargs
def __call__(self, message):
if not isinstance(message, (EmailMessage, )):
raise TypeError('%r is not a subclass of django.core.mail.EmailMessage' % message)
... | isc | 970,156,628,427,079,700 | 28.736264 | 124 | 0.626016 | false | 3.753121 | false | false | false |
dmach/dnf | dnf/cli/output.py | 1 | 98515 | # Copyright 2005 Duke University
# Copyright (C) 2012-2016 Red Hat, Inc.
#
# 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 versio... | gpl-2.0 | 4,829,881,065,076,747,000 | 40.065027 | 141 | 0.514703 | false | 4.258635 | false | false | false |
levinsamuel/rand | python/api/mysqlcl.py | 1 | 1787 | from datetime import datetime
from sqlalchemy import create_engine, __version__ as v, Column, Integer, String, DateTime
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
import pprint
import logging
import json
from people import Person
logging.basicConfig()
log = logging.... | mit | -4,172,617,481,449,023,000 | 24.542857 | 98 | 0.641298 | false | 3.595573 | false | false | false |
maxikov/tatmon | trash/bezier.py | 1 | 7830 | #!/usr/bin/env python
# -*- coding:utf8 -*-
import pygame
import sys
import numpy
class Activity(object):
def __init__(self, screen_size, manager, clock):
self.screen_size = screen_size
self.manager = manager
def render(self, surface):
pass
def process_event(self, event):
pass
def step(self):
pass
... | gpl-3.0 | -5,036,191,145,068,028,000 | 29.123967 | 122 | 0.678052 | false | 2.435683 | false | false | false |
maxcutler/Courant-News | courant/core/search/templatetags/search.py | 1 | 2614 | from django.template import Library, Node, Variable
from courant.core.search.forms import CourantSearchForm
register = Library()
class SearchFacetCheck(Node):
def __init__(self, facet, value, varname):
self.facet = facet
self.value = value
self.varname = varname
def... | bsd-3-clause | -8,180,363,655,275,698,000 | 32.88 | 81 | 0.612854 | false | 3.878338 | false | false | false |
oblique-labs/pyVM | rpython/jit/metainterp/optimizeopt/unroll.py | 1 | 26476 |
import sys
from rpython.jit.metainterp.history import Const, TargetToken, JitCellToken
from rpython.jit.metainterp.optimizeopt.shortpreamble import ShortBoxes,\
ShortPreambleBuilder, ExtendedShortPreambleBuilder, PreambleOp
from rpython.jit.metainterp.optimizeopt import info, intutils
from rpython.jit.metainterp.... | mit | -7,870,068,044,440,899,000 | 45.860177 | 102 | 0.589968 | false | 4.251807 | false | false | false |
googleinterns/deepspeech-reconstruction | bin/reconstruct-librispeech/reconstruct-random-transcript.py | 1 | 1250 | import argparse
import os
import random
import subprocess
from utils import check_local_utt_reconstructed
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Invert MFCCs to audio.')
parser.add_argument('-s', type=int, dest='start', default=0, help='Starting index')
parser.add_argume... | apache-2.0 | 6,823,140,920,074,062,000 | 40.666667 | 149 | 0.6392 | false | 3.255208 | false | false | false |
fheinle/Photoblog | get_picasa_id.py | 1 | 1160 | #!/usr/bin/env python
# -*- coding:utf-8 -*-
''' helper that displays all public album ids for a user'''
# Copyright (C) 2009 Florian Heinle
#
# 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, e... | gpl-3.0 | -8,508,907,138,972,113,000 | 35.25 | 71 | 0.739655 | false | 3.580247 | false | false | false |
mopsalarm/broke | broke/print.py | 1 | 1488 | import broke
import sys
import argparse
def parse_arguments():
parser = argparse.ArgumentParser(description="Prints information about a broke-file")
parser.add_argument("--verbose", action="store_true", help="Print each message")
parser.add_argument("--utf8", action="store_true", help="Prints payload of ea... | apache-2.0 | 4,124,027,425,176,440,300 | 32.818182 | 119 | 0.619624 | false | 4.20339 | false | false | false |
tianyang-li/meta-transcriptome | sample_compare_1/blast_relate.py | 1 | 3108 | #!/usr/bin/python
# Copyright (C) 2011 Tianyang Li
#
# 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... | gpl-3.0 | 2,542,866,438,202,363,400 | 38.341772 | 114 | 0.57529 | false | 3.665094 | false | false | false |
hmgle/send_wave | request_token.py | 1 | 1059 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from urllib import quote, urlencode
import urllib2
import time
import uuid
import hmac, hashlib
from config import consumer_key, client_secret
def get_token():
URL = 'http://fanfou.com/oauth/request_token'
params = [
('oauth_consumer_key', consumer_key),
... | gpl-2.0 | -5,850,782,801,666,942,000 | 26.153846 | 81 | 0.587347 | false | 3.394231 | false | false | false |
allisson/python-cielo-webservice | cielo_webservice/models.py | 1 | 22823 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import six
import xmltodict
from unidecode import unidecode
class Comercial(object):
"""
Modelo para os dados comerciais da loja.
"""
def __init__(self, numero=None, chave=None):
self.numero = numero
self.chave = chave
... | mit | 4,884,582,285,604,461,000 | 35.447284 | 297 | 0.624606 | false | 3.433559 | false | false | false |
ForAP/Advanc3d-Pr0graming | Spikes/DnD/toolbox.py | 1 | 2574 | # File name: toolbox.py
import kivy
kivy.require('1.8.0')
import math
from kivy.uix.togglebutton import ToggleButton
from kivy.graphics import Line
from dnd import StickMan, DraggableWidget
class ToolButton(ToggleButton):
def on_touch_down(self, touch):
ds = self.parent.drawing_space
if self.state ... | gpl-2.0 | 8,474,231,486,654,924,000 | 31.582278 | 71 | 0.60101 | false | 2.869565 | false | false | false |
DavidAndreev/indico | indico/modules/events/sessions/controllers/display.py | 1 | 4250 | # This file is part of Indico.
# Copyright (C) 2002 - 2016 European Organization for Nuclear Research (CERN).
#
# Indico 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 (a... | gpl-3.0 | 6,430,539,133,723,840,000 | 42.814433 | 108 | 0.679059 | false | 4.066986 | false | false | false |
zerothi/sisl | sisl/io/siesta/__init__.py | 1 | 2186 | # 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 https://mozilla.org/MPL/2.0/.
"""
Siesta
======
The interaction between sisl and `Siesta`_ is one of the main goals due
to the implicit relationship ... | lgpl-3.0 | -871,648,533,786,630,800 | 33.698413 | 88 | 0.746112 | false | 3.163531 | false | true | false |
openstates/openstates | openstates/ga/people.py | 1 | 8685 | from pupa.scrape import Person, Scraper
from openstates.utils import LXMLMixin
from .util import get_client, get_url, backoff, SESSION_SITE_IDS
HOMEPAGE_URLS = {
"lower": (
"http://www.house.ga.gov/Representatives/en-US/"
"member.aspx?Member={code}&Session={sid}"
),
"upper": (
"h... | gpl-3.0 | -9,173,314,109,548,088,000 | 35.491597 | 87 | 0.49764 | false | 4.018973 | false | false | false |
abelcarreras/MonteModes | montemodes/functions/symgroup.py | 1 | 2983 | import os
from subprocess import Popen, PIPE, call
class Symgroup:
def __init__(self,
symmetry='c 5',
label=False,
connect=False,
central_atom=0,
custom_atom_list=None):
self._symmetry = symmetry
self._label = la... | mit | 6,281,239,343,185,834,000 | 26.62037 | 105 | 0.606772 | false | 3.660123 | false | false | false |
hqpr/findyour3d | findyour3d/dashboard/tests.py | 1 | 7564 | import datetime
import stripe
from django.urls import reverse
from django.utils import timezone
from django.test import TestCase, Client
from findyour3d.users.models import User
from findyour3d.company.models import Company
from findyour3d.customer.models import Customer
STRIPE_API_KEY = 'sk_test_BS2t9JImRsscT1vyWN... | mit | -9,013,767,914,590,766,000 | 56.30303 | 113 | 0.39569 | false | 5.623792 | true | false | false |
PetePriority/home-assistant | homeassistant/components/dovado/sensor.py | 1 | 3451 | """
Support for sensors from the Dovado router.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.dovado/
"""
import logging
import re
from datetime import timedelta
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from... | apache-2.0 | -3,113,419,008,167,591,000 | 28.75 | 74 | 0.614604 | false | 3.81326 | false | false | false |
zhenleiji/ZPong | model/Ball.py | 1 | 1115 | import pygame
class Ball(pygame.sprite.Sprite):
def __init__(self, screen_size, position, speed):
pygame.sprite.Sprite.__init__(self)
self.surface = pygame.image.load('imgs/ball.png')
self.screen_size = screen_size
self.rect = self.surface.get_rect()
self.rect.left = positi... | apache-2.0 | -6,082,744,259,949,847,000 | 38.821429 | 119 | 0.564126 | false | 3.741611 | false | false | false |
paninetworks/neutron | neutron/api/v2/resource.py | 1 | 7410 | # Copyright 2012 OpenStack Foundation.
# 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 req... | apache-2.0 | 2,723,557,886,444,570,000 | 37.393782 | 78 | 0.617274 | false | 4.493633 | false | false | false |
lixiangning888/whole_project | modules/signatures_orginal_20151110/kibex_apis.py | 1 | 2683 | # Copyright (C) 2015 KillerInstinct
#
# 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 distributed i... | lgpl-3.0 | -5,876,482,425,457,491,000 | 32.936709 | 86 | 0.591943 | false | 3.692837 | false | false | false |
daira/txaws | txaws/client/gui/gtk.py | 1 | 7469 | # Copyright (C) 2009 Robert Collins <robertc@robertcollins.net>
# Licenced under the txaws licence available at /LICENSE in the txaws source.
"""A GTK client for working with aws."""
from __future__ import absolute_import
import gnomekeyring
import gobject
import gtk
# DO NOT IMPORT twisted.internet, or things that ... | mit | 3,419,770,804,056,794,600 | 33.419355 | 79 | 0.58214 | false | 4.090361 | false | false | false |
konfabproject/konfab-consumer | ebdata/templatemaker/hole.py | 1 | 2728 | # Copyright 2007,2008,2009,2011 Everyblock LLC, OpenPlans, and contributors
#
# This file is part of ebdata
#
# ebdata 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,... | gpl-3.0 | 1,591,653,641,166,182,100 | 33.1 | 122 | 0.645161 | false | 3.83685 | false | false | false |
SD-Genomics/DeviCNV | Code_v1.5.1/python.calculateReadsDepthOfAmp.py | 1 | 12310 | import random
import numpy
import pysam
import sys
from intervaltree import Interval, IntervalTree
from intervaltree_bio import GenomeIntervalTree
class Amplicon:
ampID=""
chr=""
ampS=0
inS=0
inE=0
ampE=0
gene=""
trans=""
exon=""
pool=""
datType=""
mappedReadList=[]
... | gpl-3.0 | 8,927,712,984,042,554,000 | 36.078313 | 144 | 0.567019 | false | 3.490218 | false | false | false |
rschwager-mm/polymr | redis/polymr_redis.py | 1 | 4582 | import operator
from array import array
from collections import defaultdict
import redis
import polymr.storage
from polymr.storage import dumps
from polymr.storage import LevelDBBackend
from toolz import partition_all
from toolz import valmap
snd = operator.itemgetter(1)
class FakeDict(object):
def __init__(sel... | apache-2.0 | -48,296,670,859,349,150 | 29.344371 | 78 | 0.567001 | false | 3.648089 | false | false | false |
internetarchive/surt | surt/IAURLCanonicalizer.py | 1 | 4773 | #!/usr/bin/env python
# Copyright(c)2012-2013 Internet Archive. Software license AGPL version 3.
#
# This file is part of the `surt` python package.
#
# surt 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 Soft... | agpl-3.0 | -5,654,537,029,364,316,000 | 31.691781 | 175 | 0.575948 | false | 3.824519 | false | false | false |
ironmussa/Optimus | optimus/helpers/logger.py | 1 | 1154 | import logging
class Singleton(object):
_instances = {}
def __new__(cls, *args, **kwargs):
if cls not in cls._instances:
cls._instances[cls] = super(Singleton, cls).__new__(cls, *args, **kwargs)
return cls._instances[cls]
class Logger(Singleton):
def __init__(self):
... | apache-2.0 | 5,459,292,666,941,125,000 | 19.245614 | 85 | 0.558059 | false | 3.885522 | false | false | false |
tboyce1/home-assistant | homeassistant/components/cover/lutron_caseta.py | 8 | 2336 | """
Support for Lutron Caseta shades.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/cover.lutron_caseta/
"""
import asyncio
import logging
from homeassistant.components.cover import (
CoverDevice, SUPPORT_OPEN, SUPPORT_CLOSE, SUPPORT_SET_POSITION,
... | apache-2.0 | 7,136,652,141,303,749,000 | 30.567568 | 79 | 0.675942 | false | 3.719745 | false | false | false |
google/uncertainty-baselines | uncertainty_baselines/models/vit.py | 1 | 8712 | # coding=utf-8
# Copyright 2021 The Uncertainty Baselines Authors.
#
# 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 ap... | apache-2.0 | -5,979,821,114,769,184,000 | 28.632653 | 80 | 0.63579 | false | 3.592577 | false | false | false |
xtiankisutsa/MARA_Framework | tools/lobotomy/core/brains/ui/terminal.py | 1 | 5944 | import npyscreen
from core.logging.logger import Logger
from androguard.core.bytecodes.dvm import ClassDefItem
from androguard.core.bytecodes.dvm import EncodedMethod
from pygments import highlight
from pygments.lexers.dalvik import SmaliLexer
from pygments.formatters import TerminalFormatter
# Global
# This global va... | lgpl-3.0 | 8,790,369,643,042,996,000 | 31.480874 | 77 | 0.502019 | false | 4.669285 | false | false | false |
tensorflow/models | orbit/utils/epoch_helper.py | 1 | 2136 | # Copyright 2021 The Orbit 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 of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | apache-2.0 | -7,904,109,597,831,953,000 | 31.861538 | 77 | 0.69382 | false | 4.007505 | false | false | false |
e27182/nRF52832_pesky | external/motion_driver_6.12/eMPL-pythonclient/eMPL-client.py | 1 | 10573 | #!/usr/bin/python
# eMPL_client.py
# A PC application for use with Embedded MotionApps.
# Copyright 2012 InvenSense, Inc. All Rights Reserved.
import serial, sys, time, string, pygame
from ponycube import *
class eMPL_packet_reader:
def __init__(self, port, quat_delegate=None, debug_delegate=None, data... | mit | 4,605,220,104,819,289,600 | 34.333333 | 98 | 0.467795 | false | 2.996033 | false | false | false |
facebookresearch/ParlAI | parlai/tasks/dbll_babi/build.py | 1 | 1148 | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# Download and build the data if it does not exist.
from parlai.core.build_data import DownloadableFile
import parlai.co... | mit | 9,206,499,509,482,865,000 | 30.027027 | 75 | 0.671603 | false | 3.308357 | false | false | false |
mileswwatkins/pupa | pupa/scrape/vote_event.py | 1 | 2639 | from ..utils import _make_pseudo_id
from .base import BaseModel, cleanup_list, SourceMixin
from .bill import Bill
from .popolo import pseudo_organization
from .schemas.vote_event import schema
class VoteEvent(BaseModel, SourceMixin):
_type = 'vote_event'
_schema = schema
def __init__(self, *, motion_text... | bsd-3-clause | 3,333,108,685,144,994,300 | 36.7 | 95 | 0.589996 | false | 3.852555 | false | false | false |
tvenkat/askbot-devel | askbot/deps/django_authopenid/views.py | 1 | 48584 | # -*- coding: utf-8 -*-
# Copyright (c) 2007, 2008, Benoît Chesneau
# Copyright (c) 2007 Simon Willison, original work on django-openid
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# ... | gpl-3.0 | -5,702,246,370,040,461,000 | 38.724448 | 137 | 0.571249 | false | 4.526085 | false | false | false |
nmercier/linux-cross-gcc | linux/lib/python2.7/dist-packages/blueman/plugins/applet/TransferService.py | 1 | 3021 | # Copyright (C) 2008 Valmantas Paliksa <walmis at balticum-tv dot lt>
# Copyright (C) 2008 Tadas Dailyda <tadas at dailyda dot com>
#
# Licensed under the GNU General Public License Version 3
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License ... | bsd-3-clause | -387,308,072,825,584,800 | 25.973214 | 99 | 0.706058 | false | 3.29085 | false | false | false |
PcBoy111/PCBOT | plugins/summary.py | 1 | 11839 | """ Plugin for generating markov text, or a summary if you will. """
import logging
import random
import re
from collections import defaultdict, deque
from functools import partial
import asyncio
import discord
from pcbot import utils, Annotate, config, Config
import plugins
client = plugins.client # type: discord... | mit | -7,238,924,322,491,007,000 | 35.767081 | 117 | 0.633077 | false | 3.955563 | false | false | false |
hperala/kontuwikibot | scripts/pagefromfile.py | 1 | 11275 | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Bot to upload pages from a file.
This bot takes its input from a file that contains a number of
pages to be put on the wiki. The pages should all have the same
begin and end text (which may not overlap).
By default the text should have the intended title of the page
as t... | mit | 5,619,537,847,152,305,000 | 33.270517 | 99 | 0.565233 | false | 4.400859 | false | false | false |
nilsbore/mongodb_store | mongodb_store/scripts/replicator_node.py | 1 | 4745 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Provides a service to store ROS message objects in a mongodb database in JSON.
"""
import rospy
import actionlib
import pymongo
import os
import shutil
import subprocess
from mongodb_store_msgs.msg import MoveEntriesAction, MoveEntriesFeedback
from datetime import *
... | bsd-3-clause | -4,346,565,988,069,184,500 | 31.951389 | 144 | 0.602529 | false | 3.92798 | false | false | false |
pbougue/navitia | source/jormungandr/jormungandr/realtime_schedule/tests/sytral_test.py | 1 | 12100 | # coding=utf-8
# Copyright (c) 2001-2016, Canal TP and/or its affiliates. All rights reserved.
#
# This file is part of Navitia,
# the software to build cool stuff with public transport.
#
# Hope you'll enjoy and contribute to this project,
# powered by Canal TP (www.canaltp.fr).
# Help us simplify mobility and ope... | agpl-3.0 | -1,132,391,332,243,707,600 | 31.380697 | 106 | 0.556466 | false | 3.474684 | true | false | false |
chireiden/shanghai | tests/test_config.py | 1 | 11543 | # Copyright © 2016 Lars Peter Søndergaard <lps@chireiden.net>
# Copyright © 2016 FichteFoll <fichtefoll2@googlemail.com>
#
# This file is part of Shanghai, an asynchronous multi-server IRC bot.
#
# Shanghai is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License ... | gpl-3.0 | -8,030,794,685,028,742,000 | 30.790634 | 96 | 0.566464 | false | 3.860823 | true | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.