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 |
|---|---|---|---|---|---|---|---|---|---|---|
saeedghsh/SSRR13 | Andreas/slam6d/3rdparty/lastools/ArcGIS_toolbox/scripts/lasground.py | 2 | 6337 | #
# lasground.py
#
# (c) 2012, Martin Isenburg
# LASSO - rapid tools to catch reality
#
# uses lasground.exe to extracts the bare-earth by classifying LIDAR
# points into ground (class = 2) and non-ground points (class = 1).
#
# The LiDAR input can be in LAS/LAZ/BIN/TXT/SHP/... format.
# The LiDAR output can ... | bsd-3-clause | -3,070,467,438,095,268,000 | 28.17619 | 130 | 0.614644 | false |
mgracik/alda | alda/test/test_alda.py | 1 | 4673 | # Copyright (C) 2012 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in... | gpl-2.0 | -4,398,122,757,323,748,000 | 34.401515 | 94 | 0.607105 | false |
jhanley634/testing-tools | problem/pixel/volcanic_voxels.py | 1 | 6745 | #! /usr/bin/env python
# Copyright 2020 John Hanley.
#
# 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, me... | mit | 140,680,134,709,253,020 | 31.897561 | 76 | 0.575326 | false |
gjhiggins/sprox | tests/test_fillerbase.py | 1 | 3808 | from sprox.fillerbase import FillerBase, TableFiller, EditFormFiller, AddFormFiller, FormFiller, ConfigBaseError
from sprox.test.base import setup_database, sorted_user_columns, SproxTest, User, Example
from nose.tools import raises, eq_
session = None
engine = None
connection = None
trans = None
def setup():
glo... | mit | 5,949,031,857,149,141,000 | 28.984252 | 112 | 0.59979 | false |
AlexHill/django | django/db/models/fields/related.py | 1 | 77816 | from operator import attrgetter
from django.db import connection, connections, router, transaction
from django.db.backends import utils
from django.db.models import signals, Q
from django.db.models.fields import (AutoField, Field, IntegerField,
PositiveIntegerField, PositiveSmallIntegerField, FieldDoesNotExist)
fr... | bsd-3-clause | -1,930,050,891,207,236,900 | 44.373761 | 228 | 0.599954 | false |
jomivega/ASE4156 | tests/test_stocks.py | 1 | 3024 | """This module is for testing stocks"""
from unittest import mock
from django.test import TestCase
from stocks.models import Stock, DailyStockQuote
import pandas as pd
from yahoo_historical import Fetcher
from authentication.plaid_middleware import PlaidMiddleware
import pytest
class StocksViewTests(TestCase):
""... | apache-2.0 | -3,050,215,387,650,206,700 | 31.170213 | 83 | 0.59623 | false |
erigones/esdc-ce | gui/migrations/0004_alerting_fields_initialization.py | 1 | 1297 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models, transaction
# noinspection PyUnusedLocal
def initialize_alerting_fields(apps, schema_editor):
former_user_profile = apps.get_model('gui', 'UserProfile')
if former_user_profile.objects.count() > 10000:
... | apache-2.0 | 4,412,531,453,637,234,700 | 39.53125 | 118 | 0.643793 | false |
PaulWay/insights-core | insights/parsers/date.py | 1 | 3048 | """
date - Command
==============
This module provides processing for the output of the ``date`` command.
The specs handled by this command inlude::
"date" : CommandSpec("/bin/date"),
"date_utc" : CommandSpec("/bin/date --utc"),
Class ``Date`` parses the output of the ``... | apache-2.0 | -1,107,753,871,417,200,300 | 27.485981 | 77 | 0.603675 | false |
ihciah/xk-database | views/admin.py | 1 | 5958 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from flask import Blueprint
from flask import g, request, flash
from flask import render_template, redirect
from models import Student,Account,Course,Xk,Teacher
from forms import SearchStudentFrom,adminProfileForm,UserProfileForm,SearchForm,CourseEditForm,UseraddForm
from ... | gpl-2.0 | -1,314,900,180,352,519,200 | 34.810976 | 123 | 0.65344 | false |
xiang12835/python_web | py2_web2py/web2py/gluon/packages/dal/pydal/representers/postgre.py | 3 | 1368 | from ..adapters.postgres import Postgre, PostgreNew
from .base import SQLRepresenter, JSONRepresenter
from . import representers, before_type, for_type
from ..helpers.serializers import serializers
@representers.register_for(Postgre)
class PostgreRepresenter(SQLRepresenter, JSONRepresenter):
def _make_geoextra(se... | apache-2.0 | 1,911,755,367,537,962,500 | 32.365854 | 63 | 0.658626 | false |
ccmbioinfo/mugqic_pipelines | bfx/trimmomatic.py | 1 | 3305 | #!/usr/bin/env python
################################################################################
# Copyright (C) 2014, 2015 GenAP, McGill University and Genome Quebec Innovation Centre
#
# This file is part of MUGQIC Pipelines.
#
# MUGQIC Pipelines is free software: you can redistribute it and/or modify
# it und... | lgpl-3.0 | 8,791,786,266,534,984,000 | 36.134831 | 107 | 0.634493 | false |
hstau/manifold-cryo | fit_1D_open_manifold_3D.py | 1 | 5015 | import numpy as np
import get_fit_1D_open_manifold_3D_param
import solve_d_R_d_tau_p_3D
import a
from scipy.io import loadmat
import matplotlib.pyplot as plt
#import matplotlib.pyplot as plt
'''
function [a,b,tau] = fit_1D_open_manifold_3D(psi)
%
% fit_1D_open_manifold_3D
%
% fit the eigenvectors for ... | gpl-2.0 | 2,362,552,218,448,211,500 | 30.147436 | 99 | 0.465803 | false |
tchellomello/home-assistant | homeassistant/components/dsmr/__init__.py | 1 | 1324 | """The dsmr component."""
import asyncio
from asyncio import CancelledError
import logging
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from .const import DATA_TASK, DOMAIN, PLATFORMS
_LOGGER = logging.getLogger(__name__)
async def async_setup(hass, config: dict... | apache-2.0 | 6,681,127,316,997,422,000 | 23.518519 | 80 | 0.649547 | false |
tjmonsi/cmsc129-2016-repo | submissions/exercise4/pitargue/interpreter/syntax_analyzer.py | 1 | 33315 | from . import evaluate
class Parser():
def __init__(self, variables):
self.lexemes = []
self.lookahead = None
self.tokens = []
self.parse_tree = []
self.variables = variables
self.types = {
'TRUE_KEYWORD': 'boolean',
'FALSE_KEYWORD': 'boolean... | mit | -5,841,835,166,006,237,000 | 42.777924 | 137 | 0.536125 | false |
all-of-us/raw-data-repository | rdr_service/lib_fhir/fhirclient_4_0_0/models/activitydefinition_tests.py | 1 | 30643 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.0-a53ec6ee1b on 2019-05-07.
# 2019, SMART Health IT.
import os
import io
import unittest
import json
from . import activitydefinition
from .fhirdate import FHIRDate
class ActivityDefinitionTests(unittest.TestCase):
def instantiate_from(... | bsd-3-clause | 5,508,062,426,552,343,000 | 74.841584 | 166 | 0.715992 | false |
icyflame/batman | tests/flow_tests.py | 1 | 7876 | # -*- coding: utf-8 -*-
"""Tests for the flow module."""
#
# (C) Pywikibot team, 2015
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals
__version__ = '$Id$'
from pywikibot.exceptions import NoPage
from pywikibot.flow import Board, Topic, Post
from pywikibo... | mit | 6,127,447,604,697,114,000 | 34.318386 | 82 | 0.599543 | false |
jimmykiselak/lbrycrd | qa/rpc-tests/maxblocksinflight.py | 1 | 3782 | #!/usr/bin/env python2
# Copyright (c) 2015 The Bitcoin Core developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
from test_framework.mininode import *
from test_framework.test_framework import BitcoinTestFramework
fro... | mit | 2,546,787,251,703,153,000 | 38.395833 | 110 | 0.618456 | false |
zestrada/nova-cs498cc | nova/tests/network/test_manager.py | 1 | 111961 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 Rackspace
# Copyright (c) 2011 X.commerce, a business unit of eBay 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 t... | apache-2.0 | -7,081,629,825,911,022,000 | 42.717688 | 79 | 0.536374 | false |
botify-labs/mangrove | mangrove/pool.py | 1 | 11546 | from abc import ABCMeta
from multiprocessing import cpu_count
from concurrent.futures import ThreadPoolExecutor
from boto import ec2
from mangrove.declarative import ServiceDeclaration, ServicePoolDeclaration
from mangrove.mappings import ConnectionsMapping
from mangrove.utils import get_boto_module
from mangrove.ex... | mit | -903,598,347,621,880,300 | 38.272109 | 88 | 0.597696 | false |
tehamalab/dgs | goals/models.py | 1 | 39889 | import json
from django.db import models
from django.db.models.signals import m2m_changed
from django.dispatch import receiver
from django.core.exceptions import ValidationError
from django.contrib.postgres.fields import HStoreField, ArrayField
from django.utils.translation import ugettext_lazy as _
from django.templat... | unlicense | -7,689,396,014,878,925,000 | 35.56187 | 113 | 0.561558 | false |
atheendra/access_keys | keystone/tests/test_v3_federation.py | 1 | 58835 | # 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 t... | apache-2.0 | -6,737,992,034,688,989,000 | 37.154994 | 79 | 0.516427 | false |
jstammers/EDMSuite | EDMScripts/EDMLoop.py | 1 | 21605 | # Import a whole load of stuff
from System.IO import *
from System.Drawing import *
from System.Runtime.Remoting import *
from System.Threading import *
from System.Windows.Forms import *
from System.Xml.Serialization import *
from System import *
from Analysis.EDM import *
from DAQ.Environment import *
fro... | mit | -8,754,331,894,581,574,000 | 39.628131 | 132 | 0.716408 | false |
Fokko/incubator-airflow | airflow/operators/cassandra_to_gcs.py | 1 | 14378 | # -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
#... | apache-2.0 | -4,027,919,065,744,805,000 | 38.284153 | 104 | 0.627973 | false |
nshearer/etl | src/etl/EtlJoinProcessor.py | 1 | 5333 | '''
Created on Dec 28, 2012
@author: nshearer
'''
from abc import ABCMeta, abstractmethod
from EtlProcessor import EtlProcessor
class EtlJoinProcessor(EtlProcessor):
'''Join one set of records to another'''
def __init__(self):
super(EtlJoinProcessor, self).__init__()
se... | gpl-2.0 | -5,025,042,689,156,766,000 | 36.381295 | 79 | 0.475342 | false |
mattduan/proof | util/UniqueList.py | 1 | 4847 | """
List with unique entries. UniqueList does not allow null nor duplicates.
"""
__version__= '$Revision: 11 $'[11:-2]
__author__ = "Duan Guoqiang (mattgduan@gmail.com)"
class UniqueList(list):
def __init__(self, initlist=[]):
# call super class
list.__init__(self)
# add initlist
... | bsd-3-clause | -1,884,556,780,845,086,200 | 25.2 | 97 | 0.482773 | false |
codelv/enaml-native | src/enamlnative/core/eventloop/interface.py | 1 | 2341 | #!/usr/bin/env python
#
# Copyright 2011 Facebook
#
# 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 a... | mit | 415,035,762,076,911,400 | 31.527778 | 79 | 0.691158 | false |
flopezag/fiware-backlog | kernel/DataBoard.py | 1 | 5593 | from kconfig import settings
from kconfig import enablersBook, helpdeskCompBook
from kconfig import trackersBook, workGroupBook
from kernel.DataFactory import DataFactory
__author__ = "Manuel Escriche <mev@tid.es>"
class Data:
@staticmethod
def getUrgentDeskUpcoming():
trackers = ','.join(trackersBo... | apache-2.0 | 5,845,164,835,955,047,000 | 39.824818 | 136 | 0.714107 | false |
george-hopkins/frn-py | frn/common/protocol.py | 1 | 2718 | from twisted.protocols import basic
from frn.utils import parse_dict
class InvalidServerResponse(Exception):
pass
class InvalidClientRequest(Exception):
pass
class LineReceiver(basic.LineReceiver):
def decodedLineReceived(self, line):
"""Override this for when each line is received."""
... | lgpl-3.0 | -7,237,886,593,561,025,000 | 28.868132 | 73 | 0.598234 | false |
eoconsulting/django-zoook | django_zoook/tag/views.py | 1 | 4455 | # -*- coding: utf-8 -*-
############################################################################################
#
# Zoook. OpenERP e-sale, e-commerce Open Source Management Solution
# Copyright (C) 2011 Zikzakmedia S.L. (<http://www.zikzakmedia.com>). All Rights Reserved
#
# Module Created: 03/05/2012
# ... | agpl-3.0 | -6,514,768,064,720,154,000 | 42.213592 | 136 | 0.602112 | false |
MathieuDuponchelle/gobject-introspection | giscanner/girparser.py | 1 | 26691 | # -*- Mode: Python -*-
# GObject-Introspection - a framework for introspecting GObject libraries
# Copyright (C) 2008 Johan Dahlin
#
# 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; eithe... | gpl-2.0 | -4,067,458,910,382,923,000 | 42.259319 | 94 | 0.558878 | false |
philanthropy-u/edx-platform | lms/djangoapps/courseware/views/index.py | 1 | 25792 | """
View for Courseware Index
"""
# pylint: disable=attribute-defined-outside-init
import logging
import urllib
from django.conf import settings
from django.contrib.auth.models import User
from django.contrib.auth.views import redirect_to_login
from django.urls import reverse
from django.http import Http404
from dja... | agpl-3.0 | 928,075,862,110,087,700 | 40.734628 | 120 | 0.61426 | false |
ljwolf/spvcm | spvcm/both_levels/se_se/sample.py | 1 | 1359 | import numpy as np
import scipy.linalg as scla
from ...utils import splogdet
from pysal.spreg.utils import spdot
def logp_rho_prec(state, val):
"""
This computes the logp of the spatial parameter using the precision, rather than the covariance. This results in fewer matrix operations in the case of a SE formul... | mit | 5,092,001,588,908,868,000 | 31.357143 | 204 | 0.671082 | false |
funkring/fdoo | addons-funkring/at_stock/__openerp__.py | 1 | 1542 | # -*- coding: utf-8 -*-
# -*- encoding: utf-8 -*-
#############################################################################
#
# Copyright (c) 2007 Martin Reisenhofer <martin.reisenhofer@funkring.net>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU G... | agpl-3.0 | -4,827,440,454,047,546,000 | 34.045455 | 78 | 0.57393 | false |
sanal-cem/heritago | heritago/heritages/tests/tests_models.py | 1 | 2021 | from django.test import TestCase
from heritages.models import Tag, Heritage, Multimedia, UserProfile, User
import os
testfile = "testfile.txt"
testfile2 = "testfile2.txt"
class ModelsTest(TestCase):
@classmethod
def setUpClass(cls):
Tag.objects.create(name="TAG_ancient")
title = "Test Mosque... | mit | 3,023,365,666,309,742,000 | 33.844828 | 114 | 0.641267 | false |
alejandro-perez/pyikev2 | ikesacontroller.py | 1 | 9354 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
""" This module defines the classes for the protocol handling.
"""
import json
import logging
import os
import socket
from ipaddress import ip_address, ip_network
from select import select
import xfrm
from ikesa import IkeSa
from message import (Message, TrafficSelector)... | gpl-3.0 | -879,382,703,224,452,000 | 44.188406 | 122 | 0.569168 | false |
evgenybf/pyXLWriter | tests/test_Worksheet.py | 1 | 3073 | #!/usr/bin/env python
__revision__ = """$Id: test_Worksheet.py,v 1.12 2004/08/17 07:22:38 fufff Exp $"""
import os, os.path
import unittest
import testsupport
from testsupport import read_file
from pyXLWriter.Worksheet import Worksheet
from pyXLWriter.Format import Format
class WorksheetTest(unittest.TestCase):
... | lgpl-2.1 | 2,182,459,475,558,707,500 | 30.680412 | 82 | 0.567524 | false |
mjhouse/scripts | hex/env.py | 1 | 2609 | import re, shlex
import math
hextag = re.compile('{{(.*?)}}',flags=re.MULTILINE|re.DOTALL)
class HexExpression:
delimiters = (' ', '=','-','+','*','(',')')
quotes = ('\"','\'')
def __init__( self, tokens ):
self.operations = {
'=':self.assign,
'-':self.minus,
... | gpl-2.0 | -2,340,866,839,609,065,500 | 29.337209 | 96 | 0.48716 | false |
thejevans/pointSourceAnalysis | convertH5_GFU.py | 1 | 1276 | #!/usr/bin/env python
'''
Template to convert from HDF5 files to NPY numpy array Files. This implementation uses
parseGFU.py to parse the data
'''
# Imports
from __future__ import print_function
from optparse import OptionParser
import tables
import numpy as np
import parseGFU
# Command parsing
usage = '%prog [optio... | gpl-3.0 | -6,438,877,276,518,161,000 | 27.355556 | 86 | 0.670063 | false |
flgiordano/netcash | +/google-cloud-sdk/lib/googlecloudsdk/core/resource/resource_projection_spec.py | 1 | 10147 | # 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 ag... | bsd-3-clause | 4,696,202,010,263,796,000 | 28.669591 | 80 | 0.673401 | false |
r-kitaev/lucid-python-tinydav | test/TestTinyDAV.py | 1 | 39023 | # Unittests for tinydav lib.
# coding: utf-8
# Copyright (C) 2009 Manuel Hermann <manuel-hermann@gmx.net>
#
# This file is part of tinydav.
#
# tinydav 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, e... | gpl-3.0 | -433,869,584,700,382,140 | 36.733075 | 79 | 0.614517 | false |
cmr/automatafl | old_python_prototype/server.py | 1 | 6501 | """
Automatafl HTTP game server.
There is a central store of all currently-running games, with the board and
game state. Each game is identified by a UUIDv4. When creating a game, the
client has an option to make the game public or private. Public games will be
listed publically. A player may join any game which they ... | apache-2.0 | -5,343,330,481,925,989,000 | 31.505 | 84 | 0.610983 | false |
matematik7/CSSQC | tests/test_colonFormat.py | 1 | 4046 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ----------------------------------------------------------------
# test_colonFormat.py
#
# test for colonFormat rule
# ----------------------------------------------------------------
# copyright (c) 2014 - Domen Ipavec
# Distributed under The MIT License, see LICENSE
#... | mit | -3,760,912,884,172,937,000 | 31.111111 | 66 | 0.542017 | false |
ppy/angle | scripts/generate_android_bp.py | 1 | 19660 | # Copyright The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Generates an Android.bp file from the json output of a 'gn desc' command.
# Example usage:
# gn desc out/Android --format=json "*" > desc.json
# py... | bsd-3-clause | -6,153,206,636,641,283,000 | 33.013841 | 119 | 0.588708 | false |
biothings/biothings_explorer | tests/test_apis/test_cordmolecularactivity.py | 1 | 4943 | import unittest
from biothings_explorer.registry import Registry
from biothings_explorer.user_query_dispatcher import SingleEdgeQueryDispatcher
from .utils import get_apis
reg = Registry()
class TestSingleHopQuery(unittest.TestCase):
def test_ma2protein(self):
"""Test gene-protein"""
seqd = Singl... | apache-2.0 | 8,533,805,272,853,411,000 | 32.856164 | 78 | 0.564839 | false |
ESOedX/edx-platform | openedx/core/lib/blockstore_api/methods.py | 1 | 12782 | """
API Client methods for working with Blockstore bundles and drafts
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import base64
from uuid import UUID
import dateutil.parser
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
import request... | agpl-3.0 | 7,530,887,622,473,606,000 | 31.607143 | 120 | 0.649664 | false |
ahmadia/binder | web/app.py | 1 | 5636 | import Queue
import json
import signal
import time
from tornado import gen
from tornado.ioloop import IOLoop
from tornado.web import Application, RequestHandler
from tornado.httpserver import HTTPServer
from binder.service import Service
from binder.app import App
from binder.cluster import ClusterManager
from .buil... | apache-2.0 | -671,810,061,599,228,800 | 29.464865 | 98 | 0.625798 | false |
madsmpedersen/MMPE | datastructures/unittests/test_caching.py | 1 | 1854 | '''
Created on 08/11/2013
@author: mmpe
'''
import multiprocessing
import time
import unittest
from mmpe.functions.timing import get_time
from mmpe.datastructures.caching import cache_function, set_cache_property
class Example(object):
def __init__(self, *args, **kwargs):
object.__init__(self, *args, *... | apache-2.0 | -2,271,402,412,449,235,500 | 25.112676 | 92 | 0.62945 | false |
mithro/HDMI2USB-litex-firmware | targets/neso/base.py | 1 | 5595 | # Support for the Numato Neso Artix 7 100T Board
from migen import *
from migen.genlib.resetsync import AsyncResetSynchronizer
from litex.soc.integration.soc_core import mem_decoder
from litex.soc.integration.soc_sdram import *
from litex.soc.integration.builder import *
from litedram.modules import MT41K128M16
from ... | bsd-2-clause | 329,493,176,064,576,200 | 35.809211 | 107 | 0.562645 | false |
ColtonProvias/sqlalchemy-jsonapi | sqlalchemy_jsonapi/unittests/declarative_tests/test_serialize.py | 1 | 20770 | """Tests for declarative JSONAPISerializer serialize method."""
import unittest
import datetime
from sqlalchemy import (
create_engine, Column, String, Integer, ForeignKey, Boolean, DateTime)
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import backref, relationship, sessionmaker
fr... | mit | -1,487,117,044,349,505,500 | 33.387417 | 79 | 0.53428 | false |
SergeyStaroletov/Patterns17 | CourseWorkReports/Курсовой проект Киреков ПИ-42/Исходный код/Model/Classifiers/ImageClassifier.py | 1 | 1143 | import keras
import numpy as np
from keras.preprocessing import image
from .IClassifier import IClassifier
class ImageClassifier(IClassifier):
""" классификатор изображений """
def __init__(self):
self.__input_shape = None
self.__aliases = None
self.__model = None
... | mit | -2,960,119,143,002,614,000 | 31.5625 | 91 | 0.568901 | false |
gmr/mikkoo | mikkoo/statsd.py | 1 | 5519 | """
Statsd Client that takes configuration first from the rejected configuration
file, falling back to environment variables, and finally default values.
Environment Variables:
- STATSD_HOST
- STATSD_PORT
- STATSD_PREFIX
"""
import logging
import os
import socket
from tornado import iostream
LOGGER = logging.ge... | bsd-3-clause | -7,954,871,945,239,064,000 | 31.464706 | 78 | 0.586157 | false |
f3at/feat | src/feat/configure/uninstalled.py | 1 | 1393 | # F3AT - Flumotion Asynchronous Autonomous Agent Toolkit
# Copyright (C) 2010,2011 Flumotion Services, S.A.
# All rights reserved.
# 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... | gpl-2.0 | -509,342,342,318,453,400 | 38.8 | 73 | 0.730079 | false |
bibarz/bibarz.github.io | dabble/ab/auth_algorithms.py | 1 | 17145 | # Import any required libraries or modules.
import numpy as np
from sklearn import svm
from sklearn.ensemble import RandomForestClassifier
from sklearn.neighbors import KNeighborsClassifier
import csv
import sys
class MetaParams:
n_lda_ensemble = 101
lda_ensemble_feature_fraction = 0.4
mode = 'lda_ensembl... | mit | 2,837,573,524,067,170,300 | 45.972603 | 172 | 0.633829 | false |
maferelo/saleor | saleor/site/migrations/0017_auto_20180803_0528.py | 3 | 1357 | # Generated by Django 2.0.3 on 2018-08-03 10:28
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("site", "0016_auto_20180719_0520")]
operations = [
migrations.CreateModel(
name="SiteSettingsTranslation",
... | bsd-3-clause | -1,561,289,987,221,625,000 | 32.097561 | 78 | 0.46647 | false |
Azure/azure-sdk-for-python | sdk/servicebus/azure-servicebus/tests/perf_tests/receive_message_batch.py | 1 | 1324 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | mit | -8,110,725,861,099,683,000 | 41.709677 | 95 | 0.527946 | false |
slogan621/tscharts | tscharts/views.py | 1 | 9381 | #(C) Copyright Syd Logan 2016-2021
#(C) Copyright Thousand Smiles Foundation 2016-2021
#
#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 req... | apache-2.0 | 1,100,830,941,482,948,100 | 30.166113 | 130 | 0.538109 | false |
wanglei828/apollo | modules/tools/plot_planning/speed_dsteering_data.py | 1 | 3396 | #!/usr/bin/env python
###############################################################################
# Copyright 2019 The Apollo 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 ... | apache-2.0 | -6,538,834,778,381,319,000 | 37.157303 | 80 | 0.592756 | false |
PanDAWMS/panda-server | pandaserver/daemons/scripts/copyArchive.py | 1 | 71078 | import os
import re
import sys
import time
import fcntl
import shelve
import datetime
import traceback
import requests
from urllib3.exceptions import InsecureRequestWarning
import pandaserver.userinterface.Client as Client
from pandaserver.taskbuffer import EventServiceUtils
from pandacommon.pandalogger.PandaLogger i... | apache-2.0 | 4,297,887,075,583,032,000 | 45.885224 | 323 | 0.571991 | false |
mvendra/mvtools | security/hash_check.py | 1 | 1222 | #!/usr/bin/env python3
import sys
import os
import sha256_wrapper
def puaq():
print("Usage: %s archive-to-check [hash-file]" % os.path.basename(__file__))
sys.exit(1)
def sha256sum_check(archive_file, hash_file):
hash_file_contents = ""
with open(hash_file, "r") as f:
hash_file_contents = f... | mit | 7,459,735,787,600,688,000 | 21.62963 | 80 | 0.576923 | false |
Kokemomo/Kokemomo | kokemomo/plugins/engine/model/km_storage/impl/km_rdb_adapter.py | 1 | 4103 | from sqlalchemy import Column, Integer, String, DateTime, Boolean, Text, func
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import scoped_session, sessionmaker
from kokemomo.plugins.engine.model.km_s... | mit | 8,601,652,151,066,538,000 | 25.642857 | 82 | 0.60078 | false |
prashanthpai/swift | swift/common/ring/builder.py | 1 | 73566 | # Copyright (c) 2010-2012 OpenStack Foundation
#
# 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 agree... | apache-2.0 | -738,666,777,734,163,300 | 41.572917 | 79 | 0.551532 | false |
tensorflow/datasets | tensorflow_datasets/image/flic.py | 1 | 5873 | # coding=utf-8
# Copyright 2021 The TensorFlow Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | apache-2.0 | -7,529,421,852,458,606,000 | 33.751479 | 93 | 0.629491 | false |
oz123/radiopy | rpy.py | 1 | 1118 | from subprocess import Popen
import pty
import os
import sys
import pynotify
def parse_ICY(line):
aline = line.split('\r\n')[-1]
junk, info = aline.split('=', 1)
try:
info, junk = info.split(';', 1)
except ValueError:
pass
artist, title = info.split('-')
return artist.strip("'"... | gpl-3.0 | 1,780,432,038,875,164,700 | 23.844444 | 76 | 0.592129 | false |
thom-at-redhat/cfme_tests | cfme/tests/intelligence/test_download_report.py | 1 | 1858 | # -*- coding: utf-8 -*-
import pytest
import os
import shutil
from cfme.intelligence.reports import reports
from utils.providers import setup_a_provider as _setup_a_provider
from utils.wait import wait_for
from utils import browser
TIMEOUT = 60.0 # Wait time for download
def clean_temp_directory():... | gpl-2.0 | 5,754,577,418,200,409,000 | 27.151515 | 91 | 0.661464 | false |
HartBlanc/Mastercard_Exchange_Rates | rate__retriever.py | 1 | 7513 | # 151 currencies, 22650 currency pairs, 364 days (period 1) 134 days (period 2) => 3,035,100(20,100/from_c) - 8,221,950 entries(8361.157)
print('importing packages')
import time
import sqlite3
import json
import requests
import datetime
import math
import pytz
from datetime import date
from multiprocessing.pool impor... | mit | 8,326,743,759,790,757,000 | 35.64878 | 156 | 0.508585 | false |
tecan/xchat-rt | plugins/scripts/cancelbot-code-55/dictbot/dictbot.py | 1 | 6363 | #!/usr/bin/python
__module_name__ = "Cancel's DictBot"
__module_version__ = "3.0.1"
__module_description__ = "DictBot by Cancel"
import xchat
import os
import re
import string
import ConfigParser
from DictService_client import *
print "\0034",__module_name__, __module_version__,"has been loaded\003"
#the globals go... | gpl-2.0 | -6,841,493,494,672,742,000 | 39.272152 | 127 | 0.63272 | false |
jason2506/bptree | conanfile.py | 1 | 1231 | from conans import ConanFile, CMake
class BPTreeConan(ConanFile):
name = 'bptree'
version = '0.0.0'
url = 'https://github.com/jason2506/bptree-cpp'
license = 'MIT'
author = 'Chi-En Wu'
settings = ('os', 'compiler', 'build_type', 'arch')
generators = ('cmake', 'txt')
no_copy_source = ... | mit | -3,906,506,703,934,059,500 | 21.381818 | 59 | 0.540211 | false |
linebp/pandas | pandas/tests/reshape/test_reshape.py | 1 | 43476 | # -*- coding: utf-8 -*-
# pylint: disable-msg=W0612,E1101
import pytest
from pandas import DataFrame, Series
import pandas as pd
from numpy import nan
import numpy as np
from pandas.util.testing import assert_frame_equal
from pandas.core.reshape.reshape import (
melt, lreshape, get_dummies, wide_to_long)
impor... | bsd-3-clause | -60,484,100,107,960,040 | 42.959555 | 79 | 0.426281 | false |
xclxxl414/rqalpha | rqalpha/mod/rqalpha_mod_alphaStar_utils/mod.py | 1 | 2371 | #coding=utf-8
"""
@author: evilXu
@file: mod.py
@time: 2018/2/28 16:59
@description:
"""
from rqalpha.interface import AbstractMod
from rqalpha.utils.logger import system_log,user_system_log
import pandas as pd
from rqalpha.api import *
class UtilsMod(AbstractMod):
def __init__(self):
self._inject_api()... | apache-2.0 | -1,318,417,233,380,429,800 | 39.896552 | 107 | 0.566428 | false |
data-tsunami/museo-cachi | cachi/admin.py | 1 | 1605 | # -*- coding: utf-8 -*-
#======================================================================
# This file is part of "Museo-Cachi".
#
# Museo-Cachi 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,... | gpl-3.0 | 8,912,619,328,321,128,000 | 40.153846 | 73 | 0.71028 | false |
sciapp/pyMolDyn | src/config/configuration.py | 1 | 6186 | import configobj
import validate
import os
import os.path
import inspect
CONFIG_DIRECTORY = '~/.pymoldyn/' # MUST be written with ~ to save a path in the config file that is relative to the user's home directory
CONFIG_FILE = os.path.expanduser('%s/config.cfg' % CONFIG_DIRECTORY)
CONFIG_SPEC_FILE = os.path.expanduse... | mit | 8,964,271,255,305,038,000 | 30.561224 | 140 | 0.57032 | false |
rosix-ru/django-directapps-client | setup.py | 1 | 2120 | # -*- coding: utf-8 -*-
#
# Copyright 2016 Grigoriy Kramarenko <root@rosix.ru>
#
# This file is part of DjangoDirectAppsClient.
#
# DjangoDirectAppsClient 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 F... | agpl-3.0 | 4,842,296,416,597,150,000 | 38.259259 | 93 | 0.675943 | false |
jared0x90/ArenaGame | parse-cards.py | 1 | 1309 | #!/usr/bin/env python
# Use the built in json and sqlite library
import json
import sqlite3
def main():
# Running card counter
card_count = 0
# Load all json data into a collection
card_data = json.load(open('cards.collectible.json'))
# Connect to our database and creat table if it doesn't e... | mit | -7,381,918,792,961,908,000 | 30.926829 | 126 | 0.565317 | false |
jpludens/quartrmastr | db/tables/equip_traits.py | 1 | 5244 | import sqlite3
from db import get_connection, get_from_datamaster, get_equip_keys
from db.tables import equips, traits
requirements = [equips, traits]
def build():
with get_connection() as con:
con.row_factory = sqlite3.Row
cur = con.cursor()
equip_ids_by_name = get_equip_keys(cur)
... | mit | 2,389,829,314,110,966,300 | 40.291339 | 88 | 0.466438 | false |
aarontuor/antk | antk/scripts/dssmgrid.py | 1 | 2443 | from __future__ import print_function
import argparse
from antk.core import loader
import numpy
def return_parser():
parser = argparse.ArgumentParser(description="Command line utility for performing grid search on a matrix factorization model.")
parser.add_argument("datadir", type=str,
... | mit | -7,314,639,539,161,021,000 | 41.859649 | 132 | 0.57675 | false |
kidscancode/gamedev | tutorials/examples/pathfinding/part2_test.py | 1 | 4760 | import pygame as pg
from collections import deque
from os import path
vec = pg.math.Vector2
TILESIZE = 48
GRIDWIDTH = 28
GRIDHEIGHT = 15
WIDTH = TILESIZE * GRIDWIDTH
HEIGHT = TILESIZE * GRIDHEIGHT
FPS = 30
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
RED = (255, 0, 0)
GREEN = (0, 255, 0)
CYAN = (0, 255, 255)
MAGENTA = (2... | mit | -7,233,398,497,294,835,000 | 35.615385 | 744 | 0.532563 | false |
nimbis/django-guardian | guardian/view_mixins.py | 1 | 5462 | from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.contrib.auth.decorators import REDIRECT_FIELD_NAME
from django.http import HttpResponseForbidden
from django.http import HttpResponseRedirect
from django.utils.http import urlquote
from django.utils.decorators i... | bsd-2-clause | 9,121,473,484,465,784,000 | 45.086207 | 211 | 0.643903 | false |
martinogden/django-banner-rotator | banner_rotator/admin.py | 1 | 3825 | #-*- coding:utf-8 -*-
from __future__ import unicode_literals
import logging
from functools import update_wrapper
from django import forms, template
from django.contrib import admin
from django.contrib.admin.util import unquote
from django.db import models
from django.shortcuts import get_object_or_404, render_to_resp... | mit | 6,486,784,982,969,740,000 | 35.778846 | 117 | 0.608889 | false |
DailyActie/Surrogate-Model | 01-codes/deap-master/examples/coev/coop_evol.py | 1 | 6195 | # This file is part of DEAP.
#
# DEAP 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, or (at your option) any later version.
#
# DEAP is distributed ... | mit | 5,767,746,708,003,492,000 | 33.226519 | 105 | 0.585149 | false |
dengxiangyu768/dengxytools | ops/aliyun_stack.py | 1 | 6153 | #coding:utf8
import sys
import traceback
import os
from aliyunsdkcore.client import AcsClient
from aliyunsdkros.request.v20150901 import DescribeRegionsRequest, CreateStacksRequest
from aliyunsdkros.request.v20150901 import DescribeResourcesRequest
from aliyunsdkros.request.v20150901 import DeleteStackRequest
from aliy... | apache-2.0 | 6,446,802,008,184,042,000 | 30.392857 | 116 | 0.65659 | false |
ragupta-git/ImcSdk | imcsdk/mometa/bios/BiosVfLegacyUSBSupport.py | 1 | 3878 | """This module contains the general information for BiosVfLegacyUSBSupport ManagedObject."""
from ...imcmo import ManagedObject
from ...imccoremeta import MoPropertyMeta, MoMeta
from ...imcmeta import VersionMeta
class BiosVfLegacyUSBSupportConsts:
VP_LEGACY_USBSUPPORT_AUTO = "Auto"
VP_LEGACY_USBSUPPORT_DISA... | apache-2.0 | -8,197,067,225,577,513,000 | 49.363636 | 274 | 0.625064 | false |
wummel/patool | tests/archives/test_pybz2.py | 1 | 1203 | # -*- coding: utf-8 -*-
# Copyright (C) 2010-2015 Bastian Kleineidam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#... | gpl-3.0 | 415,507,764,006,046,660 | 36.59375 | 71 | 0.718204 | false |
thenetcircle/dino | test/utils/test_utils.py | 1 | 15563 | # 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 Li... | apache-2.0 | -8,109,607,419,109,835,000 | 32.897603 | 123 | 0.579729 | false |
MeerkatLabs/sleekpromises | test/promises/test_2_2_2.py | 1 | 9100 | """
2.2.2: If `onFulfilled` is a function
https://github.com/promises-aplus/promises-tests/blob/2.1.1/lib/tests/2.2.2.js
"""
import threading
from sleekxmpp.test import SleekTest
class Promise_2_2_2_1_TestCase(SleekTest):
"""
2.2.2.1: it must be called after `promise` is fulfilled, with `promise`'s fulfillme... | bsd-3-clause | 6,575,437,319,859,750,000 | 25.608187 | 118 | 0.600769 | false |
spino327/sdr_testbed | DistributedTestbed/receiver/RXGui.py | 1 | 8188 | '''
Copyright (c) 2010, Universidad Industrial de Santander, Colombia
University of Delaware
All rights reserved.
@author: Sergio Pino
@author: Henry Arguello
Website: http://www.eecis.udel.edu/
emails : sergiop@udel.edu - henarfu@udel.edu
Date : Nov, 2010
'''
from gnuradio.wxgui import fftsink2, scopesink2
from g... | apache-2.0 | -2,311,429,111,140,030,000 | 32.153846 | 102 | 0.51319 | false |
nfqsolutions/nfq-conductor | nfq/conductor/server.py | 1 | 5092 | # NFQ Conductor. A tool for centralizing and visualizing logs.
# Copyright (C) 2017 Guillem Borrell Nogueras
#
# 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
# Li... | agpl-3.0 | 8,734,836,519,722,331,000 | 33.639456 | 86 | 0.616064 | false |
akhilaananthram/nupic.research | classification/LanguageSensor.py | 1 | 9726 | #!/usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2015, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions... | gpl-3.0 | 5,535,361,808,632,589,000 | 33.489362 | 91 | 0.599321 | false |
google-research/fixmatch | ict.py | 1 | 5150 | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | 1,690,494,292,168,825,600 | 40.869919 | 113 | 0.639223 | false |
karstenw/nodebox-pyobjc | examples/Extended Application/sklearn/examples/calibration/plot_calibration_multiclass.py | 1 | 7780 | """
==================================================
Probability Calibration for 3-class classification
==================================================
This example illustrates how sigmoid calibration changes predicted
probabilities for a 3-class classification problem. Illustrated is the
standard 2-simplex, wher... | mit | 718,850,117,828,271,900 | 36.95122 | 82 | 0.626864 | false |
siemens/django-dingos | dingos/migrations/0007_auto__add_userdata__add_unique_userdata_user_data_kind.py | 1 | 16414 | # -*- 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):
# Adding model 'UserData'
db.create_table(u'dingos_userdata', (
(u'id', self.gf('django.db.model... | gpl-2.0 | -1,355,547,385,660,828,000 | 75.705607 | 187 | 0.557268 | false |
openstack/oslo.context | doc/source/user/examples/usage.py | 1 | 1601 | #!/usr/bin/env python3
#
# Copyright (c) 2015 OpenStack Foundation
#
# 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 appl... | apache-2.0 | -5,818,148,704,935,449,000 | 30.392157 | 75 | 0.713929 | false |
wojciechpolak/webxiangpianbu | tools/staticgen.py | 1 | 12710 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# WebXiangpianbu Copyright (C) 2014, 2015 Wojciech Polak
#
# 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... | gpl-3.0 | 6,789,874,336,057,884,000 | 31.589744 | 84 | 0.525649 | false |
bmng-dev/PyBitmessage | src/inventory.py | 1 | 10082 | import collections
import Queue
import time
from threading import enumerate as threadingEnumerate
from threading import RLock, current_thread
from helper_sql import SqlBulkExecute, sqlExecute, sqlQuery
from singleton import Singleton
@Singleton
class Inventory(collections.MutableMapping):
def __init__(self):
... | mit | 2,504,208,822,498,780,700 | 39.48996 | 361 | 0.583515 | false |
kaiyou/pyircbot | src/pyircbot/behavior.py | 1 | 6125 | #!/usr/bin/python
#
# PyIRCBot
# Copyright (C) Pierre Jaury 2011 <pierre@jaury.eu>
#
# PyIRCBot 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... | gpl-3.0 | 1,358,964,609,801,808,000 | 33.217877 | 88 | 0.691429 | false |
openstack/octavia | octavia/tests/unit/controller/worker/v1/flows/test_health_monitor_flows.py | 1 | 2762 | # Copyright 2015 Hewlett-Packard Development Company, L.P.
#
# 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,353,852,472,475,876,000 | 37.361111 | 75 | 0.709631 | false |
martinblech/mimerender | src/test.py | 1 | 10283 | # unit tests
try:
import unittest2 as unittest
except ImportError:
import unittest
import mimerender
from mimerender import _MIME_TYPES
class TestMimeRender(mimerender.MimeRenderBase):
def __init__(self, request_parameters=None, accept_header=None,
*args, **kwargs):
super(TestMimeRen... | mit | 4,608,935,895,285,645,000 | 39.167969 | 83 | 0.574832 | false |
tomchadwin/qgis2web | qgis2web/maindialog.py | 1 | 39316 | # -*- coding: utf-8 -*-
# qgis-ol3 Creates OpenLayers map from QGIS layers
# Copyright (C) 2014 Victor Olaya (volayaf@gmail.com)
#
# 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... | gpl-2.0 | -2,166,607,151,134,969,000 | 38.83384 | 79 | 0.555321 | false |
inean/python-oauth2 | oauth2/__init__.py | 1 | 24530 | """
The MIT License
Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel
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 ... | mit | 6,820,572,739,031,814,000 | 32.37415 | 265 | 0.600163 | false |
pombredanne/cliques | poll/views.py | 1 | 5047 | from collections import defaultdict
import datetime
import logging
import operator
import random
from django.contrib.auth import get_user_model
from django.http import HttpResponse, HttpResponseRedirect, HttpResponseNotFound
from django.utils.timezone import utc
from django.views.generic import CreateView, DetailView
... | apache-2.0 | 8,324,600,533,763,739,000 | 33.806897 | 80 | 0.624728 | false |
sebastian-software/jasy | jasy/core/Util.py | 1 | 4039 | #
# Jasy - Web Tooling Framework
# Copyright 2010-2012 Zynga Inc.
# Copyright 2013-2014 Sebastian Werner
#
import re
import os
import hashlib
import tempfile
import subprocess
import sys
import shlex
import jasy.core.Console as Console
import jasy.core.Base62 as Base62
def executeCommand(args, failMessage=None, pat... | mit | 8,754,968,981,034,551,000 | 24.402516 | 114 | 0.657836 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.