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 |
|---|---|---|---|---|---|---|---|---|---|---|
larryhq/railguns | railguns/django/generics.py | 1 | 1295 | from django.conf import settings
from django.shortcuts import render
from django.utils.translation import ugettext_lazy as _
from django.views.generic.base import TemplateView
# headers = get_headers(request, ['HTTP_APP_SCHEME', 'HTTP_USER_AGENT', 'HTTP_HOST'])
# print(headers)
def get_headers(request, keys=[]):
... | mit | 7,655,970,432,009,576,000 | 42.166667 | 144 | 0.671042 | false |
CaptFrank/EsxiController | server/app/config/models.py | 1 | 8121 | """
models.py
==========
This is the models interface for the database for the config
applications.
:copyright: (c) 2015 by GammaRay.
:license: BSD, see LICENSE for more details.
Author: GammaRay
Version: 1.0
Date: 3/11/2015
"""
"""
====================... | gpl-2.0 | -6,961,536,075,342,810,000 | 26.435811 | 103 | 0.430489 | false |
GuLinux/PySpectrum | reference_catalogues.py | 1 | 1870 | from PyQt5.QtCore import QStandardPaths
import os
import json
import urllib.request
import gzip
import collections
class ReferenceCatalogues:
def __init__(self, database):
self.database = database
c = database.cursor()
cats = c.execute('SELECT id, "table", "name", spectra_url, gzipped, file... | gpl-3.0 | -121,556,637,745,708,210 | 45.775 | 183 | 0.605882 | false |
TemoaProject/temoa | data_processing/GraphVizFormats.py | 1 | 5096 | # SVG Formats
results_dot_fmt = """\
strict digraph model {
label = "Results for %(period)s"
rankdir = "LR" ;
smoothtype = "power_dist" ;
splines = "%(splinevar)s" ;
node [ style="filled" ] ;
edge [ arrowhead="vee" ] ;
subgraph unused_techs {
node [
color = "%(unused_color)s",
fontcolor = "%(un... | gpl-2.0 | -627,595,549,209,957,600 | 16.697917 | 89 | 0.57084 | false |
GNOME/dia | plug-ins/python/dot2dia.py | 1 | 9213 | # PyDia DOT Import
# Copyright (c) 2009 Hans Breuer <hans@breuer.org>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later v... | gpl-2.0 | -8,080,859,749,009,912,000 | 31.670213 | 152 | 0.628568 | false |
aleksandra-tarkowska/django | tests/forms_tests/tests/test_forms.py | 2 | 131267 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import copy
import datetime
import json
import warnings
from django.core.exceptions import NON_FIELD_ERRORS
from django.core.files.uploadedfile import SimpleUploadedFile
from django.core.validators import RegexValidator
from django.forms import (
Boo... | bsd-3-clause | 1,573,278,644,133,027,800 | 56.634446 | 519 | 0.615989 | false |
EmanueleCannizzaro/scons | test/Interactive/help.py | 1 | 2710 | #!/usr/bin/env python
#
# Copyright (c) 2001 - 2016 The SCons Foundation
#
# 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 us... | mit | -3,640,869,122,940,750,000 | 28.78022 | 98 | 0.675646 | false |
delattreb/TemperatureHumidityServer | Doc/ssd1306-master/tests/test_sh1106.py | 1 | 2109 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from unittest.mock import call, Mock
except ImportError:
from mock import call, Mock
import pytest
from oled.device import sh1106
from oled.render import canvas
import baseline_data
serial = Mock(unsafe=True)
def setup_function(function):
serial.reset... | gpl-3.0 | -2,187,029,735,590,444,800 | 24.409639 | 72 | 0.626363 | false |
ICTU/quality-time | docs/src/create_metrics_and_sources_md.py | 1 | 8299 | """Script to convert the data model in a Markdown file."""
import json
import pathlib
import re
import sys
TYPE_DESCRIPTION = dict(
url="URL",
string="String",
multiple_choice="Multiple choice",
password="Password",
integer="Integer",
date="Date",
single_choice="Single choice",
multipl... | apache-2.0 | 7,844,623,377,795,428,000 | 44.56044 | 119 | 0.614689 | false |
JustinSGray/Kona | src/kona/test/test_reduced_kkt_vector.py | 1 | 4681 | import unittest
import numpy as np
from kona.linalg.memory import KonaMemory
from dummy_solver import DummySolver
from kona.linalg.vectors.composite import ReducedKKTVector
class ReducedKKTVectorTestCase(unittest.TestCase):
def setUp(self):
solver = DummySolver(10, 0, 5)
self.km = km = KonaMemory... | lgpl-3.0 | 7,608,387,035,014,271,000 | 30.628378 | 75 | 0.594745 | false |
OpenKMIP/PyKMIP | kmip/services/server/monitor.py | 1 | 6822 | # Copyright (c) 2018 The Johns Hopkins University/Applied Physics Laboratory
# 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/LICEN... | apache-2.0 | -7,231,256,344,903,181,000 | 37.982857 | 78 | 0.552331 | false |
kodi-addons/plugin.video.espn_3 | resources/lib/constants.py | 1 | 2272 | OLD_LISTING_MODE = 'OLD_LISTING_MODE'
LIVE_EVENTS_MODE = 'LIVE_EVENTS'
PLAY_MODE = 'PLAY'
PLAY_ITEM_MODE = 'PLAY_ITEM'
PLAY_TV_MODE = 'PLAY_TV'
UPCOMING_MODE = 'UPCOMING'
AUTHENTICATE_MODE = 'AUTHENTICATE'
AUTHENTICATION_DETAILS_MODE = 'AUTHENTICATION_DETAILS'
NETWORK_ID = 'NETWORK_ID'
EVENT_ID = 'EVENT_ID'
SIMULCAS... | gpl-3.0 | -2,405,966,290,796,153,000 | 27.049383 | 91 | 0.680458 | false |
rthallisey/clapper | ansible-tests/mistral/tripleo_validations/actions/load_validations.py | 1 | 2621 | import glob
import logging
import os
import yaml
from mistral.actions import base
LOG = logging.getLogger(__name__)
DEFAULT_METADATA = {
'name': 'Unnamed',
'description': 'No description',
'stage': 'No stage',
'require_plan': True,
'groups': [],
}
VALIDATIONS_DIR = '/usr/share/tripleo-validation... | apache-2.0 | -3,117,070,980,614,347,300 | 30.578313 | 78 | 0.563144 | false |
hkarl/instinf | stellenplan/views.py | 1 | 17219 | # -*- coding: utf-8 -*-
# from django.http import HttpResponse
from django.http import HttpResponseNotFound
from django.conf import settings
from django.views.generic import ListView, View
from django.shortcuts import render
from stellenplan.models import *
from stellenplan.timeline import Timeline, TimelineGroups
f... | gpl-2.0 | -8,266,460,927,362,443,000 | 35.159664 | 180 | 0.554148 | false |
mcrav/XDToolkit | src/emailfuncs.py | 1 | 1465 | '''
#####################################################################
#-------------------EMAIL--------------------------------------------
#####################################################################
'''
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.application import MIMEA... | gpl-3.0 | 5,255,107,755,861,065,000 | 30.847826 | 91 | 0.519454 | false |
tavy14t/tw_project | Testing/Pocket_Testing.py | 1 | 4909 | import os
import sys
import requests
import time
from pocket import Pocket
import webbrowser
import collections
import json
sys.dont_write_bytecode = True
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "trex.settings")
import django
django.setup()
from restapi.models import *
from random import randint
# POCKET_CON... | mit | 6,632,174,290,124,783,000 | 29.302469 | 140 | 0.586881 | false |
stryku/hb | image_processing/tesseract/trainer.py | 1 | 1576 | from subprocess import call
BUILD_DIR='build'
FONTa='Fake Receipt'
LANG='hb'
OUTPUTBASE = LANG + '.' + FONTa
def call_shell(command):
splitted = command.split()
call(splitted)
print(command)
def text2image(text_file):
splitted = str('text2image --text=' + text_file + ' --fonts_dir ..').split()
... | mit | 1,929,229,213,959,798,300 | 20.013333 | 80 | 0.613579 | false |
frankyrumple/smc | modules/ednet/sequentialguid.py | 1 | 5058 | ###### SequentialGUID
import os
import datetime
import sys
from binascii import unhexlify, hexlify
import uuid
class SequentialGUID:
SEQUENTIAL_GUID_AS_STRING = 0
SEQUENTIAL_GUID_AS_BINARY = 1
SEQUENTIAL_GUID_AT_END = 2
def __init__(self):
pass
@staticmethod
def NewGUID(guid_type = SE... | mit | 5,169,569,458,561,843,000 | 36.466667 | 111 | 0.574733 | false |
EdSalisbury/mtgstore | cards/migrations/0004_auto__chg_field_card_multiverse_id.py | 1 | 1724 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'Card.multiverse_id'
db.alter_column(u'cards_card', 'mu... | mit | -511,152,586,451,084,700 | 43.230769 | 123 | 0.580626 | false |
suttond/MODOI | SimulationClient/SimulationClient.py | 1 | 12355 | from multiprocessing.connection import Client
import time
import logging
import socket
import numpy as np
from SimulationUtilities import Configuration_Processing
from SimulationUtilities.Communication_Codes import comm_code
import LinearAlgebra as la
from CustomBFGS import find_geodesic_midpoint
from MetricValues im... | lgpl-3.0 | 1,447,833,398,627,233,500 | 53.192982 | 120 | 0.637556 | false |
7sDream/zhihu-py3 | zhihu/topic.py | 1 | 17794 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import time
from datetime import datetime
from .common import *
from .base import BaseZhihu
class Topic(BaseZhihu):
"""答案类,请使用``ZhihuClient.topic``方法构造对象."""
@class_common_init(re_topic_url)
def __init__(self, url, name=None, session=None):
"""创建话... | mit | -5,743,376,127,175,184,000 | 33.827731 | 79 | 0.495597 | false |
simonzhangsm/voltdb | tools/kit_tools/build_kits.py | 1 | 13604 | #!/usr/bin/env python
import argparse, datetime, getpass, os, sys, shutil, traceback
from fabric.api import run, cd, local, get, settings, lcd, put
from fabric_ssh_config import getSSHInfoForHost
from fabric.context_managers import shell_env
from fabric.utils import abort
#Login as user test, but build in a directory... | agpl-3.0 | -8,301,504,353,190,448,000 | 38.204611 | 222 | 0.600706 | false |
boland1992/SeisSuite | bin/SNR_plots.py | 1 | 4053 | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 16 23:34:00 2015
@author: boland
"""
from seissuite.ant import (pscrosscorr)
import glob
import os
import pickle
#PICKLE_PATH = '/storage/ANT/PROGRAMS/ANT_OUTPUT/OUTPUT/CROSS/06.05.2015-15:53:28/XCORR-STACK_01.01.2014-31.12.2014_datalesspaz.pickle'
#PICKLE_PATH = '/home/... | gpl-3.0 | 5,854,662,131,405,317,000 | 33.649573 | 135 | 0.681964 | false |
jkandasa/integration_tests | cfme/tests/services/test_iso_service_catalogs.py | 1 | 4853 | # -*- coding: utf-8 -*-
import fauxfactory
import pytest
from widgetastic.utils import partial_match
from cfme.common.provider import cleanup_vm
from cfme.services.catalogs.catalog_item import CatalogItem
from cfme.services.service_catalogs import ServiceCatalogs
from cfme.infrastructure.provider import InfraProvider... | gpl-2.0 | -433,454,917,170,736,100 | 40.478632 | 97 | 0.63981 | false |
fras2560/mlsb-platform | api/basic/bat.py | 1 | 8517 | '''
@author: Dallas Fraser
@date: 2016-04-12
@organization: MLSB API
@summary: The basic bat API
'''
from flask_restful import Resource, reqparse
from flask import Response, request
from json import dumps
from api import DB
from api.model import Bat
from api.authentication import requires_admin
from api.errors import B... | apache-2.0 | -8,683,075,583,298,692,000 | 33.905738 | 79 | 0.480099 | false |
waveform80/picroscopy | picroscopy/terminal.py | 1 | 10386 | #!/usr/bin/env python3
# vim: set et sw=4 sts=4 fileencoding=utf-8:
# Copyright 2013 Dave Hughes.
#
# This file is part of picroscopy.
#
# picroscopy 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 ver... | gpl-3.0 | -1,937,034,352,929,545,000 | 37.609665 | 81 | 0.599268 | false |
sani-coop/tinjaca | doc/informe1/_graphviz/fomdes_proc4.py | 1 | 2522 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
BPMN diagram for FOMDES process 1
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from bpmn_pgv import *
import pygraphviz as pgv
__author__ = 'mapologo'
PROCE... | gpl-2.0 | -3,765,425,523,692,363,000 | 36.477612 | 139 | 0.597372 | false |
shashwat91/Wireless_Networking-ET4394 | GNU_Radio/Output/Output_window.py | 1 | 8961 | #!/usr/bin/env python2
##################################################
# GNU Radio Python Flow Graph
# Title: Output Window
# Generated: Sat Apr 30 16:45:27 2016
##################################################
if __name__ == '__main__':
import ctypes
import sys
if sys.platform.startswith('linux'):
... | gpl-3.0 | -1,901,618,430,034,386,400 | 36.810127 | 148 | 0.579734 | false |
AMOboxTV/AMOBox.LegoBuild | plugin.video.salts/scrapers/myvideolinks_scraper.py | 1 | 4919 | """
SALTS XBMC Addon
Copyright (C) 2014 tknorris
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.
T... | gpl-2.0 | -8,640,232,997,686,215,000 | 37.429688 | 191 | 0.599106 | false |
IA-MP/KnightTour | libs/IO/txt_generator.py | 1 | 2729 | import os
from time import time
from libs.IO.input_generator import generate_input
def generate_name_file(kind, path):
"""
This function allows to generate sequential input file name
@param kind: int, 0 if input, 1 if output
@param path: string, the path where generate file
@return: string, the n... | mit | 5,538,565,594,786,700,000 | 33.1125 | 123 | 0.512642 | false |
sbarton272/AcousticBarcodes-Explorations | barcodes/dxfwrite/tests/test_viewport_entity.py | 1 | 1662 | #!/usr/bin/env python
#coding:utf-8
# Created: 10.02.2010
# Copyright (C) 2010, Manfred Moitzi
# License: MIT License
__author__ = "mozman <mozman@gmx.at>"
import unittest
from dxfwrite.entities import Viewport
from dxfwrite import dxfstr, DXFEngine
class TestViewportEntity(unittest.TestCase):
expected = " 0\n... | mit | 3,518,769,548,850,778,000 | 32.24 | 97 | 0.633574 | false |
raelga/gtav_crew_exporter | gtav_crew_exporter.py | 1 | 10812 | #!/usr/bin/python
#### Import modules
from selenium import selenium
from selenium import webdriver
import sys, time, re, string, getopt
#### Constants
default_crew = 'elotrolado'
login_url = 'https://socialclub.rockstargames.com/profile/signin'
base_crew_url = 'http://socialclub.rockstargames.com/crew'
path_gtav_bas... | gpl-2.0 | 1,753,025,060,716,105,000 | 27.452632 | 122 | 0.515631 | false |
jimsize/PySolFC | tests/lib/pysol_tests/import_file1.py | 1 | 4537 | # Written by Shlomi Fish, under the MIT Expat License.
import unittest
from pysollib.acard import AbstractCard
from pysollib.hint import FreeCellSolver_Hint, PySolHintLayoutImportError
import pysollib.stack
class MockItem:
def __init__(self):
pass
def tkraise(self):
return
def addtag(se... | gpl-3.0 | 6,461,702,182,618,086,000 | 26.005952 | 79 | 0.588495 | false |
ActiveState/code | recipes/Python/360698_Extending_pythprolog_syntax/recipe-360698.py | 1 | 8888 | #
# pythologic2.py
#
# Add logic programming (Prolog) syntax and *resolution* into Python.
#
# (c) 2004 Francisco Coelho
# after (c) 2004 Shai Berger
# and AIMA examples
#
import string
import copy
class Struct:
def __init__(self, database, head, subs):
"""
The head and subs are essential - what... | mit | 1,482,748,753,242,608,400 | 27.670968 | 143 | 0.502813 | false |
kevinpt/ripyl | test/test_stats.py | 1 | 3176 | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''Ripyl protocol decode library
Statistical operations test suite
'''
# Copyright © 2013 Kevin Thibedeau
# This file is part of Ripyl.
# Ripyl is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public Licen... | lgpl-3.0 | 1,296,993,798,884,937,000 | 33.674157 | 85 | 0.595591 | false |
adamlwgriffiths/pyfilesystem | fs/watch.py | 1 | 23532 | """
fs.watch
========
Change notification support for FS.
This module defines a standard interface for FS subclasses that support change
notification callbacks. It also offers some WrapFS subclasses that can
simulate such an ability on top of an ordinary FS object.
An FS object that wants to be "watchable" must pro... | bsd-3-clause | -2,816,136,849,653,434,000 | 34.386466 | 130 | 0.581464 | false |
Telestream/telestream-cloud-python-sdk | telestream_cloud_tts_sdk/test/test_fragment.py | 1 | 1571 | # coding: utf-8
"""
Tts API
Description # noqa: E501
The version of the OpenAPI document: 2.0.0
Contact: cloudsupport@telestream.net
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import telestream_cloud_tts
from telest... | mit | 8,340,039,760,802,430,000 | 25.627119 | 81 | 0.590707 | false |
mudyc/deftity | text.py | 1 | 2784 | # deftity - a tool for interaction architect
#
# Copyright (C) 2011 Matti Katila
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any late... | gpl-2.0 | 6,217,041,692,376,003,000 | 32.95122 | 80 | 0.619253 | false |
minesense/VisTrails | vistrails/db/versions/v0_8_1/translate/v0_8_0.py | 2 | 4302 | ###############################################################################
##
## Copyright (C) 2014-2016, New York University.
## Copyright (C) 2011-2014, NYU-Poly.
## Copyright (C) 2006-2011, University of Utah.
## All rights reserved.
## Contact: contact@vistrails.org
##
## This file is part of VisTrails.
##
## ... | bsd-3-clause | -7,632,964,265,899,056,000 | 48.448276 | 87 | 0.630404 | false |
tysonholub/twilio-python | tests/integration/taskrouter/v1/workspace/test_task_channel.py | 1 | 12513 | # coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from tests import IntegrationTestCase
from tests.holodeck import Request
from twilio.base.exceptions import TwilioException
from twilio.http.response import Response
class TaskChannelTestCase(Integ... | mit | 5,694,684,889,522,185,000 | 41.706485 | 160 | 0.566291 | false |
bohdan-shramko/learning-python | source/chapter05/geek_translator.py | 1 | 2413 | # Geek Translator
# Demonstrates using dictionaries
geek = {"404": "clueless. From the web error message 404, meaning page not found.",
"Googling": "searching the Internet for background information on a person.",
"Keyboard Plaque" : "the collection of debris found in computer keyboards.",
"Li... | mit | -6,250,750,825,611,069,000 | 31.173333 | 95 | 0.56237 | false |
kacchan822/django-chatwork | chatwork/utils.py | 1 | 1552 | from django.template.loader import render_to_string
from .api import ChatworkApiClient
client = ChatworkApiClient()
api_account_info = client.get_my_profile()
api_account_id = getattr(api_account_info, 'account_id', '0')
api_room_id = getattr(api_account_info, 'room_id', '0')
def get_rooms(room_type='group'):
... | mit | 5,175,957,696,668,686,000 | 26.764706 | 70 | 0.632768 | false |
COCS4950G7/COSC4950 | Source/demoCrack2.py | 1 | 6002 | # Chris Bugg
# 10/1/14
# NOTE: Runs on Python 2.7.6
# UPDATE:
# 10/10/14
# -> Now runs with 8 sub-processes using
# the [a-z] alphabet
import hashlib
from time import time
from multiprocessing import Process, Pipe, Lock
import os
class DemoCrack():
algorithm = "sha256"
origHash = '... | gpl-3.0 | -6,494,871,366,440,019,000 | 18.178914 | 74 | 0.489837 | false |
weaponsjtu/RecommederSystem | data_model.py | 1 | 1487 | import sys
import math
import time
class MatrixModel():
def __init__(self, data_dic, matrix = None, user_list = None, item_list = None, train_conf, test_conf):
self.data_dic = data_dic
self.train_conf = train_conf
self.test_conf = test_conf
# compute the user_item matrix
# integrate t... | apache-2.0 | -184,760,025,857,332,130 | 24.637931 | 107 | 0.488904 | false |
home-assistant/home-assistant | homeassistant/components/juicenet/__init__.py | 1 | 3040 | """The JuiceNet integration."""
from datetime import timedelta
import logging
import aiohttp
from pyjuicenet import Api, TokenError
import voluptuous as vol
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
from homeassistant.const import CONF_ACCESS_TOKEN
from homeassistant.core import HomeAssistan... | apache-2.0 | 7,707,611,442,826,321,000 | 27.679245 | 82 | 0.694079 | false |
JulianKunkel/siox | tools/siox-skeleton-builder/layers/posix/template.py | 1 | 1048 | template = {
'errorErrno': {
'variables': 'Condition="ret<0" Activity=sioxActivity',
'afterFirst': ''' int errsv = errno;''',
'after': '''
if ( %(Condition)s ){
siox_activity_report_error( %(Activity)s, translateErrnoToSIOX(errsv) );
... | lgpl-3.0 | -3,724,696,507,870,285,000 | 42.666667 | 233 | 0.597328 | false |
gt-ros-pkg/hrl-pr2 | hrl_pr2_lib/src/hrl_pr2_lib/pr2.py | 1 | 22369 | import roslib; roslib.load_manifest('hrl_pr2_lib')
import rospy
import actionlib
import actionlib_msgs.msg as amsg
import move_base_msgs.msg as mm
import sensor_msgs.msg as sm
import pr2_controllers_msgs.msg as pm
import trajectory_msgs.msg as tm
import pr2_mechanism_msgs.srv as pmm
import std_msgs.msg as stdm
import ... | bsd-3-clause | 4,273,235,845,285,186,600 | 34.338073 | 137 | 0.589611 | false |
qenops/dGraph | test/test5.py | 1 | 5488 | #!/usr/bin/python
'''Test for an openGL based stereo renderer - test binocular rendering to a single window
David Dunn
Feb 2017 - created
www.qenops.com
'''
__author__ = ('David Dunn')
__version__ = '1.0'
import OpenGL
OpenGL.ERROR_CHECKING = False # Uncomment for 2x speed up
OpenGL.ERROR_LOGGING = False ... | apache-2.0 | 1,592,792,672,699,302,100 | 35.586667 | 174 | 0.622449 | false |
glenngillen/dotfiles | .vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_peephole_opt.py | 1 | 33978 |
import pytest
from tests_python.debugger_unittest import IS_PY36_OR_GREATER, IS_CPYTHON
from tests_python.debug_constants import TEST_CYTHON
pytestmark = pytest.mark.skipif(not IS_PY36_OR_GREATER or not IS_CPYTHON or not TEST_CYTHON, reason='Requires CPython >= 3.6')
import sys
import unittest
from _pydevd_fram... | mit | -7,548,279,328,693,912,000 | 32.495431 | 126 | 0.411178 | false |
pearu/sympycore | sympycore/tests/test_lowlevel.py | 1 | 6359 |
from sympycore.core import Expr, Pair, heads, IntegerList
from sympycore.heads import *
class MyExpr(Expr):
@classmethod
def convert(cls, obj, typeerror=True):
if isinstance(obj, cls):
return obj
if isinstance(obj, (int, long, float, complex)):
return MyExpr(NUMBER, ob... | bsd-3-clause | 4,462,805,225,297,965,000 | 29.868932 | 92 | 0.577135 | false |
MediaKraken/MediaKraken_Deployment | source/testing/test_database/test_database_metadata_gamesdb.py | 1 | 1731 | """
Copyright (C) 2016 Quinn D Granfor <spootdev@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 distributed in the hope that it will be useful, but
... | gpl-3.0 | -1,576,640,985,692,887,800 | 34.326531 | 99 | 0.6632 | false |
taxpon/pyomni | pyomni/pyomni.py | 1 | 5467 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import sys
import io
import zipfile
import logging
import datetime
from pyomni import util
from pyomni.webdav.WebdavClient import CollectionStorer
from pyomni.webdav.WebdavClient import ResourceStorer
from pyomni.webdav.WebdavClient import parseDigestAuthI... | mit | -726,213,792,981,818,500 | 28.235294 | 87 | 0.527529 | false |
carloderamo/mushroom | mushroom_rl/environments/mujoco_envs/humanoid_gait/_external_simulation/mtc_model.py | 1 | 7802 | import numpy as np
"""
It is created for using MTC in Mujoco. The dynamics in this model is not continuous. The integration error will be
accumulated overtime. And the system might get unstable if the timestep is too large. It is recommended to set the
timestamp lower than 5e-4 to get decent results.
The model is cre... | mit | -4,500,805,567,716,075,500 | 40.721925 | 120 | 0.566265 | false |
BrentonEarl/slpkg | slpkg/log_deps.py | 1 | 1667 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# log_deps.py file is part of slpkg.
# Copyright 2014-2015 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# All rights reserved.
# Slpkg is a user-friendly package manager for Slackware installations
# https://github.com/dslackw/slpkg
# Slpkg is free software: you can redist... | gpl-3.0 | -3,798,792,738,748,708,400 | 34.468085 | 70 | 0.652669 | false |
m4nh/roars | scripts/roars/training/meta_trainer.py | 1 | 4030 | from abc import ABCMeta, abstractmethod, abstractproperty
import os
#TODO: li abbiamo da qualche parte questi?
LABEL_FOLDER_NAME = 'labels'
LABEL_FILES_EXTENSION = 'txt'
IMAGE_FOLDER_NAME = 'images'
IMAGE_FILES_EXTENSION = 'jpg'
CLASS_FILE = 'class_list.txt'
class meta_trainer():
"""
Meta class for a generi... | gpl-3.0 | 7,888,146,045,697,104,000 | 29.308271 | 153 | 0.588337 | false |
RiceMunk/omnifit | omnifit/fitter/fitter.py | 1 | 23070 | import numpy as np
from lmfit import minimize, Parameters, Parameter
from astropy import units as u
from .. import spectrum
from functions import *
class Fitter():
"""
A class for multi-component fitting to spectroscopic data of ices.
This is the heart of Omnifit, which receives spectra from the spectrum
modu... | bsd-3-clause | 300,213,225,591,060,030 | 37.971284 | 118 | 0.670741 | false |
apache/chemistry-cmislib | src/cmislib/net.py | 2 | 5195 | # -*- coding: utf-8 -*-
#
# 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 Li... | apache-2.0 | 5,155,019,192,614,484,000 | 31.879747 | 75 | 0.561309 | false |
joaomoreno/facilis | facilis/core/web.py | 1 | 2344 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Facilis
# João Moreno <http://www.joaomoreno.com/>
# GPLv3
from SocketServer import ThreadingMixIn
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
from threading import Thread
import sys
from misc import UnknownURL, UnknownFile
from os.path import split, ge... | gpl-3.0 | 2,496,950,977,492,467,000 | 29.038462 | 91 | 0.578745 | false |
wholeshoot/mongo_datatables | mongo_datatables/editor.py | 1 | 2907 | from bson.objectid import ObjectId
import json
class Editor(object):
def __init__(self, pymongo_object, collection, request_args, doc_id):
"""
:param pymongo_object:
:param collection:
:param request_args:
:param doc_id:
"""
self.mongo = pymongo_object
... | mit | 7,445,774,761,510,483,000 | 27.782178 | 117 | 0.522876 | false |
shawnadelic/shuup | shuup/core/models/_suppliers.py | 1 | 3709 | # -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2016, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from django.db import models
from django.utils.encoding import python_2_unic... | agpl-3.0 | 7,370,786,921,387,717,000 | 36.09 | 115 | 0.689674 | false |
bioinfo-core-BGU/neatseq-flow_modules | neatseq_flow_modules/RNA_seq/trinity_statistics.py | 1 | 8022 | # -*- coding: UTF-8 -*-
"""
``trinity_statistics``
-----------------------------------------------------------------
:Authors: Menachem Sklarz
:Affiliation: Bioinformatics core facility
:Organization: National Institute of Biotechnology in the Negev, Ben Gurion University.
A class that defines a module for running ``... | gpl-3.0 | -7,218,198,031,064,507,000 | 42.597826 | 279 | 0.596111 | false |
shoopio/shoop | shuup/admin/modules/attributes/__init__.py | 2 | 1483 | # -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2019, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
from django.utils.transla... | agpl-3.0 | -2,326,765,358,164,317,000 | 32.704545 | 83 | 0.650708 | false |
jehine-MSFT/azure-storage-python | azure/storage/_common_conversion.py | 1 | 2874 | #-------------------------------------------------------------------------
# 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 at
# http://www.apa... | apache-2.0 | -4,880,600,829,352,784,000 | 26.883495 | 76 | 0.626741 | false |
Artimi/waktu | waktu/timetracker.py | 1 | 6274 | #!/usr/bin/env python2.7
#-*- coding: UTF-8 -*-
from category import Category
from gi.repository import Wnck, Gdk, Gtk, GObject, Notify, GLib
from activityrecord import ActivityRecord
from threading import Thread, Event
from time import sleep, time
import copy
class TimeTracker(Thread):
"""Core module of this pro... | mit | 6,195,104,910,922,810,000 | 40.184211 | 166 | 0.579393 | false |
pyfa-org/Pyfa | gui/builtinContextMenus/itemProject.py | 1 | 1630 | import wx
import gui.fitCommands as cmd
import gui.mainFrame
from gui.contextMenu import ContextMenuSingle
from service.fit import Fit
_t = wx.GetTranslation
class ProjectItem(ContextMenuSingle):
visibilitySetting = 'project'
def __init__(self):
self.mainFrame = gui.mainFrame.MainFrame.getInstance(... | gpl-3.0 | 5,919,210,914,069,837,000 | 31.6 | 119 | 0.682822 | false |
techtonik/warehouse | warehouse/views.py | 1 | 1071 | # Copyright 2013 Donald Stufft
#
# 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, so... | apache-2.0 | -4,845,347,867,932,633,000 | 37.25 | 74 | 0.741363 | false |
CamDavidsonPilon/lifelines | lifelines/utils/lowess.py | 1 | 2541 | # -*- coding: utf-8 -*-
"""
This module implements the Lowess function for nonparametric regression.
Functions:
lowess Fit a smooth nonparametric regression curve to a scatterplot.
For more information, see
William S. Cleveland: "Robust locally weighted regression and smoothing
scatterplots", Journal of the American St... | mit | -498,146,806,779,797,570 | 38.703125 | 114 | 0.637151 | false |
consultit/Ely | ely/direct/data_structures_and_algorithms/ch05/high_scores.py | 1 | 3387 | # Copyright 2013, Michael H. Goldwasser
#
# Developed for use with the book:
#
# Data Structures and Algorithms in Python
# Michael T. Goodrich, Roberto Tamassia, and Michael H. Goldwasser
# John Wiley & Sons, 2013
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of... | lgpl-3.0 | -1,765,403,955,418,676,700 | 36.633333 | 81 | 0.581931 | false |
3dbug/blender | DialScale.py | 1 | 4821 | bl_info = {
"name": "Dial and Scale",
"author": "stacker, sambler",
"version": (1, 2),
"blender": (2, 80, 0),
"location": "3DView > Add > Curve > Dial and Scale",
"description": "Add an array of text number objects or watch dials.",
"warning": "",
"wiki_url": "https://github.com/3dbug/bl... | gpl-3.0 | -1,068,458,594,242,140,500 | 42.432432 | 247 | 0.594897 | false |
exekias/django-achilles | doc/conf.py | 1 | 8035 | # -*- coding: utf-8 -*-
#
# Django Achilles documentation build configuration file, created by
# sphinx-quickstart on Mon Dec 9 01:46:37 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.... | apache-2.0 | 7,124,134,120,415,301,000 | 31.51417 | 87 | 0.708505 | false |
openstack/mistral | mistral/api/controllers/v2/sub_execution.py | 1 | 4240 | # Copyright 2020 - Nokia Networks.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 | -6,536,085,960,045,563,000 | 30.641791 | 78 | 0.635849 | false |
liaralabs/swizzin | scripts/deluge.UpdateTracker.py | 1 | 2540 | # from https://github.com/s0undt3ch/Deluge/blob/master/deluge/ui/console/commands/update-tracker.py
# update-tracker.py
#
# Copyright (C) 2008-2009 Ido Abramovich <ido.deluge@gmail.com>
# Copyright (C) 2009 Andrew Resch <andrewresch@gmail.com>
#
# Deluge is free software.
#
# You may redistribute it and/or modify it un... | gpl-3.0 | -8,216,069,250,364,968,000 | 38.076923 | 99 | 0.699213 | false |
aesuli/rss-feed-monitor | dirs_to_csv.py | 1 | 1995 | import argparse
import csv
import logging
import re
import os
import sys
BLANK_SUB = '_'
LABEL_SEPARATOR = ':'
ID_SEPARATOR = '_'
def read_data(directory):
logger = logging.getLogger(sys.argv[0])
for subdir in next(os.walk(directory))[1]:
label = subdir
subpath = os.path.join(directory, subdi... | gpl-3.0 | -1,952,062,115,747,103,200 | 35.272727 | 124 | 0.61203 | false |
dichen001/Go4Jobs | JackChen/linked_list/328. Odd Even Linked List.py | 1 | 1154 | """
Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the value in the nodes.
You should try to do it in place. The program should run in O(1) space complexity and O(nodes) time complexity.
Example:
Given 1->2->3->4->5->N... | gpl-3.0 | -3,072,681,138,911,164,400 | 29.368421 | 170 | 0.613518 | false |
childresslab/MicrocavityExp1 | hardware/laser/simple_laser_dummy.py | 2 | 6456 | # -*- coding: utf-8 -*-
"""
This module acts like a laser.
Qudi 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.
Qudi is distributed in the ... | gpl-3.0 | -5,375,667,728,137,546,000 | 26.355932 | 91 | 0.606103 | false |
zhounetworking/build_job | lib/build_job.py | 1 | 5769 | #!/usr/bin/python
#-*- coding:utf8 -*-
#
import os
import sys
import time
import json
import traceback
import jenkinsapi
from functools import partial
from jenkinsapi.jenkins import Jenkins
from jenkinsapi.custom_exceptions import WillNotBuild
from conf.config import * # job_dict,jenkins_dic
from conf.game_config ... | apache-2.0 | 5,577,391,660,055,654,000 | 26 | 91 | 0.579428 | false |
Azure/WALinuxAgent | azurelinuxagent/common/osutil/default.py | 1 | 60738 | #
# Copyright 2018 Microsoft Corporation
#
# 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 ... | apache-2.0 | -4,743,960,978,200,930,000 | 38.67211 | 356 | 0.563288 | false |
dtiarks/ThesisPlot | Chap2/MoleculeMemory/memory.py | 1 | 3776 | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 19 11:29:40 2017
@author: daniel
"""
import Tomography as tom
import quPy as qp
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import os
import json
import io
import scipy.constants as co
#import rydpy
c = 299792458 # m/s, speed of light CODATA 2... | mit | -2,405,916,120,718,962,700 | 30.214876 | 160 | 0.649894 | false |
FedoraScientific/salome-smesh | src/Tools/blocFissure/gmu/partitionBlocDefaut.py | 1 | 6971 | # -*- coding: utf-8 -*-
import logging
from geomsmesh import geompy
# -----------------------------------------------------------------------------
# --- partition du bloc defaut par generatrice, tore et plan fissure
def partitionBlocDefaut(volDefaut, facesDefaut, gener, pipe,
facefis, ellips... | lgpl-2.1 | -5,217,617,912,348,345,000 | 42.51875 | 158 | 0.690507 | false |
andreasBihlmaier/arni | arni_gui/src/arni_gui/topic_item.py | 1 | 16458 | from rospy.rostime import Time
import rospy
from python_qt_binding.QtCore import QTranslator
from abstract_item import AbstractItem
from helper_functions import prepare_number_for_representation, UPDATE_FREQUENCY, TOPIC_AGGREGATION_FREQUENCY, \
ROUND_DIGITS, MAXIMUM_OFFLINE_TIME
from arni_core.helper import SEUID... | bsd-2-clause | -6,375,115,065,249,970,000 | 35.251101 | 158 | 0.537429 | false |
autopulated/yotta | yotta/main.py | 2 | 10966 | # Copyright 2014-2015 ARM Limited
#
# Licensed under the Apache License, Version 2.0
# See LICENSE file for details.
from yotta.lib import lazyregex #pylint: disable=unused-import
from yotta.lib import errors #pylint: disable=unused-import
# NOTE: argcomplete must be first!
# argcomplete, pip install argcomplete, tab... | apache-2.0 | 3,106,736,014,995,484,700 | 43.217742 | 131 | 0.654933 | false |
andrewyoung1991/scons | src/engine/SCons/Platform/aix.py | 1 | 3083 | """engine.SCons.Platform.aix
Platform-specific initialization for IBM AIX systems.
There normally shouldn't be any need to import this module directly. It
will usually be imported through the generic SCons.Platform.Platform()
selection method.
"""
#
# __COPYRIGHT__
#
# Permission is hereby granted, free of charge, ... | mit | -2,343,016,563,431,805,000 | 35.270588 | 84 | 0.66591 | false |
smips/Temporary_Insanity | TI/src/libtcodpy.py | 1 | 62671 | #
# libtcod 1.5.1 python wrapper
# Copyright (c) 2008,2009,2010 Jice & Mingos
# 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 co... | mit | 6,940,255,849,136,559,000 | 30.024016 | 177 | 0.621707 | false |
solvo/derb | report_builder/forms.py | 1 | 2294 | from django import forms
from django.core.exceptions import ValidationError
from django.utils.translation import ugettext as _
from report_builder.models import Question, Answer, Report
from report_builder.report_shortcuts import get_question_permission
class QuestionForm(forms.ModelForm):
children = forms.CharF... | gpl-3.0 | 230,806,146,539,116,030 | 29.586667 | 89 | 0.559285 | false |
ddiazpinto/python-redsys | setup.py | 1 | 1065 | import os
from setuptools import find_packages, setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='redsys',
version='0... | mit | -1,102,163,221,218,876,400 | 33.354839 | 96 | 0.646948 | false |
eleme/archer | archer/cli.py | 1 | 5921 | # -*- coding: utf-8 -*-
import os
import sys
sys.path.append('.')
import importlib
import traceback
import click
import re
from ._compat import iteritems
from .helper import make_client
class NoAppException(click.UsageError):
"""Raised if an application cannot be found or loaded."""
def locate_app(app_id):
... | mit | -3,892,443,103,610,141,000 | 26.539535 | 78 | 0.582334 | false |
saurabh6790/frappe | frappe/model/document.py | 1 | 43369 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals, print_function
import frappe
import time
from frappe import _, msgprint, is_whitelisted
from frappe.utils import flt, cstr, now, get_datetime_str, file_lock, date_diff
from frapp... | mit | -3,114,780,777,890,336,000 | 30.290765 | 130 | 0.687219 | false |
ikalnytskyi/holocron | tests/_processors/test_when.py | 1 | 6833 | """When processor test suite."""
import collections.abc
import itertools
import pathlib
import pytest
import holocron
from holocron._processors import when
@pytest.fixture(scope="function")
def testapp(request):
def spam(app, items, *, text=42):
for item in items:
item["spam"] = text
... | bsd-3-clause | -1,684,610,959,071,357,000 | 26.115079 | 79 | 0.493195 | false |
aknuds1/srl-python-lib | Tests/testqtgui/testwidgets.py | 1 | 7362 | from _common import *
if has_qt4:
from PyQt4 import QtGui, QtCore
from PyQt4.QtCore import Qt
import srllib.qtgui.widgets
if has_qt4:
class _LineEdit(srllib.qtgui.widgets._LineEditHelper,
guimocks.QLineEditMock):
_qbase = __qbase = guimocks.QLineEditMock
def __init__(self... | mit | 4,963,683,699,837,994,000 | 39.01087 | 83 | 0.617359 | false |
akhilaananthram/nupic.research | encoder_quality/rdse_check_demo.py | 1 | 2680 | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2015, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This progra... | gpl-3.0 | -8,209,893,378,988,622,000 | 35.712329 | 78 | 0.672388 | false |
GeoscienceAustralia/PyRate | tests/test_merge.py | 1 | 2815 | # coding: utf-8
# This Python module is part of the PyRate software package.
#
# Copyright 2020 Geoscience Australia
#
# 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:/... | apache-2.0 | 5,893,206,925,292,384,000 | 41.651515 | 115 | 0.701954 | false |
aileisun/bubbleimg | bubbleimg/imgmeasure/iso/isomeasurer.py | 1 | 9351 | # isomeasurer.py
# ALS 2017/06/01
import os
import astropy.units as u
from astropy.io import fits
import numpy as np
import astropy.table as at
import pickle
import scipy.ndimage as simg
from ..measurer import Measurer
from ... import tabtools
from . import polytools
from . import plottools
class isoMeasurer(Measur... | mit | 7,320,847,590,150,667,000 | 32.636691 | 246 | 0.694364 | false |
coldeasy/python-driver | tests/integration/cqlengine/query/test_queryset.py | 1 | 54820 | # Copyright 2013-2017 DataStax, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | apache-2.0 | 1,945,220,001,991,381,000 | 38.157143 | 138 | 0.636045 | false |
ShaguptaS/faker | faker/providers/user_agent.py | 1 | 5274 | from __future__ import unicode_literals
from . import BaseProvider
from . import date_time
from datetime import datetime
import random
class Provider(BaseProvider):
user_agents = ('firefox', 'chrome', 'internet_explorer', 'opera', 'safari')
windows_platform_tokens = (
'Windows NT 6.2', 'Windows NT 6.... | mit | -4,744,924,618,467,953,000 | 40.857143 | 150 | 0.571483 | false |
AButenko/selenium_tests | test_gui/test_login.py | 1 | 1921 | # -*- coding: utf-8 -*-
# from django.conf import settings
import pytest
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
f... | bsd-3-clause | -5,620,181,287,252,949,000 | 38.22449 | 138 | 0.72202 | false |
jeremiedecock/snippets | python/tkinter/python3/keyboard_events.py | 1 | 5625 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (c) 2015 Jérémie DECOCK (http://www.jdhp.org)
# 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 witho... | mit | 4,922,969,895,132,361,000 | 34.14375 | 82 | 0.599502 | false |
jessepeterson/commandment | commandment/alembic/versions/8c866896f76e_create_dep_join_tables.py | 1 | 1729 | """empty message
Revision ID: 8c866896f76e
Revises: 0e5babc5b9ee
Create Date: 2017-07-19 12:57:58.086196
"""
from alembic import op
import sqlalchemy as sa
import commandment.dbtypes
from alembic import context
# revision identifiers, used by Alembic.
revision = '8c866896f76e'
down_revision = '0e5babc5b9ee'
branch... | mit | -6,987,280,669,994,090,000 | 26.444444 | 71 | 0.689994 | false |
lgbouma/astrobase | astrobase/services/gaia.py | 1 | 44599 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# gaia - Waqas Bhatti (wbhatti@astro.princeton.edu) - Dec 2017
# License: MIT. See the LICENSE file for more details.
'''
This queries the GAIA catalog for object lists in specified areas of the
sky. The main use of this module is to generate realistic spatial distributio... | mit | 5,913,882,603,663,914,000 | 35.200487 | 101 | 0.518621 | false |
peter-kiechle/tactile-sensors | python/interpolation_and_contour/interpolation_and_contour.py | 1 | 7498 | # -*- coding: utf-8 -*-
import os, sys
print("CWD: " + os.getcwd() )
# Load configuration file before pyplot
config_path = os.path.abspath('../matplotlib/')
sys.path.append(config_path)
import configuration as config
# Library path
lib_path = os.path.abspath('../../lib')
sys.path.append(lib_path)
import framemanager... | gpl-3.0 | 8,087,984,003,630,864,000 | 28.015504 | 167 | 0.569329 | false |
elopio/snapcraft | tests/unit/plugins/test_base.py | 1 | 3087 | # -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright (C) 2015-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 | -4,015,501,113,157,418,000 | 38.075949 | 73 | 0.685455 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.