repo_name stringlengths 5 92 | path stringlengths 4 232 | copies stringclasses 19
values | size stringlengths 4 7 | content stringlengths 721 1.04M | license stringclasses 15
values | hash int64 -9,223,277,421,539,062,000 9,223,102,107B | line_mean float64 6.51 99.9 | line_max int64 15 997 | alpha_frac float64 0.25 0.97 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
seibert-media/Highton | highton/models/comment.py | 1 | 1176 | from highton.models import HightonModel
from highton.highton_constants import HightonConstants
from highton import fields
from highton import call_mixins
class Comment(
HightonModel,
call_mixins.DetailCallMixin,
call_mixins.CreateCallMixin,
call_mixins.UpdateCallMixin,
call_mixins.DeleteCallMixin,... | apache-2.0 | -1,080,316,019,135,606,400 | 35.75 | 92 | 0.743197 | false |
kaosbeat/monaxo | midi.py | 1 | 1847 | #! /usr/bin/env python
import time, random, threading, monome, sched
import rtmidi
import loop16
from seq16 import Seq16
from monome import Monome
from midiout import *
# try to find a monome (you can skip this if you already know the host/port)
print "looking for a monome..."
host, port = monome.find_any_monome()
pr... | mit | 4,509,165,289,863,783,400 | 16.590476 | 92 | 0.624256 | false |
CtrlC-Root/cse3341 | Core/cse3341/pt/write_statement.py | 1 | 1161 | from ..token import Token
from .node import Node
from .identifier_list import IdentifierList
class WriteStatement(Node):
"""
A write statement.
"""
def __init__(self):
"""
Create the write statement.
"""
self.identifiers = IdentifierList()
@classmethod
def pa... | mit | -2,275,082,178,127,117,300 | 23.1875 | 76 | 0.565891 | false |
makefu/repo-sync | reposync/cli.py | 1 | 4555 | #! /usr/bin/env python3
""" usage: repo-sync CONFIG
Creates a sync repo in PWD.
Environment:
REPONAME name of the sync repo in workdir (Default: repo-sync.git)
Configuration:
Sync configuration in json format,defines which branch of
"origin.url" will be mirrored to "mirror.url"
$name.origin.ref d... | mit | -8,171,029,444,356,945,000 | 28.967105 | 101 | 0.605049 | false |
frmdstryr/enaml-kivy | enamlkv/kv/api.py | 1 | 8801 | #------------------------------------------------------------------------------
# Copyright (c) 2016, frmdstryr.
#
# Distributed under the terms of the MIT License.
#
# The full license is in the file LICENSE, distributed with this software.
#-----------------------------------------------------------------------------... | mit | 530,521,388,394,943,040 | 58.466216 | 162 | 0.709465 | false |
Nefry/taurus | bzt/modules/aggregator.py | 1 | 20567 | """
Aggregating results into DataPoints
Copyright 2015 BlazeMeter Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable ... | apache-2.0 | -1,317,869,710,146,653,200 | 32.771757 | 118 | 0.581611 | false |
huguesv/azure-sdk-for-python | azure-mgmt-storage/setup.py | 1 | 2220 | #!/usr/bin/env python
#-------------------------------------------------------------------------
# Copyright (c) Microsoft. 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... | apache-2.0 | 1,544,755,160,999,081,500 | 33.6875 | 88 | 0.605405 | false |
USGSDenverPychron/pychron | pychron/experiment/tasks/experiment_panes.py | 1 | 26112 | # ===============================================================================
# Copyright 2013 Jake Ross
#
# 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... | apache-2.0 | 1,861,105,749,135,323,400 | 50 | 119 | 0.455078 | false |
Som-Energia/invoice-janitor | CUPS/sips_comparator.py | 1 | 3601 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import csv
import tqdm
import click
from erppeek import Client
from datetime import datetime, date
import configdb
ATR_CASES = ['C2']
ATR_STEPS = ['01']
def create_file(c, from_date, file_output):
atr_ids = c.GiscedataSwitching.search([('create_date','>=', from_dat... | agpl-3.0 | -8,360,267,966,215,296,000 | 40.390805 | 163 | 0.556234 | false |
akrherz/iem | htdocs/plotting/auto/scripts100/p120.py | 1 | 5184 | """last spring temp"""
import datetime
from pandas.io.sql import read_sql
import pandas as pd
import matplotlib.dates as mdates
from pyiem.plot import figure_axes
from pyiem.util import get_autoplot_context, get_dbconn
from pyiem.exceptions import NoDataFound
def get_description():
""" Return a dict describing h... | mit | -6,493,876,069,943,078,000 | 31.198758 | 78 | 0.52527 | false |
devgi/bpf | src/bpf/validate.py | 1 | 5558 | import struct
from bpf.opcodes import (BPF_CLASS, BPF_LD, BPF_LDX, BPF_MODE, BPF_MEMWORDS,
BPF_IMM, BPF_IND, BPF_MSH, BPF_ABS, BPF_LEN, BPF_MEM,
BPF_ST, BPF_STX, BPF_ALU, BPF_OP, BPF_ADD, BPF_SUB,
BPF_MUL, BPF_OR, BPF_AND, BPF_RSH, BPF_LSH, BPF... | mit | 7,272,572,571,908,061,000 | 37.867133 | 79 | 0.54516 | false |
ParkJinSang/Logle | learning/svm/libsvm/svm.py | 1 | 9604 | #!/usr/bin/env python
from ctypes import *
from ctypes.util import find_library
from os import path
import sys
__all__ = ['libsvm', 'svm_problem', 'svm_parameter',
'toPyModel', 'gen_svm_nodearray', 'print_null', 'svm_node', 'C_SVC',
'EPSILON_SVR', 'LINEAR', 'NU_SVC', 'NU_SVR', 'ONE_CLASS',
... | mit | 596,766,394,582,458,200 | 28.280488 | 122 | 0.637755 | false |
peteboyd/lammps_interface | lammps_interface/dreiding.py | 1 | 2689 | """
Parameters for DREIDING force field.
"""
DREIDING_DATA = {
# Atom, R1, theta, R0, D0, phi, S
"H_": (0.33, 180.0, 3.195, 0.0152, 0.0, 12.382),
"H__HB": (0.33, 180.0, 3.195, 0.0001, 0.0, 12.0),
"H__b": (0.510, 90.0, 3.195, 0.0152, 0.0, 12.382),
"B_3": (0.880, 109.471, 4.02, 0.095, 0.0, 14.23),
... | mit | 7,240,741,347,678,713,000 | 49.735849 | 109 | 0.486798 | false |
wtpayne/hiai | a3_src/h70_internal/da/check/pytype.py | 1 | 3135 | # -*- coding: utf-8 -*-
"""
Module containing mypy type checking coroutines.
---
type:
python_module
validation_level:
v00_minimum
protection:
k00_public
copyright:
"Copyright 2016 High Integrity Artificial Intelligence Systems"
license:
"Licensed under the Apache License, Version 2.0 (the Lice... | apache-2.0 | 4,167,324,877,451,305,000 | 28.857143 | 79 | 0.556619 | false |
dcalacci/Interactive_estimation | game/control/models.py | 1 | 1069 | from django.db import models
from django.conf import settings
# from game.round.models import Round
# Create your models here.
class Control(models.Model):
user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, unique=True)
start_time = models.DateTimeField(auto_now_add=True, null=Tr... | mit | 7,463,442,458,747,134,000 | 33.483871 | 96 | 0.733396 | false |
abisee/pointer-generator | data.py | 1 | 11262 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
# Modifications Copyright 2017 Abigail See
#
# 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... | apache-2.0 | 8,850,772,225,426,416,000 | 39.804348 | 216 | 0.666223 | false |
cherry-wb/viper | viper/common/network.py | 1 | 1068 | import socket
import urllib2
import socks
#import lib.socks as socks
from viper.common.out import print_error
def download(url, tor=False):
def create_connection(address, timeout=None, source_address=None):
sock = socks.socksocket()
sock.connect(address)
return sock
import socket
... | bsd-3-clause | 8,534,516,328,192,233,000 | 27.105263 | 103 | 0.632022 | false |
DBrianKimmel/PyHouse | Project/src/Modules/Core/Drivers/Serial/_test/test_Serial_driver.py | 1 | 2989 | """
@name: Modules/Core/Drivers/Serial/_test/test_Serial_driver.py
@author: D. Brian Kimmel
@contact: D.BrianKimmel@gmail.com
@copyright: (c) 2013_2019 by D. Brian Kimmel
@license: MIT License
@note: Created on May 4, 2013
@summary: This module is for testing local node data.
Passed all 9 tests - DB... | mit | -977,156,327,731,897,900 | 21.816794 | 100 | 0.602543 | false |
frossigneux/python-kwstandbyclient | kwstandbyclient/utils.py | 1 | 5680 | # Copyright (c) 2013 Mirantis Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | apache-2.0 | 1,058,510,070,111,552,500 | 33.634146 | 81 | 0.601761 | false |
jonhadfield/ansible-lookups | aws_subnet_ids_from_names.py | 1 | 1411 | # (c) 2017, Jon Hadfield <jon@lessknown.co.uk>
"""
Description: This lookup takes an AWS region and a list of one or more
subnet names and returns a list of matching subnet ids.
Example Usage:
{{ lookup('aws_subnet_ids_from_names', ('eu-west-1', ['subnet1', 'subnet2'])) }}
"""
from __future__ import (absolute_import, ... | mit | -5,266,085,152,718,669,000 | 33.414634 | 95 | 0.651311 | false |
sysid/kg | quora/Ensemble_CNN_TD_Quora.py | 1 | 12948 | # coding: utf-8
# In[1]:
import pandas as pd
import numpy as np
import nltk
from nltk.corpus import stopwords
from nltk.stem import SnowballStemmer
import re
from sklearn.metrics import accuracy_score
import matplotlib.pyplot as plt
# In[2]:
train = pd.read_csv("../input/train.csv")
test = pd.read_csv("../input/te... | mit | -2,846,399,667,729,057,300 | 24.588933 | 252 | 0.631063 | false |
tsuna/tcollector | tcollector.py | 1 | 58569 | #!/usr/bin/env python
# This file is part of tcollector.
# Copyright (C) 2010 The tcollector Authors.
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, o... | gpl-3.0 | -8,030,747,697,064,389,000 | 39.957343 | 117 | 0.56716 | false |
louargantb/onectl | onectl-plugins/neighbors/communities.py | 1 | 6515 | #!/usr/bin/python -u
# Name: fqn.plugin.name
from includes import pluginClass
from includes import regexp
import os
import sys
import re
import subprocess
import inspect
class PluginControl(pluginClass.Base):
def setOptions(self):
''' Create additional argument parser options
specific to the plugin '''
dic = ... | gpl-2.0 | 183,517,812,310,186,270 | 28.748858 | 121 | 0.650038 | false |
lmazuel/azure-sdk-for-python | azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_gateway_connection_list_entity_py3.py | 1 | 7889 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit | -7,734,023,908,964,083,000 | 50.901316 | 412 | 0.675624 | false |
lcc755/WorkTerm1 | 3IfStatements/1Sounds/Code/playNote.py | 1 | 1297 | from nanpy import (ArduinoApi, SerialManager, Tone)
from time import sleep
#Connect to Arduino. Automatically finds serial port.
connection = SerialManager()
speaker = 14 #AO on Arduino
tone = Tone(speakerpin, connection) #Setting "tone" to mean using the "speaker" pin on the "connection". See tone library in Na... | apache-2.0 | 5,221,883,863,522,235,000 | 29.880952 | 135 | 0.624518 | false |
Instanssi/Instanssi.org | Instanssi/store/utils/paytrail.py | 1 | 1289 | # -*- coding: utf-8 -*-
import hashlib
import requests
class PaytrailException(Exception):
pass
def validate_failure(order_no, timestamp, authcode, secret):
m = hashlib.md5()
m.update('{}|{}|{}'.format(order_no, timestamp, secret).encode('UTF-8'))
return authcode == m.hexdigest().upper()
def vali... | mit | 5,314,636,159,189,205,000 | 27.021739 | 96 | 0.626067 | false |
miracle2k/stgit | stgit/stack.py | 1 | 40808 | """Basic quilt-like functionality
"""
__copyright__ = """
Copyright (C) 2005, Catalin Marinas <catalin.marinas@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is d... | gpl-2.0 | 5,813,231,224,454,919,000 | 33.819113 | 114 | 0.545824 | false |
ActiveState/code | recipes/Python/212565_copickle__module_serialize_code/recipe-212565.py | 1 | 1544 | """ Create portable serialized representations of Python <code> Objects"""
import new
import pickle
def co_dumps(s):
"""pickles a code object,arg s is the string with code
returns the code object pickled as a string"""
co = compile(s,'<string>','exec')
co_tup=[co.co_argcount,co.co_nlocals, co.co_stac... | mit | -668,232,421,904,555,500 | 34.090909 | 82 | 0.649611 | false |
wkschwartz/django | tests/update/tests.py | 1 | 11045 | import unittest
from django.core.exceptions import FieldError
from django.db import IntegrityError, connection, transaction
from django.db.models import CharField, Count, F, IntegerField, Max
from django.db.models.functions import Abs, Concat, Lower
from django.test import TestCase
from django.test.utils import regist... | bsd-3-clause | 3,419,285,657,485,618,700 | 38.873646 | 84 | 0.616569 | false |
cackharot/fbeazt | src/foodbeazt/resources/store_order_report.py | 1 | 2259 | from datetime import datetime
from dateutil import parser as dtparser, tz
from bson import ObjectId, json_util
from flask import g, request
from flask_restful import Resource
from service.StoreOrderService import StoreOrderService
from service.StoreService import StoreService
from foodbeazt.fapp import mongo, store_adm... | apache-2.0 | 4,817,031,853,769,750,000 | 40.833333 | 106 | 0.626826 | false |
zhiyu-he/algorithm-trip | growth/oj/leet_code/algorithms/122-best-time-to-buy-and-sell-stock-ii.py | 1 | 1289 | # -*- coding: utf-8 -*-
'''
TIPS:
1. operation (buy, sell)
2. for each (buy, sell), we find the longest incr sequence
3. but the most important question why longest incr sequence is work?
'''
class Solution(object):
def maxProfit(self, prices):
"""
:type prices: List[int]
:rtype... | gpl-2.0 | 8,956,034,449,981,051,000 | 25.306122 | 73 | 0.534523 | false |
ltucker/radarpost | radarpost/tests/test_feeds.py | 1 | 6884 | from helpers import *
def test_feed_basic():
"""
test_feed_basic
create a mailbox
subscribe to a feed
update the subscription
assert expected items are in the mailbox
"""
from radarpost.feed import FeedSubscription, update_feed_subscription, parse, AtomEntry
from radarpost.mailbox ... | gpl-2.0 | 4,724,863,857,700,947,000 | 30.295455 | 91 | 0.641488 | false |
nelsyeung/half-metals-analysis | lib/compounds/five_elements.py | 1 | 2465 | """ Class for generate 5 elements compounds """
import os
import sys
import inspect
baseLibDir = os.path.join(os.path.realpath(os.path.dirname(
inspect.getfile(inspect.currentframe()))), '..')
sys.path.append(baseLibDir)
import nmod
from compound import Compound
class FiveElements(Compound):
""" Five... | mit | 3,695,346,537,015,509,500 | 41.5 | 70 | 0.494118 | false |
wangjiezhe/FetchNovels | novel/sources/tianna.py | 1 | 1167 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from urllib.parse import urljoin
from pyquery import PyQuery
from novel import serial, utils
BASE_URL = 'http://www.tianna.la/tnw{}/'
class Tianna(serial.SerialNovel):
def __init__(self, tid):
super().__init__(utils.base_to_url(BASE_URL, tid), '#content',... | gpl-3.0 | 3,946,425,903,942,329,300 | 27.463415 | 76 | 0.502999 | false |
tarasane/h2o-3 | h2o-py/tests/h2o_pyunit.py | 1 | 1766 | import urllib2
import sys
sys.path.insert(1, "..")
import h2o
from tests import utils
"""
Here is some testing infrastructure for running the pyunit tests in conjunction with run.py.
run.py issues an ip and port as a string: "<ip>:<port>".
The expected value of sys_args[1] is "<ip>:<port>"
All tests MUST have the f... | apache-2.0 | -1,662,615,443,775,424,500 | 29.448276 | 116 | 0.601359 | false |
tsl143/addons-server | src/olympia/api/tests/test_jwt_auth.py | 1 | 6575 | from datetime import datetime, timedelta
from django.conf import settings
import jwt
from rest_framework.exceptions import AuthenticationFailed
from rest_framework_jwt.settings import api_settings
from olympia.amo.tests import TestCase
from olympia.api import jwt_auth
from olympia.api.models import APIKey, SYMMETRIC... | bsd-3-clause | 715,969,105,728,098,300 | 37.450292 | 76 | 0.630266 | false |
anthonysandrin/kafka-utils | kafka_utils/kafka_cluster_manager/cluster_info/topic.py | 1 | 1887 | # -*- coding: utf-8 -*-
# Copyright 2016 Yelp 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 ... | apache-2.0 | 2,210,050,034,550,098,700 | 28.484375 | 74 | 0.659247 | false |
jrg365/gpytorch | gpytorch/utils/pivoted_cholesky.py | 1 | 3313 | #!/usr/bin/env python3
import torch
from .. import settings
def pivoted_cholesky(matrix, max_iter, error_tol=None):
from ..lazy import lazify, LazyTensor
batch_shape = matrix.shape[:-2]
matrix_shape = matrix.shape[-2:]
if error_tol is None:
error_tol = settings.preconditioner_tolerance.val... | mit | -3,026,770,446,488,931,300 | 38.440476 | 119 | 0.582554 | false |
snapcore/snapcraft | tests/unit/sources/test_checksum.py | 1 | 2784 | # -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright (C) 2017-2018 Canonical Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# This program is distributed in ... | gpl-3.0 | 8,382,165,105,227,043,000 | 33.8 | 83 | 0.650862 | false |
nomad-mystic/nomadmystic | fileSystem/school-projects/development/softwaredesignandcomputerlogiccis122/cis122lab2/python/Lab2.py | 1 | 2465 | # file = Lab2.py
# programmer = Keith Murphy
# date created = 1-15-2014
# last mod = 1-25-2014
#
# input_list:
# width_1, length_1, width_2, length_2
# output_list:
# rectangle_1_area, rectangle_2_area, average_area_of_rectangles
#
# Variables
# Declare real width_1
# Declare real length... | mit | -3,367,064,113,916,565,000 | 37.515625 | 111 | 0.711562 | false |
iconoeugen/rb-xmpp-notification | rbxmppnotification/admin_urls.py | 1 | 1484 | #
# admin_urls.py
#
# Copyright (c) 2013 Horatiu Eugen Vlad
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, mod... | mit | -7,802,793,473,282,647,000 | 39.108108 | 73 | 0.772237 | false |
rubgombar1/sharing-cars | sharingcars/announcements/views.py | 1 | 9234 | from django.views.generic.edit import CreateView
from django.core.urlresolvers import reverse_lazy, reverse
from django.views.generic.list import ListView
from django.views.generic import DeleteView
from django.db.models import Q
from django.shortcuts import redirect
from django.views.generic.detail import DetailView
f... | gpl-3.0 | -7,470,523,588,939,033,000 | 39.682819 | 127 | 0.700563 | false |
seecr/seecr-test | seecr/test/calltrace.py | 1 | 6216 | ## begin license ##
#
# "Seecr Test" provides test tools.
#
# Copyright (C) 2005-2009 Seek You Too (CQ2) http://www.cq2.nl
# Copyright (C) 2012, 2019-2021 Seecr (Seek You Too B.V.) https://seecr.nl
#
# This file is part of "Seecr Test"
#
# "Seecr Test" is free software; you can redistribute it and/or modify
# it under ... | gpl-2.0 | 4,696,377,958,694,295,000 | 37.85 | 171 | 0.624517 | false |
bluerover/6lbr | examples/6lbr/test/RouterLlsec.py | 1 | 1672 | #!/usr/bin/python2.7
import unittest
import config
from time import sleep
class RouterLlsec(config.scenarios, unittest.TestCase):
def modeSetUp(self):
config.security_layer=1
self.support.backbone.prefix=config.eth_prefix
self.support.wsn.prefix=config.wsn_prefix
self.br = self.sup... | bsd-3-clause | 8,836,917,602,680,402,000 | 51.25 | 168 | 0.691986 | false |
sam-m888/gprime | gprime/datehandler/test/dateparser_test.py | 1 | 4932 | # -*- coding: utf-8 -*-
#
# gPrime - A web-based genealogy program
#
# Copyright (C) 2013 Vassilii Khachaturov
#
# 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 Lic... | gpl-2.0 | 4,527,299,556,007,412,000 | 38.056 | 97 | 0.653011 | false |
iesugrace/tree | view.py | 1 | 17773 | """
Author: Joshua Chen
Date: 2015-12-30
Location: Shenzhen
Desc: Application that makes use of the acl library
to maintain a View database.
"""
from lib import *
from acl import *
import re
import sys
class View:
""" Represents a view entry in the view database.
When we process the view config, only the view... | gpl-2.0 | 2,059,163,580,106,679,300 | 36.495781 | 77 | 0.559332 | false |
MaYaSeVeN/Reverse-IP-Bing-API | reverseIP.py | 1 | 8382 | # -*- coding: utf-8 -*-
__author__ = 'Nop Phoomthaisong (aka @MaYaSeVeN)'
__version__ = 'reverseIP version 1.0 ( http://mayaseven.com )'
import urllib
import urllib2
import json
import re
import sys
import optparse
import socket
def main():
print "\n" + __version__
usage = "Usage: python " + sys.argv[
... | gpl-2.0 | 5,043,467,834,300,942,000 | 36.756757 | 142 | 0.517299 | false |
bokeh/bokeh | tests/unit/bokeh/core/test_templates.py | 1 | 3107 | #-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2021, Anaconda, Inc., and Bokeh Contributors.
# All rights reserved.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#-------------------------------------------------------------------... | bsd-3-clause | 5,802,592,885,021,280,000 | 40.426667 | 91 | 0.380753 | false |
chmanchester/firefox-ui-tests | firefox_puppeteer/ui/toolbars.py | 1 | 13343 | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from marionette import Wait, By
from ..api.keys import Keys
from ..api.l10n import L10n
from ..base import BaseLib
from... | mpl-2.0 | 4,035,289,342,934,853,000 | 32.191542 | 92 | 0.601589 | false |
wdmchaft/taskcoach | taskcoachlib/gui/dialog/preferences.py | 1 | 19285 | # -*- coding: UTF-8 -*-
'''
Task Coach - Your friendly task manager
Copyright (C) 2004-2010 Task Coach developers <developers@taskcoach.org>
Copyright (C) 2008 Rob McMullen <rob.mcmullen@gmail.com>
Task Coach is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License ... | gpl-3.0 | -8,869,947,193,191,827,000 | 43.090069 | 111 | 0.597454 | false |
LettError/filibuster | Lib/filibuster/content/horoscope.py | 1 | 7144 | # -*- coding: UTF-8 -*-
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ---------
# Contributed by Erik van Blokland and Jonathan Hoefler
#
# FILIBUSTERb
#
# MIT License
#
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ---------
"""
living
- - - - ... | mit | -2,019,195,695,617,608,200 | 34.502488 | 300 | 0.539518 | false |
jmwright/cadquery-projects | generative-design/simple_beam/simple_beam_design.py | 1 | 1744 | from random import randint
import cadquery as cq
from Helpers import show
# Generates a random solid, and keeps trying till it finds one
def generate(width=10, height=10, startingPoints=6):
points = []
# Make sure that we get stop points for the random points that make sense
xStop = w
yStop = h / 2.0... | apache-2.0 | 5,019,286,939,047,338,000 | 25.424242 | 77 | 0.643349 | false |
mnizol/ormpy | test/TestPopulation.py | 1 | 26387 | ##############################################################################
# Package: ormpy
# File: TestPopulation.py
# Author: Matthew Nizol
##############################################################################
""" This file contains unit tests for the lib.Population module. """
import os, sys, re
f... | gpl-2.0 | -7,042,184,542,609,720,000 | 37.409025 | 92 | 0.542729 | false |
heromod/migrid | mig/cgi-bin/showre.py | 1 | 1100 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# --- BEGIN_HEADER ---
#
# showre - [insert a few words of module description on this line]
# Copyright (C) 2003-2009 The MiG Project lead by Brian Vinter
#
# This file is part of MiG.
#
# MiG is free software: you can redistribute it and/or modify
# it under the terms of th... | gpl-2.0 | 4,900,057,541,474,287,000 | 30.428571 | 81 | 0.739091 | false |
theo-l/django | django/utils/deprecation.py | 4 | 5058 | import asyncio
import inspect
import warnings
from asgiref.sync import sync_to_async
class RemovedInDjango40Warning(DeprecationWarning):
pass
class RemovedInDjango41Warning(PendingDeprecationWarning):
pass
RemovedInNextVersionWarning = RemovedInDjango40Warning
class warn_about_renamed_method:
def _... | bsd-3-clause | -4,542,584,378,597,957,000 | 34.87234 | 90 | 0.602017 | false |
Yukarumya/Yukarum-Redfoxes | testing/mozbase/mozprocess/tests/test_mozprocess.py | 1 | 8479 | #!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
import os
import subprocess
import sys
import proctest
import mozunit
from mozprocess import pr... | mpl-2.0 | 6,777,982,416,933,544,000 | 34.776371 | 99 | 0.543342 | false |
prozum/mastermixer | web/web.py | 1 | 3740 | # -*- coding: utf-8 -*-
"""
:copyright: (c) 2014 by Armin Ronacher.
:copyright: (c) 2014 by Niclas Moeslund Overby.
:license: BSD, see LICENSE for more details.
"""
from sqlite3 import dbapi2 as sqlite3
from flask import Flask, request, session, g, redirect, url_for, abort, \
render_template, flash
a... | mit | -8,129,914,217,948,837,000 | 28.210938 | 129 | 0.615138 | false |
swannapa/erpnext | erpnext/accounts/doctype/subscription/subscription.py | 1 | 10400 | # -*- coding: utf-8 -*-
# Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
import calendar
from frappe import _
from frappe.desk.form import assign_to
from frappe.utils.jinja import validate_templa... | gpl-3.0 | -6,931,336,271,616,514,000 | 32.551613 | 104 | 0.710288 | false |
googleapis/googleapis-gen | google/ads/googleads/v6/googleads-py/google/ads/googleads/v6/services/services/currency_constant_service/transports/grpc.py | 1 | 10221 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | -9,060,951,187,651,923,000 | 43.633188 | 112 | 0.611878 | false |
JuhaniImberg/cses.py | cses/commands/actions.py | 1 | 6758 | import click
import sys
import time
import os
from cses.cli import cli
from cses.api import API
from cses.db import DB
from cses.commands.tasks import pass_course
from cses.commands.tasks import pass_task
from cses.tasks import detect_type, languages
from cses.ui import clr, color_prompt
@cli.command()
@click.pass_c... | mit | -2,871,418,818,631,801,300 | 28.382609 | 79 | 0.583309 | false |
festicket/django-notification | notification/migrations/0002_version_2.py | 1 | 9845 | # -*- 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):
# Renaming field 'Notice.user'
db.rename_column('notification_notice', 'user_id', 'recipient_id')
#... | mit | -3,072,889,652,861,836,300 | 70.347826 | 217 | 0.555104 | false |
tmshv/k2 | Tools/qgis_export_street_features.py | 1 | 1910 | # -*- coding: utf-8 -*-
import re
import os
import json
out_filename = os.path.expanduser('~/osm_features.geojson')
layer = iface.activeLayer()
# features = layer.getFeatures()
features = layer.selectedFeatures()
properties = [('OSM_ID', int), 'NAME', 'REF', 'HIGHWAY', 'ONEWAY', 'BRIGDE', 'TUNNEL', 'MAXSPEED', 'LA... | mit | 8,231,745,914,096,852,000 | 22.8875 | 127 | 0.592147 | false |
epam/DLab | infrastructure-provisioning/src/general/scripts/azure/common_stop_notebook.py | 1 | 3644 | #!/usr/bin/python
# *****************************************************************************
#
# Copyright (c) 2016, EPAM SYSTEMS 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
#
#... | apache-2.0 | 2,829,598,500,970,698,000 | 35.808081 | 105 | 0.591109 | false |
NeCTAR-RC/nova | nova/availability_zones.py | 1 | 9190 | # Copyright (c) 2012 OpenStack Foundation
# 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 ... | apache-2.0 | 473,693,852,520,149,500 | 37.613445 | 79 | 0.626224 | false |
ahmadassaf/zulip | zerver/views/messages.py | 1 | 43747 | from __future__ import absolute_import
from django.utils.translation import ugettext as _
from django.utils.timezone import now
from django.conf import settings
from django.core import validators
from django.core.exceptions import ValidationError
from django.db import connection
from django.db.models import Q
from dja... | apache-2.0 | -1,849,675,274,020,769,500 | 43.685393 | 183 | 0.605207 | false |
emirot/codefights | interviewPractice/isListPalindrome.py | 1 | 1577 | # Definition for singly-linked list:
# class ListNode(object):
# def __init__(self, x):
# self.value = x
# self.next = None
#
def isListPalindrome(l):
tmp = l
list_len = 0
left = 0
right = 0
while tmp:
list_len += 1
tmp = tmp.next
tmp = l
if list_len == 0 or ... | apache-2.0 | -476,341,232,066,421,950 | 22.893939 | 42 | 0.464172 | false |
lmazuel/azure-sdk-for-python | azure-batch/azure/batch/models/pool_evaluate_auto_scale_options.py | 1 | 1773 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit | -4,791,265,605,864,592,000 | 44.461538 | 106 | 0.663847 | false |
Robobench/rapman-subuser | logic/subuserCommands/subuser.py | 1 | 5001 | #!/usr/bin/env python
# This file should be compatible with both Python 2 and 3.
# If it is not, please file a bug report.
import pathConfig
#external imports
import sys,optparse
#internal imports
import subuserlib.classes.user,subuserlib.commandLineArguments,subuserlib.subuser
def parseCliArgs(sysargs):
usage = "u... | lgpl-3.0 | -6,174,975,571,733,158,000 | 32.790541 | 168 | 0.707259 | false |
jean/sentry | src/sentry/features/__init__.py | 1 | 1610 | from __future__ import absolute_import
from .base import * # NOQA
from .handler import * # NOQA
from .manager import * # NOQA
default_manager = FeatureManager() # NOQA
default_manager.add('auth:register')
default_manager.add('organizations:api-keys', OrganizationFeature) # NOQA
default_manager.add('organizations... | bsd-3-clause | 6,863,698,881,766,799,000 | 50.935484 | 81 | 0.786957 | false |
saulshanabrook/pushgp.py | setup.py | 1 | 1109 | from setuptools import setup, find_packages
setup(
name='pushgp',
version='0.1.0',
description='Use genetic programming, implemented with Push, for machine learning.',
long_description=open('README.rst').read(),
author='Saul Shanabrook',
author_email='s.shanabrook@gmail.com',
url='https://g... | bsd-3-clause | -5,720,976,648,348,623,000 | 30.685714 | 90 | 0.597836 | false |
gtamazian/bioformats | bioformats/eggnog.py | 1 | 4319 | #!/usr/bin/env python3
# -*- coding: utf8 -*-
# Gaik Tamazian, 2019
# mail (at) gtamazian (dot) com
"""Routines for reading, writing and processing eggNOG output files."""
import sys
from . import gff3
from . import snpeff
from . import vcf
assert sys.version_info >= (3, 5), "Python 3.5 or higher required"
def lo... | mit | 1,900,790,480,074,695,400 | 35.294118 | 76 | 0.500347 | false |
stormi/tsunami | src/secondaires/exportaide/config.py | 1 | 2088 | # -*-coding:Utf-8 -*
# Copyright (c) 2013 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
# lis... | bsd-3-clause | 5,959,338,843,308,739,000 | 46.272727 | 79 | 0.775962 | false |
amdouglas/OpenPNM | test/integration/test_source1.py | 1 | 4317 | import OpenPNM
import scipy as sp
print('-----> Using OpenPNM version: '+OpenPNM.__version__)
pn = OpenPNM.Network.Cubic(shape=[10,10,40],spacing=0.0001)
pn.add_boundaries()
Ps = pn.pores('boundary',mode='not')
Ts = pn.find_neighbor_throats(pores=Ps,mode='intersection',flatten=True)
geom = OpenPNM.Geometry.Toray090(ne... | mit | 9,075,524,792,746,184,000 | 48.62069 | 139 | 0.506139 | false |
luwei0917/awsemmd_script | script/BuildAllAtomsFromLammps_seq.py | 1 | 12949 | #!/usr/bin/python
# ----------------------------------------------------------------------
# Copyright (2010) Aram Davtyan and Garegin Papoian
# Papoian's Group, University of Maryland at Collage Park
# http://papoian.chem.umd.edu/
# Last Update: 03/04/2011
# ---------------------------------------------------------... | mit | -3,018,403,266,057,203,700 | 29.75772 | 104 | 0.426211 | false |
monkeysecurity/botor | setup.py | 1 | 1204 | """
Botor
=====
A thin wrapper around boto3
:copyright: (c) 2016 by Netflix, see AUTHORS for more
:license: Apache, see LICENSE for more details.
"""
import sys
import os.path
from setuptools import setup, find_packages
ROOT = os.path.realpath(os.path.join(os.path.dirname(__file__)))
# When executing the setup.py,... | apache-2.0 | -2,690,839,259,569,215,500 | 20.909091 | 76 | 0.628738 | false |
aitjcize/QCamber | src/codegen/codegen.py | 1 | 3393 | #!/usr/bin/env python
#-*- coding: utf-8 -*-
#
# codegen.py
#
# Copyright (C) 2013 - Wei-Ning Huang (AZ) <aitjcize@gmail.com>
# All Rights reserved.
#
# 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 Found... | gpl-3.0 | 3,293,000,234,375,598,600 | 29.845455 | 80 | 0.591217 | false |
coll-gate/collgate | server/accession/migrations/0007_auto_20180328_1749.py | 1 | 2013 | # Generated by Django 2.0.2 on 2018-03-28 15:49
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('accession', '0006_action_name'),
]
operations = [
migrations.Cr... | mit | -8,494,079,501,967,267,000 | 41.829787 | 180 | 0.604074 | false |
jcjl013/ylplines | setup.py | 1 | 1461 | #!/usr/bin/env python
"""
ylplines - Clarity for Yelp
Copyright (C) 2016 Jeff Lee
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 versi... | gpl-3.0 | 9,151,149,374,232,757,000 | 27.647059 | 69 | 0.638604 | false |
Balandat/cont_no_regret | ContNoRegret/NoRegretAlgos.py | 1 | 23992 | '''
Basic Algorithms for the Continuous No-Regret Problem.
@author: Maximilian Balandat
@date May 25, 2015
'''
import numpy as np
from .LossFunctions import ZeroLossFunction, ctypes_integrate
from .DualAveraging import compute_nustar
from .Domains import nBox, UnionOfDisjointnBoxes, DifferenceOfnBoxes
from .Potential... | mit | -6,658,337,883,254,105,000 | 55.056075 | 152 | 0.520007 | false |
Jan-zou/LeetCode | python/HashTable/205_isomorphic_strings.py | 1 | 1289 | # !/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Description:
Given two strings s and t, determine if they are isomorphic.
Two strings are isomorphic if the characters in s can be replaced to get t.
All occurrences of a character must be replaced with another character while preserving the order of chara... | mit | -6,590,881,442,122,380,000 | 29.690476 | 116 | 0.576416 | false |
gaasedelen/lighthouse | coverage/frida/frida-drcov.py | 1 | 10181 | #!/usr/bin/env python
from __future__ import print_function
import argparse
import json
import os
import signal
import sys
import frida
"""
Frida BB tracer that outputs in DRcov format.
Frida script is responsible for:
- Getting and sending the process module map initially
- Getting the code execution events
- Pars... | mit | -5,940,395,265,699,300,000 | 28.682216 | 82 | 0.595718 | false |
nextgis-extra/tests | lib_gdal/pyscripts/test_gdal_ls_py.py | 1 | 9097 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# $Id: test_gdal_ls_py.py 33811 2016-03-29 23:12:41Z goatbar $
#
# Project: GDAL/OGR Test Suite
# Purpose: gdal_ls.py testing
# Author: Even Rouault <even dot rouault @ mines-paris dot org>
... | gpl-2.0 | 6,877,321,798,984,083,000 | 28.440129 | 182 | 0.540288 | false |
anandpdoshi/frappe | frappe/commands/site.py | 1 | 14212 | from __future__ import unicode_literals, absolute_import
import click
import hashlib, os, sys
import frappe
from frappe.commands import pass_context, get_site
from frappe.commands.scheduler import _is_scheduler_enabled
from frappe.limits import update_limits, get_limits
from frappe.installer import update_site_config
f... | mit | -2,448,101,645,080,719,400 | 31.226757 | 244 | 0.726428 | false |
berth64/modded_modded_1257ad | source/header_common.py | 1 | 23877 | ###################################################
# header_common.py
# This file contains common declarations.
# DO NOT EDIT THIS FILE!
###################################################
#client events
multiplayer_event_set_item_selection = 0
multiplayer_event_set_bot_selection ... | agpl-3.0 | -3,918,707,714,485,447,000 | 38.19697 | 188 | 0.631863 | false |
telnik/jCnC | db_manip.py | 1 | 4702 | #!/usr/bin/python2
import sys, sqlite3, argparse
class dbmanager:
"""
DataStore Class for Juniper Devices
Stores hosts, thier usernames and passwords, and groups.
Groupes are lists of hosts with names.
Methods:
create_host -- insert a new host
modify_host_name -- modify a hosts host name
modify_host_user --... | mit | -5,491,197,333,589,773,000 | 34.89313 | 241 | 0.711399 | false |
pydo/vlc-gif-creator | gif_creator.py | 1 | 4266 | #!/usr/bin/env python
import configparser
import os
import sys
import xml.etree.ElementTree as ET
from pathlib import Path
from urllib.parse import unquote
import requests
from moviepy.editor import VideoFileClip
from requests.exceptions import ConnectionError
def generate_gif(media_path: str, time: int, size: floa... | mit | 294,241,484,578,071,300 | 30.585185 | 114 | 0.618902 | false |
dialogflow/fulfillment-translate-python | translate_response.py | 1 | 4345 | #!/usr/bin/env python
# Copyright 2017 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 | -1,530,639,517,313,129,200 | 40.778846 | 79 | 0.690679 | false |
schaabs/sandbox | py/keyvault/crytpography/algorithms/rsa_oaep.py | 1 | 1049 | from ..algorithm import EncryptionAlgorithm
from ..transform import CryptoTransform
from abc import ABCMeta
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.asymmetric import padding
def _default_encryption_padding():
return padding.OAEP(mgf=padding.MGF1(algorithm=hashes.SHA1(... | mit | 3,135,554,473,970,366,500 | 25.225 | 103 | 0.720686 | false |
UncleRus/MultiConf | src/ui/dialogs.py | 1 | 3974 | # -*- coding: utf-8 -*-
from PySide.QtCore import *
from PySide.QtGui import *
class AsyncProcess (QThread):
progressUpdated = Signal (int)
changed = Signal (str)
errorOccured = Signal (str)
bannerUpdated = Signal (str)
def __init__ (self, target, parent, changeCursor = False):
... | gpl-3.0 | 6,590,716,775,031,166,000 | 31.394958 | 127 | 0.60921 | false |
taohungyang/cloud-custodian | tools/c7n_gcp/tests/test_mu_gcp.py | 1 | 4369 | # Copyright 2018 Capital One Services, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | apache-2.0 | -5,203,804,360,819,266,000 | 36.34188 | 97 | 0.615702 | false |
jbking/python-stdnet | stdnet/backends/redisb/client/extensions.py | 1 | 16403 | import os
from hashlib import sha1
from collections import namedtuple
from datetime import datetime
from copy import copy
from stdnet.utils.structures import OrderedDict
from stdnet.utils import iteritems, format_int
from stdnet import odm
try:
import redis
except ImportError: # pragma nocover
... | bsd-3-clause | -7,290,421,867,818,127,000 | 27.87796 | 79 | 0.533805 | false |
graziano-giuliani/pythoncode | pyuwphysret/common/pyfiles/atmos/mr2rho.py | 1 | 1485 | #!/usr/bin/env python
# dp2e.py
import numpy as num
def mr2rho(w,t,p):
"""rho = mr2rho(w,t,p)
w in g/kg
t in K
p in mb
This was provide by Holger Linne' from Max Planck Institute.
Dave Turner
Pacific Northwest National Laboratory
Currently at the University of Wisconsin-Madison
dave.turner@pnl.gov
"""
rh... | mit | -3,557,386,664,818,324,000 | 33.534884 | 77 | 0.521212 | false |
felixwidmaier/bull | setup.py | 1 | 1095 | """
Copyright 2017 Felix Widmaier
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 wr... | apache-2.0 | -2,376,815,182,173,399,600 | 35.5 | 88 | 0.697717 | false |
dannysellers/django_orders | load_accts.py | 1 | 1434 | import os
import csv
def fix_date(datestr):
"""
Dates in the account_list are MM/DD/YYYY, but Django's DateField
requires YYYY-MM-DD format
"""
_createdate = datestr.split('/')
if len(_createdate[2]) == 2:
_createdate[2] = '20' + str(_createdate[2])
_createdate = [_createdate[2], _createdate[0], _createdate[... | gpl-2.0 | -726,519,760,493,132,400 | 29.531915 | 76 | 0.677824 | false |
houssine78/addons | partner_wharehouse/__openerp__.py | 1 | 1444 | # -*- coding: utf-8 -*-
##############################################################################
#
# Business Open Source Solution
# Copyright (C) 2018 Coop IT Easy SCRLfs.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public Li... | agpl-3.0 | -7,691,341,484,493,901,000 | 34.195122 | 78 | 0.573112 | false |
googleapis/python-dialogflow-cx | tests/unit/gapic/dialogflowcx_v3beta1/test_sessions.py | 1 | 65364 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | 7,197,941,075,215,062,000 | 36.350857 | 139 | 0.661802 | false |
zjj/trac_hack | trac/db_default.py | 1 | 13648 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2003-2009 Edgewall Software
# Copyright (C) 2003-2005 Daniel Lundin <daniel@edgewall.com>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http... | bsd-3-clause | -2,227,831,291,867,234,300 | 32.698765 | 80 | 0.543083 | false |
sredmond/menlo-mathsci-help | db_repository/versions/006_migration.py | 1 | 1180 | from sqlalchemy import *
from migrate import *
from migrate.changeset import schema
pre_meta = MetaData()
post_meta = MetaData()
user = Table('user', post_meta,
Column('id', Integer, primary_key=True, nullable=False),
Column('email', String(length=120)),
Column('hashed_password', String(length=60)),
C... | mit | -7,481,781,320,161,326,000 | 32.714286 | 68 | 0.689831 | false |
abalakh/robottelo | docs/conf.py | 1 | 3707 | """Sphinx documentation generator configuration file.
The full set of configuration options is listed on the Sphinx website:
http://sphinx-doc.org/config.html
"""
import sys
import os
# pylint:disable=invalid-name
# Add the Robottelo root directory to the system path. This allows references
# such as :mod:`robottelo... | gpl-3.0 | 2,605,090,931,222,616,600 | 29.138211 | 79 | 0.661991 | false |
bigswitch/nova | nova/tests/functional/api_sample_tests/test_preserve_ephemeral_rebuild.py | 1 | 3070 | # Copyright 2013 IBM Corp.
#
# 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 t... | apache-2.0 | 4,872,734,969,193,002,000 | 41.054795 | 78 | 0.606515 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.