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 |
|---|---|---|---|---|---|---|---|---|---|---|
orcasgit/django-flatcontent | flatcontent/models.py | 1 | 2578 | from django.contrib.sites.models import Site
from django.core.cache import cache
from django.db import models
from django.utils import translation
from templatefield.fields import TemplateTextField
from templatefield.managers import RenderTemplateManager
class FlatContent(models.Model):
slug = models.SlugField(ma... | bsd-3-clause | 551,594,512,985,157,300 | 34.315068 | 78 | 0.609387 | false |
BraydenYates/school | jenningsextracredit.py | 1 | 2032 | import os, sys
def congrats():
print(" ,jf")
print(" _am, ,_am, ,_g_oam, _am, _g_ag, _am, koewkovg _mm_")
print(" ,gF @._-gF @-' jf @ ,gF @ ^ NX #_,gF @ jf qK '")
print(" 8Y 8Y d j# ... | gpl-2.0 | 5,751,840,495,291,433,000 | 49.8 | 207 | 0.354331 | false |
JuezUN/INGInious | inginious/frontend/plugins/analytics/__init__.py | 1 | 1875 | import os
from inginious.frontend.plugins.utils import create_static_resource_page
from .api.stacked_bar_plot_api import StackedBarPlotAPI
from .pages.analytics import AnalyticsPage
from .api.analytics import AnalyticsAPI
from .api.calendar_plot_api import CalendarPlotAPI
from .api.time_series_plot_api import TimeSeri... | agpl-3.0 | -8,019,195,041,219,359,000 | 48.342105 | 104 | 0.755733 | false |
proekt-po-python/Snooker-master-proekt-po-python | settings.py | 1 | 1813 | """Настройки на топките"""
WHITE = (255, 255, 255)
RED = (255, 0, 0)
YELLOW = (255, 255, 0)
GREEN = (0, 128, 0)
BROWN = (139, 69, 19)
BLUE = (0, 0, 250)
PINK = (250, 20, 147)
BLACK = (0, 0, 0)
POS_RED1 = (320, 287)
POS_RED2 = (306, 279)
POS_RED3 = (306, 296)
POS_RED4 = (292, 271)
POS_RED5 = (292, 288)
POS_RED6 = (292, ... | gpl-3.0 | 1,925,036,287,309,357,000 | 22.554054 | 62 | 0.632243 | false |
nave91/dbt | dbt/task/serve.py | 1 | 1050 | import shutil
import os
import webbrowser
from socketserver import TCPServer
from dbt.include import DOCS_INDEX_FILE_PATH
from dbt.compat import SimpleHTTPRequestHandler
from dbt.logger import GLOBAL_LOGGER as logger
from dbt.task.base_task import RunnableTask
class ServeTask(RunnableTask):
def run(self):
... | apache-2.0 | 4,915,701,571,249,438,000 | 24 | 78 | 0.612381 | false |
sagaruprety/Stopwatch | stopwatch.py | 1 | 2634 | #!usr/bin/python
# Created by Sagar Uprety at Bengaluru, India on May 14th, 2016.
# This is a simple stopwatch utility implemented as shell. Can be used in absence of a smartphone/smartwatch.
# Run this file using the python command and then see the list of commands to proceed.
# Any comments/suggestions/feedback is w... | mit | 8,669,115,421,567,463,000 | 35.09589 | 110 | 0.657935 | false |
FATSLiM/fatslim | fatslimlib/test/test_03_apl.py | 1 | 12484 | # -*- coding: utf-8; Mode: python; tab-width: 4; indent-tabs-mode:nil; -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
#
# Copyright (C) 2013-2016 Sébastien Buchoux <sebastien.buchoux@gmail.com>
#
# This file is part of FATSLiM.
#
# FATSLiM is free software: you can redistribute it and/or modify
# ... | gpl-3.0 | -4,006,026,761,740,973,600 | 36.262687 | 150 | 0.604342 | false |
JavierDelgadoFernandez/invenio-previewer | invenio_previewer/views.py | 1 | 3942 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2016 CERN.
#
# Invenio 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... | gpl-2.0 | 3,452,252,407,764,238,000 | 32.982759 | 76 | 0.669457 | false |
Qbicz/multi-secret-sharing | python/tests/test_MultiSecretCommon.py | 1 | 2841 | from nose.tools import assert_equal
from nose.tools import assert_not_equal
from nose.tools import assert_raises
from multisecret.MultiSecretRoyAdhikari import Dealer
import multisecret.MultiSecretCommon as common
""" Declare basic params used to initialize Dealer in test cases """
# large prime from NIST P-256 ellipt... | mit | 2,988,287,257,001,769,500 | 37.917808 | 77 | 0.644139 | false |
rupak0577/ginga | ginga/util/io_fits.py | 1 | 11092 | #
# io_fits.py -- Module wrapper for loading FITS files.
#
# This is open-source software licensed under a BSD license.
# Please see the file LICENSE.txt for details.
#
"""
There are two possible choices for a python FITS file reading package
compatible with Ginga: astropy/pyfits and fitsio. Both are based on
the CFIT... | bsd-3-clause | 3,525,364,318,789,442,000 | 29.811111 | 95 | 0.524702 | false |
xaedes/canopen_301_402 | src/canopen_301_402_old/utils.py | 1 | 3131 | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
import can
def set_timeout(timeout,callback):
'''
@summary: calls a function after a specified number of seconds
@param timeout: number of seconds
@param callback: function be called
@result:
'''
pass # TODO
def collect_all_leaf_subclasses(... | mit | -1,381,111,415,650,937,600 | 24.455285 | 104 | 0.577132 | false |
akhilaananthram/nupic.fluent | fluent/utils/text_preprocess.py | 1 | 10244 | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2015, Numenta, Inc. Unless you have purchased from
# Numenta, Inc. a separate commercial license for this software code, the
# following terms and conditions apply:
#
# This pro... | agpl-3.0 | 6,553,034,534,967,620,000 | 35.326241 | 80 | 0.596251 | false |
TerraFERMA/TerraFERMA | buckettools/python/buckettools/diagnostics/filehandling.py | 1 | 6629 | # This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be us... | lgpl-3.0 | 381,783,156,762,168,500 | 23.921053 | 112 | 0.684115 | false |
bulax41/Commands | scripts/telegram_bot.py | 1 | 8020 | #!/usr/bin/env python
import subprocess
import select
import sys
import datetime
import time
import re
import json
import socket
import logging
import telegram
from contextlib import closing
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
savefile = "chatlist.json"
user_token = "8c6d20cee783... | gpl-3.0 | -8,307,784,479,492,521,000 | 29.846154 | 166 | 0.616459 | false |
SectorLabs/django-postgres-extra | psqlextra/models/view.py | 1 | 4455 | from typing import Callable, Optional, Union
from django.core.exceptions import ImproperlyConfigured
from django.db import connections
from django.db.models import Model
from django.db.models.base import ModelBase
from django.db.models.query import QuerySet
from psqlextra.type_assertions import is_query_set, is_sql, ... | mit | 5,509,631,184,362,284,000 | 33.269231 | 79 | 0.639057 | false |
filippog/pysnmp | examples/v3arch/asyncore/manager/ntfrcv/regexp-community-name.py | 1 | 3156 | """
Serve SNMP Community names defined by regexp
++++++++++++++++++++++++++++++++++++++++++++
Receive SNMP TRAP/INFORM messages with the following options:
* SNMPv1/SNMPv2c
* with any SNMP community matching regexp '.*love.*'
* over IPv4/UDP, listening at 127.0.0.1:162
* print received data on stdout
Either of the f... | bsd-3-clause | 6,739,376,045,993,445,000 | 34.863636 | 168 | 0.739227 | false |
simontakite/sysadmin | pythonscripts/learningPython/setsubclass.py | 1 | 1331 | from __future__ import print_function # 2.X compatibility
class Set(list):
def __init__(self, value = []): # Constructor
list.__init__([]) # Customizes list
self.concat(value) # Copies mutable defaults
def intersect(self, other): # other is ... | gpl-2.0 | 6,475,994,104,867,657,000 | 36.028571 | 66 | 0.469572 | false |
karstenw/nodebox-pyobjc | examples/Extended Application/matplotlib/examples/lines_bars_and_markers/simple_plot.py | 1 | 1292 | """
===========
Simple Plot
===========
Create a simple plot.
"""
import matplotlib.pyplot as plt
import numpy as np
# nodebox section
if __name__ == '__builtin__':
# were in nodebox
import os
import tempfile
W = 800
inset = 20
size(W, 600)
plt.cla()
plt.clf()
plt.close('all')
... | mit | -4,677,721,399,590,921,000 | 21.275862 | 82 | 0.584365 | false |
cedriclaunay/gaffer | python/GafferSceneTest/ShaderTest.py | 1 | 3822 | ##########################################################################
#
# Copyright (c) 2013, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistrib... | bsd-3-clause | -7,466,397,408,463,688,000 | 31.666667 | 88 | 0.673469 | false |
chovanecm/sacredboard | sacredboard/tests/test_bootstrap.py | 1 | 2528 | # coding=utf-8
import pytest
import sacredboard.bootstrap as bootstrap
@pytest.fixture
def app():
return bootstrap.Flask(__name__)
@pytest.fixture()
def app_config():
return {
"http.serve_on_endpoint": "/",
"http.port": 5000,
"debug": False
}
@pytest.mark.parametrize("config_st... | mit | 4,168,005,541,409,299,000 | 41.133333 | 114 | 0.634098 | false |
xi/ldif3 | setup.py | 1 | 1063 | #!/usr/bin/env python
import os
import re
from setuptools import setup
DIRNAME = os.path.abspath(os.path.dirname(__file__))
rel = lambda *parts: os.path.abspath(os.path.join(DIRNAME, *parts))
README = open(rel('README.rst')).read()
MAIN = open(rel('ldif3.py')).read()
VERSION = re.search("__version__ = '([^']+)'", MA... | bsd-2-clause | 3,902,767,514,041,709,600 | 29.371429 | 67 | 0.604892 | false |
Udzu/pudzu | dataviz/flagsaverage.py | 1 | 2847 | from pudzu.charts import *
from pudzu.sandbox.bamboo import *
flags = pd.read_csv("datasets/countries.csv")[lambda df: df.code != "EUU"].split_columns(('nationality', 'tld', 'country'), "|").explode('country').set_index('country').drop_duplicates(subset='flag', keep='first')
bg = "#EEEEEE"
def image_flag(c):
... | mit | 3,215,954,252,348,405,000 | 59.891304 | 213 | 0.672638 | false |
Alex-Ian-Hamilton/sunpy | examples/gallery/map_from_numpy_array.py | 1 | 1364 | # -*- coding: utf-8 -*-
"""
=========================================
Generating a Map From Data
=========================================
A simple demonstration of creating a map from a numpy array of data.
"""
##############################################################################
# Start by importing the ne... | bsd-2-clause | -6,160,192,072,309,975,000 | 34.921053 | 79 | 0.540323 | false |
faneshion/MatchZoo | matchzoo/contrib/layers/spatial_gru.py | 1 | 10175 | """An implementation of Spatial GRU Layer."""
import typing
import tensorflow as tf
from keras import backend as K
from keras.engine import Layer
from keras.layers import Permute
from keras.layers import Reshape
from keras import activations
from keras import initializers
class SpatialGRU(Layer):
"""
Spatial ... | apache-2.0 | 5,870,417,507,427,080,000 | 34.086207 | 77 | 0.521966 | false |
qvazzler/Flexget | flexget/plugins/modify/plugin_rutracker.py | 1 | 5223 | # coding=utf-8
from __future__ import unicode_literals, division, absolute_import
from builtins import * # pylint: disable=unused-import, redefined-builtin
import json
import logging
from time import sleep
from datetime import datetime, timedelta
from sqlalchemy import Column, Unicode, Integer, DateTime
from sqlalch... | mit | 738,527,470,474,222,500 | 31.216049 | 119 | 0.603756 | false |
hbldh/bankkonto | bankkonto/account.py | 1 | 7719 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
:mod:`account`
=======================
List of bank account number formats from `Bankgirot
<https://www.bankgirot.se/globalassets/dokument/anvandarmanualer/bankernaskontonummeruppbyggnad_anvandarmanual_sv.pdf>`_.
.. moduleauthor:: hbldh <henrik.blidh@swedwise.com>
Cre... | mit | -3,370,694,824,097,687,000 | 41.783333 | 122 | 0.676925 | false |
matthew-robertson/vore-tracker | tests/commands/test_removebancommand.py | 1 | 4391 | import unittest
from unittest.mock import patch, Mock
import discord
import datetime
from commands import RemoveBanCommand
from serverobjects.server import DiscordServer
class TestRemoveBanCommand(unittest.TestCase):
def setUp(self):
self.command = RemoveBanCommand()
def test_is_command_authorized__no_permission... | mit | 4,362,376,145,942,010,400 | 29.929577 | 115 | 0.600547 | false |
uclouvain/osis | osis_role/contrib/permissions.py | 1 | 4063 | ##############################################################################
#
# OSIS stands for Open Student Information System. It's an application
# designed to manage the core business of higher education institutions,
# such as universities, faculties, institutes and professional schools.
# The core ... | agpl-3.0 | -359,660,411,355,129,800 | 43.637363 | 108 | 0.646233 | false |
matthijsvk/multimodalSR | code/Experiments/neon-master/examples/nmt/train.py | 1 | 6439 | #!/usr/bin/env python
# ----------------------------------------------------------------------------
# Copyright 2016 Nervana Systems Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ... | mit | -3,723,303,919,876,791,300 | 41.084967 | 96 | 0.676968 | false |
wrenchzc/photomanager | photomanager/utils/imageutils.py | 1 | 5894 | import exifread
import os
import uuid
from PIL import Image
from photomanager.lib.pmconst import SUPPORT_EXTS, SKIP_LIST, PATH_SEP
from photomanager.lib.helper import get_file_md5, get_timestamp_from_str
from photomanager.utils.logger import logger
class ImageInfo:
def __init__(self, filename):
self.fil... | mit | -8,407,597,359,741,453,000 | 39.648276 | 122 | 0.615032 | false |
Affix/fas | fas/tgcaptcha2/plugins/image/vanasco_dowty/__init__.py | 1 | 1183 | import captcha
from turbogears import config
import random
import os.path
from pkg_resources import resource_filename
plugin_name = 'fas.tgcaptcha2.plugin.vanasco_dowty.'
width = int(config.get(plugin_name + 'width', 300))
height = int(config.get(plugin_name + 'height', 100))
bg_color = config.get(plugin_name + 'bg_c... | gpl-2.0 | 7,534,460,186,337,171,000 | 38.433333 | 76 | 0.685545 | false |
ahsanali/expense-tracker | tracker/forms/expenses.py | 1 | 1193 | from flask.ext.wtf import Form
from wtforms_alchemy import model_form_factory
from wtforms import StringField, DateField, IntegerField
from wtforms.validators import DataRequired
from tracker.extensions import db
from tracker.models import Expense
BaseModelForm = model_form_factory(Form)
class ModelForm(BaseMod... | apache-2.0 | -5,965,794,356,291,844,000 | 26.744186 | 73 | 0.738474 | false |
curiosityio/taiga-docker | taiga-back/taiga-back/tests/integration/test_importer_api.py | 1 | 55263 | # Copyright (C) 2014-2016 Andrey Antukh <niwi@niwi.nz>
# Copyright (C) 2014-2016 Jesús Espino <jespinog@gmail.com>
# Copyright (C) 2014-2016 David Barragán <bameda@dbarragan.com>
# Copyright (C) 2014-2016 Alejandro Alonso <alejandro.alonso@kaleidos.net>
# This program is free software: you can redistribute it and/or mo... | mit | 7,157,897,477,434,248,000 | 31.411144 | 111 | 0.59304 | false |
unixunion/python-libsolace | libsolace/settingsloader.py | 1 | 2455 | import yaml
import os
import logging
import sys
__author__ = 'johlyh'
primary_config = 'libsolace.yaml',
try:
primary_config = os.environ['LIBSOLACE_CONFIG']
except Exception, e:
pass
__yamlfiles__ = [
"%s" % primary_config,
'/etc/libsolace/libsolace.yaml',
'/opt/libsolace/libsolace.yaml'
]
__do... | mit | 8,308,333,091,573,597,000 | 25.397849 | 104 | 0.641955 | false |
DarioGT/OMS-PluginXML | org.modelsphere.sms/lib/jython-2.2.1/Lib/test/string_tests.py | 1 | 11250 | """Common tests shared by test_string and test_userstring"""
import string
from test_support import verify, verbose, TestFailed, have_unicode
transtable = '\000\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037 !"#$%&\'()*+,-./0123456789:;... | gpl-3.0 | -4,601,510,532,858,718,000 | 40.45283 | 756 | 0.524267 | false |
SDM-OS/playlist | cherrymusicserver/database/__init__.py | 1 | 5561 | #!/usr/bin/python3
# -*- coding: utf-8 -*-
#
# CherryMusic - a standalone music server
# Copyright (c) 2012 Tom Wallroth & Tilman Boerner
#
# Project page:
# http://fomori.org/cherrymusic/
# Sources on github:
# http://github.com/devsnd/cherrymusic/
#
# CherryMusic is based on
# jPlayer (GPL/MIT license) http://w... | gpl-3.0 | 1,879,368,752,152,793,300 | 30.777143 | 81 | 0.644668 | false |
bigmlcom/bigmler | bigmler/options/export.py | 1 | 2037 | # -*- coding: utf-8 -*-
#
# Copyright 2017-2021 BigML
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | apache-2.0 | -4,574,008,294,267,811,000 | 33.525424 | 75 | 0.593029 | false |
redpath11/phy981_thr | projects/proj2/shell_model.py | 1 | 3917 | import numpy as np
from decimal import Decimal
import os
from scipy.misc import comb
from numpy import linalg as LA
import itertools
# bitCount() counts the number of bits set (not an optimal function)
def bitCount(int_type):
""" Count bits set in integer """
count = 0
while(int_type):
int_type &... | apache-2.0 | -4,080,791,349,605,546,000 | 31.371901 | 127 | 0.620117 | false |
PALab/PLACE | place/plugins/ds345_function_gen/ds345_driver.py | 1 | 13211 | """Driver module for Stanford Research Systems DS345 Function Generator."""
import serial
class DS345Driver:
#pylint: disable=too-many-public-methods
"""Class for low-level access to the function generator settings."""
def __init__(self, serial_port):
self._serial_port = str(serial_port)
# FUNC... | lgpl-3.0 | 571,940,896,025,300,500 | 33.048969 | 89 | 0.552418 | false |
diegojromerolopez/djanban | src/djanban/apps/repositories/pylinter.py | 1 | 2199 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import json
import os
import re
from pylint import epylint as lint
from djanban.apps.repositories.cloc import Cloc
# Pylinter for directories
class PythonDirectoryAnalyzer(object):
def __init__(self, dir_path):
self.dir_path = dir_path
... | mit | -5,372,754,855,079,093,000 | 28.716216 | 88 | 0.582083 | false |
eddieantonio/imgcat | libexec/gen_img.py | 1 | 2780 | #!/usr/bin/env python
# Copyright (c) 2014–2018, Eddie Antonio Santos <easantos@ualberta.ca>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE ... | isc | -5,803,299,474,392,289,000 | 24.254545 | 92 | 0.596472 | false |
mag6367/Cracking_the_Coding_Interview_Python_Solutions | chapter2/quest2_4.py | 1 | 1881 | # question 2.4 from cracking the code interview 4th ed.
# Look at LinkedList.py to understand the implementation of Linked List
'''
You have two numbers represented by a linked list, where each node contains a single digit.
The digits are stored in reverse order, such that the 1’s digit is at the head of the list.
Wri... | mit | 8,188,274,509,255,280,000 | 29.803279 | 112 | 0.72645 | false |
UASLab/ImageAnalysis | video/archive/deprecated_cam_calib.py | 1 | 3390 | import numpy as np
# set camera calibration from some hard coded options
def set_camera_calibration(value):
if value == 0:
name = "Mobius 1920x1080 (Curt)"
K = np.array( [[1362.1, 0.0, 980.8],
[ 0.0, 1272.8, 601.3],
[ 0.0, 0.0, 1.0]] )
... | mit | -8,405,709,645,989,072,000 | 48.852941 | 80 | 0.412979 | false |
lucadealfaro/crowdranker | models/keystore.py | 1 | 2062 | # -*- coding: utf-8 -*-
# Implementation of a key-value store API.
db.define_table('key_value_store',
Field('content', 'text'))
def keystore_write(v):
"""Writes a new string v to the key-value store, returning the string key."""
id = db.key_value_store.insert(content = v)
logger.info("inserting keys... | bsd-3-clause | -7,900,462,775,638,556,000 | 28.884058 | 85 | 0.619302 | false |
tulsawebdevs/django-multi-gtfs | examples/explore/exploreapp/urls.py | 1 | 5061 | from django.conf.urls import url
from django.views.generic import DetailView, ListView
from multigtfs.models import (
Agency, Block, Fare, FareRule, Feed, FeedInfo, Route, Service, ServiceDate,
Shape, ShapePoint, Stop, StopTime, Trip, Zone)
from exploreapp.views import (
ByFeedListView, FareRuleByFareListV... | apache-2.0 | 8,651,537,239,145,782,000 | 51.175258 | 79 | 0.613318 | false |
PaulWay/insights-core | insights/parsers/tests/test_tuned.py | 1 | 2414 | import unittest
from insights.parsers.tuned import Tuned
from insights.tests import context_wrap
TUNED_OUTPUT = '''
Available profiles:
- balanced
- desktop
- latency-performance
- network-latency
- network-throughput
- powersave
- throughput-performance
- virtual-guest
- virtual-host
Current active profile: virtual-g... | apache-2.0 | 982,681,857,497,023,200 | 37.31746 | 79 | 0.462303 | false |
ajestu/python.training | model/contact.py | 1 | 1179 | from sys import maxsize
class Contact:
def __init__(self, firstname= None, lastname= None, id= None,
homephone= None, mobilephone= None, workphone= None, secondphone= None , all_phones_from_homepage=None,
address=None, email=None, email2=None, email3=None, all_emails=None):
... | apache-2.0 | -3,209,891,477,978,262,000 | 33.676471 | 121 | 0.603053 | false |
kubernetes-client/python | kubernetes/client/models/v1_fc_volume_source.py | 1 | 7243 | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: release-1.18
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import si... | apache-2.0 | -7,308,672,900,425,883,000 | 29.952991 | 197 | 0.580008 | false |
regular/pyglet-avbin-optimizations | pyglet/gl/lib_wgl.py | 1 | 5718 | # ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | bsd-3-clause | 3,521,965,410,523,895,300 | 36.372549 | 79 | 0.616474 | false |
ololobster/cvidone | localization/make_l10n.py | 1 | 2994 | # Licensed under The MIT License.
# For full copyright and license information, please see the LICENSE.txt.
import os
import sys
import codecs
warning = "<!-- Generated automatically by make_l10n.py. Think twice before edit. -->"
if (4 != len(sys.argv)):
print("Usage:")
print("./make_l10n.py <source directory... | mit | -9,081,171,831,073,714,000 | 33.813953 | 105 | 0.568804 | false |
ablab/rectangles | bigraph.py | 1 | 37881 | from abstract_graph import Abstract_Graph, Abstract_Edge, Abstract_Vertex
import abstract_graph
import os
import saveparser
import experimental
import graph
import logging
import cStringIO
import itertools
from test_util import TestUtils
from rectangle import Rectangle
from utils import conjugate
import utils
DEEP_T... | gpl-2.0 | -6,435,739,435,818,863,000 | 37.8125 | 373 | 0.550645 | false |
nivertius/remoteable | server.py | 1 | 3563 |
import json
import logging
import uuid
from remoteable.command import Command
__all__ = ('RemotingActual', 'RemotingHandler', 'RemotingServer', 'ThreadedRemotingServer')
class RemotingActual(object):
def __init__(self, name, exports = None):
self._logger = logging.getLogger("remoting.actual.%s" % name)
self._e... | bsd-2-clause | 4,940,740,009,443,049,000 | 25.992424 | 91 | 0.687903 | false |
Tesora-Release/tesora-trove | trove/common/apischema.py | 1 | 22361 | # Copyright 2013 Hewlett-Packard Development Company, L.P.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2... | apache-2.0 | 4,086,524,463,585,447,000 | 25.908544 | 78 | 0.387326 | false |
wasade/qiime | scripts/ampliconnoise.py | 1 | 7975 | #!/usr/bin/env python
# File created on 20 Jun 2011
from __future__ import division
__author__ = "Justin Kuczynski"
__copyright__ = "Copyright 2011, The QIIME Project"
__credits__ = ["Justin Kuczynski", "Jose A. Navas Molina"]
__license__ = "GPL"
__version__ = "1.8.0-dev"
__maintainer__ = "Justin Kuczynski"
__email__ ... | gpl-2.0 | -8,569,153,252,446,233,000 | 33.673913 | 206 | 0.615047 | false |
kubeflow/kfp-tekton-backend | sdk/python/kfp/components/structures/kubernetes/v1.py | 1 | 16372 | __all__ = [
'Container',
'PodArgoSubset',
]
from collections import OrderedDict
from typing import Any, Dict, List, Mapping, Optional, Sequence, Union
from ...modelbase import ModelBase
class EnvVar(ModelBase):
_serialized_names = {
'value_from': 'valueFrom',
}
def __init__(self,
... | apache-2.0 | 1,617,939,558,734,047,500 | 34.982418 | 138 | 0.608722 | false |
ptesarik/crash-python | crash/types/task.py | 1 | 9970 | # -*- coding: utf-8 -*-
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
import gdb
import sys
if sys.version_info.major >= 3:
long = int
from crash.util import array_size
from crash.infra im... | gpl-2.0 | 6,766,375,660,180,983,000 | 31.90429 | 86 | 0.553059 | false |
dsvalenciah/sanic-rest | app.py | 1 | 2542 | # bultin library
from uuid import uuid4
# external libraries
from sanic import Sanic
from sanic.views import HTTPMethodView
from sanic.response import json
from sanic_cors import CORS
app = Sanic()
"""
POST /tasks
GET /tasks
GET /task/<id>
PUT /task/<id>
"""
DATOS = {}
class TaskList(HTTPMethodView):
def po... | mit | 1,342,506,300,772,082,700 | 21.298246 | 64 | 0.486625 | false |
s2nner/py_test | api/v1.py | 1 | 1300 | from flask import Flask, Blueprint, request, jsonify
from flask_restful import reqparse, abort, Api, Resource
from api.auth import Signup, Signin
parser = reqparse.RequestParser()
# parser.add_argument('username', type=str, location='json')
# json_data = request.get_json(force=True)
API_VERSION_V1 = 1
API_VERSION = A... | mit | 8,521,230,772,457,407,000 | 29.952381 | 67 | 0.626923 | false |
mdboom/jwst_lib.models | jwst_lib/models/dynamicdq.py | 1 | 1162 | import numpy as np
from . import dqflags
def dynamic_mask(input_model):
#
# Return a mask model given a mask with dynamic DQ flags
# Dynamic flags define what each plane refers to using the DQ_DEF extension
dq_table = input_model.dq_def
# Get the DQ array and the flag definitions
if (dq_table ... | bsd-3-clause | 5,627,819,298,525,392,000 | 35.3125 | 113 | 0.601549 | false |
UCHIC/h2outility | src/Utilities/H2OServices.py | 1 | 19597 | import datetime
from exceptions import IOError
from threading import Thread
import jsonpickle
import sys
from wx.lib.pubsub import pub
# from pubsub import pub
from GAMUTRawData.odmservices import ServiceManager
from H2OSeries import OdmSeriesHelper
from Common import APP_SETTINGS, InitializeDirectories
from Utilitie... | bsd-3-clause | -3,079,461,711,688,992,000 | 43.742009 | 150 | 0.585906 | false |
kansanmuisti/kamu | utils/http_cache.py | 1 | 1334 | # -*- coding: utf-8 -*-
import os
import urllib.request, urllib.error, urllib.parse
import hashlib
cache_dir = None
def set_cache_dir(dir):
global cache_dir
cache_dir = dir
def create_path_for_file(fname):
dirname = os.path.dirname(fname)
if not os.path.exists(dirname):
os.makedirs(dirname)
... | agpl-3.0 | 8,539,118,497,791,571,000 | 26.22449 | 78 | 0.572714 | false |
memsql/memsql-loader | memsql_loader/util/servers.py | 1 | 1107 | import atexit
import errno
import os
from memsql_loader.util import paths
def get_pid_file_path():
return os.path.join(paths.get_data_dir(), "memsql-loader.pid")
def delete_pid_file():
try:
os.remove(get_pid_file_path())
except Exception:
pass
def write_pid_file():
atexit.register(de... | apache-2.0 | 1,009,624,705,779,746,400 | 24.159091 | 71 | 0.595303 | false |
laufercenter/meld | meld/system/openmm_runner/runner.py | 1 | 34742 | #
# Copyright 2015 by Justin MacCallum, Alberto Perez, Ken Dill
# All rights reserved
#
from simtk.openmm.app import AmberPrmtopFile, OBC2, GBn, GBn2, Simulation
from simtk.openmm.app import forcefield as ff
from simtk.openmm import LangevinIntegrator, Platform, CustomExternalForce
from simtk.unit import kelvin, picos... | mit | 7,013,006,618,140,782,000 | 45.696237 | 158 | 0.602354 | false |
biocore/qiime2 | qiime2/core/type/primitive.py | 1 | 9941 | # ----------------------------------------------------------------------------
# Copyright (c) 2016-2019, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ------------------------------------------------... | bsd-3-clause | -7,128,281,029,778,657,000 | 30.163009 | 78 | 0.583643 | false |
rogalski/pylint | pylint/test/extensions/test_check_docs.py | 1 | 51612 | # Copyright (c) 2014-2015 Bruno Daniel <bruno.daniel@blue-yonder.com>
# Copyright (c) 2015-2016 Claudiu Popa <pcmanticore@gmail.com>
# Copyright (c) 2016 Ashley Whetter <ashley@awhetter.co.uk>
# Copyright (c) 2016 Glenn Matthews <glenn@e-dad.net>
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-... | gpl-2.0 | 7,417,246,744,053,899,000 | 28.458904 | 80 | 0.474463 | false |
localhuman/neo-python | neo/Core/TX/Transaction.py | 1 | 22181 | # -*- coding:utf-8 -*-
"""
Description:
Transaction Basic Class
Usage:
from neo.Core.Transaction import Transaction
"""
from itertools import groupby
from neo.Blockchain import *
from neo.Core.TX.TransactionAttribute import *
from neocore.Fixed8 import Fixed8
from neo.Network.Inventory import Inventory
from neo... | mit | -6,089,364,260,338,505,000 | 27.994771 | 136 | 0.566295 | false |
geminy/aidear | oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/third_party/WebKit/PRESUBMIT.py | 5 | 16507 | # Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Top-level presubmit script for Blink.
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the presubmi... | gpl-3.0 | -6,985,967,053,164,653,000 | 41.875325 | 156 | 0.639002 | false |
tensorflow/lingvo | lingvo/core/egdd_test.py | 1 | 4604 | # Lint as: python3
# Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | apache-2.0 | -8,041,512,255,175,714,000 | 39.385965 | 80 | 0.611425 | false |
mjroson/django-favit | favit/models.py | 1 | 1048 | # -*- coding: utf-8 -*-
from django.contrib.contenttypes import generic
from django.contrib.contenttypes.models import ContentType
from django.db import models
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from .managers import FavoriteManager
class Favorite(models.Model):
... | mit | -6,184,803,371,292,605,000 | 32.806452 | 81 | 0.69084 | false |
BenLangmead/qtip-experiments | experiments/real_data/perf_tabulate.py | 1 | 3305 | """
Creates a table with efficiency metrics (running time, peak memory
footprint) from SLURM output generated from sbatch_align.sh.
"""
from __future__ import print_function
import glob
import sys
from collections import defaultdict
nslurm, nsam = 0, 0
sam_names = defaultdict(int)
tab_wrapped = defaultdict(lambda: d... | mit | -3,366,417,787,991,441,000 | 39.304878 | 119 | 0.552496 | false |
josegfv/transfer_sh_track | transfer.py | 1 | 7264 | #!/usr/bin/python3
"""
Usage: transfer ( -l | -p | -u <file> | -d | -h)
Options:
-h Help.
-d Download file into your local folder
-l List files that have been uploaded to transfer.sh
-p Purge the files from list that have Expired
-u <file> Upload a fi... | mit | 2,242,509,597,394,470,100 | 30.445887 | 89 | 0.544053 | false |
giubil/trackit | api/files/api/app/views/aws/account_management.py | 1 | 9304 | from datetime import datetime
from app import app
from app.authentication import with_login
from app.tasks import import_aws_client_bills, import_aws_elb_infos, process_aws_key
from flask import Blueprint, jsonify
from app.request_schema import with_request_schema
from app.models import db, AWSKey, AWSKeyS3Bucket
from ... | apache-2.0 | 5,535,738,825,873,801,000 | 31.760563 | 141 | 0.523646 | false |
kynikos/lib.py.console-colors | src/consolecolors.py | 1 | 5913 | # Functions for applying console ANSI text effect and color codes.
# Copyright (C) 2011-2014 Dario Giovannetti <dev@dariogiovannetti.net>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either... | gpl-3.0 | 4,030,244,754,463,336,000 | 33.179191 | 79 | 0.49721 | false |
laryamamoto/PyCellChemistry | src/RD/DichotomousBranching.py | 1 | 4555 | #---------------------------------------------------------------------------
#
# DichotomousBranching.py: dichotomous branching pattern based on the
# combination of an activator-depleted substrate model and a vein
# formation substance Y.
#
# Y formation is triggered by the activator A. The vascular system to
# be for... | gpl-3.0 | -8,458,779,047,971,952,000 | 39.669643 | 79 | 0.553897 | false |
Kinggerm/GetOrganelle | Utilities/slim_graph.py | 1 | 66252 | #!/usr/bin/env python
# coding: utf8
import time
import os
import sys
import subprocess
try:
# python2
import commands
except:
pass
inf = float("inf")
from argparse import ArgumentParser
PATH_OF_THIS_SCRIPT = os.path.split(os.path.realpath(__file__))[0]
sys.path.insert(0, os.path.join(PATH_OF_THIS_SCRIPT, "... | gpl-3.0 | -8,140,028,589,328,354,000 | 57.372687 | 250 | 0.494566 | false |
Starkiller4011/astroSF | m2_convert.py | 1 | 1131 | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
#####################################
# ╔╗ ┬ ┬ ┬┌─┐ ╔╦╗┌─┐┌┬┐ #
# ╠╩╗│ │ │├┤ ║║│ │ │ #
# ╚═╝┴─┘└─┘└─┘ ═╩╝└─┘ ┴ #
# ╔═╗┌─┐┌─┐┌┬┐┬ ┬┌─┐┬─┐┌─┐ #
# ╚═╗│ │├┤ │ │││├─┤├┬┘├┤ #
# ╚═╝└─┘└ ┴ └┴┘┴ ┴┴└─└─┘ #
###... | mit | -4,998,561,652,786,531,000 | 26.606061 | 68 | 0.406147 | false |
bpsinc-native/src_third_party_chromite | cros/commands/cros_chrome_sdk_unittest.py | 1 | 18425 | #!/usr/bin/python
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""This module tests the cros image command."""
import copy
import mock
import os
import shutil
import sys
sys.path.insert(0, os.... | bsd-3-clause | 763,099,312,953,600,000 | 35.776447 | 80 | 0.675278 | false |
jelly/calibre | src/calibre/ebooks/metadata/sources/covers.py | 2 | 6230 | #!/usr/bin/env python2
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
from __future__ import (unicode_literals, division, absolute_import,
print_function)
__license__ = 'GPL v3'
__copyright__ = '2011, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import time
f... | gpl-3.0 | -354,615,864,507,625,200 | 30.464646 | 110 | 0.581541 | false |
adityahase/frappe | frappe/config/customization.py | 1 | 1286 | from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"label": _("Form Customization"),
"icon": "fa fa-glass",
"items": [
{
"type": "doctype",
"name": "Customize Form",
"description": _("Change field properties (hide, readonly, permission etc.)")
},
... | mit | -4,193,268,414,217,945,000 | 18.484848 | 82 | 0.486003 | false |
bdeluca/oiio | testsuite/oiiotool/run.py | 1 | 15510 | #!/usr/bin/env python
# Create some test images we need
command += oiiotool ("--create 320x240 3 -d uint8 -o black.tif")
command += oiiotool ("--pattern constant:color=0.5,0.5,0.5 128x128 3 -d half -o grey128.exr")
command += oiiotool ("--pattern constant:color=0.5,0.5,0.5 64x64 3 -d half -o grey64.exr")
command += o... | bsd-3-clause | 3,275,548,160,430,828,000 | 45.160714 | 158 | 0.635654 | false |
tboyce021/home-assistant | homeassistant/components/apple_tv/media_player.py | 2 | 8084 | """Support for Apple TV media player."""
import logging
from pyatv.const import DeviceState, FeatureName, FeatureState, MediaType
from homeassistant.components.media_player import MediaPlayerEntity
from homeassistant.components.media_player.const import (
MEDIA_TYPE_MUSIC,
MEDIA_TYPE_TVSHOW,
MEDIA_TYPE_VI... | apache-2.0 | 3,442,672,379,676,747,300 | 30.212355 | 87 | 0.614795 | false |
dahiro/shotgun-replica | shotgun_replica/python/src/shotgun_replica/thumbnails.py | 1 | 2787 | # -*- coding: utf-8 -*-
'''
handling thumbnailing
'''
from shotgun_replica import config as srconfig
import shotgun_api3
import os
from shotgun_api3.lib.httplib2 import Http
from shotgun_replica.utilities import debug
from elefant.utilities import config
import uuid
import shutil
def getUrlAndStoreLocally( entity_ty... | bsd-3-clause | -871,321,985,060,755,500 | 28.967742 | 70 | 0.626839 | false |
benrudolph/commcare-hq | corehq/apps/reports/forms.py | 1 | 5262 | from django import forms
from django.core.validators import MinLengthValidator
from django.template.loader import render_to_string
from corehq.apps.style.forms.fields import MultiEmailField
from corehq.apps.userreports.reports.view import ConfigurableReport
from crispy_forms import layout as crispy
from crispy_forms.he... | bsd-3-clause | -3,581,842,644,262,316,000 | 31.085366 | 83 | 0.598632 | false |
andrewnsk/dorokhin.moscow | blog/models.py | 1 | 2578 | import os
import uuid
from django.db import models
from django.urls import reverse
from ckeditor.fields import RichTextField
from extended_profile.models import Profile
from taggit.managers import TaggableManager
def get_file_name(instance, filename):
ext = filename.split('.')[-1]
filename = "%s.%s" % (uuid.u... | mit | -8,674,107,391,885,630,000 | 35.470588 | 119 | 0.685081 | false |
project-chip/connectedhomeip | scripts/helpers/upload_release_asset.py | 1 | 3692 | #!/usr/bin/env python3
#
# Copyright (c) 2021 Project CHIP 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 a... | apache-2.0 | 2,737,006,326,794,606,600 | 30.02521 | 80 | 0.69312 | false |
hschilling/pyOpt | pyOpt/pyOpt_gradient.py | 1 | 10818 | #!/usr/bin/env python
'''
pyOpt_gradient
Holds the Python Design Optimization Gradient Calculation Class.
Copyright (c) 2008-2013 by pyOpt Developers
All rights reserved.
Revision: 1.0 $Date: 20/06/2010 21:00$
Developers:
-----------
- Dr. Ruben E. Perez (RP)
- Mr. Peter W. Jansen (PJ)
History
-------
v. 1.0... | gpl-3.0 | 59,109,766,281,050,670 | 31.196429 | 106 | 0.390183 | false |
wei-Z/Python-Machine-Learning | self_practice/CH2A.py | 1 | 4506 | import numpy as np
class Perceptron(object):
"""Perceptron classifier.
Parameters
------------
eta : float
Learning rate (between 0.0 and 1.0)
n_iter : int
Passes over the training dataset.
Attributes
-----------
w_ : 1d-array
Weig... | mit | 2,789,011,311,669,879,000 | 33.396947 | 139 | 0.55415 | false |
cbdavide/competitive-programming | kattis/bitbybit/bitbybit.py | 1 | 1211 |
def generate():
return list('?'*32)
def resolveAND(i, j):
if i == '?' and j == '?':
return '?'
if (i == '?' or j == '?') and (i == '0' or j == '0'):
return '0'
if (i == '?' or j == '?') and (i == '1' or j == '1'):
return '?'
b = bool(int(i)) and bool(int(j))
return s... | gpl-3.0 | 3,973,291,174,812,433,000 | 21.425926 | 77 | 0.442609 | false |
kichkasch/ioids | g4ds/g4dslogging.py | 1 | 5157 | """
Provides Logging facilities.
Grid for Digital Security (G4DS)
Currently, simple logging into files.
@author: Michael Pilgermann
@contact: mailto:mpilgerm@glam.ac.uk
@license: GPL (General Public License)
"""
from time import strftime
import string
import syslog
# "singleton"
_defaultLogger = None
def getDefaul... | gpl-3.0 | -4,223,083,735,552,558,000 | 29.696429 | 118 | 0.627303 | false |
BeenzSyed/tempest | tempest/services/compute/xml/tenant_usages_client.py | 1 | 1915 | # Copyright 2013 NEC Corporation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | apache-2.0 | 7,844,202,176,399,878,000 | 35.826923 | 79 | 0.642298 | false |
mozilla/peekaboo | bin/update/deploy.py | 1 | 3513 | """
Deploy this project in dev/stage/production.
Requires commander_ which is installed on the systems that need it.
.. _commander: https://github.com/oremj/commander
This script is supposed to work in Python 2.6.
The only outside dependency is `virtualenv-2.7`.
"""
import os
import sys
sys.path.append(os.path.dir... | mpl-2.0 | -528,291,136,653,370,750 | 25.216418 | 79 | 0.604042 | false |
mrshu/scikit-learn | sklearn/preprocessing.py | 1 | 40726 | # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Mathieu Blondel <mathieu@mblondel.org>
# Olivier Grisel <olivier.grisel@ensta.org>
# Andreas Mueller <amueller@ais.uni-bonn.de>
# License: BSD
from collections import Sequence
import warnings
import numbers
import numpy as np
imp... | bsd-3-clause | 3,079,903,172,236,351,000 | 33.080335 | 79 | 0.586701 | false |
jsvine/spectra | spectra/__init__.py | 1 | 4083 | from .core import COLOR_SPACES, Color, Scale
from ._version import __version__
def lab(L, a, b):
"""
Create a spectra.Color object in the CIELAB color space.
:param float L: L coordinate.
:param float a: a coordinate.
:param float b: b coordinate.
:rtype: Color
:returns: A spectra.Color o... | mit | -6,719,865,184,158,005,000 | 24.679245 | 75 | 0.639726 | false |
greenoaktree/pfp | pfp/fields.py | 1 | 46379 | #!/usr/bin/env python
# encoding: utf-8
from intervaltree import IntervalTree,Interval
import json
import math
import re
import six
import struct
import pfp.errors as errors
import pfp.utils as utils
import pfp.bitwrap as bitwrap
import pfp.functions as functions
BIG_ENDIAN = ">"
LITTLE_ENDIAN = "<"
def true():
re... | mit | -7,856,990,356,296,160,000 | 26.169889 | 136 | 0.658013 | false |
bjoernricks/kaizen | kaizen/utils/__init__.py | 1 | 1170 | # vim: fileencoding=utf-8 et sw=4 ts=4 tw=80:
# kaizen - Continuously improve, build and manage free software
#
# Copyright (C) 2011 Björn Ricks <bjoern.ricks@gmail.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as publishe... | gpl-2.0 | -87,015,664,061,089,650 | 39.310345 | 83 | 0.750214 | false |
dictoss/active-task-summary | ats/libs.py | 1 | 2855 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import time
import datetime
import logging
import csv
import six
from datetime import date
from django.apps import apps
from django.utils import timezone
logger = logging.getLogger(__name__)
ats_settings = apps.get_app_config('ats')
def get_user_rea... | bsd-2-clause | -1,755,917,449,445,206,000 | 25.192661 | 128 | 0.53275 | false |
wilyuhm/xtratag | insta_api.py | 1 | 1918 | #A small web app for searching multiple tags on instagram
#Takes input in the form of a list of tags, returns oembed code for displaying
#images on a webpage
import requests
import json
from collections import defaultdict
import settings
#settings.py includes the following:
client_id = settings.client_id
client_secre... | mit | -4,484,209,750,462,418,000 | 29.951613 | 92 | 0.717414 | false |
ioram7/keystone-federado-pgid2013 | build/sqlalchemy/test/orm/inheritance/_poly_fixtures.py | 1 | 9894 | from sqlalchemy import Integer, String, ForeignKey, func, desc, and_, or_
from sqlalchemy.orm import interfaces, relationship, mapper, \
clear_mappers, create_session, joinedload, joinedload_all, \
subqueryload, subqueryload_all, polymorphic_union, aliased,\
class_mapper
from sqlalchemy import exc as sa_exc... | apache-2.0 | 8,487,803,596,122,619,000 | 32.090301 | 73 | 0.553164 | false |
openwsn-berkeley/coap | tests/func/test_multiple_CON.py | 1 | 1178 | import logging
import testUtils as utils
import time
import threading
from conftest import IPADDRESS1, \
RESOURCE, \
DUMMYVAL,\
OSCORECLIENTCONTEXT
from coap import coapDefines as d, \
coapOption as o, \
... | bsd-3-clause | 2,872,048,235,033,429,500 | 27.45 | 97 | 0.508489 | false |
dcsch/pyif | pyif/grammar.py | 1 | 12193 |
from . import action
from .parser import NOUN_TOKEN, HELD_TOKEN, MULTI_TOKEN, MULTIHELD_TOKEN, MULTIEXCEPT_TOKEN, MULTIINSIDE_TOKEN, TOPIC_TOKEN, CREATURE_TOKEN
from .debug import log
class Verb:
def __init__(self, grammar, verb_tokens):
self.grammar = grammar
self.verb_tokens = verb_tokens
... | mit | -575,286,760,517,591,740 | 36.86646 | 139 | 0.545313 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.