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 |
|---|---|---|---|---|---|---|---|---|---|---|
cheertarts/filter-comments | filter-comments.py | 1 | 4693 | #!/usr/bin/env python3
# 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... | gpl-3.0 | -5,264,843,161,020,971,000 | 35.664063 | 85 | 0.511187 | false |
heromod/migrid | mig/shared/functionality/rmvgridowner.py | 1 | 24999 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# --- BEGIN_HEADER ---
#
# rmvgridowner - remove a vgrid owner
# Copyright (C) 2003-2015 The MiG Project lead by Brian Vinter
#
# This file is part of MiG.
#
# MiG is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License ... | gpl-2.0 | -6,517,784,192,005,436,000 | 43.167845 | 81 | 0.567783 | false |
alexgorban/models | official/vision/detection/modeling/architecture/heads.py | 1 | 44483 | # Copyright 2019 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 required by applica... | apache-2.0 | -3,039,636,000,313,540,600 | 39.147112 | 82 | 0.618169 | false |
Jaimenms/google-python-exercises | basic/string1.py | 1 | 3750 | #!/usr/bin/python -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
# Basic string exercises
# Fill in the code for the functions below. main() is already se... | apache-2.0 | 5,666,734,735,177,188,000 | 30.25 | 80 | 0.641867 | false |
hajicj/safire | safire/data/composite_corpus.py | 1 | 11234 | """
This module contains classes that ...
"""
import logging
import copy
import gensim
import itertools
import numpy
# import safire.datasets.transformations
import safire.utils.transcorp
from safire.utils import IndexedTransformedCorpus, flatten_composite_item
__author__ = "Jan Hajic jr."
class Zipper(gensim.interf... | gpl-3.0 | 5,723,123,878,436,178,000 | 36.701342 | 146 | 0.562667 | false |
saffroncoin/csfrd | docs/conf.py | 1 | 7704 | # -*- coding: utf-8 -*-
#
# csfrd documentation build configuration file, created by
# sphinx-quickstart on Mon Jan 20 15:45:40 2014.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All c... | mit | 2,446,842,977,402,752,500 | 30.834711 | 80 | 0.702622 | false |
gwsu2008/automation | python/rotate-iam-keys.py | 1 | 4429 | import json
import boto3
import os
import time
import base64
from datetime import datetime
from botocore.exceptions import ClientError
iam_client = boto3.client('iam')
secret_client = boto3.client('secretsmanager')
kms_client = boto3.client('kms')
sqs_client = boto3.client('sqs')
now = datetime.now()
iam_users = os.ge... | gpl-2.0 | 9,215,993,726,094,099,000 | 48.211111 | 137 | 0.637164 | false |
kyleconroy/vogeltron | tests/test_sports.py | 1 | 6742 | import mock
from datetime import datetime, timezone
import pytz
from nose.tools import assert_equals, assert_raises
from vogeltron import baseball
from bs4 import BeautifulSoup
YEAR = datetime.today().year
def date_for_month(month, day, hour, minute):
timez = pytz.timezone('US/Pacific')
return timez.localize... | mit | -2,121,539,651,009,590,500 | 31.723301 | 77 | 0.648717 | false |
mmaelicke/scikit-gstat | skgstat/plotting/stvariogram_plot3d.py | 1 | 3989 | import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
try:
import plotly.graph_objects as go
except ImportError:
pass
def __calculate_plot_data(stvariogram, **kwargs):
xx, yy = stvariogram.meshbins
z = stvariogram.experimental
# x = xx.flatten()
# y = yy.fla... | mit | -4,331,278,263,788,779,000 | 28.116788 | 102 | 0.549762 | false |
mjvakili/ccppabc | ccppabc/code/test_data.py | 1 | 4243 | '''
Test the data.py module
'''
import numpy as np
import matplotlib.pyplot as plt
import util
import data as Data
# --- Halotools ---
from halotools.empirical_models import PrebuiltHodModelFactory
from ChangTools.plotting import prettyplot
from ChangTools.plotting import prettycolors
def PlotCovariance(obvs, ... | mit | -7,322,337,487,403,997,000 | 28.465278 | 93 | 0.585199 | false |
michealcarrerweb/LHVent_app | time_log/migrations/0006_auto_20170731_1738.py | 1 | 4838 | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-07-31 17:38
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('work_order', '0007_order_tim... | mit | -5,250,976,600,548,491,000 | 48.876289 | 185 | 0.586813 | false |
Andreea-G/Codds_DarkMatter | src/experiment_HaloIndep_Band.py | 1 | 59260 | """
Copyright (c) 2015 Andreea Georgescu
Created on Wed Mar 4 00:47:37 2015
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
... | gpl-2.0 | 4,716,607,238,785,068,000 | 46.219124 | 105 | 0.530898 | false |
cemc/cscircles-wp-content | lesson_files/graders/pendulum-grader.py | 1 | 1075 | # based on real-per-line.py
from _UTILITIES import _code
def f():
for i in range(0, len(ExpectedLines)):
if len(OutputLines)<=i:
return "N"+_("Not enough lines of output: {0} expected, {1} found").format(str(len(ExpectedLines)),
... | gpl-3.0 | -1,208,056,796,763,079,200 | 52.75 | 119 | 0.572093 | false |
caiostringari/swantools | test.py | 1 | 2740 |
import swantools.io
import swantools.utils
import swantools.plot
import datetime
import matplotlib.pyplot as plt
import numpy as np
def readtable():
R = swantools.io.SwanIO()
P = swantools.plot.SwanPlot()
# Reading TABLE dada with headers:
df = R.read_swantable('data/table.txt')
y = df["Hsig... | gpl-2.0 | -4,464,635,226,785,264,600 | 25.862745 | 83 | 0.644161 | false |
rcalsaverini/dictUtils | __init__.py | 1 | 1573 |
def keyset(d):
return set(d.keys())
def union(d1, d2):
return keyset(d1).union(keyset(d2))
def zip(d1, d2, std = None):
""" Return a dictionary of tuples by putting together values with the same keys. Ex.:
> zip({'name': "John", 'age': 20, 'favoriteMovie': "Godfather"}, {'name': "Mary", 'age': 26}, ... | mit | -2,049,011,076,156,712,700 | 45.264706 | 115 | 0.579784 | false |
tpsatish95/OCR-on-Indus-Seals | code/Test/TextROI.py | 1 | 16306 | # -*- coding: utf-8 -*-
import skimage.io
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
import selectivesearch
import numpy as np
import skimage.transform
import os
import shutil
import caffe
from PIL import Image
candidates = set()
merged_candidates = set()
refined = set()
final = set()
final_... | apache-2.0 | 198,462,947,760,932,580 | 32.142276 | 197 | 0.483442 | false |
wolfgangz2013/rt-thread | tools/mkdist.py | 1 | 14164 | #
# File : mkdir.py
# This file is part of RT-Thread RTOS
# COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of th... | apache-2.0 | 8,512,319,486,564,685,000 | 36.670213 | 147 | 0.611339 | false |
krishnab-datakind/mining-data-acquisition | data_gather/HandlerAssignEEEngineToRequest.py | 1 | 1833 |
#!/usr/bin/python
"""
Handler to assign Earth Engine Engine to request.
"""
## MIT License
##
## Copyright (c) 2017, krishna bhogaonker
## 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 wi... | mit | -8,021,097,741,961,491,000 | 44.825 | 463 | 0.742499 | false |
drulang/nnw | nnw.py | 1 | 1854 | import sys
import os
mappings = {
"a": [4, "@"],
"b": ["13"],
"c": ["("],
"d": ["[)"],
"e": [3],
#"f": ["|="],
"g": [6],
#"h": ["|-|"],
"i": [1, '!', "|"],
#"j": [".]"],
"k": ["|<"],
"l": [1],
"m": ['|Y|'],
#"n": ["/\\/"],
"o": [0],
#"p": ["|>"],
"q":... | gpl-2.0 | -6,868,122,522,685,636,000 | 25.112676 | 87 | 0.446063 | false |
Pikecillo/genna | external/4Suite-XML-1.0.2/test/Xml/XPath/Core/test_predicate_list.py | 1 | 1939 | from Ft.Xml import Domlette
from xml.dom import Node
source_1 = """<?xml version="1.0"?>
<elementList>
<element>
<x>
<y>a</y>
</x>
</element>
<element>
<x>
<y>z</y>
</x>
</element>
</elementList>"""
def Test(tester):
tester.startGroup('Predi... | gpl-2.0 | -7,030,517,545,446,732,000 | 27.940299 | 64 | 0.610624 | false |
apache/airflow | tests/models/test_pool.py | 2 | 4794 | #
# 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... | apache-2.0 | -2,451,114,546,746,575,400 | 31.174497 | 85 | 0.565916 | false |
CalvinNeo/PyGeo | countpca_segmentation_2.py | 1 | 7423 | #coding:utf8
import numpy as np, scipy
import pylab as pl
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import math
from matplotlib import cm
from matplotlib import mlab
from matplotlib.ticker import LinearLocator, FormatStrFormatter
from itertools import *
import collections
from multiproces... | apache-2.0 | -7,845,894,919,603,503,000 | 38.068421 | 151 | 0.595177 | false |
wpoely86/easybuild-easyblocks | test/easyblocks/suite.py | 1 | 3217 | #!/usr/bin/python
##
# Copyright 2012-2016 Ghent University
#
# This file is part of EasyBuild,
# 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),
# Flemish Re... | gpl-2.0 | 5,350,909,843,079,727,000 | 35.146067 | 112 | 0.742617 | false |
suutari/shoop | shuup/importer/utils/importer.py | 1 | 1117 | # -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2016, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
import os
from django.conf import settings
from django.utils.trans... | agpl-3.0 | 7,059,243,395,690,704,000 | 26.925 | 87 | 0.692927 | false |
khchine5/atelier | atelier/sphinxconf/sigal_image.py | 1 | 8318 | # -*- coding: utf-8 -*-
# Copyright 2014-2018 Rumma & Ko Ltd
# License: BSD, see LICENSE for more details.
"""
Defines the :rst:dir:`sigal_image` directive.
.. rst:directive:: sigal_image
.. _picsel: https://github.com/lsaffre/picsel
.. _Shotwell: https://en.wikipedia.org/wiki/Shotwell_%28software%29
.. _digiKam: ht... | bsd-2-clause | -8,201,730,029,071,351,000 | 32.540323 | 233 | 0.626954 | false |
amsehili/auditok | tests/test_AudioReader.py | 1 | 30622 | """
@author: Amine Sehili <amine.sehili@gmail.com>
September 2015
"""
import unittest
from functools import partial
import sys
import wave
from genty import genty, genty_dataset
from auditok import (
dataset,
ADSFactory,
AudioDataSource,
AudioReader,
Recorder,
BufferAudioSource,
WaveAudioS... | mit | 6,188,939,193,757,080,000 | 27.379981 | 79 | 0.52668 | false |
myarjunar/inasafe | safe/definitions/keyword_properties.py | 1 | 9961 | # coding=utf-8
"""Definitions relating to layer keywords."""
from safe.utilities.i18n import tr
__copyright__ = "Copyright 2016, The InaSAFE Project"
__license__ = "GPL version 3"
__email__ = "info@inasafe.org"
__revision__ = '$Format:%H$'
# Base Metadata Property
property_organisation = {
'key': 'property_org... | gpl-3.0 | 8,181,565,282,374,904,000 | 29.934783 | 79 | 0.54864 | false |
dineshappavoo/ctgi | src/com/ctgi/google/problems/questions/Apple_interview_questions.gl.py | 1 | 1710 | ALGORITHMS:
1. Write code to sum 2 integer but u cant use a+b method, you have to use either ++ or --. How you will handle negative numbers [com.ctgi.google.problems.SumIntegersUsingSpecialOperator]
2. There are several words in a file. Get the occurrence of every word and sort it based on the occurrence, if more than... | mit | 4,207,069,740,807,521,300 | 70.291667 | 311 | 0.755556 | false |
urbansearchTUD/UrbanSearch | tests/utils/test_db_utils.py | 1 | 10060 | import time
import pytest
import config
from urbansearch.utils import db_utils
OCCURS_IN = config.get('neo4j', 'occurs_in_name')
RELATES_TO = config.get('neo4j', 'relates_to_name')
if not ('TEST' in OCCURS_IN and 'TEST' in RELATES_TO):
raise ValueError('Not adjusting production DB! {} {}'.format(RELATES_TO,
... | gpl-3.0 | -2,016,069,477,789,648,000 | 29.029851 | 81 | 0.624851 | false |
dabercro/CrombieTools | python/CrombieTools/AnalysisTools/LimitTreeMaker.py | 1 | 1169 | """
@todo Clean up the LimitTreeMaker python file to not depend on these extra variables in cuts.py
"""
import os
from .. import Load, DirFromEnv
newLimitTreeMaker = Load('LimitTreeMaker')
def SetupFromEnv(ltm):
"""A function that sets up the LimitTreeMaker after sourcing a config file
@param ltm The Limit... | mit | 5,568,080,086,142,174,000 | 30.594595 | 97 | 0.704021 | false |
shovalsa/shecodes_website | scsite/forms.py | 1 | 1664 | from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django.forms import ModelForm
from .models import Profile
from django.utils.translation import ugettext_lazy as _
class SignUpForm(UserCreationForm):
first_name = forms.CharField(max_len... | apache-2.0 | -661,791,801,613,918,700 | 39.585366 | 126 | 0.670072 | false |
csm0042/rpihome_v3 | rpihome_v3/helpers/log_support.py | 1 | 2439 | #!/usr/bin/python3
""" logging.py: Log file setup helper functions
"""
# Import Required Libraries (Standard, Third Party, Local) ********************
import logging
import logging.handlers
import os
import sys
# Authorship Info *************************************************************
__author__ = "Christopher ... | gpl-3.0 | 7,730,871,782,910,040,000 | 39.65 | 86 | 0.669537 | false |
flavour/eden | controllers/gis.py | 1 | 154445 | # -*- coding: utf-8 -*-
"""
GIS Controllers
"""
module = request.controller
resourcename = request.function
# Compact JSON encoding
SEPARATORS = (",", ":")
# -----------------------------------------------------------------------------
def index():
"""
Module's Home Page: Show the Main map
"""
... | mit | -1,101,788,942,608,268,800 | 38.349045 | 326 | 0.452854 | false |
MartinThoma/LaTeX-examples | tikz/gpx-gps-elevation-chart-generator/elevation_chart_gen.py | 1 | 2708 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Generate an elevation chart from a GPX file."""
import gpxpy
import logging
import sys
from math import sin, cos, sqrt, atan2, radians
logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s',
level=logging.DEBUG,
stre... | mit | -8,407,838,470,392,775,000 | 29.772727 | 79 | 0.560192 | false |
asnorkin/parapapapam | ensemble/_ensemble.py | 1 | 10880 | import numpy as np
from sklearn.model_selection import cross_val_predict, cross_val_score, StratifiedKFold
from sklearn.base import BaseEstimator, ClassifierMixin
from sklearn.svm import SVC
from ..metrics import METRICS
class Blender:
def make_greedy_blend(self, X, y, models, scoring=None, cv=3,
... | mit | -4,196,600,478,405,788,700 | 36.650519 | 99 | 0.562224 | false |
tangentlabs/django-fancypages | tests/unit/blocks/test_two_column_layout_block.py | 1 | 1087 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from django.test import TestCase
from django.test import RequestFactory
from django.template import RequestContext
from fancypages.models import Container
from fancypages.models.blocks import TwoColumnLayoutBlock
from fancypages.test imp... | bsd-3-clause | 7,542,000,901,538,403,000 | 34.064516 | 74 | 0.726771 | false |
tonyteate/pydocxgae | pydocx/tests/__init__.py | 1 | 5431 | #from unittest import TestCase
import re
from contextlib import contextmanager
from pydocx.parsers.Docx2Html import Docx2Html
from pydocx.utils import (
parse_xml_from_string,
)
from pydocx.tests.document_builder import DocxBuilder as DXB
from unittest import TestCase
STYLE = (
'<style>'
'.pydocx-insert {... | apache-2.0 | -4,062,445,099,654,310,000 | 26.709184 | 79 | 0.576874 | false |
peeringdb/django-peeringdb | django_peeringdb/const.py | 1 | 4145 | from django.utils.translation import gettext_lazy as _
MEDIA = (("Ethernet", _("Ethernet")), ("ATM", _("ATM")), ("Multiple", _("Multiple")))
POC_ROLES = (
("Abuse", _("Abuse")),
("Maintenance", _("Maintenance")),
("Policy", _("Policy")),
("Technical", _("Technical")),
("NOC", _("NOC")),
("Publ... | apache-2.0 | -4,722,905,682,900,666,000 | 28.190141 | 85 | 0.521592 | false |
FrodeSolheim/fs-uae-launcher | amitools/binfmt/hunk/HunkReader.py | 1 | 30202 | """A class for reading Amiga executables and object files in Hunk format"""
import os
import struct
import io
from types import *
from .Hunk import *
class HunkReader:
"""Load Amiga executable Hunk structures"""
def __init__(self):
self.hunks = []
self.error_string = None
self.type = None
self.he... | gpl-2.0 | 5,149,312,244,423,052,000 | 30.136082 | 115 | 0.555427 | false |
jikortus/pykickstart | tests/commands/group.py | 1 | 2759 | #
# Chris Lumens <clumens@redhat.com>
#
# Copyright 2013 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use, modify,
# copy, or redistribute it subject to the terms and conditions of the GNU
# General Public License v.2. This program is distributed in the hope that it
# will be usef... | gpl-2.0 | 6,843,580,221,087,847,000 | 36.283784 | 91 | 0.658572 | false |
mwcz/phyton | old_files/src/photos/migrations/0004_auto__add_field_photo_image_hash.py | 1 | 3502 | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Photo.image_hash'
db.add_column('photos_photo', 'image_hash', self.gf('django.db.models.fi... | agpl-3.0 | 5,957,665,972,324,900,000 | 62.672727 | 176 | 0.556539 | false |
Black-Cog/Forge | core/ColorScience.py | 1 | 3207 |
import math
class ColorScience():
"""Methodes relative at Color Science"""
@staticmethod
def linearToSrgb(color):
colorOut = []
for i in range(3):
if color[i] <= 0.0031308:
colorTmp = color[i] * 12.92
colorOut.append( round(colorTmp, 6) )
else:
colorTmp = 1.055 * ( pow(color[i], 1 / 2.4) )... | bsd-3-clause | -8,799,307,794,695,436,000 | 17.976331 | 76 | 0.545681 | false |
BenProjex/ArchProject | Chip.py | 1 | 16126 | from abc import ABCMeta, abstractmethod, abstractproperty
import Wire
###############################################################
# Abstract Chip Class
#AbstractMethod Action: What function the chip performs
#AbstractProperty Name: Debugging tool retrieving the name of the chip
###################... | gpl-3.0 | 5,575,249,376,074,922,000 | 37.033019 | 142 | 0.556617 | false |
samhutchins/tools | video_production/transcode-for-edit.py | 1 | 1479 | #!/usr/bin/env python3.6
import os, argparse, subprocess
def main():
parser = argparse.ArgumentParser()
parser.add_argument("project")
args = parser.parse_args()
home = os.path.join(os.path.expanduser("~"), "Videos", "Mine", "WIP")
dest_dir = os.path.join(home, args.project, "footage")
if no... | mit | -8,815,710,785,763,945,000 | 31.173913 | 171 | 0.601082 | false |
hgranlund/py-chess-engine | docs/source/conf.py | 1 | 8705 | # -*- coding: utf-8 -*-
# This file is based upon the file generated by sphinx-quickstart. However,
# where sphinx-quickstart hardcodes values in this file that you input, this
# file has been changed to pull from your module's metadata module.
#
# This file is execfile()d with the current directory set to its contain... | mit | -373,155,612,120,874,100 | 31.481343 | 79 | 0.708558 | false |
rven/odoo | addons/im_livechat/models/im_livechat_channel.py | 1 | 15553 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import base64
import random
import re
from odoo import api, fields, models, modules, _
class ImLivechatChannel(models.Model):
""" Livechat Channel
Define a communication channel, which can be accessed with ... | agpl-3.0 | -6,630,059,679,341,392,000 | 52.816609 | 319 | 0.641034 | false |
skearnes/color-features | paper/code/analysis.py | 1 | 12160 | """Analyze results.
Use the saved model output to calculate AUC and other metrics.
"""
import collections
import cPickle as pickle
import gflags as flags
import gzip
import logging
import numpy as np
import os
import pandas as pd
from sklearn import metrics
from statsmodels.stats import proportion
import sys
flags.D... | bsd-3-clause | 2,168,121,870,107,321,600 | 34.976331 | 80 | 0.550164 | false |
nkmk/python-snippets | notebook/numpy_split.py | 1 | 1773 | import numpy as np
a = np.arange(16).reshape(4, 4)
print(a)
# [[ 0 1 2 3]
# [ 4 5 6 7]
# [ 8 9 10 11]
# [12 13 14 15]]
a_split = np.split(a, 2)
print(type(a_split))
# <class 'list'>
print(len(a_split))
# 2
print(a_split[0])
# [[0 1 2 3]
# [4 5 6 7]]
print(a_split[1])
# [[ 8 9 10 11]
# [12 13 14 15]]
... | mit | 8,657,530,011,904,330,000 | 11.664286 | 62 | 0.451777 | false |
yhat/ggplot | ggplot/scales/scale_fill_funfetti.py | 1 | 1106 | from __future__ import (absolute_import, division, print_function,
unicode_literals)
from .scale import scale
from copy import deepcopy
class scale_fill_funfetti(scale):
"""
Make your plots look like funfetti
Parameters
----------
type: string
One of confetti or sp... | bsd-2-clause | 1,532,445,102,904,440,000 | 24.136364 | 80 | 0.455696 | false |
rplevka/robottelo | tests/foreman/cli/test_logging.py | 1 | 9907 | """CLI tests for logging.
:Requirement: Logging
:CaseAutomation: Automated
:CaseLevel: Acceptance
:CaseComponent: Logging
:Assignee: shwsingh
:TestType: Functional
:CaseImportance: Medium
:Upstream: No
"""
import re
import pytest
from fauxfactory import gen_string
from nailgun import entities
from robottelo i... | gpl-3.0 | -6,709,340,299,241,795,000 | 41.702586 | 97 | 0.65479 | false |
pjuu/pjuu | pjuu/lib/indexes.py | 1 | 1615 | # -*- coding: utf8 -*-
"""Creates the MongoDB indexes. This can be run each time the app is deployed
it will have no effect on indexes which are already there.
:license: AGPL v3, see LICENSE for more details
:copyright: 2014-2021 Joe Doherty
"""
# 3rd party imports
import pymongo
# Pjuu imports
from pjuu import mon... | agpl-3.0 | -6,223,673,014,620,367,000 | 27.839286 | 79 | 0.655108 | false |
google-research/rl-reliability-metrics | rl_reliability_metrics/analysis/plot_training_curves_test.py | 1 | 2747 | # coding=utf-8
# Copyright 2019 The Authors of RL Reliability Metrics.
#
# 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 | 5,659,302,119,563,962,000 | 37.690141 | 75 | 0.635238 | false |
andymckay/zamboni | mkt/webapps/management/commands/convert_icons.py | 1 | 2020 | import os
from optparse import make_option
from django.conf import settings
from django.core.management.base import BaseCommand
from django.core.files.storage import default_storage as storage
import amo
from amo.decorators import write
from amo.utils import chunked, resize_image
from mkt.site.storage_utils import wa... | bsd-3-clause | 6,888,527,333,116,769,000 | 29.606061 | 72 | 0.591089 | false |
joelcan/tools-eth-contract-dev | pyethereum/pyethereum/_version.py | 1 | 7911 | """
Version management with versioneer
https://github.com/warner/python-versioneer
Distribution through PyPI
1: git tag 0.6.31
2: python setup.py register sdist upload
Distributiuon through github
(i.e. users use github to generate tarballs with git archive)
1: git tag 0.6.31
2: git push; git push -... | mit | 4,828,640,751,076,528,000 | 36.316038 | 87 | 0.609531 | false |
root-mirror/root | bindings/pyroot/cppyy/cppyy/test/test_pythonify.py | 20 | 16364 | import py, os, sys
from pytest import raises
from .support import setup_make, pylong
currpath = py.path.local(__file__).dirpath()
test_dct = str(currpath.join("example01Dict"))
def setup_module(mod):
setup_make("example01")
class TestPYTHONIFY:
def setup_class(cls):
cls.test_dct = test_dct
i... | lgpl-2.1 | -357,875,962,530,964,500 | 29.359926 | 111 | 0.548888 | false |
rschwiebert/galgebra | examples/Old Format/terminal_check.py | 1 | 10489 | #!/usr/bin/python
import sys
import sys
from sympy import Symbol,symbols,sin,cos,Rational,expand,simplify,collect
from printer import enhance_print,Get_Program,Print_Function,Format
from mv import MV,Com,Nga,ONE,ZERO
def basic_multivector_operations():
Print_Function()
(ex,ey,ez) = MV.setup('e*x|y|z')
A ... | bsd-3-clause | 6,306,278,451,293,835,000 | 21.802174 | 97 | 0.499094 | false |
AI-comp/Orientation2015Problems | rime/plugins/pack_mjudge.py | 1 | 4824 | #!/usr/bin/python
#
# Copyright (c) 2011 Rime Project.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, m... | mit | 236,489,472,618,434,850 | 30.736842 | 79 | 0.66874 | false |
sduenas/perceval | tests/test_bugzillarest.py | 1 | 22077 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2015-2017 Bitergia
#
# 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 l... | gpl-3.0 | 1,082,878,998,176,053,600 | 34.779579 | 104 | 0.573926 | false |
Zigazou/PyMinitel | minitel/ui/Conteneur.py | 1 | 8946 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Classe permettant de regrouper des éléments d’interface utilisateur"""
from .UI import UI
from ..Sequence import Sequence
from ..constantes import ENTREE, MAJ_ENTREE
class Conteneur(UI):
"""Classe permettant de regrouper des éléments d’interface utilisateur
Ce... | gpl-3.0 | 6,873,000,162,475,127,000 | 32.690196 | 79 | 0.611105 | false |
hortonworks/hortonworks-sandbox | desktop/core/ext-py/processing/lib/forking.py | 1 | 12412 | #
# Module for starting a process object using os.fork() or CreateProcess()
#
# processing/forking.py
#
# Copyright (c) 2006-2008, R Oudkerk --- see COPYING.txt
#
import os
import sys
import signal
import processing
__all__ = ['Popen', 'assertSpawning', 'exit']
#
# Check that the current thread is sp... | apache-2.0 | 2,031,393,337,692,641,500 | 31.365591 | 79 | 0.499355 | false |
shlomif/patool | patoolib/programs/compress.py | 1 | 1159 | # -*- coding: utf-8 -*-
# Copyright (C) 2010-2012 Bastian Kleineidam
#
# 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.
#... | gpl-3.0 | -8,090,692,720,290,425,000 | 40.392857 | 71 | 0.714409 | false |
arseneyr/essentia | test/src/unittest/stats/test_median.py | 1 | 1737 | #!/usr/bin/env python
# Copyright (C) 2006-2016 Music Technology Group - Universitat Pompeu Fabra
#
# This file is part of Essentia
#
# Essentia 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 ... | agpl-3.0 | -2,003,828,729,594,784,500 | 28.473684 | 79 | 0.647093 | false |
JuanCTorres/interview-prep-solutions | codelab/listcycle.py | 1 | 1048 | """
https://codelab.interviewbit.com/problems/listcycle/
"""
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
# @param A ... | mit | -6,394,509,225,141,508,000 | 23.372093 | 84 | 0.503817 | false |
spencerlyon2/distcan | setup.py | 1 | 1060 | from distutils.core import setup
import os
long_desc = 'Add a fallback short description here'
if os.path.exists('README.txt'):
long_desc = open('README.txt').read()
# Write a versions.py file for class attribute
VERSION = "0.0.1"
def write_version_py(filename=None):
doc = ("\"\"\"\n" +
"This is ... | mit | -7,474,418,050,700,931,000 | 25.5 | 78 | 0.614151 | false |
twitter/zktraffic | zktraffic/zab/quorum_packet.py | 1 | 12328 | # ==================================================================================================
# Copyright 2015 Twitter, Inc.
# --------------------------------------------------------------------------------------------------
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | apache-2.0 | 7,392,763,277,132,786,000 | 30.691517 | 103 | 0.638222 | false |
biothings/biothings_explorer | biothings_explorer/api_call_dispatcher.py | 1 | 11261 | # -*- coding: utf-8 -*-
"""
Make API calls.
.. moduleauthor:: Jiwen Xin <kevinxin@scripps.edu>
"""
from collections import defaultdict
from copy import deepcopy
from itertools import groupby
from operator import itemgetter
from .registry import Registry
from .apicall import BioThingsCaller
from .api_output_parser im... | apache-2.0 | 2,010,926,067,310,800,000 | 40.09854 | 88 | 0.441879 | false |
intellimath/pyon | test/test_perfomance.py | 1 | 1913 | import pyon
import pickle
import time
import ast
import json
class C(object):
def __init__(self, count):
self.count = count
#
def __reduce__(self):
_dict = dict(self.__dict__)
count = _dict.pop('count')
return C, (count,), _dict
lst = []
for i in range(10000):
c ... | mit | -5,969,172,803,974,257,000 | 20.529412 | 122 | 0.573445 | false |
zork9/pygame-pyMM | maproom1.py | 1 | 6299 |
# Copyright (c) 2013 Johan Ceuppens.
# All rights reserved.
# Redistribution and use in source and binary forms are permitted
# provided that the above copyright notice and this paragraph are
# duplicated in all such forms and that any documentation,
# advertising materials, and other materials related to such
# dis... | gpl-2.0 | -1,237,788,843,528,275,500 | 35.622093 | 103 | 0.691538 | false |
colour-science/colour-demosaicing | colour_demosaicing/bayer/tests/test_mosaicing.py | 1 | 1598 | # !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Defines the unit tests for the :mod:`colour_demosaicing.bayer.mosaicing`
module.
"""
import numpy as np
import os
import unittest
from colour import read_image
from colour_demosaicing import TESTS_RESOURCES_DIRECTORY
from colour_demosaicing.bayer import mosaicing_CF... | bsd-3-clause | 5,829,380,063,213,614,000 | 28.592593 | 79 | 0.638298 | false |
Andreasdahlberg/sillycat | scripts/rfm69_check.py | 1 | 3685 | #!/usr/bin/env python3
# -*- coding: utf-8 -*
#
# 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 dist... | gpl-3.0 | 761,810,704,417,854,500 | 35.85 | 99 | 0.663501 | false |
gem/oq-hazardlib | openquake/hazardlib/scalerel/gsc_offshore_thrusts.py | 1 | 6407 | # -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2015-2017 GEM Foundation
#
# OpenQuake 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 Licen... | agpl-3.0 | -6,282,040,559,553,521,000 | 32.369792 | 79 | 0.659903 | false |
QuantCrimAtLeeds/PredictCode | open_cp/gui/tk/session_view.py | 1 | 1550 | """
session_view
~~~~~~~~~~~~
"""
import tkinter as tk
import tkinter.ttk as ttk
import open_cp.gui.tk.util as util
_text = {
"none" : "No recent sessions found",
"cancel" : "Cancel",
}
class SessionView(ttk.Frame):
def __init__(self, parent, controller, model):
super().__init__(parent)
... | artistic-2.0 | 960,518,987,231,501,000 | 30 | 103 | 0.584516 | false |
qateam123/eq | app/validation/date_range_check.py | 1 | 1649 | import logging
from datetime import datetime
from app.validation.abstract_validator import AbstractValidator
from app.validation.validation_result import ValidationResult
logger = logging.getLogger(__name__)
class DateRangeCheck(AbstractValidator):
def validate(self, user_answers):
"""
Validat... | mit | -2,892,354,477,125,786,000 | 35.644444 | 93 | 0.625834 | false |
stonebig/numba | numba/core/controlflow.py | 1 | 30419 | import collections
import functools
import sys
from numba.core import utils
from numba.core.ir import Loc
from numba.core.errors import UnsupportedError
# List of bytecodes creating a new block in the control flow graph
# (in addition to explicit jump labels).
NEW_BLOCKERS = frozenset(['SETUP_LOOP', 'FOR_ITER', 'SETU... | bsd-2-clause | 3,900,251,514,093,707,000 | 31.121436 | 141 | 0.546895 | false |
felixmatt/shyft | shyft/tests/api/test_time_axis.py | 1 | 3311 | from builtins import range
from shyft import api
import numpy as np
import unittest
class TimeAxis(unittest.TestCase):
"""Verify and illustrate TimeAxis
defined as n periods non-overlapping ascending
"""
def setUp(self):
self.c = api.Calendar()
self.d = api.deltahours(1)
... | lgpl-3.0 | 4,475,455,489,361,798,700 | 33.489583 | 106 | 0.58804 | false |
perrygeo/Fiona | fiona/collection.py | 1 | 17081 | # -*- coding: utf-8 -*-
# Collections provide file-like access to feature data
import os
import sys
from fiona.ogrext import Iterator, ItemsIterator, KeysIterator
from fiona.ogrext import Session, WritingSession
from fiona.ogrext import (
calc_gdal_version_num, get_gdal_version_num, get_gdal_release_name)
from fi... | bsd-3-clause | 4,455,827,271,552,812,000 | 35.654506 | 86 | 0.566594 | false |
sommars/DynamicPrevariety | python_interface.py | 1 | 2548 | """
#Cyclic 4
R.<x1,x2,x3,x4> = QQ[]
polys = [x1+x2+x3+x4,x1*x2+x2*x3+x3*x4+x4*x1,x1*x2*x3+x2*x3*x4+x3*x4*x1+x4*x1*x2]
TropicalPrevariety(polys)
#Should be equivalent (up to homogenization) to:
R.ideal(polys).groebner_fan().tropical_intersection().rays()
#Reduced cyclic 8
R.<y_1,y_2,y_3,y_4,y_5,y_6,y_7> = QQ[]... | gpl-3.0 | -5,907,201,193,266,234,000 | 38.8125 | 123 | 0.576138 | false |
cartertech/odoo-hr-ng | hr_report_manpower/report/daily_manpower.py | 1 | 22435 | #-*- coding:utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 One Click Software (http://oneclick.solutions)
# and Copyright (C) 2013 Michael Telahun Makonnen <mmakonnen@gmail.com>.
#
# This program is free software: you can redistribute it and/or m... | agpl-3.0 | 2,529,204,174,706,806,000 | 45.067762 | 132 | 0.480499 | false |
sebdelsol/pyload | module/plugins/hoster/CzshareCom.py | 1 | 5871 | # -*- coding: utf-8 -*-
#
# Test links:
# http://czshare.com/5278880/random.bin
import re
from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
from module.utils import parseFileSize
class CzshareCom(SimpleHoster):
__name__ = "CzshareCom"
__type__ = "hoster"
__version__ = "... | gpl-3.0 | -6,866,925,458,783,012,000 | 37.546053 | 127 | 0.558969 | false |
manuelli/director | src/python/director/planplayback.py | 1 | 7857 | import os
import vtkAll as vtk
import math
import time
import re
import numpy as np
from director.timercallback import TimerCallback
from director import objectmodel as om
from director.simpletimer import SimpleTimer
from director.utime import getUtime
from director import robotstate
import copy
import pickle
import ... | bsd-3-clause | -5,824,300,059,029,167,000 | 28.537594 | 99 | 0.61932 | false |
DedMemez/ODS-August-2017 | battle/DistributedBattleBldg.py | 1 | 8958 | # Fuck you Disyer. Stealing my fucking paypal. GET FUCKED: toontown.battle.DistributedBattleBldg
from panda3d.core import Lens, Point3, Vec3
from direct.actor import Actor
from direct.directnotify import DirectNotifyGlobal
from direct.fsm import State
from direct.interval.IntervalGlobal import *
import random
fr... | apache-2.0 | -2,448,110,394,212,382,000 | 39.100917 | 123 | 0.611967 | false |
Impavidity/SearchEngine | Data Cleaning/booleanQuery.py | 1 | 3845 | #!/usr/bin/python
#import time
import json
import os
import myTokenize
from porter import PorterStemmer
import utils
def inverseList(termDict):
"""NOT 1 posting list--> return a list"""
return {
# 'term':'',
'docFreq':wholeLen - termDict['docFreq'],
'docIDs':[x for x in wholeList if x not in termDict['docIDs'... | mit | -527,455,152,555,988,860 | 23.335443 | 96 | 0.668921 | false |
NexusIS/tempest | tempest/api/compute/security_groups/test_security_group_rules.py | 1 | 8053 | # Copyright 2012 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | apache-2.0 | 8,510,567,626,372,952,000 | 41.162304 | 78 | 0.560785 | false |
perwin/imfit | distribution_manifest.py | 1 | 6640 | # Lists of files for use by make_distributions.py
binary_only_files = """
imfit
imfit-mcmc
makeimage
"""
documentation_files = """
imfit_howto.pdf
imfit_howto.tex
"""
misc_required_files = """
COPYING.txt
DISCLAIMER
README.txt
CHANGELOG.md
cdream/LICENSE_cdream.txt
"""
extras_files = """
imfit_completions.bash
READ... | gpl-3.0 | 7,749,299,363,004,793,000 | 17.651685 | 49 | 0.815813 | false |
sahlinet/fastapp | fastapp/api_views.py | 1 | 13365 | # -*- coding: utf-8 -*-
import zipfile
import requests
import json
from threading import Thread
from rest_framework.renderers import JSONRenderer, JSONPRenderer
from rest_framework import permissions, viewsets, views
from rest_framework import status
from django.utils.decorators import method_decorator
from django.vie... | mit | 7,445,271,498,546,006,000 | 34.171053 | 157 | 0.645267 | false |
coldfix/udiskie | udiskie/notify.py | 1 | 9790 | """
Notification utility.
"""
import logging
from gi.repository import GLib
from .async_ import run_bg
from .common import exc_message, DaemonBase, format_exc
from .mount import DeviceActions
from .locale import _
__all__ = ['Notify']
class Notify(DaemonBase):
"""
Notification tool.
Can be connecte... | mit | -5,972,058,546,821,684,000 | 37.543307 | 84 | 0.58141 | false |
deepmind/acme | acme/agents/tf/dmpo/agent.py | 1 | 7916 | # python3
# Copyright 2018 DeepMind Technologies Limited. 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 re... | apache-2.0 | 7,290,326,386,658,015,000 | 40.883598 | 80 | 0.69429 | false |
dag/stutuz | stutuz/utils/tex.py | 1 | 1947 | #-*- coding:utf-8 -*-
from __future__ import division
from __future__ import absolute_import
from __future__ import with_statement
from __future__ import print_function
from __future__ import unicode_literals
import re
class Tex(object):
"""Wraps a string of TeX such that wrapping it in
:class:`~flask.Marku... | bsd-2-clause | -4,395,342,104,824,818,000 | 24.946667 | 73 | 0.533916 | false |
druce/safewithdrawal_tensorflow | lifetable.py | 1 | 8359 | import numpy as np
import pandas as pd
from pandas import DataFrame
############################################################
# Life tables
# https://www.ssa.gov/oact/STATS/table4c6.html
############################################################
############################################################
# Male... | mit | -3,262,550,219,942,964,700 | 60.463235 | 118 | 0.554731 | false |
jwlin/web-crawler-tutorial | ch8/twse.py | 1 | 1294 | # source: https://github.com/yotsuba1022/web-crawler-practice/blob/master/ch4/tw_stock_exchange.py
import requests
import time
TWSE_URL = 'http://www.twse.com.tw/exchangeReport/STOCK_DAY?response=json'
def get_web_content(stock_id, current_date):
resp = requests.get(TWSE_URL + '&date=' + current_date + '&stock... | mit | -6,256,593,204,803,681,000 | 25.479167 | 98 | 0.553543 | false |
tomekwojcik/osxnotify-python-cffi | setup.py | 1 | 2466 | # -*- coding: utf-8 -*-
# Copyright (c) 2015 Tomek Wójcik <tomek@bthlabs.pl>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# t... | mit | -6,282,183,155,031,331,000 | 39.409836 | 79 | 0.685193 | false |
drvinceknight/Axelrod | docs/strategies.py | 1 | 1047 | """
A script to generate the file needed for the strategy documentation.
Run:
python strategies.py > strategies.rst
"""
import os
import sys
sys.path.insert(0, os.path.abspath("../"))
from axelrod import basic_strategies
from axelrod import ordinary_strategies
from axelrod import cheating_strategies
def print_... | mit | -6,751,414,269,939,669,000 | 23.928571 | 68 | 0.659026 | false |
demon012/RedwoodMinecraftPack | Configs/idchecker.py | 1 | 1404 | #!/usr/bin/env python
import re
import os
import pdb
configs_dir = 'config'
id_files = {}
idre = re.compile(r'(?P<id>\d+)', re.I|re.DOTALL)
# item_line_re = re.compile(r'I:(?P<itemname>.+?)=(?P<itemid>\d+)')
# add hack for advancedmachine block for config\AdvancedMachines.cfg
# add hack to search for config\EnderSt... | unlicense | 2,717,173,377,853,203,500 | 28.87234 | 78 | 0.56339 | false |
frappe/frappe | frappe/website/doctype/website_route_meta/test_website_route_meta.py | 1 | 1119 | # -*- coding: utf-8 -*-
# Copyright (c) 2019, Frappe Technologies and Contributors
# See license.txt
import frappe
import unittest
from frappe.utils import set_request
from frappe.website.serve import get_response
test_dependencies = ['Blog Post']
class TestWebsiteRouteMeta(unittest.TestCase):
def test_meta_tag_gener... | mit | -1,664,533,705,984,534,500 | 25.642857 | 77 | 0.66756 | false |
ianctse/pvlib-python | pvlib/test/test_clearsky.py | 1 | 6604 | import logging
pvl_logger = logging.getLogger('pvlib')
import numpy as np
import pandas as pd
from nose.tools import raises
from numpy.testing import assert_almost_equal
from pandas.util.testing import assert_frame_equal, assert_series_equal
from pvlib.location import Location
from pvlib import clearsky
from pvlib i... | bsd-3-clause | -2,981,041,627,740,064,300 | 43.026667 | 77 | 0.492732 | false |
omry/omegaconf | setup.py | 1 | 2119 | # type: ignore
"""
OmegaConf setup
Instructions:
# Build:
rm -rf dist/ omegaconf.egg-info/
python setup.py sdist bdist_wheel
# Upload:
twine upload dist/*
"""
import pathlib
import pkg_resources
import setuptools
from build_helpers.build_helpers import (
ANTLRCommand,
BuildPyCommand,
... | bsd-3-clause | 1,910,150,043,323,618,600 | 28.027397 | 77 | 0.580934 | false |
dmlc/tvm | tests/python/unittest/test_link_params.py | 1 | 15580 | # 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 | -4,932,132,057,657,193,000 | 37.09291 | 109 | 0.576829 | false |
dknlght/dkodi | src/plugin.video.india4movie/resources/lib/api.py | 1 | 4287 | import resources.lib.util as util
import re
from BeautifulSoup import BeautifulSoup
from BeautifulSoup import BeautifulStoneSoup
from BeautifulSoup import SoupStrainer
class SiteApi():
MAIN_URL = 'http://www.india4movie.com/'
LONG_NAME = 'India 4 Movie'
def get_menu_category(self):
... | gpl-2.0 | 2,470,000,861,598,209,000 | 27.979021 | 86 | 0.478656 | false |
opendatadurban/scoda | scoda/public.py | 1 | 54121 | import itertools
import operator
from sqlalchemy_searchable import search
from scoda.app import app
from flask import request, url_for, redirect, flash, make_response, session, render_template, jsonify, Response, \
send_file
from flask_security import current_user
from itertools import zip_longest
from sqlalchemy... | apache-2.0 | 9,212,944,357,246,466,000 | 40.921766 | 170 | 0.4892 | false |
yangalex/Otomata-python | Oto.py | 1 | 12557 | import pygame
# initialize sounds
pygame.mixer.init(buffer=200) # This can be increased for better sound quality, but causes latency (incorrect tempo)
pygame.mixer.set_num_channels(100)
# Set variables used to represent the arrows in each cell
LEFT = ((10, 37.5), (65, 10), (65, 65))
RIGHT = ((10, 10), (10, 65), (65... | mit | -1,022,732,445,109,660,400 | 41.279461 | 130 | 0.516047 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.