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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
windelbouwman/ppci-mirror | ppci/cli/wasmcompile.py | 1 | 1086 | """ Static web assembly compiler.
This command line tool takes web assembly to native code.
"""
import argparse
from .base import base_parser, march_parser
from .base import LogSetup, get_arch_from_args
from .compile_base import compile_parser, do_compile
from ..wasm import read_wasm, wasm_to_ir
parser = argparse.... | bsd-2-clause | 6,326,047,577,074,092,000 | 24.857143 | 76 | 0.650092 | false | 3.362229 | false | false | false |
coderbone/SickRage-alt | sickbeard/notifiers/matrix.py | 1 | 4944 | # coding=utf-8
# Author: Joao Santos <jmigueltsantos@riseup.net>
#
# This file is part of SickChill.
#
# SickChill 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 you... | gpl-3.0 | -6,623,845,218,443,714,000 | 39.195122 | 192 | 0.599919 | false | 3.624633 | false | false | false |
pychess/pychess | lib/pychess/Players/engineNest.py | 1 | 26820 | import asyncio
import os
from os.path import join, dirname, abspath
import sys
import shutil
import json
from functools import partial
from hashlib import md5
from copy import copy
from collections import OrderedDict
from gi.repository import GLib, GObject
from pychess.compat import create_task
from pychess.System im... | gpl-3.0 | 2,168,165,844,370,129,200 | 37.314286 | 118 | 0.55399 | false | 4.348249 | false | false | false |
lmorchard/django-teamwork | teamwork/views.py | 1 | 1479 | from django.contrib import messages
from django.contrib.auth import get_user_model
from django.contrib.auth.models import Permission
from django.core.exceptions import PermissionDenied
from django.core.urlresolvers import reverse
from django.http import (HttpResponse, HttpResponseRedirect)
from django.shortcuts import ... | mpl-2.0 | -5,706,883,860,546,087,000 | 35.073171 | 78 | 0.647735 | false | 3.802057 | false | false | false |
arkharin/OpenCool | scr/logic/nodes/CoolPropHeos.py | 1 | 1798 | # 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/.
"""
Define the HEOS CoolProp backend for node.
"""
from scr.logic.nodes.node import Node
from scr.logic.refrigerants.re... | mpl-2.0 | 1,848,623,627,559,999,700 | 33.596154 | 105 | 0.664071 | false | 3.281022 | false | false | false |
endrollex/imm_blender_export | get_rigify_info/materials_replace.py | 1 | 1460 | # char encode:
# the value can be: utf-8, ascii, windows-1252, ...
char_encode = 'ascii'
import os
import os_base
import codecs
#
mat_data = []
ftxt = "materials_data.txt"
m3d_ex = "_export.m3d"
#
name_list = ['sinon']
name_list += ['pepper']
name_list += ['nino']
name_list += ['black_warrior']
#
mat_start = {}
mat... | gpl-3.0 | 7,732,061,064,779,161,000 | 20.173913 | 92 | 0.639726 | false | 2.212121 | false | false | false |
admetricks/bravado-core | tests/model/create_model_type_test.py | 1 | 2533 | import mock
from bravado_core.model import create_model_type
from tests.model.conftest import pet_spec as pet_spec_fixture
from tests.model.conftest import \
definitions_spec as definitions_spec_fixture
def test_pet_model(pet_spec):
Pet = create_model_type('Pet', pet_spec)
expected = set(['id', 'category... | bsd-3-clause | 8,548,971,916,850,824,000 | 35.710145 | 81 | 0.600079 | false | 3.436906 | true | false | false |
google/makani | vis/generate_model.py | 1 | 4009 | # 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 | -5,553,814,677,939,957,000 | 30.566929 | 78 | 0.615864 | false | 3.661187 | false | false | false |
konrad/kufpybio | kufpybio/ncbiefetch.py | 1 | 2181 | # https://www.ncbi.nlm.nih.gov/books/NBK25499/#chapter4.EFetch
import os
from xml.etree.ElementTree import ElementTree
import urllib.request
class NCBIEfetch(object):
def __init__(self, email_address="", download_folder="ncbi_files"):
self._email_address = email_address
self._base_url = "http://e... | isc | -8,445,944,777,496,073,000 | 40.150943 | 84 | 0.581385 | false | 3.124642 | false | false | false |
app-registry/appr-cli | cnrclient/commands/list_package.py | 1 | 1599 | from cnrclient.display import print_packages
from cnrclient.commands.command_base import CommandBase
class ListPackageCmd(CommandBase):
name = 'list'
help_message = "list packages"
def __init__(self, options):
super(ListPackageCmd, self).__init__(options)
self.registry_host = options.regi... | apache-2.0 | 2,515,772,241,858,876,400 | 34.533333 | 93 | 0.627267 | false | 4.1 | false | false | false |
olivierverdier/odelab | tests/scheme/test_dae.py | 1 | 1269 | # -*- coding: utf-8 -*-
from __future__ import division
import unittest
import odelab
from odelab.scheme.stochastic import *
from odelab.system import *
from odelab.solver import *
from newton import *
Solver.catch_runtime = False
def Vsin(self,t):
return np.sin(t)
class Vlin(object):
def __init__(self, t0, V0... | bsd-3-clause | 1,845,936,575,100,208,400 | 18.523077 | 59 | 0.628054 | false | 2.282374 | false | false | false |
winry-linux/augur | augur/configuration/blacklist.py | 1 | 6124 | #!/usr/bin/env python
# This file is part of Augur - <http://github.com/winry-linux/augur>
#
# Copyright 2017, Joshua Strot <joshua@winrylinux.org>
#
# Augur 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 Foun... | gpl-3.0 | 5,394,791,790,486,319,000 | 35.236686 | 106 | 0.660843 | false | 4.324859 | true | false | false |
artPlusPlus/elemental-backend | elemental_backend/resources/_filter_type.py | 1 | 1804 | from elemental_core.util import process_uuids_value
from ._resource_type import ResourceType
from ._resource_reference import ResourceReference
from ._property_changed_hook import PropertyChangedHook
class FilterType(ResourceType):
"""
Represents a collection of AttributeIds that should be filtered together.... | mpl-2.0 | 6,298,170,399,282,209,000 | 33.037736 | 79 | 0.665188 | false | 4.389294 | false | false | false |
kryptn/nogame | nogame/models.py | 1 | 1799 | from nogame import db
class Player(db.Model):
__tablename__ = 'player'
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(24), unique=True)
planets = db.relationship('Planet')
moons = db.relationship('Moon')
fleets = db.relationship('Fleet')
class Planet(db.Model):
__... | mit | -5,387,828,879,097,807,000 | 24 | 79 | 0.614786 | false | 3.282847 | false | false | false |
Udzu/pudzu | dataviz/euhowtomake.py | 1 | 1383 | from pudzu.charts import *
from PIL import ImageFilter
# generate map
df = pd.read_csv("datasets/euhowtomake.csv").set_index('country')
bg = '#181820'
fg = 'white'
def colorfn(c, w, h):
if c == 'Sea':
return bg
elif c == 'Borders':
return "#D0D0D0"
elif c not in df.index:
return "#... | mit | 4,670,276,890,566,572,000 | 38.4 | 134 | 0.646846 | false | 2.672481 | false | false | false |
srishtyagrawal/database-iblt | original_iblt/test.py | 1 | 2730 | from iblt import IBLT
t = IBLT( 30, 4, 10, 10 )
assert t.is_empty()
# Test if inserting and deleting the same pair in an empty table
# results in an empty table again
t.insert( "testkey", "testvalue" )
t.insert( "key", "value" )
assert not t.is_empty()
t.delete( "testkey", "testvalue" )
t.delete( "key", "value" )
... | mit | -4,297,382,517,383,585,000 | 27.736842 | 83 | 0.686813 | false | 2.932331 | true | false | false |
abilian/abilian-core | src/abilian/web/attachments/extension.py | 1 | 4345 | """"""
from flask import Flask, current_app
from flask_login import current_user
from abilian.core.models import attachment as attachments
from abilian.services.security import READ, WRITE, security
from abilian.web import url_for
from .forms import AttachmentForm
from .views import UPLOAD_BUTTON
from .views import ... | lgpl-2.1 | 240,564,968,964,573,470 | 30.715328 | 83 | 0.64672 | false | 4.126306 | false | false | false |
mgraffg/simplegp | SimpleGP/simplegp.py | 1 | 40658 | # Copyright 2013 Mario Graff Guerrero
# 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 wri... | apache-2.0 | 2,733,865,117,213,251,600 | 35.366726 | 79 | 0.506321 | false | 3.708656 | false | false | false |
ItsLastDay/academic_university_2016-2018 | subjects/BigData/hw01/third_group/mapper.py | 1 | 1147 | #!/usr/bin/env python
import sys
import csv
import re
import bisect
access_log_pattern = re.compile('^(?P<ip>.*?) - - (?P<time>.*?) "(?P<page>.*?)" ' + \
'(?P<code>.*?) .*? "(?P<referrer>.*?)" ".*?"$')
def open_database():
arr = []
with open('IP2LOCATION-LITE-DB1.CSV', 'r') as csvfile:
reader... | gpl-3.0 | 8,825,614,925,577,819,000 | 20.240741 | 85 | 0.534438 | false | 3.15978 | false | false | false |
josephsuh/extra-specs | nova/api/openstack/compute/contrib/quotas.py | 1 | 4091 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack LLC.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/... | apache-2.0 | -681,439,088,109,369,700 | 32.260163 | 79 | 0.633341 | false | 4.078764 | false | false | false |
rahulsrma26/code-gems | WebScrapping/WebScrapping.py | 1 | 2757 | from bs4 import BeautifulSoup
from unidecode import unidecode
import requests
def makelist(table, title):
result = []
allrows = table.findAll('tr')
idx = 0
for row in allrows:
rowData = []
allcols = row.findAll('td')
if len(allcols) < 1:
allcols = row.findAll('th')
... | mit | 658,849,055,506,571,100 | 30.701149 | 111 | 0.581066 | false | 3.090807 | false | false | false |
intelligenia/django-last-social-activity | last_social_activity/models.py | 1 | 4878 | # -.- coding: utf-8 -.-
from __future__ import unicode_literals
from datetime import timedelta
from django.conf import settings
from django.core.exceptions import MultipleObjectsReturned
from django.db import models
from django.utils import timezone
import json
# Create your models here.
class SocialNetworkItemCache... | mit | 1,888,056,158,323,725,800 | 34.347826 | 182 | 0.740262 | false | 3.192408 | false | false | false |
tualatrix/ubuntu-tweak-old | src/common/widgets/widgets.py | 1 | 10633 | #!/usr/bin/python
# Ubuntu Tweak - PyGTK based desktop configure tool
#
# Copyright (C) 2007-2008 TualatriX <tualatrix@gmail.com>
#
# Ubuntu Tweak is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versio... | gpl-2.0 | -7,208,561,919,582,460,000 | 33.3 | 96 | 0.594376 | false | 3.620361 | false | false | false |
uber/doubles | doubles/verification.py | 1 | 4660 | import sys
from inspect import isbuiltin, getcallargs, isfunction, ismethod
from doubles.exceptions import (
VerifyingDoubleArgumentError,
VerifyingBuiltinDoubleArgumentError,
VerifyingDoubleError,
)
ACCEPTS_ARGS = (list, tuple, set)
ACCEPTS_KWARGS = (dict,)
if sys.version_info >= (3, 0):
def _get_f... | mit | 1,692,697,931,782,669,800 | 32.52518 | 99 | 0.650429 | false | 3.935811 | false | false | false |
stephanos/subvoc | domain/tagger.py | 1 | 1153 | from enum import Enum
from collections import namedtuple
from nltk.tag import SennaTagger
Word = namedtuple('Word', ['token', 'POS'])
class PartOfSpeach(Enum):
"""A word's part of speech in a sentence."""
ADJECTIVE = 1
ADVERB = 2
NOUN = 3
VERB = 4
OTHER = 5
class Tagger:
"""Tag words... | mit | 7,120,407,051,021,928,000 | 25.204545 | 71 | 0.607979 | false | 3.695513 | false | false | false |
slimta/python-slimta | slimta/util/dns.py | 1 | 5915 | # Copyright (c) 2015 Ian C. Good
#
# 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 | 546,981,960,098,942,400 | 32.994253 | 79 | 0.602367 | false | 4.110493 | false | false | false |
ronekko/deep_metric_learning | lib/functions/lifted_struct_loss.py | 1 | 2928 | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 31 15:40:26 2017
@author: sakurai
"""
import numpy as np
import chainer.functions as F
def squared_distance_matrix(X):
n = X.shape[0]
XX = F.sum(X ** 2.0, axis=1)
distances = -2.0 * F.linear(X, X)
distances = distances + F.broadcast_to(XX, (n, n))
d... | mit | -6,310,336,451,503,031,000 | 31.533333 | 78 | 0.602459 | false | 2.762264 | false | false | false |
sridevikoushik31/openstack | nova/virt/hyperv/volumeutilsv2.py | 1 | 2851 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2012 Pedro Navarro Perez
# Copyright 2013 Cloudbase Solutions Srl
# 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 th... | apache-2.0 | -1,598,892,598,317,568,300 | 36.513158 | 79 | 0.684672 | false | 4.009845 | false | false | false |
deepmind/wasserstein_fairness | wasserstein_fairness/basic_costs.py | 1 | 13099 | # Copyright 2019 the wasserstein_fairness Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | 6,021,990,192,025,390,000 | 37.526471 | 80 | 0.681884 | false | 3.256028 | false | false | false |
funkybob/django-mangle | mangle/base.py | 1 | 3371 | from pathlib import PurePath
from django.core.files.base import ContentFile
from django.conf import settings
from django.utils.functional import cached_property
from django.utils.module_loading import import_string
# Manglers:
# - CSS Minify
# - GZipper
# - JS Minify
# - SASS Compiler
# - RequiresJS config builder
... | mit | 8,140,505,726,446,747,000 | 29.926606 | 85 | 0.614951 | false | 3.933489 | false | false | false |
lnielsen/invenio | invenio/modules/workflows/tasks/marcxml_tasks.py | 1 | 9145 | # -*- coding: utf-8 -*-
##
## This file is part of Invenio.
## Copyright (C) 2013, 2014 CERN.
##
## Invenio 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 opt... | gpl-2.0 | 3,079,266,870,343,047,000 | 34.30888 | 88 | 0.599125 | false | 4.121226 | false | false | false |
foxxyz/multibrowse | systems/win.py | 1 | 2197 | import ctypes
from functools import lru_cache
from shutil import rmtree
import os
from subprocess import call, DEVNULL
import sys
from tempfile import gettempdir
import time
from . import BaseSystem
user = ctypes.windll.user32
class System(BaseSystem):
@property
def browser_path(self):
dirs = ['Pro... | mit | 1,694,499,400,343,083,000 | 27.166667 | 121 | 0.579882 | false | 3.755556 | false | false | false |
proycon/python-timbl | utils.py | 1 | 4249 | from sklearn.base import BaseEstimator, ClassifierMixin
from sklearn.utils import check_X_y, check_array
from timbl import TimblClassifier
import scipy as sp
import numpy as np
class skTiMBL(BaseEstimator, ClassifierMixin):
def __init__(self, prefix='timbl', algorithm=4, dist_metric=None,
k=1, no... | gpl-3.0 | 3,687,112,540,167,606,000 | 33.827869 | 123 | 0.568604 | false | 3.93062 | false | false | false |
foursquare/pants | contrib/buildrefactor/src/python/pants/contrib/buildrefactor/meta_rename.py | 1 | 3119 | # coding=utf-8
# Copyright 2017 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import absolute_import, division, print_function, unicode_literals
import logging
from collections import defaultdict
from pants.base.specs import Descenda... | apache-2.0 | 2,606,158,392,312,814,600 | 34.443182 | 99 | 0.704072 | false | 3.864932 | false | false | false |
marble/Toolchain_RenderDocumentation | 20-Postprocess/run_54-Look-at-theme-info-json.py | 1 | 3353 | #!/usr/bin/env python
# coding: utf-8
from __future__ import print_function
from __future__ import absolute_import
import codecs
import glob
import json
import os
import re
import six
import sys
import tct
from os.path import join as ospj
from tct import deepget
params = tct.readjson(sys.argv[1])
binabspath = sys.a... | mit | -2,035,948,711,037,305,900 | 24.992248 | 94 | 0.510886 | false | 3.871824 | false | false | false |
mikepk/sextant | vecsearch.py | 1 | 4506 | #!/usr/bin/env python
# encoding: utf-8
"""
vecsearch.py
Created by mikepk on 2010-05-30.
Copyright (c) 2010 Michael Kowalchik. All rights reserved.
"""
import sys
import os
import unittest
import getopt
from Daemon import Daemon
import signal
import socket
import threading
import SocketServer
import time
# standa... | mit | -4,888,093,499,584,274,000 | 28.25974 | 114 | 0.586329 | false | 3.987611 | false | false | false |
jorshua/MusicCollectionLibrary | Statistics.py | 1 | 2091 | from collections import defaultdict
class Statistics:
""" """
def __init__(self, audio_file_list):
try:
# number of audio files in root directory
self.count = len(audio_file_list)
# average size of audio files in root directory
self.avg_size = sum(
... | gpl-3.0 | 8,199,060,612,353,703,000 | 35.051724 | 70 | 0.503109 | false | 4.293634 | false | false | false |
steventimberman/masterDebater | venv/lib/python2.7/site-packages/akismet/__init__.py | 1 | 4730 | import datetime
from akismet.exceptions import AkismetServerError, MissingParameterError
__version__ = '0.3.0'
PYTHON_AKISMET_USER_AGENT = "Python-Akismet/{0}".format(__version__)
# API URIs
AKISMET_PROTOCOL = 'https'
AKISMET_DOMAIN = 'rest.akismet.com'
AKISMET_VERSION = '1.1'
AKISMET_CHECK_URL = "{protocol}://{api_... | mit | -5,745,161,156,725,404,000 | 43.622642 | 117 | 0.632558 | false | 3.490775 | true | false | false |
alfakini/python-mercadobitcoin | setup.py | 1 | 2412 | # coding: utf-8
# The MIT License (MIT)
#
# Copyright 2016 Alan Fachini <https://github.com/alfakini/python-mercadobitcoin>
#
# 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 restrict... | mit | -5,797,783,750,365,277,000 | 43.666667 | 101 | 0.703566 | false | 4.123077 | false | false | false |
zhanglongqi/SPMS_Quantum | file_process/file_process.py | 1 | 24406 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created by longqi on 8/28/14
"""
__author__ = 'longqi'
import sys
sys.path.append('/root/SPMS_Quantum/file_process')
sys.path.append('/root/SPMS_Quantum/model')
sys.path.append('/root/SPMS_Quantum/db')
import re
import time
from model.model import HRU, LAB
from db.db i... | gpl-3.0 | -1,311,561,945,929,023,200 | 39.608985 | 118 | 0.498033 | false | 3.791518 | false | false | false |
grantmcconnaughey/django-app-gen | docs/conf.py | 1 | 8172 | # -*- coding: utf-8 -*-
#
# complexity documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 9 22:26:36 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# ... | bsd-3-clause | 4,994,016,023,249,243,000 | 31.173228 | 80 | 0.706437 | false | 3.719618 | true | false | false |
surfline-jherndon/gifpal | getcolors.py | 1 | 3453 | #!/usr/bin/env python
# GETcolors by John Herndon
import argparse
import sys
from PIL import Image
version = '1.0.0'
def verbose(verbosity, message):
if verbosity:
print message
output_header = '''\
______ _______ _______ _______ _____ _____ ______ _______
| ____ |______ | | ... | mit | 6,177,809,679,956,484,000 | 29.289474 | 102 | 0.632204 | false | 3.245301 | false | false | false |
chrispwns/CLimgur | upload/upload.py | 1 | 4681 | import os
import sys
from requests import exceptions
from imgurpython import ImgurClient
from imgurpython.helpers.error import ImgurClientError
class Client():
def __init__(self, client_id, client_secret, cred_dir):
self.supported_types = [".jpg", ".jpeg", ".png", ".apng", ".tiff", ".pdf", ".xc... | mit | 511,007,696,220,500,400 | 37.669492 | 113 | 0.567186 | false | 4.175736 | false | false | false |
wjt/fewerror | fewerror/twitter/__init__.py | 1 | 8935 | # coding=utf-8
import json
import logging
import logging.config
import os
import random
import re
import time
import tweepy
from tweepy.streaming import StreamListener
from .. import find_corrections, format_reply
from ..state import State
from ..util import reverse_inits, OrderedSet
from .util import user_url, statu... | mit | 8,899,187,298,863,793,000 | 31.837638 | 107 | 0.569839 | false | 3.707917 | false | false | false |
asvetlov/bloggertool | lib/bloggertool/engine/rest.py | 1 | 1173 | # encoding.py
# Copyright (C) 2011-2014 Andrew Svetlov
# andrew.svetlov@gmail.com
#
# This module is part of BloggerTool and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
from __future__ import absolute_import
from docutils import core
from docutils.writers import html4css1
... | mit | 8,175,115,147,522,690,000 | 24.5 | 69 | 0.650469 | false | 3.72381 | false | false | false |
charlesthk/python-mailchimp | mailchimp3/entities/reportunsubscribes.py | 3 | 2482 | # coding=utf-8
"""
The Unsubscribes Report API endpoint
Documentation: http://developer.mailchimp.com/documentation/mailchimp/reference/reports/unsubscribed/
Schema: https://api.mailchimp.com/schema/3.0/Reports/Unsubs/Instance.json
"""
from __future__ import unicode_literals
from mailchimp3.baseapi import BaseApi
fro... | mit | -8,487,119,176,405,371,000 | 37.153846 | 118 | 0.652823 | false | 4.006462 | false | false | false |
mattvonrocketstein/smash | smashlib/ipy3x/nbformat/v4/tests/test_convert.py | 1 | 1899 | # -*- coding: utf-8 -*-
import copy
import nose.tools as nt
from IPython.nbformat import validate
from .. import convert
from . import nbexamples
from IPython.nbformat.v3.tests import nbexamples as v3examples
from IPython.nbformat import v3, v4
def test_upgrade_notebook():
nb03 = copy.deepcopy(v3examples.nb0)
... | mit | -8,869,384,665,323,770,000 | 23.723684 | 62 | 0.54231 | false | 3.10066 | false | false | false |
OpenReliability/OpenReliability | veusz/utils/formatting.py | 1 | 7937 | # Copyright (C) 2010 Jeremy S. Sanders
# Email: Jeremy Sanders <jeremy@jeremysanders.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 2 of the License, or
# ... | gpl-2.0 | -6,024,851,668,727,595,000 | 31.395918 | 79 | 0.571879 | false | 4.043301 | false | false | false |
thequbit/mayan-document-listener | archiver.py | 1 | 1830 |
import uuid
import datetime
from barking_owl import BusAccess
from api import add_document
def new_document_callback(payload):
"""
payload = {
'command': 'found_doc',
'source_id': '6eae01ff-ce21-4122-9f25-cb39455aa78e',
'destination_id': 'broadcast',
'mes... | gpl-3.0 | 5,138,165,512,680,214,000 | 23.078947 | 76 | 0.517486 | false | 4.05765 | false | false | false |
BillGuard/cabot | fabfile.py | 1 | 5778 | from fabric.api import *
from fabric.contrib.files import *
from fabric.contrib.project import rsync_project
from subprocess import check_output
env.use_ssh_config = True
env.user = 'ubuntu'
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
HOME_DIR = '/home/ubuntu'
DEPLOY_PATH = '%s/cabot' % HOME_DIR
LOG_DIR =... | mit | -940,422,477,312,339,600 | 31.27933 | 127 | 0.602977 | false | 3.523171 | false | false | false |
basilleaf/rocketweekly | launch.py | 1 | 1946 | import simplejson
import urllib2
from random import randint
from secrets import *
from tumblpy import *
# previously used content is logged to a file, read that file
published_file = 'published.json'
json_data=open(published_file)
published = simplejson.load(json_data)
# read the json feed for Rocket Launches - see ... | mit | 7,174,055,638,199,330,000 | 35.037037 | 187 | 0.702467 | false | 3.007728 | false | false | false |
lmazuel/azure-sdk-for-python | azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/tunnel_connection_health.py | 1 | 2528 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit | 3,155,735,484,848,848,400 | 40.442623 | 107 | 0.644778 | false | 4.255892 | false | false | false |
smvv/trs | src/rules/numerics.py | 1 | 6480 | # This file is part of TRS (http://math.kompiler.org)
#
# TRS is free software: you can redistribute it and/or modify it under the
# terms of the GNU Affero General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
# later version.
#
# TRS is distrib... | agpl-3.0 | 1,987,366,650,384,164,900 | 22.393502 | 79 | 0.541358 | false | 3.088656 | false | false | false |
yasoob/PythonRSSReader | venv/lib/python2.7/dist-packages/duplicity/util.py | 1 | 4735 | # -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright 2002 Ben Escoto <ben@emerose.org>
# Copyright 2007 Kenneth Loafman <kenneth@loafman.com>
#
# This file is part of duplicity.
#
# Duplicity is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License... | mit | -5,286,009,533,169,076,000 | 29.947712 | 92 | 0.660401 | false | 3.874795 | false | false | false |
scollis/iris | lib/iris/aux_factory.py | 1 | 37484 | # (C) British Crown Copyright 2010 - 2014, Met Office
#
# This file is part of Iris.
#
# Iris is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, either version 3 of the License, or
# (at your option) any l... | gpl-3.0 | -3,768,718,807,472,511,000 | 37.20999 | 79 | 0.543565 | false | 4.470897 | false | false | false |
vlegoff/tsunami | src/secondaires/peche/commandes/banc/voir.py | 1 | 3205 | # -*-coding:Utf-8 -*
# Copyright (c) 2010-2017 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
... | bsd-3-clause | 502,147,618,183,192,060 | 43.430556 | 79 | 0.659581 | false | 3.693995 | false | false | false |
jay-lau/magnum | magnum/common/cert_manager/local_cert_manager.py | 1 | 7905 | # Copyright 2014, 2015 Rackspace US, 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 ... | apache-2.0 | 1,911,038,793,815,947,000 | 35.939252 | 79 | 0.623656 | false | 4.252286 | true | false | false |
pulsar-chem/Pulsar-Core | scripts/generate_ordering.py | 1 | 2143 | #!/usr/bin/env python3
import sys
import psr_common
if len(sys.argv) != 3:
print("Usage: generate_ordering.py maxam outbase")
quit(1)
outbase = sys.argv[2]
def IterateCartesian(g, am):
if g[2] == am:
newg = (-1, -1, -1)
elif g[2] < (am - g[0]):
newg = (g[0], g[1]-1, g[2]+1)
else:
newg = (... | bsd-3-clause | -3,537,521,463,396,121,600 | 23.632184 | 92 | 0.496967 | false | 2.675406 | false | false | false |
harabchuk/wisemessage | wisemessage/settings/settings.py | 1 | 3975 | """
Django settings for wisemessage project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
from __future__ import absolute_import
import os
BASE_DIR = os.path.di... | mit | -4,846,788,402,199,124,000 | 28.014599 | 90 | 0.732327 | false | 3.088578 | false | false | false |
bit-jmm/ttarm | demo/all_models.py | 1 | 20338 | # encoding: utf-8
import sys
sys.path.append('/home/zjd/jmm/JPPCF/')
import os
import numpy as np
import util
from JPPCF import *
import logging
argvs = sys.argv
# We fix the num of latent feature
k = 100
lambd = 0.5
eta = 0.2
if len(argvs) == 4:
k = int(float(argvs[1]))
lambd = flo... | gpl-2.0 | 1,173,998,471,552,714,200 | 40.033195 | 105 | 0.530701 | false | 3.032026 | false | false | false |
penguinscontrol/Spinal-Cord-Modeling | Python/helper_functions.py | 1 | 1497 | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 17 18:15:40 2016
@author: Radu
"""
import struct
from neuron import h
def get_net_params(tempdata_address):
text_file_location = tempdata_address + "cell_params"
result = []
text_file = open(text_file_location, 'rb')
value = text_file.read(8)
while ... | gpl-2.0 | -5,283,306,757,014,171,000 | 23.145161 | 60 | 0.585838 | false | 3.341518 | false | false | false |
mattsmart/biomodels | celltypes/dataprocess/data_cluster.py | 1 | 2485 | import numpy as np
import os
from data_settings import DATADIR
from data_standardize import load_npz_of_arr_genes_cells
"""
Script to load raw data and attach cluster labels
- if no cluster labels provide, perform clustering (TODO: implement)
- else append saved clusters
"""
def load_cluster_labels(clusterpath, o... | mit | 8,280,211,372,449,569,000 | 34.5 | 127 | 0.634608 | false | 3.475524 | false | false | false |
EnEff-BIM/EnEffBIM-Framework | MapAPI/mapapi/molibs/MSL/Blocks/Sources/CombiTimeTable.py | 1 | 1399 | # -*- coding: utf-8 -*-
"""
@author: pre
"""
import random
import mapapi.MapClasses as MapHierarchy
class CombiTimeTable(MapHierarchy.MapComponent):
"""Representation of MSL.Blocks.Sources.CombiTimeTable
"""
def init_me(self):
self.y = self.add_connector(name="y",type="Real", dimension=1)
... | mit | -8,540,621,975,121,554,000 | 33.975 | 84 | 0.583274 | false | 4.139053 | false | false | false |
JMoravec/unkRadnet | fitToCurve/pyeq2/Models_3D/Polynomial.py | 1 | 21357 | # pyeq2 is a collection of equations expressed as Python classes
#
# Copyright (C) 2012 James R. Phillips
# 2548 Vera Cruz Drive
# Birmingham, AL 35235 USA
#
# email: zunzun@zunzun.com
# web: http://zunzun.com
#
# License: BSD-style (see LICENSE.txt in main source directory)
# Version info: $Id:... | bsd-3-clause | 7,205,415,596,044,739,000 | 43.035052 | 151 | 0.634687 | false | 3.39431 | false | false | false |
masayuko/nikola | nikola/plugins/command/import_wordpress.py | 1 | 47745 | # -*- coding: utf-8 -*-
# Copyright © 2012-2015 Roberto Alsina and others.
# 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 t... | mit | -2,071,887,205,507,479,000 | 43.413023 | 200 | 0.54832 | false | 4.183666 | false | false | false |
jgraef/python3-ipfs-api | ipfs/api/object.py | 1 | 5311 | from .. import codec
from ..proto.merkledag import PBMerkleDag
PBNode = codec.PB2(PBMerkleDag, "PBNode")
class ObjectPatchApi:
"""
Patch an object.
"""
def __init__(self, rpc, key):
self.key = key
self._rpc = rpc.patch[key]
def add_link(self, name, hash):
"""
... | mit | -4,754,380,584,421,107,000 | 29.348571 | 207 | 0.567313 | false | 3.576431 | false | false | false |
wikilinks/nel | nel/util.py | 1 | 7227 | import six
import Queue
import socket
import multiprocessing
from time import time
from itertools import chain
from collections import defaultdict
from bisect import bisect_left, bisect_right
from contextlib import contextmanager
from nel import logging
log = logging.getLogger()
def get_from_module(cid, mod_params, ... | mit | 7,124,264,087,889,888,000 | 31.554054 | 149 | 0.574512 | false | 3.8544 | false | false | false |
takeflight/wagtailmodelchooser | tests/app/models.py | 1 | 1901 | from django.db import models
from wagtail.admin.edit_handlers import StreamFieldPanel
from wagtail.core.blocks import RichTextBlock
from wagtail.core.fields import StreamField
from wagtail.core.models import Page
from wagtail.search import index
from wagtail.search.queryset import SearchableQuerySetMixin
from wagtailm... | bsd-2-clause | -4,344,544,470,617,714,700 | 23.371795 | 64 | 0.693319 | false | 4.036093 | false | false | false |
aldebaran/qibuild | python/qisrc/test/test_qisrc_add_group.py | 1 | 1356 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2012-2021 SoftBank Robotics. All rights reserved.
# Use of this source code is governed by a BSD-style license (see the COPYING file).
""" Test QiSrc Add Group """
from __future__ import absolute_import
from __future__ import unicode_literals
from __future__... | bsd-3-clause | 2,155,785,152,807,990,000 | 38.882353 | 84 | 0.681416 | false | 3.21327 | true | false | false |
Eifo-Zol-Hasadna/EifoZolParsers | scripts/dosh_product_parser.py | 1 | 2205 | #!/usr/bin/python
from xml.dom.minidom import parse
from json import dumps
def item_text(item,field):
ret = item.getElementsByTagName(field)
if ret is None: return "missing"
if len(ret) < 1: return "missing"
ret = ret[0]
if ret is None: return "missing"
ret = ret.childNodes
if ret is None:... | gpl-2.0 | 2,097,999,107,236,681,000 | 44.9375 | 104 | 0.574603 | false | 3.743633 | false | false | false |
TheAlgorithms/Python | neural_network/back_propagation_neural_network.py | 1 | 6011 | #!/usr/bin/python
"""
A Framework of Back Propagation Neural Network(BP) model
Easy to use:
* add many layers as you want !!!
* clearly see how the loss decreasing
Easy to expand:
* more activation functions
* more loss functions
* more optimization method
Author: Stephen Lee
Github : https://gi... | mit | -8,652,773,949,423,128,000 | 29.105528 | 85 | 0.555834 | false | 3.61557 | false | false | false |
gnmiller/craig-bot | craig-bot/lib/python3.6/site-packages/discord/shard.py | 1 | 13466 | # -*- coding: utf-8 -*-
"""
The MIT License (MIT)
Copyright (c) 2015-2019 Rapptz
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 u... | mit | 6,106,907,438,176,860,000 | 36.509749 | 125 | 0.617035 | false | 4.13702 | false | false | false |
CGATOxford/CGATPipelines | CGATPipelines/cgatflow.py | 1 | 2302 | '''
cgatflow.py - Computational Genomics Analysis Workflows
=======================================================
:Tags: Genomics
To use a specific workflow, type::
cgatflow <workflow> [workflow options] [workflow arguments]
For this message and a list of available keywords type::
cgatflow --help
To get... | mit | 5,063,248,970,199,253,000 | 24.021739 | 95 | 0.575586 | false | 3.519878 | false | false | false |
pa2515-group2/server | server/obj.py | 1 | 5981 | import json
import swiftclient
from server.models import database, ObjectModel, PatientModel
from server.hmsexceptions import UserNotExistException
from server.config import conf
from server.utils import logger
def upload_obj(patientid, post_data):
"""
Upload an obj in the system. The post data is a dict.
... | mit | 3,645,285,744,996,416,000 | 34.814371 | 109 | 0.557766 | false | 3.853737 | false | false | false |
facebookresearch/Detectron | detectron/roi_data/data_utils.py | 1 | 4246 | # Copyright (c) 2017-present, Facebook, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | apache-2.0 | 3,597,175,372,988,523,000 | 32.968 | 80 | 0.657089 | false | 3.404972 | false | false | false |
fnl/libfnl | setup.py | 1 | 2157 | #!/usr/bin/env python3
from distutils.core import setup
setup(
name='libfnl',
version='0.0.1',
license='GNU Affero GPL v3',
author='Florian Leitner',
author_email='florian.leitner@gmail.com',
url='https://github.com/fnl/libfnl',
description='command-line tools for text mining',
long_des... | agpl-3.0 | -5,863,296,205,902,480,000 | 31.19403 | 88 | 0.551692 | false | 3.258308 | false | false | false |
TuSimple/mxnet | tests/python/unittest/test_gluon.py | 1 | 32579 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 | -9,122,501,637,748,014,000 | 29.851326 | 106 | 0.587648 | false | 3.012947 | true | false | false |
phantomnat/my-cf-client-python | lib/cfclient/cfclient.py | 1 | 4582 | # -*- coding: utf-8 -*-
#
# || ____ _ __
# +------+ / __ )(_) /_______________ _____ ___
# | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \
# +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/
# || || /_____/_/\__/\___/_/ \__,_/ /___/\___/
#
# Copyright (C) 2011-2013 Bitcraze AB
#
... | gpl-2.0 | -502,626,681,663,235,100 | 32.445255 | 82 | 0.609341 | false | 3.81198 | false | false | false |
destijl/grr | grr/lib/client_compatibility.py | 1 | 1511 | #!/usr/bin/env python
"""A collection of compatibility fixes for client."""
from grr.client.client_actions import standard as standard_actions
from grr.lib import aff4
from grr.lib import config_lib
from grr.lib import flow
from grr.lib import rdfvalue
from grr.lib.rdfvalues import client as rdf_client
class RDFFind... | apache-2.0 | 5,296,137,253,931,396,000 | 32.577778 | 77 | 0.723362 | false | 3.530374 | false | false | false |
OpenBEL/resource-generator | parsed.py | 1 | 12783 | # coding: utf-8
'''
parsed.py
Acts as a storage module for the data being parsed by each parser.
This data can get very large, and it has been shown that this module
alone is not sufficient to meet the memory needs of the program,
specifically of the PubChem dataset, which is currently commented out.
Consider r... | apache-2.0 | -2,154,371,331,097,851,400 | 34.907303 | 85 | 0.530392 | false | 3.558742 | false | false | false |
ajerneck/thatsfordinner | scrape.py | 1 | 4305 | import bs4
import collections
import itertools
import urllib
import re
import requests
import pandas as pd
import sys
import psycopg2
from sqlalchemy import create_engine
from time import time
def make_soup(url):
"Make a beautiful soup from an url."
try:
page = requests.get(url)
soup = bs4.Beau... | bsd-3-clause | 8,724,870,310,036,732,000 | 32.897638 | 130 | 0.659233 | false | 3.179468 | false | false | false |
bitcraft/pyglet | pyglet/graphics/__init__.py | 1 | 24714 | # ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributi... | bsd-3-clause | 800,461,710,371,961,600 | 33.565035 | 82 | 0.610787 | false | 4.322897 | false | false | false |
dalejung/naginpy | naginpy/graph.py | 1 | 1072 | from collections import OrderedDict
import ast
from asttools import is_load_name, graph_walk
class GatherGrapher:
def __init__(self, code, **kwargs):
self.gather_check = kwargs.pop('gather_check', is_load_name)
self.gather_nodes = {}
if isinstance(code, str):
code = ast.parse(... | mit | 4,686,823,514,411,444,000 | 27.210526 | 70 | 0.55597 | false | 4.123077 | false | false | false |
HelloLily/hellolily | lily/hubspot/management/commands/try_to_fix_accounts_contacts.py | 1 | 8008 | import freemail
from django.core.management.base import BaseCommand
from django.core.paginator import Paginator
from django.db import transaction
from django.db.models import Q
from django.db.models.functions import Lower
from lily.accounts.models import Website, Account
from lily.contacts.models import Contact, Funct... | agpl-3.0 | 2,153,547,673,108,098,600 | 43.243094 | 116 | 0.591658 | false | 4.335679 | false | false | false |
vegeclic/django-regularcom | regularcom/views.py | 1 | 2393 | #
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
#... | agpl-3.0 | -2,821,555,230,518,169,000 | 38.883333 | 157 | 0.693272 | false | 3.715839 | false | false | false |
decvalts/landlab | docs/model_grid_guide/example_diffusion_component_driver.py | 1 | 1900 | #! /usr/env/python
"""
Example of a simple diffusion model that uses the LinearDiffuser.
Created July 2013 GT
Last updated August 2013 GT
"""
from landlab.components.diffusion import LinearDiffuser
from landlab.grid import create_and_initialize_grid
from landlab import ModelParameterDictionary
import pylab
import n... | mit | -6,894,455,975,142,469,000 | 24 | 72 | 0.662105 | false | 3.710938 | false | false | false |
burkmarr/QGIS-Biological-Recording-Tools | biorecdialog.py | 1 | 71758 | # -*- coding: utf-8 -*-
"""
/***************************************************************************
BiorecDialog
A QGIS plugin
FSC QGIS plugin for biological recorders
-------------------
begin : 2014-02-17
copyright ... | gpl-3.0 | 9,032,944,459,332,337,000 | 42.728824 | 455 | 0.575197 | false | 4.035429 | false | false | false |
google/myelin-acorn-electron-hardware | standalone_cartridge_programmer/tools/read_mgc.py | 1 | 1739 | from __future__ import print_function
# Copyright 2017 Google 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 ap... | apache-2.0 | 7,742,892,880,297,530,000 | 28.982759 | 75 | 0.653824 | false | 2.957483 | false | false | false |
bolverk/rayleigh_benard_convection | draw_snapshots.py | 1 | 3331 | def plot_single(in_file, zfunc, zname, out_file):
import pylab
import numpy
import h5py
from matplotlib.collections import PolyCollection
import matplotlib as mpl
import matplotlib.pyplot as plt
import os
print(out_file)
if os.path.isfile(out_file):
return
with h5py.Fi... | mit | -6,666,325,251,405,519,000 | 25.862903 | 109 | 0.526268 | false | 3.426955 | false | false | false |
sis-tools/dcos-cli | cli/dcoscli/help/main.py | 1 | 3041 | from concurrent.futures import ThreadPoolExecutor
import dcoscli
import docopt
from dcos import cmds, emitting, options, subcommand, subprocess, util
from dcos.errors import DCOSException
from dcoscli.subcommand import (default_command_documentation,
default_command_info, default_doc)
f... | apache-2.0 | -5,164,956,012,511,239,000 | 26.899083 | 79 | 0.620191 | false | 4.049268 | false | false | false |
sniemi/SamPy | sandbox/src/temp_hst_ground_track.py | 1 | 7871 | # This tool will plot the HST ground tracks
from mpl_toolkits.basemap import Basemap
from pylab import *
from matplotlib.font_manager import FontProperties
import sys
import string, math
import ephem
import time_util
import spst_getopt
# Deal with the input parameters
# 1st parm should be the start time for the HST ... | bsd-2-clause | -5,417,279,521,980,467,000 | 46.993902 | 194 | 0.627493 | false | 2.092794 | false | false | false |
joetainment/mmmmtools | MmmmToolsMod/Dynamic/Configuration.py | 1 | 13029 | ## MmmmTools - Usability Improvements For Maya
## Copyright (C) <2008> Joseph Crawford
##
## This file is part of MmmmTools.
##
## MmmmTools 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 | 6,564,273,018,423,344,000 | 36.539823 | 121 | 0.608566 | false | 4.138818 | true | false | false |
OCA/manufacture | mrp_multi_level/tests/test_mrp_multi_level.py | 1 | 15081 | # Copyright 2018-21 ForgeFlow S.L. (https://www.forgeflow.com)
# (http://www.eficent.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo.addons.mrp_multi_level.tests.common import TestMrpMultiLevelCommon
from odoo import fields
from datetime import date, datetime
class TestMrpMult... | agpl-3.0 | -5,775,510,911,736,473,000 | 44.7 | 79 | 0.571315 | false | 3.21488 | true | false | false |
bjut-hz/py-mate-tools | PyMateTools/test/DataFormat.py | 1 | 1284 | from __future__ import unicode_literals
__author__ = 'hz'
import nltk
class DataFormat:
def __init__(self):
pass
def dataFormat( self, _sentence ):
"""
format the input data and save it in the tmp file
:param _sentence:
:return:
"""
if isinstance( _sente... | gpl-2.0 | -2,382,825,900,074,393,000 | 25.770833 | 61 | 0.501558 | false | 4.196078 | false | false | false |
erikhvatum/RisWidget | ris_widget/om/signaling_list/signaling_list.py | 1 | 12711 | # The MIT License (MIT)
#
# Copyright (c) 2015 WUSTL ZPLAB
#
# 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, modif... | mit | 1,199,390,205,521,793,300 | 45.904059 | 138 | 0.58469 | false | 4.083199 | false | false | false |
hack4impact/legal-checkup | app/parameter/views.py | 1 | 2185 | from flask import flash, jsonify, redirect, render_template, request
from flask_login import login_required
from flask_restful import Resource, Api
from flask_wtf.file import InputRequired
from sqlalchemy.exc import IntegrityError
from wtforms.fields import SelectField
from ..models import EditableHTML, Parameter
from... | mit | 1,694,087,863,200,939,800 | 31.61194 | 106 | 0.640732 | false | 3.81993 | false | false | false |
gmarkall/numba | numba/core/compiler.py | 1 | 25424 | from collections import namedtuple
import copy
import warnings
from numba.core.tracing import event
from numba.core import (utils, errors, typing, interpreter, bytecode, postproc,
config, callconv, cpu)
from numba.parfors.parfor import ParforDiagnostics
from numba.core.inline_closurecall import... | bsd-2-clause | -4,760,306,749,833,884,000 | 32.943925 | 80 | 0.588263 | false | 4.196765 | false | false | false |
rbuffat/pyidf | tests/test_airflownetworksimulationcontrol.py | 1 | 5189 | import os
import tempfile
import unittest
import logging
from pyidf import ValidationLevel
import pyidf
from pyidf.idf import IDF
from pyidf.natural_ventilation_and_duct_leakage import AirflowNetworkSimulationControl
log = logging.getLogger(__name__)
class TestAirflowNetworkSimulationControl(unittest.TestCase):
... | apache-2.0 | 6,624,367,220,937,028,000 | 56.666667 | 209 | 0.741954 | false | 3.872388 | false | false | false |
Saldenisov/QY_itegrating_sphere | views/windows_views/main_view.py | 1 | 1248 | '''
Created on 7 juin 2016
@author: saldenisov
'''
from PyQt5.Qt import QMainWindow
from PyQt5.QtGui import QCloseEvent
from utility import MainObserver
from utility import Meta
from views import Ui_MainWindow
from _functools import partial
class MainView(QMainWindow, MainObserver, metaclass=Meta):
"""
"""
... | mit | -1,350,651,075,218,600,200 | 28.046512 | 98 | 0.693109 | false | 3.781818 | false | false | false |
dangillet/cocos | cocos/tiles.py | 1 | 66767 | # ----------------------------------------------------------------------------
# cocos2d
# Copyright (c) 2008-2012 Daniel Moisset, Ricardo Quesada, Rayentray Tappa,
# Lucio Torre
# Copyright (c) 2009-2015 Richard Jones, Claudio Canepa
# All rights reserved.
#
# Redistribution and use in source and binary forms, with o... | bsd-3-clause | -4,880,374,459,597,903,000 | 32.874683 | 108 | 0.556502 | false | 3.914576 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.