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 |
|---|---|---|---|---|---|---|---|---|---|---|
googleapis/googleapis-gen | google/cloud/automl/v1beta1/automl-v1beta1-py/google/cloud/automl_v1beta1/types/model_evaluation.py | 1 | 6961 | # -*- coding: utf-8 -*-
# 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... | apache-2.0 | -8,033,426,745,816,520,000 | 39.947059 | 124 | 0.679787 | false |
filipp/MacHammer | tests.py | 1 | 8518 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import time
import logging
import subprocess
from unittest import main, skip, TestCase
from machammer import (functions, system_profiler,
network, hooks, users,
screensaver, defaults,
printers,... | bsd-2-clause | -6,189,115,011,633,411,000 | 28.071672 | 79 | 0.623268 | false |
MDAnalysis/mdanalysis | benchmarks/benchmarks/analysis/rdf.py | 1 | 1204 | import MDAnalysis
try:
from MDAnalysisTests.datafiles import TPR, XTC
except:
pass
try:
from MDAnalysis.analysis.rdf import InterRDF
except:
pass
class SimpleRdfBench(object):
"""Benchmarks for MDAnalysis.analysis.rdf
"""
params = ([20,75,200],
[[0,5], [0,15], [0,20]],
... | gpl-2.0 | -4,898,817,287,443,108,000 | 24.083333 | 65 | 0.539037 | false |
xl1994/tfConvo | genImg.py | 1 | 3379 | # -*- Coding: UTF-8 -*-
import os
from captcha.image import ImageCaptcha
import numpy as np
from PIL import Image
import tensorflow as tf
import random
# import time
NUMBER = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
ALPHABET_LOWER = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',\
'm', 'n', 'o... | mit | -1,317,025,532,587,306,800 | 34.197917 | 94 | 0.553122 | false |
nugget/python-insteonplm | insteonplm/messages/setImConfiguration.py | 1 | 1698 | """INSTEON Set IM Configuration Message."""
from insteonplm.messages.message import Message
from insteonplm.constants import (
MESSAGE_SET_IM_CONFIGURATION_0X6B,
MESSAGE_SET_IM_CONFIGURATION_SIZE,
MESSAGE_SET_IM_CONFIGURATION_RECEIVED_SIZE,
MESSAGE_ACK,
MESSAGE_NAK,
)
class SetIMConfiguration(Mes... | mit | 5,503,579,786,581,197,000 | 28.275862 | 71 | 0.651943 | false |
ImageEngine/gaffer | python/GafferTest/MetadataTest.py | 1 | 43314 | ##########################################################################
#
# Copyright (c) 2013-2016, 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:
#
# * Redi... | bsd-3-clause | -7,004,529,297,010,446,000 | 36.115681 | 154 | 0.674309 | false |
Keeper-Security/Commander | keepercommander/custom/create_delete.py | 1 | 1159 | # _ __
# | |/ /___ ___ _ __ ___ _ _ ®
# | ' </ -_) -_) '_ \/ -_) '_|
# |_|\_\___\___| .__/\___|_|
# |_|
#
# Keeper Commander
# Copyright 2017 Keeper Security Inc.
# Contact: commander@keepersecurity.com
#
# Example showing how to create a record and upload
# to the server, then deleting the record from ... | mit | -5,221,725,862,456,658,000 | 22.632653 | 88 | 0.66494 | false |
baharev/sdopt-tearing | blt_decomp.py | 1 | 3754 | # Copyright (C) 2014, 2015 University of Vienna
# All rights reserved.
# BSD license.
# Author: Ali Baharev <ali.baharev@gmail.com>
from __future__ import print_function
import networkx as nx
from networkx.algorithms.bipartite import is_bipartite_node_set, projected_graph
from plot import dummy as plot
__all__ = [ 'Du... | bsd-3-clause | 8,460,373,804,732,289,000 | 39.365591 | 80 | 0.636388 | false |
benspaulding/django-faq | docs/conf.py | 1 | 7409 | # -*- coding: utf-8 -*-
#
# django-faq documentation build configuration file, created by
# sphinx-quickstart on Sat Sep 17 13:09:21 2011.
#
# 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 | 5,231,834,295,907,184,000 | 31.783186 | 80 | 0.706978 | false |
dadorado37/Trabajos_Python | empresa_arranque_gana.py | 1 | 7489 | # este link es para asegurarse de que un usuario ingrese un numero entero y no un caracter
# https://mail.python.org/pipermail/python-es/2011-September/030635.html
# empresa_arranque_gana.py
seleccion_menu_uno = 5
# define the function blocks
def uno():
print("\nEsa opcion es correcta\n")
print "cliente categoria 1"... | gpl-2.0 | -7,989,632,861,453,903,000 | 40.153846 | 159 | 0.72533 | false |
Hattivat/hypergolic-django | hypergolic/catalog/views/guidance_system_views.py | 1 | 1876 | from django.views.generic.detail import DetailView
from django.views.generic.edit import UpdateView, DeleteView
from .base import GenericListView, GenericCreateView
from ..models import GuidanceSystem
from ..forms import GuidanceSystemForm
from django.core.urlresolvers import reverse_lazy
from django.core.urlresolvers ... | agpl-3.0 | -2,839,638,340,755,405,300 | 32.5 | 72 | 0.723348 | false |
praekelt/jmbo-foundry | foundry/migrations/0008_auto.py | 1 | 23410 | # 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 M2M table for field content_type on 'Listing'
db.create_table('foundry_listing_content_type', (
... | bsd-3-clause | 8,287,324,540,936,429,000 | 80.567944 | 195 | 0.547117 | false |
cpennington/edx-platform | common/lib/xmodule/xmodule/library_content_module.py | 1 | 28855 | # -*- coding: utf-8 -*-
"""
LibraryContent: The XBlock used to include blocks from a library in a course.
"""
import json
import logging
import random
from copy import copy
from gettext import ngettext
from pkg_resources import resource_string
import six
from capa.responsetypes import registry
from lazy import lazy... | agpl-3.0 | 5,388,732,644,370,925,000 | 40.452586 | 125 | 0.614121 | false |
thetomcraig/redwood | examples/tcp-ip/serverClean.py | 1 | 7235 | #!/usr/bin/python
from PyQt4 import QtGui
from PyQt4 import QtCore
import time
import sys
import math
import myGui
import functions
import SocketServer
import threading
import socket
import random
import parameters
import datetime
from collections import deque
params=parameters.getParams()
socket.setdefaulttimeout(2)
... | isc | -6,759,639,312,788,060,000 | 29.787234 | 147 | 0.719281 | false |
cjgrady/stinkbait | reports/providerAggregate.py | 1 | 3807 | """
@summary: Creates a report with comparative statistics across providers
@author: CJ Grady
@version: 1.0
@status: alpha
@license: gpl2
@copyright: Copyright (C) 2014, University of Kansas Center for Research
Lifemapper Project, lifemapper [at] ku [dot] edu,
Biodiversity Institute,
13... | gpl-2.0 | -6,075,054,366,014,210,000 | 36.323529 | 83 | 0.589441 | false |
dfreedman55/LearningPython | week4/exercise3.py | 1 | 2047 | #!/usr/bin/env python
def main():
parsestring(uptime1)
sumsec(stats)
parsestring(uptime2)
sumsec(stats)
parsestring(uptime3)
sumsec(stats)
parsestring(uptime4)
sumsec(stats)
def yrs2sec(numyrs):
seconds = numyrs * 12 * 4 * 7 * 24 * 60 * 60
stats['years'] = seconds
def mth2sec(nummth):
seconds = nummth ... | gpl-2.0 | 8,404,460,959,718,783,000 | 23.662651 | 107 | 0.635076 | false |
sgordon007/jcvi_062915 | assembly/preprocess.py | 1 | 22843 | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
Wrapper to trim and correct sequence data.
"""
import os
import os.path as op
import sys
import logging
from jcvi.formats.base import BaseFile, write_file, must_open
from jcvi.formats.fastq import guessoffset
from jcvi.utils.cbook import depends, human_size
from jcvi... | bsd-2-clause | 9,061,038,318,958,718,000 | 31.773314 | 89 | 0.590246 | false |
kmike/morphine | morphine/pos_model.py | 1 | 1683 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from morphine import features
from morphine.feature_extractor import FeatureExtractor
from morphine.basetagger import PartialTagger
from pymorphy2.tagset import OpencorporaTag
class POSFeatureExtractor(FeatureExtractor):
IGNORE = {
'Arch', 'i... | mit | -2,966,662,456,207,913,000 | 32 | 96 | 0.562092 | false |
PhloxAR/phloxar | PhloxAR/compat.py | 1 | 1393 | # -*- coding: utf-8 -*-
"""
Compatibility module for Python 2.7 and > 3.3
"""
from __future__ import unicode_literals
import sys
import time
try:
import queue
except ImportError:
import Queue as queue
PY2 = sys.version < '3'
clock = None
if PY2:
unichr = unichr
long = long
fileopen = file
els... | apache-2.0 | -4,027,996,947,203,010,000 | 20.765625 | 77 | 0.694903 | false |
ganeti/ganeti | test/py/ganeti.server.rapi_unittest.py | 1 | 9885 | #!/usr/bin/python3
#
# Copyright (C) 2012 Google 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:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list o... | bsd-2-clause | -1,908,241,432,026,573,000 | 35.611111 | 80 | 0.647142 | false |
sdss/marvin | python/marvin/utils/datamodel/docudatamodel.py | 1 | 14193 | # !usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under a 3-clause BSD license.
#
# @Author: Brian Cherinka
# @Date: 2017-11-21 11:56:56
# @Last modified by: Brian Cherinka
# @Last Modified time: 2018-07-19 15:42:46
from __future__ import print_function, division, absolute_import
from docutils import node... | bsd-3-clause | 6,809,721,066,906,021,000 | 30.262115 | 100 | 0.573804 | false |
richardliaw/ray | rllib/agents/ddpg/ddpg_torch_model.py | 1 | 7776 | import numpy as np
from ray.rllib.models.torch.misc import SlimFC
from ray.rllib.models.torch.torch_modelv2 import TorchModelV2
from ray.rllib.utils.framework import try_import_torch, get_activation_fn
torch, nn = try_import_torch()
class DDPGTorchModel(TorchModelV2, nn.Module):
"""Extension of standard TorchMo... | apache-2.0 | 8,141,705,014,407,034,000 | 37.88 | 79 | 0.547968 | false |
dbtsai/python-mimeparse | mimeparse_test.py | 1 | 2663 | #!/usr/bin/env python
"""
Python tests for Mime-Type Parser.
This module loads a json file and converts the tests specified therein to a set
of PyUnitTestCases. Then it uses PyUnit to run them and report their status.
"""
import json
import unittest
import mimeparse
__version__ = "0.1"
__author__ = 'Ade Oshineye'
_... | mit | -5,316,706,622,492,868,000 | 33.584416 | 79 | 0.61472 | false |
FedoraScientific/salome-yacs | src/pyqt/gui/CItems.py | 1 | 17573 | # Copyright (C) 2006-2014 CEA/DEN, EDF R&D
#
# This library 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 2.1 of the License, or (at your option) any later version.
#
# This library ... | gpl-2.0 | -5,207,753,178,458,812,000 | 26.761453 | 174 | 0.653275 | false |
stscieisenhamer/glue | glue/app/qt/splash_screen.py | 1 | 1493 | import os
from qtpy import QtWidgets, QtGui
from qtpy.QtCore import Qt, QRect
__all__ = ['QtSplashScreen']
class QtSplashScreen(QtWidgets.QWidget):
def __init__(self, *args, **kwargs):
super(QtSplashScreen, self).__init__(*args, **kwargs)
self.resize(627, 310)
self.setStyleSheet("back... | bsd-3-clause | 1,320,943,867,231,352,300 | 32.177778 | 111 | 0.663094 | false |
ZeitOnline/zeit.cms | src/zeit/cms/section/testing.py | 1 | 1175 | import plone.testing
import zeit.cms.repository.interfaces
import zeit.cms.section.interfaces
import zeit.cms.testcontenttype.interfaces
import zeit.cms.testing
import zope.component
import zope.interface
ZCML_LAYER = zeit.cms.testing.ZCMLLayer(
'ftesting.zcml', product_config=zeit.cms.testing.cms_product_config)... | bsd-3-clause | -5,837,318,905,584,816,000 | 27.658537 | 77 | 0.726809 | false |
google-research/google-research | m_theory/dim4/so8_supergravity_extrema/code/symmetries.py | 1 | 34942 | # coding=utf-8
# Copyright 2021 The Google Research 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 applicab... | apache-2.0 | 8,383,226,262,256,209,000 | 42.08508 | 81 | 0.638372 | false |
llvm-mirror/llvm | utils/llvm-locstats/llvm-locstats.py | 6 | 7999 | #!/usr/bin/env python
#
# This is a tool that works like debug location coverage calculator.
# It parses the llvm-dwarfdump --statistics output by reporting it
# in a more human readable way.
#
from __future__ import print_function
import argparse
import os
import sys
from json import loads
from math import ceil
from ... | apache-2.0 | -7,798,051,178,738,378,000 | 37.272727 | 79 | 0.627578 | false |
hattwj/rainmaker | rainmaker/tests/unit/db/main_test.py | 1 | 2268 | from rainmaker.tests import test_helper, factory_helper
from rainmaker.main import Application
from rainmaker.db.main import init_db, HostFile, SyncFile, Sync, \
Host, Resolution, Download
from rainmaker.db import main
fh = factory_helper
def test_db_init():
init_db()
def test_sync_file_version_init():
... | gpl-3.0 | -435,736,149,443,689,500 | 28.076923 | 66 | 0.637566 | false |
rvmoura96/projeto-almoxarifado | myvenv/Lib/site-packages/django_filters/rest_framework/filterset.py | 1 | 1483 |
from __future__ import absolute_import
from copy import deepcopy
from django import forms
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django_filters import filterset
from .. import compat, utils
from .filters import BooleanFilter, IsoDateTimeFilter
FILTER_FOR_DBFIELD_... | mit | -1,568,155,611,122,657,300 | 27.519231 | 77 | 0.662846 | false |
trueship/oauth2app | tests/testsite/apps/oauth2/urls.py | 1 | 1449 | #-*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from oauth2app.token import TokenGenerator
from oauth2app.consts import MAC
urlpatterns = patterns('',
(r'^missing_redirect_uri/?$', 'testsite.apps.oauth2.views.missing_redirect_uri'),
(r'^authorize_not_refreshable/?$', 't... | mit | 2,713,320,258,166,799,000 | 68 | 109 | 0.590752 | false |
tom-f-oconnell/multi_tracker | multi_tracker_analysis/data_slicing.py | 1 | 3233 | import numpy as np
def get_keys_in_framerange(pd, framerange):
return np.unique(pd.ix[framerange[0]:framerange[-1]].objid)
def get_frames_for_key(pd, key):
return pd[pd.objid==key].frames.values
def get_data_in_framerange(pd, framerange):
# pd_subset
return pd.ix[framerange[0]:framerange[-1]]
de... | mit | -5,570,509,066,048,745,000 | 31.33 | 132 | 0.615218 | false |
globocom/database-as-a-service | dbaas/account/migrations/0010_auto__add_field_team_token.py | 1 | 8543 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Team.token'
db.add_column(u'account_team', 'token',
... | bsd-3-clause | 7,315,269,892,506,538,000 | 75.285714 | 195 | 0.557415 | false |
Psirus/altay | altai/gui/driver_selection_group.py | 1 | 3169 | """ Group from which to select manufacturer and model """
import PySide2.QtCore as QtCore
import PySide2.QtWidgets as QtWidgets
from . import config
from ..lib.driver import Driver
class DriverSelectionGroup(QtWidgets.QGroupBox):
""" Group from which to select manufacturer and model """
driver_changed = QtCo... | bsd-3-clause | 4,015,538,848,394,772,500 | 42.410959 | 79 | 0.662354 | false |
huggingface/transformers | src/transformers/models/t5/tokenization_t5_fast.py | 1 | 8622 | # coding=utf-8
# Copyright 2018 T5 Authors and HuggingFace Inc. team.
#
# 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... | apache-2.0 | 2,695,773,239,925,617,700 | 41.683168 | 164 | 0.6299 | false |
Elizaveta239/PyDev.Debugger | tests_python/test_bytecode_modification.py | 1 | 23477 | import dis
import sys
import unittest
from io import StringIO
import pytest
from _pydevd_frame_eval.pydevd_modify_bytecode import insert_code
from opcode import EXTENDED_ARG
TRACE_MESSAGE = "Trace called"
def tracing():
print(TRACE_MESSAGE)
def call_tracing():
return tracing()
def bar(a, b):
return a... | epl-1.0 | 5,869,620,345,414,699,000 | 39.758681 | 511 | 0.446309 | false |
mayuanucas/notes | python/code/linearunit.py | 1 | 1443 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from perceptron import Perceptron
class LinearUnit(Perceptron):
def __init__(self, input_num, activator):
'''
初始化感知器,设置输入参数的个数,以及激活函数。
'''
Perceptron.__init__(self, input_num, activator)
def func(x):
'''
定义激活函数func
'''
return x
def get_training_dataset():
... | apache-2.0 | -2,600,775,387,799,649,300 | 22.28 | 76 | 0.647463 | false |
collective/ECSpooler | backends/junit/JUnit.py | 1 | 18661 | # -*- coding: utf-8 -*-
# $Id$
#
# Copyright (c) 2007-2011 Otto-von-Guericke-Universität Magdeburg
#
# This file is part of ECSpooler.
#
################################################################################
# Changelog #
#####################... | gpl-2.0 | -2,208,946,846,713,217,800 | 37.956159 | 173 | 0.569614 | false |
xuxiao19910803/edx-platform | lms/djangoapps/oauth_tianyuyun/views.py | 1 | 1363 | # -*- coding: utf-8 -*-
from django.http import HttpResponseRedirect
from django.contrib.auth import authenticate, logout, login
from .utils import TianYuClient
from .settings import TIANYUYUN_LOGIN_URL
LOGIN_SUCCESS_REDIRECT_URL = '/dashboard'
LOGIN_CREATE_SUCCESS_REDIRECT_URL = '/dashboard' # '/accou... | agpl-3.0 | 3,580,869,867,609,412,000 | 40.59375 | 90 | 0.624358 | false |
davy39/eric | Plugins/VcsPlugins/vcsSubversion/Ui_SvnUrlSelectionDialog.py | 1 | 5231 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file './Plugins/VcsPlugins/vcsSubversion/SvnUrlSelectionDialog.ui'
#
# Created: Tue Nov 18 17:53:57 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
... | gpl-3.0 | -6,944,341,487,784,356,000 | 57.775281 | 124 | 0.751673 | false |
raffaellod/abamake | src/comk/argparser.py | 1 | 7433 | # -*- coding: utf-8; mode: python; tab-width: 3; indent-tabs-mode: nil -*-
#
# Copyright 2013-2017 Raffaello D. Di Napoli
#
# This file is part of Complemake.
#
# Complemake 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 F... | gpl-3.0 | 7,662,710,956,515,190,000 | 39.966851 | 110 | 0.598247 | false |
Ginkgo-Biloba/Misc-Python | numpy/SciPyInt.py | 1 | 3425 | # coding=utf-8
import numpy as np
from scipy import integrate as intgrt
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from math import sqrt
# 计算半球的体积
def ballVolume():
def halfBall(x, y):
return sqrt(1 - x**2 - y**2)
def halfCircle(x):
return sqrt(1 - x**2)
(vol, error) = intgrt.dblqua... | gpl-3.0 | -104,215,309,055,111,760 | 25.347458 | 98 | 0.577999 | false |
ubc/compair | compair/tests/algorithms/test_validity.py | 1 | 8324 | import json
import random
import math
import unittest
import os
import unicodecsv as csv
from enum import Enum
from data.fixtures.test_data import ComparisonTestData
from compair.models import Answer, Comparison, \
WinningAnswer, AnswerScore, AnswerCriterionScore, \
PairingAlgorithm, ScoringAlgorithm
from comp... | gpl-3.0 | -8,371,443,802,166,845,000 | 40.009852 | 121 | 0.634431 | false |
PythonScanClient/PyScanClient | example/opi/scripts/xy_scan.py | 1 | 2047 | """
Schedule scan with parameters from BOY script
@author: Kay Kasemir
"""
from org.csstudio.scan.ui import SimulationDisplay
from org.csstudio.scan.server import SimulationResult
from org.eclipse.ui import PlatformUI
from errors import showException
from scan.commands.loop import Loop
from scan.commands.wait impo... | epl-1.0 | -92,103,422,554,939,620 | 31.492063 | 97 | 0.634587 | false |
fiber-space/pip | pip/_vendor/cachecontrol/caches/file_cache.py | 1 | 4069 | import hashlib
import os
from textwrap import dedent
from ..cache import BaseCache
from ..controller import CacheController
try:
FileNotFoundError
except NameError:
# py2.X
FileNotFoundError = IOError
def _secure_open_write(filename, fmode):
# We only want to write to this file, so open it in write ... | mit | -2,711,897,813,747,140,600 | 29.593985 | 79 | 0.606783 | false |
ryepdx/account_payment_cim_authdotnet | xml2dic.py | 1 | 1080 | ##Module that converts the Xml response to dictionary
from lxml import etree
import re
def dictlist(node):
res = {}
node_tag = re.findall(r'}(\w*)', node.tag)
node_tag = node_tag[0]
res[node_tag] = []
xmltodict(node, res[node_tag])
reply = {}
reply[node_tag] = res[node_tag]
return repl... | agpl-3.0 | -254,882,252,893,235,300 | 21.5 | 53 | 0.503704 | false |
schaabs/sandbox | net/sandbox.keyvault/python/repl/key_vault_crypto.py | 1 | 1939 | import base64
import datetime
import sys
import argparse
from azure.keyvault.generated.models import KeyVaultErrorException
from python.key_vault_agent import KeyVaultAgent
from azure.keyvault.generated import KeyVaultClient
CLIENT_ID = '8fd4d3c4-efea-49aa-b1de-2c33c22da56e'
class KeyVaultCryptoAgent(KeyVaultAgent... | mit | 1,837,548,955,547,874,800 | 33.017544 | 137 | 0.680248 | false |
smartschat/cort | cort/coreference/experiments.py | 1 | 3556 | """ Manage learning from training data and making predictions on test data. """
import logging
__author__ = 'smartschat'
def learn(training_corpus, instance_extractor, perceptron):
""" Learn a model for coreference resolution from training data.
In particular, apply an instance/feature extractor to a tra... | mit | -2,677,525,820,870,736,000 | 38.076923 | 79 | 0.66676 | false |
Catgroove/dotaninja | app/filters.py | 1 | 1483 | from app import app
from flask import url_for
from .models import Player, DoesNotExist
from .helpers import json_file_to_dict
from config import JSON_DIR
import datetime
import arrow
import os
@app.template_filter("game_mode")
def game_mode(mode_id):
return json_file_to_dict(os.path.join(JSON_DIR, "game_mode.json... | gpl-3.0 | 3,359,745,822,291,278,000 | 25.482143 | 92 | 0.696561 | false |
ktan2020/legacy-automation | win/Lib/site-packages/wx-3.0-msw/wx/lib/flashwin_old.py | 1 | 19484 | #----------------------------------------------------------------------
# Name: wx.lib.flashwin
# Purpose: A class that allows the use of the Shockwave Flash
# ActiveX control
#
# Author: Robin Dunn
#
# Created: 22-March-2004
# RCS-ID: $Id: flashwin.py 26301 2004-03-23 05:2... | mit | -5,230,802,995,228,288,000 | 27.883436 | 89 | 0.582991 | false |
proversity-org/edx-platform | cms/djangoapps/contentstore/features/video.py | 1 | 2082 | # pylint: disable=missing-docstring
from lettuce import step, world
SELECTORS = {
'spinner': '.video-wrapper .spinner',
'controls': '.video-controls',
}
# We should wait 300 ms for event handler invocation + 200ms for safety.
DELAY = 0.5
@step('I have uploaded subtitles "([^"]*)"$')
def i_have_uploaded_sub... | agpl-3.0 | -6,644,738,434,728,490,000 | 30.074627 | 85 | 0.686359 | false |
Mokona/python-p4lib | test/mocked/p4lib_describe_test.py | 1 | 3184 | import unittest
import p4lib
from mock23 import Mock
from test_utils import change_stdout, test_options, test_raw_result
CHANGE_NUM = 1234
USER = "someuser"
CLIENT = "someclient"
DATE = "2014/11/01"
DESCRIPTION = "Some changelist description"
FILE_0 = "//depot/file.cpp"
REV_0 = 3
ACTION_0 = "edit"
FILE_1 = "//depot/f... | mit | -1,705,442,480,516,141,300 | 24.886179 | 71 | 0.611809 | false |
phillynch7/sportsref | sportsref/nba/seasons.py | 1 | 9902 | from __future__ import print_function
from __future__ import division
from future import standard_library
standard_library.install_aliases()
from builtins import range, zip
from past.utils import old_div
import urllib.parse
import future
import future.utils
import numpy as np
import pandas as pd
from pyquery import P... | gpl-3.0 | 5,210,937,238,460,397,000 | 35.538745 | 90 | 0.608362 | false |
Andr3iC/courtlistener | cl/simple_pages/urls.py | 1 | 4018 | from django.conf.urls import url
from django.views.generic import RedirectView
from cl.simple_pages.sitemap import sitemap_maker
from cl.simple_pages.views import (
tools_page, validate_for_google, validate_for_google2, validate_for_wot,
validate_for_bing, robots, advanced_search, contact_thanks, contact, feed... | agpl-3.0 | 1,652,597,468,934,639,900 | 33.050847 | 79 | 0.599552 | false |
jdahlin/d-feet | dfeet/_ui/busnamebox.py | 1 | 2042 | import gobject
import gtk
from dfeet.dbus_introspector import BusWatch
from busnameview import BusNameView
class BusNameBox(gtk.VBox):
__gsignals__ = {
'busname-selected' : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE,
(gobject.TYPE_PYOBJECT,))
}
def _... | gpl-2.0 | -5,044,364,324,568,237,000 | 30.415385 | 78 | 0.599902 | false |
JuanbingTeam/djangobbs | djangobbs/accounts/models.py | 1 | 6806 | #!/usr/bin/env python
#coding=utf-8
from django.db import models
from django.contrib.auth.models import User
from django.contrib import admin
from django.utils.translation import ugettext as _T
from djangobbs.addresses.models import Person
from djangobbs.accounts.config import LOGO_FOLDER
from cPickle imp... | apache-2.0 | 233,650,022,630,310,980 | 31.511628 | 112 | 0.596808 | false |
hammerhorn/hammerhorn-jive | dice/dice.py | 1 | 5645 | #!/usr/bin/env python
#coding=utf-8
"""
die-rolling simulator
Roll a single n-sided die. Number of sides can be specified on the
command line; default is 6.
"""
__author__ = 'Chris Horn <hammerhorn@gmail.com>'
import argparse, sys
try:
if sys.version_info.major == 2:
import Tkinter as tk
elif sys.ve... | gpl-2.0 | -2,858,508,236,669,075,000 | 29.836066 | 79 | 0.606238 | false |
csningli/MultiAgent | examples/simple_move/simple_move_sim.py | 1 | 2835 |
# MultiAgent
# (c) 2017-2019, NiL, csningli@gmail.com
import sys, random, datetime, math
random.seed(datetime.datetime.now())
sys.path.append("../..")
from mas.multiagent import *
AREA_SIZE = 200
POS_ERROR = 5
MIN_SPEED = 100
MAX_SPEED = 500
class TargetModule(Module) :
def __init__(self) :
super(Targ... | apache-2.0 | 8,272,226,968,732,636,000 | 24.540541 | 111 | 0.573192 | false |
azotdata/azot-event-extractor | db_mongodb.py | 1 | 4124 | # -*- coding: utf-8 -*-
""""
Script which contains all class definition related to COUCHDB database
"""
from manage_db import *
from mongoengine import *
from utils import *
class Connection(ManageConnection):
"""
Manage connection to database
"""
def __init__(self,db_server):
self.db_ser... | gpl-3.0 | -8,880,503,633,293,053,000 | 23.843373 | 95 | 0.592871 | false |
drewcsillag/skunkweb | pylibs/pargen/initParGenGrammar.py | 1 | 1108 | #
# Copyright (C) 2001 Andrew T. Csillag <drew_csillag@geocities.com>
#
# You may distribute under the terms of either the GNU General
# Public License or the SkunkWeb License, as specified in the
# README file.
#
from RuleItems import Rule
import CompileGrammar
ruleSet=[
#Rule("Start", ['S'... | gpl-2.0 | 5,383,967,760,084,567,000 | 31.588235 | 88 | 0.58213 | false |
stevecassidy/annotationrdf | annotationrdf/annotation_names.py | 1 | 2738 | from namespaces import *
NAMEMAP = {
'ambig-paragraph': ICEA.ambigparagraph,
'bold': ICEA.bold,
'byline': ICEA.byline,
'changed': ICEA.changed,
'corpus': ICEA.corpus,
'correction': ARTA.correction,
'deleted': ICEA.deleted,
'discontinuous': ICEA.discontin... | bsd-3-clause | -5,983,904,074,951,426,000 | 34.102564 | 66 | 0.588386 | false |
isomer/faucet | faucet/vlan.py | 1 | 7169 | # Copyright (C) 2015 Brad Cowie, Christopher Lorier and Joe Stringer.
# Copyright (C) 2015 Research and Education Advanced Network New Zealand Ltd.
# Copyright (C) 2015--2017 The Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Li... | apache-2.0 | -7,152,596,814,654,182,000 | 28.746888 | 82 | 0.580834 | false |
cltrudeau/django-awl | extras/sample_site/app/migrations/0001_initial.py | 1 | 1338 | # Generated by Django 3.0.5 on 2020-06-12 14:38
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Writer',
fields=[
... | mit | 4,384,991,229,205,189,600 | 34.210526 | 131 | 0.562033 | false |
jjmalina/pyinfluxql | tests/test_query.py | 1 | 16698 | # -*- coding: utf-8 -*-
"""
test_query
~~~~~~~~~~
Tests the query generator
"""
import six
import pytest
from datetime import datetime, timedelta
import dateutil
from pyinfluxql.functions import Sum, Min, Max, Count, Distinct, Percentile
from pyinfluxql.query import Query, ContinuousQuery
@pytest.mark.u... | mit | 6,504,522,673,743,951,000 | 31.486381 | 145 | 0.604324 | false |
EricssonResearch/calvin-base | calvin/runtime/north/authorization/policy_retrieval_point.py | 1 | 4113 | # -*- coding: utf-8 -*-
# Copyright (c) 2016 Ericsson AB
#
# 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 | -4,371,406,419,679,389,000 | 36.054054 | 110 | 0.627279 | false |
shawncaojob/LC | PY/679_24_game.py | 1 | 2347 | # 679. 24 Game
# DescriptionHintsSubmissionsDiscussSolution
# DiscussPick One
# You have 4 cards each containing a number from 1 to 9. You need to judge whether they could operated through *, /, +, -, (, ) to get the value of 24.
#
# Example 1:
# Input: [4, 1, 8, 7]
# Output: True
# Explanation: (8-4) * (7-1) = 24
# E... | gpl-3.0 | 7,296,170,151,600,796,000 | 41.672727 | 185 | 0.572646 | false |
zoranzhao/NoSSim | NoS_Vgraph/core_util_plot.py | 1 | 5568 | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
from mpl_toolkits.axes_grid.parasite_axes import SubplotHost
from mpl_toolkits.axes_grid1 import host_subplot
import mpl_toolkits.axisartist as AA
def plot(srv_app, srv_lwip, cli_app, cli_lwip):
#srv_app = {0:[],1:[],2:[]}
#srv_... | bsd-3-clause | -7,547,278,008,441,325,000 | 30.106145 | 126 | 0.604885 | false |
ROB-Seismology/oq-hazardlib | openquake/hazardlib/tests/gsim/lin_2009_test.py | 1 | 1805 | # The Hazard Library
# Copyright (C) 2013 GEM Foundation
#
# This program 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.
#
# Th... | agpl-3.0 | -2,888,368,218,168,569,300 | 37.404255 | 76 | 0.718006 | false |
PetroDE/control | control/service/buildable.py | 1 | 5256 | """
Specialize Service for services that can't be containers. Images only club
"""
import logging
from os.path import abspath, dirname, isfile, join
from control.cli_builder import builder
from control.repository import Repository
from control.options import options
from control.service.service import ImageService
... | mit | -7,254,068,709,873,107,000 | 38.223881 | 80 | 0.53672 | false |
OpenGov/og-python-utils | tests/checks_test.py | 1 | 1777 | # This import fixes sys.path issues
from .parentpath import *
import unittest
from .fake_iterable import FakeIterable
from ogutils import checks
class ChecksTest(unittest.TestCase):
def test_booleanize_false(self):
self.assertEquals(checks.booleanize(False), False)
self.assertEquals(chec... | mit | 5,541,737,921,280,505,000 | 44.763158 | 69 | 0.669668 | false |
blockstack/blockstack-server | integration_tests/blockstack_integration_tests/scenarios/name_preorder.py | 1 | 2869 | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Blockstack
~~~~~
copyright: (c) 2014-2015 by Halfmoon Labs, Inc.
copyright: (c) 2016 by Blockstack.org
This file is part of Blockstack
Blockstack is free software: you can redistribute it and/or modify
it under the terms of the GNU General... | gpl-3.0 | -3,451,106,283,767,778,000 | 35.782051 | 144 | 0.700941 | false |
ValdisVitolins/espeak-ng | src/ucd-tools/tools/categories.py | 8 | 8186 | #!/usr/bin/python
# Copyright (C) 2012-2018 Reece H. Dunn
#
# This file is part of ucd-tools.
#
# ucd-tools 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 optio... | gpl-3.0 | -2,705,840,602,450,405,000 | 33.108333 | 143 | 0.691669 | false |
twisted/mantissa | xmantissa/test/historic/test_port1to2.py | 1 | 1157 | """
Upgrader tests for L{xmantissa.port} items.
"""
from xmantissa.port import TCPPort, SSLPort
from xmantissa.web import SiteConfiguration
from axiom.test.historic.stubloader import StubbedTest
from xmantissa.test.historic.stub_port1to2 import TCP_PORT, SSL_PORT
class PortInterfaceUpgradeTest(StubbedTest):
"""... | mit | 4,553,412,484,645,735,000 | 31.138889 | 68 | 0.677615 | false |
rgllm/uminho | 04/CN/TP3/src/src/parser/PsoTools.py | 1 | 4783 | import itertools
import json
import matplotlib.pyplot as plt
from matplotlib import style
import os
style.use('ggplot')
import numpy as np
from pprint import pprint
from os.path import basename
xrange=range
class PsoTools(object):
def __init__(self):
pass
# Convert a data raw file to a json file
def rawToJso... | mit | 7,930,167,950,086,020,000 | 25.870787 | 83 | 0.612795 | false |
dtroyer/python-openstacksdk | openstack/tests/unit/identity/v3/test_credential.py | 1 | 1958 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | apache-2.0 | 1,760,831,423,039,303,400 | 33.350877 | 75 | 0.643003 | false |
OpenTechFund/WebApp | opentech/public/funds/migrations/0004_fundpagerelatedpage.py | 1 | 1183 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-12 15:39
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.fields
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0040_page_draft_t... | gpl-2.0 | 5,493,090,841,830,758,000 | 37.16129 | 168 | 0.607777 | false |
vvvityaaa/tornado-challenger | challenge_manager.py | 1 | 4420 | import os.path
import tornado.ioloop
import tornado.web
import tornado.options
import tornado.httpserver
import mongoengine
from models import Challenge, ChallengePoint
from tornado.options import define, options
define("port", default=8000, help="run on the given port", type=int)
class Application(tornado.web.App... | gpl-2.0 | -2,984,514,721,142,183,400 | 33.80315 | 128 | 0.610181 | false |
reebalazs/gf.rejuice | setup.py | 1 | 1731 |
__version__ = '0.3'
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'docs/README.txt')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
setup(
name = 'gf.rejuice',
version = __version__,
description... | gpl-2.0 | -4,068,187,978,773,046,300 | 29.910714 | 90 | 0.574235 | false |
munin/munin | munin/mod/launch.py | 1 | 2955 | """
Loadable.Loadable subclass
"""
# This file is part of Munin.
# Munin 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.
# Munin is... | gpl-2.0 | 4,536,700,690,433,954,300 | 31.833333 | 133 | 0.59357 | false |
gutorc92/curitools | setup.py | 1 | 1514 | from setuptools import setup, find_packages
from os import path, listdir
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst')) as f:
long_description = f.read()
setup(
name='CUriTools',
version='0.7.0',
packages=find_packages(exclude=["curitools.tests"]),
url='https... | mit | 4,636,919,008,187,735,000 | 29.897959 | 77 | 0.606341 | false |
shanot/imp | modules/em/test/test_rasterization.py | 2 | 2031 | import IMP
import IMP.test
import IMP.algebra
import IMP.em
from io import BytesIO
class Tests(IMP.test.TestCase):
def test_rasterization(self):
"""Test creation DensityMap from grid"""
t = IMP.algebra.Vector3D(1., 2., 3.)
r = IMP.algebra.get_identity_rotation_3d()
tran = IMP.algeb... | gpl-3.0 | 7,407,767,106,597,813,000 | 42.212766 | 79 | 0.602166 | false |
todor943/mapEngine | MapApi/views.py | 1 | 3383 | import json
import pprint
import time
import datetime
import django.core.serializers
from django.contrib.auth import *
from django.contrib.auth.decorators import *
from django.contrib.gis.geos import GEOSGeometry
from django.contrib.gis.serializers import geojson
from django.core import *
from django.http import *
from... | apache-2.0 | -7,913,719,095,525,884,000 | 30.616822 | 101 | 0.754064 | false |
CoRfr/testman4trac | testman4trac/0.11/testmanager/model.py | 1 | 34790 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2010-2011 Roberto Longobardi
#
# This file is part of the Test Manager plugin for Trac.
#
# The Test Manager plugin for Trac 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 Fo... | gpl-3.0 | 4,519,438,844,586,283,500 | 37.484513 | 208 | 0.538431 | false |
LamCiuLoeng/bbb | rpac/model/interface.py | 1 | 2192 | # -*- coding: utf-8 -*-
import json
from datetime import datetime as dt
from sqlalchemy import Column
from sqlalchemy.types import Integer, DateTime, Text
from sqlalchemy.sql.expression import and_, desc
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy.orm import synonym
from tg import request
from... | mit | -8,494,137,192,439,039,000 | 29.027397 | 126 | 0.626825 | false |
0111001101111010/cs595-f13 | assignment2/q3/carbondate-master/getFirstAppearanceInArchives.py | 1 | 7051 | import re
import time
import urllib2
import os
import sys
import datetime
import urllib
import simplejson
import calendar
import commands
import math
from datetime import datetime
def getMementos(uri):
uri = uri.replace(' ', '')
orginalExpression = re.compile( r"<http://[A-Za-z0-9.:=/%-_ ]*>; rel=\"original\"... | mit | -4,108,445,885,518,813,000 | 32.259434 | 296 | 0.494823 | false |
domoran/dxlparser | dxlparser/test/Preprocessor_Test.py | 1 | 1393 | # -*- coding: utf-8 -*-
from dxlparser import DXLPreprocessor
def preprocess(data, expected):
result = DXLPreprocessor().preprocess(data)
if not result == expected:
print ("Expected: |" + expected + "|\nObserved: |" + result + "|\n")
assert result == expected
testdata = [
... | gpl-3.0 | -1,977,564,771,191,190,500 | 31.214286 | 120 | 0.601579 | false |
hhorak/rebase-helper | setup.py | 1 | 3477 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This tool helps you to rebase package to the latest version
# Copyright (C) 2013-2014 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# he Free Software Foundat... | gpl-2.0 | 490,362,676,183,140,000 | 32.432692 | 96 | 0.614323 | false |
ncc-unesp/goo-server | docs/home/conf.py | 1 | 5772 | # -*- coding: utf-8 -*-
#
# goo-server api documentation build configuration file, created by
# sphinx-quickstart on Wed Dec 19 10:15:12 2012.
#
# 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.
... | gpl-3.0 | -7,032,880,810,451,925,000 | 32.754386 | 82 | 0.721414 | false |
FMNSSun/PyPLUSPacket | pluspacket/packet.py | 1 | 8518 | import struct
_fmt_u64 = ">Q"
_fmt_u32 = ">L"
_magic_shift = 4
_flags_mask = 0x0F
_default_magic = 0xd8007ff
_min_packet_len = 20
_l_mask = 0x08
_r_mask = 0x04
_s_mask = 0x02
_x_mask = 0x01
_cat_pos = (4, 12)
_psn_pos = (12, 16)
_pse_pos = (16, 20)
_magic_pos = (0, 4)
_udp_header_len = 8
_pcf_type_plus_payload = 0xFF... | bsd-2-clause | 4,748,410,429,267,642,000 | 17.679825 | 93 | 0.627495 | false |
Intel-Corporation/tensorflow | tensorflow/examples/saved_model/integration_tests/saved_model_test.py | 1 | 3365 | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 7,018,668,818,503,632,000 | 36.808989 | 80 | 0.69153 | false |
markrwilliams/pydivsufsort | setup.py | 1 | 1025 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import subprocess
from os.path import exists
from setuptools import setup
from setuptools.extension import Extension
from setuptools.command.build_py import build_py as _build_py
from Cython.Distutils import build_ext
class build_py(_build_py):
if exists('lib/Makefi... | mit | 5,025,191,733,688,460,000 | 29.147059 | 72 | 0.590244 | false |
googleapis/python-websecurityscanner | google/cloud/websecurityscanner_v1/types/scan_config.py | 1 | 9809 | # -*- coding: utf-8 -*-
# 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... | apache-2.0 | -5,182,692,759,453,523,000 | 40.740426 | 155 | 0.619941 | false |
akintolga/superdesk-core | apps/publish/content/tests.py | 1 | 45700 | # -*- coding: utf-8; -*-
#
# This file is part of Superdesk.
#
# Copyright 2013, 2014 Sourcefabric z.u. and contributors.
#
# For the full copyright and license information, please see the
# AUTHORS and LICENSE files distributed with this source code, or
# at https://www.sourcefabric.org/superdesk/license
from bson.ob... | agpl-3.0 | -3,178,256,074,282,106,000 | 52.38785 | 120 | 0.445055 | false |
3dfxsoftware/cbss-addons | mrp_variation/__openerp__.py | 1 | 1832 | # -*- encoding: utf-8 -*-
###########################################################################
# Module Writen to OpenERP, Open Source Management Solution
#
# Copyright (c) 2012 Vauxoo - http://www.vauxoo.com
# All Rights Reserved.
# info@vauxoo.com
###################################################... | gpl-2.0 | -3,574,338,321,294,866,000 | 37.978723 | 78 | 0.543122 | false |
allison-group/indigo-bondorder | archive/src/indigox/astar.py | 1 | 9383 | from heapq import heappop, heappush
from itertools import count as _count
from itertools import product
from time import perf_counter
from indigox.config import (INFINITY, BASIS_LEVEL, TIMEOUT, HEURISTIC,
COUNTERPOISE_CORRECTED, ELECTRON_PAIRS,
INITIAL_LO_ENERGY)
f... | mit | 7,778,853,065,744,993,000 | 34.950192 | 87 | 0.470638 | false |
ProfessorX/Config | .PyCharm30/system/python_stubs/-1247972723/PyKDE4/kio/KUriFilter.py | 1 | 1212 | # encoding: utf-8
# module PyKDE4.kio
# from /usr/lib/python2.7/dist-packages/PyKDE4/kio.so
# by generator 1.135
# no doc
# imports
import PyKDE4.kdeui as __PyKDE4_kdeui
import PyQt4.QtCore as __PyQt4_QtCore
import PyQt4.QtGui as __PyQt4_QtGui
class KUriFilter(): # skipped bases: <type 'sip.wrapper'>
# no doc
... | gpl-2.0 | 3,505,578,454,334,459,000 | 25.933333 | 101 | 0.648515 | false |
albertoibm/Thesis | Archivo2.py | 1 | 3593 | import libardrone
import numpy
from time import time,sleep
from sys import stdout,exit,argv
from math import sqrt,pi
from PID import PID
import diffOrdN
GRADOS=pi/180
class Integral:
""" Calcula la integral de una funcion dada como parametro"""
def __init__(self,f):
self.f=f
self.integral=0.
self.val=0.
def... | gpl-2.0 | 8,193,664,117,015,958,000 | 23.442177 | 98 | 0.651266 | false |
drusk/fishcounter | fishcounter/tracking/camshift.py | 1 | 3739 | # Copyright (C) 2013 David Rusk
#
# 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, distribu... | mit | -920,504,979,399,676,300 | 39.641304 | 91 | 0.598556 | false |
1200wd/1200wd_addons | project_report/__openerp__.py | 1 | 1674 | # -*- coding: utf-8 -*-
##############################################################################
#
# Project Reports
# Copyright (C) 2016 January
# 1200 Web Development
# http://1200wd.com/
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU A... | agpl-3.0 | -670,740,339,571,089,000 | 32.48 | 78 | 0.572282 | false |
bbangert/retools | retools/tests/test_limiter.py | 1 | 5913 | # coding: utf-8
import unittest
import time
import redis
from nose.tools import eq_
from mock import Mock
from mock import patch
from retools.limiter import Limiter
from retools import global_connection
class TestLimiterWithMockRedis(unittest.TestCase):
def test_can_create_limiter_without_prefix_and_without_co... | mit | -4,524,395,552,771,372,500 | 30.962162 | 113 | 0.637409 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.