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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
michaelpantic/tolScreenCleaner | parse.py | 1 | 1448 | import csv
import re
import parseH
import parseL
import outputAdapterTable
import outputAdapterODMax
from os import listdir
from os.path import isfile, join
indexFolder = "../tolScreenCleanerData/INDEX"
platesFolder = "../tolScreenCleanerData/PLATES"
outputFolder = "../tolScreenCleanerData/OUTPUT"
# Get available ind... | gpl-2.0 | 781,799,530,293,800,100 | 28.55102 | 131 | 0.785221 | false | 3.154684 | false | false | false |
ewheeler/rapidsms-timelines | timelines/handlers/base.py | 1 | 1997 | from __future__ import unicode_literals
import re
from django.utils.translation import ugettext_lazy as _
from django.utils import formats
from rapidsms.contrib.handlers.handlers.keyword import KeywordHandler
class AppointmentHandler(KeywordHandler):
"Base keyword handler for the APPT prefix."
prefix = '... | bsd-3-clause | 5,640,505,439,613,818,000 | 32.283333 | 74 | 0.536805 | false | 4.230932 | false | false | false |
cjforman/pele | pele/landscape/connect_min.py | 1 | 22807 | import logging
import numpy as np
import networkx as nx
from pele.landscape import TSGraph, LocalConnect
from pele.landscape._distance_graph import _DistanceGraph
__all__ = ["DoubleEndedConnect"]
logger = logging.getLogger("pele.connect")
class DoubleEndedConnect(object):
"""
Find a connected network of ... | gpl-3.0 | -8,087,875,305,333,027,000 | 37.590525 | 122 | 0.577717 | false | 3.99492 | true | false | false |
fgimian/flaskage | flaskage/cli.py | 1 | 12912 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
import sys
import logging
import click
import flaskage
from flaskage.scaffold import Scaffold
from flaskage.utils import camelcase, AliasedGroup, MODULE_NAME
from flaskage.helpers import (
valid_project_directory, Colore... | mit | -9,081,164,089,704,797,000 | 31.688608 | 78 | 0.644129 | false | 3.858936 | false | false | false |
sametmax/Django--an-app-at-a-time | ignore_this_directory/django/utils/datastructures.py | 4 | 10194 | import copy
from collections import OrderedDict
from collections.abc import Mapping
class OrderedSet:
"""
A set which keeps the ordering of the inserted items.
Currently backs onto OrderedDict.
"""
def __init__(self, iterable=None):
self.dict = OrderedDict.fromkeys(iterable or ())
de... | mit | 5,136,058,506,778,628,000 | 28.894428 | 107 | 0.558171 | false | 4.268844 | false | false | false |
nicko96/Chrome-Infra | appengine/chromium_rietveld/tests/test_dependency_utils.py | 1 | 7176 | #!/usr/bin/env python
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | bsd-3-clause | 6,662,359,119,886,542,000 | 33.666667 | 79 | 0.665412 | false | 3.436782 | true | false | false |
semkiv/heppy_fcc | analyzers/CMSReader.py | 1 | 1582 | from PhysicsTools.Heppy.analyzers.core.Analyzer import Analyzer
from PhysicsTools.Heppy.analyzers.core.AutoHandle import AutoHandle
from heppy_fcc.particles.cms.particle import Particle
import math
class CMSReader(Analyzer):
def declareHandles(self):
super(CMSReader, self).declareHandles()
s... | gpl-3.0 | -7,577,250,021,358,035,000 | 40.631579 | 81 | 0.53287 | false | 3.994949 | false | false | false |
DedMemez/ODS-August-2017 | makeatoon/ClothesGUI.py | 1 | 10449 | # Fuck you Disyer. Stealing my fucking paypal. GET FUCKED: toontown.makeatoon.ClothesGUI
from toontown.toon import ToonDNA
from direct.fsm import StateData
from direct.gui.DirectGui import *
from MakeAToonGlobals import *
from toontown.toonbase import TTLocalizer
from direct.directnotify import DirectNotifyGlobal... | apache-2.0 | -5,630,352,317,131,774,000 | 44.65625 | 307 | 0.633266 | false | 3.542034 | false | false | false |
nttcom/eclcli | eclcli/network/v2/public_ip.py | 1 | 5947 | from eclcli.common import command
from eclcli.common import utils
from ..networkclient.common import utils as to_obj
class ListPubicIP(command.Lister):
def get_parser(self, prog_name):
parser = super(ListPubicIP, self).get_parser(prog_name)
parser.add_argument(
'--name',
m... | apache-2.0 | -1,071,310,958,543,056,000 | 30.3 | 97 | 0.543972 | false | 3.99664 | false | false | false |
merll/docker-map | dockermap/exceptions.py | 1 | 2281 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import traceback
import six
class SourceExceptionMixin(object):
def __init__(self, src_exc, *args, **kwargs):
self._src_exc = src_exc
super(SourceExceptionMixin, self).__init__(*args, **kwargs)
@property
def source_exceptio... | mit | 5,798,657,893,036,697,000 | 24.920455 | 111 | 0.600614 | false | 4.369732 | false | false | false |
qedsoftware/commcare-hq | corehq/ex-submodules/casexml/apps/phone/management/commands/sync_log_debugger.py | 1 | 6017 | import json
from optparse import make_option
import os
from django.core.management import BaseCommand
import sys
from casexml.apps.phone.checksum import Checksum
class Command(BaseCommand):
"""Compare sync logs to see mismatched case ids.
This is useful for debugging state mismatches
Can also pass in a h... | bsd-3-clause | 6,120,540,430,923,160,000 | 41.373239 | 115 | 0.531328 | false | 4.294789 | false | false | false |
GeosoftInc/gxpy | geosoft/gxapi/GXE3DV.py | 1 | 2424 | ### extends 'class_empty.py'
### block ClassImports
# NOTICE: Do not edit anything here, it is generated code
from . import gxapi_cy
from geosoft.gxapi import GXContext, float_ref, int_ref, str_ref
from .GXMVIEW import GXMVIEW
### endblock ClassImports
### block Header
# NOTICE: The code generator will not replace t... | bsd-2-clause | -2,210,660,780,140,298,200 | 24 | 135 | 0.62005 | false | 3.569956 | false | false | false |
lodemo/CATANA | src/face_recognition/collabCreateMemMap.py | 1 | 4950 | # -*- coding: utf-8 -*-
'''
Get the features data from DB, de-pickle data and store it into array-on-disk.
'''
# MIT License
#
# Copyright (c) 2017 Moritz Lode
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to... | mit | -4,439,551,050,796,614,000 | 30.528662 | 216 | 0.702626 | false | 3.655835 | false | false | false |
Remi-C/interactive_map_tracking | interactive_map_tracking.py | 1 | 66133 | # -*- coding: utf-8 -*-
"""
/***************************************************************************
interactive_map_tracking
A QGIS plugin
A QGIS 2.6 plugin to track camera of user , AND/OR to autocommit/refresh edit on PostGIS vector layer
---------... | gpl-3.0 | 6,448,873,579,100,184,000 | 42.5639 | 194 | 0.61615 | false | 3.980378 | false | false | false |
bccp/nbodykit | nbodykit/tests/test_binned_stat.py | 2 | 9104 | from runtests.mpi import MPITest
from nbodykit import setup_logging
from nbodykit.binned_statistic import BinnedStatistic
import pytest
import tempfile
import numpy.testing as testing
import numpy
import os
data_dir = os.path.join(os.path.split(os.path.abspath(__file__))[0], 'data')
setup_logging("debug")
@MPITest(... | gpl-3.0 | 4,051,709,132,764,577,000 | 27.098765 | 114 | 0.636424 | false | 3.27482 | true | false | false |
RichardLeeK/MachineLearning | MachineLearning/Img3DProcess/main.py | 1 | 2129 | # Basic OBJ file viewer. needs objloader from:
# http://www.pygame.org/wiki/OBJFileLoader
# LMB + move: rotate
# RMB + move: pan
# Scroll wheel: zoom in/out
import sys, pygame
from pygame.locals import *
from pygame.constants import *
from OpenGL.GL import *
from OpenGL.GLU import *
# IMPORT OBJECT LOADER
from objloa... | mit | 1,437,956,592,720,366,300 | 25.962025 | 77 | 0.602161 | false | 2.896599 | false | false | false |
dialogtekgeek/DSTC6-End-to-End-Conversation-Modeling | ChatbotBaseline/tools/seq2seq_model.py | 1 | 4813 | # -*- coding: utf-8 -*-
"""Sequence-to-sequence model module
Copyright (c) 2017 Takaaki Hori (thori@merl.com)
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
"""
import six
import chainer
import chainer.functions as F
from chainer import cuda
import numpy as... | mit | 1,694,128,833,325,667,000 | 39.445378 | 90 | 0.503636 | false | 4.185217 | false | false | false |
vrenaville/report-print-send | base_report_to_printer/report.py | 1 | 4026 | # -*- coding: utf-8 -*-
##############################################################################
#
# Author: Guewen Baconnier
# Copyright 2014 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# pu... | agpl-3.0 | -2,749,583,403,344,640,500 | 43.252747 | 79 | 0.561351 | false | 4.395197 | false | false | false |
AjabWorld/ajabsacco | ajabsacco/core/models/loans.py | 1 | 15611 | from decimal import Decimal as D
import uuid
from django.contrib.auth.models import AbstractUser
from django.db import models
from .querysets.loans import *
from .abstract import ExtraField, LedgerBalance
from ajabsacco.core.codes.loans import *
TRANSACTION_TYPES = (
(TRANSACTION_TYPE_LOAN_DISBURSAL, "Loan Disb... | apache-2.0 | 418,958,189,437,914,500 | 34.723112 | 119 | 0.671386 | false | 3.358649 | false | false | false |
nikoladimitroff/Zmey | Tools/BlenderPlugins/scripts/addons/io_scene_gltf2/gltf2_get.py | 1 | 11682 | # Copyright (c) 2017 The Khronos Group Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | mit | 986,731,978,539,314,600 | 20.086643 | 114 | 0.586715 | false | 3.810176 | false | false | false |
chadspratt/AveryDB | join.py | 1 | 1126 | """Contains a simple class for storing join configurations."""
##
# Copyright 2013 Chad Spratt
# 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/L... | apache-2.0 | -2,738,151,809,143,295,000 | 37.827586 | 76 | 0.686501 | false | 4.265152 | false | false | false |
ningirsu/stepmania-server | smserver/resources/user_resource.py | 1 | 3748 | """ User resources """
import hashlib
import sqlalchemy
from smserver import exceptions
from smserver import models
from smserver.resources import base
class UserResource(base.BaseResource):
""" User class resource """
MIN_PASSWORD_LENGTH = 8
def create(self, name, password, email=None, rank=1):
... | mit | -8,784,744,963,530,073,000 | 31.034188 | 81 | 0.592316 | false | 4.20651 | false | false | false |
FederatedAI/FATE | examples/dsl/v1/experiment/generate_mock_data.py | 1 | 6367 | import random
import sys
import numpy as np
SAMPLE_NUM = 10000
# For sparse data, it means how many non-zero features in one sample.
# The total possible feature num depends on your tag interval below.
FEATURE_NUM = 20
TAG_INTERVAL = (2019120799, 2019121299)
VALUE_INTERVAL = (0, 10000)
# SAVE_FILE_NAME = DATA_TYPE... | apache-2.0 | 7,247,381,461,808,039,000 | 29.610577 | 100 | 0.580179 | false | 3.439762 | false | false | false |
wangjun/python-pinyin | pypinyin/__init__.py | 1 | 14031 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""汉语拼音转换工具."""
from __future__ import unicode_literals
from copy import deepcopy
from itertools import chain
import os
import re
import sys
from . import phonetic_symbol, pinyin_dict
__title__ = 'pypinyin'
__version__ = '0.9.0'
__author__ = 'mozillazg, 闲耘'
__license__... | mit | -516,029,625,758,082,300 | 24.881319 | 79 | 0.549762 | false | 2.093139 | false | false | false |
markrobinson85/odoo-pos-promotions | pos_promotions/promotion_model.py | 1 | 2597 | # -*- coding: utf-8 -*-
from openerp import models, fields, api
from openerp.osv import osv
class Promotion(models.Model):
#_inherit = "account.analytic.account"
_name = "pos.promotion"
_description = "Promotional Rule"
_inherit = "mail.thread"
name = fields.Char("Promotion Name", required=True)
... | mit | -5,878,874,552,577,806,000 | 63.95 | 148 | 0.725838 | false | 3.870343 | false | false | false |
tkzeng/molecular-design-toolkit | moldesign/min/descent.py | 1 | 5697 | # Copyright 2016 Autodesk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | apache-2.0 | -3,904,053,056,946,175,500 | 37.234899 | 105 | 0.626119 | false | 4.241996 | false | false | false |
NASLab/GroundROS | src/experimental_results/tracking_log_analysis.py | 1 | 1388 | # python experimental tests for Husky
import numpy as np
import glob
import matplotlib.pyplot as plt
for file in glob.glob("*.npy"):
data = np.load(file)[5:, :]
print file,
error_long = data[:, 0]
error_lat = data[:, 1]
ref_x = [value-data[0,2] for value in data[:, 2]]
# print ref_x[:30]
... | mit | 3,869,541,272,850,976,300 | 29.173913 | 74 | 0.582133 | false | 2.700389 | false | false | false |
jeffmahoney/crash-python | crash/addrxlat.py | 1 | 2632 | # -*- coding: utf-8 -*-
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
import addrxlat
import crash
from crash.cache.syscache import utsname
from crash.util import offsetof
from crash.util.symbols import Types
import gdb
types = Types(['uint32_t *', 'uint64_t *'])
class TranslationContext(addrxlat.Con... | gpl-2.0 | -4,112,297,611,290,940,000 | 37.144928 | 85 | 0.577508 | false | 3.566396 | false | false | false |
caedesvvv/pynoded | pynoded/shapes/arrow.py | 1 | 1616 | """
Arrow shapes
"""
from pynoded.graph import GraphObject
from math import atan2,pi
from cubicspline import cubicspline
from numpy import array
class Arrow(GraphObject):
"""
An arrow connecting two objects.
"""
def __init__(self,parent,x0,y0,x1,y1,color):
GraphObject.__init__(self,parent,x0,y... | gpl-3.0 | -2,896,924,524,325,959,000 | 28.925926 | 68 | 0.564975 | false | 3.101727 | false | false | false |
colloquium/spacewalk | client/tools/rhn-virtualization/virtualization/poller.py | 1 | 10725 | #
# Copyright (c) 2008--2010 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. You should have received a c... | gpl-2.0 | -3,612,708,035,236,073,000 | 33.596774 | 79 | 0.565315 | false | 4.435484 | false | false | false |
forseti-security/forseti-security | google/cloud/forseti/scanner/audit/resource_rules_engine.py | 1 | 13538 | # Copyright 2017 The Forseti Security 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 ap... | apache-2.0 | 7,402,139,771,712,971,000 | 33.891753 | 80 | 0.581844 | false | 4.567476 | false | false | false |
fmalina/python-netsuite | netsuite/api/customer.py | 1 | 1591 |
from netsuite.client import client, passport, app_info
from netsuite.utils import (
get_record_by_type,
search_records_using
)
from netsuite.service import (
Customer,
CustomerSearchBasic,
SearchStringField
)
import uuid
def get_customer(internal_id):
return get_record_by_type('customer', int... | bsd-3-clause | -684,644,612,951,325,200 | 29.596154 | 71 | 0.642992 | false | 3.761229 | false | false | false |
algorhythms/LeetCode | 987 Vertical Order Traversal of a Binary Tree.py | 1 | 2279 | #!/usr/bin/python3
"""
Given a binary tree, return the vertical order traversal of its nodes values.
For each node at position (X, Y), its left and right children respectively will
be at positions (X-1, Y-1) and (X+1, Y-1).
Running a vertical line from X = -infinity to X = +infinity, whenever the
vertical line touche... | mit | -3,850,868,018,202,838,500 | 28.986842 | 101 | 0.641948 | false | 3.356406 | false | false | false |
UCMAndesLab/webCTRLsMAP | webctrl.py | 1 | 2580 | import os, subprocess
import json
from webctrlSOAP import webctrlSOAP
from smap import actuate, driver
from smap.authentication import authenticated
class _Actuator(actuate.SmapActuator):
GET_REQUEST = 'getValue'
SET_REQUEST = 'setValue'
def setup(self, opts):
self.devicePath = os.path.expanduser(opts[... | mit | -4,791,517,070,495,689,000 | 34.833333 | 103 | 0.644961 | false | 3.706897 | false | false | false |
makielab/sea-cucumber | seacucumber/tasks.py | 1 | 3306 | """
Supporting celery tasks go in this module. The primarily interesting one is
SendEmailTask, which handles sending a single Django EmailMessage object.
"""
import logging
from django.conf import settings
from celery.task import Task
from boto.ses.exceptions import SESAddressBlacklistedError, SESDomainEndsWithDotError... | mit | 261,616,636,548,345,380 | 37.44186 | 85 | 0.609498 | false | 4.413885 | false | false | false |
cpcloud/numpy | numpy/lib/function_base.py | 2 | 123894 | from __future__ import division, absolute_import, print_function
import warnings
import sys
import collections
import operator
import numpy as np
import numpy.core.numeric as _nx
from numpy.core import linspace, atleast_1d, atleast_2d
from numpy.core.numeric import (
ones, zeros, arange, concatenate, array, asarr... | bsd-3-clause | -4,577,193,708,041,557,500 | 31.013953 | 88 | 0.568833 | false | 3.582408 | false | false | false |
Megalinuxcoin/megalinuxcoin | contrib/bitrpc/bitrpc.py | 1 | 7850 | from jsonrpc import ServiceProxy
import sys
import string
# ===== BEGIN USER SETTINGS =====
# if you do not set these you will be prompted for a password for every command
rpcuser = ""
rpcpass = ""
# ====== END USER SETTINGS ======
if rpcpass == "":
access = ServiceProxy("http://127.0.0.1:56883")
else:
access = Se... | mit | 8,456,373,962,798,494,000 | 23.228395 | 79 | 0.662293 | false | 3.055664 | false | false | false |
mekkablue/Glyphs-Scripts | Compare Frontmost Fonts/Compare Glyph Heights of Frontmost Fonts.py | 1 | 8413 | #MenuTitle: Compare Glyph Heights
# -*- coding: utf-8 -*-
from __future__ import division, print_function, unicode_literals
__doc__="""
Lists all glyphs that differ from the second font in height beyond a given threshold.
"""
import vanilla
class CompareGlyphHeightsOfFrontmostFonts( object ):
def __init__( self ):
... | apache-2.0 | -8,828,711,297,698,775,000 | 48.046784 | 219 | 0.723706 | false | 3.18617 | false | false | false |
rustychris/stompy | stompy/xr_utils.py | 1 | 13940 | import logging
log=logging.getLogger('xr_utils')
from collections import OrderedDict
import xarray as xr
import six
import numpy as np
def gradient(ds,varname,coord):
# rather than assume that consecutive data points are valid,
# fit a line to the data values per water column
daC,daz = xr.broadcast(ds[va... | mit | -1,026,334,121,185,740,400 | 31.877358 | 125 | 0.611047 | false | 3.633994 | false | false | false |
etsinko/Pentaho-reports-for-OpenERP | openerp_addon/pentaho_reports/__openerp__.py | 1 | 9063 | # -*- encoding: utf-8 -*-
{
"name": "Pentaho Reports for OpenERP",
"description": """
Pentaho - OpenERP Report Integration by Willow IT
=================================================
This module integrates Pentaho's reporting engine with OpenERP.
This project was developed by Willow IT, using the libraries ... | gpl-2.0 | -8,140,916,819,647,359,000 | 47.989189 | 114 | 0.766965 | false | 4.332218 | false | false | false |
googlearchive/titan | titan/files/mixins/stats_recorder.py | 1 | 5131 | #!/usr/bin/env python
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | apache-2.0 | 4,395,640,276,062,918,700 | 35.913669 | 76 | 0.701228 | false | 3.786716 | false | false | false |
abhishekdepro/Mantle | first_time.py | 1 | 2523 | import urllib2
import re
import datetime
import sqlite3
a=0
city=raw_input('enter city')
print("")
print("Entered city: "+city.upper())
print "Crunching the latest data",
for i in range(0,100):
a+=2
if(i%10==0):
print ".",
print("")
print "Searching for alternative sources",
for i in range(0,100):
... | apache-2.0 | -2,885,661,126,470,217,700 | 32.197368 | 168 | 0.632184 | false | 3.114815 | false | false | false |
venicegeo/eventkit-cloud | eventkit_cloud/api/views.py | 1 | 86169 | """Provides classes for handling API requests."""
import logging
# -*- coding: utf-8 -*-
from datetime import datetime, timedelta
from django.core.cache import cache
from dateutil import parser
from django.conf import settings
from django.contrib.auth.models import User, Group
from django.contrib.contenttypes.models i... | bsd-3-clause | -3,858,344,402,547,503,600 | 38.382541 | 120 | 0.577133 | false | 4.515012 | false | false | false |
dichen001/Go4Jobs | JackChen/linked_list/160. Intersection of Two Linked Lists.py | 1 | 1101 | """
Write a program to find the node at which the intersection of two singly linked lists begins.
For example, the following two linked lists:
A: a1 → a2
↘
c1 → c2 → c3
↗
B: b1 → b2 → b3
begin to intersect at node c1.
Notes:
I... | gpl-3.0 | -2,618,085,599,512,454,700 | 25.175 | 93 | 0.574057 | false | 3.563934 | false | false | false |
rebelact/mailsync-app | mailsync/views/auth.py | 1 | 2858 | from mailsync.views.base import BaseView
from mailsync.forms import CreateUserForm
from mailsync.models.auth import user_model
from formencode.validators import Invalid as InvalidForm
class LoginView(BaseView):
def initialize(self):
super(LoginView, self).initialize()
def get(self):
# Redire... | mit | -3,389,300,913,787,661,000 | 28.474227 | 87 | 0.559832 | false | 4.190616 | false | false | false |
kmollee/2014cdab | wsgi/programs/cdag30/.leo_shadow/xtest.py | 1 | 11341 | #@+leo-ver=4-thin
#@+node:2014pythonE.20140517034519.1935:@shadow test.py
#@@language python
import cherrypy
# 這是 MAN 類別的定義
'''
# 在 application 中導入子模組
import programs.cdag30.man as cdag30_man
# 加入 cdag30 模組下的 man.py 且以子模組 man 對應其 MAN() 類別
root.cdag30.man = cdag30_man.MAN()
# 完成設定後, 可以利用
/cdag30/man/assembly
# 呼叫 man... | gpl-2.0 | 202,546,961,501,817,920 | 35.796429 | 157 | 0.667378 | false | 2.569327 | false | false | false |
willemw12/mythcli | src/mythcli.py | 1 | 2591 | #!/usr/bin/env python3
# For more information about this program, see https://github.com/willemw12/mythcli
import argparse
import os
import sys
from mythcli.services.dvr.controllers import conflicting, expiring, recorded, upcoming
def main():
""" For all datetime format codes, see http://docs.python.org/library... | gpl-3.0 | 1,401,626,688,239,907,800 | 54.12766 | 147 | 0.686222 | false | 3.608635 | false | false | false |
pekrau/Publications | publications/scripts/create_curator.py | 1 | 1211 | "Create an account with the 'curator' role."
import sys
from publications import constants
from publications import utils
from publications.account import AccountSaver
def get_args():
parser = utils.get_command_line_parser(
description='Create a new curator account.')
return parser.parse_args()
def... | mit | -6,509,203,966,159,130,000 | 27.162791 | 59 | 0.618497 | false | 3.919094 | false | false | false |
QTB-HHU/ModelHeatShock | HSM_Reactions.py | 1 | 3798 | from HSM_Temperature import *
############ REACTIONS ############
def nuP(Ph, HP, kP0): # P#-->P
nuP = kP0 * Ph * HP # //(2000+HP)
return nuP
def nuPp(P, t, kP0p, n1, T0const, TparamSet, DirectControlnuPp): # P-->P#
# the DirectControl optional argument serves to switch between the normal nuPp and t... | gpl-3.0 | 1,146,378,558,672,577,200 | 22.7375 | 120 | 0.575566 | false | 2.290712 | false | false | false |
RichardTMR/homework | week1/class1_linear_regression.py | 1 | 3290 | import numpy as np
import matplotlib.pyplot as plt
from sklearn import datasets, linear_model
def plot_line(x, y, y_hat,line_color='blue'):
# Plot outputs
plt.scatter(x, y, color='black')
plt.plot(x, y_hat, color=line_color,
linewidth=3)
plt.xticks(())
plt.yticks(())
plt.show()
... | apache-2.0 | -7,782,481,078,116,972,000 | 24.905512 | 106 | 0.59848 | false | 3.160423 | true | false | false |
examachine/pisi | pisi/actionsapi/coreutils.py | 1 | 1995 | #-*- coding: utf-8 -*-
#
# Copyright (C) 2005, TUBITAK/UEKAE
#
# 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.
#
# Pleas... | gpl-3.0 | 8,104,818,021,379,982,000 | 23.329268 | 79 | 0.622055 | false | 3.836538 | false | false | false |
Technikradio/C3FOCSite | c3shop/test/tools.py | 1 | 1768 | from frontpage.models import Article, Profile, Media, ArticleMedia, MediaUpload, Post, Settings
from django.contrib.auth.models import User
# This function assumes that the create superuser command has already been run.
def make_testing_db():
m = Media()
m.headline = "Most ugly image"
m.lowResFile = "htt... | bsd-3-clause | -6,947,669,652,041,555,000 | 25.787879 | 95 | 0.60181 | false | 3.374046 | true | false | false |
google/dotty | efilter/protocols/iset.py | 1 | 2326 | # -*- coding: utf-8 -*-
# EFILTER Forensic Query Language
#
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/li... | apache-2.0 | 4,413,265,449,356,274,000 | 22.734694 | 74 | 0.689166 | false | 3.692063 | false | false | false |
kusinkay/plugin.offtictor | torhelper.py | 1 | 4925 | from resources.lib import tor
class TorFeeds:
def __init__(self):
self.feeds = []
self.time = 0
def add_feeds(self, feeds):
'''
Add an array of feeds
'''
self.feeds = feeds
def add_feed(self, feed):
torFeed = TorFeed(feed)
se... | gpl-2.0 | -4,851,109,222,728,168,000 | 26.519553 | 97 | 0.478376 | false | 4.138655 | false | false | false |
SkyTruth/skytruth-automation-hub | gae/pubsub.py | 1 | 5643 | """
Publish/Subscribe tool
@author Paul Woods <paul@skytruth.org>
"""
import webapp2
from google.appengine.ext import db
from google.appengine.api import taskqueue
import json
import urllib2
import os
from taskqueue import TaskQueue
class Subscription (db.Model):
event = db.StringProperty()
url = db.S... | mit | -7,474,916,540,044,112,000 | 35.173077 | 122 | 0.577352 | false | 4.432836 | false | false | false |
eroicaleo/LearningPython | ch20/GeneratorFunctionsandExpressions.py | 1 | 2789 | #!/usr/bin/python3.3
def gensquares(N):
for i in range(N):
yield i ** 2
for i in gensquares(5):
print(i, end=":")
print()
x = gensquares(4)
print(x)
print(next(x))
print(next(x))
print(next(x))
print(next(x))
# throw exception: StopIteration
# print(next(x))
def ups(line):
for x in line.split(',... | mit | 1,515,841,372,151,251,500 | 19.507353 | 87 | 0.580495 | false | 2.465959 | false | false | false |
bmazin/SDR | DataReadout/ReadoutControls/lib/LabJackPython-8-26-2011/src/u12.py | 2 | 114714 | """
Name: u12.py
Desc: Defines the U12 class, which makes working with a U12 much easier. The
functions of the U12 class are divided into two categories: UW and
low-level.
Most of the UW functions are exposed as functions of the U12 class. With
the exception of the "e" functions, UW fun... | gpl-2.0 | 4,888,426,049,671,642,000 | 37.468813 | 327 | 0.540318 | false | 3.716637 | false | false | false |
osonwanne/virgilglobal | portfolio/models.py | 1 | 1641 | from __future__ import unicode_literals
from django.db import models
# Create your models here.
from modelcluster.fields import ParentalKey
from wagtail.wagtailcore.models import Page, Orderable
from wagtail.wagtailcore.fields import RichTextField
from wagtail.wagtailadmin.edit_handlers import FieldPanel, InlinePane... | gpl-3.0 | -8,844,760,692,456,477,000 | 27.310345 | 73 | 0.687386 | false | 4.012225 | false | false | false |
brownrout/EECS-337-Recipes | Team4/chinese_transformations.py | 1 | 3471 | chinese_spicy_list = {
'jalapeno' : ['curry paste', 'chili sauce', 'curry paste'],
'wasabi': ['curry paste', 'chili sauce', 'curry paste'],
'tobasco': ['curry paste', 'chili sauce', 'curry paste'],
'hot sauce': ['curry paste', 'chili sauce', 'curry paste'],
'habanero pepper' : ['curry paste', 'chili... | mit | -1,479,469,051,572,116,500 | 23.443662 | 84 | 0.551426 | false | 2.405405 | false | true | false |
wrightflyer/test | avrread.py | 1 | 27950 | #########################################################################################################
# AVRRead #
# A utility to read the XML files (probably .atdf in fact) in a Studio 6/7 installation and use #
# ... | mit | -7,481,435,471,951,080,000 | 61.111111 | 201 | 0.443971 | false | 4.75421 | false | false | false |
sorrison/django-pbs | django_pbs/jobs/views.py | 1 | 1355 | # Copyright 2008 VPAC
#
# This file is part of django-pbs.
#
# django-pbs 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.
#
# django-pb... | gpl-3.0 | -4,826,663,300,770,279,000 | 34.657895 | 109 | 0.739483 | false | 3.860399 | false | false | false |
zqfan/leetcode | algorithms/python/find_minimum_in_rotated_sorted_array_ii.py | 1 | 1789 | #! /usr/bin/env python
# Copyright (C) 2014 ZhiQiang Fan <aji.zqfan@gmail.com>
#
# 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 ... | gpl-3.0 | 2,919,043,759,430,057,000 | 40.604651 | 79 | 0.607602 | false | 3.975556 | false | false | false |
escher9/vdebug-python | plugin/python/vdebug/ui/vimui.py | 1 | 20451 | # coding=utf-8
import vdebug.ui.interface
import vdebug.util
import vim
import vdebug.log
import vdebug.opts
class Ui(vdebug.ui.interface.Ui):
"""Ui layer which manages the Vim windows.
"""
def __init__(self,breakpoints):
vdebug.ui.interface.Ui.__init__(self)
self.is_open = False
s... | mit | 8,781,502,639,363,953,000 | 32.581281 | 95 | 0.544766 | false | 3.790732 | false | false | false |
mreineck/healpy | healpy/projector.py | 1 | 44436 | #
# This file is part of Healpy.
#
# Healpy 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.
#
# Healpy is distributed in the hope... | gpl-2.0 | 7,005,361,420,000,626,000 | 33.313514 | 88 | 0.494396 | false | 3.305266 | false | false | false |
thomaslundgaard/pimp | src/flickcharm.py | 1 | 8208 | # -*- coding: utf-8 -*-
# Pimp - A mpd-frontend to be used as a jukebox at parties.
# Copyright (C) 2010 Peter Bjørn
# Copyright (C) 2010 Thomas Lundgaard
#
# 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 F... | gpl-3.0 | 722,736,524,023,204,100 | 34.682609 | 76 | 0.570001 | false | 4.019099 | false | false | false |
iamgreaser/pycubed | feature_server/scripts/avx.py | 1 | 10479 | # avx.py
import array
import collections
import operator
import math
import io
import gzip
import os
from itertools import izip, imap, chain, ifilter, product, repeat
from struct import pack, unpack, calcsize
# this module is a self-contained pure python implementation of a generic AVX loader/saver
# AVX Header: mag... | gpl-3.0 | 52,658,477,657,679,064 | 32.589744 | 126 | 0.559977 | false | 3.705446 | false | false | false |
AABoyles/Tabular.ui | Scripts/dumpStatesToDB.py | 1 | 1190 | #!/usr/bin/python
import time, sqlite3, sys, urllib, csv
begin = time.time()
url = "http://www.correlatesofwar.org/COW2%20Data/SystemMembership/2011/states2011.csv"
print "Downloading from", url
response = urllib.urlretrieve(url, '../Data/states2011.csv')
print "Opening Database"
con = sqlite3.connect('../Data/PyRB... | gpl-2.0 | 1,801,252,314,439,419,100 | 29.512821 | 111 | 0.570588 | false | 3.541667 | false | false | false |
QualiSystems/Azure-Shell | package/cloudshell/cp/azure/common/singletons.py | 1 | 2092 | import threading
class AbstractComparableInstance(object):
"""Abstract class that must be used together with SingletonByArgsMeta class"""
def check_params_equality(self, *args, **kwargs):
"""Check if instance have the same attributes as provided in args and kwarg. Method must accept the same
... | apache-2.0 | 1,728,342,937,448,489,700 | 37.036364 | 112 | 0.585564 | false | 4.313402 | false | false | false |
sunfishcode/cretonne | lib/cretonne/meta/cdsl/isa.py | 1 | 18670 | """Defining instruction set architectures."""
from __future__ import absolute_import
from collections import OrderedDict
from .predicates import And, TypePredicate
from .registers import RegClass, Register, Stack
from .ast import Apply
from .types import ValueType
from .instructions import InstructionGroup
# The typin... | apache-2.0 | 5,686,922,585,626,008,000 | 36.641129 | 100 | 0.602625 | false | 4.235481 | false | false | false |
DemSquirrel/SquirrelOS | kernel/kernel.py | 1 | 1396 | import sys, os, time
commandList = ["help", "shutdown", "ls", "dir", "mkdir", "cd", "time"]
def bootLoader():
print("Welcome to SquirrelOS!")
print("Made By Dem_Squirrel and FreakzDK \n")
print("Type help to see the commands")
commandLine()
def commandLine():
cmd = input("> ")
if cmd == comman... | mit | -2,599,846,609,285,886,000 | 21.532258 | 70 | 0.574499 | false | 3.49 | false | false | false |
tiancj/emesene | emesene/e3/xmpp/SleekXMPP/setup.py | 1 | 5033 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2011 Nathanael C. Fritz
# All Rights Reserved
#
# This software is licensed as described in the README.rst and LICENSE
# file, which you should have received as part of this distribution.
import sys
import codecs
try:
from setuptools import setup... | gpl-3.0 | 1,389,728,075,824,915,200 | 39.264 | 100 | 0.543612 | false | 3.725389 | false | false | false |
OpenTransitTools/data | ott/data/content/fares.py | 1 | 1644 | from datetime import datetime
from datetime import timedelta
from ott.utils import json_utils
import logging
log = logging.getLogger(__file__)
class Fares(object):
def __init__(self, fare_url, fare_timeout_mins=1440):
"""
"""
log.info("create an instance of {0}".format(self.__class__.__... | mpl-2.0 | -1,689,696,673,993,191,000 | 30.615385 | 111 | 0.536496 | false | 3.841121 | false | false | false |
Redball45/Redball-Cogs | mineserver/async_mcrcon.py | 1 | 1899 | import asyncio
import struct
class ClientError(Exception):
pass
class InvalidPassword(Exception):
pass
class MinecraftClient:
def __init__(self, host, port, password):
self.host = host
self.port = port
self.password = password
self._auth = None
self._reader = Non... | mit | 3,130,483,215,566,566,400 | 26.521739 | 92 | 0.565034 | false | 3.767857 | false | false | false |
ponty/pyunpack | doc/generate-doc.py | 1 | 1300 | import glob
import logging
import os
from easyprocess import EasyProcess
from entrypoint2 import entrypoint
commands = """
python3 -m pyunpack.cli --help
"""
commands = commands.strip().splitlines()
def empty_dir(dir):
files = glob.glob(os.path.join(dir, "*"))
for f in files:
os.remove(f)
@entry... | bsd-2-clause | 4,043,248,013,462,465,500 | 24.490196 | 76 | 0.546923 | false | 3.466667 | false | false | false |
miing/mci_migo | identityprovider/tests/sso_server/test_rate_limit.py | 1 | 1221 | from django.conf import settings
from identityprovider.tests.helpers import FunctionalTestCase
class RateLimitTestCase(FunctionalTestCase):
def test(self):
# = Rate limits =
# Rate limiting is enforced only on POST requests to the login screen,
# on a per-username, per-IP basis.
... | agpl-3.0 | -6,374,083,568,554,359,000 | 33.885714 | 79 | 0.659296 | false | 4.314488 | false | false | false |
lcoandrade/DsgTools | gui/ProductionTools/Toolbars/InspectFeatures/inspectFeatures.py | 1 | 16372 | # -*- coding: utf-8 -*-
"""
/***************************************************************************
InspectFeatures
A QGIS plugin
Builds a temp rubberband with a given size and shape.
-------------------
begin : 2016-08-02
... | gpl-2.0 | -7,068,429,154,627,036,000 | 41.971129 | 226 | 0.605424 | false | 4.274674 | false | false | false |
JonnyPugh/WordpostBot | Project/post_statistics.py | 1 | 2409 | #!/usr/bin/env python
from extensions import *
from config import page_info
def main():
# Form list of IDs of all posts made to the page
post_ids = [post["id"] for post in execute_query("select id from Posts")]
# Form reaction info for each post made to the page
users = {}
user_names = {}
for post_id in post_i... | mit | 7,440,625,606,803,652,000 | 36.061538 | 170 | 0.651308 | false | 2.765786 | false | false | false |
wmvanvliet/mne-python | tutorials/evoked/plot_20_visualize_evoked.py | 1 | 12628 | """
.. _tut-visualize-evoked:
Visualizing Evoked data
=======================
This tutorial shows the different visualization methods for
`~mne.Evoked` objects.
As usual we'll start by importing the modules we need:
"""
import os
import numpy as np
import mne
#######################################################... | bsd-3-clause | -7,932,918,158,828,842,000 | 45.03663 | 79 | 0.617919 | false | 3.662005 | false | false | false |
stoq/kiwi | kiwi/ui/widgets/textview.py | 1 | 2984 | #
# Kiwi: a Framework and Enhanced Widgets for Python
#
# Copyright (C) 2003-2005 Async Open Source
#
# 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, ... | lgpl-2.1 | 3,164,537,967,199,751,700 | 34.951807 | 73 | 0.672922 | false | 3.77244 | false | false | false |
PythonCharmers/orange3 | Orange/widgets/classify/owmajority.py | 1 | 2418 | from Orange.data import Table
from Orange.classification.majority import MajorityLearner, ConstantModel
from Orange.preprocess.preprocess import Preprocess
from Orange.widgets import widget, gui
from Orange.widgets.settings import Setting
class OWMajority(widget.OWWidget):
name = "Majority"
description = "Cla... | gpl-3.0 | 4,447,121,934,365,058,000 | 28.13253 | 74 | 0.593879 | false | 4.057047 | false | false | false |
rahul003/mxnet | python/mxnet/gluon/nn/conv_layers.py | 1 | 53771 | # 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 | -4,494,887,173,876,827,600 | 44.223717 | 100 | 0.62954 | false | 4.033228 | false | false | false |
openproceedings/openproceedings-buildbot | pelicanconf.py | 1 | 1300 | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import os
AUTHOR = u'Andrea Zonca'
SITENAME = u'OpenProceedings'
SITEURL = ''
TIMEZONE = 'America/Los_Angeles'
DEFAULT_LANG = u'en'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM... | bsd-3-clause | 4,804,524,927,491,711,000 | 25 | 89 | 0.716923 | false | 2.697095 | false | false | false |
ActiveState/code | recipes/Python/577210_Script_partransformar_videos_compatibles/recipe-577210.py | 1 | 3937 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# avi2mp4.py
#
# Copyright 2010 Javier Rovegno Campos <tatadeluxe<at>gmail.com>
#
# 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
# t... | mit | -880,062,395,325,107,000 | 36.759615 | 114 | 0.585689 | false | 3.444737 | false | false | false |
hoh/Hubbub | hubbub/drugstore/__init__.py | 1 | 1171 | # Copyright (c) 2014 "Hugo Herter"
# [http://hugoherter.com]
#
# This file is part of Hubbub.
#
# Vega 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 opti... | agpl-3.0 | 1,188,090,506,460,646,000 | 29.025641 | 74 | 0.70965 | false | 3.741214 | false | false | false |
snazy2000/netbox | netbox/utilities/views.py | 1 | 27989 | from __future__ import unicode_literals
from collections import OrderedDict
from django_tables2 import RequestConfig
from django.conf import settings
from django.contrib import messages
from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import ValidationError
from django.db import ... | apache-2.0 | 8,454,032,785,602,730,000 | 39.041488 | 120 | 0.596341 | false | 4.244616 | false | false | false |
goiri/hadoopsimulator | simulator.py | 1 | 9394 | #!/usr/bin/env pypy
from commons import isRealistic
import math
import random
if not isRealistic():
random.seed(0)
from operator import attrgetter
from node import Node
from job import Job
from schedulerpolicy import SchedulerPolicy
from history import History
from history import HistoryViewer
import sys
from date... | apache-2.0 | 5,428,418,715,652,537,000 | 27.21021 | 93 | 0.653928 | false | 3.090132 | false | false | false |
fizyk/pyramid_localize | src/pyramid_localize/tools.py | 1 | 3166 | # Copyright (c) 2013-2014 by pyramid_localize authors and contributors <see AUTHORS file>
#
# This module is part of pyramid_localize and is released under
# the MIT License (MIT): http://opensource.org/licenses/MIT
"""methods in this module are tools, thank to which pyramid_localize works most of its magic."""
import... | mit | 6,348,952,720,227,318,000 | 31.639175 | 107 | 0.692356 | false | 4.307483 | false | false | false |
gdin-netmanage/pynm | htmlresolve.py | 1 | 1090 | from bs4 import BeautifulSoup
# from list[43] is the real list
def resolve_list(raw_list):
start = 0
end = 6
lists = []
soup = BeautifulSoup(raw_list, 'html.parser')
soup_list = soup.text.split()
soup_list = soup_list[43:-3]
#soup_tuple = tuple(soup_list)
for msg in soup_list:
i... | gpl-2.0 | 3,583,873,395,166,290,400 | 26.846154 | 58 | 0.570902 | false | 3.241791 | false | false | false |
nickgentoo/scikit-learn-graph | skgraph/utils/countminsketch_TABLESrandomprojectionNEWLinear.py | 1 | 7826 | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 7 16:23:52 2016
Copyright 2015 Nicolo' Navarin
This file is part of count-mean-sketch based on https://github.com/rafacarrascosa/countminsketch.
count-mean-sketch is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public Licen... | gpl-3.0 | -4,687,570,474,477,212,000 | 36.806763 | 104 | 0.622412 | false | 3.487522 | false | false | false |
kstreee/infer | infer/lib/python/inferlib/capture/make.py | 1 | 2445 | # Copyright (c) 2015 - present Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
import logging
import o... | bsd-3-clause | 5,882,811,356,160,687,000 | 32.040541 | 78 | 0.625767 | false | 3.880952 | false | false | false |
bgris/ODL_bgris | lib/python3.5/site-packages/spyder/config/main.py | 1 | 30624 | # -*- coding: utf-8 -*-
#
# Copyright © Spyder Project Contributors
# Licensed under the terms of the MIT License
# (see spyder/__init__.py for details)
"""
Spyder configuration options
Note: Leave this file free of Qt related imports, so that it can be used to
quickly load a user config file
"""
import... | gpl-3.0 | -3,498,848,067,270,148,600 | 43.434718 | 98 | 0.452079 | false | 3.97908 | true | false | false |
ju1ius/clisnips | clisnips/importers/clisnips.py | 1 | 1272 | import time
from textwrap import dedent
from typing import Callable, TextIO
from clisnips.database.snippets_db import SnippetsDatabase
try:
from xml.etree import cElementTree as ElementTree
except ImportError:
from xml.etree import ElementTree
def import_xml(db: SnippetsDatabase, file: TextIO, log: Callable... | gpl-3.0 | 8,562,715,914,577,953,000 | 30.8 | 73 | 0.617138 | false | 3.708455 | false | false | false |
levilucio/SyVOLT | ECore_Copier_MM/properties/positive/HEC_prop2_CompleteLHS.py | 1 | 15178 | from core.himesis import Himesis, HimesisPreConditionPatternLHS
import uuid
class HEC_prop2_CompleteLHS(HimesisPreConditionPatternLHS):
def __init__(self):
"""
Creates the himesis graph representing the AToM3 model HEC_prop2_CompleteLHS.
"""
# Fla... | mit | -6,822,914,805,518,198,000 | 51.885017 | 125 | 0.463104 | false | 5.196166 | false | false | false |
Netflix/sketchy | sketchy/controllers/tasks.py | 1 | 16979 | # Copyright 2014 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | apache-2.0 | -4,491,304,202,966,124,500 | 42.647815 | 230 | 0.65104 | false | 3.791648 | true | false | false |
mdobrychlop/pyry3d_chimera_extension | PyRy3D_input_generator.py | 1 | 14149 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#
# www.genesilico.pl
#
#creates ranked 3D models of macromoleular complexes
#based on experimental restraints and a whole complex shape.
__author__ = "Joanna M. Kasprzak"
__copyright__ = "Copyright 2010, The PyRy3D Project"
__credits__ = ["Janusz Bujnicki"]
__licen... | gpl-3.0 | 8,014,325,520,493,498,000 | 32.449173 | 126 | 0.541452 | false | 3.721462 | true | false | false |
astorfi/TensorFlow-World | codes/3-neural_networks/convolutional-neural-network/code/net_structure/net.py | 1 | 3884 | #####################################
# With some tiny modification, this code is the one used by Tensorflow slim at:
# https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/slim
# Please refer to the link for further explanations.
### The difference is this architecture is written in fully-convoluti... | mit | 468,183,706,509,463,600 | 40.763441 | 117 | 0.579815 | false | 4.075551 | false | false | false |
scality/scality-manila-utils | scality_manila_utils/smb_helper.py | 1 | 11130 | # Copyright (c) 2015 Scality
#
# 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, s... | apache-2.0 | 762,380,520,090,251,500 | 32.223881 | 79 | 0.614555 | false | 4.06947 | true | false | false |
eblot/miscripts | Python/embeddev/prepbr.py | 1 | 2923 | #!/usr/bin/env python
# Some kind of very project-specific way to remove unwanted components
from __future__ import with_statement
import os
import re
import sys
from optparse import OptionParser
from subprocess import Popen, PIPE, STDOUT
TRUE_VALUES = ['yes','ok','true']
FALSE_VALUES = ['no','none','false']
def p... | mit | -231,721,042,177,944,200 | 34.646341 | 74 | 0.509066 | false | 3.742638 | false | false | false |
TrabalhoRedesUfrj/NEOM | NEOM.py | 1 | 14411 | ##+"""
##+ Main function of the client with GUI
##+ Author: Ex7755
##+"""
import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from random import randint
import time
import socket, select, string, sys, ssl, pprint
from Protocol import MessageHandler
ssl_certfile = "./keys/server.crt"
class ClientThre... | gpl-3.0 | 7,031,653,115,401,569,000 | 34.495074 | 99 | 0.526334 | false | 3.749935 | false | false | false |
amirgeva/coide | qutepart/indenter/python.py | 1 | 2214 | from qutepart.indenter.base import IndentAlgBase
class IndentAlgPython(IndentAlgBase):
"""Indenter for Python language.
"""
def computeSmartIndent(self, block, char):
prevIndent = self._prevNonEmptyBlockIndent(block)
prevNonEmptyBlock = self._prevNonEmptyBlock(block)
prevLineStrip... | gpl-2.0 | -3,886,822,592,496,036,400 | 35.9 | 110 | 0.542005 | false | 4.823529 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.