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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
concurrentlabs/laguna | 1.0/scripts/cachequery/cache_query.py | 1 | 2571 | #!/usr/bin/python
import io
import os
import signal
import sys
from subprocess import call
hit = miss = bypass = expired = 0
#########################################################################################
#########################################################################################
def main():
... | apache-2.0 | -3,529,379,872,526,363,000 | 30.353659 | 89 | 0.318164 | false | 5.111332 | false | false | false |
bank-netforce/netforce | netforce_general/netforce_general/models/user_group.py | 1 | 1497 | # Copyright (c) 2012-2015 Netforce Co. Ltd.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publ... | mit | 9,020,449,533,256,077,000 | 41.771429 | 80 | 0.727455 | false | 4.112637 | false | false | false |
tkchafin/scripts | phylip2biNumNex.py | 1 | 8129 | #!/usr/bin/python
import re
import sys
import os
import getopt
import operator
import random
def main():
params = parseArgs()
if params.phylip:
#Get sequences as dict of lists
seqs = readPhylip(params.phylip)
#get list of columns and list of samplenames
alen = getSeqLen(seqs)
columns = [[]for i in range... | gpl-3.0 | 3,747,132,566,112,011,300 | 23.558912 | 154 | 0.615451 | false | 2.614667 | false | false | false |
MrHarcombe/python-gpiozero | gpiozero/pins/data.py | 1 | 53566 | from __future__ import (
unicode_literals,
absolute_import,
print_function,
division,
)
str = type('')
import os
import sys
from textwrap import dedent
from itertools import cycle
from operator import attrgetter
from collections import namedtuple
from ..exc import PinUnknownPi, PinMultiplePins, Pi... | bsd-3-clause | -1,324,905,326,528,842,200 | 45.297321 | 212 | 0.501251 | false | 3.428005 | false | false | false |
kerfab/jdic | jdic/jdic.py | 1 | 21228 | """
The Jdic module provides the features required to manipulate
JSON objects through a consistent API.
"""
from __future__ import unicode_literals
import json
import hashlib
import importlib
from collections import Sequence, Mapping
import json_delta
import jsonschema
from . import drivers # pylint: disable=unused-imp... | unlicense | 7,458,643,821,538,832,000 | 34.858108 | 99 | 0.554127 | false | 4.239664 | false | false | false |
rombie/contrail-controller | src/config/common/tests/test_common.py | 1 | 42367 | #
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#
import sys
import gevent.monkey
gevent.monkey.patch_all()
import logging
import tempfile
import mock
from pprint import pformat
import coverage
import fixtures
import testtools
from testtools import content
from flexmock import flexmock
from webtest ... | apache-2.0 | -2,208,394,981,384,609,800 | 37.410698 | 121 | 0.594897 | false | 3.600187 | true | false | false |
pytorch/vision | references/detection/utils.py | 1 | 8671 | from collections import defaultdict, deque
import datetime
import errno
import os
import time
import torch
import torch.distributed as dist
class SmoothedValue(object):
"""Track a series of values and provide access to smoothed values over a
window or the global series average.
"""
def __init__(self... | bsd-3-clause | -5,394,417,501,050,074,000 | 28.39322 | 94 | 0.548149 | false | 3.846939 | false | false | false |
LowieHuyghe/edmunds | tests/log/drivers/testsyslog.py | 1 | 2970 |
from tests.testcase import TestCase
from tests.foundation.syslogserver import SysLogServer
class TestSysLog(TestCase):
"""
Test the SysLog
"""
def set_up(self):
"""
Set up the test case
"""
super(TestSysLog, self).set_up()
self._server = SysLogServer()
... | apache-2.0 | 7,226,208,718,824,647,000 | 30.595745 | 95 | 0.437037 | false | 3.817481 | true | false | false |
yhteentoimivuuspalvelut/ckanext-ytp-request | ckanext/ytp/request/command.py | 1 | 1325 | import logging
from ckan.lib.cli import CkanCommand
class InitDBCommand(CkanCommand):
"""
Initialises the database with the required tables
Connects to the CKAN database and creates the member request tables
Usage:
paster initdb
- Creates the database table member request
"""... | agpl-3.0 | -445,495,278,592,315,600 | 26.604167 | 78 | 0.587925 | false | 3.943452 | false | false | false |
dfm/emcee3 | emcee3/tests/unit/test_state.py | 1 | 1654 | # -*- coding: utf-8 -*-
from __future__ import division, print_function
import numpy as np
from ...state import State
__all__ = ["test_dtype", "test_serialization", "test_repr"]
def test_dtype(seed=1234):
np.random.seed(seed)
dtype = [
("coords", np.float64, (4, )),
("log_prior", np.float... | mit | 8,939,081,856,143,124,000 | 23.686567 | 77 | 0.555623 | false | 3.174664 | true | false | false |
allenai/document-qa | docqa/nn/span_prediction_ops.py | 1 | 4078 | import tensorflow as tf
import numpy as np
"""
Some utility functions for dealing with span prediction in tensorflow
"""
def best_span_from_bounds(start_logits, end_logits, bound=None):
"""
Brute force approach to finding the best span from start/end logits in tensorflow, still usually
faster then the p... | apache-2.0 | 2,821,853,730,584,280,600 | 36.072727 | 100 | 0.615498 | false | 3.153906 | false | false | false |
bunnyinc/django-oidc-provider | oidc_provider/models.py | 1 | 6596 | # -*- coding: utf-8 -*-
import base64
import binascii
from hashlib import md5, sha256
import json
from django.db import models
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
from django.conf import settings
CLIENT_TYPE_CHOICES = [
('confidential', 'Confidential'),
(... | mit | -7,244,896,210,937,017,000 | 35.043716 | 285 | 0.642359 | false | 3.640177 | false | false | false |
glemaitre/protoclass | protoclass/tool/dicom_manip.py | 1 | 14985 | #title :dicom_manip.py
#description :This will create a header for a python script.
#author :Guillaume Lemaitre
#date :2015/04/20
#version :0.1
#notes :
#python_version :2.7.6
#==============================================================================
# Import... | gpl-2.0 | 5,627,377,868,135,266,000 | 29.833333 | 135 | 0.624424 | false | 3.768863 | false | false | false |
andburn/python-unitypack | unitypack/environment.py | 1 | 2335 | import os
from urllib.parse import urlparse
from .asset import Asset
from .assetbundle import AssetBundle
class UnityEnvironment:
def __init__(self, base_path=""):
self.bundles = {}
self.assets = {}
self.base_path = base_path
self.files = []
def __del__(self):
for f in self.files:
f.close()
def __re... | mit | -976,772,978,860,595,700 | 26.470588 | 79 | 0.659529 | false | 2.997433 | false | false | false |
phev8/ward-metrics | wardmetrics/visualisations.py | 1 | 16641 | import matplotlib.pyplot as plt
def plot_events_with_segment_scores(segment_results, ground_truth_events, detected_events, use_datetime_x=False, show=True):
"""
Test
:param segment_results:
:param ground_truth_events:
:param detected_events:
:param use_datetime_x:
:param show:
:return:... | mit | -3,669,431,086,910,914,000 | 47.944118 | 197 | 0.625684 | false | 3.49454 | false | false | false |
msimacek/koschei | koschei/backend/depsolve.py | 1 | 5237 | # Copyright (C) 2014-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 version.
#
# This program is distribut... | gpl-2.0 | 3,479,328,165,184,086,500 | 38.08209 | 89 | 0.668322 | false | 4.117138 | false | false | false |
chippey/gaffer | python/GafferUI/PathWidget.py | 1 | 7446 | ##########################################################################
#
# Copyright (c) 2011, John Haddon. All rights reserved.
# Copyright (c) 2011-2012, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided ... | bsd-3-clause | -3,532,087,557,409,567,000 | 29.768595 | 138 | 0.657266 | false | 3.611057 | false | false | false |
IBMDecisionOptimization/docplex-examples | examples/cp/visu/rcpsp_multi_mode_json.py | 1 | 5287 | # --------------------------------------------------------------------------
# Source file provided under Apache License, Version 2.0, January 2004,
# http://www.apache.org/licenses/
# (c) Copyright IBM Corp. 2015, 2016
# --------------------------------------------------------------------------
"""
This example is th... | apache-2.0 | 4,069,867,353,027,879,000 | 38.162963 | 128 | 0.598449 | false | 3.648723 | false | false | false |
MCLConsortium/mcl-site | support/upgradeMCL.py | 1 | 1894 | #!/usr/bin/env python
# encoding: utf-8
# Copyright 2020 California Institute of Technology. ALL RIGHTS
# RESERVED. U.S. Government Sponsorship acknowledged.
import sys, logging, transaction
from Products.CMFPlone.utils import get_installer
_products = [
# 'edrnsite.portlets',
# 'edrn.theme',
# 'eke.know... | apache-2.0 | -4,641,201,772,737,198,000 | 29.516129 | 114 | 0.670719 | false | 3.348673 | false | false | false |
lukacu/django-gallery | gallery/admin.py | 1 | 3677 | #!/usr/bin/python
# -*- Mode: python; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*-
from django.conf import settings
from django.contrib.admin.util import unquote
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404... | bsd-3-clause | 6,451,354,872,952,156,000 | 40.264368 | 172 | 0.632853 | false | 3.379596 | false | false | false |
erigones/erigones-sddc-api | esdc_api/client.py | 1 | 5663 | # -*- coding: utf-8 -*-
"""
esdc_api.client
~~~~~~~~~~~~~~~
This module contains the Danube Cloud API :class:`Client` class used to access the Danube Cloud HTTP API.
"""
import json
import requests
from . import __version__
from .response import Response
__all__ = (
'Client',
)
class Client(object):
"""
... | bsd-3-clause | 3,342,749,459,229,568,000 | 35.535484 | 115 | 0.603744 | false | 4.201039 | false | false | false |
kennedyshead/home-assistant | homeassistant/components/auth/login_flow.py | 1 | 8731 | """HTTP views handle login flow.
# GET /auth/providers
Return a list of auth providers. Example:
[
{
"name": "Local",
"id": null,
"type": "local_provider",
}
]
# POST /auth/login_flow
Create a login flow. Will return the first step of the flow.
Pass in parameter 'client_id' and 'r... | apache-2.0 | -943,019,571,495,028,600 | 31.337037 | 87 | 0.617455 | false | 3.934655 | false | false | false |
aschn/goodtechgigs | goodtechgigs/gigs/migrations/0001_initial.py | 1 | 1492 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.utils.timezone
import model_utils.fields
import taggit.managers
class Migration(migrations.Migration):
dependencies = [
('profiles', '0004_auto_20150305_2200'),
('tags', '0002_a... | apache-2.0 | -3,499,465,569,666,910,000 | 42.882353 | 256 | 0.605898 | false | 3.95756 | false | false | false |
rec/echomesh | code/python/echomesh/base/Path.py | 1 | 4125 | from __future__ import absolute_import, division, print_function, unicode_literals
from echomesh.base import MakeEmptyProject
from echomesh.base import Platform
import getpass
import os
import os.path
import sys
# If ECHOMESH_EXTERNALS_OVERRIDE_SYSTEM_PACKAGES is True, you want Echomesh to
# use its own external pac... | mit | 2,194,033,821,893,237,000 | 28.464286 | 82 | 0.638788 | false | 3.329298 | false | false | false |
andela-jngatia/Just-Do-It | bucketlist/migrations/0002_auto_20160310_0740.py | 1 | 3876 | # -*- coding: utf-8 -*-
# Generated by Django 1.9.3 on 2016-03-10 07:40
from __future__ import unicode_literals
import django.contrib.auth.models
import django.core.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('... | mit | -4,156,431,365,914,840,600 | 43.045455 | 409 | 0.605263 | false | 4.455172 | false | false | false |
hadronproject/lpms | lpms/shelltools.py | 1 | 11180 | # Copyright 2009 - 2011 Burak Sezer <purak@hadronproject.org>
#
# This file is part of lpms
#
# lpms 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) an... | gpl-3.0 | -1,432,450,333,180,091,600 | 32.573574 | 115 | 0.598748 | false | 3.709356 | false | false | false |
MediffRobotics/DeepRobotics | DeepBrain/SockCommun_Brain_Rpi.py | 1 | 2527 | import math
class BrainCommuViaSock:
def __init__(self):
self.Uparm_OldShiftingSteps=0;
self.Elbow_OldShiftingSteps=0;
def Elbow_Angles2Steps(self,Angle_Deg=0):
#Init
MovingSide_InitLength=231.03; # connect to motor
ShortSideLength=50;#mm... | gpl-3.0 | 3,892,539,015,571,696,600 | 31.818182 | 77 | 0.633558 | false | 3.311927 | false | false | false |
marcharper/stationary | stationary/utils/matrix_checks.py | 1 | 1986 | from .math_helpers import kl_divergence_dict
from .graph import Graph
from .edges import edges_to_edge_dict
from nose.tools import assert_almost_equal
def check_detailed_balance(edges, s, places=7):
"""
Check if the detailed balance condition is satisfied.
Parameters
----------
edges: list of tu... | mit | 7,332,367,794,311,983,000 | 25.48 | 78 | 0.608761 | false | 3.901768 | false | false | false |
ismk/Python-Examples | temp3.py | 1 | 1914 | import sys
import sqlite3 as lite
import time
con = lite.connect("passwords.db")
cur = con.cursor()
cur.execute("CREATE TABLE if not EXISTS passwords(site VARCHAR(50), username VARCHAR(20), password VARCHAR(20));")
print ("\n***** Welcome to Passwords.py. *****\n\n")
choice = None
while choice == None... | mit | 4,125,055,926,198,433,000 | 19.288889 | 114 | 0.568443 | false | 3.174129 | false | false | false |
AnalogJ/lexicon | lexicon/providers/cloudns.py | 1 | 8480 | """Provider module for CloudNS"""
import logging
import requests
from lexicon.providers.base import Provider as BaseProvider
LOGGER = logging.getLogger(__name__)
NAMESERVER_DOMAINS = ["cloudns.net"]
def provider_parser(subparser):
"""Configure provider parser for CloudNS"""
identity_group = subparser.add_... | mit | -3,725,754,271,118,477,000 | 37.371041 | 94 | 0.58691 | false | 4.274194 | false | false | false |
spectralDNS/shenfun | docs/paper/CG/CGpaper_dirichlet.py | 1 | 8842 | """
This script has been used to compute the Dirichlet results of the paper
Efficient spectral-Galerkin methods for second-order equations using different Chebyshev bases
The results have been computed using Python 3.9 and Shenfun 3.1.1.
The generalized Chebyshev-Tau results are computed with dedalus,
and are as... | bsd-2-clause | -6,614,167,239,419,566,000 | 28.972881 | 114 | 0.513345 | false | 3.321563 | false | false | false |
EnviroCentre/patterns-toolbox | setup.py | 1 | 1042 | # -*- coding: utf-8 -*-
# Copyright 2015 Florenz A. P. Hollebrandse
#
# 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 a... | apache-2.0 | -1,147,717,983,915,998,200 | 30.575758 | 74 | 0.711132 | false | 3.605536 | false | false | false |
Coldwings/Campanella-rapidfork | rapidfork/views/base.py | 1 | 4552 | # coding:utf-8
from datetime import datetime
import decimal
import json
import six
import logging
import traceback
from tornado import escape
from tornado.web import RequestHandler, HTTPError
def tojson(data, ensure_ascii=True, default=False, **kwargs):
def serializable(obj):
if isinstance(obj, decimal.De... | apache-2.0 | 4,599,085,205,981,180,400 | 33.047244 | 109 | 0.547641 | false | 3.717971 | false | false | false |
atados/api | atados_core/models/legacy_address.py | 1 | 3608 | import pytz
from django.db import models
from datetime import datetime
from pygeocoder import Geocoder
from django.utils.translation import ugettext_lazy as _
from address import GoogleAddress
class State(models.Model):
name = models.CharField(_('name'), max_length=30)
code = models.CharField(_('code'), max_l... | mit | -4,876,659,624,860,120,000 | 36.583333 | 124 | 0.606984 | false | 3.862955 | false | false | false |
ppyordanov/HCI_4_Future_Cities | Server/src/virtualenv/Lib/site-packages/pip/_vendor/requests/adapters.py | 1 | 14468 | # -*- coding: utf-8 -*-
"""
requests.adapters
~~~~~~~~~~~~~~~~~
This module contains the transport adapters that Requests uses to define
and maintain connections.
"""
import socket
from .models import Response
from .packages.urllib3.poolmanager import PoolManager, proxy_from_url
from .packages.urllib3.response impo... | mit | -4,050,275,592,329,711,600 | 36.28866 | 97 | 0.600705 | false | 4.668603 | false | false | false |
arangodb/arangodb | 3rdParty/V8/v7.9.317/tools/testrunner/local/variants.py | 1 | 2368 | # Copyright 2016 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Use this to run several variants of the tests.
ALL_VARIANT_FLAGS = {
"assert_types": [["--assert-types"]],
"code_serializer": [["--cache=code"]],
"... | apache-2.0 | 5,822,265,050,243,910,000 | 37.193548 | 79 | 0.638514 | false | 3.451895 | false | false | false |
lebabouin/CouchPotatoServer-develop | couchpotato/core/providers/nzb/binnewz/nzbdownloader.py | 1 | 3562 | # Author: Guillaume Serre <guillaume.serre@gmail.com>
# URL: http://code.google.com/p/sickbeard/
#
# This file is part of Sick Beard.
#
# Sick Beard 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 versi... | gpl-3.0 | 7,066,434,616,544,077,000 | 35.731959 | 152 | 0.660865 | false | 3.594349 | false | false | false |
w1ndy/qtile | libqtile/widget/keyboardkbdd.py | 1 | 3411 | # Copyright (c) 2015 Ali Mousavi
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distrib... | mit | 3,760,122,123,004,868,600 | 37.325843 | 79 | 0.640575 | false | 4.139563 | false | false | false |
IAmWave/blekota | src/blekota.py | 1 | 2295 | import argparse
parser = argparse.ArgumentParser(description='Load or create a Blekota model')
parser.add_argument('file',
help='Either a .pkl file containing an existing model or a .wav sound on which to train a new model. If a .wav is provided, other parameters can be used to specify model hyper... | mit | 5,942,508,307,662,493,000 | 39.982143 | 208 | 0.658388 | false | 3.756137 | false | false | false |
hayderimran7/ec2-api | ec2api/tests/functional/botocoreclient.py | 1 | 1492 | # Copyright 2015 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 requ... | apache-2.0 | -957,823,799,688,157,800 | 35.390244 | 78 | 0.676944 | false | 3.647922 | false | false | false |
jwodder/aptrepo | src/aptrepo/sources.py | 1 | 1579 | from collections import namedtuple
import re
from .archive import Archive
class AptSource(namedtuple('AptSource', 'deb options uri suite components')):
def __str__(self):
sline = self.deb
if self.options:
sline += ' ' + ' '.join(f'{k}={v}' if v is not None else k
... | mit | 9,165,954,857,391,489,000 | 35.72093 | 77 | 0.49905 | false | 3.9475 | false | false | false |
google/report2bq | application/classes/sa360_report_validation/product_lead_and_cross_sell.py | 1 | 3261 | """
Copyright 2020 Google LLC
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, software
di... | apache-2.0 | -783,439,681,970,412,500 | 27.12069 | 80 | 0.653481 | false | 3.910072 | false | false | false |
tyll/bodhi | bodhi/server/scripts/approve_testing.py | 1 | 4185 | # -*- coding: utf-8 -*-
# Copyright © 2013-2017 Red Hat, Inc. and others.
#
# This file is part of Bodhi.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or ... | gpl-2.0 | -3,813,178,846,344,620,500 | 38.102804 | 100 | 0.660134 | false | 4.304527 | true | false | false |
wcmckee/wcmckee-notebook | hackbrobeur.py | 1 | 2509 | # -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <markdowncell>
# Hack BroBeur
# <markdowncell>
# python script to make account at centre for logins.
# <codecell>
from github import Github
import os
import getpass
import git
import time
from clint.textui import colored
import dominate
from dominate.tags impo... | gpl-2.0 | 2,657,833,803,489,301,000 | 11.420792 | 85 | 0.656038 | false | 2.547208 | false | false | false |
vitchyr/rlkit | rlkit/util/hyperparameter.py | 1 | 7092 | """
Custom hyperparameter functions.
"""
import abc
import copy
import math
import random
import itertools
from typing import List
import rlkit.pythonplusplus as ppp
class Hyperparameter(metaclass=abc.ABCMeta):
def __init__(self, name):
self._name = name
@property
def name(self):
return ... | mit | -2,940,930,123,126,832,600 | 30.109649 | 86 | 0.597998 | false | 4.189014 | false | false | false |
monkeysecurity/aws_api_classifier | apiapi.py | 1 | 2868 | """
Usage:
apiapi.py (all|mutating) [--csv=output_file]
"""
import csv
from policyuniverse import global_permissions
import re
from tabulate import tabulate
TAGS = {
'DATA_PLANE': ['object', 'bucket'],
'CONTROL_PLANE': ['policy', 'attribute', 'permission'],
'MUTATING': ['create', 'delete', 'm... | apache-2.0 | 6,818,567,263,265,383,000 | 28.875 | 123 | 0.57113 | false | 3.912688 | false | false | false |
mhogg/bonemapy | bonemapy/elementTypes.py | 1 | 6798 | # -*- coding: utf-8 -*-
# Copyright (C) 2013 Michael Hogg
# This file is part of bonemapy - See LICENSE.txt for information on usage and redistribution
import numpy as np
from abaqusConstants import C3D4, C3D4H, C3D10, C3D10H, C3D10I, C3D10M, C3D10MH
# ~~~~~~~~~~
class elementC3D4():
def __init__(self):
... | mit | -8,532,450,555,790,286,000 | 32.487685 | 130 | 0.416887 | false | 3.358696 | false | false | false |
childsish/sofia | templates/genomics/steps/sequence_set.py | 1 | 2159 | import gzip
from sofia.step import Step
from lhc.binf.sequence.reverse_complement import reverse_complement
try:
import pysam
def get_fasta_set(filename):
return pysam.FastaFile(filename)
except ImportError:
from lhc.io.fasta import FastaInOrderAccessSet
def get_fasta_set(filename):
f... | gpl-2.0 | 952,286,789,581,727,600 | 31.712121 | 109 | 0.597962 | false | 3.983395 | false | false | false |
funkring/fdoo | addons-funkring/report_aeroo/barcodes/write.py | 1 | 8543 | # -*- coding: utf-8 -*-
"""
Barcodes for Python - Module for writing.
Copyright 2009 Peter Gebauer
Cairo backend for writing barcodes.
"Barcodes for Python" 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, eithe... | agpl-3.0 | -8,345,297,074,543,309,000 | 35.508547 | 95 | 0.606813 | false | 3.574477 | false | false | false |
tritoanst/ccxt | python/ccxt/bxinth.py | 1 | 8476 | # -*- coding: utf-8 -*-
from ccxt.base.exchange import Exchange
from ccxt.base.errors import ExchangeError
class bxinth (Exchange):
def describe(self):
return self.deep_extend(super(bxinth, self).describe(), {
'id': 'bxinth',
'name': 'BX.in.th',
'countries': 'TH', # ... | mit | -6,969,734,723,890,171,000 | 33.737705 | 126 | 0.461185 | false | 4.342213 | false | false | false |
praetorian-inc/pentestly | modules/reporting/xml.py | 1 | 1655 | from recon.core.module import BaseModule
from dicttoxml import dicttoxml
from xml.dom.minidom import parseString
import codecs
import os
class Module(BaseModule):
meta = {
'name': 'XML Report Generator',
'author': 'Eric Humphries (@e2fsck) and Tim Tomes (@LaNMaSteR53)',
'version': 'v0.0.2'... | gpl-3.0 | 5,376,551,073,993,372,000 | 40.375 | 121 | 0.538973 | false | 3.931116 | false | false | false |
crackcell/www-entity-mining | people/stars/ent.sina.com.cn/crawler.py | 1 | 2883 | #!/usr/bin/env python
# -*- encoding: utf-8; indent-tabs-mode: nil -*-
"""
crawler
~~~~~~~
desc
:copyright: (c) 2015 Menglong TAN.
"""
import os
import sys
import re
import urllib2
import time
import BeautifulSoup
import logging
logger = logging.getLogger(__file__)
logger.setLevel(logging.DEBUG)
ch ... | bsd-3-clause | 7,542,542,099,566,126,000 | 31.862069 | 149 | 0.55439 | false | 3.293779 | false | false | false |
TFMV/veloce | classifier.py | 1 | 4504 | import pyspark
from pyspark.mllib.regression import LabeledPoint
from pyspark.mllib.classification import LogisticRegressionWithSGD
from pyspark.mllib.tree import DecisionTree
from pyspark import SparkContext
from pyspark.sql import SQLContext
##If running through pyspark, start pyspark as follows: pyspark --pa... | mit | -4,944,954,862,459,573,000 | 46.451613 | 276 | 0.72913 | false | 3.568938 | true | false | false |
Forage/Gramps | gramps/gui/plug/tool.py | 1 | 11556 | #
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2005-2007 Donald N. Allingham
# Copyright (C) 2010 Jakim Friant
# Copyright (C) 2011 Paul Franklin
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published... | gpl-2.0 | 6,896,968,333,442,710,000 | 35 | 86 | 0.536777 | false | 4.398934 | false | false | false |
onshape-public/onshape-clients | python/onshape_client/oas/models/bt_body_type_filter112.py | 1 | 7225 | # coding: utf-8
"""
Onshape REST API
The Onshape REST API consumed by all clients. # noqa: E501
The version of the OpenAPI document: 1.113
Contact: api-support@onshape.zendesk.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import re # noqa: F401
im... | mit | -6,208,763,084,608,335,000 | 33.903382 | 84 | 0.578685 | false | 4.185979 | true | false | false |
APTrust/EarthDiver | dpnode/dpn/client/apiclient.py | 1 | 2153 | import json
from os.path import normpath
from http.client import HTTPSConnection, HTTPConnection
from urllib.parse import urlencode, urlparse
class APIException(Exception):
pass
class APIClient:
"""
A basic client to query the DPN REST API.
"""
def __init__(self, url, api_token):
self.set... | apache-2.0 | -1,497,941,737,126,121,000 | 28.493151 | 83 | 0.579656 | false | 3.928832 | false | false | false |
hmendozap/auto-sklearn | test/util/test_common.py | 1 | 1264 | # -*- encoding: utf-8 -*-
from __future__ import print_function
from functools import partial
import os
import unittest
from autosklearn.util import set_auto_seed, get_auto_seed, del_auto_seed, \
check_pid
class TestUtilsCommon(unittest.TestCase):
_multiprocess_can_split_ = True
def setUp(self):
... | bsd-3-clause | -3,619,677,723,574,373,400 | 26.478261 | 75 | 0.626582 | false | 3.444142 | true | false | false |
Inspq/ansible | lib/ansible/modules/identity/sx5/sx5_client.py | 1 | 16092 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2017, INSPQ Team SX5
#
# This file is not part of Ansible
#
# Ansible 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 y... | gpl-3.0 | -4,687,860,115,322,721,000 | 38.723457 | 268 | 0.486387 | false | 5.004044 | false | false | false |
kovidgoyal/kitty | kitty/layout/grid.py | 1 | 12595 | #!/usr/bin/env python
# vim:fileencoding=utf-8
# License: GPLv3 Copyright: 2020, Kovid Goyal <kovid at kovidgoyal.net>
from functools import lru_cache
from itertools import repeat
from math import ceil, floor
from typing import (
Any, Callable, Dict, Generator, List, Optional, Sequence, Set, Tuple
)
from kitty.bo... | gpl-3.0 | -4,798,671,985,011,705,000 | 40.705298 | 145 | 0.581421 | false | 3.559921 | false | false | false |
georgeha/software_engineering | aws/restolingo/placeorder/models.py | 1 | 3621 | """
This file contains all the models that are used in our system
"""
from __future__ import unicode_literals
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from autoslug import AutoSlugField
from django.core.urlresolvers import reverse
from django.contrib.auth.models import... | mit | -3,469,167,692,740,765,000 | 30.215517 | 120 | 0.604529 | false | 4.119454 | false | false | false |
helena-project/beetle | controller/manager/tasks.py | 1 | 5949 |
import socket
from datetime import timedelta
from celery.decorators import task, periodic_task
from celery.utils.log import get_task_logger
from django.utils import timezone
from beetle.models import VirtualDevice, PrincipalGroup
from network.models import ConnectedGateway, ConnectedDevice, DeviceMapping, \
Service... | apache-2.0 | -5,559,685,777,284,174,000 | 31.508197 | 79 | 0.756598 | false | 3.222644 | false | false | false |
italopaiva/propositional-logic | operations.py | 1 | 6549 | """Describe the possible operations."""
from lp.interpreter import Interpreter, TruthTable, SetTruthTable
class Operation:
"""Base class for operations."""
def perform(self, *args):
"""Perform the operation."""
raise NotImplementedError
def parse(self, line):
"""
Generic... | mit | 4,685,439,699,903,485,000 | 31.909548 | 79 | 0.602077 | false | 4.258127 | false | false | false |
leiferikb/bitpop | src/chrome/common/extensions/docs/server2/servlet.py | 1 | 4143 | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
class RequestHeaders(object):
'''A custom dictionary impementation for headers which ignores the case
of requests, since different HTTP libraries seem t... | gpl-3.0 | 2,190,137,133,376,314,000 | 25.056604 | 73 | 0.64253 | false | 3.804408 | false | false | false |
lnmds/jorge | ext/gambling.py | 1 | 5013 | import asyncio
import decimal
import random
import discord
from discord.ext import commands
from .common import Cog
EMOJI_POOL = ':thinking: :snail: :shrug: :chestnut: :ok_hand: :eggplant:'.split()
BET_MULTIPLIER_EMOJI = ':thinking:'
X4_EMOJI = [':snail:', ':chestnut:', ':shrug:']
X6_EMOJI = [':eggplant:', ':ok_han... | mit | -950,188,890,208,021,200 | 29.560976 | 147 | 0.56265 | false | 3.53705 | false | false | false |
duncanmmacleod/gwpy | gwpy/plot/axes.py | 1 | 21895 | # -*- coding: utf-8 -*-
# Copyright (C) Duncan Macleod (2018-2020)
#
# This file is part of GWpy.
#
# GWpy 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)... | gpl-3.0 | 2,707,461,000,808,235,500 | 34.543831 | 79 | 0.546837 | false | 3.962179 | false | false | false |
glehmann/uptodate | uptodate/plugins/display.py | 1 | 1674 | #!/usr/bin/env python
#coding: iso-8859-15
#
# Copyright (C) 2005 Gaëtan Lehmann <gaetan.lehmann@jouy.inra.fr>
#
# this file is part of uptodate
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation... | gpl-2.0 | -8,111,562,675,753,110,000 | 28.892857 | 97 | 0.719833 | false | 3.524211 | false | false | false |
google/makani | lib/python/pack2/backend_py.py | 1 | 9016 | # Copyright 2020 Makani Technologies LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | apache-2.0 | -2,375,850,912,057,371,600 | 29.153846 | 80 | 0.551797 | false | 3.731788 | false | false | false |
umkcdcrg01/ryu_openflow | ryu/app/my_arp_v3_copy.py | 1 | 7774 | # Simple Arp Handler v2
# Jack Zhao
# s.zhao.j@gmail.com
from operator import attrgetter
from ryu.base import app_manager
from ryu.controller import ofp_event
from ryu.controller.handler import CONFIG_DISPATCHER
from ryu.controller.handler import MAIN_DISPATCHER
from ryu.controller.handler import set_ev_cls
from ry... | apache-2.0 | 6,158,059,715,359,937,000 | 40.572193 | 136 | 0.605866 | false | 3.761006 | false | false | false |
phronesis-mnemosyne/census-schema-alignment | wit/wit/dev/authorship-embedding.py | 1 | 4685 | import pandas as pd
import urllib2
from pprint import pprint
from matplotlib import pyplot as plt
from bs4 import BeautifulSoup
from hashlib import md5
import sys
sys.path.append('/Users/BenJohnson/projects/what-is-this/wit/')
from wit import *
pd.set_option('display.max_rows', 50)
pd.set_option('display.max_column... | apache-2.0 | -2,159,664,508,630,088,000 | 22.661616 | 140 | 0.631163 | false | 2.555919 | false | false | false |
quantmind/jflib | boostbuilder/build_ext.py | 1 | 7401 | import os
import sys
from types import *
from distutils.errors import *
from distutils.dep_util import newer_group
from distutils.core import Extension as old_Extension
from distutils.command.build_ext import build_ext as _build_ext
from distutils import log
from utils import fullsplit
class external_ob... | bsd-3-clause | -4,701,284,351,250,491,000 | 38.233696 | 90 | 0.547764 | false | 4.310425 | false | false | false |
manub686/atomix | r2cmplr/_scrape_b_i.py | 1 | 4226 | #!/usr/bin/python
'''
Atomix project, _scrape_b_i.py, (TODO: summary)
Copyright (c) 2015 Stanford University
Released under the Apache License v2.0. See the LICENSE file for details.
Author(s): Manu Bansal
'''
import csv
import os
import sys
import re
from _util import *
class BlockScraper:
def which(self, block... | apache-2.0 | -1,635,830,698,253,406,700 | 26.986755 | 137 | 0.612636 | false | 3.027221 | false | false | false |
Xeralux/tensorflow | tensorflow/contrib/distributions/python/ops/statistical_testing.py | 1 | 32457 | # Copyright 2018 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 | 7,352,941,959,383,396,000 | 43.583791 | 80 | 0.697045 | false | 3.444079 | true | false | false |
Marcello-Sega/pytim | pytim/interface.py | 1 | 27725 | # -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding: utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
from abc import ABCMeta, abstractmethod
import numpy as np
from .properties import _create_property
from .writepdb import _writepdb
from . import messages
from . import utilities
from scipy.sp... | gpl-3.0 | -8,665,581,660,487,102,000 | 38.949568 | 120 | 0.541064 | false | 3.923164 | true | false | false |
iNecas/katello | cli/src/katello/client/api/repo.py | 1 | 5198 | # -*- coding: utf-8 -*-
#
# Copyright © 2012 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. You should h... | gpl-2.0 | 7,461,500,698,733,066,000 | 35.598592 | 87 | 0.617279 | false | 3.657284 | false | false | false |
cyrillg/ros-playground | src/deedee_driver/tests/test_motors_driver.py | 1 | 2314 | #! /usr/bin/env python
PKG='deedee_driver'
import sys
import unittest
from mock import Mock
from deedee_driver.motors_driver_lib import *
class TestMotorsDriver(unittest.TestCase):
def setUp(self):
robot_name = "test_bot"
config = {"max_wheel_speed": 0.55}
serial_socket = Mock()
... | mit | -295,165,355,079,123,500 | 31.138889 | 68 | 0.492653 | false | 4.066784 | true | false | false |
openstack/networking-sfc | networking_sfc/db/migration/alembic_migrations/versions/newton/contract/06382790fb2c_fix_foreign_constraints.py | 1 | 1647 | # 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
# d... | apache-2.0 | -3,674,974,696,152,133,600 | 33.3125 | 78 | 0.686096 | false | 3.692825 | false | false | false |
cwaldbieser/txcas | sample.py | 1 | 22229 | #! /usr/bin/env python
from __future__ import print_function
import argparse
import cgi
from textwrap import dedent
from urllib import urlencode
import sys
from txcas.constants import (
VIEW_LOGIN,
VIEW_LOGIN_SUCCESS,
VIEW_LOGOUT,
VIEW_INVALID_SERVICE,
VIEW_ERROR_5XX,
VIEW_NOT_FOUND)
from tx... | gpl-3.0 | 1,190,900,562,462,385,700 | 37.861888 | 222 | 0.500157 | false | 4.107354 | true | false | false |
jbarlow83/OCRmyPDF | tests/test_stdio.py | 1 | 3399 | # © 2019 James R. Barlow: github.com/jbarlow83
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import os
import sys
from pathlib import Path
from subprocess import D... | gpl-3.0 | -968,572,428,516,915,500 | 28.293103 | 81 | 0.622131 | false | 3.181648 | true | false | false |
ryandub/simpl | simpl/rest.py | 1 | 13761 | # Copyright (c) 2011-2015 Rackspace US, 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... | apache-2.0 | 3,635,419,209,916,187,600 | 36.394022 | 79 | 0.600538 | false | 4.259053 | false | false | false |
b3j0f/debate | django/core/views.py | 1 | 3280 | """View module."""
from .models import (
Account, User, Topic, Event, Space, Vote, Tag, Media,
Stat
)
from .serializers import (
AccountSerializer, UserSerializer, TopicSerializer, MediaSerializer,
EventSerializer, VoteSerializer, TagSerializer,
SpaceSerializer, StatSerializer
)
from .permissions i... | mit | -417,113,614,665,994,500 | 22.768116 | 72 | 0.559146 | false | 3.995128 | false | false | false |
openstack/networking-arista | networking_arista/tests/unit/ml2/mechanism_ha_simulator.py | 1 | 4119 | # Copyright (c) 2018 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | apache-2.0 | 2,236,879,542,072,917,500 | 40.606061 | 77 | 0.686817 | false | 4.01462 | false | false | false |
michimussato/pypelyne2 | pypelyne2/payload/rr/7.0.29__installer/files/render_apps/scripts/kso_tcp.py | 1 | 6250 | import SocketServer
import struct
import datetime
import sys
import time
StructureID_rrCommands =0x0B03
StructureID_RRN_TCP_HeaderData_v3 = 0x0D03
Size_RRCommands = 1232
Size_RRN_TCP_HeaderData_v3 = 198
rrnData_commands = 7
log_command="print(' \\\'"
log_command_end="')"
log_command_intern_prestring=" "
log_... | gpl-2.0 | 4,744,804,664,678,391,000 | 30.407035 | 231 | 0.62832 | false | 3.360215 | false | false | false |
moas/sketchbadges | exo/studio/users/urls.py | 1 | 2012 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django.conf.urls import url
from django.contrib.auth.views import (
logout_then_login, login,
password_change
)
from django.core.urlresolvers import reverse_lazy
from django.views import generic
from . import views
urlpatte... | mit | 7,237,117,035,323,833,000 | 23.536585 | 64 | 0.538767 | false | 3.644928 | false | true | false |
tcarmelveilleux/CheapDrawBot | Software/drivers/pololu_maestro.py | 1 | 1901 | #
# Basic library to interface with Pololu Maestro servo controllers
# through serial port.
#
# Limitations:
# * CRC-7 not yet supported
import serial
class PololuMaestro:
CMD_SET_TARGET = 0x04
CMD_SET_SPEED = 0x07
CMD_SET_ACCEL = 0x09
def __init__(self, port, baud_rate=9600):
self.port = por... | mit | -2,907,025,372,800,003,000 | 31.220339 | 84 | 0.609679 | false | 3.091057 | false | false | false |
lesina/Hack70 | src/core/models.py | 1 | 1253 | # coding: utf-8
from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import AbstractUser, AbstractBaseUser
from courses.models import Course
class User(AbstractUser):
avatar = models.ImageField(u'фото профиля',upload_to='avatars', blank=False, default=u'avatars/def... | gpl-3.0 | -6,417,249,370,478,180,000 | 37.2 | 119 | 0.709424 | false | 2.901266 | false | false | false |
certik/sfepy | sfepy/fem/equations.py | 1 | 10524 | from sfepy.base.base import *
from parseEq import create_bnf
from materials import Materials
from sfepy.terms import Terms, Term, term_table, DataCaches, cache_table
"""
Note:
- create found materials, variables from configuration/input file data
... no - user should be able to create objects even if they are not
... | bsd-3-clause | 3,473,490,920,846,410,000 | 29.682216 | 81 | 0.515013 | false | 3.954904 | false | false | false |
averagehuman/django-instance | instance/cli/controller.py | 1 | 2384 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
import sys
import shutil
try:
from io import BytesIO
except ImportError:
from cStringIO import StringIO as BytesIO
import logbook
from django.utils.text import slugify
from django.core.management import call_command
from instance.con... | bsd-3-clause | -8,852,039,985,815,156,000 | 25.488889 | 74 | 0.60948 | false | 3.760252 | false | false | false |
xarg/rview | encoder/tasks.py | 1 | 3778 | import os
from os import listdir
from os.path import join
import time
import traceback
import logging
from invoke import run, task
import dateutil.parser
import cv2
logging.basicConfig()
logger = logging.getLogger("tasks")
MEDIA_PATH = join(os.path.dirname(__file__), "static")
ENCONDE_CMD = "mencoder -nosound -ovc l... | mit | -881,124,830,737,236,500 | 34.980952 | 185 | 0.560614 | false | 3.736894 | false | false | false |
giannitedesco/kapital | monop/simplestrategy.py | 1 | 3912 | from strategy import Strategy
import gobject
class SimpleStrategy(Strategy):
def __init__(self):
super(SimpleStrategy, self).__init__()
def do_raise_cash(self, target, hand):
raised = 0
(monopolies, crap) = self.split_hand(hand)
# first try mortgage properties that are not
# part of monopolies
for e i... | gpl-3.0 | -6,952,979,743,303,447,000 | 23.759494 | 62 | 0.634458 | false | 2.604527 | false | false | false |
vlahm/simplefc | simplefc/commands/delete_set.py | 1 | 1360 | """delete a flashcard set"""
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
from builtins import input
from builtins import str
from future import standard_library
standard_library.install_aliases()
from .base import ... | gpl-3.0 | -6,615,158,346,313,196,000 | 31.380952 | 68 | 0.544853 | false | 3.98827 | false | false | false |
Kvoti/ditto | ditto/comments/api.py | 1 | 1717 | from django.contrib.contenttypes.models import ContentType
from django.contrib.sites.models import Site
from django_comments.models import Comment
from rest_framework import serializers, generics, filters
class CommentSerializer(serializers.ModelSerializer):
user = serializers.SlugRelatedField(slug_field='usernam... | bsd-3-clause | -8,549,623,033,277,502,000 | 30.218182 | 78 | 0.635411 | false | 4.271144 | false | false | false |
Bergurth/anagram8 | newAnagram2.py | 1 | 6381 | import sys
import re
from substring import *
from itertools import combinations
from collections import defaultdict
if len(sys.argv) < 2: #check for whether input specified or not
print "No jumbled word specified.Please enter a jumbled word."
sys.exit(0)
input_string = sys.argv[1]
uni_input = unicode(input_... | gpl-2.0 | -8,431,472,854,959,819,000 | 27.110132 | 130 | 0.595048 | false | 3.654639 | false | false | false |
erudit/eruditorg | eruditorg/apps/public/site_messages/migrations/0002_auto_20190425_1305.py | 1 | 1845 | # Generated by Django 2.0.13 on 2019-04-25 17:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("site_message", "0001_initial"),
]
operations = [
migrations.CreateModel(
name="TargetSite",
fields=[
... | gpl-3.0 | -5,972,333,534,437,446,000 | 31.839286 | 173 | 0.449157 | false | 4.5975 | false | false | false |
nickgentoo/scikit-learn-graph | skgraph/datasets/load_graph_datasets.py | 1 | 27349 | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 13 13:02:41 2015
Copyright 2015 Nicolo' Navarin
This file is part of scikit-learn-graph.
scikit-learn-graph 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 ... | gpl-3.0 | 425,709,170,503,092,800 | 38.222382 | 152 | 0.664191 | false | 3.347251 | false | false | false |
thebe2/ding | morning/notice_montage.py | 1 | 10104 | # *-* coding: utf-8 *-*
# 抓取证券日报上的每日交易公告集锦
# http://www.ccstock.cn/meiribidu/jiaoyitishi/
# 代码版本 python 2.7 IDE:PyCharm
import requests
import random
import sys
import time
from bs4 import BeautifulSoup
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.header import Header
i... | mit | 7,004,598,003,179,474,000 | 33.355872 | 123 | 0.596126 | false | 2.774138 | true | false | false |
gkc1000/pyscf | pyscf/hessian/thermo.py | 1 | 14002 | #!/usr/bin/env python
#
# This code was copied from the data generation program of Tencent Alchemy
# project (https://github.com/tencent-alchemy).
#
#
# #
# # Copyright 2019 Tencent America LLC. All Rights Reserved.
# #
# # Licensed under the Apache License, Version 2.0 (the "License");
# # you may not use this file e... | apache-2.0 | 4,807,885,719,179,349,000 | 36.239362 | 92 | 0.558777 | false | 2.775971 | false | false | false |
mk-fg/yapps | yapps/grammar.py | 1 | 8914 | # grammar.py, part of Yapps 2 - yet another python parser system
# Copyright 1999-2003 by Amit J. Patel <amitp@cs.stanford.edu>
# Enhancements copyright 2003-2004 by Matthias Urlichs <smurf@debian.org>
#
# This version of the Yapps 2 grammar can be distributed under the
# terms of the MIT open source license, either fo... | mit | -1,790,514,124,538,740,200 | 41.447619 | 158 | 0.536123 | false | 3.520537 | false | false | false |
tshirtman/ultimate-smash-friends | usf/screens/level.py | 1 | 3174 | ################################################################################
# copyright 2009 Gabriel Pettier <gabriel.pettier@gmail.com> #
# #
# This file is part of Ultimate Smash Friends. ... | gpl-3.0 | -112,941,543,913,260,480 | 37.240964 | 80 | 0.476686 | false | 4.730253 | false | false | false |
gustavoatt/consultas | consultas_proyecto/pacientes_app/tests/test_forms.py | 1 | 1548 | from django import test
from pacientes_app import forms
from pacientes_app import models
class PacienteEditFormTestCase(test.TestCase):
def setUp(self):
self.paciente = models.Paciente.objects.create(
cedula='18423347',
fecha_nacimiento='1988-03-26'
)
def test_valid_form(self):
data =... | mit | 8,823,473,721,192,565,000 | 31.25 | 57 | 0.613049 | false | 2.994197 | true | false | false |
eirannejad/pyRevit | pyrevitlib/pyrevit/coreutils/markdown/extensions/footnotes.py | 1 | 14914 | """
Footnotes Extension for Python-Markdown
=======================================
Adds footnote handling to Python-Markdown.
See <https://pythonhosted.org/Markdown/extensions/footnotes.html>
for documentation.
Copyright The Python Markdown Project
License: [BSD](http://www.opensource.org/licenses/bsd-license.php)... | gpl-3.0 | -9,122,525,648,859,434,000 | 34.679426 | 109 | 0.545058 | false | 4.118752 | true | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.