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 |
|---|---|---|---|---|---|---|---|---|---|---|
davy39/eric | Helpviewer/Bookmarks/BookmarksManager.py | 1 | 21594 | # -*- coding: utf-8 -*-
# Copyright (c) 2009 - 2014 Detlev Offenbach <detlev@die-offenbachs.de>
#
"""
Module implementing the bookmarks manager.
"""
from __future__ import unicode_literals
import os
from PyQt5.QtCore import pyqtSignal, Qt, QT_TRANSLATE_NOOP, QObject, QFile, \
QIODevice, QXmlStreamReader, QDate... | gpl-3.0 | -6,105,752,820,382,670,000 | 32.635514 | 79 | 0.563119 | false |
lmazuel/azure-sdk-for-python | azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_shared_public_ip_address_configuration.py | 1 | 1061 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit | 812,117,735,086,572,800 | 35.586207 | 76 | 0.613572 | false |
Gavitron/pipulator | tcp_fakeclient.py | 1 | 2704 | # Connect to a known game Server and spew out whatever it tells us, before the missing heartbeat causes us to disco
#
import socket
import struct
import sys
import json
# internet variables
game_address = ('127.0.0.1', 27001) # a hack so that I can use the tcpserver when testing.
######
# misc helper function decl... | bsd-3-clause | -4,238,135,791,722,192,400 | 36.555556 | 144 | 0.565089 | false |
ebar0n/SD-Fumadores | agent.py | 1 | 3769 | import threading
import time
from random import choice
import socketserver
from storage import codes, packet_size, store, time_sleep, time_smoke
from utils import _print
global smoke
smoke = False
global smoke_code
class MyTCPServer(socketserver.ThreadingMixIn, socketserver.TCPServer):
pass
class MyTCPServerH... | bsd-3-clause | 6,229,673,584,993,234,000 | 30.940678 | 87 | 0.557177 | false |
anselmobd/fo2 | src/lotes/views/ajax/estoque_depositos_modelo.py | 1 | 1486 | from pprint import pprint
from django.db.models import Exists, OuterRef
from django.http import JsonResponse
from fo2.connections import db_cursor_so
from systextil.queries.deposito.total_modelo import totais_modelos_depositos
import comercial.models
def estoque_depositos_modelo(request, modelo, filtra=''):
c... | mit | 5,535,124,717,280,641,000 | 27.557692 | 76 | 0.556229 | false |
datasoftsrl/ssh-poweroff | sshpoff.py | 1 | 3502 | #!/usr/bin/env python3
# _*_ coding: utf-8 _*_
import sys, random
from os import path
import yaml
from flask import (
Flask,
request,
render_template
)
from pexpect.pxssh import (
pxssh,
ExceptionPxssh
)
import log as lg
VERSION = '1.3.1'
CONF_PATH = path.join(
path.dirname(__file__),
'config.yml'
)
... | mit | -8,402,887,354,948,703,000 | 21.025157 | 80 | 0.605368 | false |
sistason/pa3 | src/pa3_frontend/pa3_django/pa3/statistics_handling.py | 1 | 4335 | import logging
import time
from django.utils import timezone
from django.db.models import Sum
from django.http import HttpResponse
from django.core.exceptions import ObjectDoesNotExist, MultipleObjectsReturned
from pa3.models import WaitingNumberBatch, WaitingNumber, NewestNumberBatch, StatisticalData
def get_src_s... | gpl-3.0 | -7,438,429,729,537,712,000 | 39.148148 | 116 | 0.62722 | false |
ElettraSciComp/STP-Core | STP-Core/preview_phaseretrieval.py | 1 | 5490 | ###########################################################################
# (C) 2016 Elettra - Sincrotrone Trieste S.C.p.A.. All rights reserved. #
# #
# #
# This file is ... | gpl-3.0 | 5,234,524,101,130,132,000 | 35.838926 | 120 | 0.598579 | false |
williamyangcn/iBlah_py | ui/ui_profile_dialog.py | 1 | 4945 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/Users/lee/backups/code/iblah_py/ui/ui_profile_dialog.ui'
#
# Created: Fri May 6 21:47:58 2011
# by: PyQt4 UI code generator 4.8.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fro... | bsd-3-clause | -4,948,456,608,463,711,000 | 57.535714 | 132 | 0.702054 | false |
thoreg/satchmo | store/localsite/templatetags/email_munge.py | 1 | 1857 | """
Stolen from: http://tomcoote.co.uk/code-bank/django-email-munger/
"""
from django import template
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe
from django.utils.html import conditional_escape
import re
register = template.Library()
@register.filter
@string... | bsd-3-clause | -8,291,347,823,628,032,000 | 32.160714 | 98 | 0.655358 | false |
vicente-gonzalez-ruiz/QSVC | trunk/src/old_py/info_mc_j2k.py | 1 | 7723 | #!/usr/bin/python
# -*- coding: iso-8859-15 -*-
## @file info_mc_j2k.py
# The size in bytes, and a codestream Kbps, even detailed subband
# level and neglecting headers, from a MCJ2K codestream.
#
# @authors Jose Carmelo Maturana-Espinosa\n Vicente Gonzalez-Ruiz.
# @date Last modification: 2015, January 7.
#
## @p... | gpl-2.0 | 6,323,669,541,710,254,000 | 25.179661 | 200 | 0.545125 | false |
numerical-mathematics/extrapolation | ex_parallel_original.py | 1 | 28458 | from __future__ import division
import numpy as np
import multiprocessing as mp
import math
NUM_WORKERS = None
def set_NUM_WORKERS(nworkers):
global NUM_WORKERS
if nworkers == None:
try:
NUM_WORKERS = mp.cpu_count()
except NotImplementedError:
NUM_WORKERS = 4
else: ... | mit | 6,856,311,973,943,909,000 | 35.4379 | 90 | 0.476667 | false |
sirpercival/kivy | kivy/uix/textinput.py | 1 | 92223 | # -*- encoding: utf8 -*-
'''
Text Input
==========
.. versionadded:: 1.0.4
.. image:: images/textinput-mono.jpg
.. image:: images/textinput-multi.jpg
The :class:`TextInput` widget provides a box of editable plain text.
Unicode, multiline, cursor navigation, selection and clipboard features
are supported.
.. note::... | mit | -7,725,666,435,607,477,000 | 33.735593 | 80 | 0.553452 | false |
ninepints/hootvetica | food/management/commands/__init__.py | 1 | 2086 | import uuid
from django.db.models import Q
from food.models import Category, Item, WeeklyClosure, OneTimeClosure
def get_closures(current_date):
weekly_closures = set(
vals['location_id'] for vals in WeeklyClosure.objects.filter(
weekday=current_date.weekday())
.values('location_id'))
... | mit | 2,817,346,170,367,118,300 | 36.927273 | 80 | 0.610738 | false |
openstack/python-openstackclient | openstackclient/common/sdk_utils.py | 2 | 2358 | # 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, software
# distrib... | apache-2.0 | -8,352,966,954,439,167,000 | 39.655172 | 78 | 0.692536 | false |
mishbahr/django-connected | connected_accounts/providers/instagram.py | 1 | 1535 | from django.utils.translation import ugettext_lazy as _
from connected_accounts.conf import settings
from connected_accounts.provider_pool import providers
from .base import OAuth2Provider, ProviderAccount
class InstagramAccount(ProviderAccount):
PROFILE_URL = 'http://instagram.com/'
def get_profile_url(se... | bsd-3-clause | -4,676,531,674,048,964,000 | 30.979167 | 77 | 0.700326 | false |
sunset1995/py360convert | py360convert/c2e.py | 1 | 1865 | import numpy as np
from . import utils
def c2e(cubemap, h, w, mode='bilinear', cube_format='dice'):
if mode == 'bilinear':
order = 1
elif mode == 'nearest':
order = 0
else:
raise NotImplementedError('unknown mode')
if cube_format == 'horizon':
pass
elif cube_forma... | mit | -4,961,470,892,452,482,000 | 28.140625 | 83 | 0.538338 | false |
mad-lab/transit | src/pytransit/draw_trash.py | 1 | 12680 | # Copyright 2015.
# Michael A. DeJesus, Chaitra Ambadipudi, and Thomas R. Ioerger.
#
#
# This file is part of TRANSIT.
#
# TRANSIT 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 ... | gpl-3.0 | 3,052,072,579,063,662,000 | 31.429668 | 185 | 0.579101 | false |
mitsuhiko/fungiform | setup.py | 1 | 1459 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Fungiform
~~~~~~~~~
A form handling system that previously was used for Pocoo's Zine
and Plurk's Solace software. Unbundled into a separate library that
is framework independent.
This is still a preview release. Check the source for more info... | bsd-3-clause | 3,290,813,701,191,853,600 | 29.395833 | 76 | 0.632625 | false |
googleapis/googleapis-gen | google/devtools/cloudtrace/v1/devtools-cloudtrace-v1-py/google/cloud/trace_v1/types/trace.py | 1 | 12909 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | 8,235,140,834,633,207,000 | 32.270619 | 77 | 0.577736 | false |
googleapis/googleapis-gen | google/cloud/bigquery/storage/v1beta1/bigquery-storage-v1beta1-py/google/cloud/bigquery/storage_v1beta1/services/big_query_storage/transports/base.py | 1 | 10654 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | -6,510,122,743,847,912,000 | 39.819923 | 161 | 0.598085 | false |
freeflightsim/fg-flying-club | flying-club.appspot.com/app/AuthHandler.py | 1 | 4541 | # -*- coding: utf-8 -*-
import os
import uuid
import datetime
from google.appengine.ext import webapp
from google.appengine.api import users
from google.appengine.ext import db
from google.appengine.api import mail
from google.appengine.ext.webapp import template
from django.utils import simplejson as json
from goog... | gpl-2.0 | -6,413,474,163,439,239,000 | 24.227778 | 100 | 0.566175 | false |
amitdhiman000/dais | politics/migrations/0001_initial.py | 1 | 4585 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-12-18 20:58
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('user', '0002_auto_20161215_0806'),
... | apache-2.0 | -7,740,220,461,772,860,000 | 39.9375 | 136 | 0.551145 | false |
gandelman-a/neutron-lbaas | neutron_lbaas/tests/tempest/lib/common/utils/linux/remote_client.py | 2 | 6497 | # 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, software
# d... | apache-2.0 | -1,462,144,387,955,705,300 | 37.217647 | 78 | 0.59843 | false |
m-wichmann/dist_brake | drm/data.py | 1 | 5599 | import os
import uuid
import tempfile
temp_dir = tempfile.TemporaryDirectory()
class Job(object):
def __init__(self, disc, rip_config, hb_config, fixes):
if not isinstance(disc, Disc):
raise ValueError()
if not isinstance(rip_config, RipConfig):
raise ValueError()
... | mit | -1,933,623,782,987,842,600 | 30.455056 | 162 | 0.568137 | false |
zxjsdp/NodeFinderGUI | setup.py | 1 | 1280 | from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='NodeFinderGUI',
version='0.5.0',
description=('GUI Tool for node... | apache-2.0 | -9,152,846,158,618,841,000 | 31.820513 | 63 | 0.609375 | false |
gutomaia/nesasm_py | nesasm/tests/__init__.py | 1 | 4632 | # -*- coding: utf-8 -*-
from unittest import TestCase
from nesasm.compiler import compile
import os
import re
from nesasm.compiler import lexical, syntax, semantic
class MetaInstructionCase(type):
def __new__(cls, name, bases, args):
def gen_lex():
def test(self):
tokens = l... | bsd-3-clause | 4,055,735,136,519,646,000 | 33.567164 | 79 | 0.444948 | false |
AndiDog/git-cola | cola/widgets/merge.py | 1 | 8995 | from __future__ import division, absolute_import, unicode_literals
from qtpy import QtWidgets
from qtpy.QtCore import Qt
from ..i18n import N_
from ..interaction import Interaction
from ..qtutils import get
from .. import cmds
from .. import icons
from .. import qtutils
from . import completion
from . import standard... | gpl-2.0 | 5,567,192,275,756,753,000 | 39.518018 | 80 | 0.597332 | false |
tyiannak/pySLRF | slrf.py | 1 | 4205 | import numpy
import scipy.signal
import scipy.interpolate
from matplotlib import pyplot as plt
from breezylidar import URG04LX
def flags2segs(Flags, window):
'''
ARGUMENTS:
- Flags: a sequence of class flags (per time window)
- window: window duration (in seconds)
RETURNS:
- seg... | apache-2.0 | 1,125,670,961,743,430,300 | 28.612676 | 117 | 0.557669 | false |
cbetheridge/simpleclassroom | views/views.py | 1 | 4252 | """
Contains all of the page view handlers for the app.
These handlers should be GET handlers indended for the serving of HTTP. AJAX or
otherwise action-based handlers should be stored in another module.
"""
import json
from django.core.urlresolvers import reverse
from django.http import HttpResponse
from django.sho... | mit | -7,785,976,437,739,663,000 | 28.123288 | 79 | 0.699671 | false |
ARM-software/armnn | python/pyarmnn/examples/example_utils.py | 1 | 6828 | # Copyright 2020 NXP
# SPDX-License-Identifier: MIT
from urllib.parse import urlparse
import os
from PIL import Image
import pyarmnn as ann
import numpy as np
import requests
import argparse
import warnings
def parse_command_line(desc: str = ""):
"""Adds arguments to the script.
Args:
desc(str): Scr... | mit | -5,464,050,138,903,942,000 | 29.895928 | 96 | 0.616139 | false |
symbooglix/boogie-runner | prepare-smoke-tests.py | 1 | 6375 | #!/usr/bin/env python
# vim: set sw=2 ts=2 softtabstop=2 expandtab:
"""
Script to run a Symbooglix's AxiomAndEntryRequiresCheckTransformPass
pass on a set of boogie programs (from a program List) in preparation
for running a smoke test to check that all the assumptions leading to
an entry point are sati... | bsd-3-clause | -8,607,544,325,035,027,000 | 34.614525 | 128 | 0.694431 | false |
datawire/mdk | functionaltests/webservers/djangoserver/settings.py | 1 | 3262 | """
Django settings for djangoserver 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 ... | apache-2.0 | 610,415,732,512,119,600 | 25.737705 | 91 | 0.692213 | false |
erikdejonge/newsrivr | daemons/hn.py | 1 | 17357 | """
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 distributed in the hope that it will be useful,
but WITHOUT... | gpl-2.0 | -2,107,189,339,879,482,400 | 30.965009 | 159 | 0.567667 | false |
johnoleary/Farkel | game.py | 1 | 4955 | ####################
### Farkel Game ####
####################
import dice
import player
dice_list = [dice.Dice() for i in range(6)]
### Set up players ###
number_of_players = input("How many players? ")
player_list = []
for i in range(number_of_players):
player_list.append(player.Player(raw_input("What is player "... | mit | 8,157,945,392,773,263,000 | 24.152284 | 124 | 0.655298 | false |
chrisdickinson/multipart | setup.py | 1 | 1572 | from distutils.core import setup
import os
# Stolen from django-registration
# Compile the list of packages available, because distutils doesn't have
# an easy way to do this.
packages, data_files = [], []
root_dir = os.path.dirname(__file__)
if root_dir:
os.chdir(root_dir)
for dirpath, dirnames, filenames in os.... | bsd-3-clause | -832,142,934,570,517,000 | 32.446809 | 90 | 0.637405 | false |
xkmato/tracpro | tracpro/contacts/tests/test_views.py | 1 | 8868 | from __future__ import unicode_literals
import datetime
import json
import pytz
from temba_client.types import Contact as TembaContact, Run
from django.core.urlresolvers import reverse
from django.utils import timezone
from tracpro.polls.models import Response
from tracpro.test import factories
from tracpro.test.ca... | bsd-3-clause | -397,108,231,638,319,000 | 39.309091 | 90 | 0.61705 | false |
agepoly/mezzanine | mezzanine/twitter/models.py | 1 | 6766 | from __future__ import unicode_literals
from future.builtins import str
from datetime import datetime, timedelta
import re
from time import timezone
try:
from urllib.parse import quote
except ImportError:
# Python 2
from urllib import quote
from django.db import models
from django.utils.encoding import p... | bsd-2-clause | 3,241,061,509,415,992,300 | 39.035503 | 79 | 0.585427 | false |
arcolife/scholarec | corpus/dumps/data_handler.py | 1 | 2830 | #!/usr/bin/python
import os
import sys
import json
from subprocess import call
# path of directory containing all .json files
PATH_SOURCE = './data_arxiv_json/'
PATH_DEST = './sharded/'
def __write_json_files(path_source, path_dest, keyword):
'''
Create json chunks from a previous db dump (.json)
'''
... | gpl-3.0 | -9,152,104,286,490,961,000 | 30.098901 | 101 | 0.579152 | false |
caspahouzer/TiShineLabel | build.py | 1 | 8791 | #!/usr/bin/env python
#
# Appcelerator Titanium Module Packager
#
#
import os, subprocess, sys, glob, string, optparse, subprocess
import zipfile
from datetime import date
cwd = os.path.abspath(os.path.dirname(sys._getframe(0).f_code.co_filename))
os.chdir(cwd)
required_module_keys = ['name','version','moduleid','desc... | mit | 4,717,175,354,227,685,000 | 30.967273 | 135 | 0.694574 | false |
hall1467/wikidata_usage_tracking | python_analysis_scripts/longitudinal_misalignment/alignment_and_misalignment_table_pre_processor.py | 1 | 2373 | """
Preprocess alignment and misalignment data so that it can be imported into
Postgres
Usage:
alignment_and_misalignment_table_pre_processor (-h|--help)
alignment_and_misalignment_table_pre_processor <output> <input_alignment_data>...
[--debug]
... | mit | -126,529,642,722,674,400 | 26.275862 | 85 | 0.585335 | false |
NeCTAR-RC/cinder | cinder/backup/api.py | 1 | 11074 | # Copyright (C) 2012 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/LICEN... | apache-2.0 | -4,439,977,846,825,401,300 | 39.123188 | 78 | 0.559689 | false |
zestedesavoir/Python-ZMarkdown | zmarkdown/extensions/urlize.py | 1 | 2230 | # Inspired by https://github.com/r0wb0t/markdown-urlize/blob/master/urlize.py
from __future__ import unicode_literals
from zmarkdown.inlinepatterns import Pattern as InlinePattern, sanitize_url, MAIL_RE
from zmarkdown import Extension, util
try: # pragma: no cover
from urllib.parse import urlparse
except I... | bsd-3-clause | -4,029,473,678,313,161,700 | 30.794118 | 102 | 0.54574 | false |
MariaKrusteva/MALL | create_mall_database.py | 1 | 1640 | import establishment_sql_manager
import store_sql_manager
def main():
establishment_sql_manager.create_table()
store_sql_manager.create_table()
store_sql_manager.create_staff_table()
stores = [("your_shoes", "snikers", "purple", 48, 52.3, 4),
("your_shoes", "high heels", "12cm", 65, 70,... | gpl-3.0 | 8,095,784,587,101,703,000 | 41.051282 | 77 | 0.483537 | false |
paritoshsingh/konehack | read_and_send_msg.py | 1 | 2879 | #!/usr/bin/python
import smbus
import math
import paho.mqtt.client as mqtt
# Power management registers
power_mgmt_1 = 0x6b
power_mgmt_2 = 0x6c
def read_byte(adr):
return bus.read_byte_data(address, adr)
def read_word(adr):
high = bus.read_byte_data(address, adr)
low = bus.read_byte_data(address, adr+1)... | mit | 6,383,770,058,486,674,000 | 27.22549 | 97 | 0.674192 | false |
all-of-us/raw-data-repository | rdr_service/lib_fhir/fhirclient_4_0_0/models/researchsubject_tests.py | 1 | 1832 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.0-a53ec6ee1b on 2019-05-07.
# 2019, SMART Health IT.
import os
import io
import unittest
import json
from . import researchsubject
from .fhirdate import FHIRDate
class ResearchSubjectTests(unittest.TestCase):
def instantiate_from(self, ... | bsd-3-clause | -114,741,716,307,559,120 | 39.711111 | 113 | 0.679585 | false |
ActiveState/code | recipes/Python/440657_Determine_functiexecutitime_Pythonic/recipe-440657.py | 1 | 2051 | """
Determine function execution time.
>>> def f():
... return sum(range(10))
...
>>> pytime(f)
(Time to execute function f, including function call overhead).
>>> 1.0/pytime(f)
(Function calls/sec, including function call overhead).
>>> 1.0/pytime_statement('sum(range(10))')
(Statements/sec, does not include... | mit | -7,438,097,726,899,165,000 | 25.294872 | 70 | 0.601658 | false |
jucacrispim/mongomotor | mongomotor/connection.py | 1 | 3842 | # -*- coding: utf-8 -*-
# Copyright 2016 Juca Crispim <juca@poraodojuca.net>
# This file is part of mongomotor.
# mongomotor 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, ... | gpl-3.0 | 4,309,757,562,831,834,600 | 34.906542 | 75 | 0.682457 | false |
thinkxl/mentions | mentions/mentions.py | 1 | 3175 | # -*- coding: utf-8 -*-
"""
This module contains the primary objects that power Mention.
"""
import json
import requests
from bs4 import BeautifulSoup
headers = {'User-Agent': 'Karma v0.1.0', 'From': '@thinkxl'}
# Facebook
def get_facebook_data(method, url):
try:
facebook_url = 'https://api.facebook.com... | mit | 7,374,464,425,110,252,000 | 29.238095 | 83 | 0.596535 | false |
kpolimis/kpolimis.github.io-src | pelicanconf.py | 1 | 3979 | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import os
#from utils import filters
AUTHOR = u'Kivan Polimis'
SITENAME = u'Kivan Polimis'
# SITESUBTITLE = u'my personal musings and attempts to apply \
# and share some programming tips'
INDEX_SAVE_AS = 'pages/home.html'
PATH = ... | gpl-3.0 | 2,233,683,985,221,732,400 | 28.474074 | 95 | 0.688615 | false |
libvirt/libvirt-test-API | libvirttestapi/repos/storage/dir_vol_upload.py | 1 | 5210 | # Copyright (C) 2010-2012 Red Hat, Inc.
# This work is licensed under the GNU GPLv2 or later.
# dir storage volume upload testing, only raw format volume is
# supported, other format might fail. offset and length can
# only be chosen in 0 and 1048576.
import os
import string
import sys
from xml.dom import minidom
fro... | gpl-2.0 | 4,381,108,374,907,106,000 | 29.647059 | 79 | 0.605758 | false |
olingrobin/test | day1/user.py | 1 | 1087 |
error_name = open("namefile.txt","a")
error_name.close()
list = {"jin":"123","tom":"456","jak":"789","aimi":"012"}
count = 0
status = False
while True:
user_name = input("请输入用户名:")
error_name = open("namefile.txt","r")
for name in error_name:
if user_name == name.strip():
status = True... | gpl-3.0 | -9,159,499,533,204,680,000 | 22.642857 | 57 | 0.512588 | false |
DeveloperJose/Vision-Rat-Brain | feature_matching_v3/util_sift.py | 1 | 1540 | # Author: Jose G Perez
# Version 1.0
# Last Modified: January 31, 2018
import numpy as np
import cv2
import os
SIFT = cv2.xfeatures2d.SIFT_create(contrastThreshold=0.05, edgeThreshold=100, sigma=2)
def kp_to_array(kp):
array = np.zeros((len(kp), 7), dtype=np.float32)
for idx in range(array.shape[0]):
k... | mit | -6,412,502,763,211,562,000 | 30.44898 | 109 | 0.597403 | false |
wd8rde/genesis_g59_py | setup.py | 1 | 1416 | #!/usr/bin/env python
#The MIT License (MIT)
#
#Copyright (c) 2015 Robert Anthony Bouterse, WD8RDE
#
#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 limita... | mit | -5,464,127,228,988,461,000 | 43.25 | 79 | 0.75565 | false |
Dangetsu/vnr | Frameworks/Sakura/py/libs/vnragent/engine.py | 1 | 2147 | # coding: utf8
# engine.py
# 5/3/2014 jichi
# The logic in this file must be consistent with that in vnragent.dll.
if __name__ == '__main__': # DEBUG
import sys
sys.path.append("..")
import os
from glob import glob
from sakurakit.skdebug import dprint
from sakurakit.skfileio import escapeglob
class Engine:
def... | gpl-3.0 | -3,036,005,952,833,670,000 | 23.965116 | 87 | 0.615277 | false |
gmimano/commcaretest | corehq/apps/reports/filters/select.py | 1 | 5848 | import datetime
import calendar
from django.conf import settings
from django.utils.translation import ugettext_noop
from django.utils.translation import ugettext as _
from casexml.apps.case.models import CommCareCase, CommCareCaseGroup
from corehq.apps.app_manager.models import Application
from corehq.apps.domain.model... | bsd-3-clause | 2,471,994,198,075,688,000 | 31.131868 | 107 | 0.612859 | false |
jasonabele/gnuradio | gr-audio-jack/src/qa_jack.py | 1 | 1284 | #!/usr/bin/env python
#
# Copyright 2005,2010 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio 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, or (at your opt... | gpl-3.0 | -2,296,726,324,861,246,500 | 31.1 | 74 | 0.696262 | false |
UnderXirox/Python-3_Des-fichiers-complementaires | Guide/21_Chaines/21__02_caractéres.py | 1 | 1574 | caracteres = input("Saississez des caractères: ")
# Exemple avec aA019éà@#`{
for caractere in caracteres:
print("Le caractère {} a pour ordinal {}".format(caractere, ord(caractere)))
# Le caractère a a pour ordinal 97
# Le caractère A a pour ordinal 65
# Le caractère 0 a pour ordinal 48
# Le caractère 1 a pour o... | gpl-3.0 | -8,252,992,701,762,116,000 | 28.096154 | 80 | 0.653007 | false |
django-erp/django-erp | djangoerp/menus/migrations/0002_initial_fixture.py | 1 | 3421 | from django.db import models, migrations
from django.utils.translation import ugettext_noop as _
from django.urls import reverse
from ..utils import create_detail_actions, create_detail_navigation
def install(apps, schema_editor):
# Models.
User = apps.get_model('core.User')
Group = apps.get_model('core.... | mit | -8,335,009,606,325,166,000 | 30.1 | 104 | 0.602455 | false |
google/makani | gs/monitor2/apps/plugins/indicators/tests/control_test.py | 1 | 21368 | # Copyright 2020 Makani Technologies 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... | apache-2.0 | -3,215,857,769,434,260,000 | 46.169978 | 80 | 0.700768 | false |
OpenDataAlex/etlTest | etltest/utilities/settings.py | 1 | 2135 | """
This file reads the etltest-settings.yml file and loads application settings.
Having a settings file in the users home directory overrides the one in the application directory.
"""
__author__ = 'coty'
import logging
import pprint
import os
import yaml
from .settings_manager import SettingsManager
# ... | gpl-3.0 | 1,179,593,800,444,254,500 | 27.851351 | 125 | 0.693208 | false |
DazWorrall/ansible | contrib/inventory/azure_rm.py | 1 | 32749 | #!/usr/bin/env python
#
# Copyright (c) 2016 Matt Davis, <mdavis@ansible.com>
# Chris Houseknecht, <house@redhat.com>
#
# This file is part of Ansible
#
# Ansible 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 ... | gpl-3.0 | 7,014,954,423,921,944,000 | 39.834165 | 157 | 0.602156 | false |
cria/microSICol | update_external_db.py | 1 | 6512 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author:Renato Arnellas Coelho renatoac at gmail dot com
#
# Script to update Sicol database
#
# Warning:
# 1 - Add MySQL executable directory to system's PATH environment variable
# 2 - This script _MUST_ be executed on root directory
def updateDB(full_mode=True)... | gpl-2.0 | 2,520,255,957,991,356,000 | 38.447205 | 181 | 0.555129 | false |
trolldbois/python-haystack-reverse | haystack/reverse/cli.py | 1 | 4337 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
"""Entry points related to reverse. """
import os
import sys
from haystack import argparse_utils
from haystack import cli
from haystack.reverse import api
# the description of the function
REVERSE_DESC = 'Reverse the data structure... | gpl-3.0 | 3,501,183,569,568,600,600 | 30.889706 | 102 | 0.682038 | false |
timbuchwaldt/bundlewrap | setup.py | 1 | 2063 | from sys import version_info
from setuptools import find_packages, setup
dependencies = [
"cryptography",
"Jinja2",
"Mako",
"passlib",
"pyyaml",
"requests >= 1.0.0",
"six",
]
if version_info < (3, 2, 0):
dependencies.append("futures")
setup(
name="bundlewrap",
version="3.3.0"... | gpl-3.0 | 6,583,598,873,751,733,000 | 35.192982 | 337 | 0.638875 | false |
torchingloom/edx-platform | lms/djangoapps/bulk_email/models.py | 1 | 11002 | """
Models for bulk email
WE'RE USING MIGRATIONS!
If you make changes to this model, be sure to create an appropriate migration
file and check it in at the same time as your model changes. To do that,
1. Go to the edx-platform dir
2. ./manage.py lms schemamigration bulk_email --auto description_of_your_change
3. Add... | agpl-3.0 | 351,640,386,097,499,400 | 38.153025 | 121 | 0.668606 | false |
xsteadfastx/subsonic-xbmc-addon | plugin.audio.subsonic/addon.py | 1 | 11859 | from operator import itemgetter
import sys
import urllib
import urlparse
sys.path.append('./resources/lib')
import requests
def build_url(query):
return base_url + '?' + urllib.urlencode(dict([k.encode('utf-8'),unicode(v).encode('utf-8')] for k,v in query.items()))
class Subsonic(object):
def __init__(self... | mit | 1,125,825,423,453,675,600 | 34.71988 | 123 | 0.559912 | false |
CCallahanIV/PyChart | pychart/pychart_datarender/urls.py | 1 | 1210 | """Url patterns for data render app."""
from django.conf.urls import url
from pychart_datarender.views import (
GalleryView,
DataDetailView,
RenderDetailView,
DataLibraryView,
EditDataView,
EditRenderView,
AddDataView,
AddRenderView,
retrieve_data,
render_data,
save_render,
... | mit | -4,373,423,737,442,494,000 | 36.8125 | 85 | 0.628099 | false |
lemming52/white_pawn | leetcode/q015/solution.py | 1 | 1080 | """
Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.
Note:
The solution set must not contain duplicate triplets.
"""
from typing import Dict, List
class Solution:
def threeSum(self, nums... | mit | 6,733,637,827,880,332,000 | 27.243243 | 161 | 0.39537 | false |
jbassen/edx-platform | lms/djangoapps/courseware/tabs.py | 1 | 10813 | """
This module is essentially a broker to xmodule/tabs.py -- it was originally introduced to
perform some LMS-specific tab display gymnastics for the Entrance Exams feature
"""
from django.conf import settings
from django.utils.translation import ugettext as _, ugettext_noop
from courseware.access import has_access
f... | agpl-3.0 | 6,793,054,819,562,622,000 | 30.896755 | 114 | 0.638121 | false |
openpolis/op-verify | project/verify/admin.py | 1 | 2315 | from django.contrib import admin
from django.core.management import call_command, CommandError
from django.http import StreamingHttpResponse
from .models import Rule, Verification
__author__ = 'guglielmo'
def run_verification(request, id):
response = StreamingHttpResponse(stream_generator(request, id), content_ty... | bsd-3-clause | -7,814,162,677,733,859,000 | 35.746032 | 116 | 0.638013 | false |
googleads/google-ads-python | google/ads/googleads/v8/services/services/ad_schedule_view_service/client.py | 1 | 18238 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | -5,497,888,377,128,880,000 | 40.45 | 132 | 0.621943 | false |
woodymit/millstone_accidental_source | genome_designer/variants/tests/test_variant_sets.py | 1 | 16435 | """
Tests for adding and removing variants from variant_sets.
"""
import os
import random
from django.conf import settings
from django.test import TestCase
import pyinter
from main.models import AlignmentGroup
from main.models import Chromosome
from main.models import Dataset
from main.models import ExperimentSample... | mit | -2,458,550,373,646,282,000 | 38.698068 | 90 | 0.592029 | false |
jthomale/pycallnumber | tests/test_template.py | 1 | 69462 | from __future__ import unicode_literals
from builtins import str
import re
import pytest
from context import unit as u
from context import template as t
from context import exceptions as e
from helpers import make_obj_factory, generate_params
# SimpleTemplate ******************************************************
... | bsd-3-clause | -6,235,460,156,068,953,000 | 40.945652 | 79 | 0.463736 | false |
francoricci/sapspid | lib/response.py | 1 | 4278 | #import jsonlib2
import globalsObj
import logging
import traceback
import tornado.web
#import ujson
#import simplejson
import jsonpickle
import uuid
class Result(object):
def __init__(self, **kwargs):
#self.rootLogger = logging.getLogger('root')
for name, value in kwargs.items():
exec(... | mit | -6,579,047,088,402,858,000 | 31.907692 | 119 | 0.605423 | false |
tatianass/goodreads2 | goodreads/request.py | 1 | 1066 | import requests
import xmltodict
import json
class GoodreadsRequestException(Exception):
def __init__(self, error_msg, url):
self.error_msg = error_msg
self.url = url
def __str__(self):
return self.url, ':', self.error_msg
class GoodreadsRequest():
def __init__(self, client, pat... | mit | -593,627,982,775,317,100 | 30.352941 | 80 | 0.61257 | false |
gem/sidd | ui/dlg_result.py | 1 | 7317 | # Copyright (c) 2011-2013, ImageCat Inc.
#
# 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 Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is... | agpl-3.0 | 7,166,657,375,103,733,000 | 37.708108 | 138 | 0.569906 | false |
certik/sfepy | sfepy/mechanics/matcoefs.py | 1 | 3273 | from sfepy.base.base import *
##
# c: 22.07.2008
def youngpoisson_to_lame( young, poisson, plane = 'stress' ):
if plane == 'stress':
lam = young*poisson/(1.0 - poisson*poisson)
mu = young/(2.0*(1.0 + poisson))
elif plane == 'strain':
lam = young*poisson/((1.0 + poisson)*(1.0 - 2.0*pois... | bsd-3-clause | 2,795,579,541,998,849,000 | 32.060606 | 81 | 0.486709 | false |
oneconvergence/group-based-policy | gbpservice/neutron/db/grouppolicy/group_policy_mapping_db.py | 1 | 18294 | # 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, software
# d... | apache-2.0 | 7,347,120,841,103,044,000 | 47.142105 | 79 | 0.552586 | false |
uwcirg/true_nth_usa_portal | portal/migrations/versions/4456ad5faf86_.py | 1 | 2041 | """empty message
Revision ID: 4456ad5faf86
Revises: 521aa70e0617
Create Date: 2015-09-03 19:40:53.744703
"""
# revision identifiers, used by Alembic.
revision = '4456ad5faf86'
down_revision = '521aa70e0617'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - ... | bsd-3-clause | 5,831,843,187,538,724,000 | 36.796296 | 76 | 0.55757 | false |
Sult/evetool | populate/misc.py | 1 | 1848 | import eveapi
from apies.models import CallGroup, Call, Api
from characters.models import RefType
api = eveapi.EVEAPIConnection()
data = api.API.CallList()
def call_groups():
for group in data.callGroups:
try:
CallGroup.objects.create(
groupid=group.groupID,
na... | mit | 1,425,303,682,853,979,000 | 26.58209 | 70 | 0.551407 | false |
EJH2/ViralBot-Discord | bot/utils/over.py | 1 | 7167 | # coding=utf-8
"""Overrides for Discord.py classes"""
import contextlib
import inspect
import io
import itertools
import re
import discord
from discord.ext.commands import HelpFormatter as HelpF, Paginator, Command
from bot.utils import polr, privatebin
from bot.utils.args import ArgParseConverter as ArgPC
def crea... | gpl-3.0 | 2,864,970,659,438,636,000 | 35.380711 | 120 | 0.596205 | false |
makelove/OpenCV-Python-Tutorial | ch05-视频/5.VideoPlay.py | 1 | 1329 | import numpy as np
import cv2
cap = cv2.VideoCapture('../data/vtest.avi')
# cap = cv2.VideoCapture('output.avi')
# cap = cv2.VideoCapture('Minions_banana.mp4')
# 帧率
fps = cap.get(cv2.CAP_PROP_FPS) # 25.0
print("Frames per second using video.get(cv2.CAP_PROP_FPS) : {0}".format(fps))
# 总共有多少帧
num_frames = cap.get(cv2... | mit | 7,165,087,056,115,826,000 | 25.733333 | 78 | 0.666667 | false |
sein-tao/pyBioUtil | tests/test_fastq.py | 1 | 1800 | #!/usr/bin/env python3
import unittest
TestCase = unittest.TestCase
from BioUtil import fastqFile
import os
print("test fastqFile")
data_dir = os.path.join(os.path.dirname(__file__), "..", "data")
def readfile(file):
fh = open(file, 'r')
content = fh.readlines()
fh.close()
return content
class TestFas... | gpl-2.0 | 277,510,031,970,988,260 | 28.508197 | 96 | 0.583333 | false |
ziima/pyvmd | pyvmd/tests/test_analyzer.py | 1 | 2785 | """
Tests for trajectory analysis utilities.
"""
import VMD
from mock import sentinel
from pyvmd.analyzer import Analyzer
from pyvmd.molecules import Molecule
from .utils import data, PyvmdTestCase
class TestAnalyzer(PyvmdTestCase):
"""
Test `Analyzer` class.
"""
def setUp(self):
self.mol = ... | gpl-3.0 | 6,988,987,339,418,595,000 | 38.225352 | 113 | 0.627289 | false |
mercycorps/tola | htdocs/silo/serializers.py | 1 | 1231 | from django.forms import widgets
from rest_framework import serializers
from silo.models import Silo, Read, ReadType, LabelValueStore, Tag
from django.contrib.auth.models import User
import json
class SiloSerializer(serializers.HyperlinkedModelSerializer):
data = serializers.SerializerMethodField()
class Meta:... | gpl-2.0 | -2,326,723,832,163,240,000 | 29.04878 | 112 | 0.671812 | false |
eighilaza/bouraka | bouraka-django/bouraka/views.py | 1 | 1815 | from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse
from django.template import RequestContext, loader
from news.models import News
from slides.models import Slide
from django.http import HttpResponseRedirect
def home(request):
latest_news_list = News.objects.order_by('-publ... | lgpl-3.0 | -63,468,116,221,537,944 | 33.903846 | 69 | 0.722865 | false |
delfick/harpoon | tests/docker/test_docker_run.py | 1 | 14030 | # coding: spec
from harpoon.errors import FailedImage, BadImage, AlreadyBoundPorts, ProgrammerError
from harpoon.option_spec.harpoon_specs import HarpoonSpec
from harpoon.ship.runner import Runner
from tests.helpers import HarpoonCase
from delfick_project.option_merge import Converter, MergedOptions
from delfick_pro... | mit | -8,677,944,220,587,888,000 | 36.01847 | 96 | 0.521098 | false |
beakman/caquitv | external_apps/djangoratings/models.py | 1 | 2158 | from django.db import models
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes import generic
from django.contrib.auth.models import User
import datetime
from managers import VoteManager
class Vote(models.Model):
content_type = models.ForeignKey(ContentType, related_n... | agpl-3.0 | -277,736,686,817,290,900 | 35.576271 | 91 | 0.645042 | false |
nuxeo/FunkLoad | setup.py | 1 | 3757 | #! /usr/bin/env python
# (C) Copyright 2005-2011 Nuxeo SAS <http://nuxeo.com>
# Author: bdelbosc@nuxeo.com
# Contributors: Tom Lazar, Ross Patterson
#
# 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 Softwa... | gpl-2.0 | 1,994,461,639,555,682,000 | 40.285714 | 102 | 0.615651 | false |
project-icp/bee-pollinator-app | src/icp/pollinator/src/pollinator/crop_yield.py | 1 | 9716 | from __future__ import division
from __future__ import print_function
from scipy.ndimage.filters import generic_filter
from collections import defaultdict
from raster_ops import extract, reclassify_from_data, geometry_mask, \
write_tif
import numpy as np
import csv
import math
import os
# Enableing DEBUG will w... | apache-2.0 | -6,386,693,959,368,743,000 | 36.513514 | 79 | 0.654385 | false |
alexbiehl/SublimeLinter-stack-ghc | linter.py | 1 | 1410 | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Jon Surrell
# Copyright (c) 2013 Jon Surrell
#
# License: MIT
#
"""This module exports the Stack Ghc plugin class."""
from SublimeLinter.lint import Linter, util
from os.path import basename
class StackGhc(Linter)... | mit | -9,104,684,087,554,022,000 | 26.115385 | 87 | 0.600709 | false |
walshjon/openmc | openmc/capi/error.py | 1 | 1950 | from ctypes import c_int, c_char
from warnings import warn
from . import _dll
class OpenMCError(Exception):
"""Root exception class for OpenMC."""
class GeometryError(OpenMCError):
"""Geometry-related error"""
class InvalidIDError(OpenMCError):
"""Use of an ID that is invalid."""
class AllocationEr... | mit | 8,463,138,787,818,959,000 | 25.351351 | 77 | 0.663077 | false |
vivaxy/algorithms | python/problems/validate_stack_sequences.py | 1 | 1434 | """
https://leetcode.com/problems/validate-stack-sequences/
https://leetcode.com/submissions/detail/218117451/
"""
from typing import List
class Solution:
def validateStackSequences(self, pushed: List[int], popped: List[int]) -> bool:
if pushed == popped:
return True
a = []
w... | mit | 2,056,916,776,801,924,600 | 25.072727 | 83 | 0.505579 | false |
ojousima/asylum | project/ndaparser/admin.py | 1 | 2753 | from django.contrib import admin
from django.core.exceptions import PermissionDenied, ImproperlyConfigured
from django.conf.urls import url
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from django.shortcuts import get_object_or_404, render
from django.utils.text i... | mit | 8,746,984,828,914,234,000 | 40.712121 | 108 | 0.668362 | false |
ArkaneMoose/BotBot | botbot/main.py | 1 | 3722 | import sys
import re
import json
import argparse
import euphoria as eu
from .botbot import BotBot
from . import euphutils
from . import snapshot
room_name = 'testing'
password = None
nickname = 'BotBot'
help_text = '''\
@BotBot is a bot for Euphoria created by @myhandsaretypingwords that creates
other bots.
Usage
... | mit | -5,159,026,592,452,285,000 | 36.979592 | 201 | 0.671145 | false |
sirca/bdkd_datastore | datastore/tests/unit/bdkd/datastore/util/test_copy_move.py | 1 | 3291 | # Copyright 2015 Nicta
#
# 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, softwa... | apache-2.0 | -4,339,567,989,079,044,000 | 40.658228 | 83 | 0.675175 | false |
HIIT/mediacollection | sites/helsinginuutiset.py | 1 | 1658 | # -*- coding: utf-8 -*-
import requests
from bs4 import BeautifulSoup
import processor
from datetime import datetime
def parse( url ):
r = requests.get( url )
if r.status_code == 404:
return processor.create_dictionary('', url, r.status_code, [u''], [u''], u'', u'', u'', u'', [u''], [u''])
r.encoding = 'UTF-8'... | mit | 8,901,220,503,216,206,000 | 36.681818 | 147 | 0.670084 | false |
flrvm/cobratoolbox | .github/github_stats.py | 1 | 1459 | from github import Github
g = Github("cobrabot", "dd31ac21736aeeaeac764ce1192c17e370679a25")
cobratoolbox = g.get_user("opencobra").get_repo("cobratoolbox")
contributors = {}
for contributor in cobratoolbox.get_stats_contributors():
a = 0
d = 0
c = 0
for week in contributor.weeks:
a += week.... | gpl-3.0 | 1,395,502,001,221,579,800 | 40.685714 | 137 | 0.58122 | false |
marios-zindilis/musicbrainz-django-models | _build/model.py | 1 | 3430 | #!/usr/bin/env python3
import sys
try:
MODEL_NAME = sys.argv[1]
except IndexError:
print('Model Name Not Provided')
exit(1)
MODEL_NAME_TITLE = MODEL_NAME.title().replace('_', ' ')
MODEL = 'musicbrainz_django_models/models/{}.py'.format(MODEL_NAME)
INIT = 'musicbrainz_django_models/models/__init__.py'
SQL ... | gpl-2.0 | -6,831,984,093,304,596,000 | 26.66129 | 91 | 0.6 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.