repo_name stringlengths 5 92 | path stringlengths 4 221 | copies stringclasses 19
values | size stringlengths 4 6 | content stringlengths 766 896k | license stringclasses 15
values | hash int64 -9,223,277,421,539,062,000 9,223,102,107B | line_mean float64 6.51 99.9 | line_max int64 32 997 | alpha_frac float64 0.25 0.96 | autogenerated bool 1
class | ratio float64 1.5 13.6 | config_test bool 2
classes | has_no_keywords bool 2
classes | few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
runt18/nupic | external/linux32/lib/python2.6/site-packages/matplotlib/text.py | 1 | 55450 | """
Classes for including text in a figure.
"""
from __future__ import division
import math
import numpy as np
from matplotlib import cbook
from matplotlib import rcParams
import artist
from artist import Artist
from cbook import is_string_like, maxdict
from font_manager import FontProperties
from patches import bbox... | agpl-3.0 | -2,341,165,572,429,736,400 | 33.207279 | 209 | 0.548079 | false | 4.069426 | false | false | false |
kolypto/py-mailem | setup.py | 1 | 1208 | #!/usr/bin/env python
""" Slim, flexible, yet full-featured e-mailing library """
from setuptools import setup, find_packages
setup(
# http://pythonhosted.org/setuptools/setuptools.html
name='mailem',
version='0.0.5',
author='Mark Vartanyan',
author_email='kolypto@gmail.com',
url='https://git... | bsd-2-clause | -4,548,813,202,391,579,000 | 27.093023 | 71 | 0.620033 | false | 3.922078 | false | true | false |
maaruiz/Nominas2015ES | Funciones/Datos/calendario_dat.py | 1 | 9946 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import calendar
import datetime
from Funciones.funs import ultimodiames, select_sql
from Funciones.Datos.contrato_dat import Contrato
from wstools.Utility import DOM
class Calendario:
"""
Realiza los calculos necesarios de los dias de trabajo entre dos fechas.
... | gpl-3.0 | -3,972,020,743,834,412,000 | 46.574163 | 108 | 0.476363 | false | 3.465319 | false | false | false |
qdqmedia/wiggum | wiggum/users/migrations/0011_auto_20151023_1228.py | 1 | 1421 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import uuid
import django.utils.timezone
def gen_uuid(apps, schema_editor):
UserModel = apps.get_model('users', 'User')
for row in UserModel.objects.all():
row.sfa_token = uuid.uuid4()
row.... | bsd-3-clause | 5,595,121,689,004,847,000 | 29.891304 | 122 | 0.613652 | false | 4.036932 | false | false | false |
fschimpf/graf2il | GUI/sekvens.py | 1 | 1815 | import sys
sys.path.append('../')
from PyQt4 import QtGui, QtCore
from sekvens_gui import Ui_MainWindow
import graf2il
class MeinProgramm(QtGui.QMainWindow, Ui_MainWindow):
def __init__(self):
QtGui.QWidget.__init__(self)
self.setupUi(self)
XMLFileToCompileName = 'test'
... | gpl-3.0 | -6,599,197,859,360,954,000 | 34.588235 | 168 | 0.660606 | false | 3.418079 | false | false | false |
scwuaptx/CTF | 2017-writeup/secuinside/bugsystem.py | 1 | 1764 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pwn import *
#host = "10.211.55.6"
#port = 8888
host = "13.112.128.199"
port = 1337
for i in range(10):
r = remote(host,port)
def add(name,size,content):
r.recvuntil(":")
r.sendline("1")
r.recvuntil(":")
r.sendline(name)
... | gpl-2.0 | -8,374,999,728,743,337,000 | 19.511628 | 39 | 0.494331 | false | 2.94 | false | false | false |
yelu/leetcode | DP/UniquePathsII.py | 1 | 1063 | class Solution:
# @param obstacleGrid, a list of lists of integers
# @return an integer
# [[0 for j in range(len(obstacleGrid[i]))]
# for i in range(len(obstacleGrid))]
# F[i][j] = F[i-1][j] + F[i][j-1], F[i][j] if i <0 or j < 0 or
def uniquePathsWithObstacles(self, obstacleGrid):
r... | gpl-2.0 | 2,702,322,879,902,214,700 | 36.964286 | 86 | 0.528692 | false | 2.761039 | false | false | false |
DarthMaulware/EquationGroupLeaks | Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Tasking/Mcl_Cmd_PasswordDump_Tasking.py | 1 | 2486 | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10)
# [GCC 6.2.0 20161005]
# Embedded file name: Mcl_Cmd_PasswordDump_Tasking.py
CMD_PW_TYPE_ALL = 0
CMD_PW_TYPE_PERMANENT = 1
CMD_PW_TYPE_CACHED = 2
CMD_PW_TYPE_DIGEST = 3
def TaskingMain(namespac... | unlicense | -3,902,764,518,018,893,000 | 45.924528 | 139 | 0.723652 | false | 2.959524 | false | false | false |
orlenko/sfpirg | sfpirgapp/views/actiongroups.py | 1 | 5045 | from django.conf import settings
from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator
from django.http.response import HttpResponseRedirect
from django.shortcuts import render_to_response, get_object_or_404
from django.template.context import RequestContext
from mezzanine.utils.email import send_mai... | bsd-2-clause | -6,149,214,096,364,828,000 | 42.869565 | 99 | 0.649554 | false | 4.17287 | false | false | false |
cshallue/models | research/differential_privacy/pate/smooth_sensitivity.py | 1 | 13739 | # Copyright 2017 The 'Scalable Private Learning with PATE' 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
#
# ... | apache-2.0 | -4,641,048,824,878,597,000 | 31.789976 | 87 | 0.635126 | false | 3.116126 | false | false | false |
kevin-intel/scikit-learn | sklearn/feature_selection/_mutual_info.py | 3 | 16639 | # Author: Nikolay Mayorov <n59_ru@hotmail.com>
# License: 3-clause BSD
import numpy as np
from scipy.sparse import issparse
from scipy.special import digamma
from ..metrics.cluster import mutual_info_score
from ..neighbors import NearestNeighbors, KDTree
from ..preprocessing import scale
from ..utils import check_ran... | bsd-3-clause | -3,846,150,620,233,349,600 | 36.307175 | 79 | 0.640603 | false | 3.913217 | false | false | false |
Ingener74/Old-Star | video.py | 1 | 1386 | # encoding: utf8
from PySide.QtCore import Qt, QThread
from PySide.QtGui import QWidget, QApplication
import sys
from librtmp import RTMP, RTMPError
from res import (Ui_VideoWidget)
class StreamThread(QThread):
def __init__(self):
QThread.__init__(self)
def run(self):
try:
rtmp =... | lgpl-3.0 | 8,452,937,607,431,824,000 | 20.323077 | 64 | 0.560606 | false | 3.79726 | false | false | false |
buret/pylmflib | pylmflib/morphology/component.py | 1 | 1531 | #! /usr/bin/env python
"""! @package morphology
"""
class Component():
def __init__(self, position=None, lexeme=None):
"""! @brief Constructor.
Component instances are owned by ListOfComponents.
@param position The position of the component in the multiword expression.
@param targe... | gpl-2.0 | -6,142,575,380,407,489,000 | 33.022222 | 147 | 0.625735 | false | 4.349432 | false | false | false |
cbertinato/pandas | pandas/tests/indexes/timedeltas/test_indexing.py | 1 | 13473 | from datetime import datetime, timedelta
import numpy as np
import pytest
import pandas as pd
from pandas import Index, Timedelta, TimedeltaIndex, timedelta_range
import pandas.util.testing as tm
class TestGetItem:
def test_ellipsis(self):
# GH#21282
idx = timedelta_range('1 day', '31 day', freq... | bsd-3-clause | 4,502,410,124,735,251,000 | 38.860947 | 79 | 0.5036 | false | 3.850529 | true | false | false |
Grumpy-Mike/Mikes-Pi-Bakery | Tap-A-LED_part2/software/Sequencer/sequencer1.py | 1 | 3282 | #!/usr/bin/env python3
# Sequencer1 by Mike Cook August 2020
#Plays samples from a file
import time
from pygame import mixer
import board
import neopixel
from caltap import CalTap
def main():
global markTime, stepTime
init()
print("Sequencer - playing samples through the audio output")
print("Tap to a... | gpl-2.0 | -6,181,341,447,900,539,000 | 29.110092 | 71 | 0.532297 | false | 3.345566 | false | false | false |
Altair3/Tanks | bzagents/uberagent/ObstacleList.py | 1 | 3631 | from OccGrid import OccGrid
from geo import Point,Line
class ObstacleList(object):
def __init__(self, occgrid):
self.occgrid = occgrid
self.yMax = occgrid.yMax
self.yMin = self.yMax * -1
self.xMax = occgrid.xMax
self.xMin = self.xMax * -1
... | gpl-3.0 | 5,781,750,627,482,786,000 | 29.258333 | 92 | 0.41366 | false | 4.212297 | false | false | false |
caiorss/vboxcontrol | commandClient.py | 1 | 4394 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
"""
from subprocess import PIPE, Popen
import platform
import os
import sys
import re
import zlib
from socket import socket
from socket import AF_INET, SOCK_STREAM, SHUT_RDWR
from socket import SOL_SOCKET, SO_REUSEADDR
localhost = '127.0.0.1'
allhosts = '0.0.0.0'
i... | unlicense | 8,847,994,244,525,383,000 | 23.016393 | 110 | 0.506827 | false | 3.923214 | false | false | false |
civisanalytics/civis-python | civis/service_client.py | 1 | 8958 | from collections import OrderedDict
from functools import lru_cache
import json
from jsonref import JsonRef
import re
import requests
import warnings
from civis import APIClient
from civis.base import CivisAPIError, Endpoint, tostr_urljoin
from civis.resources._resources import parse_method
from civis._utils import to... | bsd-3-clause | 3,145,371,179,698,265,000 | 39.170404 | 79 | 0.605492 | false | 4.335915 | false | false | false |
spinolacastro/openshift-ansible | utils/src/ooinstall/cli_installer.py | 1 | 31532 | # TODO: Temporarily disabled due to importing old code into openshift-ansible
# repo. We will work on these over time.
# pylint: disable=bad-continuation,missing-docstring,no-self-use,invalid-name,no-value-for-parameter
import click
import os
import re
import sys
from ooinstall import openshift_ansible
from ooinstall ... | apache-2.0 | -6,367,065,744,073,844,000 | 37.594859 | 120 | 0.636845 | false | 3.992403 | true | false | false |
lemiere/python-lecture | tp_stat/exemples/boucle_for.py | 1 | 1274 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Lemiere Yves
# Juillet 2017
def main():
debug = True
if debug:
print("*************************")
print("* Welcome in boucle_for *")
print("*************************\n")
# Ceci est une liste de chaines de caractères:
my... | gpl-3.0 | 3,050,231,175,831,166,500 | 26.586957 | 93 | 0.547675 | false | 3.476712 | false | false | false |
wcmitchell/insights-core | insights/parsers/yum_conf.py | 1 | 2326 | """
YumConf - file ``/etc/yum.conf``
================================
This module provides parsing for the ``/etc/yum.conf`` file.
The ``YumConf`` class parses the information in the file
``/etc/yum.conf``. See the ``IniConfigFile`` class for more
information on attributes and methods.
Sample input data looks like::
... | apache-2.0 | -8,295,788,500,542,155,000 | 28.075 | 70 | 0.596733 | false | 3.497744 | false | false | false |
pressbooks/trellis | lib/trellis/plugins/callback/vars.py | 1 | 4548 | from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import re
import sys
from __main__ import cli
from ansible.module_utils.six import iteritems
from ansible.errors import AnsibleError
from ansible.parsing.yaml.objects import AnsibleMapping, AnsibleSequence, AnsibleUnicode
from ans... | mit | 7,478,106,766,313,598,000 | 38.894737 | 141 | 0.616755 | false | 4.014122 | false | false | false |
HarrieO/PairwisePreferenceMultileave | utils/argparsers/multileaveargparser.py | 1 | 1774 | # -*- coding: utf-8 -*-
import sys
import os
import argparse
sys.path.append(os.path.join(os.path.dirname(__file__), '../..'))
from utils.argparsers.simulationargparser import SimulationArgumentParser
class MultileaveArgumentParser(SimulationArgumentParser):
def __init__(self, description=None, set_arguments={}... | mit | 1,622,209,415,317,331,000 | 44.487179 | 98 | 0.590192 | false | 3.977578 | false | false | false |
alexhunsley/nsconf-video-file-renamer | nsConfVidsRenamer.py | 1 | 1816 | # NSConf videos renamer
# Alex Hunsley 2013
#
# This quick hack fixes the WTF that is the file naming of the NSConf videos.
# Note that the files are renamed by making copies, rather than
# renamed in place, to avoid annoying irreversible screwups.
#
import csv
import os.path
import sys
import string
import shutil
# ... | mit | -1,552,988,196,664,735,200 | 27.375 | 95 | 0.73348 | false | 3.277978 | false | false | false |
WorldViews/Spirals | scripts/filterLayer.py | 1 | 1154 |
import json
#from LandOrSea import overLand
from LandOrSeaBaseline import overLand
def filterByLand(path, opath):
obj = json.load(file(path))
recs = obj['records']
landRecs = []
n = 0
nLand = 0
for rec in recs:
n += 1
lat = rec['lat']
lon = rec['lon']
if overLan... | mit | 942,163,728,044,186,400 | 31.971429 | 88 | 0.641248 | false | 2.780723 | false | false | false |
joshzarrabi/e-mission-server | emission/analysis/modelling/tour_model/representatives.py | 1 | 8413 | # standard imports
import numpy
import math
import copy
# our imports
from emission.core.wrapper.trip_old import Trip, Coordinate
import emission.storage.decorations.trip_queries as esdtq
import emission.storage.decorations.place_queries as esdpq
"""
This class creates a group of representatives for each... | bsd-3-clause | -1,976,690,382,363,518,000 | 37.313084 | 128 | 0.523476 | false | 3.822353 | false | false | false |
shhui/nova | nova/db/sqlalchemy/api.py | 1 | 220845 | # Copyright (c) 2011 X.commerce, a business unit of eBay Inc.
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file... | apache-2.0 | -2,111,573,966,483,229,000 | 35.335143 | 79 | 0.574421 | false | 4.287253 | false | false | false |
unioslo/cerebrum | Cerebrum/modules/no/uio/OrgLDIF.py | 1 | 15602 | # -*- coding: utf-8 -*-
# Copyright 2004-2014 University of Oslo, Norway
#
# This file is part of Cerebrum.
#
# Cerebrum 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
# (a... | gpl-2.0 | -9,183,215,164,680,836,000 | 43.69914 | 83 | 0.604744 | false | 3.762663 | false | false | false |
cbertinato/pandas | pandas/core/missing.py | 1 | 23588 | """
Routines for filling missing data.
"""
import operator
import numpy as np
from pandas._libs import algos, lib
from pandas.compat._optional import import_optional_dependency
from pandas.core.dtypes.cast import infer_dtype_from_array
from pandas.core.dtypes.common import (
ensure_float64, is_datetime64_dtype, ... | bsd-3-clause | -1,535,343,801,592,295,700 | 31.445667 | 79 | 0.588265 | false | 3.814977 | false | false | false |
GMadorell/djagolb | src/blog/views.py | 1 | 4684 | from collections import OrderedDict, Iterable
import pdb
from django.contrib.sites.models import Site
from django.http import Http404
from django.views import generic
from django.views.generic.base import ContextMixin
from .models import BlogPostModel, Author, Tag
class AuthorContextMixin(ContextMixin):
author_m... | mit | 9,116,562,323,284,935,000 | 29.415584 | 79 | 0.583262 | false | 3.982993 | false | false | false |
WoLpH/EventGhost | eg/WinApi/Dynamic/Mmsystem.py | 1 | 11993 | # -*- coding: utf-8 -*-
#
# This file is part of EventGhost.
# Copyright © 2005-2016 EventGhost Project <http://www.eventghost.net/>
#
# EventGhost is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation, either versio... | gpl-2.0 | -8,111,707,828,437,590,000 | 38.973333 | 85 | 0.737241 | false | 2.882 | false | false | false |
decarboxy/py_protein_utils | rosettautil/bcl/file_formats.py | 1 | 1538 | from rosettautil.util import fileutil
import sys
class list_of_2D_vectors:
def __init__(self):
self.records = []
def add_record(self, first_col,second_col):
self.records.append((first_col,second_col))
def write_bcl_file(self,path):
out_file = fileutil.universal_open(path,'w')
... | mit | 748,329,537,673,460,700 | 37.475 | 93 | 0.576723 | false | 3.402655 | false | false | false |
hkff/AccLab | pyAAL/FOTLOperators.py | 1 | 1135 | """
FOTLOperators
Copyright (C) 2014 Walid Benghabrit
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 3 of the License, or
(at your option) any later version.
This program is distribu... | gpl-3.0 | -7,398,909,174,859,723,000 | 25.395349 | 69 | 0.671366 | false | 3.603175 | false | false | false |
pbrandebura/Task1 | fixture/contact.py | 1 | 4977 | from model.contact import Contact
class ContactHelper:
def __init__(self, app):
self.app = app
def back_to_homepage(self):
wd = self.app.wd
if not len(wd.find_elements_by_name("Send e-Mail")) > 0:
wd.find_element_by_link_text("home").click()
def proceed_to_newuser_page... | apache-2.0 | 7,543,241,541,158,560,000 | 40.831933 | 120 | 0.593731 | false | 3.446676 | false | false | false |
quantumlib/Cirq | cirq-google/cirq_google/calibration/xeb_wrapper_test.py | 1 | 4677 | # Copyright 2021 The Cirq Developers
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | apache-2.0 | -5,539,152,799,729,527,000 | 28.049689 | 98 | 0.633526 | false | 3.556654 | false | false | false |
hkff/AccLab | pyAAL/ui/api.py | 1 | 22847 | """
Server API
Copyright (C) 2014 Walid Benghabrit
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 3 of the License, or
(at your option) any later version.
This program is distributed... | gpl-3.0 | 3,545,888,401,039,262,700 | 31.777618 | 138 | 0.521404 | false | 3.387604 | false | false | false |
remiscarlet/RandomKCWikiScripts | kcwiki-web/kcwiki/Python Scripts/mw-scripts/mediawikinuker.py | 1 | 1857 | # -*- coding: UTF-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf8')
import requests
import re
import os
from lxml import etree
fileLoc = os.path.join("/","Users","YutoTakamoto","Dropbox","YutoProgramming","python","pagesToNuke.txt")
baseURL = "http://en.kancollewiki.net/api.php?"
searchSize = 50
searchParams ... | gpl-2.0 | -545,714,957,443,156,200 | 23.434211 | 105 | 0.690361 | false | 2.906103 | false | false | false |
t3dev/odoo | addons/website/models/res_partner.py | 1 | 2246 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import werkzeug
from odoo import api, models
def urlplus(url, params):
return werkzeug.Href(url)(params or None)
class Partner(models.Model):
_name = 'res.partner'
_inherit = ['res.partner', 'website.pub... | gpl-3.0 | -4,205,987,540,885,179,000 | 36.433333 | 149 | 0.600178 | false | 3.587859 | false | false | false |
Sirs0ri/PersonalAssistant_Interfaces | interface/__main__.py | 1 | 4508 | """Starts the main interface. To be called with 'python interface'
from the root folder. After importing it, the interface will be
started start"""
import logging
import logging.handlers
import Queue
import socket
import sys
from autobahn.twisted.websocket import WebSocketClientProtocol, \
... | mit | -3,016,389,696,744,748,000 | 30.305556 | 76 | 0.600266 | false | 4.028597 | false | false | false |
jithinbp/SEELablet-apps | seel_res/GUI/E_MISCELLANEOUS/A_Add-ons/DUST_SENSOR.py | 1 | 4615 | #!/usr/bin/python
from __future__ import print_function
from SEEL_Apps.utilitiesClass import utilitiesClass
from templates import ui_dsm501 as dsm501
import numpy as np
from PyQt4 import QtGui,QtCore
import sys,time
params = {
'image' : 'DSM501.png',
'helpfile': 'http://www.takingspace.org/make-your-own-aircasting-... | gpl-3.0 | -4,322,714,388,244,980,700 | 34.5 | 212 | 0.711376 | false | 2.75358 | false | false | false |
bjtrost/TCAG-WGS-CNV-workflow | functions.py | 1 | 5027 |
##########
#sort
def sort_list(x,y):
return cmp(x,y)
##########
#code to calculate reciprocal overlap
def reciprocal_overlap(s_1,e_1,s_2,e_2):
if s_2 > e_1 or s_1 > e_2:
return [0,0]
else:
#get the smaller start
if s_2 >=s_1:
o_start = s_2
else:
o_start = s_1
#get the smaller end
if e_2 ... | mit | -8,482,681,232,780,927,000 | 27.089385 | 179 | 0.509051 | false | 3.072738 | false | false | false |
kdart/pycopia | setup.py | 1 | 8604 | #!/usr/bin/python2.7
# -*- coding: utf-8 -*-
# vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab
# 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
... | apache-2.0 | -4,479,907,580,095,837,000 | 31.714829 | 118 | 0.630288 | false | 3.483401 | false | false | false |
sa2ajj/DistroTracker | pts/mail/migrations/0001_initial.py | 1 | 7292 | # -*- coding: 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 model 'CommandConfirmation'
db.create_table(u'mail_commandconfirmation', (
(u'id', self... | gpl-2.0 | 8,308,571,386,329,360,000 | 62.417391 | 187 | 0.566786 | false | 3.642358 | false | false | false |
jamescooke/water-pouring-python | water/game.py | 1 | 7431 | import copy
from functools import reduce
from .cup import Cup
or_reduction = lambda x, y: x or y
and_reduction = lambda x, y: x and y
class Game(object):
cups = None
parent = None # Game that created this one
children = None
def __init__(self, sizes=None, parent=None):
"""
S... | gpl-2.0 | -2,943,814,514,436,023,000 | 28.027344 | 79 | 0.491724 | false | 3.730422 | false | false | false |
openpassword/blimey | tests/integration/openpassword/agile_keychain/test_item_manager.py | 1 | 4311 | import os
import shutil
import time
import json
from nose.tools import raises
from blimey.agile_keychain._manager._item_manager import ItemManager
from blimey.agile_keychain.data_source import AgileKeychainItem
from blimey.exceptions import ItemNotFoundException
class ItemManagerTest:
_fixture_path = os.path.joi... | mit | -2,044,052,607,398,452,500 | 34.336066 | 96 | 0.644398 | false | 3.221973 | false | false | false |
LukeJFernandez/stitch-flex | app/util/validatefeeds.py | 1 | 1341 | """ Utility module for validating camera feeds. """
from __future__ import absolute_import, division, print_function
from .textformatter import TextFormatter
from .feed import CameraFeed
def view_valid_camera_feeds():
"""
Shows all valid feed views, one after another. The next feed shows when the current is ... | mit | 2,553,727,568,890,088,000 | 28.152174 | 98 | 0.634601 | false | 3.853448 | false | false | false |
arichar6/veusz | veusz/setting/setting.py | 1 | 57973 | # Copyright (C) 2005 Jeremy S. Sanders
# Email: Jeremy Sanders <jeremy@jeremysanders.net>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# ... | gpl-2.0 | 3,422,023,577,333,544,000 | 29.448004 | 81 | 0.560709 | false | 4.152496 | false | false | false |
johntellsall/shotglass | ex-treemap/tree.py | 1 | 1087 | import os
import sys
import matplotlib
matplotlib.use('svg')
import matplotlib.pyplot as plt
import pandas as pd
import squarify
DULL_DIRECTORIES = set(['.git'])
def count_lines(path):
return sum(1 for line in open(path))
# TODO make configurable
def walk_tree(topdir):
for root, dirs, files in os.walk(t... | mit | 9,175,307,799,650,051,000 | 21.183673 | 62 | 0.681693 | false | 3.07932 | false | false | false |
KungFuLucky7/stock_portfolios_server | venv/bin/rst2odt_prepstyles.py | 1 | 1738 | #!/Users/terrywong/stock_portfolios_server/venv/bin/python
# $Id: rst2odt_prepstyles.py 5839 2009-01-07 19:09:28Z dkuhlman $
# Author: Dave Kuhlman <dkuhlman@rexx.com>
# Copyright: This module has been placed in the public domain.
"""
Fix a word-processor-generated styles.odt for odtwriter use: Drop page size
specifi... | gpl-2.0 | 5,343,714,636,521,661,000 | 24.940299 | 75 | 0.632911 | false | 3.033159 | false | false | false |
thomaslima/PySpice | PySpice/Spice/Parser.py | 1 | 23694 | ####################################################################################################
#
# PySpice - A Spice Package for Python
# Copyright (C) 2014 Fabrice Salvaire
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published... | gpl-3.0 | -8,791,368,678,577,161,000 | 30.676471 | 107 | 0.447666 | false | 4.901531 | false | false | false |
chromium/chromium | third_party/blink/tools/blinkpy/common/system/platform_info_unittest.py | 7 | 11345 | # Copyright (C) 2011 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:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | bsd-3-clause | -1,177,675,067,622,290,200 | 40.863469 | 79 | 0.600264 | false | 3.991907 | true | false | false |
Tangxuguo/Django_SNS | osf/post/migrations/0001_initial.py | 1 | 4772 | # -*- 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 model 'Post'
db.create_table(u'post_post', (
('id', ... | gpl-3.0 | 580,585,524,880,129,500 | 58.6625 | 127 | 0.573764 | false | 3.553239 | false | false | false |
jjtoharia/Kaggle_Intel-MobileODT-Cervical-Cancer-Screening | jjtz_intel_funciones.py | 1 | 3570 | #!/usr/bin/env python3
#Quiero utf8: áéíóú
from PIL import ImageFilter, ImageStat, Image, ImageDraw
from multiprocessing import Pool, cpu_count
# conda install --channel https://conda.anaconda.org/menpo opencv3
from cv2 import imread as cv2_imread, resize as cv2_resize, INTER_AREA as cv2_INTER_AREA # http://tanb... | mit | 8,852,059,636,198,243,000 | 32.95098 | 164 | 0.596914 | false | 2.807087 | false | false | false |
natano/tiget | tiget/core/cmds/plugin.py | 1 | 1498 | import pkg_resources
from tiget.cmds import Cmd
from tiget.plugins import load_plugin, unload_plugin, reload_plugin, plugins
__all__ = ['Load', 'Reload', 'Unload']
class Load(Cmd):
description = 'load plugin'
def setup(self):
self.parser.add_argument('plugin_name', nargs='?')
def do(self, arg... | isc | 7,311,382,799,280,952,000 | 26.236364 | 78 | 0.577437 | false | 3.994667 | false | false | false |
kingmotley/SickRage | sickbeard/processTV.py | 1 | 29337 | # coding=utf-8
# Author: Nic Wolfe <nic@wolfeden.ca>
# URL: https://sickrage.github.io/
# Git: https://github.com/SickRage/SickRage.git
#
# This file is part of SickRage.
#
# SickRage is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Fre... | gpl-3.0 | 4,548,903,236,749,104,000 | 43.995399 | 177 | 0.646965 | false | 3.944736 | false | false | false |
Huyuwei/tvm | python/tvm/relay/op/nn/_nn.py | 1 | 26327 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 | -8,713,760,548,054,790,000 | 34.243641 | 97 | 0.685722 | false | 3.330424 | false | false | false |
adrn/tilt-shift | scripts/companion.py | 1 | 5554 | # coding: utf-8
from __future__ import division, print_function
__author__ = "adrn <adrn@astro.columbia.edu>"
# Standard library
import os
import sys
import urllib2
import warnings
# Third-party
import matplotlib.pyplot as plt
import numpy as np
from scipy.stats import truncnorm, scoreatpercentile
# Neutron star d... | mit | 9,173,242,311,238,589,000 | 34.14557 | 115 | 0.618585 | false | 2.751734 | false | false | false |
pombreda/pyamg | pyamg/gallery/demo.py | 1 | 2087 | """Basic PyAMG demo showing AMG standalone convergence versus preconditioned CG
with AMG"""
__docformat__ = "restructuredtext en"
__all__ = ['demo']
import scipy
import numpy
from pyamg.gallery import poisson
from pyamg.aggregation import smoothed_aggregation_solver
def demo():
A = poisson((100,100), format='csr... | bsd-3-clause | -2,089,875,078,849,389,000 | 39.134615 | 93 | 0.663153 | false | 3.746858 | false | false | false |
karimbahgat/PyCRS | pycrs/elements/projections.py | 1 | 8280 | """
Named projection classes that can be created or parsed.
"""
def find(projname, crstype, strict=False):
"""
Search for a projection name located in this module.
Arguments:
- **projname**: The projection name to search for.
- **crstype**: Which CRS naming convention to search (different
... | mit | -6,452,796,678,563,627,000 | 24.555556 | 157 | 0.577415 | false | 3.220537 | false | false | false |
superfluidity/RDCL3D | code/toscaparser/imports.py | 1 | 14032 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | apache-2.0 | 8,705,253,170,228,588,000 | 46.087248 | 79 | 0.498788 | false | 4.815374 | false | false | false |
openxc/openxc-python | openxc/controllers/base.py | 1 | 18242 | """Contains the abstract interface for sending commands back to a vehicle
interface.
"""
import numbers
import time
import threading
import binascii
try:
from queue import Queue
from queue import Empty
except ImportError:
# Python 3
from queue import Queue
from queue import Empty
class ResponseRec... | bsd-3-clause | -6,919,577,415,630,533,000 | 35.338645 | 102 | 0.592589 | false | 4.589182 | false | false | false |
apenchev/tangowithdjango | rango/migrations/0001_initial.py | 1 | 1093 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('id', models.AutoField(ver... | mit | 5,240,946,657,495,729,000 | 29.388889 | 114 | 0.508692 | false | 4.690987 | false | false | false |
glimix/limix-inference | glimix_core/cov/_eye.py | 1 | 2215 | from numpy import exp, eye, log
from optimix import Function, Scalar
from .._util import format_function
class EyeCov(Function):
"""
Identity covariance function, K = s·I.
The parameter s is the scale of the matrix.
Example
-------
.. doctest::
>>> from glimix_core.cov import Eye... | mit | -9,038,107,732,543,751,000 | 20.627451 | 88 | 0.485041 | false | 3.816609 | false | false | false |
Suwmlee/XX-Net | Python3/lib/distutils/command/upload.py | 1 | 7515 | """
distutils.command.upload
Implements the Distutils 'upload' subcommand (upload package to a package
index).
"""
import os
import io
import platform
import hashlib
from base64 import standard_b64encode
from urllib.request import urlopen, Request, HTTPError
from urllib.parse import urlparse
from distut... | bsd-2-clause | -7,851,997,256,913,855,000 | 35.38806 | 76 | 0.534398 | false | 4.407625 | true | false | false |
AppVentus/AvTime-client | packages/wakatime/wakatime/queue.py | 1 | 3769 | # -*- coding: utf-8 -*-
"""
wakatime.queue
~~~~~~~~~~~~~~
Queue for offline time logging.
http://wakatime.com
:copyright: (c) 2014 Alan Hamlett.
:license: BSD, see LICENSE for more details.
"""
import logging
import os
import traceback
from time import sleep
try:
import sqlite3
HAS_S... | bsd-3-clause | -8,956,881,329,862,973,000 | 29.893443 | 124 | 0.439639 | false | 4.535499 | false | false | false |
cpcloud/numba | numba/cuda/nvvmutils.py | 1 | 5407 | from __future__ import print_function, absolute_import, division
import itertools
import llvmlite.llvmpy.core as lc
from .cudadrv import nvvm
from numba import cgutils
def declare_atomic_cas_int32(lmod):
fname = '___numba_cas_hack'
fnty = lc.Type.function(lc.Type.int(32),
(lc.Type.pointer(lc.Type.i... | bsd-2-clause | 2,699,991,475,804,289,000 | 32.79375 | 80 | 0.634918 | false | 2.77852 | false | false | false |
crackhopper/TFS-toolbox | tfs/core/layer/fc.py | 1 | 1671 | import tensorflow as tf
import numpy as np
from tfs.core.layer import ops as ops
from tfs.core.layer.base import Layer
import tfs.core.initializer.init_func as init
from tfs.core.util import get_arg_dict
class FullyConnect(Layer):
def __init__(self,
net,
outdim,
activati... | mit | 4,118,972,735,694,420,000 | 33.102041 | 100 | 0.630162 | false | 3.322068 | false | false | false |
raphaelrpl/portal | backend/test/recommendation_tests/recommendation_rest_tests.py | 1 | 3088 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from datetime import datetime, date
from decimal import Decimal
from base import GAETestCase
from recommendation_app.model import Recommendation
from routes.recommendations import rest
from gaegraph.model import Node
from mock import Mock
... | mit | -3,372,677,403,984,990,000 | 38.589744 | 96 | 0.686528 | false | 3.845579 | true | false | false |
hhauer/myinfo | oam_base/urls.py | 1 | 1496 | from django.conf.urls import include, url
from django.core.urlresolvers import reverse_lazy
from django.views.generic import RedirectView
from MyInfo import views as my_info_views
from django_cas import views as cas_views
from oam_base import views as base_views
from Duo import views as duo_views
# Uncomment the next... | mit | -2,922,288,893,709,480,000 | 39.459459 | 120 | 0.706551 | false | 3.43908 | false | false | false |
Flamacue/pretix | src/pretix/control/utils/i18n.py | 2 | 2085 | # Inspired by https://github.com/asaglimbeni/django-datetime-widget/blob/master/datetimewidget/widgets.py
# Copyright (c) 2013, Alfredo Saglimbeni (BSD license)
import re
from django.utils import translation
from django.utils.formats import get_format
from pretix import settings
date_conversion_to_moment = {
'%a... | apache-2.0 | -4,935,072,335,436,854,000 | 31.076923 | 120 | 0.478177 | false | 2.53034 | false | false | false |
ctogle/make_places | mp/make_places/roads.py | 1 | 33156 | import make_places.fundamental as fu
import mp_utils as mpu
import mp_bboxes as mpbb
import make_places.primitives as pr
#from make_places.fundamental import element
from make_places.scenegraph import node
from make_places.floors import floor
from make_places.primitives import arbitrary_primitive
from make_places.primi... | gpl-2.0 | -6,110,025,529,739,502,000 | 36.849315 | 77 | 0.533991 | false | 3.385684 | false | false | false |
loopCM/chromium | tools/perf/perf_tools/image_decoding_measurement.py | 1 | 1268 | # Copyright (c) 2012 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.
from telemetry.page import page_measurement
class ImageDecoding(page_measurement.PageMeasurement):
def WillNavigateToPage(self, page, tab):
tab.S... | bsd-3-clause | 44,070,709,298,462,310 | 36.294118 | 80 | 0.708991 | false | 3.865854 | false | false | false |
kimgerdes/arborator | lib/parser.py | 1 | 3443 | # -*- coding: utf-8 -*-
#!/usr/bin/python
import argparse, datetime, glob, os
from mate import parsing, createNonExistingFolders
from retokenisation import retokeniser
from conll import makeEmpty
memory="40G"
def parseFile(infile, lemodel, tagmodel, parsemodel, folderpref="mate/parses/"):
timestamp=datetime.datetime... | agpl-3.0 | -919,325,971,577,784,000 | 56.4 | 211 | 0.743247 | false | 2.854892 | false | false | false |
python-provy/provy | tests/unit/more/centos/database/test_mysql.py | 1 | 11786 | from mock import call, patch
from nose.tools import istest
from .fixtures import (
FOO_DB_WITH_JOHN_GRANTS,
FOO_DB_WITHOUT_JOHN_GRANTS,
FOO_DB_WITH_JOHN_GRANTS_AND_GRANT_OPTION,
HOSTS_FOR_USER,
DATABASES,
)
from provy.more.centos import YumRole, MySQLRole
from tests.unit.tools.helpers import ProvyT... | mit | -8,831,662,025,980,692,000 | 41.702899 | 157 | 0.6075 | false | 3.586732 | true | false | false |
danpetrikin/djangoappengine_rdbms | management/commands/runserver.py | 1 | 7269 | from optparse import make_option
import logging
import sys
from django.db import connections
from ...boot import PROJECT_DIR
from ...db.backend.base import DatabaseWrapper
from django.core.management.base import BaseCommand
from django.core.management.commands.runserver import BaseRunserverCommand
from django.core.exc... | bsd-3-clause | 2,640,274,047,164,670,000 | 46.207792 | 99 | 0.616729 | false | 4.58612 | false | false | false |
rodrigob/downhill | docs/conf.py | 1 | 1515 | import os
import sys
import better
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
#'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
'sphinx.ext.mathjax',
#'sphinx.ext.pngmath',
'sphinx.ext.viewcode',
'numpydoc',
]
autosummary_generate = True
autodoc_default_flags = [... | mit | -1,181,340,417,915,678,700 | 23.435484 | 66 | 0.667327 | false | 3.036072 | false | false | false |
pmutale/www.mutale.nl | settings/core.py | 1 | 1265 | import os
gettext = lambda s: s
DATA_DIR = os.path.dirname(os.path.dirname(__file__))
"""
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.8.17.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and ... | unlicense | 6,090,058,569,688,771,000 | 24.3 | 73 | 0.731225 | false | 2.908046 | false | false | false |
vlegoff/tsunami | src/primaires/commerce/commandes/questeur/deposer.py | 1 | 4847 | # -*-coding:Utf-8 -*
# Copyright (c) 2010-2017 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
... | bsd-3-clause | -7,925,732,464,028,695,000 | 43.183486 | 79 | 0.643065 | false | 3.517896 | false | false | false |
haypo/fatoptimizer | fatoptimizer/tools.py | 1 | 20707 | import ast
import collections
import marshal
import sys
FLOAT_TYPES = (int, float)
COMPLEX_TYPES = FLOAT_TYPES + (complex,)
STR_TYPES = (bytes, str)
# Primitive Python types (not containers)
PRIMITIVE_TYPES = (type(None), bool, int, float, complex, bytes, str)
# Iterable types
ITERABLE_TYPES = (str, bytes, tuple, f... | mit | -3,791,908,399,633,060,400 | 31.456113 | 80 | 0.568455 | false | 4.100396 | false | false | false |
e-koch/VLA_Lband | 17B-162/HI/analysis/convolve_and_match_aca.py | 1 | 3926 |
'''
Reproject onto the ACA CO(2-1) mosaic.
Since we have different versions of the full mosaic, we're
only going to make two version of the reprojected HI maps:
1) One to the ACA map without the highly asymmetric beam mosaics.
The HI map will not be convolved to a matching beam since they are already
quite similar. ... | mit | 4,816,399,364,986,148,000 | 35.018349 | 120 | 0.47784 | false | 3.871795 | false | true | false |
mdepasca/miniature-adventure | miniature_adventure.py | 1 | 51544 | import argparse
import os
from os import path
import subprocess
import sys
import socket
import time
import warnings
from math import floor
import gc # garbage collector
import smtplib
import numpy as np
from scipy import signal, linalg
from matplotlib import pyplot as plt
import GPy
import classes as cls
import util... | unlicense | -168,076,514,215,684,130 | 34.063946 | 108 | 0.443582 | false | 4.110367 | false | false | false |
mpirnat/aoc2016 | day22/test.py | 1 | 1854 | #!/usr/bin/env python
import unittest
from day22 import Node, make_nodes, viable_nodes
class TestMakingNodes(unittest.TestCase):
def test_makes_nodes_from_input(self):
df = """
/dev/grid/node-x0-y0 87T 71T 16T 81%
/dev/grid/node-x0-y1 93T 72T 21T 77%
/dev/gr... | mit | 3,496,811,144,772,983,300 | 32.709091 | 67 | 0.481122 | false | 2.843558 | true | false | false |
cordis/pycloudia-chat | pyligaforex/services/gateways/interfaces.py | 1 | 3985 | from abc import ABCMeta, abstractmethod
class IServiceFactory(object):
__metaclass__ = ABCMeta
@abstractmethod
def create_service(self):
"""
:rtype: L{pyligaforex.services.gateways.interfaces.IService}
"""
class IService(object):
__metaclass__ = ABCMeta
@abstractmet... | mit | 484,113,746,543,363,000 | 26.867133 | 80 | 0.611794 | false | 3.682994 | false | false | false |
SmallFatCYW/tcn-analysis-python | tcnanalysis.py | 1 | 2745 | #!/usr/bin/env python
"""
____ _____ _ _ _
| _ \ _ |_ _|__ _ __ / \ _ __ __ _| |_ _ ___(_)___
| |_) | | | || |/ __| '_ \ / _ \ | '_ \ / _` | | | | / __| / __|
| __/| |_| || | (__| | | |/ ___ \| | | | (_| | | |_| \__ \ \__ \
|_| \__, ||_|\___|_| |_/_/... | mit | 2,421,101,698,474,163,000 | 36.388889 | 136 | 0.48272 | false | 2.844609 | false | false | false |
iamroger/vpn | win/utils.py | 1 | 3331 | import os, sys, re, shutil, tarfile, subprocess
j = os.path.join
class Cd(object):
"""
Cd is a context manager that allows
you to temporary change the working directory.
with Cd(dir) as cd:
...
"""
def __init__(self, directory):
self._dir = directory
def orig(self):
... | agpl-3.0 | 2,720,960,673,189,920,000 | 23.674074 | 88 | 0.565296 | false | 3.278543 | false | false | false |
RomanPlusPlus/smartGroceryList | .ycm_extra_conf.py | 1 | 3559 | import os
import sys
import ycm_core
def DirectoryOfThisScript():
return os.path.dirname(os.path.abspath(__file__))
preferred_build_type = 'debug'
flags = [
'-std=c++11'
,'-Wall'
,'-Wextra'
,'-Wconversion'
,'-Wno-deprecated'
,'-I%s' % os.path.join(DirectoryOfThisScript(), 'build', preferr... | gpl-3.0 | -8,626,690,842,388,371,000 | 31.651376 | 132 | 0.638944 | false | 3.864278 | false | false | false |
pzbadams/udacity | fresh_tomatoes.py | 1 | 5784 | import webbrowser
import os
import re
# Styles and scripting for the page
main_page_head = '''
<head>
<meta charset="utf-8">
<title>Fresh Tomatoes!</title>
<!-- Bootstrap 3 -->
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css">
<link rel="styleshee... | gpl-2.0 | -5,111,499,279,754,586,000 | 34.054545 | 145 | 0.573824 | false | 3.528981 | false | false | false |
gillett-hernandez/project-euler | Python/problem_58.py | 1 | 2420 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Author: Gillett Hernandez
# @Date: 2016-03-21 22:33:46
# @Last Modified by: Gillett Hernandez
# @Last Modified time: 2017-08-10 21:14:06
# from mfunctions import is_prime
from itertools import count, chain
from euler_funcs import is_prime_w_primes_given, get_primes,... | mit | 6,795,844,792,540,024,000 | 24.744681 | 70 | 0.544215 | false | 2.877527 | false | false | false |
lborgav/cookiecutter-django | {{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/settings/base.py | 1 | 7003 | # Django base settings for {{cookiecutter.project_name}} project.
from os.path import abspath, basename, dirname, join, normpath
from sys import path
########## PATH CONFIG
# Absolute filesystem path to the Django project folder:
PROJECT_ROOT = dirname(dirname(dirname(abspath(__file__))))
# Absolute filesystem path ... | mit | -3,837,163,642,000,832,500 | 28.548523 | 88 | 0.684135 | false | 3.717091 | true | false | false |
northDacoder/angular_ionic_project | ionicons-1.4.1/builder/generate.py | 1 | 7596 | from subprocess import call
import os
import json
BUILDER_PATH = os.path.dirname(os.path.abspath(__file__))
ROOT_PATH = os.path.join(BUILDER_PATH, '..')
FONTS_FOLDER_PATH = os.path.join(ROOT_PATH, 'fonts')
CSS_FOLDER_PATH = os.path.join(ROOT_PATH, 'css')
SCSS_FOLDER_PATH = os.path.join(ROOT_PATH, 'scss')
def main()... | mit | 3,167,289,036,028,404,000 | 27.772727 | 113 | 0.594787 | false | 2.941905 | false | false | false |
linuxscout/arramooz | scripts/nouns/xmldict.py | 1 | 1996 | #!/usr/bin/python2
# -*- coding=utf-8 -*-
#************************************************************************
# $Id: generatenoundict.py,v 0.7 2011/03/26 01:10:00 Taha Zerrouki $
#
# ------------
# Description:
# ------------
# Copyright (c) 2011, Arabtechies, Arabeyes Taha Zerrouki
#
# This file is the main fi... | gpl-2.0 | 393,406,699,130,314,700 | 30.68254 | 76 | 0.477455 | false | 3.635701 | false | false | false |
mattasmith/Non-contiguous-recombination | ncr.py | 1 | 5343 | #! /usr/local/bin/python
"""Script for designing a set of non-contiguous recombination libraries for site-directed, structure-guided homologous recombination.
******************************************************************
Copyright (C) 2011 Matt Smith, California Institute of Technology
This program ... | gpl-3.0 | -7,719,600,997,329,283,000 | 46.283186 | 149 | 0.678271 | false | 3.571524 | false | false | false |
spectresearch/detectem | detectem/response.py | 1 | 6146 | import base64
import json
import logging
import re
import urllib.parse
from string import Template
import pkg_resources
import requests
from detectem.exceptions import SplashError
from detectem.settings import SPLASH_TIMEOUT, SPLASH_URL
from detectem.utils import docker_container
DEFAULT_CHARSET = "iso-8859-1"
ERRO... | mit | 6,745,631,188,370,809,000 | 25.606061 | 88 | 0.582981 | false | 3.718088 | false | false | false |
ihoru/play_with_python | tasks/test_django/test_django/settings.py | 1 | 3502 | """
Django settings for test_django project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import ... | mit | 7,435,446,665,208,901,000 | 26.793651 | 91 | 0.669903 | false | 3.488048 | false | false | false |
SuLab/scheduled-bots | scheduled_bots/drugs/pubchem.py | 1 | 3162 | """
Note: this is a really abbreviated version of sebastian's full pubchem bot
that simply gets the pubchem ID from an inchikey
Adapted from: https://github.com/sebotic/cdk_pywrapper/blob/master/cdk_pywrapper/chemlib.py
"""
import json
import time
import requests
import wikidataintegrator.wdi_core as wdi_core
clas... | mit | 5,386,451,797,409,121,000 | 30.939394 | 118 | 0.57432 | false | 3.335443 | false | false | false |
protwis/protwis | similaritysearch/views.py | 1 | 5740 | from django.shortcuts import render, redirect
from django.conf import settings
from common.views import AbsReferenceSelection
from common.views import AbsSegmentSelection
#from common.views import AbsTargetSelection
from common.views import AbsTargetSelectionTable
# from common.alignment_SITE_NAME import Alignment
Ali... | apache-2.0 | -7,357,047,311,267,593,000 | 32.964497 | 124 | 0.669861 | false | 3.994433 | false | false | false |
andreabrambilla/libres | python/tests/res/enkf/test_runpath_list_ert.py | 1 | 3354 | import unittest
import os
from res.test import ErtTestContext
from tests import ResTest
from res.enkf import RunpathList, RunpathNode, ErtRunContext
from res.enkf.enums import EnkfInitModeEnum,EnkfRunType
from ecl.util.util import BoolVector
from res.util.substitution_list import SubstitutionList
class RunpathList... | gpl-3.0 | -5,098,693,126,175,305,000 | 40.407407 | 133 | 0.637448 | false | 3.515723 | true | false | false |
mattvonrocketstein/ymir | ymir/service/amazon.py | 1 | 9978 | # -*- coding: utf-8 -*-
""" ymir.service.amazon
"""
import os
import time
import boto
from fabric.colors import yellow
from ymir import util
from ymir.service.base import AbstractService
class AmazonService(AbstractService):
""" """
def __init__(self, conn=None, **kargs):
""""""
self.conn =... | mit | 7,567,753,346,309,193,000 | 36.511278 | 89 | 0.552315 | false | 4.16792 | false | false | false |
CSD-Public/stonix | src/stonix_resources/rules/BlockSystemAccounts.py | 1 | 12193 | ###############################################################################
# #
# Copyright 2019. Triad National Security, LLC. All rights reserved. #
# This program was produced under U.S. Government contract 89233218CNA000001 #
... | gpl-2.0 | 4,207,096,394,589,483,500 | 36.749226 | 124 | 0.580415 | false | 4.137428 | true | false | false |
nikpap/inspire-next | inspirehep/utils/cv_latex_html_text.py | 1 | 10784 | # -*- coding: utf-8 -*-
#
# This file is part of INSPIRE.
# Copyright (C) 2016 CERN.
#
# INSPIRE 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... | gpl-2.0 | -8,740,075,710,879,147,000 | 42.659919 | 82 | 0.443064 | false | 4.729825 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.