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 |
|---|---|---|---|---|---|---|---|---|---|---|
mwweinberg/china-daily-email | combine_rfa_qz.py | 1 | 4422 | from bs4 import BeautifulSoup
import urllib
#csv is for the csv writer
import csv
#this will hold the output
holder = {}
#opens the input doc
txt = open("qz-rfa.csv")
#is the contents of the doc
#inputs = txt.read()
#opens the output doc
output_txt = open("output.txt", "w")
print txt
def headliner(url):
#it... | mit | 8,655,176,811,197,885,000 | 27.901961 | 100 | 0.55337 | false |
eddiejessup/ahoy | ahoy/dc_dx_measurers.py | 1 | 3735 | from __future__ import print_function, division
from abc import ABCMeta, abstractmethod
import numpy as np
from ciabatta.meta import make_repr_str
from ahoy.ring_buffer import CylinderBuffer
from ahoy import measurers, c_measurers
def get_K(t, dt, t_rot_0):
A = 0.5
ts = np.arange(0.0, t, dt)
gs = ts / t_r... | bsd-3-clause | 5,803,516,902,066,002,000 | 31.763158 | 86 | 0.584739 | false |
Bleyddyn/malpi | exp/test.py | 1 | 5744 | from time import time
import datetime
import numpy as np
import matplotlib.pyplot as plt
from malpi.cnn import *
from malpi.data_utils import get_CIFAR10_data
from malpi.solver import Solver
from optparse import OptionParser
from malpi.fast_layers import *
def plot_solver(solver):
plt.subplot(2, 1, 1)
plt.plot... | mit | 7,756,415,624,282,956,000 | 32.788235 | 183 | 0.584784 | false |
tomis007/pyboi | pyboi/processor/z80.py | 1 | 71153 | from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String, PickleType
from ..base import Base
from ctypes import c_int8
from enum import Enum
import pickle
import logging
logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger(name='z80')
class CpuState(Base):
... | mit | -9,042,496,380,038,771,000 | 29.895788 | 98 | 0.479938 | false |
skosukhin/spack | var/spack/repos/builtin/packages/notmuch/package.py | 1 | 1675 | ##############################################################################
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | lgpl-2.1 | -5,391,594,835,763,923,000 | 38.880952 | 78 | 0.666269 | false |
gpoulin/pybeem | beem/ui/ui.py | 1 | 2119 | import os
import json
import sip
sip.setapi('QString', 2)
sip.setapi('QVariant', 2)
sip.setapi('QDate', 2)
sip.setapi('QDateTime', 2)
sip.setapi('QTextStream', 2)
sip.setapi('QTime', 2)
sip.setapi('QUrl', 2)
from PyQt4 import QtGui, QtCore
signal = QtCore.pyqtSignal
slot = QtCore.pyqtSlot
property = QtCore.pyqtPropert... | gpl-3.0 | 6,990,025,243,627,736,000 | 23.356322 | 71 | 0.622935 | false |
kapadia/geoblend | benchmark/benchmark_vector.py | 1 | 2033 |
import os
import benchmark
import numpy as np
import rasterio as rio
from skimage.morphology import disk
from geoblend.vector import create_vector
class Benchmark_Vector_Small(benchmark.Benchmark):
def setUp(self):
directory = os.path.dirname(os.path.realpath(__file__))
fixtures = os.path.join... | mit | -4,203,776,271,449,375,000 | 30.292308 | 110 | 0.618298 | false |
stochasticHydroTools/RigidMultiblobsWall | single_sphere/single_sphere_rejection.py | 1 | 1547 | '''This script will display a histogram of a single sphere's height when next to a wall using sphere.py.
1,000,000 heights will be generated by iterating over n_steps, and written to a text file: rejection_locations.txt
On top of the histogram is a plot of the analytical GB distribution
Prints the time taken for all ... | gpl-3.0 | 848,121,353,568,755,100 | 34.976744 | 114 | 0.74596 | false |
googleinterns/cloud-monitoring-notification-delivery-integration-sample-code | jira_integration_example/tests/jira_notification_handler_integration_test.py | 1 | 11299 | # 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 agreed to in writing, ... | apache-2.0 | -1,554,068,126,540,217,900 | 47.286325 | 177 | 0.721568 | false |
abmantz/lmc | setup.py | 1 | 3790 | """A setuptools based setup module.
See (and based on):
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
h... | lgpl-3.0 | 3,584,288,068,886,303,000 | 34.092593 | 94 | 0.665963 | false |
icoderaven/slytherin_dagger | src/utils.py | 1 | 1217 | #!/usr/bin/env python
import math
import numpy as np
#----------------------------------------------------------------------
#converts angles in degrees to radians
#----------------------------------------------------------------------
def deg_to_rad(angle):
return angle*math.pi/180.0
#---------------------------... | bsd-3-clause | 7,963,987,814,229,428,000 | 32.805556 | 72 | 0.380444 | false |
i-am-Q/my_py | mypa.py | 1 | 12022 | #mypa.py
import speech_recognition as sr #imports Speech_Recognition Modules
from AppKit import NSSpeechSynthesizer #imports Speech Synthesizer for tts
from random import randint #imports randint function
import time #imports time modules to pause actions
import sys #imports system functions
import ... | gpl-2.0 | 7,865,665,472,232,642,000 | 45.242308 | 278 | 0.619198 | false |
google-research/google-research | eeg_modelling/eeg_viewer/lookup_test.py | 1 | 2435 | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | apache-2.0 | 6,273,548,492,056,489,000 | 34.289855 | 75 | 0.714579 | false |
jessica-taylor/quipp2 | src/python/graphbuilder.py | 1 | 16660 | import math
import numpy as np
from numpy import linalg
import itertools
from callhaskell import *
class Queue(object):
def __init__(self, items=None):
if items is None:
self.items = []
else:
self.items = list(reversed(items))
def dequeue(self):
return self.items.pop()
class VarId(objec... | mit | 7,413,421,166,586,676,000 | 28.176883 | 155 | 0.635954 | false |
apetrone/pegasus | targets/iphoneos.py | 1 | 1909 | import os
import logging
from pegasus.models import TargetPlatform, Architecture, ProductType
from pegasus.targets.macosx_common import (
process_params_for_driver,
link_product_dependency,
get_full_product_name,
get_full_product_path,
get_full_symbols_path,
get_product_install_name,
check_source_compiles,
ch... | bsd-2-clause | -7,147,181,823,248,737,000 | 26.666667 | 120 | 0.754322 | false |
agilman/flask-template | app/auth.py | 1 | 1738 |
from flask import session, redirect, request, render_template
from app import app
from app.models import *
def getUserFromDb(username,password):
userQuery = Users.query.filter_by(username=username)
if userQuery.count()==0:
return "No such user"
else:
usr = userQuery.first()
if us... | mit | -1,983,810,625,785,931,800 | 25.738462 | 72 | 0.600115 | false |
NoneGroupTeam/Let-s-Go | webapp/webapp/settings.py | 1 | 3246 | """
Django settings for webapp project.
Generated by 'django-admin startproject' using Django 1.9.9.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
# ... | gpl-3.0 | 7,738,174,100,558,951,000 | 27.725664 | 78 | 0.687616 | false |
ENCODE-DCC/pyencoded-tools | permissions_qa_scripts/originals/UPLOADS/submit.bam.py | 1 | 4935 | """ Example file submission script
Requires the `aws` command line utility: http://aws.amazon.com/cli/
"""
import hashlib
import json
import os
import requests
import subprocess
import sys
import time
host = 'REPLACEME'
encoded_access_key = 'UISQC32B'
encoded_secret_access_key = 'ikc2wbs27minvwo4'
path = 'test.bam'
... | mit | 467,417,177,298,291,700 | 29.091463 | 106 | 0.611145 | false |
novafloss/django-agnocomplete | demo/tests/test_errors.py | 1 | 4942 | from django.test import TestCase
from django.urls import reverse
from django.test import override_settings
from django.core.exceptions import SuspiciousOperation
import mock
from requests.exceptions import Timeout
from agnocomplete import get_namespace
from . import get_json
from . import LoaddataLiveTestCase
from .... | mit | 7,850,101,734,890,066,000 | 31.300654 | 77 | 0.616754 | false |
yephper/django | tests/middleware_exceptions/tests.py | 1 | 45313 | import sys
from django.conf import settings
from django.core.exceptions import MiddlewareNotUsed
from django.core.signals import got_request_exception
from django.http import HttpResponse
from django.template import engines
from django.template.response import TemplateResponse
from django.test import RequestFa... | bsd-3-clause | 5,373,502,232,765,956,000 | 46.828664 | 117 | 0.680357 | false |
gabinetedigital/videre | videos/models.py | 1 | 2845 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2011 Governo do Estado do Rio Grande do Sul
# Copyright (C) 2011 Lincoln de Sousa <lincoln@comum.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Fou... | agpl-3.0 | 8,764,051,673,740,353,000 | 38.513889 | 78 | 0.643234 | false |
thyu/.dotfiles | setup.py | 1 | 2604 | #!/usr/bin/env python3
import shutil
import logging
from pathlib import Path
# setup logging level
logging.basicConfig(level=logging.INFO)
# some global paths
DOTFILES_ROOT = Path(__file__).resolve().parent
SUBMODULES = DOTFILES_ROOT / "submodules"
def setup_vim():
VIMRC_PATH = Path.home() / ".vimrc"
VIM_... | mit | -7,623,812,741,486,072,000 | 30 | 79 | 0.629416 | false |
mitodl/odl-video-service | odl_video/envs_test.py | 1 | 5920 | """Tests for environment variable parsing functions"""
from unittest.mock import patch
import os
import pytest
from odl_video.envs import (
EnvironmentVariableParseException,
get_any,
get_bool,
get_int,
get_key,
get_list_of_str,
get_string,
parse_env,
)
FAKE_ENVIRONS = {
"true": ... | bsd-3-clause | 1,943,514,092,109,895,400 | 32.828571 | 117 | 0.555912 | false |
pacificgilly1992/PGrainrate | Backups/Externals/externals1.0.5.py | 1 | 4428 | ############################################################################
# Project: The Lenard effect of preciptation at the RUAO,
# Title: Ensemble processing of the PG, Time and Rain Rate data,
# Author: James Gilmore,
# Email: james.gilmore@pgr.reading.ac.uk.
# Version: 1.0.5
# Date: 07/12/15
###################... | gpl-3.0 | -4,713,461,817,470,815,000 | 31.8 | 248 | 0.648374 | false |
javierLiarte/tdd-goat-python | tests/selenium/conftest.py | 1 | 1089 | import pytest
import os
from selenium import webdriver
browsers = {
'firefox': webdriver.Firefox,
'chrome': webdriver.Chrome,
}
@pytest.fixture(scope='session', params=browsers.keys())
def driver(request):
''' driver factory, for allowing more than one browser object in a fixture '''
if 'DISPLAY' not in os.en... | gpl-2.0 | -5,603,045,507,090,966,000 | 25.585366 | 81 | 0.68595 | false |
zijistark/ck2utils | esc/eu4culture_map.py | 1 | 4853 | #!/usr/bin/env python3
from collections import defaultdict
import math
from pathlib import Path
import re
import sys
import urllib.request
import numpy as np
from PIL import Image
import spectra
from ck2parser import rootpath, csv_rows, SimpleParser, Obj
from localpaths import eu4dir
from print_time import print_time
... | gpl-2.0 | 2,957,810,107,190,530,600 | 37.212598 | 79 | 0.571605 | false |
cgwire/zou | zou/app/blueprints/playlists/resources.py | 1 | 9428 | import slugify
from flask import request, send_file as flask_send_file
from flask_restful import Resource
from flask_jwt_extended import jwt_required
from zou.app import config
from zou.app.mixin import ArgsMixin
from zou.app.utils import permissions
from zou.app.services import (
entities_service,
playlists... | agpl-3.0 | 1,423,871,682,942,486,500 | 34.443609 | 80 | 0.609037 | false |
trevor/mailman3 | src/mailman/database/schema/mm_20121015000000.py | 1 | 3289 | # Copyright (C) 2012-2014 by the Free Software Foundation, Inc.
#
# This file is part of GNU Mailman.
#
# GNU Mailman 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 you... | gpl-3.0 | 3,540,926,000,866,135,600 | 32.561224 | 78 | 0.679842 | false |
sixam/dw6824 | src/ui/stroke.py | 1 | 2694 | import copy
from PyQt4 import QtCore, QtGui
from utils.utils import Utils
sizeX = 1024
sizeY = 768
class Stroke:
"""Basic Stroke"""
def __init__(self, path=[], width=0, color=[0,0,0,255], id='none'):
self.path = path
self.width = width
self.color = color
if id == 'none':
... | bsd-3-clause | 2,516,270,057,821,345,000 | 27.357895 | 140 | 0.489978 | false |
daniyalzade/burgaz | settings.py | 1 | 4442 | import os
from shopify_settings import *
SITE_ROOT = os.path.dirname(os.path.realpath(__file__))
try:
from djangoappengine.settings_base import *
USING_APP_ENGINE = True
except ImportError:
USING_APP_ENGINE = False
DEBUG = True
TEMPLATE_DEBUG = DEBUG
DATABASES = {
'default': {
... | mit | -8,659,885,461,204,517,000 | 30.062937 | 96 | 0.660288 | false |
thijsmie/tantalus | src/tantalus/logic/transaction.py | 1 | 9287 | from tantalus_db.base import db
from tantalus_db.models import Referencing, Transaction, TransactionLine, ServiceLine, Relation, Product, BtwType
from tantalus_db.utility import get_or_none, transactional
from tantalus.logic.rows import transform_collection
from collections import defaultdict
from datetime import dat... | mit | 3,800,890,605,192,939,000 | 32.527076 | 113 | 0.582535 | false |
jackrzhang/zulip | scripts/lib/clean_node_cache.py | 1 | 2324 | #!/usr/bin/env python3
import argparse
import os
import subprocess
import sys
if False:
from typing import Set
ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(ZULIP_PATH)
from scripts.lib.node_cache import generate_sha1sum_node_modules
from scripts.lib.zul... | apache-2.0 | 6,640,714,881,982,662,000 | 37.733333 | 99 | 0.673838 | false |
eliangcs/http-prompt | tests/test_interaction.py | 1 | 2286 | import os
import sys
import pexpect
import pytest
from .base import TempAppDirTestCase
from .utils import get_http_prompt_path
from http_prompt import config
class TestInteraction(TempAppDirTestCase):
def setUp(self):
super(TestInteraction, self).setUp()
# Use temporary directory as user confi... | mit | -1,556,437,619,179,186,700 | 27.936709 | 70 | 0.60105 | false |
MaxMorgenstern/EmeraldAI | EmeraldAI/Logic/Database/SQlite3.py | 1 | 5843 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
from cachetools import cached
from EmeraldAI.Logic.Singleton import Singleton
from EmeraldAI.Logic.Modules import Global
from EmeraldAI.Config.Config import Config
from EmeraldAI.Logic.Logger import FileLogger
class SQlite3(object):
__metaclass__ = Singleton
... | apache-2.0 | -8,573,672,131,020,047,000 | 33.988024 | 115 | 0.608249 | false |
Azure/azure-sdk-for-python | sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_linked_services_operations.py | 1 | 16517 | # 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 may ... | mit | -2,004,889,245,169,860,900 | 50.295031 | 216 | 0.642126 | false |
basho-labs/riak-mesos-tools | setup.py | 1 | 4313 | #
# Copyright (C) 2016 Basho Technologies, 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 a... | apache-2.0 | 3,413,416,331,684,066,300 | 34.941667 | 79 | 0.663112 | false |
sbraverman/salt-integration-testing | tests/helpers/sit_helper_test.py | 1 | 1161 | import unittest
from helpers.sit_helper import SITHelper
class SitHelperTest(unittest.TestCase):
def setUp(self):
self.sit_helper = SITHelper('tests/helpers/configs')
self.sit_helper_empty = SITHelper('tests/helpers/empty_configs')
def test_get_custom_user_data(self):
self.assertEqu... | gpl-3.0 | -1,396,964,101,881,587,000 | 42 | 118 | 0.651163 | false |
jcmgray/quijy | tests/test_gen/test_operators.py | 1 | 10683 | import pytest
import numpy as np
from numpy.testing import assert_allclose
import quimb as qu
@pytest.mark.parametrize("sparse", [False, True])
@pytest.mark.parametrize("stype", ['csr', 'csc'])
@pytest.mark.parametrize("dtype", ["don't pass", None, np.float64, np.complex128])
def test_hamiltonian_builder(sparse, stype... | mit | -1,548,288,738,012,105,500 | 34.491694 | 85 | 0.539455 | false |
fperez/sympy | sympy/functions/special/tensor_functions.py | 1 | 1178 | from sympy.core.function import Function
from sympy.core import sympify, S
from sympy.utilities.decorator import deprecated
###############################################################################
###################### Kronecker Delta, Levi-Civita etc. ######################
###################################... | bsd-3-clause | -3,756,714,093,554,926,600 | 27.731707 | 79 | 0.44652 | false |
nirvaris/nirvaris-contactform | setup.py | 1 | 1175 | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) 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='nirvaris-contactform',
version='0.1... | mit | -7,020,979,583,007,888,000 | 34.606061 | 78 | 0.646809 | false |
ryanvarley/ExoData | exodata/astroquantities.py | 1 | 1806 | """ Temp module until astro units are added to quantities
"""
from quantities import *
L_s = solar_luminosity = UnitQuantity(
'solar_luminosity',
3.839*(10**26)*W,
symbol='L_s',
)
L_s.latex_symbol = 'L_\odot'
R_s = solar_radius = UnitLength(
'solar_radius',
6.995 * (10**8) * m,
aliases=['solar... | mit | 8,007,810,740,782,752,000 | 21.036585 | 119 | 0.609081 | false |
richardliaw/ray | python/ray/runtime_context.py | 1 | 4842 | import ray.worker
import logging
logger = logging.getLogger(__name__)
class RuntimeContext(object):
"""A class used for getting runtime context."""
def __init__(self, worker):
assert worker is not None
self.worker = worker
def get(self):
"""Get a dictionary of the current_contex... | apache-2.0 | -9,188,469,718,043,545,000 | 29.840764 | 78 | 0.57311 | false |
andy-z/ged4py | docs/example_code/example3.py | 1 | 1988 | import sys
from ged4py.parser import GedcomReader
from ged4py.date import DateValueVisitor
class DateFormatter(DateValueVisitor):
"""Visitor class that produces string representation of dates.
"""
def visitSimple(self, date):
return f"{date.date}"
def visitPeriod(self, date):
return f... | mit | 2,323,925,988,355,210,000 | 29.584615 | 80 | 0.612173 | false |
mitchellrj/neo4j-rest-client | neo4jrestclient/constants.py | 1 | 1325 | # -*- coding: utf-8 -*-
__author__ = "Javier de la Rosa"
__license__ = "GPL 3"
__version__ = "2.0.2"
__email__ = "versae@gmail.com"
__url__ = "https://github.com/versae/neo4j-rest-client"
__description__ = """Object-oriented Python library to interact with """ \
"""Neo4j standalone REST server"""
__st... | gpl-3.0 | 3,486,054,625,117,709,000 | 24.480769 | 74 | 0.68 | false |
luckydonald/pytgbot | pytgbot/webhook.py | 1 | 5203 | # -*- coding: utf-8 -*-
from luckydonaldUtils.logger import logging
from pytgbot.bot import Bot
from pytgbot.exceptions import TgApiServerException, TgApiParseException
__author__ = 'luckydonald'
logger = logging.getLogger(__name__)
class Webhook(Bot):
"""
Subclass of Bot, will be returned of a sucessful we... | gpl-3.0 | 6,613,766,085,546,908,000 | 34.155405 | 120 | 0.596771 | false |
schilli/MOPS | MOPS/CorrFunction.py | 1 | 2568 | # -*- coding: UTF-8 -*-
from __future__ import print_function, division
import numpy as np
class CorrFunction(object):
"""
correlation function data, additional information and manipulation methods
Parameters
----------
corr : (nvec, nframes) array
Correlation functions
std : (nvec,... | gpl-3.0 | 2,965,479,022,776,792,600 | 34.666667 | 78 | 0.511682 | false |
kayhayen/Nuitka | tests/standalone/TkInterUsing.py | 1 | 1436 | # Copyright 2021, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Python test originally created or extracted from other peoples work. The
# parts from me are licensed as below. It is at least Free Software where
# it's copied from other people. In these cases, that will normally be
# indicated.
#
# L... | apache-2.0 | 5,512,069,357,224,753,000 | 34.9 | 96 | 0.704735 | false |
narfman0/D3OrganDropCalculator | calculator.py | 1 | 1510 | #!/bin/python
import sys
from math import pow
DEFAULT_TORMENT = 2
DEFAULT_RUNS = 5
#generate pascals triangle
def pascalsTriangle(rows):
for rownum in range (rows):
newValue=1
rlist = [newValue]
for iteration in range (rownum):
newValue = newValue * ( rownum-iteration ) * 1 / ( iteration + 1 )
... | gpl-2.0 | 294,702,526,321,510,850 | 27.490566 | 100 | 0.653642 | false |
stdweird/vsc-manage | lib/vsc/manage/monitoring.py | 1 | 7199 | ##
# Copyright 2011-2013 Ghent University
#
# This file is part of vsc-manage,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en),
# the Hercules foundation (ht... | gpl-2.0 | 4,906,653,235,562,744,000 | 36.691099 | 131 | 0.581609 | false |
dhomeier/astropy | astropy/utils/masked/tests/test_containers.py | 1 | 4941 | # coding: utf-8
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import numpy as np
from numpy.testing import assert_array_equal
import pytest
from astropy import units as u
from astropy.coordinates import SkyCoord, representation as r
from astropy.time import Time
from .. import Masked
class TestRe... | bsd-3-clause | 859,605,714,367,307,100 | 39.5 | 78 | 0.624165 | false |
anpingli/openshift-ansible | playbooks/openstack/inventory.py | 1 | 8124 | #!/usr/bin/env python
"""
This is an Ansible dynamic inventory for OpenStack.
It requires your OpenStack credentials to be set in clouds.yaml or your shell
environment.
"""
from __future__ import print_function
from collections import Mapping
import json
import os
import shade
def base_openshift_inventory(cluste... | apache-2.0 | -2,398,377,176,609,801,000 | 36.09589 | 94 | 0.634663 | false |
shanezhiu/pyspider | tests/test_fetcher.py | 1 | 11012 | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8:
# Author: Binux<i@binux.me>
# http://binux.me
# Created on 2014-02-15 22:10:35
import os
import json
import copy
import time
import httpbin
import umsgpack
import subprocess
import unittest2 as unittest
from multip... | apache-2.0 | 8,131,086,496,657,840,000 | 37.596491 | 86 | 0.616455 | false |
ryfx/modrana | modules/mod_sketch.py | 1 | 2168 | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Sketching on touchscreen
#----------------------------------------------------------------------------
# Copyright 2008, Oliver White
#
# This program is free software: you can redistribute it and/or modify
# it unde... | gpl-3.0 | 3,229,469,049,537,184,000 | 32.369231 | 77 | 0.532749 | false |
Paymiumm/virtual_wallet_api | app/api_version/utils/__init__.py | 1 | 8126 | # ~ util package that would hold common functionalities and tools that all versions of the api would use
# (@: Name): "mailMorth"
# (@:Description): "email Management, and automation api code"
# (@:Author): "inteliJence development team"
# under the license of Apache License 2.0 and intelijence Protective Rig... | apache-2.0 | -1,626,510,524,226,959,000 | 24.469055 | 129 | 0.52412 | false |
aurigadl/EnvReactAsk | server/apiFuec/models.py | 1 | 3422 | from server import db
class Fuec(db.Model):
__table_args__ = {'extend_existing': True}
__tablename__ = 'fuec'
id = db.Column(db.Integer, primary_key=True)
created_at = db.Column(db.DateTime, default=db.func.current_timestamp())
created_by = db.Column(db.Integer, db.ForeignKey('user.id'))
no_fu... | gpl-3.0 | 7,552,208,850,233,082,000 | 31.292453 | 76 | 0.544126 | false |
moocowmoo/pycoin | pycoin/contrib/msg_signing.py | 1 | 11785 | import hashlib
import hmac
import io
import os
import re
from binascii import b2a_base64, a2b_base64
from .. import ecdsa
from ..serialize.bitcoin_streamer import stream_bc_string
from ..ecdsa import ellipticcurve, numbertheory
from ..networks import address_prefix_for_netcode, network_name_for_netcode
from ..encodi... | mit | 2,836,944,414,860,314,600 | 31.376374 | 98 | 0.623929 | false |
google/telluride_decoding | telluride_decoding/csv_util.py | 1 | 5394 | # Copyright 2020 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | -7,502,328,681,272,178,000 | 35.945205 | 80 | 0.688172 | false |
qurit/rt-utils | rt_utils/ds_helper.py | 1 | 8750 | import datetime
from rt_utils.image_helper import get_contours_coords
from rt_utils.utils import ROIData, SOPClassUID
import numpy as np
from pydicom.uid import generate_uid
from pydicom.dataset import Dataset, FileDataset, FileMetaDataset
from pydicom.sequence import Sequence
from pydicom.uid import ImplicitVRLittleEn... | mit | -1,413,595,311,255,209,200 | 41.067308 | 134 | 0.729829 | false |
roatienza/dl-keras | chapter2-neural-networks/mlp-mnist-data_augment-2.1.7.py | 1 | 3959 | '''
A MLP network for MNIST digits classification
Project: https://github.com/roatienza/dl-keras
Usage: python3 <this file>
'''
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# numpy package
import numpy as np
from keras.models import Sequential
from kera... | mit | 4,741,922,929,612,429,000 | 35.657407 | 86 | 0.691589 | false |
nmc-probe/emulab-nome | protogeni/test/listactiveslivers.py | 1 | 1713 | #! /usr/bin/env python
#
# Copyright (c) 2008-2014 University of Utah and the Flux Group.
#
# {{{GENIPUBLIC-LICENSE
#
# GENI Public License
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and/or hardware specification (the "Work") to
# deal in the Work without rest... | agpl-3.0 | -7,036,149,344,814,738,000 | 27.55 | 72 | 0.737303 | false |
polysquare/polysquare-ci-scripts | ciscripts/deploy/conan/deploy.py | 1 | 4874 | # /ciscripts/deploy/conan/deploy.py
#
# Copy directories into place to prepare for publishing conan project
#
# See /LICENCE.md for Copyright information
"""Copy directories into place to prepare for publishing conan project."""
import argparse
import json
import os
from contextlib import contextmanager
try:
f... | mit | -7,925,659,697,915,147,000 | 33.083916 | 79 | 0.489536 | false |
fmfn/FTRLp | FTRLp.py | 1 | 31553 | from __future__ import division
from __future__ import print_function
"""
------------ Follow The Regularized Leader - Proximal ------------
FTRL-P is an online classification algorithm that combines both L1 and L2
norms, particularly suited for large data sets with extremely high dimensionality.
This implementatio... | mit | -5,593,943,148,002,153,000 | 37.527473 | 114 | 0.565461 | false |
abitofalchemy/hrg_nets | bters.py | 1 | 13299 | import shelve
import networkx as nx
import pandas as pd
import numpy as np
import math
import os
import sys
import re
import argparse
import traceback
import net_metrics as metrics
from glob import glob
__version__ = "0.1.0"
__author__ = ['Salvador Aguinaga']
# alchemee analyze the BTER generated graphs
def get_bas... | gpl-3.0 | -7,554,848,798,561,009,000 | 32.330827 | 176 | 0.558764 | false |
infinisql/infinisql | manager/infinisqlmgr/management_server.py | 1 | 4169 | __author__ = 'Christopher Nelson'
import logging
import os
import signal
import time
from infinisqlmgr import common, management
def start_management_server(config):
from infinisqlmgr.management import util
common.configure_logging(config)
cluster_name = config.get("management", "cluster_name")
exis... | gpl-3.0 | -880,550,437,333,261,600 | 41.111111 | 128 | 0.638283 | false |
ndparker/tdi3 | tdi/_abstract.py | 1 | 1329 | # -*- coding: ascii -*-
u"""
:Copyright:
Copyright 2017
Andr\xe9 Malo or his licensors, as applicable
:License:
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/lic... | apache-2.0 | -4,359,358,447,965,685,000 | 25.058824 | 73 | 0.638074 | false |
uzh/vm-mad | vmmad/provider/__init__.py | 1 | 2399 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Interfaces to VM/node providers.
"""
# Copyright (C) 2011, 2012 ETH Zurich and University of Zurich. All rights reserved.
#
# Authors:
# Riccardo Murri <riccardo.murri@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use th... | apache-2.0 | 2,496,700,895,021,067,300 | 26.261364 | 84 | 0.657357 | false |
NileshPS/OS-and-Networking-programs | 5_ftp/client.py | 1 | 5165 | #!/usr/bin/python3
import socket
import os
import sys
import logging as log
import getpass
from helper import *
log.basicConfig(format="[%(levelname)s] %(message)s", level=log.DEBUG)
class FTPError(Exception):
pass
class FTPClient:
def __init__(self):
self.sock = None
self.is_connected =... | gpl-3.0 | 5,413,776,981,236,701,000 | 32.322581 | 79 | 0.501839 | false |
juanc27/myfavteam | mysite/urls.py | 1 | 1833 | from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'mysite.views.home', name='home'),
# url(r'^blog/', include('blog.urls')... | mit | -4,842,875,258,234,641,000 | 28.095238 | 65 | 0.556465 | false |
Hwesta/advent-of-code | aoc2017/test_aoc.py | 1 | 7193 | """
Tests for Advent of Code
"""
import unittest
import pytest
from . import day1, day2, day3, day4, day5, day6, day7, day8, day9
from . import day10, day11, day12, day13, day14, day15, day16, day17
from . import day18, day19, day20, day21, day22
@pytest.mark.parametrize('seq,sum,halfway', [
('1122', 3, False),
... | mit | -8,735,172,952,443,945,000 | 23.137584 | 68 | 0.533018 | false |
Aaron23145/Sergis-Bot | bot/commands/help.py | 1 | 5164 | import config.settings
prefix = config.settings.main.get('prefix')
main_help = '```md\nÉstos son todos los comandos funcionales que \
tengo implementados por ahora. Uso "{p}" de prefijo.\n\n# {p}{help}\n# \
{p}{info}\n# \
{p}{echo}\n# {p}{eight_ball}\n# {p}{random} \n# {p}{suggestions} \n# \
{p}{isup}\n# ... | mit | -2,108,190,958,733,483,800 | 46.933333 | 80 | 0.697548 | false |
ElementalAlchemist/txircd | txircd/modules/rfc/cmd_userhost.py | 1 | 1249 | from twisted.plugin import IPlugin
from twisted.words.protocols import irc
from txircd.module_interface import Command, ICommand, IModuleData, ModuleData
from zope.interface import implements
class UserhostCommand(ModuleData, Command):
implements(IPlugin, IModuleData, ICommand)
name = "UserhostCommand"
core = Tru... | bsd-3-clause | -2,786,711,777,351,139,300 | 28.761905 | 102 | 0.707766 | false |
Theoklitos/chestfreezer | chestfreezer-backend/util/json_parser.py | 1 | 6422 | '''
Created on Apr 4, 2014
Simple json marshalling utils for the classes in this project
#TODO Note: This whole module is pointless! Bottle.py can easily marshal dictionaries into/from json!
@author: theoklitos
'''
from control import brew_logic
from util import misc_utils, configuration
from database import db_adap... | mit | 5,555,243,227,549,169,000 | 53.888889 | 439 | 0.646372 | false |
napalm-automation/napalm-yang | napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/ospfv2/areas/area/lsdb/lsa_types/lsa_type/lsas/lsa/opaque_lsa/traffic_engineering/tlvs/__init__.py | 1 | 14118 | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | apache-2.0 | 7,904,098,859,585,679,000 | 35.861619 | 517 | 0.536903 | false |
Molecular-Image-Recognition/Molecular-Image-Recognition | code/rmgpy/molecule/pathfinder.py | 1 | 12342 | ################################################################################
#
# RMG - Reaction Mechanism Generator
#
# Copyright (c) 2002-2017 Prof. William H. Green (whgreen@mit.edu),
# Prof. Richard H. West (r.west@neu.edu) and the RMG Team (rmg_dev@mit.edu)
#
# Permission is hereby granted, free of cha... | mit | 594,162,985,492,516,900 | 37.933754 | 180 | 0.629152 | false |
lsaffre/lino-welfare | lino_welfare/modlib/cbss/tx25.py | 1 | 38017 | # -*- coding: UTF-8 -*-
# Copyright 2011-2018 Rumma & Ko Ltd
# License: BSD (see file COPYING for details)
# This is a masterpiece of untransparent code, difficult to understand
# and maintain. But I didn't find a better solution. Maybe an XSLT
# expert might help us to rewrite this from scratch. The purpose is ver... | agpl-3.0 | -3,831,657,913,008,972,300 | 27.594432 | 79 | 0.599337 | false |
XBigTK13X/olava | source/builder.py | 1 | 1909 | import os
import datetime
import config
import pickle
from jinja2 import Environment, FileSystemLoader
pwd = os.path.dirname(os.path.abspath(__file__))
templates = Environment(loader=FileSystemLoader(os.path.join(pwd, 'templates')))
def createIndex(games,
platforms,
platformsOrder,
... | apache-2.0 | -1,568,970,124,760,492,500 | 37.959184 | 80 | 0.619172 | false |
mistercrunch/panoramix | superset/views/chart/views.py | 1 | 3873 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 | 1,508,857,023,377,381,400 | 32.102564 | 88 | 0.657113 | false |
hackerspace-ntnu/website | files/views.py | 1 | 1896 | from django.shortcuts import render
from .models import Image, FileCategory
from .forms import ImageForm
from django.views.generic import CreateView, DeleteView, UpdateView, ListView, View
from django.shortcuts import redirect, get_object_or_404
from django.http import HttpResponseRedirect, HttpResponse
from django.con... | mit | -5,348,036,515,881,527,000 | 37.693878 | 91 | 0.695148 | false |
teltek/edx-platform | common/djangoapps/student/admin.py | 1 | 10794 | """ Django admin pages for student app """
from config_models.admin import ConfigurationModelAdmin
from django import forms
from django.contrib import admin
from django.contrib.admin.sites import NotRegistered
from django.contrib.auth import get_user_model
from django.contrib.auth.admin import UserAdmin as BaseUserAdmi... | agpl-3.0 | 3,747,868,117,561,648,600 | 33.932039 | 140 | 0.655642 | false |
lensvol/repocket | repocket/main.py | 1 | 4195 | #!/usr/bin/python
import os
from collections import namedtuple
import yaml
from click import command, confirm, echo, option, prompt, secho
from pocket import Pocket
from rules import DEFAULT_RULES, compile_rules
PocketItem = namedtuple('PocketItem', ['id', 'url', 'tags', 'title'])
def save_config(path, cfg_dict):... | mit | -4,351,194,532,131,688,400 | 28.335664 | 81 | 0.597616 | false |
conversationai/conversationai-models | experiments/tf_trainer/common/token_embedding_index_test.py | 1 | 1553 | # coding=utf-8
# Copyright 2018 The Conversation-AI.github.io Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | apache-2.0 | 2,917,986,723,322,802,000 | 35.97619 | 78 | 0.732131 | false |
jinankjain/zamboni | mkt/ratings/serializers.py | 1 | 5467 | from django.core.urlresolvers import reverse
from rest_framework import serializers
from rest_framework.exceptions import PermissionDenied
from reviews.models import Review, ReviewFlag
from mkt.account.serializers import AccountSerializer
from mkt.api.fields import SlugOrPrimaryKeyRelatedField, SplitField
from mkt.a... | bsd-3-clause | 745,364,576,226,022,000 | 40.732824 | 79 | 0.605817 | false |
d120/pyofahrt | ofahrtbase/migrations/0020_auto_20171016_2206.py | 1 | 2501 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-10-16 20:06
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ofahrtbase', '0019_auto_20161020_1750'),
]
operations = [
migrations.AlterF... | agpl-3.0 | 1,181,482,808,610,669,800 | 35.691176 | 236 | 0.558717 | false |
mozilla/kitchensinkserver | vendor-local/lib/python/tastypie/api.py | 1 | 6721 | import warnings
from django.conf.urls.defaults import *
from django.core.exceptions import ImproperlyConfigured
from django.core.urlresolvers import reverse
from django.http import HttpResponse, HttpResponseBadRequest
from tastypie.exceptions import NotRegistered, BadRequest
from tastypie.serializers import Serializer
... | bsd-3-clause | -851,501,442,314,775,000 | 35.726776 | 153 | 0.613599 | false |
mfiers/Moa | moa/utils.py | 1 | 7301 | #!/usr/bin/env python
# Copyright 2009-2011 Mark Fiers
# The New Zealand Institute for Plant & Food Research
#
# This file is part of Moa - http://github.com/mfiers/Moa
#
# Licensed under the GPL license (see 'COPYING')
#
"""
moa.utils
---------
A set of random utilities used by Moa
"""
from email.mime.text import MI... | gpl-3.0 | 182,209,178,476,799,500 | 24.003425 | 93 | 0.583482 | false |
mschuh/pi_music_looper | music_looper/music_looper.py | 1 | 12884 | # Copyright 2015 Adafruit Industries.
# Author: Tony DiCola
# License: GNU GPLv2, see LICENSE.txt
import ConfigParser
import importlib
import os
import re
import sys
import signal
import time
import pygame
from model import Playlist
# Basic video looper architecure:
#
# - VideoLooper class contains all the main log... | gpl-2.0 | 8,920,466,758,795,323,000 | 44.850534 | 134 | 0.589801 | false |
django-danceschool/django-danceschool | danceschool/core/management/commands/setup_permissions.py | 1 | 9771 | from django.core.management.base import BaseCommand
from django.apps import apps
from django.contrib.auth.models import Group, Permission
from six.moves import input
try:
import readline
except ImportError:
pass
class Command(BaseCommand):
help = 'Create default groups and permissions for standard dance... | bsd-3-clause | -4,150,810,581,700,201,000 | 48.852041 | 118 | 0.58735 | false |
pacoqueen/ginn | db/ajusta_precios_factura.py | 1 | 2486 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#################################################################
# 10 de julio de 2006.
# Script temporal para ajustar los precios de LDV de algunas
# facturas antiguas DEBIDO A UN ERROR EN LAS MACROS EXCEL que
# usaban antes de la implantación de ginn. Para respetar la ... | gpl-2.0 | -395,667,731,017,486,700 | 30.405063 | 77 | 0.571544 | false |
luoguizhou/gooderp_addons | goods/models/goods.py | 1 | 7593 | # -*- coding: utf-8 -*-
from odoo import models, fields, api
from odoo.exceptions import UserError
class Goods(models.Model):
"""
继承了core里面定义的goods 模块,并定义了视图和添加字段。
"""
_inherit = 'goods'
@api.multi
def get_parent_tax_rate(self, parent_id):
# 逐级取商品分类上的税率
tax_rate = parent_id.t... | agpl-3.0 | -1,692,061,697,503,829,800 | 32.743842 | 93 | 0.54219 | false |
funilrys/A-John-Shots | a_john_shots/helpers.py | 1 | 5760 | #!/bin/env python3
"""
A John Shots - A tool to get the Security Hash Algorightms (SHA) of all file in a given path.
Author:
Nissar Chababy, @funilrys, contactTATAfunilrysTODTODcom
Contributors:
Let's contribute to A John Shots!
Project link:
https://github.com/funilrys/A-John-Shots
License:
::
MI... | mit | 3,648,964,506,032,662,000 | 28.84456 | 93 | 0.584201 | false |
katyhuff/moose | python/utils/MooseSourceParser.py | 1 | 4710 | import sys
import os
import re
import subprocess
import clang.cindex
if 'MOOSE_CLANG_LIB' not in os.environ:
raise EnvironmentError("Using the MooseSourceParser requires setting 'MOOSE_CLANG_LIB' environment variable to point to the clang library.")
clang.cindex.Config.set_library_path(os.getenv('MOOSE_CLANG_LIB')... | lgpl-2.1 | 5,019,072,454,677,851,000 | 31.937063 | 144 | 0.605732 | false |
ShrimpingIt/tableaux | regimes/flopbunny/main.py | 1 | 2389 | from time import sleep
from uos import urandom
from machine import Pin
from cockle import pins
dataPin = pins[1]
clockPin = pins[2]
latchPin = pins[3]
dataPin.init(Pin.OUT)
latchPin.init(Pin.OUT)
clockPin.init(Pin.OUT)
dataPin.value(0)
latchPin.value(0)
clockPin.value(0)
delay = 1
numLights = 8
byteCount = numLigh... | agpl-3.0 | -6,227,094,358,887,579,000 | 17.098485 | 64 | 0.598995 | false |
cdubz/timestrap | timestrap/settings/docker.py | 1 | 1289 | from .base import * # noqa: F401,F403
DEBUG = False
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.environ['SECRET_KEY'] # noqa: F405
# SECURITY WARNING: set this to your domain name in production!
ALLOWED_HOSTS = ['*']
# Database
# https://docs.djangoproject.com/en/2.0/r... | bsd-2-clause | -6,018,888,593,459,702,000 | 22.87037 | 78 | 0.619085 | false |
SangRyul/bamboo | edit/change.py | 1 | 1175 | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
def fileformatting():
import re
errorlog = open("error_log.txt","w+", encoding = "UTF8")
for x in range(1,1015):
try:
#please change this number
f = open(str(x)+".txt", "r+", encoding ... | gpl-3.0 | -1,194,179,583,405,264,600 | 27.04878 | 79 | 0.422106 | false |
mronkain/Timer2 | setup.py | 1 | 1102 | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="artmr",
version="1.0",
author="mronkain",
author_email="mrnk@iki.fi",
description="Offline race timing console application",
long_description=long_description,
long_description_con... | mit | 7,069,182,115,293,866,000 | 28 | 59 | 0.578947 | false |
git-keeper/git-keeper | git-keeper-server/gkeepserver/event_handlers/class_add_handler.py | 1 | 3374 | # Copyright 2020 Nathan Sommer and Ben Coleman
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is dis... | agpl-3.0 | 8,357,152,285,302,182,000 | 33.080808 | 77 | 0.647303 | false |
TejasM/wisely | wisely_project/users/urls.py | 1 | 1393 | import views
__author__ = 'tmehta'
from django.conf.urls import patterns, url
urlpatterns = patterns('',
url(r'^login/$', views.login_user, name='login'),
url(r'^logout/$', views.logout_user, name='logout'),
url(r'^signup/$', views.signup, name='si... | mit | 6,447,398,637,610,337,000 | 57.083333 | 104 | 0.492462 | false |
paalge/scikit-image | skimage/data/__init__.py | 1 | 10535 | # coding: utf-8
"""Standard test images.
For more images, see
- http://sipi.usc.edu/database/database.php
"""
import os as _os
import numpy as np
from .. import data_dir
from ..io import imread, use_plugin
from .._shared._warnings import expected_warnings
from ._binary_blobs import binary_blobs
from .. import i... | bsd-3-clause | -3,940,344,765,195,876,400 | 26.292746 | 104 | 0.64879 | false |
TransparentHealth/hhs_oauth_client | apps/provider/migrations/0010_auto_20160623_1813.py | 1 | 1676 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('provider', '0009_auto_20160623_1600'),
]
operations = [
migrations.RemoveField(
model_name='organization',
... | apache-2.0 | -2,265,275,564,265,581,000 | 26.47541 | 74 | 0.520883 | false |
mtwilliams/mojo | dependencies/assimp-2.0.863/port/PyAssimp/pyassimp/structs.py | 1 | 31693 | #-*- coding: UTF-8 -*-
from ctypes import POINTER, c_int, c_uint, c_char, c_float, Structure, c_char_p, c_double, c_ubyte
class Matrix3x3(Structure):
"""
See 'aiMatrix3x3.h' for details.
"""
_fields_ = [
("a1", c_float),("a2", c_float),("a3", c_float),
("b1", c_float),("b2"... | mit | 2,478,706,221,965,106,700 | 34.411173 | 98 | 0.523901 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.