repo_name stringlengths 5 92 | path stringlengths 4 232 | copies stringclasses 19
values | size stringlengths 4 7 | content stringlengths 721 1.04M | 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 15 997 | alpha_frac float64 0.25 0.97 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
ijzer/cwbot-ndy | kol/request/UseSkillRequest.py | 1 | 1026 | from GenericRequest import GenericRequest
from kol.database import SkillDatabase
from kol.manager import PatternManager
class UseSkillRequest(GenericRequest):
def __init__(self, session, skillId, numTimes=1, targetPlayer=None):
super(UseSkillRequest, self).__init__(session)
self.get = True
... | bsd-3-clause | 4,853,984,224,395,065,000 | 40.04 | 72 | 0.662768 | false |
simokivimaki/gtk | gtk/compose-parse.py | 1 | 34024 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# compose-parse.py, version 1.3
#
# multifunction script that helps manage the compose sequence table in GTK+ (gtk/gtkimcontextsimple.c)
# the script produces statistics and information about the whole process, run with --help for more.
#
# You may need to switch your pyt... | lgpl-2.1 | 2,910,440,404,792,069,000 | 34.258031 | 159 | 0.649688 | false |
tommyip/zulip | zerver/tests/test_outgoing_webhook_interfaces.py | 1 | 6782 | # -*- coding: utf-8 -*-
from typing import cast, Any, Dict
import mock
import json
import requests
from zerver.lib.outgoing_webhook import (
get_service_interface_class,
process_success_response,
)
from zerver.lib.test_classes import ZulipTestCase
from zerver.lib.topic import TOPIC_NAME
from zerver.models imp... | apache-2.0 | 8,002,084,487,423,589,000 | 38.660819 | 96 | 0.583899 | false |
wujuguang/motor | test/tornado_tests/test_motor_transaction.py | 1 | 18586 | # Copyright 2018-present MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | apache-2.0 | 9,086,862,932,157,388,000 | 36.930612 | 80 | 0.546648 | false |
SEL-Columbia/commcare-hq | corehq/apps/cleanup/management/commands/check_case_integrity.py | 1 | 5062 | from collections import defaultdict
from optparse import make_option
from django.core.management.base import BaseCommand
from casexml.apps.case.cleanup import rebuild_case
from casexml.apps.case.models import CommCareCase
from corehq.elastic import stream_es_query, ES_URLS, ADD_TO_ES_FILTER
import dateutil.parser as dp... | bsd-3-clause | -8,207,043,014,911,200,000 | 47.209524 | 122 | 0.590676 | false |
toruta39/blender-datablock-translator | translate_datablock_names.py | 1 | 7692 | bl_info = {
"name": "Translate Datablock Names",
"author": "Joshua Zhang",
"version": (1, 0),
"blender": (2, 69, 0),
"location": "Search > (rename)",
"description": "A blender addon/plugin that helps to translate datablock \
names to English.",
"wiki_url": "",
"tracker_url": "",
... | mit | 5,995,320,613,882,916,000 | 29.046875 | 78 | 0.604134 | false |
miloszz/DIRAC | RequestManagementSystem/DB/RequestDB.py | 1 | 33451 | ########################################################################
# $HeadURL $
# File: RequestDB.py
# Date: 2012/12/04 08:06:30
########################################################################
from types import ListType
""" :mod: RequestDB
=======================
.. module: RequestDB
:synops... | gpl-3.0 | -7,894,808,296,504,958,000 | 34.100735 | 154 | 0.572868 | false |
cgimenop/Excel2Testlink | ExcelParser/lib/openpyxl/chart/tests/test_surface_chart.py | 1 | 3879 | from __future__ import absolute_import
# Copyright (c) 2010-2015 openpyxl
import pytest
from openpyxl.xml.functions import fromstring, tostring
from openpyxl.tests.helper import compare_xml
@pytest.fixture
def SurfaceChart():
from ..surface_chart import SurfaceChart
return SurfaceChart
class TestSurfaceCha... | mit | 3,734,306,017,059,204,600 | 22.509091 | 61 | 0.523331 | false |
warmlogic/SOCO | config.py | 1 | 6903 | # SOCO configuration
expName = 'SOCO'
# Number of sessions per subject
numSessions = 1
isEEG = True
playAudio = False
#############################
# Exp organization
#############################
# Number of trials/lists per session
numLists = 4
# Number of target stimuli per trial/list
study_listLen = 100
# numb... | gpl-3.0 | 1,999,850,138,623,218,700 | 27.882845 | 142 | 0.675359 | false |
Mr-F/dotmailer | dotmailer/surveys.py | 1 | 2805 | from dotmailer import Base
from dotmailer.connection import connection
class Survey(Base):
"""
"""
end_point = '/v2/surveys'
def __init__(self, **kwargs):
self.required_fields = []
super(Survey, self).__init__(**kwargs)
@classmethod
def get_multiple(cls, assigned_to_ad... | mit | -2,345,594,443,191,682,600 | 27.05 | 79 | 0.529768 | false |
kernsuite-debian/lofar | SAS/ResourceAssignment/ResourceAssignmentEstimator/resource_estimators/observation.py | 1 | 30414 | # observation.py
#
# Copyright (C) 2016-2017
# ASTRON (Netherlands Institute for Radio Astronomy)
# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
#
# This file is part of the LOFAR software suite.
# The LOFAR software suite is free software: you can redistribute it
# and/or modify it under the terms of the GNU General ... | gpl-3.0 | 3,918,938,717,688,254,500 | 53.407871 | 182 | 0.597718 | false |
pnomolos/greatbigcrane | greatbigcrane/project/migrations/0007_auto__add_field_project_project_type__chg_field_project_description.py | 1 | 2050 | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Project.project_type'
db.add_column('project_project', 'project_type', self.gf('django.db.... | apache-2.0 | 401,360,477,161,549,800 | 46.674419 | 156 | 0.596585 | false |
jaaimino/dogebook | app.py | 1 | 9782 | from flask import Flask, session, redirect, url_for, escape, request, render_template
from flask.ext.mongoengine import MongoEngine
from pbkdf2 import crypt
from models import *
import logging, datetime, math, os
#SSL for future security maybe?
'''
import ssl
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
context.load... | apache-2.0 | -2,140,761,096,780,513,500 | 37.821429 | 190 | 0.627275 | false |
tmorrell/Molframe | inputs/selector.py | 1 | 14370 | import tkSimpleDialog
import tkMessageBox
#import p3d.protein
#import p3d.geo
from pymol.wizard import Wizard
from pymol import cmd, util
from pymol.controlling import mode_dict
class Bond(object):
def __init__(self,bond1,bond2,resid1,resid2):
if bond2 > bond1:
self.bond1=bond1
self... | gpl-2.0 | -8,294,040,477,171,383,000 | 40.412104 | 168 | 0.499304 | false |
iLoop2/ResInsight | ThirdParty/Ert/devel/python/python/ert/__init__.py | 1 | 3998 | # Copyright (C) 2011 Statoil ASA, Norway.
#
# The file '__init__.py' is part of ERT - Ensemble based Reservoir Tool.
#
# ERT 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 ... | gpl-3.0 | -8,916,155,810,471,547,000 | 33.17094 | 134 | 0.731616 | false |
pgmillon/ansible | lib/ansible/modules/cloud/docker/docker_secret.py | 1 | 9011 | #!/usr/bin/python
#
# Copyright 2016 Red Hat | Ansible
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['prev... | gpl-3.0 | 1,511,846,390,148,133,000 | 29.238255 | 137 | 0.609255 | false |
scanny/python-pptx | tests/oxml/test___init__.py | 1 | 3204 | # encoding: utf-8
"""
Test suite for pptx.oxml.__init__.py module, primarily XML parser-related.
"""
from __future__ import print_function, unicode_literals
import pytest
from lxml import etree
from pptx.oxml import oxml_parser, parse_xml, register_element_cls
from pptx.oxml.ns import qn
from pptx.oxml.xmlchemy im... | mit | 4,207,162,620,822,190,600 | 28.1 | 84 | 0.634802 | false |
mrocklin/termpy | termpy/unification.py | 1 | 2669 | from functools import partial
from util import transitive_get as walk
from util import assoc
from variable import Var, var, isvar
import itertools as it
from ground import new, op, args, isleaf
################
# Reificiation #
################
def reify_generator(t, s):
return it.imap(partial(reify, s=s), t)
de... | bsd-3-clause | -958,728,437,775,557,600 | 22.619469 | 59 | 0.516298 | false |
opennode/nodeconductor-assembly-waldur | src/waldur_core/monitoring/models.py | 1 | 1936 | from django.contrib.contenttypes.fields import GenericForeignKey, GenericRelation
from django.contrib.contenttypes.models import ContentType
from django.db import models
from django.utils.translation import ugettext_lazy as _
from waldur_core.core.models import NameMixin
from waldur_core.monitoring.managers import (
... | mit | -6,042,245,834,683,955,000 | 30.737705 | 87 | 0.728822 | false |
LordFlashmeow/Collatz-Conjecture | Length_Highest_Manipulation.py | 1 | 2253 | def highest(start, stop):
begin = start
dict_max = {}
while begin <= stop:
current = set()
number = begin
if begin == 1:
number = 2
while number >= 1:
if number == 1:
max_num = int(max(current))
break
elif n... | gpl-3.0 | -3,609,880,505,250,593,300 | 26.814815 | 87 | 0.509987 | false |
orashi/PaintsPytorch | dev_train.py | 1 | 13516 | import argparse
import os
import random
from math import log10
import scipy.stats as stats
import torch.backends.cudnn as cudnn
import torch.optim as optim
import torch.optim.lr_scheduler as lr_scheduler
import torchvision.utils as vutils
from tensorboardX import SummaryWriter
from torch.autograd import Variable, grad
... | mit | -7,141,511,444,784,469,000 | 44.204013 | 119 | 0.591299 | false |
deginner/swagxample | setup.py | 1 | 1028 | from setuptools import setup
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2",
"Topic :: Software Development :: Libraries",
]
setup(
name='Swagxample',
version='0.0.3.1',
packages=['swagxample'],
url='https://bitbucket.org/deginner/swagxample... | mit | -4,867,287,245,942,831,000 | 26.783784 | 88 | 0.603113 | false |
hcchengithub/peforth | log.txt.py | 1 | 211869 |
peforth
[x] 13:59 2017-07-31 找到 JavaScript eval() equivalent in Python
https://stackoverflow.com/questions/701802/how-do-i-execute-a-string-containing-python-code-in-python
成功了!!
>>> mycode = 'print ("hello world")'
>>> exec(mycode)
hello world
>>>
The technique of returning a function fr... | mit | 4,925,997,226,757,895,000 | 48.328847 | 698 | 0.578373 | false |
ocaisa/easybuild-easyblocks | easybuild/easyblocks/p/psi.py | 1 | 8503 | ##
# Copyright 2013-2016 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),
# Flemish Research Foundation (F... | gpl-2.0 | 2,786,891,578,329,963,000 | 40.478049 | 116 | 0.618958 | false |
tobegit3hub/cinder_docker | cinder/volume/drivers/san/hp/hp_3par_iscsi.py | 1 | 33445 | # (c) Copyright 2012-2014 Hewlett-Packard Development Company, L.P.
# 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/lic... | apache-2.0 | 910,044,834,579,531,300 | 37.844367 | 79 | 0.535297 | false |
PyBossa/app-twitter | get_tweets.py | 1 | 1365 | # -*- coding: utf-8 -*-
# This file is part of PyBOSSA.
#
# PyBOSSA 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.
#
# PyBOSSA... | agpl-3.0 | 6,916,551,567,034,951,000 | 35.891892 | 83 | 0.685714 | false |
marcus-oscarsson/mxcube3 | mxcube3/routes/ra.py | 1 | 7501 | # -*- coding: utf-8 -*-
import gevent
import logging
from flask import (
session,
jsonify,
Response,
request,
make_response,
copy_current_request_context,
)
from mxcube3 import socketio
from mxcube3 import mxcube
from mxcube3 import server
from mxcube3 import blcontrol
from mxcube3.core impor... | gpl-2.0 | -4,123,180,664,764,723,000 | 26.47619 | 88 | 0.654313 | false |
joshspeagle/frankenz | frankenz/bruteforce.py | 1 | 23629 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Object used to fit data and compute PDFs using brute-force methods.
"""
from __future__ import (print_function, division)
import six
from six.moves import range
import sys
import os
import warnings
import math
import numpy as np
import warnings
from .pdf import *
... | mit | -5,926,666,856,018,205,000 | 36.44691 | 79 | 0.534936 | false |
kevinpt/ripyl | test/test_support.py | 1 | 5322 | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''Ripyl protocol decode library
test support functions
'''
# Copyright © 2013 Kevin Thibedeau
# This file is part of Ripyl.
# Ripyl is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# pu... | lgpl-3.0 | 2,962,859,695,577,808,000 | 29.672619 | 99 | 0.549145 | false |
archatas/whoosh | whoosh/highlight.py | 1 | 17889 | #===============================================================================
# Copyright 2008 Matt Chaput
#
# 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/li... | apache-2.0 | -1,190,348,764,071,662,300 | 33.335893 | 99 | 0.565711 | false |
JensTimmerman/easybuild-easyblocks | easybuild/easyblocks/n/ncl.py | 1 | 6733 | ##
# Copyright 2009-2012 Ghent University
# Copyright 2009-2012 Stijn De Weirdt
# Copyright 2010 Dries Verdegem
# Copyright 2010-2012 Kenneth Hoste
# Copyright 2011 Pieter De Baets
# Copyright 2011-2012 Jens Timmerman
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://u... | gpl-2.0 | 1,901,864,687,388,564 | 32.167488 | 101 | 0.596168 | false |
detly/dumat | dumat/cubicsuperpath.py | 1 | 5417 | #!/usr/bin/env python
# Copyright (C) 2005 Aaron Spike, aaron@ekips.org
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later versio... | gpl-3.0 | -6,287,155,482,373,087,000 | 30.678363 | 88 | 0.512461 | false |
pytorch/text | benchmark/benchmark_sentencepiece.py | 1 | 1914 | import time
import argparse
from torchtext.experimental.transforms import load_sp_model as load_pybind_sp_model
from torchtext.data.functional import load_sp_model as load_torchbind_sp_model
from torchtext.utils import download_from_url
from torchtext.datasets import DATASETS
def benchmark_sentencepiece(args):
de... | bsd-3-clause | -530,106,896,059,488,200 | 38.061224 | 125 | 0.738767 | false |
google/flax | flax/core/nn/attention.py | 1 | 18495 | # Copyright 2021 The Flax Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | apache-2.0 | -5,751,349,227,438,841,000 | 35.916168 | 80 | 0.656394 | false |
priestc/giotto | giotto/controllers/__init__.py | 1 | 7907 | from collections import deque
import inspect
import json
from giotto import get_config
from giotto.exceptions import (GiottoException, InvalidInput, ProgramNotFound,
MockNotFound, ControlMiddlewareInterrupt, NotAuthorized, InvalidInvocation)
from giotto.primitives import GiottoPrimitive, RAW_INVOCATION_ARGS
from ... | bsd-2-clause | 1,328,981,605,514,870,500 | 38.934343 | 115 | 0.615404 | false |
EuroPython/ep-tools | tasks.py | 1 | 4203 | """
Invoke tasks to be run from the command line.
"""
import os
from invoke import task
from eptools import talks, people
from eptools.gspread_utils import get_api_key_file
from eptools.config import (
conference,
sponsors_billing_worksheet,
finaid_submissions_worksheet
)
@task
def sponsor_agreement(ctx,... | mit | 804,876,676,924,397,200 | 32.624 | 122 | 0.656674 | false |
guildai/guild | guild/op.py | 1 | 14996 | # Copyright 2017-2021 TensorHub, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | apache-2.0 | -2,611,442,354,210,539,500 | 27.783109 | 88 | 0.584823 | false |
previtus/MGR-Project-Code | Settings/independent_experiments/effect_of_data_shuffling/shuffle_effective_1200.py | 1 | 3067 | def Setup(Settings,DefaultModel):
# shuffle_effective_1200.py
# - in this case always shuffled is better than not shuffled
# - and then osm only val is best, osm img mix is second and last is img only
Settings["experiment_name"] = "Test_Shuffling_3 models vs 3 models_1200x_markable_299x299_shuffleNowIn... | mit | 7,533,434,955,248,147,000 | 41.597222 | 147 | 0.632214 | false |
skasamatsu/vaspgrid | zav.py | 1 | 2327 | # Beware! Only tested for non-spin-polarized case
import re
import sys
import rlcompleter
import readline
#from numpy import *
from enterfi import enterfi
from outputfi import outputfi
gridfname = enterfi("Enter VASP field data (CHGCAR, LOCPOT, etc.)")
outfname = outputfi("Enter output file name ")
gridfi = open(grid... | mit | -8,205,839,579,492,689,000 | 23.755319 | 72 | 0.62312 | false |
harikishen/addons-server | src/olympia/addons/models.py | 1 | 81352 | # -*- coding: utf-8 -*-
import collections
import itertools
import json
import os
import posixpath
import re
import time
from operator import attrgetter
from datetime import datetime
from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
from django.core.files.storage import default_sto... | bsd-3-clause | -8,762,713,141,264,077,000 | 36.610726 | 79 | 0.601608 | false |
Telestream/telestream-cloud-python-sdk | telestream_cloud_qc_sdk/telestream_cloud_qc/models/sps_pps_test.py | 1 | 4039 | # coding: utf-8
"""
Qc API
Qc API # noqa: E501
The version of the OpenAPI document: 3.0.0
Contact: cloudsupport@telestream.net
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from telestream_cloud_qc.configuration import Configuration
class... | mit | -5,409,016,393,252,897,000 | 26.47619 | 104 | 0.559544 | false |
darkfeline/dantalian | src/dantalian/base.py | 1 | 5280 | # Copyright (C) 2015 Allen Li
#
# This file is part of Dantalian.
#
# Dantalian is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Da... | gpl-3.0 | 4,279,770,812,570,900,500 | 29.697674 | 78 | 0.659848 | false |
onitake/Uranium | UM/Scene/ToolHandle.py | 1 | 3897 | # Copyright (c) 2015 Ultimaker B.V.
# Uranium is released under the terms of the AGPLv3 or higher.
from . import SceneNode
from UM.Resources import Resources
from UM.Application import Application
from UM.Math.Color import Color
from UM.Math.Vector import Vector
from UM.Scene.Selection import Selection
from UM.View... | agpl-3.0 | -6,628,176,053,176,245,000 | 30.176 | 136 | 0.641519 | false |
AngryDevelopersLLC/res-scheduler | setup.py | 1 | 3088 | """
Resystem Scheduling Service.
Released under New BSD License.
Copyright © 2015, Vadim Markovtsev :: Angry Developers LLC
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 ... | bsd-3-clause | -7,938,679,896,831,706,000 | 40.716216 | 79 | 0.688371 | false |
cloudmesh/vagrant | cloudmesh_vagrant/cm_vbox.py | 1 | 5612 | from __future__ import print_function
from docopt import docopt
import cloudmesh_vagrant as vagrant
from cloudmesh_client.common.dotdict import dotdict
from pprint import pprint
from cloudmesh_client.common.Printer import Printer
from cloudmesh_client.common.Shell import Shell
import sys
import os
from cloudmesh_vagra... | apache-2.0 | -8,535,315,272,027,744,000 | 25.224299 | 74 | 0.498396 | false |
rdev-hackaton/GitHubTimeTracker | tests/frontends/cli.py | 1 | 2340 | import click
import pytest
from click.testing import CliRunner
from tests.core.mock_source import MockSource
from time_tracker.frontends.cli.tracker import print_time_tracking_info
from time_tracker.frontends.cli.options import DependentOption
@pytest.fixture(autouse=True)
def monkeypatch_config(monkeypatch):
... | mit | 3,904,383,696,815,917,600 | 24.16129 | 79 | 0.620085 | false |
balazssimon/ml-playground | udemy/lazyprogrammer/reinforcement-learning-python/approx_mc_prediction.py | 1 | 2661 | import numpy as np
import matplotlib.pyplot as plt
from grid_world import standard_grid, negative_grid
from iterative_policy_evaluation import print_values, print_policy
# NOTE: this is only policy evaluation, not optimization
# we'll try to obtain the same result as our other MC script
from monte_carlo_random import... | apache-2.0 | -1,145,871,072,479,624,100 | 26.153061 | 98 | 0.534386 | false |
joebos/django-allauth | test_settings.py | 1 | 2450 | # -*- coding: utf-8 -*-
SECRET_KEY = 'psst'
SITE_ID = 1
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
ROOT_URLCONF = 'allauth.urls'
TEMPLATE_CONTEXT_PROCESSORS = (... | mit | -6,332,023,860,715,804,000 | 30.818182 | 61 | 0.706122 | false |
petrundiy2/arithmetic_dragons | enemies.py | 1 | 3433 | __author__ = 'student'
# coding: utf-8
# license: GPLv3
from gameunit import *
from random import randint, choice
class Enemy(Attacker):
pass
def generate_random_enemy():
RandomEnemyType = choice(enemy_types)
enemy = RandomEnemyType()
return enemy
def generate_dragon_list(enemy_number):
enemy_l... | gpl-3.0 | -4,596,253,404,611,616,300 | 25.733333 | 116 | 0.551434 | false |
michael-dev2rights/ansible | lib/ansible/modules/cloud/amazon/ec2_asg.py | 1 | 59333 | #!/usr/bin/python
# This file is 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 your option) any later version.
#
# Ansible is distributed... | gpl-3.0 | 7,692,306,080,514,071,000 | 42.372076 | 158 | 0.645728 | false |
zhixingchou/Adminset_Zabbix | adminset/views.py | 1 | 11356 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from django.shortcuts import redirect
from jsonrpc import jsonrpc_method
from jsonrpc.proxy import ServiceProxy
from . import zabbix_api
import util
import os, json
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
import datetime
... | apache-2.0 | -4,084,114,825,781,418,500 | 39.192171 | 183 | 0.62573 | false |
ric2b/Vivaldi-browser | chromium/third_party/blink/renderer/devtools/scripts/build/build_debug_applications.py | 1 | 2057 | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# Copyright 2016 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.
"""
Builds applications in debug mode:
- Copies the module directories into their destinations.
- Copies app.h... | bsd-3-clause | -6,639,254,433,883,959,000 | 27.444444 | 112 | 0.599121 | false |
jabbalaci/jabbapylib | demos/browser_automation/splinter_2.py | 1 | 1090 | #!/usr/bin/env python
"""
splinter
http://splinter.cobrateam.info
"""
from time import sleep
from splinter.browser import Browser
#url = 'http://simile.mit.edu/crowbar/test.html'
#url = 'http://dl.dropbox.com/u/144888/hello_js.html'
url = 'http://www.ncbi.nlm.nih.gov/nuccore/CP002059.1'
#url = 'http://translate.go... | gpl-3.0 | -3,163,800,249,660,252,700 | 26.974359 | 288 | 0.577064 | false |
OpusVL/odoo | openerp/addons/base/module/wizard/base_module_upgrade.py | 1 | 5096 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Business Applications
# Copyright (C) 2004-2012 OpenERP SA (<http://openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of ... | agpl-3.0 | -3,829,129,742,672,154,600 | 45.327273 | 157 | 0.566719 | false |
hydratk/hydratk-lib-network | src/hydratk/lib/network/email/client.py | 1 | 1118 | # -*- coding: utf-8 -*-
"""Generic EMAIL client factory
.. module:: network.email.client
:platform: Unix
:synopsis: Generic EMAIL client factory
.. moduleauthor:: Petr Rašek <bowman@hydratk.org>
"""
from hydratk.core.masterhead import MasterHead
from importlib import import_module
protocols = {
'SMTP': 's... | bsd-3-clause | 3,173,219,289,923,795,000 | 23.822222 | 74 | 0.633841 | false |
cmtm/networkx | networkx/algorithms/tests/test_dag.py | 1 | 12697 | from itertools import combinations
from nose.tools import assert_equal
from nose.tools import assert_false
from nose.tools import assert_in
from nose.tools import assert_raises
from nose.tools import assert_true
from nose.tools import ok_
import networkx as nx
from networkx.testing.utils import assert_edges_equal
fro... | bsd-3-clause | 2,591,598,625,069,971,500 | 34.66573 | 79 | 0.535087 | false |
maqnius/compscie-mc | particlesim/api.py | 1 | 14109 | # particlesim
# Copyright (C) 2017 Mark Niehues, Stefaan Hessmann, Jaap Pedersen,
# Simon Treu, Hanna Wulkow, Thomas Hadler
#
# 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 ... | gpl-3.0 | 3,311,756,994,876,722,000 | 38.743662 | 176 | 0.607626 | false |
neothemachine/crowfood | crowfood/cli.py | 1 | 5675 | from __future__ import absolute_import, print_function
import sys
import os
import argparse
from warnings import warn
import crowfood.engine
from crowfood.utils import is_subdir
description = '''
See sfood for output format.
'''
def getParser():
parser = argparse.ArgumentParser(prog='cfood',
... | mit | -2,339,957,922,401,396,000 | 38.971831 | 105 | 0.52141 | false |
jirenz/CS229_Project | hearthbreaker/replay.py | 1 | 21593 | import re
import json
import hearthbreaker
from hearthbreaker.cards.heroes import hero_from_name
import hearthbreaker.constants
from hearthbreaker.engine import Game, card_lookup, Deck
import hearthbreaker.game_objects
import hearthbreaker.cards
import hearthbreaker.proxies
from hearthbreaker.serialization.move import... | mit | -7,057,704,691,699,661,000 | 37.150177 | 118 | 0.574538 | false |
Iconoclasteinc/tgit | test/ui/file_dialogs/test_file_dialog.py | 1 | 1231 | # -*- coding: utf-8 -*-
import pytest
from PyQt5.QtWidgets import QFileDialog
from hamcrest import ends_with, assert_that, equal_to
from cute.widgets import QFileDialogDriver, window
from test.ui import show_, close_
from tgit.ui import locations
from tgit.ui.dialogs.file_dialogs import make_file_dialog, name_... | gpl-3.0 | -7,738,104,564,986,402,000 | 30.447368 | 118 | 0.70593 | false |
Skeletrox/usb-backend-pinut | file_upload/fileupload/views.py | 1 | 15896 | import json, os, subprocess, getpass, shutil
import logging
from .USBFinder import attemptMount,transfer_file, get_usb_name
from hashlib import sha1
from django.http import HttpResponse,HttpResponseRedirect, JsonResponse
from django.views.decorators.csrf import ensure_csrf_cookie
from django.template import Context, l... | apache-2.0 | 7,018,819,054,383,964,000 | 37.865526 | 109 | 0.57417 | false |
vodkina/GlobaLeaks | backend/globaleaks/models/validators.py | 1 | 5111 | # -*- coding: UTF-8
#
# validator
# *********
#
# Utilities to validate data recorded in the ORM
import re
from globaleaks import LANGUAGES_SUPPORTED_CODES
from globaleaks.settings import GLSettings
from globaleaks.rest import errors
from globaleaks.utils.utility import log
def natnum_v(self, attr, value):
"""
... | agpl-3.0 | -8,436,190,481,681,134,000 | 31.974194 | 123 | 0.6126 | false |
vapor-ware/synse-server | synse_server/backoff.py | 1 | 1845 | """Retry backoff strategies."""
import random
import time
from typing import Union
__all__ = ['ExponentialBackoff']
class ExponentialBackoff:
"""An implementation of the exponential backoff strategy.
This is useful for getting an exponentially backed-off delay for
reconnection or retry actions.
Ea... | gpl-3.0 | 5,880,698,989,741,114,000 | 31.946429 | 79 | 0.625474 | false |
ecreall/lagendacommun | urlshortener/main.py | 1 | 5007 | # -*- coding: utf-8 -*-
# Copyright (c) 2016 by Ecreall under licence AGPL terms
# available on http://www.gnu.org/licenses/agpl.html
# Source: https://github.com/narenaryan/Pyster
# licence: AGPL
# author: Amen Souissi
import sqlite3
import string
from flask import Flask, request, render_template, redirect, jsonify
f... | agpl-3.0 | 2,148,260,794,711,410,000 | 31.72549 | 78 | 0.505892 | false |
liverliu/netmusichacker | python/hacker/hacker.py | 1 | 7384 | import logging
import web
import config
import requests
import json
import hashlib
import random
logger = logging.getLogger('route')
logger.setLevel(logging.INFO)
formatter = logging.Formatter('[%(asctime)s] {%(filename)s:%(lineno)d} %(levelname)s - %(message)s','%m-%d %H:%M:%S')
#console
ch = logging.StreamHandler()
... | apache-2.0 | 2,123,856,222,579,568,600 | 35.20098 | 120 | 0.574485 | false |
crappycrypto/wincrypto | wincrypto/constants.py | 1 | 1062 | from collections import namedtuple
import struct
PUBLICKEYSTRUC = namedtuple('PUBLICKEYSTRUC', 'bType bVersion aiKeyAlg') # reserved is skipped when unpacking
PUBLICKEYSTRUC_s = struct.Struct('<bb2xI')
PRIVATEKEYBLOB = namedtuple('PRIVATEKEYBLOB', 'modulus prime1 prime2 exponent1 exponent2 coefficient privateExponent... | mit | 5,415,822,493,171,555,000 | 20.673469 | 118 | 0.746704 | false |
repotvsupertuga/tvsupertuga.repository | script.module.streamlink.base/resources/lib/streamlink/plugin/api/validate.py | 1 | 12873 | """This module provides an API to validate and to some extent
manipulate data structures, such as JSON and XML parsing results.
Example usage:
>>> validate(int, 5)
5
>>> validate({text: int}, {'foo': '1'})
ValueError: Type of '1' should be 'int' but is 'str'
>>> validate({'foo': transform(int)... | gpl-2.0 | 4,050,243,957,748,727,000 | 25.325153 | 86 | 0.61027 | false |
doc-cloud/ds | string/string-rotate/rotate.py | 1 | 1026 | # -*- coding: utf-8 -*-
import copy
def simple_rotate(s, m):
if m < 0:
raise Exception('m is less than 0')
m %= len(s)
t = copy.copy(s)
del s[:]
s += t[m:] + t[:m]
def left_shift_m(s, m):
if m < 0:
raise Exception('m is less than 0')
length = len(s)
m %= length
for ... | gpl-2.0 | 102,612,010,791,808,480 | 19.52 | 47 | 0.457115 | false |
elfnor/sverchok | nodes/transforms/scale_mk2.py | 1 | 2683 | # ##### BEGIN GPL LICENSE BLOCK #####
#
# 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 distrib... | gpl-3.0 | -1,494,444,262,516,776,700 | 34.315789 | 90 | 0.656355 | false |
lucidfrontier45/flasktest | test/test.py | 1 | 2489 | from flask_app import application
import unittest
import logging
import json
import uuid
ch = logging.StreamHandler()
ch.setLevel(logging.DEBUG)
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
ch.setFormatter(formatter)
def make_logger(name):
logger = logging.getLogger(name)
... | mit | -5,974,267,527,050,064,000 | 29 | 85 | 0.575733 | false |
awni/tensorflow | tensorflow/python/training/training.py | 1 | 7130 | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 | 2,207,461,269,452,418,600 | 32.952381 | 84 | 0.78892 | false |
pacoqueen/bbinn | formularios/utils_almacen.py | 1 | 5346 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# Copyright (C) 2005-2008 Francisco José Rodríguez Bogado, #
# Diego Muñoz Escalante. #
# (pacoqueen@users.sourceforge.ne... | gpl-2.0 | 4,870,805,919,252,435,000 | 39.5 | 181 | 0.532548 | false |
FederatedAI/FATE | python/federatedml/param/encrypted_mode_calculation_param.py | 1 | 1888 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2019 The FATE 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/lic... | apache-2.0 | -2,847,998,658,587,991,000 | 36.019608 | 120 | 0.630826 | false |
pnwairfire/bluesky | test/unit/bluesky/test_datautils.py | 1 | 18223 | """Unit tests for bluesky.datetimeutils"""
__author__ = "Joel Dubowy"
from py.test import raises
from bluesky import datautils
from bluesky.models import activity
from bluesky.models.fires import Fire
# TODO: moke Fire class
class MockFiresManager(object):
def __init__(self, fires):
self.fires = [Fire... | gpl-3.0 | 92,842,793,735,075,460 | 38.78821 | 104 | 0.305493 | false |
appleseedhq/cortex | python/IECoreMaya/Collapsible.py | 5 | 8941 | ##########################################################################
#
# Copyright (c) 2011, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistribu... | bsd-3-clause | -3,500,785,268,951,882,000 | 29.831034 | 92 | 0.690527 | false |
lefnire/tensorforce | tensorforce/models/q_naf_model.py | 1 | 8828 | # Copyright 2017 reinforce.io. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | 6,982,727,479,257,415,000 | 38.410714 | 134 | 0.609538 | false |
victorianorton/SimpleRPGGame | src/game/Creature.py | 1 | 2202 |
from src.common.Observable import*
from src.game.AttackSpell import *
from src.game.AttackWeapon import *
from src.game.Attributes import *
from src.game.visit import *
from src.game.Heroes import *
#from src.game.AttackInventory import*
from random import*
class Creatures(Observable, GameAttributes, Visitor):
de... | mit | 8,173,256,232,380,542,000 | 26.197531 | 66 | 0.601726 | false |
maulik13/django-user-registration | user_registration/backends/default.py | 1 | 2007 | from django.contrib.sites.models import Site
from django.contrib.sites.models import RequestSite
from user_registration.models import UserRegistration
class DefaultRegistrationBackend(object):
"""
Backend defines how the registration and activation processes are defined
@register: What to do after valid ... | mit | -1,950,066,381,843,887,600 | 38.352941 | 92 | 0.683109 | false |
eric-stanley/NewsBlur | apps/social/models.py | 1 | 137635 | import datetime
import time
import zlib
import hashlib
import redis
import re
import mongoengine as mongo
import random
import requests
import HTMLParser
from collections import defaultdict
from pprint import pprint
from BeautifulSoup import BeautifulSoup
from mongoengine.queryset import Q
from django.conf import setti... | mit | -3,288,628,194,197,878,000 | 42.804901 | 195 | 0.551655 | false |
tsdotca/dmclient | core/hacks.py | 1 | 2964 | # core/hacks.py
# Copyright (C) 2018 Alex Mair. All rights reserved.
# This file is part of dmclient.
#
# dmclient 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, version 2 of the License.
#
# dmclient is dist... | gpl-2.0 | 6,981,152,763,329,449,000 | 34.285714 | 82 | 0.568826 | false |
gkc1000/pyscf | pyscf/mcscf/test/test_newton_casscf.py | 1 | 2281 | #!/usr/bin/env python
# Copyright 2014-2018 The PySCF Developers. 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
#
# U... | apache-2.0 | -3,234,945,309,184,798,000 | 31.585714 | 82 | 0.626041 | false |
F5Networks/f5-common-python | f5/bigip/tm/util/test/unit/test_get_dossier.py | 1 | 1572 | # Copyright 2016 F5 Networks Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | apache-2.0 | 1,810,308,920,897,840,400 | 33.173913 | 76 | 0.713104 | false |
cirosantilli/python-utils | sandbox/elearning/generate_tocs.py | 1 | 2277 | import os.path
from xml.dom.minidom import parse
home_dir = os.path.dirname(os.path.dirname(__file__)) #elearning/
html_path = os.path.join(home_dir,'toc.html') #elearning/toc.html
tocs_root_rel_path = 'sidebars'
tocs_path = os.path.join(home_dir,tocs_root_rel_path) #elearning/tocs partial tocs home
class_name = 'nav_... | mit | 458,288,741,566,199,200 | 37.610169 | 88 | 0.684673 | false |
Autodesk/molecular-design-toolkit | moldesign/compute/remote_procedure_calls.py | 1 | 5016 | from __future__ import print_function, absolute_import, division
from future.builtins import *
from future import standard_library
standard_library.install_aliases()
# Copyright 2017 Autodesk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with ... | apache-2.0 | -2,045,807,102,273,718,300 | 38.496063 | 99 | 0.61862 | false |
astagi/chickenfoot | test.py | 1 | 1972 | from chickenfoot import Chickenfoot
import socket
class TestChickenfootClient():
def setUp(self):
TCP_IP = '192.168.0.6'
TCP_PORT = 5005
self.s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.s.connect((TCP_IP, TCP_PORT))
def tearDown(self):
self.s.close()
... | mit | -5,306,917,132,645,212,000 | 19.340206 | 66 | 0.345842 | false |
rossella/neutron | quantum/api/extensions.py | 1 | 22315 |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack LLC.
# Copyright 2011 Justin Santa Barbara
# 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 Licens... | apache-2.0 | 665,210,720,194,459,000 | 35.581967 | 79 | 0.585122 | false |
ddico/odoo | addons/l10n_id_efaktur/models/account_move.py | 1 | 16354 | # -*- encoding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import base64
import re
from odoo import api, fields, models, _
from odoo.exceptions import UserError, ValidationError
FK_HEAD_LIST = ['FK', 'KD_JENIS_TRANSAKSI', 'FG_PENGGANTI', 'NOMOR_FAKTUR', 'MASA_PAJAK', 'TAHUN_P... | agpl-3.0 | -4,605,886,058,610,855,000 | 52.973597 | 308 | 0.577107 | false |
dbarenas/django-scheduler | agenda_template/agenda_template/schedule/periods.py | 1 | 14782 | from __future__ import unicode_literals
from builtins import range
from builtins import object
import pytz
import datetime
import calendar as standardlib_calendar
from django.conf import settings
from django.utils.encoding import python_2_unicode_compatible
from django.template.defaultfilters import date as date_filte... | gpl-2.0 | 3,281,308,981,689,938,000 | 35.862843 | 117 | 0.625085 | false |
arruda/presente_14 | presente_14/chat_parser/html_parser.py | 1 | 4871 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from bs4 import BeautifulSoup
from .chat_objects import *
def get_emails_html(path_to_html='emails.html'):
"returns the html from the emails file"
html = None
with open(path_to_html, 'r') as emails_file:
html = emails_file.read()
... | mit | -3,933,352,032,407,904,000 | 30.425806 | 89 | 0.674605 | false |
GeoMop/GeoMop | src/gm_base/model_data/export_con.py | 1 | 4070 | """Module for exporting the data structure to .con format.
.. codeauthor:: Tomas Krizek <tomas.krizek1@tul.cz>
"""
INDENTATION = ' '
class Exporter:
"""Exporter from data structure to con files."""
def __init__(self):
"""Initialize the class."""
self.lines = ['']
self.indent_level ... | gpl-3.0 | -7,520,589,368,520,169,000 | 29.601504 | 87 | 0.561425 | false |
emencia/emencia-django-forum | forum/settings.py | 1 | 2607 | """
Default Forum settings to import/define in your project settings
"""
# Categories pagination in 'Category index' (=forum index) view
FORUM_CATEGORY_INDEX_PAGINATE = 6
# Threads pagination in 'Last threads' view
FORUM_LAST_THREAD_PAGINATE = 15
# Threads pagination in 'Category detail' view
FORUM_CATEGORY_THREAD_PAG... | mit | -1,560,000,287,349,011,200 | 39.734375 | 116 | 0.754507 | false |
davy39/eric | Graphics/Ui_UMLSceneSizeDialog.py | 1 | 2749 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file './Graphics/UMLSceneSizeDialog.ui'
#
# Created: Tue Nov 18 17:53:58 2014
# by: PyQt5 UI code generator 5.3.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_UMLSceneSizeDialo... | gpl-3.0 | -7,273,575,584,148,077,000 | 50.867925 | 107 | 0.731539 | false |
google/clif | clif/testing/derived_in_other_header/python/shared_unique_interop_test.py | 1 | 7351 | # 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | -8,905,060,718,889,265,000 | 39.61326 | 88 | 0.744389 | false |
mozilla/mozilla-ignite | apps/challenges/migrations/0017_auto__add_field_phase_start_date__add_field_phase_end_date.py | 1 | 13053 | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Phase.start_date'
db.add_column('challenges_phase', 'start_date', self.gf('django.db.model... | bsd-3-clause | -5,817,836,040,785,347,000 | 75.782353 | 185 | 0.553742 | false |
akellne/toolshed | plugins/ifi.py | 1 | 4495 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import datetime
import urllib2
import re
import json
from base import Plugin
#URL to the ifi news ics file
URL = "http://webhelper.informatik.uni-goettingen.de/editor/ical/ifinews.ics"
#dateformat used in ics files (date with and without time)
ICS_U... | gpl-3.0 | -3,895,263,639,573,684,700 | 32.051471 | 81 | 0.441824 | false |
cherry-wb/SideTools | examples/mainwindows/sdi/sdi.py | 1 | 11026 | #!/usr/bin/env python
############################################################################
#
# Copyright (C) 2004-2005 Trolltech AS. All rights reserved.
#
# This file is part of the example classes of the Qt Toolkit.
#
# This file may be used under the terms of the GNU General Public
# License... | apache-2.0 | -1,914,550,978,136,689,000 | 35.376271 | 102 | 0.597497 | false |
theonion/django-bulbs | bulbs/reading_list/mixins.py | 1 | 8196 | """Logic for reading list behavior across all properties."""
from django.conf import settings
from django.core.cache import cache
from elasticsearch import TransportError
from elasticsearch_dsl import filter as es_filter
from bulbs.content.filters import NegateQueryFilter, SponsoredBoost
from bulbs.content.models imp... | mit | 6,193,664,146,447,652,000 | 38.786408 | 92 | 0.618228 | false |
Zefiros-Software/Zefiros-Bot | bot/slack_clients.py | 1 | 8173 | import logging
import re
import time
import json
import traceback
import os
import raven
from slacker import Slacker
from slackclient import SlackClient
from asq.initiators import *
from phabricator import Phabricator
from functools import wraps
class memo:
def __init__(self, fn):
self.fn ... | mit | 7,156,433,444,986,988,000 | 38.261084 | 301 | 0.608345 | false |
Wilsh/goldwarsplus | commerce/models.py | 1 | 13576 | from django.db import models
from django.utils import timezone
from urllib.request import urlretrieve
import hashlib
import os
from django.conf import settings
from math import ceil
# Create your models here.
class Item(models.Model):
'''All items discovered by players in the game'''
item_id = models.PositiveI... | mit | -482,726,655,842,744,700 | 42.373802 | 147 | 0.648129 | false |
marscher/mdtraj | MDTraj/utils/unit/quantity.py | 1 | 27812 | #!/bin/env python
"""
Module simtk.unit.quantity
Physical quantities with units, intended to produce similar functionality
to Boost.Units package in C++ (but with a runtime cost).
Uses similar API as Scientific.Physics.PhysicalQuantities
but different internals to satisfy our local requirements.
In particular, there i... | lgpl-2.1 | 5,665,115,278,954,907,000 | 38.282486 | 126 | 0.580469 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.