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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
davy39/eric | E5Network/E5NetworkMonitor.py | 1 | 13678 | # -*- coding: utf-8 -*-
# Copyright (c) 2009 - 2014 Detlev Offenbach <detlev@die-offenbachs.de>
#
"""
Module implementing a network monitor dialog.
"""
from __future__ import unicode_literals
from PyQt5.QtCore import Qt, QAbstractTableModel, QModelIndex, QUrl, \
QSortFilterProxyModel
from PyQt5.QtGui import QSt... | gpl-3.0 | 7,615,740,484,586,443,000 | 34.343669 | 79 | 0.588609 | false | 4.559333 | false | false | false |
pettai/capirca | tests/packetfilter_test.py | 1 | 22997 | # Copyright 2013 Google 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 law or a... | apache-2.0 | -5,017,035,875,669,173,000 | 31.435825 | 83 | 0.643649 | false | 3.504038 | true | false | false |
zijistark/zckTools | src/zck/token_codegen.py | 1 | 1078 | #!/usr/bin/python3
import sys
from pathlib import Path
list_scope_path = Path("./list_scope_tokens.txt")
keyword_bit = 13
list_scope_bit = 14
def main():
if len(sys.argv) < 2:
print("Error: Must specify an argument of either 'tokens' or 'emitters'!", file=sys.stderr)
return 1
list_scopes = set()
with list_s... | lgpl-3.0 | -3,612,522,775,626,830,300 | 23.5 | 99 | 0.602968 | false | 2.674938 | false | false | false |
scientia-jp/db_file_storage | db_file_storage/model_utils.py | 1 | 1700 | # project
from db_file_storage.storage import DatabaseFileStorage
def delete_file_if_needed(instance, filefield_name):
"""
When editing and the filefield is a new file,
delete the previous file (if any) from the database.
Call this function immediately BEFORE saving the instance.
"""... | gpl-3.0 | -4,666,363,623,960,723,000 | 36.777778 | 77 | 0.604706 | false | 4.228856 | false | false | false |
Merinorus/adaisawesome | Homework/02 - Data from the Web/Question 2.py | 1 | 14839 |
# coding: utf-8
# Obtain all the data for the Master students, starting from 2007. Compute how many months it took each master student to complete their master, for those that completed it. Partition the data between male and female students, and compute the average -- is the difference in average statistically signi... | gpl-3.0 | 7,325,369,395,381,894,000 | 38.147757 | 850 | 0.737009 | false | 3.216345 | false | false | false |
amitjamadagni/sympy | sympy/plotting/experimental_lambdify.py | 1 | 23947 | """ rewrite of lambdify - This stuff is not stable at all.
It is for internal use in the new plotting module.
It may (will! see the Q'n'A in the source) be rewritten.
It's completely self contained. Especially it does not use lambdarepr.
It does not aim to replace the current lambdify. Most importantly it will never... | bsd-3-clause | -8,688,089,668,296,977,000 | 37.132166 | 91 | 0.555602 | false | 4.094904 | false | false | false |
chirilo/kuma | kuma/wiki/views/create.py | 1 | 5526 | # -*- coding: utf-8 -*-
import newrelic.agent
from django.core.exceptions import PermissionDenied
from django.http import HttpResponseRedirect
from django.shortcuts import render
from constance import config
from kuma.attachments.forms import AttachmentRevisionForm
from kuma.attachments.models import Attachment
from... | mpl-2.0 | -7,831,619,616,727,707,000 | 32.289157 | 82 | 0.608035 | false | 4.001448 | false | false | false |
sch3m4/intelmq | intelmq/bots/parsers/dragonresearchgroup/parser_ssh.py | 1 | 1540 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import sys
from intelmq.lib import utils
from intelmq.lib.bot import Bot
from intelmq.lib.message import Event
class DragonResearchGroupSSHParserBot(Bot):
def process(self):
report = self.receive_message()
if report is None or not ... | agpl-3.0 | 7,095,525,332,861,788,000 | 26.5 | 61 | 0.543506 | false | 4.074074 | false | false | false |
jendap/tensorflow | tensorflow/python/keras/callbacks_v1.py | 1 | 17877 | # Copyright 2015 The TensorFlow 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 applica... | apache-2.0 | -9,018,497,592,439,042,000 | 41.162736 | 102 | 0.644068 | false | 4.108711 | false | false | false |
barentsen/reproject | reproject/mosaicking/background.py | 1 | 4696 | # Licensed under a 3-clause BSD style license - see LICENSE.rst
from math import exp
import numpy as np
__all__ = ['solve_corrections_sgd', 'determine_offset_matrix']
def determine_offset_matrix(arrays):
"""
Given a list of ReprojectedArraySubset, determine the offset
matrix between all arrays.
"""... | bsd-3-clause | 1,066,453,239,772,210,600 | 34.847328 | 79 | 0.635009 | false | 4.328111 | false | false | false |
cseed/hail | batch/batch/worker/flock.py | 1 | 1551 | import fcntl
import os
import argparse
import subprocess as sp
from pathlib import Path
from hailtop.utils import blocking_to_async
class Flock:
def __init__(self, path, pool=None, nonblock=False):
self.path = Path(path).resolve()
self.lock_path = self.path.parent
self.pool = pool
... | mit | 8,024,200,573,664,678,000 | 29.411765 | 91 | 0.615087 | false | 3.50905 | false | false | false |
broadinstitute/toothpick | toothpick/errors.py | 1 | 2792 | import inflection
class Errors(object):
'''
The `Errors` object is a container of validation errors stored on an
instance of a :class:`Base` subclass. An object's validation
state (and the response to :meth:`Base.valid()`) is governed by the number
of errors collected: 0 means valid, and more mean... | bsd-3-clause | 3,059,718,520,421,041,700 | 27.489796 | 82 | 0.55659 | false | 4.136296 | false | false | false |
deapplegate/wtgpipeline | cal_extinctions.save.py | 1 | 3796 | import threading
def ebv_list(list_submit,list_dict,i,ppid):
import os
lineindex = 0
timehold = time.time()
list_out = []
out = open('/tmp/tmpf_' + str(i) + '_' + str(ppid),'w')
for line in list_submit:
tt = re.split('\s+',line)
ra = float(tt[0])
dec = float(tt[1])
EB... | mit | -1,447,512,690,213,546,200 | 24.47651 | 159 | 0.608799 | false | 2.564865 | false | false | false |
ismtabo/file-mixer | file_mixer/main_view/model.py | 1 | 5227 | import os
import stat
from .errors import NoneCurrentProblem, UnsavedModifiedProblem
from .models import FolderTreeElement, Problem, NumberedProblem
class MainViewModel:
def __init__(self):
self._path = None
self._pathtree = None
self._is_modified = False
self._problem = None
... | mit | -5,864,439,062,170,376,000 | 29.213873 | 99 | 0.626172 | false | 4.218725 | false | false | false |
Ferroman/configuration.py | configuration_py/parser_lookup.py | 1 | 1521 | import inspect
import os
import pkgutil
import sys
from configuration_py.parsers.base_parser import BaseConfigParser
PARSERS_DIR_NAME = 'parsers'
def get_supported_extensions():
available_parsers = _lookup_for_available_parsers()
for parser_class in available_parsers:
for extension in parser_class.... | mit | 4,643,955,388,156,396,000 | 30.6875 | 110 | 0.69691 | false | 3.940415 | false | false | false |
plamut/superdesk-core | superdesk/ws.py | 1 | 4280 | #!/usr/bin/env python
# -*- coding: utf-8; -*-
#
# This file is part of Superdesk.
#
# Copyright 2013, 2014, 2015 Sourcefabric z.u. and contributors.
#
# For the full copyright and license information, please see the
# AUTHORS and LICENSE files distributed with this source code, or
# at https://www.sourcefabric.org/sup... | agpl-3.0 | -7,511,321,612,840,697,000 | 27.533333 | 111 | 0.662383 | false | 4.095694 | true | false | false |
uclouvain/osis_louvain | base/business/education_group.py | 1 | 17182 | ##############################################################################
#
# OSIS stands for Open Student Information System. It's an application
# designed to manage the core business of higher education institutions,
# such as universities, faculties, institutes and professional schools.
# The core ... | agpl-3.0 | -4,671,695,049,412,746,000 | 41.422222 | 120 | 0.693964 | false | 3.463911 | false | false | false |
AXAz0r/apex-sigma-core | sigma/core/mechanics/event.py | 1 | 2405 | import discord
from sigma.core.mechanics.logger import create_logger
class SigmaEvent(object):
def __init__(self, bot, event, plugin_info, event_info):
self.bot = bot
self.db = self.bot.db
self.event = event
self.plugin_info = plugin_info
self.event_info = event_info
... | gpl-3.0 | 834,906,843,449,019,000 | 34.895522 | 78 | 0.569231 | false | 3.942623 | false | false | false |
openwfm/wrfxweb | src/utils.py | 1 | 4271 | from __future__ import absolute_import
import fcntl, errno, logging, json, os, sys
import os.path as osp
class Dict(dict):
"""
A dictionary that allows member access to its keys.
A convenience class.
"""
def __init__(self, d):
"""
Updates itself with d.
"""
self.upd... | mit | -2,771,383,232,434,513,400 | 34.890756 | 124 | 0.59307 | false | 3.503692 | false | false | false |
nsmoooose/csp | csp/data/ui/tutorials/takeoff/takeoff.py | 1 | 2115 | #!/usr/bin/python
# Combat Simulator Project
# Copyright (C) 2002-2009 The Combat Simulator Project
# http://csp.sourceforge.net
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version... | gpl-2.0 | 5,528,677,412,418,689,000 | 34.25 | 109 | 0.689835 | false | 3.57868 | false | false | false |
TomasTomecek/compose | compose/project.py | 1 | 13569 | from __future__ import absolute_import
from __future__ import unicode_literals
import logging
from functools import reduce
from docker.errors import APIError
from docker.errors import NotFound
from . import parallel
from .config import ConfigurationError
from .config.sort_services import get_service_name_from_net
fr... | apache-2.0 | -7,479,709,630,229,278,000 | 34.802111 | 103 | 0.588253 | false | 4.387003 | true | false | false |
honza/heroku-sprunge | sprunge/app.py | 1 | 1970 | import os
import pygments.lexers
from pygments import highlight
from pygments.formatters import HtmlFormatter
from flask import Flask, request, make_response
from db import insert, find
from bson.errors import InvalidId
from settings import *
app = Flask(__name__)
HOME = """
<style> a { text-decoration: none } </s... | bsd-2-clause | 5,201,614,514,209,401,000 | 21.906977 | 126 | 0.599492 | false | 3.322091 | false | false | false |
nilsFK/py-privatekonomi | py_privatekonomi/core/apps/example2.py | 1 | 6699 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
from py_privatekonomi.core.mappers.economy_mapper import EconomyMapper
from py_privatekonomi.utilities import helper
from py_privatekonomi.utilities.common ... | mit | 271,856,470,520,782,340 | 30.842857 | 155 | 0.542545 | false | 3.821143 | false | false | false |
michal-ruzicka/archivematica | src/MCPClient/lib/clientScripts/moveDspaceMetsFilesToDSpaceMETS.py | 1 | 2718 | #!/usr/bin/python -OO
# This file is part of Archivematica.
#
# Copyright 2010-2013 Artefactual Systems Inc. <http://artefactual.com>
#
# Archivematica 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, e... | agpl-3.0 | -4,781,895,504,976,434,000 | 35.24 | 146 | 0.729581 | false | 3.628838 | false | false | false |
diegojromerolopez/djanban | src/djanban/apps/repositories/migrations/0003_auto_20160921_1748.py | 1 | 1075 | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-09-21 15:48
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('repositories', '0002_auto_20160911_1601'),
]
operations = [
migrations.AddFie... | mit | -2,720,929,637,803,019,000 | 32.59375 | 171 | 0.610233 | false | 4.387755 | false | false | false |
FrodeSolheim/fs-uae-launcher | launcher/ui/imports/ImportTask.py | 1 | 3835 | import os
import shutil
import threading
import traceback
import fsui
from fsbc.path import is_same_file
from fsgamesys.amiga.rommanager import ROMManager
from fsgamesys.filedatabase import FileDatabase
from fsgamesys.FSGSDirectories import FSGSDirectories
from ...i18n import gettext
from ...launcher_signal import La... | gpl-2.0 | 5,107,383,758,132,274,000 | 30.694215 | 79 | 0.557497 | false | 3.79703 | false | false | false |
smallyear/linuxLearn | salt/salt/modules/groupadd.py | 1 | 6379 | # -*- coding: utf-8 -*-
'''
Manage groups on Linux, OpenBSD and NetBSD
'''
# Import python libs
from __future__ import absolute_import
import logging
try:
import grp
except ImportError:
pass
log = logging.getLogger(__name__)
# Define the module's virtual name
__virtualname__ = 'group'
def __virtual__():
... | apache-2.0 | -5,202,034,855,072,395,000 | 24.930894 | 101 | 0.525474 | false | 3.772324 | false | false | false |
likeucode/PythonLearning | basicLearning/basicClass.py | 1 | 1090 | #! /usr/bin/env python
#this code is a demo of oop of python
class Filter:
def init(self):
self.blocked=[]
def filter(self,sequence):
return [x for x in sequence if x not in self.blocked]
class SPAMFilter(Filter):
num=0
def init(self):
SPAMFilter.num+=1
print SPAMFilter.num
self.blocked=['SPAM']
class... | bsd-3-clause | -1,111,955,918,422,303,900 | 16.868852 | 55 | 0.685321 | false | 2.626506 | false | false | false |
Suninus/NewsBlur | apps/reader/views.py | 1 | 95311 | import datetime
import time
import boto
import redis
import requests
import random
import zlib
from django.shortcuts import get_object_or_404
from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from django.template.loader import render_to_string
from django.db import IntegrityE... | mit | 7,578,381,407,372,846,000 | 42.010379 | 137 | 0.597549 | false | 3.725706 | false | false | false |
jvasile/withsqlite | withsqlite.py | 1 | 6379 | #!/usr/bin/env python
"""
withsqlite - uses an sqlite db as a back end for a dict-like object,
kind of like shelve but with json and sqlite3.
Copyright 2011-2013 James Vasile
Released under the GNU General Public License, version 3 or later.
See https://www.gnu.org/licenses/gpl-3.0.html for terms.
Repo is at <http:/... | gpl-3.0 | 8,648,903,622,903,924,000 | 30.423645 | 79 | 0.56639 | false | 3.666092 | false | false | false |
hrahadiant/mini_py_project | minitodolist.py | 1 | 2576 | import os
# initialize a list
task = []
# check current python file path
currentpath = os.path.dirname(os.path.realpath(__file__))
# set name of the file
filename = "my_todo.txt"
# set directory to save the file
filepath = os.path.join(currentpath, filename)
# function for check the file is exist and is empty or not... | apache-2.0 | 7,352,208,570,656,500,000 | 21.206897 | 78 | 0.651009 | false | 3.08134 | false | false | false |
SkRobo/Eurobot-2017 | NewCommunication/Sucker/driver.py | 1 | 3816 | from multiprocessing import Process, Queue
from multiprocessing.queues import Queue as QueueType
import serial
from serial.tools import list_ports
from cmd_list import CMD_LIST
import time
from packets import encode_packet, decode_packet
import logging
#<<<<<<< HEAD
#PORT_VID = 1155
#PORT_PID = 22336
#PORT_SNR = '367... | mit | 2,843,826,998,180,754,400 | 31.615385 | 125 | 0.57521 | false | 3.759606 | false | false | false |
hernan-erasmo/project-euler | soluciones/problema13.py | 1 | 5374 | string_grande = """37107287533902102798797998220837590246510135740250
46376937677490009712648124896970078050417018260538
74324986199524741059474233309513058123726617309629
91942213363574161572522430563301811072406154908250
23067588207539346171171980310421047513778063246676
8926167069662363382013637841838368417873436172... | unlicense | -4,593,026,946,803,485,700 | 46.982143 | 72 | 0.960551 | false | 2.290708 | false | false | false |
ChameleonCloud/horizon | openstack_auth/urls.py | 1 | 1556 | # 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 the... | apache-2.0 | -2,301,209,320,913,302,500 | 33.577778 | 76 | 0.666452 | false | 3.758454 | false | false | false |
ADozois/ML_Challenge | logreg/models/learning/learning_optimization.py | 1 | 2144 | import numpy as np
from logreg.models.feature_computers.prediction_computer import ProbabilityComputerFactory
from logreg.models.cost_computers.cost_computer import CostComputerFactory
class OptimizationType(object):
GRADIENT = "gradient"
class GradientDescent(object):
@classmethod
def compute_gradient(... | mit | 949,555,902,816,901,500 | 42.755102 | 112 | 0.672575 | false | 4.45738 | false | false | false |
bospetersen/h2o-3 | h2o-py/tests/testdir_algos/deeplearning/pyunit_cv_cars_mediumDeepLearning.py | 1 | 5439 | import sys
sys.path.insert(1, "../../../")
import h2o, tests
import random
def cv_carsDL(ip,port):
# read in the dataset and construct training set (and validation set)
cars = h2o.import_file(path=h2o.locate("smalldata/junit/cars_20mpg.csv"))
# choose the type model-building exercise (multinomial classi... | apache-2.0 | 6,783,123,054,350,010,000 | 47.5625 | 122 | 0.650303 | false | 3.524951 | false | false | false |
awerner/pymime | integration/django_attachmentstore/settings.py | 1 | 5078 | # Django settings for django_attachmentstore project.
import os
ROOT = lambda * x: os.path.normpath(os.path.join(os.path.abspath(os.path.dirname(__file__)), *x))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
SERVER_EMAIL = "root@localhost"
EMAIL_S... | gpl-3.0 | -4,900,078,274,259,793,000 | 32.853333 | 122 | 0.699882 | false | 3.67971 | false | false | false |
dpm76/Bot1 | easy-tracker/playground/Tracking.py | 1 | 2100 | import numpy as np
import cv2
cap = cv2.VideoCapture(0)
startTracking = True
while startTracking:
startTracking = False
# take first frame of the video
_,frame = cap.read()
frame = cv2.flip(frame, 1)
frame = cv2.GaussianBlur(frame, (5, 5), 5)
# setup initial location of window
r... | mit | 8,676,742,072,440,708,000 | 29 | 84 | 0.542857 | false | 3.074671 | false | false | false |
eqrx/mauzr | mauzr/gui/__init__.py | 1 | 4741 | """ Montoring and control GUI. """
import enum
import pygame # pylint: disable=import-error
__author__ = "Alexander Sowitzki"
class BaseElement:
""" An visible element inside a GUI.
:param location: Center of the element.
:type location: mauzr.gui.Vector
:param size: Size of the element.
:type... | agpl-3.0 | -8,324,247,963,371,238,000 | 26.247126 | 75 | 0.591858 | false | 3.931177 | false | false | false |
Alex2114/Deb-3df | redeem/gcodes/T0_T1.py | 1 | 1483 | """
GCode T0 and T1
Select currently used extruder tool
Author: Mathieu Monney
email: zittix(at)xwaves(dot)net
Website: http://www.xwaves.net
License: CC BY-SA: http://creativecommons.org/licenses/by-sa/2.0/
"""
from GCodeCommand import GCodeCommand
import logging
class ToolChange(GCodeCommand):
def execute(self... | gpl-3.0 | 7,099,931,974,142,642,000 | 25.482143 | 104 | 0.616318 | false | 3.175589 | false | false | false |
mahabs/nitro | nssrc/com/citrix/netscaler/nitro/resource/config/vpn/vpnurl.py | 1 | 10823 | #
# Copyright (c) 2008-2015 Citrix Systems, 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 l... | apache-2.0 | -4,927,869,333,246,552,000 | 29.834758 | 315 | 0.681881 | false | 3.449012 | false | false | false |
FedoraScientific/salome-kernel | src/Container/SALOME_ComponentPy.py | 1 | 11883 | #! /usr/bin/env python
# -*- coding: iso-8859-1 -*-
# Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
#
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
#
# This library is free software; you can redistribute it and/or
# modify it under the... | lgpl-2.1 | -5,998,506,831,639,814,000 | 35.675926 | 219 | 0.473702 | false | 4.399482 | false | false | false |
suninsky/ReceiptOCR | Python/server/bin/painter.py | 1 | 2146 | #!/home/haop/code/ReceiptOCR/Python/server/bin/python2.7
#
# The Python Imaging Library
# $Id$
#
# this demo script illustrates pasting into an already displayed
# photoimage. note that the current version of Tk updates the whole
# image every time we paste, so to get decent performance, we split
# the image into a se... | mit | -8,268,578,540,794,225,000 | 25.170732 | 80 | 0.576421 | false | 3.332298 | false | false | false |
cszc/meethalfway | djangohalfway/halfwayapp/views.py | 1 | 2943 | from django.shortcuts import render
#import googlemaps
import csv
import time
import json
import requests
from django.http import HttpResponse
from django import forms
from . import models
class EnterIDForm(forms.Form):
meeting_id = forms.CharField()
def validate_trip_id(self):
if Meeting.objects.filter(trip_id= ... | apache-2.0 | -7,919,855,661,507,081,000 | 23.322314 | 78 | 0.691131 | false | 2.902367 | false | false | false |
alirizakeles/tendenci | tendenci/apps/profiles/management/commands/delete_non_contributors.py | 1 | 3096 | from optparse import make_option
from django.core.management.base import BaseCommand
from django.core.exceptions import ObjectDoesNotExist
class Command(BaseCommand):
"""
Get/Delete list of contributors, non-contributors and total users
"""
option_list = BaseCommand.option_list + (
make_option... | gpl-3.0 | 589,413,971,126,053,200 | 31.946809 | 89 | 0.578165 | false | 4.748466 | false | false | false |
victorywang80/Maintenance | saltstack/src/tests/integration/states/ssh.py | 1 | 6090 | '''
Test the ssh_known_hosts state
'''
# Import python libs
import os
import shutil
# Import Salt Testing libs
from salttesting import skipIf
from salttesting.helpers import (
destructiveTest,
ensure_in_syspath,
with_system_account
)
ensure_in_syspath('../../')
# Import salt libs
import integration
KNOW... | apache-2.0 | -317,516,152,801,650,940 | 31.393617 | 78 | 0.569458 | false | 3.711152 | true | false | false |
PaulSD/tendenci_autox | tendenci_autox/models.py | 1 | 70574 | from datetime import datetime, date, timedelta
import re
from django.db import models, transaction, IntegrityError
from django.db.models import Q
from django.contrib.auth.models import User
from django.conf import settings
from django.forms import ValidationError
from django.core.exceptions import PermissionDenied
fr... | gpl-3.0 | -6,137,469,636,408,634,000 | 58.405724 | 254 | 0.651118 | false | 3.907752 | false | false | false |
mikhaildubov/Rhinoceros-Python-Scripts | code/curves/isometricflow.py | 1 | 2639 | # Edge flow
# Mikhail Dubov
# 2015-11-24
from math import radians, pi, sin, tan
import rhinoscriptsyntax as rs
# Some shortcuts for vector operations to improve code readability
unit = rs.VectorUnitize
subtract = rs.VectorSubtract
scale = rs.VectorScale
rev = rs.VectorReverse
length = rs.VectorLength
r... | mit | -6,460,669,401,087,479,000 | 29.047059 | 126 | 0.595301 | false | 3.537534 | false | false | false |
DataPilot/notebook-miner | freq_itemsets/frequent_itemsets.py | 1 | 7264 | import pyfpgrowth
from apyori import apriori
import time
from nbminer.freq_itemsets.buckets.buckets import Bucket
from nbminer.freq_itemsets.buckets.buckets import Patterns
class FrequentItemsetsBase:
def __init__(self, threshold=10, itemset_min=1):
self.threshold = threshold
self.itemset_min = it... | apache-2.0 | 1,007,300,429,106,448,000 | 35.502513 | 136 | 0.578331 | false | 3.841354 | false | false | false |
shoopio/shoop | shuup_tests/admin/test_chart.py | 2 | 4360 | # -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2019, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
from collections import OrderedDict
import pytest
from babel.numb... | agpl-3.0 | -6,993,107,601,462,338,000 | 40.923077 | 119 | 0.637615 | false | 3.422292 | true | false | false |
sadig/foreman-api | foreman/api/resources.py | 1 | 1767 | # -*- coding: utf-8 -*-
###############################################################################
#
# foreman-api - python foreman api wrapper
# Copyright (C) 2010, 2011, 2012, 2013 Stephan Adig <sh@sourcecode.de>
# This program is free software; you can redistribute it and/or modify
# it under the t... | lgpl-2.1 | -2,692,801,138,572,101,000 | 40.093023 | 126 | 0.617997 | false | 4.207143 | false | false | false |
andela-wcyn/bucketlist | manage.py | 1 | 1374 | import os
from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager, prompt_bool
from flask_script import Server
from api import create_app, db
from api.models import User, Bucketlist, BucketlistItem
app = create_app(os.getenv('BUCKETLIST_ENV') or 'dev')
manager = Manager(app)
migrate = Migr... | mit | 3,664,571,395,458,831,400 | 27.040816 | 78 | 0.678311 | false | 3.469697 | false | false | false |
WikiWatershed/gwlf-e | gwlfe/Input/WaterBudget/InitSnow.py | 1 | 1041 | from numpy import zeros
from gwlfe.Memoization import memoize
try:
from InitSnow_f_inner_compiled import InitSnow_f_inner
except ImportError:
print("Unable to import compiled InitSnow_inner, using slower version")
from gwlfe.Input.WaterBudget.InitSnow_inner import InitSnow_f_inner
def InitSnow(NYrs, Day... | apache-2.0 | -6,762,851,379,802,523,000 | 32.580645 | 82 | 0.576369 | false | 3.164134 | false | false | false |
abawchen/leetcode | tests/088.py | 1 | 2297 | import unittest
import sys
sys.path.append('./')
solutions = __import__('solutions.088_merge_sorted_array', fromlist='*')
class Test088(unittest.TestCase):
def test_merge(self):
s = solutions.Solution()
nums1 = []
nums2 = []
self.assertEqual(s.merge(nums1, len(nums1), nums2, len(... | mit | 2,570,857,993,665,662,500 | 31.352113 | 90 | 0.448846 | false | 2.327254 | true | false | false |
HybridF5/jacket | jacket/worker/api.py | 1 | 13188 | # 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 law or agreed to in... | apache-2.0 | 3,362,914,868,334,997,000 | 41.541935 | 82 | 0.573324 | false | 4.269343 | false | false | false |
lenoch/tagsetbench | tagsetbench.py | 1 | 5829 | from contextlib import contextmanager
from copy import deepcopy
from pathlib import PosixPath
from log import log
# WISH: zahodit (z annotate, bootstrap, create_model, majka, makefile, split_corpus a test_configure)
ShellPath = PosixPath
class ExpandableList(list):
def __init__(self, iterable):
super().... | mit | -836,647,996,692,605,200 | 32.643275 | 101 | 0.605076 | false | 3.3901 | false | false | false |
Cito/DBUtils | dbutils/steady_pg.py | 1 | 11312 | """SteadyPg - hardened classic PyGreSQL connections.
Implements steady connections to a PostgreSQL database
using the classic (not DB-API 2 compliant) PyGreSQL API.
The connections are transparently reopened when they are
closed or the database connection has been lost or when
they are used more often than an optiona... | mit | 3,576,289,393,901,881,000 | 33.487805 | 79 | 0.606082 | false | 4.723173 | false | false | false |
prophile/jacquard | jacquard/storage/utils.py | 1 | 3766 | """General storage engine utilities."""
import json
import logging
import functools
import collections.abc
from jacquard.plugin import plug
from jacquard.storage.exceptions import Retry
def retrying(fn):
"""Decorator: reissues the function if it raises Retry."""
logger = logging.getLogger("jacquard.storage.... | mit | 1,159,509,810,565,048,000 | 28.193798 | 79 | 0.594796 | false | 4.111354 | false | false | false |
OpenMined/PySyft | packages/grid/apps/domain/src/__main__.py | 1 | 1688 | """
Note:
This file should be used only for development purposes.
Use the Flask built-in web server isn't suitable for production.
For production, we need to put it behind real web server able to communicate
with Flask through a WSGI protocol.
A common choice for that is Gunicorn.
"""
# stdlib
import argparse
import ... | apache-2.0 | -5,058,307,953,008,342,000 | 25.793651 | 114 | 0.675948 | false | 3.284047 | false | false | false |
manglakaran/TrafficKarmaSent | src/traffickarmasent/test.py | 1 | 2759 | import tweepy
import json,re,sys
# Authentication details. To obtain these visit dev.twitter.com
consumer_key = 'ufulV3imKoYNzdh58LotTC1YD'
consumer_secret = '2A781ma736HTenAXXYn9tRIelQYJkbCqY0GLi7W71ZwwDmNU59'
access_token = '2564905075-MY9osfHabaRnonQVHHhHeA1vCLSOhuHWjBNBiIY'
access_token_secret = 'JsD8Woc7i... | mit | -482,987,571,816,521,100 | 26.868687 | 185 | 0.654223 | false | 3.312125 | false | false | false |
martinp/jarvis2 | jarvis/jobs/imap.py | 1 | 1559 | # -*- coding: utf-8 -*-
import imaplib
import re
try:
# urlparse was moved to urllib.parse in Python 3
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
from jobs import AbstractJob
class IMAP(AbstractJob):
def __init__(self, conf):
self.interval = conf['in... | mit | -1,302,837,366,633,347,300 | 28.980769 | 75 | 0.584349 | false | 3.642523 | false | false | false |
Unofficial-Extend-Project-Mirror/openfoam-extend-Breeder-other-scripting-PyFoam | PyFoam/Infrastructure/Logging.py | 1 | 1801 | # ICE Revision: $Id$
"""Writes Logfiles"""
from PyFoam.ThirdParty.six import print_
try:
import logging
hasLogging=True
except ImportError:
# For Python-versions < 2.3
print_("Warning: old python-version. No logging-support")
hasLogging=False
from PyFoam.Infrastructure.Hardcoded import assertDir... | gpl-2.0 | 4,549,308,299,438,506,500 | 25.115942 | 156 | 0.660744 | false | 3.831915 | false | false | false |
edx/ecommerce | ecommerce/extensions/refund/tests/test_signals.py | 1 | 4852 |
from mock import patch
from ecommerce.core.constants import SEAT_PRODUCT_CLASS_NAME
from ecommerce.core.models import SegmentClient
from ecommerce.extensions.analytics.utils import ECOM_TRACKING_ID_FMT
from ecommerce.extensions.refund.api import create_refunds
from ecommerce.extensions.refund.tests.mixins import Ref... | agpl-3.0 | -6,382,021,938,198,452,000 | 43.513761 | 115 | 0.655812 | false | 4.060251 | true | false | false |
siddharthraja/AI | Sampling - metropolis, gibbs/sampling.py | 1 | 16779 | import sys
# from importlib import reload
if('pbnt/combined' not in sys.path):
sys.path.append('pbnt/combined')
from exampleinference import inferenceExample
from random import randint
import numpy as np
from Node import BayesNode
from Graph import BayesNet
from numpy import zeros, float32
import Distribution
fro... | mit | 2,625,154,690,473,991,000 | 31.582524 | 400 | 0.56374 | false | 2.721655 | false | false | false |
cyberbikepunk/job-spiders | joby/tests/utilities.py | 1 | 2246 | """ Utility functions and classes for the test suite. """
from codecs import open
from requests import get
from scrapy import Request
from scrapy.http import HtmlResponse
from importlib import import_module
from slugify import slugify
from os.path import join, exists
from joby.settings import TEST_ASSETS_DIR
class ... | mit | -4,277,102,437,244,125,000 | 35.819672 | 103 | 0.607302 | false | 3.989343 | false | false | false |
klebercode/protocolle | protocolle/core/admin.py | 1 | 1442 | # coding: utf-8
from django.contrib import admin
from protocolle.core.models import (TipoDocumento, Carater, Natureza,
Status, TipoInstituicao, Grupo)
class TipoDocumentoAdmin(admin.ModelAdmin):
fields = ['nome']
list_per_page = 15
list_display = ['nome']
search_f... | mit | 2,028,175,029,469,497,000 | 24.298246 | 69 | 0.668516 | false | 3.134783 | false | false | false |
TACC/DisplayCluster | examples/displaycluster.py | 1 | 2126 | #!/usr/bin/python
# example launch script for DisplayCluster, executed by startdisplaycluster
# this should work for most cases, but can be modified for a particular
# installation if necessary
import os
import xml.etree.ElementTree as ET
import subprocess
import shlex
# get environment variable for the base Display... | bsd-2-clause | 8,378,014,200,625,861,000 | 29.371429 | 180 | 0.661806 | false | 3.60339 | false | false | false |
hirofumi0810/tensorflow_end2end_speech_recognition | examples/csj/training/train_ctc.py | 1 | 18008 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""Train the CTC model (CSJ corpus)."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from os.path import join, isfile, abspath
import sys
import time
import tensorflow as tf
from setproctitle import setproc... | mit | 4,144,911,333,285,178,000 | 43.424691 | 114 | 0.525789 | false | 4.114338 | true | false | false |
bigdig/vnpy | vnpy/app/cta_strategy/ctaTemplatePatch/utility.py | 1 | 2618 | # encoding: UTF-8
'''
本文件包含了CTA引擎中的策略开发用模板。
添加了一些基本的策略属性,变量。不做下单逻辑
'''
from vnpy.app.cta_strategy.base import EngineType
from datetime import MINYEAR
import logging
import numpy as np
from datetime import datetime,time,date,timedelta
import json,time
class DateTimeEncoder(json.JSONEncoder):
def default(self, o):
... | mit | 9,177,389,331,629,231,000 | 27.792683 | 97 | 0.550847 | false | 2.961104 | false | false | false |
s3rvac/retdec-python | tests/matchers.py | 1 | 1319 | #
# Project: retdec-python
# Copyright: (c) 2015 by Petr Zemek <s3rvac@gmail.com> and contributors
# License: MIT, see the LICENSE file for more details
#
"""Matchers for tests."""
import abc
class Matcher(metaclass=abc.ABCMeta):
"""A base class of all matchers."""
@abc.abstractmethod
def __eq__(se... | mit | 6,625,008,059,489,529,000 | 23.886792 | 80 | 0.579227 | false | 3.99697 | false | false | false |
giacomov/3ML | threeML/utils/bayesian_blocks.py | 1 | 9886 | # Author: Giacomo Vianello (giacomov@stanford.edu)
import logging
import sys
import numexpr
import numpy as np
from threeML.io.progress_bar import progress_bar
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("bayesian_blocks")
__all__ = ["bayesian_blocks", "bayesian_blocks_not_unique"]
def bay... | bsd-3-clause | 6,241,699,055,371,695,000 | 28.248521 | 124 | 0.606312 | false | 3.577995 | false | false | false |
WeakGroup/twitter-rec | interface/website/website/settings.py | 1 | 2100 | """
Django settings for website project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
im... | gpl-2.0 | 3,130,661,027,178,072,000 | 22.595506 | 71 | 0.713333 | false | 3.211009 | false | false | false |
dims/nova | nova/cells/rpcapi.py | 1 | 28170 | # Copyright (c) 2012 Rackspace Hosting
# All Rights Reserved.
# Copyright 2013 Red Hat, 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/license... | apache-2.0 | -2,072,031,802,108,248,800 | 42.674419 | 79 | 0.589173 | false | 4.004834 | false | false | false |
line/line-bot-sdk-python | tests/models/serialize_test_case.py | 1 | 2551 | # -*- coding: utf-8 -*-
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | apache-2.0 | -5,113,099,517,172,017,000 | 28.321839 | 87 | 0.619757 | false | 3.552925 | false | false | false |
Anber/django-extended-messages | extended_messages/api.py | 1 | 2318 | # Slightly modified django.contrib.messages.api
from django.contrib.messages import constants
from django.contrib.messages.api import get_messages, get_level, set_level, MessageFailure
def add_message(request, level, message, extra_tags='', fail_silently=False, sticky=False):
"""
Attempts to add a message to ... | bsd-3-clause | -7,817,217,899,636,346,000 | 38.965517 | 91 | 0.667386 | false | 4.052448 | false | false | false |
alexm98/dotfiles | spacemacs/elpa/live-py-mode-20170928.2107/report_builder.py | 1 | 9236 | import re
import sys
import traceback
class ReportBuilder(object):
def __init__(self, message_limit=None):
self.messages = []
self.assignments = []
self.message_count = 0
self.message_limit = message_limit
self.stack_block = None # (first_line, last_line) numbers, not inde... | gpl-3.0 | -5,489,539,064,284,392,000 | 36.392713 | 79 | 0.562906 | false | 4.202002 | false | false | false |
neutrons/Licorne-Py | UI-playground/layerplot.py | 1 | 2806 | from __future__ import (absolute_import, division, print_function)
from PyQt5 import QtCore, QtWidgets
import sys
import numpy as np
from layer import Layer, MSLD
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.figure import Figure
import matplotlib.pyplot as plt
import... | gpl-3.0 | -8,143,628,558,970,020,000 | 35.921053 | 136 | 0.632217 | false | 3.305065 | false | false | false |
breunigs/livestreamer | src/livestreamer/plugins/filmon.py | 1 | 4083 | import re
import requests
from livestreamer.compat import urlparse
from livestreamer.exceptions import PluginError, NoStreamsError
from livestreamer.plugin import Plugin
from livestreamer.stream import RTMPStream
from livestreamer.utils import urlget, urlopen, res_json
AJAX_HEADERS = {
"Referer": "http://www.film... | bsd-2-clause | 1,767,515,076,056,671,200 | 27.957447 | 92 | 0.557188 | false | 3.725365 | false | false | false |
unintended/Cohen | misc/media_server_observer.py | 1 | 2131 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under the MIT license
# http://opensource.org/licenses/mit-license.php
#
# Copyright 2009, Benjamin Kampmann <ben.kampmann@gmail.com>
# Copyright 2014, Hartmut Goebel <h.goebel@crazy-compilers.com>
from twisted.internet import reactor
from coherence.base impo... | mit | -1,282,085,470,347,691,800 | 33.370968 | 96 | 0.684186 | false | 3.667814 | false | false | false |
jobovy/gaia_tools | scripts/download_dr2.py | 1 | 3753 | # Script to sniff whether DR2 has appeared and grab everything once it appears
import os
import time
from datetime import datetime, timedelta
import pytz
import subprocess
import hashlib
_DR2_URL= 'http://cdn.gea.esac.esa.int/Gaia/gdr2/'
_MD5_FILENAME= 'MD5SUM.txt'
_CEST= pytz.timezone('Europe/Brussels')
_TIME_START_... | mit | -5,076,307,777,478,934,000 | 38.505263 | 95 | 0.563816 | false | 3.468577 | false | false | false |
NickBeeuwsaert/SuperCanvas | doc/bezier_subdivision.py | 1 | 3896 | #!/usr/bin/env python
lerp = lambda s, e, t: tuple(S + (E-S)*t for S, E in zip(s,e))
t = 0.65
cp0, cp1, cp2, cp3 = ((0, 300), (25, 50), (450, 50), (500,300))
M0 = lerp(cp0, cp1, t)
M1 = lerp(cp1, cp2, t)
M2 = lerp(cp2, cp3, t)
M3 = lerp(M0, M1, t)
M4 = lerp(M1, M2, t)
M5 = lerp(M3, M4, t)
print("""<svg width="100%... | mit | -7,812,529,571,077,760,000 | 43.272727 | 176 | 0.490246 | false | 2.188764 | false | false | false |
gameduell/dask | dask/utils.py | 1 | 30745 | from __future__ import absolute_import, division, print_function
import codecs
import functools
import inspect
import io
import math
import os
import re
import shutil
import struct
import sys
import tempfile
from errno import ENOENT
from collections import Iterator
from contextlib import contextmanager
from importlib ... | bsd-3-clause | 1,220,396,701,005,305,600 | 27.97738 | 98 | 0.565295 | false | 3.925061 | false | false | false |
sunlightlabs/tcamp | tcamp/reg/migrations/0005_auto__add_field_ticket_checked_in.py | 1 | 12104 | # -*- 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 'Ticket.checked_in'
db.add_column(u'reg_ticket', 'checked_... | bsd-3-clause | 6,451,636,792,326,531,000 | 78.117647 | 187 | 0.549901 | false | 3.640301 | false | false | false |
cortext/crawtext | crawtext/database/database.py | 1 | 4822 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__name__ == "database"
import pymongo
import logging
import re
from datetime import datetime
from copy import copy
import os, sys
class Database(object):
'''Database creation'''
def __init__(self, database_name, local=False, debug=False):
try:
... | mit | 3,488,452,641,483,784,000 | 30.51634 | 104 | 0.549564 | false | 3.839172 | false | false | false |
alexgonzl/TreeMaze | PythonControl/MazeMaster_PyCMDv2.py | 1 | 13920 | #!/usr/bin/python3
###
# Master controller for the TreeMaze. It communicates with the arduino through serial port.
# Receives data through GPIO inputs and serial.
###
import threading
from MazeHeader_PyCMDv2 import *
PythonControlSet = ['T2','T3a','T3b','T3c','T3d','T3e','T3f','T3g','T3h','T3i','T3j',
... | mit | 3,080,016,546,511,445,500 | 43.903226 | 112 | 0.382687 | false | 4.853556 | false | false | false |
gecos-team/gecos-firstboot | firstboot/serverconf/ServerConf.py | 1 | 3755 | # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
# This file is part of Guadalinex
#
# This software is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, ... | gpl-2.0 | 7,633,553,126,649,568,000 | 30.537815 | 83 | 0.607248 | false | 3.885093 | false | false | false |
darvelo/panel | widgets/net.py | 1 | 2233 | from PyQt5 import QtWidgets
from PyQt5 import QtCore
import os
import glob
from .chart import Chart
def read_file(path):
with open(path, 'r') as fh:
return fh.read().strip()
class NetworkUsageProvider(object):
delay = 1
def __init__(self, main_window):
self.network_enabled = False
... | mit | -6,281,391,231,829,057,000 | 38.875 | 90 | 0.559337 | false | 3.393617 | false | false | false |
CenterForOpenScience/lookit-api | accounts/serializers.py | 1 | 4065 | from rest_framework_json_api import serializers
from accounts.models import Child, DemographicData, User
from api.serializers import (
PatchedHyperlinkedRelatedField,
UuidHyperlinkedModelSerializer,
)
from studies.models import Lab
class LabSerializer(UuidHyperlinkedModelSerializer):
resource_name = "lab... | apache-2.0 | 6,840,125,021,426,943,000 | 26.466216 | 81 | 0.55449 | false | 4.225572 | false | false | false |
pioneers/PieCentral | shepherd/dawn_server.py | 1 | 2480 | import threading
import json
import time
import queue
import gevent # pylint: disable=import-error
from flask import Flask, render_template # pylint: disable=import-error
from flask_socketio import SocketIO, emit, join_room, leave_room, send # pylint: disable=import-error
from Utils import *
from LCM import *
HOST_URL... | apache-2.0 | 4,071,755,422,820,970,500 | 41.758621 | 101 | 0.659677 | false | 3.179487 | false | false | false |
brenthuisman/phd_tools | graph.spotprofiles.py | 1 | 7377 | #!/usr/bin/env python
import plot, numpy as np,auger,image,rtplan
from scipy.ndimage.filters import gaussian_filter
###########################################################################################################
smooth_param = 8.5 #20 mm FWHM
volume_offset=-141.59+7.96#spot sources
pg29 = image.image('d... | lgpl-3.0 | 6,576,384,876,859,362,000 | 41.889535 | 127 | 0.6382 | false | 2.258035 | false | false | false |
ronekko/chainer | chainer/distributions/bernoulli.py | 1 | 5543 | import chainer
from chainer.backends import cuda
from chainer import distribution
from chainer.functions.activation import sigmoid
from chainer.functions.array import broadcast
from chainer.functions.array import where
from chainer.functions.math import exponential
from chainer.functions.math import logarithm_1p
from c... | mit | 6,518,292,464,861,377,000 | 29.125 | 75 | 0.571712 | false | 3.317175 | false | false | false |
nuagenetworks/vspk-python | vspk/v5_0/nucontainer.py | 1 | 29058 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia
# 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 copyrigh... | bsd-3-clause | -6,679,579,384,259,088,000 | 29.081781 | 906 | 0.576055 | false | 4.340254 | false | false | false |
pli3/pli3-openpli3 | bitbake/lib/bb/fetch2/git.py | 1 | 12793 | # ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
"""
BitBake 'Fetch' git implementation
git fetcher support the SRC_URI with format of:
SRC_URI = "git://some.host/somepath;OptionA=xxx;OptionB=xxx;..."
Supported SRC_URI options are:
- branch
The git branch to retrieve from. ... | gpl-2.0 | 7,850,380,181,073,448,000 | 37.649547 | 140 | 0.59853 | false | 3.626134 | false | false | false |
adybbroe/pygac | pygac/calibration.py | 1 | 27049 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2014-2015, 2019 Pytroll Developers
# Author(s):
# Martin Raspaud <martin.raspaud@smhi.se>
# Abhay Devasthale <abhay.devasthale@smhi.se>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Pub... | gpl-3.0 | 7,217,521,221,545,139,000 | 47.47491 | 82 | 0.409553 | false | 2.752239 | false | false | false |
sgabe/Enumerator | enumerator/lib/services/ssl.py | 1 | 2170 | #!/usr/bin/env python
"""
The SSL module performs ssl-related
enumeration tasks.
@author: Gabor Seljan (gabor<at>seljan.hu)
@version: 1.0
"""
import sys
from ..config import Config
from ..process_manager import ProcessManager
from ..generic_service import GenericService
class SslEnumeration(GenericService, ProcessMa... | mit | -6,150,778,650,805,814,000 | 33.444444 | 145 | 0.614747 | false | 3.522727 | false | false | false |
Ghalko/waterbutler | waterbutler/providers/s3/provider.py | 1 | 10178 | import os
import asyncio
import hashlib
from urllib import parse
import xmltodict
from boto.s3.connection import S3Connection
from boto.s3.connection import OrdinaryCallingFormat
from boto.s3.connection import SubdomainCallingFormat
from waterbutler.core import streams
from waterbutler.core import provider
from wate... | apache-2.0 | -1,311,005,674,001,923,000 | 34.096552 | 143 | 0.609452 | false | 4.202312 | false | false | false |
sckott/pytaxize | pytaxize/ids/ids.py | 1 | 4823 | import warnings
import sys
import itertools
from ..col import search
from pytaxize.ncbi import ncbi
from pytaxize.itis import terms
from .gbif_helpers import gbif_query_for_single_name, process_gbif_response
from .format_helpers import _make_id
from .eol_helpers import (
eol_search_query_for_single_name,
proces... | mit | 7,925,472,593,893,624,000 | 28.588957 | 88 | 0.477296 | false | 3.415722 | false | false | false |
stephenliu1989/msmbuilder | msmbuilder/tests/test_msm_uncertainty.py | 1 | 3263 | from __future__ import print_function
import numpy as np
from scipy.linalg import eigvals
from msmbuilder.cluster import NDGrid
from msmbuilder.example_datasets import load_doublewell
from msmbuilder.msm import MarkovStateModel, ContinuousTimeMSM
from msmbuilder.msm.core import _solve_msm_eigensystem
def test_eigen... | lgpl-2.1 | 6,347,031,682,103,972,000 | 36.505747 | 76 | 0.604658 | false | 3.243539 | false | false | false |
madformuse/client | src/client/_clientwindow.py | 1 | 60723 | from functools import partial
from client.player import Player
from client.updater import fetchClientUpdate
from config import Settings
import fa
from fa.factions import Factions
'''
Created on Dec 1, 2011
@author: thygrrr
'''
from PyQt4 import QtCore, QtGui, QtNetwork, QtWebKit
from PyQt4.QtCore import QDataStream
... | gpl-3.0 | -2,850,407,173,679,299,600 | 36.39101 | 721 | 0.630008 | false | 4.019793 | false | false | false |
myemma/EmmaPython | emma/model/message.py | 1 | 2194 | """Audience mailing message models"""
from emma import exceptions as ex
from emma.model import BaseApiModel
class Message(BaseApiModel):
"""
Encapsulates operations for a :class:`Message`
:param mailing: The Mailing which owns this Message
:type mailing: :class:`Mailing`
:param member_id: The Me... | mit | -8,210,768,294,507,816,000 | 31.264706 | 80 | 0.596627 | false | 3.699831 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.