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 |
|---|---|---|---|---|---|---|---|---|---|---|
openstack/congress | congress/tests/test_data_types.py | 1 | 4900 | # Copyright (c) 2018 VMware
#
# 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, so... | apache-2.0 | -1,532,845,056,880,372,700 | 37.28125 | 77 | 0.581224 | false |
diego-d5000/MisValesMd | env/lib/python2.7/site-packages/django/db/backends/oracle/base.py | 1 | 25877 | """
Oracle database backend for Django.
Requires cx_Oracle: http://cx-oracle.sourceforge.net/
"""
from __future__ import unicode_literals
import datetime
import decimal
import os
import platform
import sys
import warnings
from django.conf import settings
from django.db import utils
from django.db.bac... | mit | -2,987,937,587,102,457,000 | 40.351882 | 110 | 0.578854 | false |
City-of-Bloomington/green-rental | building/migrations/0015_auto__chg_field_building_energy_score.py | 2 | 24390 | # -*- coding: 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):
# Changing field 'Building.energy_score'
db.alter_column(u'building_building', 'energy_score', self.gf('dja... | agpl-3.0 | 8,743,007,635,054,079,000 | 83.397924 | 195 | 0.546084 | false |
xbezdick/packstack | packstack/plugins/nova_300.py | 1 | 35617 | # -*- 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 | 5,181,757,278,690,048,000 | 39.109234 | 99 | 0.562456 | false |
aniavasq/uncertaintyServerComponentsKUL | dispatcher.py | 1 | 4477 | ###############################################################################
# MIT License (MIT)
#
# Copyright (c)
#
# 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, in... | mit | -1,277,801,587,877,602,300 | 40.073394 | 91 | 0.56109 | false |
matpalm/malmomo | viz_advantage_surface.py | 1 | 3160 | #!/usr/bin/env python
# hacktasic viz of the quadratic surface of advantage around the max output
# for a couple of clear block on right / left / center cases
import agents
import argparse
import base_network
import Image
import numpy as np
import models
import sys
import tensorflow as tf
import replay_memory
import ... | mit | 2,407,037,566,440,569,300 | 36.619048 | 103 | 0.626582 | false |
jkarabas/py-snarkx | snarkx/io/graph6.py | 1 | 3675 | import networkx as nx
from os.path import abspath, isfile, join, dirname, isdir, basename, splitext
from tempfile import TemporaryFile
from snarkx.io import ParseFileError
__all__ = ['GraphReaderG6', 'GraphWriterG6']
class GraphReaderG6(object):
def __init__(self, path: str):
if path is None:
... | gpl-3.0 | 307,266,223,000,595,100 | 32.715596 | 103 | 0.554014 | false |
Minizinger/discordKuubioBot | bot/file_config.py | 1 | 1384 | import json
import os
import re
from emoji import UNICODE_EMOJI
import codecs
import random
class Config:
def __init__(self):
with codecs.open('../config/reactions.json', 'r', 'utf-8') as f:
self.reactions = json.load(f)
self.reaction_chance = self.reactions.pop('chance', 100) / 100... | mit | -6,079,469,363,861,440,000 | 43.645161 | 189 | 0.615607 | false |
MahdiZareie/event-recorder | event_recorder/settings.py | 1 | 3735 | """
Django settings for event_recorder project.
Generated by 'django-admin startproject' using Django 1.9.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
impor... | mit | 949,754,180,771,296,300 | 24.243243 | 91 | 0.680857 | false |
akulakov/mangotrac | proj_issues/issues/tests.py | 1 | 2392 | """
This file demonstrates two different styles of tests (one doctest and one
unittest). These will both pass when you run "manage.py test".
Replace these with more appropriate tests for your application.
"""
from django.test import TestCase, Client
from issues.models import *
urls = "/admin/issues/issue/ /issues/cr... | mit | 1,319,661,231,383,186,200 | 35.242424 | 122 | 0.537625 | false |
bitforks/pysilfont | scripts/samples/demoExecuteScript.py | 1 | 1573 | #!/usr/bin/env python
'FontForge: Demo code to paste into the "Execute Script" dialog'
__url__ = 'http://github.com/silnrsi/pysilfont'
__copyright__ = 'Copyright (c) 2013, SIL International (http://www.sil.org)'
__license__ = 'Released under the MIT License (http://opensource.org/licenses/MIT)'
__author__ = 'David Ray... | mit | -8,678,878,611,602,711,000 | 51.466667 | 116 | 0.761602 | false |
Foxboron/SyncBox | tests/test_syncAPI.py | 1 | 1395 | """
Testing src/syncAPI
"""
import unittest
import src.syncAPI
class SyncAPITest(unittest.TestCase):
"""Test the SyncAPI class methods"""
def setUp(self):
"""Set up the test"""
self.syncAPI = src.syncAPI.SyncAPI()
def test_syncAPI_has_a_shared_state(self):
"""Test the share... | bsd-3-clause | -7,453,380,248,931,270,000 | 28.680851 | 79 | 0.647312 | false |
simvisage/oricreate | oricreate/gu/gu_dofs.py | 1 | 2557 | '''
#-------------------------------------------------------------------------------
#
# Copyright (c) 2009, IMB, RWTH Aachen.
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in simvisage/LICENSE.txt and may be redistributed only
# under the conditions... | gpl-3.0 | -4,721,776,255,952,471,000 | 29.807229 | 81 | 0.588971 | false |
Scriptopathe/simso-exp | clientapi/doc/source/conf.py | 1 | 8209 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# simsoexp documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 28 16:53:27 2015.
#
# 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
# a... | bsd-2-clause | -936,192,394,310,143,700 | 30.316794 | 79 | 0.706277 | false |
SUSE/kiwi | test/unit/tasks/base_test.py | 1 | 2767 | import sys
from mock import patch
from pytest import (
raises, fixture
)
import logging
from ..test_helper import argv_kiwi_tests
import kiwi.xml_parse
from kiwi.tasks.base import CliTask
from kiwi.exceptions import KiwiConfigFileNotFound
class TestCliTask:
@fixture(autouse=True)
def inject_fixtures(se... | gpl-3.0 | 456,675,879,995,079,100 | 33.5875 | 74 | 0.638598 | false |
openstates/openstates.org | dashboards/models.py | 1 | 1807 | from django.db import models
from openstates.data.models import LegislativeSession
class DataQualityReport(models.Model):
chamber = models.CharField(max_length=20)
session = models.ForeignKey(LegislativeSession, on_delete=models.CASCADE)
total_bills = models.PositiveIntegerField()
latest_bill_create... | mit | 3,743,637,605,721,456,600 | 40.068182 | 77 | 0.765357 | false |
WoLpH/CouchPotatoServer | couchpotato/core/providers/info/couchpotatoapi/main.py | 1 | 3986 | from couchpotato.core.event import addEvent, fireEvent
from couchpotato.core.helpers.encoding import tryUrlencode
from couchpotato.core.logger import CPLog
from couchpotato.core.providers.info.base import MovieProvider
from couchpotato.environment import Env
import base64
import time
log = CPLog(__name__)
class Couc... | gpl-3.0 | -7,140,238,796,613,105,000 | 33.964912 | 153 | 0.609885 | false |
PaulDeStefano/pythonsamples | sbf2PVTGeo.py | 1 | 7187 | #!/usr/local/bin/python2.7
""" sbf2offset.py
Reads SBF binary data files and produces plain text file
containing PVTGeoblock data
Copyright (C) 2013 Paul R. DeStefano
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publis... | gpl-3.0 | 5,851,241,063,934,839,000 | 41.02924 | 177 | 0.658828 | false |
khendarg/ubi | filter_sps.py | 1 | 6189 | #!/usr/bin/env python2
from __future__ import print_function
import argparse, json, sys, time, os
import yaml
VERBOSITY = 1
def info(*substrs):
print('[INFO]: ', end='', file=sys.stderr)
print(*substrs, file=sys.stderr)
def warn(*substrs):
print('[WARNING]: ', end='', file=sys.stderr)
print(*substrs, file=sy... | bsd-3-clause | -496,759,798,318,000,100 | 31.234375 | 142 | 0.645177 | false |
mapr/sahara | sahara/plugins/mapr/domain/service.py | 1 | 8580 | # Copyright (c) 2015, MapR Technologies
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | apache-2.0 | -1,524,114,750,197,904,600 | 29.974729 | 79 | 0.590793 | false |
joshzarrabi/e-mission-server | emission/analysis/plotting/leaflet_osm/our_plotter.py | 1 | 14864 | import pandas as pd
import folium.folium as folium
import itertools
import numpy as np
import logging
import geojson as gj
import copy
import attrdict as ad
from functional import seq
# import emission.analysis.classification.cleaning.location_smoothing as ls
import bson.json_util as bju
import emission.storage.decor... | bsd-3-clause | 8,464,077,936,362,455,000 | 50.611111 | 154 | 0.613361 | false |
gratefulfrog/lib | python/pmg_tk/skins/normal/ColorMap.py | 1 | 2882 |
from Tkinter import *
class ColorMap:
"""
A simple converter from a ColorRamp (a gradient of nColors) to
a ColorMap (a graph of data + visual way pts)
"""
def __init__(self,parent,ramp,width=None,height=None,data=None):
"""
just produces the canvas/image for
the ColorRamp
... | gpl-2.0 | -3,712,745,169,085,532,000 | 29.020833 | 97 | 0.529493 | false |
ryancoleman/tdt2014-part2 | scripts/pdbMostOccupied.py | 1 | 1325 | #!/usr/bin/env python
#ryan g coleman ryangc@mail.med.upenn.edu
#kim sharp, brian shoichet, upenn, ucsf own this, whatevers
#reads a pdb file, for each atom, pick the most occupied one.
#useful when the alternate positions and occupancies are meaningful.
#if tie, just pick a consistent set for each residue.
import ... | gpl-2.0 | 1,779,743,463,817,736,000 | 36.857143 | 80 | 0.715472 | false |
yelfathi/juniper-mpls-check | lsp_ping.py | 1 | 5582 | # -- coding: utf-8 --
__author__ = "yelfathi"
import argparse
import os
import re
import time
from jnpr.junos import Device
from multiprocessing import Process
class LSPping(Process):
def __init__(self, device, user, passwd, treetrace):
self.device = device
self.user = user
self.passwd ... | unlicense | 6,308,347,751,978,485,000 | 40.656716 | 147 | 0.479219 | false |
tombstone/models | official/nlp/transformer/misc.py | 1 | 10095 | # 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,296,988,829,716,205,000 | 37.826923 | 80 | 0.661317 | false |
dmateusp/PokemonGo-Bot | pokemongo_bot/inventory.py | 1 | 40711 | import json
import logging
import os
from collections import OrderedDict
from pokemongo_bot.base_dir import _base_dir
'''
Helper class for updating/retrieving Inventory data
Interesting info and formulas:
https://drive.google.com/file/d/0B0TeYGBPiuzaenhUNE5UWnRCVlU/view
https://www.reddit.com/r/pokemongodev/comments... | mit | -5,397,122,558,310,490,000 | 31.361685 | 144 | 0.60227 | false |
driesdesmet/django-cms | cms/tests/page.py | 1 | 26525 | # -*- coding: utf-8 -*-
from __future__ import with_statement
from cms.admin.forms import PageForm
from cms.api import create_page
from cms.models import Page, Title
from cms.models.placeholdermodel import Placeholder
from cms.models.pluginmodel import CMSPlugin
from cms.plugins.text.models import Text
from cms.sitemap... | bsd-3-clause | 1,533,523,507,837,852,000 | 45.210801 | 155 | 0.594722 | false |
ge0rgi/cinder | cinder/tests/unit/test_volume.py | 1 | 340029 | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# 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 ... | apache-2.0 | 3,094,016,415,097,713,700 | 45.256156 | 79 | 0.555997 | false |
shigin/radist | radist/helpers.py | 1 | 5176 | import os, sys
import socket
import pty
import pwd
import subprocess
import exceptions
__all__ = ['r_exec', 'r_popen2', 'r_popen3']
PATH = os.environ['PATH'].split(os.path.pathsep) + ['/usr/local/radist/bin/']
def find_in_path(file, search_path=PATH):
for path in search_path:
c_file = os.path.join(path, ... | bsd-2-clause | -946,887,246,539,889,200 | 32.830065 | 90 | 0.544049 | false |
anthonycodes/Python-Scripts | scp/0.3/scp.py | 1 | 1637 | # Steganography Cypher Program
# Made by AnthonyCodes
# Source Code: https://github.com/anthonycodes/Python-Scripts/tree/master/scp/
# Imports
import config as conf
import api as appapi
from sys import argv, exit
# Variables
unsecure = conf.unsecure
# Functions
def getstring():
try: arg = argv[1]
ex... | mit | -8,135,711,029,635,469,000 | 22.80303 | 84 | 0.659743 | false |
mhogg/pyvct | pyvct/pyvCT_plugin.py | 1 | 11088 | # -*- coding: utf-8 -*-
# Copyright (C) 2015 Michael Hogg
# This file is part of pyvCT - See LICENSE.txt for information on usage and redistribution
from abaqusGui import *
from abaqusConstants import ALL, CARTESIAN, SCALAR, INTEGRATION_POINT, CENTROID, ELEMENT_NODAL
from pyvCT_version import version as __version__
... | mit | -2,561,234,874,266,569,000 | 46.384615 | 149 | 0.604076 | false |
openmotics/gateway | src/gateway/api/serializers/ventilation.py | 1 | 4596 | # Copyright (C) 2020 OpenMotics BV
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribu... | agpl-3.0 | -2,355,610,144,709,679,600 | 45.424242 | 98 | 0.620975 | false |
AVGInnovationLabs/DoNotSnap | train.py | 1 | 4886 | import cv2
import sys
import pickle
import numpy as np
import matplotlib.pyplot as plt
from AffineInvariantFeatures import AffineInvariant
from TemplateMatcher import TemplateMatch, Templates
from PIL import Image
from itertools import izip_longest
from sklearn.cross_validation import train_test_split
from sklearn.g... | gpl-3.0 | 1,434,978,509,033,833,000 | 28.612121 | 157 | 0.642243 | false |
sassystacks/DASS | Drone_Flight/ned_Test_roll.py | 1 | 3898 | from dronekit import connect, VehicleMode, LocationGlobal, LocationGlobalRelative
from pymavlink import mavutil # Needed for command message definitions
import logging
import time
import math
logging.basicConfig(filename='Roll_log.log', format = '%(levelname)s:%(asctime)s: %(message)s', level=logging.INFO)
im... | mit | -6,314,726,558,605,131,000 | 30.483333 | 115 | 0.664187 | false |
chenyujie/hybrid-murano | murano/api/v1/actions.py | 1 | 3706 | # Copyright (c) 2014 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | apache-2.0 | -1,432,598,773,134,985,500 | 37.604167 | 79 | 0.641123 | false |
mitsei/dlkit | tests/commenting/test_objects.py | 1 | 27143 | """Unit tests of commenting objects."""
import pytest
from ..utilities.general import is_never_authz, is_no_authz, uses_cataloging, uses_filesystem_only
from dlkit.abstract_osid.commenting import objects as ABCObjects
from dlkit.abstract_osid.id.primitives import Id as ABC_Id
from dlkit.abstract_osid.locale.primiti... | mit | 5,642,923,345,693,426,000 | 42.920712 | 176 | 0.654312 | false |
rexyeah/jira-cli | jiracli/processor.py | 1 | 9984 | """
"""
from abc import ABCMeta, abstractmethod
import six
from jiracli.cli import colorfunc
from jiracli.errors import UsageError, UsageWarning
from jiracli.utils import get_text_from_editor, print_output
@six.add_metaclass(ABCMeta)
class Command(object):
def __init__(self, jira, args):
self.args = ar... | mit | -5,438,984,283,048,710,000 | 42.408696 | 152 | 0.538762 | false |
liw/daos | src/tests/ftest/datamover/dm_copy_procs.py | 1 | 3305 | #!/usr/bin/python
'''
(C) Copyright 2020-2021 Intel Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
'''
from data_mover_test_base import DataMoverTestBase
from os.path import join
class DmvrCopyProcs(DataMoverTestBase):
# pylint: disable=too-many-ancestors
"""Test class for POSIX DataMover mult... | apache-2.0 | -3,899,805,415,411,627,000 | 33.427083 | 74 | 0.559455 | false |
zzir/white | verificationcode.py | 1 | 2611 | from PIL import Image,ImageDraw, ImageFont, ImageFilter
import random
class VerifyCode():
def __init__(self):
self._letter_cases = 'abcdefghjkmnpqrstuvwxyzABCDEFGHJKMNOPRSTUVWXYZ3456789'
self._upper_cases = self._letter_cases.upper()
self._numbers = ''.join(map(str, range(3, 10)))
de... | mit | 5,305,927,372,534,884,000 | 36.3 | 84 | 0.499043 | false |
daanwierstra/pybrain | pybrain/rl/learners/blackboxoptimizers/evolution/nsga2.py | 1 | 7825 | from scipy import array
from pybrain.rl.learners.blackboxoptimizers.evolution.ga import GA
import collections
__author__ = 'Justin Bayer, Tom Schaul, {justin,tom}@idsia.ch'
# TODO: not very elegant, because of the conversions between tuples and arrays all the time...
class MultiObjectiveGA(GA):
""" Multi-objecti... | bsd-3-clause | 7,958,344,989,927,770,000 | 35.565421 | 105 | 0.569073 | false |
cualbondi/cualbondi.com.ar | settings.py | 1 | 11882 | # Django settings for cualbondi project.
import os
CUALBONDI_ENV = os.environ.get('CUALBONDI_ENV', 'development')
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ALLOWED_HOSTS = ['*',]
LOGIN_REDIRECT_URL = '/'
ABSOLUTE_URL_OVERRIDES = {
'auth.user': lambda u: "/usuarios/%s/" % u.username,
}
ADMINS = (
# ('Your Name'... | agpl-3.0 | 2,871,972,754,441,577,000 | 29.544987 | 126 | 0.624474 | false |
akretion/l10n-brazil | l10n_br_account_product/sped/nfe/document.py | 1 | 38700 | # -*- coding: utf-8 -*-
# Copyright (C) 2013 Renato Lima - Akretion
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from datetime import datetime
from unicodedata import normalize
from odoo.exceptions import Warning as UserError
from odoo.tools.translate import _
from odoo.addons.l10n_br_account.sp... | agpl-3.0 | -4,580,328,613,842,175,000 | 40.659483 | 79 | 0.567848 | false |
ging/keystone | keystone/auth/plugins/two_factor.py | 1 | 3545 | # Copyright (C) 2015 Universidad Politecnica de Madrid
#
# 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 la... | apache-2.0 | -6,326,872,365,805,216,000 | 36.723404 | 129 | 0.67701 | false |
hstau/covar-cryo | covariance/rotatefill.py | 1 | 1524 | '''function [out] = imrotateFill(inp, angle)
% function [out] = imrotateFill(inp)
% Rotates an 2D image couterclockwise by angle in degrees
% Output image has the same dimension as input.
% Undefined regions are filled in by repeating the original image
% Note: input images must be square
%
% Copyright (c) UWM, Peter ... | gpl-2.0 | 3,137,747,868,895,184,400 | 28.882353 | 79 | 0.602362 | false |
rudivs/TaxonLinker | taxonlinker.py | 1 | 9916 | #!/usr/bin/env python
from settings import *
import os.path, Tkinter, tkFont, tkFileDialog
import taxonutils
class TaxonLinker():
def __init__(self,root):
self.taxondict = DICTIONARY_FILE
self.nameslist = []
self.results = []
self.dictload = False
self.nmload = False
# options and ... | mit | 6,402,085,105,646,517,000 | 37.734375 | 80 | 0.61547 | false |
pku9104038/edx-platform | common/lib/xmodule/xmodule/tests/test_peer_grading.py | 1 | 13961 | import unittest
import json
import logging
from mock import Mock
from webob.multidict import MultiDict
from xblock.field_data import DictFieldData
from xblock.fields import ScopeIds
from xmodule.modulestore import Location
from xmodule.tests import get_test_system, get_test_descriptor_system
from xmodule.tests.test_u... | agpl-3.0 | -2,250,765,878,918,591,500 | 33.471605 | 183 | 0.627104 | false |
albertoriva/bioscripts | bisconv.py | 1 | 3205 | #!/usr/bin/env python
import sys
import pysam
import os.path
import Script
def usage():
sys.stderr.write("""bisconv.py command [args...] - Extract aligned reads from BAM file based on conversion strand.
This program examines the ZS tag of the reads in a BAM file produced by BSMAP to identify reads
coming from ... | gpl-3.0 | -6,909,917,541,572,282,000 | 31.373737 | 118 | 0.543526 | false |
Sentdex/pygta5 | models.py | 1 | 47729 | '''
Copyright 2015 Google Inc. 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 applicable law or agreed to in ... | gpl-3.0 | -1,280,508,234,998,424,800 | 62.301061 | 165 | 0.675459 | false |
xi/cplay-ng | cplay.py | 1 | 22873 | import curses
import functools
import json
import os
import random
import re
import selectors
import signal
import socket
import subprocess
import sys
import termios
import time
from contextlib import contextmanager
__version__ = 'cplay-ng 4.0.0'
AUDIO_EXTENSIONS = [
'mp3', 'ogg', 'oga', 'opus', 'flac', 'm4a', 'm... | gpl-2.0 | 8,120,992,555,932,420,000 | 27.065031 | 79 | 0.505531 | false |
JasonSanchez/w261 | week2/NaiveBayesL.py | 1 | 1635 |
import sys
import re
from mrjob.job import MRJob
from mrjob.step import MRStep
from mrjob.protocol import TextProtocol, TextValueProtocol
# Prevents broken pipe errors from using ... | head
from signal import signal, SIGPIPE, SIG_DFL
signal(SIGPIPE,SIG_DFL)
def sum_hs(counts):
h_total, s_total = 0, 0
for h,... | mit | -3,019,141,871,243,702,000 | 27.701754 | 78 | 0.519266 | false |
ergodicbreak/evennia | evennia/scripts/scripts.py | 1 | 18627 | """
This module defines Scripts, out-of-character entities that can store
data both on themselves and on other objects while also having the
ability to run timers.
"""
from twisted.internet.defer import Deferred, maybeDeferred
from twisted.internet.task import LoopingCall
from django.core.exceptions import ObjectDoes... | bsd-3-clause | -13,136,911,888,314,768 | 30.786689 | 102 | 0.558974 | false |
andyakins/GCPOC | cloud/container_vm.py | 1 | 2141 | """Creates a Container VM with the provided Container manifest."""
from container_helper import GenerateManifest
COMPUTE_URL_BASE = 'https://www.googleapis.com/compute/v1/'
def GlobalComputeUrl(project, collection, name):
return ''.join([COMPUTE_URL_BASE, 'projects/', project,
'/global/', collect... | mit | -6,608,233,309,150,020,000 | 32.453125 | 68 | 0.466137 | false |
axiom-data-science/django-celery | djcelery/schedulers.py | 1 | 9679 | from __future__ import absolute_import
import logging
from multiprocessing.util import Finalize
from anyjson import loads, dumps
from celery import current_app
from celery import schedules
from celery.beat import Scheduler, ScheduleEntry
from celery.utils.encoding import safe_str, safe_repr
from celery.utils.log imp... | bsd-3-clause | 5,412,054,815,545,483,000 | 34.715867 | 77 | 0.579089 | false |
caplin/qa-browsers | nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py | 1 | 7632 | # Copyright (c) 2013 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Utility functions shared amongst the Windows generators."""
import copy
import os
_TARGET_TYPE_EXT = {
'executable': '.exe',
'shared_library'... | unlicense | 3,496,558,874,973,164,500 | 34.009434 | 80 | 0.647799 | false |
alexdzul/propiedades | resty/apps/properties/models.py | 1 | 1066 | import os
import uuid
from django.utils import timezone
from django.db import models
def image_path_post(self, filename):
today = timezone.now()
path = "{0}/{1}/{2}/".format(today.year, today.month, today.day)
ext = filename.split('.')[-1]
my_filename = "{0}.{1}".format(str(uuid.uuid1()).replace('-', ... | mit | 7,784,716,155,102,868,000 | 32.3125 | 79 | 0.667917 | false |
lqp276/repo_lqp | repopy/src/program/IpReqServer.py | 1 | 1468 | '''
Created on Sep 27, 2018
@author: lqp
'''
import os
from os import environ
from flask.app import Flask
from util.TrackUtil import current_milli_time
import json
from flask.globals import request
from util.logger import mainLogger
from util import TrackUtil
from flask import logging
rootDir = '../..'
if 'rootDir' ... | gpl-2.0 | 3,045,007,534,306,035,000 | 21.953125 | 90 | 0.626703 | false |
brkt/brkt-cli | brkt_cli/aws/test_wrap_guest_image.py | 1 | 9220 | # Copyright 2017 Bracket Computing, Inc. 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.
# A copy of the License is located at
#
# https://github.com/brkt/brkt-cli/blob/master/LICENSE
#
# or in the "license" file... | apache-2.0 | 6,857,725,795,027,198,000 | 34.057034 | 78 | 0.597289 | false |
jhuapl-boss/intern | examples/dvid/general_test.py | 1 | 3757 | import intern
from intern.remote.dvid import DVIDRemote
from intern.resource.dvid.resource import DataInstanceResource
from intern.resource.dvid.resource import RepositoryResource
import numpy as np
from PIL import Image
import matplotlib.pyplot as plt
########### NOTE ###########
# This test requires an accessible DV... | apache-2.0 | -4,435,976,562,267,243,000 | 30.838983 | 85 | 0.71094 | false |
legalosLOTR/mdb | MDB/gui.py | 1 | 12480 | #!/usr/bin/python
import sys
import wx
import wx.lib.agw.ultimatelistctrl as ULC
from wx.lib.mixins.listctrl import ColumnSorterMixin
import sqlite3
from DBbuilder import create_database, is_in_db, DBbuilderThread, get_from_db
import os
import wx_signal
import wx.html
from html_window import ClickableHtmlWindow
from d... | isc | 8,985,269,112,158,127,000 | 29 | 81 | 0.554888 | false |
Diaoul/pyjulius | pyjulius/__init__.py | 1 | 1118 | # -*- coding: utf-8 -*-
# Copyright 2011-2012 Antoine Bertin <diaoulael@gmail.com>
#
# This file is part of pyjulius.
#
# pyjulius 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 3 of the... | lgpl-3.0 | 2,910,414,925,906,937,000 | 35.064516 | 77 | 0.733453 | false |
kfcpaladin/sze-the-game | game/models/achievements/AchievementManager.py | 1 | 1635 | from .AchievementListener import AchievementListener
from models.popups import Popup
class AchievementManager(object):
def __init__(self, popups):
self._achievements = {}
self._listeners = []
self._popups = popups
def __iter__(self):
for achievement in self._achievements.value... | mit | -3,648,733,870,216,244,700 | 31.078431 | 71 | 0.640367 | false |
dalejung/naginpy | naginpy/special_eval/tests/test_manifest.py | 1 | 15685 | import ast
from unittest import TestCase
from textwrap import dedent
import pandas as pd
import numpy as np
from numpy.testing import assert_almost_equal
import nose.tools as nt
from asttools import (
ast_equal
)
from ..manifest import (
Expression,
Manifest,
_manifest
)
from ..exec_context import (... | mit | -1,019,565,708,311,982,000 | 28.650284 | 82 | 0.569142 | false |
hazzl/chirpy | sqlistmodel.py | 1 | 2229 | from PyQt5.QtCore import QAbstractListModel, Qt, QModelIndex
import sqlite3
class sqlistmodel(QAbstractListModel):
def __init__(self, conn):
super().__init__()
self._conn = conn
self._data = [(0, '')]
self._rolesindex = {
Qt.DisplayRole: 1,
Qt.UserRole: 0}
def printData(self):
print(self._data)
def... | gpl-3.0 | 5,584,031,656,318,910,000 | 27.576923 | 71 | 0.650965 | false |
linuxipho/mycroft-core | test/unittests/util/test_parse_sv.py | 1 | 5775 | # -*- coding: utf-8 -*-
#
# Copyright 2017 Mycroft AI Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | apache-2.0 | 6,507,819,105,035,264,000 | 47.550847 | 79 | 0.518939 | false |
bc-python-tools/orpyste | orpyste/parse/walk.py | 1 | 23403 | #! /usr/bin/env python3
"""
prototype::
date = 2017-07-31
This module contains a class ``WalkInAST`` to be subclassed so as to walk in
the intermediate AST view made by the class ``parse.ast.AST``, and also to act
regarding the context or the data met during the walk.
info::
The class ``WalkInAST`` do some... | gpl-3.0 | 3,629,328,045,497,685,000 | 27.888889 | 80 | 0.486709 | false |
OpenTSDB/tcollector | collectors/etc/config.py | 1 | 3086 | #!/usr/bin/env python
# This file is part of tcollector.
# Copyright (C) 2010 The tcollector Authors.
#
# This program 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 3 of the License, o... | lgpl-3.0 | -4,925,809,685,854,110,000 | 37.575 | 93 | 0.678548 | false |
wkschwartz/django | tests/schema/tests.py | 1 | 172263 | import datetime
import itertools
import unittest
from copy import copy
from unittest import mock
from django.core.exceptions import FieldError
from django.core.management.color import no_style
from django.db import (
DatabaseError, DataError, IntegrityError, OperationalError, connection,
)
from django.db.models im... | bsd-3-clause | -4,622,985,502,618,195,000 | 43.743636 | 115 | 0.625584 | false |
coldeasy/python-driver | example_mapper.py | 1 | 4657 | #!/usr/bin/env python
# Copyright 2013-2017 DataStax, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | apache-2.0 | -6,838,887,150,063,790,000 | 36.861789 | 102 | 0.695512 | false |
OpenTrons/opentrons_sdk | robot-server/robot_server/service/session/session_types/check_session.py | 1 | 3703 | from opentrons.calibration.check.session import CheckCalibrationSession
from opentrons.calibration.check import models as calibration_models
from opentrons.calibration.session import CalibrationException
from robot_server.service.session import models
from robot_server.service.session.command_execution import \
Co... | apache-2.0 | 8,232,597,657,056,475,000 | 36.03 | 94 | 0.641102 | false |
qvazzler/Flexget | flexget/plugins/cli/t411.py | 1 | 4526 | from __future__ import unicode_literals, division, absolute_import
from builtins import * # pylint: disable=unused-import, redefined-builtin
from flexget import options, plugin
from flexget.event import event
from flexget.logger import console
from flexget.manager import Session
try:
from flexget.plugins.api_t41... | mit | -639,236,409,466,410,600 | 40.522936 | 115 | 0.648034 | false |
naylor-b/aserver | analysis_server/cfg_wrapper.py | 1 | 6200 |
import os
import sys
import time
import logging
from inspect import getmembers, ismethod, isfunction
from itertools import chain
from fnmatch import fnmatchcase
from six import iteritems
from openmdao.core.problem import Problem
import openmdao.util.log
from analysis_server.varwrapper import _find_var_wrapper
from ... | apache-2.0 | -4,861,092,136,883,660,000 | 30.313131 | 111 | 0.564032 | false |
wangcan04/chatbot | NeuralChat/util/vocabutils.py | 1 | 3245 | import pickle
from tensorflow.python.platform import gfile
import util.tokenizer
import re
import os
import special_vocab as config
_PAD = config._PAD
_GO = config._GO
_EOS = config._EOS
_UNK = config._UNK
_START_VOCAB = config._START_VOCAB
PAD_ID = config.PAD_ID
EOS_ID = config.EOS_ID
GO_ID = config.GO_ID
UNK_ID = c... | apache-2.0 | 6,092,247,041,511,485,000 | 30.504854 | 92 | 0.570724 | false |
erscott/Wellderly | SWGR_v1.0/masterVar_chr_split.py | 1 | 3344 | '''
Splits Complete Genomics masterVar files into chromosome specific masterVar
files when given an input file path and an output directory path.
e.g. >python masterVar_chr_split.py -i /path/to/masterVar.tsv.bz2 -o /path/to/output_dir/
Python package dependencies:
pandas, numpy
python 2.7 for argparse module
'''
... | bsd-3-clause | -6,452,376,542,323,222,000 | 41.329114 | 164 | 0.647129 | false |
akash-dev-github/Transactions | transactions/transactions/settings.py | 1 | 3101 | import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'mkxdrp%^@nc##a#b(rkzk)agha065$ng5g%=1v(b-d2n36ptbl'
# SECURITY WARNING: don't run w... | mit | 9,090,108,147,566,290,000 | 27.712963 | 95 | 0.659787 | false |
larssono/synapsePythonClient | synapseclient/lock.py | 1 | 3587 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from builtins import str
import argparse
import errno
import inspect
import os
import shutil
import sys
import time
from datetime import timedelta
from synapseclient.exce... | apache-2.0 | -8,286,079,147,980,711,000 | 33.490385 | 142 | 0.601896 | false |
lepture/burglar | test_burglar.py | 1 | 1421 | # coding: utf-8
import os
import shutil
import tempfile
from burglar import daily
from burglar import zhuanlan
from burglar import weixin
from burglar import Burglar
def test_daily():
rv = daily.parse(False)
count = len(rv['entries'])
rv = daily.parse()
assert count == len(rv['entries'])
def test_... | bsd-3-clause | -5,750,386,123,298,038,000 | 23.086207 | 74 | 0.614889 | false |
HarrySonghurst/Playing-Falldown-with-a-DQN | train.py | 1 | 4946 | from game import falldown
import Q_network
from collections import deque
import random
import numpy as np
from keras.optimizers import Adam
import os.path
import pickle
#from PIL import Image as im
# initialize the neural network
if os.path.isfile("model.h5"):
model = Q_network.construct_model()
model.load_wei... | mit | -5,147,776,863,562,646,000 | 35.910448 | 98 | 0.599272 | false |
zsjohny/jumpserver | apps/ops/urls/view_urls.py | 1 | 1156 | # ~*~ coding: utf-8 ~*~
from __future__ import unicode_literals
from django.urls import path
from .. import views
__all__ = ["urlpatterns"]
app_name = "ops"
urlpatterns = [
# Resource Task url
path('task/', views.TaskListView.as_view(), name='task-list'),
path('task/<uuid:pk>/', views.TaskDetailView.as_... | gpl-2.0 | 4,261,556,519,651,121,000 | 47.166667 | 116 | 0.692907 | false |
eort/OpenSesame | libqtopensesame/items/qtstructure_item.py | 3 | 1915 | #-*- coding:utf-8 -*-
"""
This file is part of OpenSesame.
OpenSesame 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.
OpenSesame is distri... | gpl-3.0 | -8,796,934,045,994,414,000 | 21.267442 | 70 | 0.700261 | false |
bdacode/hoster | hoster/dfiles_eu.py | 1 | 5727 | # -*- coding: utf-8 -*-
"""Copyright (C) 2013 COLDWELL AG
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 | -2,971,389,344,636,097,500 | 37.436242 | 146 | 0.645189 | false |
familug/FAMILUG | Python/trello.py | 1 | 1183 | #!/usr/bin/env python
# Author: Hung Nguyen Viet <hvn@familug.org>
# Code for Trello.com job at developer position
# Fri Jul 25 17:50:58 ICT 2014
import logging
logging.basicConfig(level=logging.INFO)
log = logging.getLogger(__name__)
LETTERS = 'acdegilmnoprstuw'
def trello(s):
h = 7
letters = LETTERS
l... | bsd-2-clause | -7,303,649,303,666,240,000 | 24.170213 | 70 | 0.610313 | false |
pelson/conda-build-all | versioneer.py | 1 | 73152 |
# Version: 0.15+dev
"""The Versioneer - like a rocketeer, but for versions.
The Versioneer
==============
* like a rocketeer, but for versions!
* https://github.com/warner/python-versioneer
* Brian Warner
* License: Public Domain
* Compatible With: python2.6, 2.7, 3.2, 3.3, 3.4, and pypy
* [![Latest Version]
(https... | bsd-3-clause | 4,681,704,054,308,618,000 | 35.833837 | 79 | 0.615021 | false |
kronenpj/python-for-android | pythonforandroid/recipes/libtorrent/__init__.py | 1 | 5964 | from pythonforandroid.toolchain import Recipe, shprint, shutil, current_directory
from multiprocessing import cpu_count
from os.path import join, basename
from os import listdir, walk
import sh
# This recipe builds libtorrent with Python bindings
# It depends on Boost.Build and the source of several Boost libraries pr... | mit | 3,812,537,484,466,612,000 | 42.217391 | 92 | 0.602616 | false |
oculusstorystudio/kraken | Python/kraken/core/objects/components/component_input.py | 1 | 1044 | """Kraken - objects.components.component_input module.
Classes:
ComponentInput -- ComponentInput representation.
"""
from kraken.core.objects.object_3d import Object3D
class ComponentInput(Object3D):
"""ComponentInput object."""
def __init__(self, name, parent=None, metaData=None):
super(Component... | bsd-3-clause | 1,644,538,208,390,426,600 | 23.880952 | 84 | 0.659004 | false |
kalyons11/kevin | kevin/tests/leet/test_add_two_numbers.py | 1 | 1743 | """
LeetCode two sum test script.
"""
from unittest import TestCase
from kevin.leet import add_two_numbers
class TestAddTwoNumbers(TestCase):
def check_add_two_numbers_numerical(self, v1, v2, expected):
l1 = self.convert_number_to_linked_list(v1)
l2 = self.convert_number_to_linked_list(v2)
... | mit | -1,186,027,172,191,402,200 | 29.051724 | 73 | 0.60241 | false |
olfa-lab/DmdLib | dmdlib/randpatterns/old/multisparse.py | 1 | 2394 | import numpy as np
from dmdlib.randpatterns.utils import run_presentations, parser
from dmdlib.randpatterns.old.sparsenoise import sparsenoise_function_generator
import os
if os.name == 'nt':
appdataroot = os.environ['APPDATA']
appdatapath = os.path.join(appdataroot, 'dmdlib')
def main():
parser.descripti... | mit | 6,424,054,645,911,740,000 | 46.88 | 129 | 0.649541 | false |
prazumovsky/weekly-update | weekly_update/main.py | 1 | 8271 | # 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
# distributed under the ... | apache-2.0 | 2,714,493,171,467,044,400 | 41.634021 | 79 | 0.527143 | false |
AsherYang/ThreeLine | server/ffstore/db/DbAttribute.py | 1 | 1457 | #! /usr/bin/python
# -*- coding:utf-8 -*-
"""
Author: AsherYang
Email: ouyangfan1991@gmail.com
Date: 2018/5/6
Desc: 属性类,包括分类属性,商品详情属性
_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
cate_id VARCHAR(50),
goods_id VARCHAR(50),
attr_market_year VARCHAR(20),
attr_size VARCHAR(5),
attr_color VARCHAR(10),
foreign key (goo... | apache-2.0 | 1,513,681,425,752,559,600 | 20.560606 | 93 | 0.619817 | false |
schroeder-/pyssps | src/byte_compiler.py | 1 | 7692 | from err import GenError
ARG_BIT_VAL = 1
ARG_CALL = 2
ARG_MEM_BIT = 3
ARG_MEM_VAL = 4
ARG_NONE = 5
ARG_TAG = 6
ARG_VALUE = 7
ARG_STRING = 8
OP_BIT = 0
OP_MEM = 1
OP_MEM_ADDR = 2
OP_BOOL = 3
OP_STRING = 4
OP_INT = 5
OP_NONE = 6
OP_BIT_ADDR = 7
#@TODO Check vm memory
class Compiler(GenError):
#Erzeugt aus dennen vom Pa... | mit | 2,221,001,600,442,652,400 | 37.19403 | 83 | 0.454735 | false |
ninja-ide/ninja-ide | ninja_ide/gui/explorer/tabs/web_inspector.py | 1 | 2247 | # -*- coding: utf-8 -*-
#
# This file is part of NINJA-IDE (http://ninja-ide.org).
#
# NINJA-IDE 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
# any later version.
#
# NIN... | gpl-3.0 | 3,925,269,540,946,213,400 | 34.666667 | 79 | 0.717401 | false |
liangwang/m5 | configs/example/fs.py | 1 | 5997 | # Copyright (c) 2006-2007 The Regents of The University of Michigan
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met: redistributions of source code must retain the above copyright
# notice, this ... | bsd-3-clause | 12,000,484,478,062,436 | 35.345455 | 81 | 0.710022 | false |
kkusch/HoneyPy | loggers/twitter/honeypy_twitter.py | 1 | 1837 | # HoneyPy Copyright (C) 2013-2017 foospidy
# https://github.com/foospidy/HoneyPy
# See LICENSE for details
# HoneyPy twitter module
from twitter import Twitter
from twitter.oauth import OAuth
from twisted.python import log
def process(config, section, parts, time_parts):
# TCP
# parts[0]: date
... | gpl-2.0 | 5,637,124,747,443,526,000 | 30.135593 | 172 | 0.581927 | false |
schuylermartin45/mood_switch | musicservice.py | 1 | 1849 | #/usr/bin/python
from __future__ import print_function
'''
musicservice.py
Parent class for all music services. "Enforces" a strict interface.
These classes are used by the Playback class.
@author: Schuyler Martin <schuylermartin45@gmail.com>
'''
__author__ = "Schuyler Martin"
class MusicService:
'''
Music Se... | mit | -3,886,586,506,759,156,700 | 27.446154 | 76 | 0.614386 | false |
khertan/KhtBMA | khtbma/bna.py | 1 | 5890 | """
python-bna
Battle.net Authenticator routines in Python.
Specification can be found here:
<http://bnetauth.freeportal.us/specification.html>
Python implementation by Jerome Leclanche <jerome.leclanche@gmail.com>
"""
__version__ = "3.1"
import hmac
from binascii import hexlify
from hashlib import sha1
try:
from... | gpl-3.0 | -400,950,010,511,462,400 | 23.852321 | 319 | 0.685229 | false |
qusp/orange3 | Orange/widgets/utils/scaling.py | 1 | 25636 | from datetime import time
import sys
import random
import numpy as np
import Orange
from Orange.data import Table, ContinuousVariable, DiscreteVariable
from Orange.statistics.basic_stats import DomainBasicStats
from Orange.widgets.settings import Setting
from Orange.widgets.utils.datacaching import getCached, setCache... | bsd-2-clause | 6,058,997,284,561,773,000 | 45.952381 | 157 | 0.56643 | false |
rfdrake/netbox | netbox/extras/management/commands/run_inventory.py | 1 | 5738 | from getpass import getpass
from ncclient.transport.errors import AuthenticationError
from paramiko import AuthenticationException
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from django.db import transaction
from dcim.models import Device, Module, Site
class C... | apache-2.0 | -5,462,911,800,624,114,000 | 44.904 | 120 | 0.578947 | false |
RodrigoDev/Django-todo | todo/settings.py | 1 | 2707 | """
Django settings for todo project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
impor... | mit | -6,060,377,618,933,701,000 | 23.609091 | 73 | 0.714813 | false |
rbarlow/pulp_docker | plugins/pulp_docker/plugins/importers/sync.py | 1 | 16753 | """
This module contains the primary sync entry point for Docker v2 registries.
"""
from gettext import gettext as _
import errno
import httplib
import itertools
import logging
import os
from pulp.common.plugins import importer_constants
from pulp.plugins.util import nectar_config, publish_step
from pulp.server.contro... | gpl-2.0 | 4,617,793,119,379,870,000 | 45.407202 | 100 | 0.639348 | false |
ganeti/ganeti-doc | roles/ganeti-doc/files/srv/ganeti-vcs/hooks/ciabot.py | 1 | 7112 | #!/usr/bin/env python
# Copyright (c) 2010 Eric S. Raymond <esr@thyrsus.com>
# Distributed under BSD terms.
#
# Google changes (iustin):
# - taken from upstream git repo, contrib/ciabot/ciabot.py
# - disabled cgit.cgi and use gitweb as we use it on git.ganeti.org
# (url tweaked)
# - to not use tinyurl
# - remove the ... | gpl-2.0 | -338,796,952,664,273,540 | 29.393162 | 99 | 0.646513 | false |
HackerEcology/SuggestU | suggestu/scrapers/views.py | 1 | 1827 | from django.template import RequestContext
from django.core.context_processors import csrf
from django.shortcuts import render_to_response
from django.http import Http404, HttpResponse, HttpResponseRedirect
import json
from urllib import urlopen
from subprocess import call
def test(request):
c = {}
return rend... | gpl-3.0 | -5,630,642,902,252,393,000 | 32.218182 | 95 | 0.645868 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.