repo_name stringlengths 5 92 | path stringlengths 4 221 | copies stringclasses 19
values | size stringlengths 4 6 | content stringlengths 766 896k | 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 32 997 | alpha_frac float64 0.25 0.96 | autogenerated bool 1
class | ratio float64 1.5 13.6 | config_test bool 2
classes | has_no_keywords bool 2
classes | few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Marwari/spyChat | send_message.py | 1 | 2015 | # importing existing friend, steganography library, and datetime.
from select_friend import select_friend
from steganography.steganography import Steganography
from datetime import datetime
from spy_details import friends, ChatMessage
#importing regular expression for proper validation
import re
# importing termcolor... | mit | -8,103,506,974,880,669,000 | 35.654545 | 94 | 0.699752 | false | 4.005964 | false | false | false |
lucywyman/slides-ii | v/lib/python2.7/site-packages/sphinx/writers/latex.py | 1 | 67963 | # -*- coding: utf-8 -*-
"""
sphinx.writers.latex
~~~~~~~~~~~~~~~~~~~~
Custom docutils writer for LaTeX.
Much of this code is adapted from Dave Kuhlman's "docpy" writer from his
docutils sandbox.
:copyright: Copyright 2007-2015 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE fo... | apache-2.0 | -8,987,419,326,663,222,000 | 35.696004 | 87 | 0.539147 | false | 3.937486 | true | false | false |
Nachtfeuer/concept-py | concept/generator/select.py | 1 | 5479 | """
Generator for a defined ranged.
.. module:: select
:platform: Unix, Windows
:synopis: Generator for a defined range.
.. moduleauthor:: Thomas Lehmann <thomas.lehmann.private@googlemail.com>
=======
License
=======
Copyright (c) 2015 Thomas Lehmann
Permission is hereby granted, free of... | mit | 2,601,054,152,902,417,400 | 27.836842 | 93 | 0.576748 | false | 4.331225 | false | false | false |
mwhoffman/reggie | reggie/kernels/matern.py | 1 | 3375 | """
Implementation of the matern kernel.
"""
from __future__ import division
from __future__ import absolute_import
from __future__ import print_function
import numpy as np
from ..core.domains import POSITIVE
from ..utils.misc import rstate
from ._core import RealKernel
from ._distances import rescale, dist, dist_f... | bsd-2-clause | 4,861,614,573,375,916,000 | 28.867257 | 78 | 0.501926 | false | 3.148321 | false | false | false |
hasecbinusr/pysal | pysal/esda/smoothing.py | 1 | 70252 | from __future__ import division
"""
Apply smoothing to rate computation
[Longer Description]
Author(s):
Myunghwa Hwang mhwang4@gmail.com
David Folch dfolch@asu.edu
Luc Anselin luc.anselin@asu.edu
Serge Rey srey@asu.edu
"""
__author__ = "Myunghwa Hwang <mhwang4@gmail.com>, David Folch <dfolch@asu.edu... | bsd-3-clause | 2,029,154,457,574,355,200 | 34.715302 | 438 | 0.557109 | false | 3.559767 | false | false | false |
jpurma/Kataja | plugins/TreesAreMemory2/setup.py | 1 | 5878 | # coding=utf-8
from plugins.TreesAreMemory2.Constituent import Constituent
from plugins.TreesAreMemory2.Feature import Feature
from plugins.TreesAreMemory2.Document import Document
from plugins.TreesAreMemory2.SyntaxAPI import SyntaxAPI
# see ExamplePlugin/readme.txt and ExamplePlugin/plugin.json
# List those classes... | gpl-3.0 | -5,731,110,059,211,849,000 | 61.531915 | 120 | 0.758421 | false | 3.867105 | false | false | false |
GitHK/void-star | voidstar/json_app.py | 1 | 1518 | from aiohttp import web
import traceback
def make_response(status, payload, error):
data = dict(status=status, payload=payload, error=error)
return web.json_response(data=data, status=status)
async def json_middleware(app, handler):
async def middleware_handler(request):
try:
payload... | mit | 7,357,566,348,992,922,000 | 36.95 | 110 | 0.632411 | false | 4.181818 | false | false | false |
iogf/libpad | libpad.py | 1 | 1513 | """
libpad is used to sandbox code using codepad.org.
"""
from ehp import *
import requests
def post(data, lang, opt=False):
"""
Used to post code onto codepad.org.
Example:
url, data = libpad.post('print "hi"', 'python', opt=True)
Would print the redirected url and the output "hi".
"""
... | apache-2.0 | 4,834,174,830,043,429,000 | 23.015873 | 70 | 0.413087 | false | 4.067204 | false | false | false |
ChrisCintron/text-sentiment | setup.py | 1 | 1463 | #!/usr/bin/env python3
import os
from setuptools import setup, find_packages
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
... | unlicense | -8,225,465,263,189,576,000 | 38.540541 | 87 | 0.7054 | false | 3.685139 | false | false | false |
Hammer2900/SunflowerX | application/gui/preferences/commands.py | 1 | 5424 | import gtk
from widgets.settings_page import SettingsPage
class Column:
TITLE = 0
COMMAND = 1
class CommandsOptions(SettingsPage):
"""Commands options extension class"""
def __init__(self, parent, application):
SettingsPage.__init__(self, parent, application, 'commands', _('Commands'))
... | gpl-3.0 | 7,846,837,711,939,261,000 | 32.481481 | 89 | 0.60472 | false | 3.907781 | false | false | false |
skuda/client-python | kubernetes/client/models/v1_token_review_spec.py | 1 | 2934 | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.6.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | apache-2.0 | 1,387,123,055,390,541,000 | 24.736842 | 105 | 0.517382 | false | 4.432024 | false | false | false |
jintao-zhang/OnchipBNN | Run-time/mnist.py | 1 | 3381 |
import sys
import os
import time
import numpy as np
np.random.seed(1234) # for reproducibility
# specifying the gpu to use
# import theano.sandbox.cuda
# theano.sandbox.cuda.use('gpu1')
import theano
import theano.tensor as T
import lasagne
import cPickle as pickle
import gzip
import binary_ops
from pylearn2.d... | bsd-3-clause | -9,216,633,221,574,073,000 | 28.155172 | 94 | 0.617273 | false | 3.566456 | true | false | false |
5monkeys/blues | blues/letsencrypt.py | 1 | 2221 | """
Let's encrypt Blueprint
===============
**Prerequisites:**
Webserver need to be configured to serve acme-challenge requests for requested domains
Example:
.. code-block:: nginx
location ^~ /.well-known/acme-challenge/ {
default_type "text/plain";
root /srv/www/letsencrypt;
}
location =... | mit | 3,741,316,082,757,007,000 | 25.440476 | 105 | 0.644304 | false | 3.764407 | false | false | false |
anthonyfok/frescobaldi | frescobaldi_app/documentcontextmenu.py | 1 | 4000 | # This file is part of the Frescobaldi project, http://www.frescobaldi.org/
#
# Copyright (c) 2008 - 2014 by Wilbert Berendsen
#
# 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
... | gpl-2.0 | -6,227,863,284,263,949,000 | 33.782609 | 79 | 0.642 | false | 3.917728 | false | false | false |
grycap/clues | cluesplugins/sge.py | 1 | 15104 | #!/usr/bin/env python
#
# CLUES - Cluster Energy Saving System
# Copyright (C) 2015 - GRyCAP - Universitat Politecnica de Valencia
#
# 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 versi... | gpl-3.0 | -5,812,341,761,884,533,000 | 31.204691 | 141 | 0.652542 | false | 3.056253 | true | false | false |
tangentmonger/theinternet | theinternet.py | 1 | 2204 | import re
import json
import requests
import urllib.parse
from secrets import Secrets
import TwitterSearch
def run_search():
sources = []
try:
tso = TwitterSearch.TwitterSearchOrder()
tso.set_search_url("?%s" % urllib.parse.urlencode({"q":"\"%s\"" % SEARCH_TERM}))
tso.set_locale('en')
... | gpl-2.0 | 6,724,192,964,377,201,000 | 28.386667 | 97 | 0.621143 | false | 3.786942 | false | false | false |
dajohnso/cfme_tests | fixtures/version_info.py | 1 | 5756 | from utils.log import logger
import os
import time
from utils.path import results_path
from utils.ssh import SSHClient
from utils.smem_memory_monitor import test_ts
import glob
import pytest
def find_nth_pos(string, substring, n):
"""helper-method used in getting version info"""
start = string.find(substring)... | gpl-2.0 | 3,318,141,825,193,834,000 | 32.858824 | 87 | 0.631862 | false | 3.336812 | false | false | false |
silkentrance/nss-pam-ldap | pynslcd/group.py | 1 | 4691 |
# group.py - group entry lookup routines
#
# Copyright (C) 2010, 2011 Arthur de Jong
#
# 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 op... | lgpl-2.1 | 6,880,353,063,916,392,000 | 33.240876 | 102 | 0.61117 | false | 4.158688 | false | false | false |
potash/drain | docs/conf.py | 1 | 8357 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# drain documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 9 22:26:36 2013.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autog... | mit | -3,145,901,085,984,398,000 | 29.389091 | 76 | 0.703003 | false | 3.730804 | true | false | false |
ptroja/spark2014 | gnatmerge/share/gnatmerge/library/status.py | 1 | 9345 | """Status model as merge semantics
This provide a semantics for merge specs that is based on status models.
Roughly speaking, a status model contain:
* states (e.g. "NOT_PROVED", "TESTS_FAILED");
* for each status, a proof or a counterexample for this status. i.e.
a list of messages from a tool explaining why this ... | gpl-3.0 | 2,994,222,434,666,907,000 | 33.483395 | 88 | 0.575923 | false | 3.751505 | false | false | false |
yangjincai/Xq2EFT | Q.py | 1 | 3926 | #!/bin/env python
import numpy as np
import matplotlib.pyplot as plt
import sys, os
import argparse
def uqi(x,y):
"""A Universal Image Quality Index, named Q."""
x = np.array([float(i) for i in x])
y = np.array([float(i) for i in y])
cov = np.cov(x,y)
a_var = cov[0][0]
b_var = cov[1][1]
ab_... | apache-2.0 | -7,456,201,364,538,079,000 | 31.446281 | 92 | 0.546612 | false | 2.940824 | false | false | false |
young-zhang/Lean | Algorithm.Python/CoarseFineFundamentalComboAlgorithm.py | 1 | 4147 | # QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
# Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the Lice... | apache-2.0 | -5,130,640,831,787,089,000 | 39.252427 | 151 | 0.708565 | false | 4.000965 | false | false | false |
Novartis/yap | bin/yap_aligner.py | 1 | 34242 | #!/usr/bin/env python
"""
Copyright 2014 Novartis Institutes for Biomedical Research
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 | -2,755,397,344,435,452,000 | 50.183857 | 175 | 0.513083 | false | 3.827632 | false | false | false |
andrewmichaud/puckfetcher | puckfetcher/subscription.py | 1 | 39127 | """
Module for a subscription object, which manages a podcast URL, name, and information about how
many episodes of the podcast we have.
"""
import collections
import datetime
import enum
import logging
import os
import platform
import time
from typing import Any, Dict, List, Mapping, Optional, Tuple, MutableSequence
... | bsd-3-clause | -5,760,376,311,231,120,000 | 38.087912 | 99 | 0.578117 | false | 4.225834 | true | false | false |
NeostreamTechnology/Microservices | venv/lib/python2.7/site-packages/connexion/options.py | 1 | 2597 | import pathlib
from typing import Optional # NOQA
MODULE_PATH = pathlib.Path(__file__).absolute().parent
INTERNAL_CONSOLE_UI_PATH = MODULE_PATH / 'vendor' / 'swagger-ui'
class ConnexionOptions(object):
def __init__(self, options=None):
self._options = {}
if options:
self._options.upd... | mit | 8,088,638,622,905,544,000 | 28.850575 | 82 | 0.604159 | false | 4.195477 | false | false | false |
credativUK/connector-magento | __unported__/magentoerpconnect_catalog/__openerp__.py | 1 | 1625 | # -*- coding: utf-8 -*-
##############################################################################
#
# Author: Guewen Baconnier
# Copyright 2013 Camptocamp SA
# Copyright 2013 Akretion
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero Gene... | agpl-3.0 | 8,220,747,719,020,026,000 | 31.5 | 78 | 0.600615 | false | 4.052369 | false | false | false |
bderembl/mitgcm_configs | eddy_iwave/input/mygendata.py | 1 | 6381 | #!/usr/bin/env python
import numpy as np
import matplotlib.pyplot as plt
from scipy.interpolate import interp1d
import scipy.special, scipy.interpolate, scipy.integrate
from scipy.interpolate import UnivariateSpline
from mpl_toolkits.mplot3d import Axes3D
plt.ion()
binprec = '>f8'
flag_plot = 1
flag_topo = 2 # 0: no... | mit | 3,307,241,939,521,388,500 | 19.583871 | 79 | 0.600376 | false | 2.079857 | false | false | false |
zverevalexei/trex-http-proxy | trex_client/external_libs/scapy-2.3.1/python2/scapy/packet.py | 1 | 46756 | ## This file is part of Scapy
## See http://www.secdev.org/projects/scapy for more informations
## Copyright (C) Philippe Biondi <phil@secdev.org>
## This program is published under a GPLv2 license
"""
Packet class. Binding mechanism. fuzz() method.
"""
import time,itertools,os
import copy
from fields import StrField... | mit | -7,176,212,070,698,021,000 | 33.736999 | 137 | 0.496279 | false | 3.882744 | false | false | false |
rbprogrammer/advanced_python_topics | course-material/py3/solutions/09 Multitasking/stems_a.py | 1 | 1310 | #!/usr/local/bin/python3
import mytimer
from multiprocessing import Process
# (a)
#############################################################
def stem_search(stems, stem_size):
best_stem = ""
best_count = 0
for (stem,count) in stems.items():
if stem_size == len(stem) and count > best_count:
... | apache-2.0 | 4,372,852,831,732,860,400 | 24.192308 | 66 | 0.471756 | false | 3.922156 | false | false | false |
josephsuh/extra-specs | nova/console/rpcapi.py | 1 | 1428 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012, Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
... | apache-2.0 | -3,056,087,976,261,820,000 | 29.382979 | 79 | 0.669468 | false | 3.787798 | false | false | false |
bsipocz/astropy | astropy/nddata/tests/test_utils.py | 1 | 22944 | # Licensed under a 3-clause BSD style license - see LICENSE.rst
import pytest
import numpy as np
from numpy.testing import assert_allclose, assert_array_equal
from astropy.tests.helper import assert_quantity_allclose
from astropy.nddata.utils import (extract_array, add_array, subpixel_indices,
... | bsd-3-clause | 6,243,526,174,990,491,000 | 36.736842 | 79 | 0.539618 | false | 3.094686 | true | false | false |
chubbymaggie/Sark | plugins/autostruct.py | 1 | 2613 | import idaapi
import idc
import sark
def message(*messages):
for msg in messages:
for line in msg.splitlines():
idaapi.msg("[Autostruct] {}\n".format(line))
class AutoStruct(idaapi.plugin_t):
flags = idaapi.PLUGIN_PROC
comment = "AutoStruct struct creator"
help = "Automagically ... | mit | 8,349,593,170,269,329,000 | 32.5 | 90 | 0.601607 | false | 4.114961 | false | false | false |
AlexJF/pelican-advthumbnailer | advthumbnailer.py | 1 | 8015 | #!/usr/bin/env python
# encoding: utf-8
from __future__ import unicode_literals, print_function
import logging
import os
import re
from blinker import signal
from pelican import signals
from pelican.utils import mkdir_p
from bs4 import BeautifulSoup
logger = logging.getLogger(__name__)
try:
from PIL import I... | apache-2.0 | 3,038,157,731,212,837,400 | 31.449393 | 115 | 0.57854 | false | 3.858931 | false | false | false |
flakshack/SysAdminBoard | rubrik.py | 1 | 13889 | #!/usr/bin/env python
"""
rubrik - Uses Rubrik REST API to get summary of performance stats.
API Explorer: https://rubrik/docs/v1
Internal API Explorer: https://rubrik/docs/internal/playground
NOTE: These REST API calls are now considered INTERNAL, so if history is any guide, you can
expect them to break each ti... | mit | 5,254,517,290,578,999,000 | 45.76431 | 117 | 0.623155 | false | 3.789632 | true | false | false |
showa-yojyo/bin | twmods/commands/friends.py | 1 | 2000 | """friends.py: Implementation of class AbstractTwitterFriendCommand
and its subclasses.
"""
from . import AbstractTwitterCommand
from ..parsers import (
parser_user_single,
parser_count_users,
parser_count_users_many,
parser_cursor,
parser_skip_status,
parser_include_user_entities)
# GET frien... | mit | 6,984,676,812,932,541,000 | 28.411765 | 67 | 0.608 | false | 4.106776 | false | false | false |
agx/git-buildpackage | tests/context.py | 1 | 1349 | # this context.py should be included by all tests
# idea from http://kennethreitz.com/repository-structure-and-python.html
import os
import shutil
import sys
import tempfile
sys.path.insert(0, os.path.abspath('..'))
import gbp # noqa: E402
import gbp.log # noqa: E402
gbp.log.setup(False, False)
# the top ... | gpl-2.0 | 3,417,815,243,291,622,000 | 21.114754 | 77 | 0.642698 | false | 3.282238 | false | false | false |
huangxiangzhou/nlpcc2016 | SQ/coreMF.py | 1 | 29941 | import sys
import codecs
import lcs #the lcs module is in extension folder
import time
import json
import re
import Levenshtein
class answerCandidate:
def __init__(self, sub = ['',''], pre = '', qRaw = '', score = 0, kbDict = [], wS = 1, wP = 10, wAP = 10):
self.sub = sub[0]
self.e... | gpl-3.0 | -7,925,130,797,735,810,000 | 32.296678 | 235 | 0.508066 | false | 3.712001 | false | false | false |
vorburger/mcedit2 | src/mcedit2/rendering/chunkmeshes/chunksections.py | 1 | 1352 | """
${NAME}
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import logging
from OpenGL import GL
import numpy
from mcedit2.rendering import renderstates
from mcedit2.rendering.blockmeshes import standardCubeTemplates
from mcedit2.rendering.blockmeshes import ChunkMeshBase
fr... | bsd-3-clause | 6,594,047,817,091,977,000 | 32.8 | 106 | 0.721893 | false | 3.693989 | false | false | false |
devrishik/cms_project | cms_project/cms_project/settings/base.py | 1 | 7291 | """Common settings and globals."""
from os.path import abspath, basename, dirname, join, normpath
from sys import path
########## PATH CONFIGURATION
# Absolute filesystem path to the Django project directory:
DJANGO_ROOT = dirname(dirname(abspath(__file__)))
# Absolute filesystem path to the top-level project fold... | mit | 3,870,792,845,491,124,000 | 28.638211 | 98 | 0.683171 | false | 3.517125 | true | false | false |
peterfpeterson/musings | python/AtlantaRagnar2017.py | 1 | 12514 | #!/usr/bin/env python3
from __future__ import (absolute_import, division, print_function)
import json
import numpy as np
import pandas as pd
from datetime import datetime
### plotly
from plotly import tools as toolsly
from plotly.offline import plot
import plotly.graph_objs as go
### matplotlib
#import matplotlib
#imp... | mit | -2,306,779,943,265,127,000 | 33.955307 | 97 | 0.55362 | false | 3.397774 | false | false | false |
ROZ32/pythonScraper | simplescraper/scraper.py | 1 | 10361 | from bs4 import BeautifulSoup
try:
# For Python 3.0 and later
from urllib.request import urlopen
from urllib.error import URLError
from urllib.error import HTTPError
except ImportError:
# Fall back to Python 2's urllib2
from urllib2 import urlopen
from urllib2 import URLError
from urlli... | mit | 3,911,347,655,377,818,000 | 43.659483 | 130 | 0.501689 | false | 4.442967 | false | false | false |
simula/nornet-control | src/NorNetExperimentToolbox.py | 1 | 10801 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# NorNet Experiment Toolbox
# Copyright (C) 2016-2021 by Thomas Dreibholz
#
# 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 t... | gpl-3.0 | 1,729,928,740,054,733,800 | 38.856089 | 213 | 0.554208 | false | 3.841038 | false | false | false |
sdrogers/ms2ldaviz | ms2ldaviz/ms1analysis/models.py | 1 | 3612 | from __future__ import unicode_literals
from django.db import models
from basicviz.models import Document, Experiment, Mass2Motif
from basicviz.constants import EXPERIMENT_STATUS_CODE
from decomposition.models import Decomposition, GlobalMotif
## tables for LDA experiment
class Sample(models.Model):
name = models... | mit | -1,200,066,122,661,688,600 | 47.16 | 96 | 0.733389 | false | 3.818182 | false | false | false |
gaganjyot/DeeDee | DailyDiary/views.py | 1 | 4131 | from django.shortcuts import render
from django.http import HttpResponse
from django.utils.decorators import method_decorator
from django.contrib.auth.decorators import login_required
from django.views.generic import View
from DailyDiary.forms import AddPostForm, RegisterForm, LoginForm
from django.contrib.auth import ... | mit | -2,476,457,066,449,454,000 | 28.091549 | 84 | 0.609053 | false | 3.839219 | false | false | false |
sunspec/pysunspec | sunspec/core/smdx.py | 1 | 4125 |
"""
Copyright (C) 2018 SunSpec Alliance
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, merg... | mit | 5,383,503,395,333,913,000 | 30.25 | 80 | 0.709091 | false | 2.731788 | false | false | false |
zvolsky/codex2020 | modules/plugin_splinter.py | 1 | 29236 | # -*- coding: utf-8 -*-
"""
- this will run webtests in TESTING database (db.testuri= from appconfig.ini)
- use sessions inside database: session.connect(request, response, db=db)
--or-- if you use shared file system sessions then always have same auth_user rows for used users in both databases
- pip install sele... | agpl-3.0 | 5,215,656,983,931,460,000 | 42.184638 | 210 | 0.572 | false | 4.097547 | true | false | false |
manahl/PythonTrainingExercises | Beginners/ExampleFunctions/D_functions_parrot.py | 1 | 1282 | #!/usr/bin/env python
"""Does...
Created on Aug 25, 2011
@author: paulross
"""
__author__ = 'Paul Ross'
__date__ = '2011-08-03'
__version__ = '0.1.0'
__rights__ = 'Copyright (c) 2011 Paul Ross.'
###################################
# The many ways of calling parrot()
###################################
def parr... | bsd-3-clause | -558,962,835,262,928,200 | 26.869565 | 74 | 0.519501 | false | 3.561111 | false | false | false |
jeffhsu3/genda | scripts/PWM/conservationscorer.py | 1 | 1474 | '''
Appends the average conservation score of a region to each entry in a bed file
usage:
python conservationBed.py [OPTIONS] bedfile outputfile <conservationfile>
'''
import sys, tabix, optparse
p = optparse.OptionParser()
p.add_option('-p', '--padded',action = 'store', dest = 'pad', help = 'Program will remove... | bsd-3-clause | -8,731,983,654,402,148,000 | 27.901961 | 192 | 0.550882 | false | 3.451991 | false | false | false |
Ichag/openerp-server | openerp/modules/loading.py | 1 | 19636 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
# Copyright (C) 2010-2013 OpenERP s.a. (<http://openerp.com>).
#
# This program is free software: you ca... | agpl-3.0 | 4,621,547,756,235,238,000 | 44.878505 | 145 | 0.591821 | false | 4.256666 | true | false | false |
biocore/tax2tree | t2t/consistency.py | 1 | 4904 | #!/usr/bin/env python
from collections import defaultdict
from numpy import mean
__author__ = "Donovan Park"
__copyright__ = "Copyright 2014, The tax2tree project"
__credits__ = ["Donovan Park"]
__license__ = "BSD"
__version__ = "1.0"
__maintainer__ = "Donovan Park"
__email__ = "donovan.parks@gmail.com"
__status__ =... | bsd-3-clause | 1,055,274,936,196,814,800 | 36.723077 | 78 | 0.529772 | false | 4.22031 | false | false | false |
asieriko/python-educa | EvaluationReport.py | 1 | 17819 | '''
This script creates an odt document with a summary of the evaluation data
In needs a OrderedDict with the courses, languages and groups for each one of them
It also needs the plots of each course, lang, group. Both subjects and promotion
And it needs too a csv file with a summary of each group data (cleaning, care,... | gpl-3.0 | 8,752,509,196,412,690,000 | 42.773399 | 245 | 0.622215 | false | 3.041068 | false | false | false |
oiime/sidr | sidr/models/geoname.py | 1 | 1606 | import json
import pycountry
import os
from whoosh.index import create_in, open_dir, exists_in
from whoosh import fields, qparser, query
from sidr import validator, const
from sidr.orm import db, sa_utils
from .model import ObjectTable
__all__ = ['Geoname']
class Geoname(ObjectTable):
__tablename__ = 'geoname'
... | gpl-2.0 | 613,948,641,174,501,000 | 33.913043 | 139 | 0.600249 | false | 3.438972 | false | false | false |
spiderbit/canta-ng | menus/menu.py | 1 | 4974 | #! /usr/bin/python -O
# -*- coding: utf-8 -*-
#
# CANTA - A free entertaining educational software for singing
# Copyright (C) 2007 S. Huchler, A. Kattner, F. Lopez
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published b... | gpl-3.0 | 8,991,452,122,110,252,000 | 38.47619 | 98 | 0.579212 | false | 3.404517 | false | false | false |
yuhailei1992/BearcodeOJ | specification/models/models.py | 1 | 2556 | from django.db import models
# User class for built-in authentication module
from django.contrib.auth.models import User
class UserProfile(models.Model):
user = models.ForeignKey(User, null=False)
username = models.CharField(max_length=200)
firstname = models.CharField(max_length=200)
lastname = models.CharField(... | gpl-2.0 | -9,149,569,650,461,256,000 | 36.588235 | 105 | 0.740219 | false | 3.319481 | false | false | false |
pagarme/pagarme-python | pagarme/resources/handler_request.py | 1 | 1639 | from .requests_retry import requests_retry_session
TEMPORARY_COMPANY = 'https://api.pagar.me/1/companies/temporary'
KEYS = {}
def validate_response(pagarme_response):
if pagarme_response.ok:
return pagarme_response.json()
else:
return error(pagarme_response.json())
def create_temporary_comp... | mit | -6,259,720,279,196,432,000 | 27.754386 | 76 | 0.676022 | false | 3.331301 | false | false | false |
Mause/pyalp | pyalp/pyalp_translation/customization.py | 1 | 1104 | import os
from pyalp.php_load import load_lang_file
locale_data = os.path.join(os.path.dirname(__file__), '..', 'locale_data')
lang = load_lang_file(os.path.join(locale_data, 'en.php'))
# lang = load_lang_file(os.path.join(locale_data, 'fr.php'))
# this is really just one way of doing things; another would be via
... | mit | 3,407,115,901,036,728,300 | 24.674419 | 74 | 0.627717 | false | 3.572816 | false | false | false |
Excentrics/publication-backbone | publication_backbone/admin/rubricatoradmin.py | 1 | 5552 | #-*- coding: utf-8 -*-
from django.contrib import admin
from django.conf import settings
from django.core.management import call_command
from django.utils.translation import ugettext as _
from django.contrib.admin.util import quote
from changerubrictypeadmin import ChangeTypeModelAdmin
from sorl.thumbnail.admin impor... | bsd-3-clause | -2,994,855,995,141,652,500 | 36.013333 | 462 | 0.645713 | false | 3.758971 | false | false | false |
pedroluislopez/ahorapodemosmurciaweb | web/views.py | 1 | 1254 | from django.shortcuts import render
from web.models import Candidato, IdeaFuerza, Cita, Documento, Noticia
# Create your views here.
def index(request):
ideasfuerza_m = IdeaFuerza.objects.filter(seccion='m').order_by('orden')
m_columns = 0
if len(ideasfuerza_m) > 0:
m_columns = 12 / len(ideasfuerza... | gpl-3.0 | 3,151,915,601,590,051,000 | 37.030303 | 76 | 0.637161 | false | 2.708423 | false | false | false |
presidentielcoin/presidentielcoin | qa/rpc-tests/test_framework/blocktools.py | 1 | 3837 | #!/usr/bin/env python3
# blocktools.py - utilities for manipulating blocks and transactions
# Copyright (c) 2015-2016 The Presidentielcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from .mininode import *
fro... | mit | -8,015,067,707,177,189,000 | 35.542857 | 104 | 0.692729 | false | 3.368745 | false | false | false |
lucasplus/MABDI | mabdi/SourceStanfordBunny.py | 1 | 4094 | import os
import vtk
from vtk.util.vtkAlgorithm import VTKPythonAlgorithmBase
from vtk.util import numpy_support
from vtk.numpy_interface import dataset_adapter as dsa
from vtk.numpy_interface import algorithms as alg
import logging
from timeit import default_timer as timer
class SourceStandfordBunny(VTKPythonAlgor... | bsd-3-clause | -3,844,621,870,197,340,000 | 33.694915 | 101 | 0.568393 | false | 3.844131 | false | false | false |
Vespapp/vespapp-web | api/views.py | 1 | 5218 | from rest_framework.generics import ListCreateAPIView, RetrieveUpdateAPIView, ListAPIView
from rest_framework.response import Response
from rest_framework.views import APIView
from api.models import Sighting, Picture, Location, Question, Answer, SightingInfo
from api.serializers import SightingSerializer, PictureSeria... | gpl-3.0 | -6,132,590,051,407,855,000 | 27.205405 | 128 | 0.7156 | false | 3.842415 | false | false | false |
machinalis/eff | eff_site/eff/_models/external_source.py | 1 | 1629 | # Copyright 2009 - 2011 Machinalis: http://www.machinalis.com/
#
# This file is part of Eff.
#
# Eff 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 | 6,714,925,170,216,109,000 | 33.659574 | 70 | 0.711479 | false | 3.68552 | false | false | false |
7imeout/EmailMagic | meta.py | 1 | 3847 | """Global flag for DEBUG printing """
DEBUG_MODE = True
"""Global Constants"""
CORPUS_SPLIT = 3
EXCLUSION_LIST_FOR_LIVE_DEMO = []
def d_print(first_msg, *rest_msg, source='?'):
"""
Global debug print function; use by importing 'meta' and calling: meta.d_print(...)
:param first_msg: your debug message, pa... | mit | -8,991,118,079,826,056,000 | 43.732558 | 114 | 0.593969 | false | 4.618247 | false | false | false |
hackliff/pyconsul | setup.py | 1 | 1336 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
'''
Packaging
---------
:copyright (c) 2014 Xavier Bruhiere
:license: Apache 2.0, see LICENSE for more details.
'''
import multiprocessing
import setuptools
from pyconsul import __version__, __author__, __licence__, __project__
REQUIREMENTS = [... | mit | 1,007,316,651,358,832,900 | 23.740741 | 70 | 0.619012 | false | 3.774011 | false | false | false |
dhui/tumblr-migrate | copy_posts.py | 1 | 4017 | import argparse
import collections
import copy
import json
from auth import load_session
from constants import GET_POSTS_URL_BASE, CREATE_POST_URL_BASE, POST_LIMIT, POST_ATTRS_TO_FILTER, SUPPORTED_POST_IMPORT_TYPES, DEFAULT_SESSION_FILE
def export_posts(session, api_key, blog_name, export_notes=False, export_reblogs... | bsd-3-clause | 6,946,803,907,935,066,000 | 32.756303 | 147 | 0.637292 | false | 3.736744 | false | false | false |
FedoraScientific/salome-smesh | src/Tools/blocFissure/gmu/genereElemsFissureElliptique.py | 1 | 2183 | # -*- coding: utf-8 -*-
import logging
from geomsmesh import geompy
from toreFissure import toreFissure
from ellipsoideDefaut import ellipsoideDefaut
from rotTrans import rotTrans
from genereMeshCalculZoneDefaut import genereMeshCalculZoneDefaut
# ---------------------------------------------------------------------... | lgpl-2.1 | -9,184,546,945,989,799,000 | 39.351852 | 120 | 0.754475 | false | 2.751263 | false | false | false |
calexil/FightstickDisplay | pyglet/media/drivers/xaudio2/interface.py | 1 | 22609 | # ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# Copyright (c) 2008-2021 pyglet contributors
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the follo... | gpl-3.0 | -289,962,714,806,930,240 | 35.702922 | 120 | 0.617896 | false | 4.052518 | false | false | false |
kerwinxu/barcodeManager | zxing/cpp/scons/scons-local-2.0.0.final.0/SCons/Tool/swig.py | 1 | 7302 | """SCons.Tool.swig
Tool-specific initialization for swig.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Fou... | bsd-2-clause | -2,011,834,757,887,374,000 | 38.120879 | 121 | 0.614626 | false | 3.54294 | false | false | false |
sahilshekhawat/hackathon | settings.py | 1 | 4818 | # Django settings for hackathon project.
import os
root_dir = os.path.dirname(os.path.abspath(__file__))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycop... | gpl-3.0 | 1,607,641,089,803,062,000 | 33.170213 | 101 | 0.670403 | false | 3.694785 | false | false | false |
javrasya/django-river | settings/base.py | 1 | 2186 | import os
import sys
import django
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = True
USE_TZ = True
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfi... | bsd-3-clause | 4,276,094,185,970,445,300 | 22.505376 | 90 | 0.585087 | false | 3.749571 | false | false | false |
adieu/authentic2 | authentic2/idp/saml/saml2_endpoints.py | 1 | 70878 | """SAML2.0 IdP implementation
It contains endpoints to receive:
- authentication requests,
- logout request,
- logout response,
- name id management requests,
- name id management responses,
- attribut requests.
- logout
- logoutResponse
TODO:
- manageNameId
- manageNa... | agpl-3.0 | -2,138,212,881,390,266,400 | 41.852479 | 146 | 0.641172 | false | 4.020991 | false | false | false |
endrebak/epic | epic/windows/count/count_reads_in_windows.py | 1 | 6284 | from functools import partial
from io import BytesIO
from itertools import product
from logging import info
from subprocess import check_output, Popen, PIPE
from typing import Any, Iterable, Tuple
from argparse import Namespace
import pandas as pd
from joblib import Parallel, delayed
from numpy import int32
from nats... | mit | 7,079,542,476,039,981,000 | 36.855422 | 263 | 0.582432 | false | 3.582668 | false | false | false |
SasView/sasmodels | sasmodels/models/onion.py | 1 | 12373 | r"""
This model provides the form factor, $P(q)$, for a multi-shell sphere where
the scattering length density (SLD) of each shell is described by an
exponential, linear, or constant function. The form factor is normalized by
the volume of the sphere where the SLD is not identical to the SLD of the
solvent. We currentl... | bsd-3-clause | 1,243,964,313,731,408,600 | 28.958838 | 125 | 0.550796 | false | 2.56329 | false | false | false |
mwgamera/u413 | message.py | 1 | 1694 | '''u413 - an open-source BBS/transmit/PI-themed forum
Copyright (C) 2012 PiMaster
Copyright (C) 2012 EnKrypt
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 Licens... | agpl-3.0 | -3,380,324,424,117,827,600 | 42.435897 | 258 | 0.725502 | false | 3.302144 | false | false | false |
Sult/Mercenaries | mercs/helpers.py | 1 | 1223 | from django.core.exceptions import FieldError
from importlib import import_module
from django.conf import settings
#sort a queryset by a object-method
#only works for methods that dont take extra arguments
def sort_queryset_by_method(queryset, method_string, reverse):
unsorted_list = queryset.all()
sorted_list = sor... | gpl-2.0 | 2,637,402,061,239,490,000 | 22.519231 | 92 | 0.70646 | false | 3.534682 | false | false | false |
matchbox/flask-sphinxsearch | setup.py | 1 | 1035 | """
Flask-SphinxSearch
-------------
Flask extension to work with the Sphinx search engine
(http://sphinxsearch.com/)
"""
from setuptools import setup
setup(
name='Flask-SphinxSearch',
version='0.1',
url='https://github.com/matchbox/flask-sphinxsearch/',
license='Apache',
author='Paul Swartz',
... | apache-2.0 | -3,661,401,217,379,432,400 | 26.972973 | 72 | 0.630918 | false | 4.294606 | false | true | false |
SystemsBiologyUniandes/Cytometry | cytometry_lib.py | 1 | 2273 | import pandas as pd
import fcsparser
import os
#####
def make_dir(path):
'''
Checks if the provided path exists and if it doesn't creates it
Arguments
--
path: (string) path - pointing to the desired folder in memory
'''
if not os.path.exists(path):
os.makedirs(path)
def listF... | mit | -6,253,389,757,302,141,000 | 33.439394 | 133 | 0.629564 | false | 3.412913 | false | false | false |
crs4/biodoop-core | setup.py | 1 | 4058 | # BEGIN_COPYRIGHT
#
# Copyright (C) 2009-2013 CRS4.
#
# This file is part of biodoop-core.
#
# biodoop-core 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 optio... | gpl-3.0 | 4,858,110,318,594,321,000 | 27.180556 | 78 | 0.669542 | false | 3.058026 | false | false | false |
computersalat/ansible | lib/ansible/template/native_helpers.py | 2 | 2650 | # Copyright: (c) 2018, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from ast import literal_eval
from itertools import islice, chain
i... | gpl-3.0 | -5,990,978,313,873,822,000 | 33.415584 | 92 | 0.675849 | false | 4.147105 | false | false | false |
woohgit/changelog-client-python | ccp/client.py | 1 | 2237 | # -*- coding: utf-8 -*-
"""
ccp.client
~~~~~~~~~~~~
This module implements the Changelog API.
:license: MIT, see LICENSE for more details.
"""
import sys
import requests
import json
from time import time
import logging
from pkg_resources import get_distribution
API_HOST = "localhost"
API_PORT = 5000
SEVERITY = di... | mit | -3,866,486,277,387,191,000 | 28.826667 | 94 | 0.573983 | false | 3.863558 | false | false | false |
freesmartphone/framework | framework/patterns/processguard.py | 1 | 6187 | #!/usr/bin/env python
"""
freesmartphone.org Framework Daemon
(C) 2008-2010 Michael 'Mickey' Lauer <mlauer@vanille-media.de>
(C) 2008-2009 Openmoko, Inc.
GPLv2 or later
Package: framework.patterns
Module: processguard
"""
__version__ = "0.3.0"
import gobject
import os, signal, types
MAX_READ = 4096
import loggin... | gpl-2.0 | 1,291,157,892,038,129,000 | 28.322275 | 101 | 0.505415 | false | 4.302503 | false | false | false |
vliangzy/sillypool | sillypool/libs/exception.py | 1 | 1543 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2017 liangzy
#
# 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 | 6,795,298,174,355,639,000 | 28.673077 | 74 | 0.660402 | false | 3.867168 | false | false | false |
joshcvt/natinal | notifiers/TFFPNotifier.py | 1 | 2209 | from .NotifierClass import Notifier
import twitter
from datetime import datetime, timedelta
import time
import threading
class TFFPNotifier(Notifier):
def __init__(self,cfgParser,insec):
self.header = insec
try:
self.screenname = cfgParser.get(insec,"username").strip()
except:
self.screenname = ''
sel... | mit | 8,108,003,052,719,604,000 | 33.53125 | 101 | 0.696243 | false | 2.961126 | false | false | false |
TooAngel/sensorviewer | tests/calibration_tests.py | 1 | 6498 | import json
import sensor
import unittest
from mock import Mock, patch
class CalibrationTestCase(unittest.TestCase):
def setUp(self):
self.app = sensor.app.test_client()
sensor.app.debug = True
def tearDown(self):
pass
@patch('sensor.db')
@patch('sensor.mongo')
def test_... | apache-2.0 | 2,503,727,321,931,664,000 | 33.2 | 72 | 0.529701 | false | 3.40566 | true | false | false |
vandy-astro-hacks/test-repository | src/sqlitetools/dbwriter.py | 1 | 4270 | '''
Created on Jun 18, 2012
@package ebf
@author mpaegert
@version \$Revision: 1.8 $
@date \$Date: 2013/08/07 15:22:06 $
create and write to sqlite databases
$Log: dbwriter.py,v $
Revision 1.8 2013/08/07 15:22:06 paegerm
add fetchall and orclause, addinf generic create_index function
Revision 1.7 2013/07... | gpl-2.0 | -1,615,621,333,792,240,600 | 28.047619 | 78 | 0.576347 | false | 3.603376 | false | false | false |
leandrotoledo/python-telegram-bot | examples/conversationbot2.py | 2 | 4961 | #!/usr/bin/env python
# pylint: disable=C0116,W0613
# This program is dedicated to the public domain under the CC0 license.
"""
First, a few callback functions are defined. Then, those functions are passed to
the Dispatcher and registered at their respective places.
Then, the bot is started and runs until we press Ctr... | lgpl-3.0 | -3,668,123,226,661,927,000 | 30.00625 | 96 | 0.647652 | false | 3.906299 | false | false | false |
urubens/CellCounting | src/data/cytomine_identifiers.py | 1 | 5650 | # -*- coding: utf-8 -*-
__author__ = "Ulysse Rubens <urubens@student.ulg.ac.be>"
__version__ = "0.1"
"""
Dictionary utilities encapsuling the Cytomine identifiers.
"""
CYTOMINE_KEYS = {
'demo.cytomine.be': {'public_key': '678d80ce-1d8f-4c33-857e-ae45605dec66',
'private_key': '90651c95-47... | mit | -5,817,311,607,417,019,000 | 26.696078 | 80 | 0.433628 | false | 3.175942 | false | true | false |
dpinney/omf | omf/solvers/opendss/__init__.py | 1 | 57511 | ''' Run OpenDSS and plot the results for arbitrary circuits. '''
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import networkx as nx
import math
import os
import warnings
try:
import opendssdirect as dss
except:
warnings.warn('opendssdirect not installed; opendss functionality disabled.')
fr... | gpl-2.0 | -7,504,513,633,192,658,000 | 43.721617 | 303 | 0.673193 | false | 2.798316 | false | false | false |
kelvinwong-ca/django-select-multiple-field | test_projects/django14/suthern/migrations/0001_initial.py | 1 | 1143 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'ChickenBalls'
db.create_table('suthern_chickenballs', (
... | bsd-3-clause | 6,469,534,153,403,336,000 | 34.75 | 163 | 0.625547 | false | 3.41194 | false | false | false |
witten/borgmatic | tests/integration/config/test_override.py | 1 | 1039 | import pytest
from borgmatic.config import override as module
@pytest.mark.parametrize(
'value,expected_result',
(
('thing', 'thing'),
('33', 33),
('33b', '33b'),
('true', True),
('false', False),
('[foo]', ['foo']),
('[foo, bar]', ['foo', 'bar']),
... | gpl-3.0 | -6,982,483,863,384,819,000 | 24.975 | 90 | 0.537055 | false | 3.474916 | false | false | false |
hugs/detour | detour/vdb.py | 1 | 45320 | #! /usr/bin/env python
"""A Python debugger."""
# (See pdb.doc for documentation.)
import sys
import linecache
import cmd
import bdb
from repr import Repr
import os
import re
import pprint
import traceback
# jrh - begin
from converters import file_to_texture
from view import draw_source, set_scene
# jrh - end
class... | mit | -6,022,807,013,780,616,000 | 33.333333 | 118 | 0.560481 | false | 4.111776 | false | false | false |
projectweekend/Links-API | links/maker/views.py | 1 | 7146 | from django.db import IntegrityError
from django.contrib.auth import authenticate
from rest_framework import generics, status
from rest_framework.response import Response
from rest_framework.permissions import AllowAny
from rest_framework.authtoken.models import Token
from maker.models import (Maker,
... | mit | -3,866,862,132,267,187,000 | 34.552239 | 96 | 0.664847 | false | 4.525649 | false | false | false |
bbugh/SublimeLinter-contrib-elm-make | linter.py | 1 | 5295 | #
# linter.py
# Elm Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Brian Bugh
# Copyright (c) 2015 Brian Bugh
# Twitter: @brainbag
# Github: @bbugh
#
# License: MIT
#
"""This module exports the ElmLint plugin class."""
import json
import re
import os
from SublimeLinter.lint imp... | mit | 4,764,967,422,435,851,000 | 36.027972 | 116 | 0.600944 | false | 3.951493 | false | false | false |
elliottd/vdrparser | root-attach.py | 1 | 2347 | import os
import sys
import getopt
def result_data(filename):
handle = open(filename)
data = handle.readlines()
handle.close()
return data
def remove_and_insert(data):
i = 0
for line in data:
line = line.replace("[", "")
line = line.replace("]", "")
line = line.replace(... | apache-2.0 | -6,943,821,602,592,294,000 | 25.670455 | 114 | 0.598637 | false | 4.032646 | false | false | false |
jsoa/django-renderit | example/urls.py | 1 | 1046 | try:
from django.conf.urls.defaults import patterns, url
except (ImportError, ):
from django.conf.urls import url
from django.views.generic import TemplateView
from django.contrib.auth.models import User
main_user = User.objects.get_or_create(username='test', email='test@test.com')
int_value = 231
float_val... | apache-2.0 | 9,184,184,690,495,054,000 | 22.244444 | 78 | 0.641491 | false | 3.582192 | false | false | false |
clchiou/garage | py/g1/operations/cores/g1/operations/cores/xar_cmds.py | 1 | 2762 | __all__ = [
'main',
]
import sys
from pathlib import Path
from g1.bases import argparses
from g1.bases import oses
from g1.bases.assertions import ASSERT
from g1.texts import columns
from g1.texts.columns import argparses as columns_argparses
from . import models
from . import xar_ops_dirs
_XAR_LIST_COLUMNS = f... | mit | 4,948,011,334,746,468,000 | 26.078431 | 76 | 0.679218 | false | 3.068889 | false | false | false |
evelynmitchell/pdq | examples/misc/jackpdq.py | 1 | 4650 | #!/usr/bin/env python
###############################################################################
# Copyright (C) 1994 - 2013, Performance Dynamics Company #
# #
# This software is licensed as described in the file COPY... | mit | 132,743,716,061,973,170 | 41.272727 | 81 | 0.570753 | false | 3.108289 | false | false | false |
mclark4386/volunteer_connection | volunteerapp/migrations/0005_auto_20171110_0012.py | 1 | 1344 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-11-10 00:12
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 = [
migrations.swappable_depende... | mit | -9,128,312,261,832,544,000 | 37.4 | 128 | 0.618304 | false | 4.266667 | false | false | false |
MaxTyutyunnikov/lino | obsolete/src/lino/adamo/table.py | 1 | 16256 | #coding: iso-8859-1
## Copyright 2003-2005 Luc Saffre
## This file is part of the Lino project.
## Lino 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 opti... | gpl-3.0 | 8,539,395,345,837,569,000 | 28.449275 | 101 | 0.554318 | false | 3.876938 | false | false | false |
gilt/incubator-airflow | airflow/jobs.py | 1 | 108103 | # -*- coding: utf-8 -*-
#
# 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
... | apache-2.0 | -547,442,273,592,255,000 | 40.674248 | 114 | 0.540716 | false | 4.445573 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.