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 |
|---|---|---|---|---|---|---|---|---|---|---|
dims/neutron | neutron/common/config.py | 1 | 13000 | # Copyright 2011 VMware, 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 ... | apache-2.0 | -2,916,700,827,220,835,000 | 46.619048 | 79 | 0.585846 | false |
bacemtayeb/Tierra | src/core/stream.py | 1 | 11392 | import gc
import re
import config
from copy import copy
from colors import color
from textwrap import dedent
from util import Msg, Error, debug, check_opts, eval_type
from collections import OrderedDict, namedtuple
from src.modules.services.service import Service
"""
Main data bus for interacting with the various ... | gpl-3.0 | 4,008,644,137,442,229,000 | 33.313253 | 91 | 0.533971 | false |
nginxinc/kubernetes-ingress | tests/suite/grpc/helloworld_pb2.py | 1 | 3911 | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: helloworld.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _re... | apache-2.0 | -1,847,906,107,374,825,000 | 28.19403 | 369 | 0.722833 | false |
Artanicus/python-cozify | cozify/test/test_cloud_api.py | 1 | 1584 | #!/usr/bin/env python3
import os, pytest, tempfile, datetime
from cozify import cloud_api
from cozify.test import debug
from cozify.test.fixtures import *
from cozify.Error import AuthenticationError, APIError, ConnectionError
from mbtest.imposters import Imposter, Predicate, Stub, Response
@pytest.mark.mbtest
def... | mit | 2,131,560,475,806,072,800 | 35 | 97 | 0.702652 | false |
ercanezin/ce888labs | lab8/imdb.py | 1 | 2192 |
from __future__ import print_function
import numpy as np
np.random.seed(1337) # for reproducibility
from keras.preprocessing import sequence
from keras.models import Model
from keras.layers import Dense, Activation, Embedding, GlobalMaxPooling1D,Convolution1D, Input,LSTM,merge
from keras.datasets import imdb
max_fe... | gpl-3.0 | 8,493,642,314,764,031,000 | 24.206897 | 110 | 0.69115 | false |
zergov/flashcards | flashcards/sets.py | 1 | 3877 | """
flashcards.sets
~~~~~~~~~~~~~~~~~~~
Contain the StudySet object and logic related to it.
"""
from collections import OrderedDict
from flashcards import cards
from flashcards.cards import StudyCard
TITLE_KEY = 'title'
DESC_KEY = 'description'
CARDS_KEY = 'cards'
def create_from_dict(data):
"""
Construct... | mit | -994,116,634,628,581,500 | 25.923611 | 77 | 0.594532 | false |
googleapis/googleapis-gen | google/ads/googleads/v6/googleads-py/google/ads/googleads/v6/resources/types/search_term_view.py | 1 | 2213 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | -114,439,431,116,269,020 | 29.736111 | 109 | 0.658834 | false |
lpryszcz/REDiscover | taxid2sra.py | 1 | 13105 | #!/usr/bin/env python
desc="""Fetch all entries from SRA for given taxid.
Save the biggest run per each SAMPLE (SRS) from given date. Paired first, if any.
Note, it run fastq-dump in background. Make sure you have enough free cores;)
DEPENDENCIES:
Biopython
"""
epilog="""Author:
l.p.pryszcz+git@gmail.com
Barcelona,... | gpl-2.0 | 5,824,388,399,453,832,000 | 42.111842 | 268 | 0.583441 | false |
ZhangXinNan/tensorflow | tensorflow/python/kernel_tests/partitioned_variables_test.py | 1 | 25955 | # Copyright 2015 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 | 5,213,598,942,687,017,000 | 40.395534 | 116 | 0.599384 | false |
eeshangarg/zulip | zerver/views/realm_icon.py | 1 | 2428 | from django.conf import settings
from django.http import HttpRequest, HttpResponse
from django.shortcuts import redirect
from django.utils.translation import gettext as _
from zerver.decorator import require_realm_admin
from zerver.lib.actions import do_change_icon_source
from zerver.lib.realm_icon import realm_icon_u... | apache-2.0 | -8,473,574,400,917,262,000 | 37.539683 | 91 | 0.714168 | false |
jashort/SmartFileSorter | tests/test_integration_tests.py | 1 | 1059 | import unittest
import smartfilesorter
import os
import tempfile
import shutil
class TestIntegrationTests(unittest.TestCase):
"""
Broader test cases
"""
def setUp(self):
self.source_dir = tempfile.mkdtemp()
self.dest_dir = os.path.join(self.source_dir, 'dest/')
os.mkdir(self.de... | bsd-3-clause | -8,757,449,511,512,382,000 | 30.147059 | 76 | 0.645892 | false |
huiyiqun/check_mk | cmk/regex.py | 1 | 2740 | #!/usr/bin/python
# -*- encoding: utf-8; py-indent-offset: 4 -*-
# +------------------------------------------------------------------+
# | ____ _ _ __ __ _ __ |
# | / ___| |__ ___ ___| | __ | \/ | |/ / |
# | | | | '_ \ / _ \/ __| |/ /... | gpl-2.0 | -2,221,331,912,281,145,600 | 36.027027 | 89 | 0.531752 | false |
SublimeHaskell/SublimeHaskell | hsdev/backend.py | 1 | 36770 | """
The `hsdev` backend.
"""
from functools import reduce
import io
import json
import os
import os.path
import pprint
import re
import subprocess
import threading
import sublime
import SublimeHaskell.hsdev.callback as HsCallback
import SublimeHaskell.hsdev.client as HsDevClient
import SublimeHaskell.hsdev.result_pa... | mit | -7,706,911,259,607,050,000 | 49.438957 | 204 | 0.571716 | false |
RCOS-Grading-Server/HWserver | tests/e2e/base_testcase.py | 2 | 10499 | import shutil
import tempfile
from datetime import date
import os
import unittest
import json
from urllib.parse import urlencode
from urllib.parse import urlparse
from selenium import webdriver
from websocket import create_connection
from selenium.common.exceptions import WebDriverException
from selenium.webdriver.s... | bsd-3-clause | -5,955,919,036,682,299,000 | 42.384298 | 172 | 0.645109 | false |
afsungur/MemWord | framefinish.py | 1 | 2063 | import wx
from griddict import GridDictionary
import Global
class FrameFinish(wx.Frame):
def __init__(self, parent, true_count, false_count, falses):
FRAME_SIZE_WIDTH = 800
FRAME_SIZE_HEIGHT = 300
FRAME_POS_X = 200
FRAME_POS_Y = 200
wx.Frame.__init__(self, parent, -1,
... | gpl-3.0 | -5,161,963,566,746,056,000 | 33.383333 | 80 | 0.56762 | false |
davidcdba/oBid | oBid/oBid/settings.py | 1 | 6054 | #encoding: utf-8
#Para que no de porculo los acentos y Ñ
# Django settings for oBid project.
## EXPLICACION ## IMPORTAMOS LA LIBRERIA 'os' del sistema y establecemos como PATH del proyecto la carpeta en la que se encuentra
import os
PROJECT_PATH=os.path.dirname(os.path.realpath(__file__))
DEBUG = True
TEMPLATE_DEBUG ... | gpl-2.0 | 8,352,776,375,811,243,000 | 35.896341 | 129 | 0.691786 | false |
mblaauw/pre-publish-predictor | alchemyapi_python/tests.py | 1 | 7384 | #!/usr/bin/env python
# Copyright 2013 AlchemyAPI
#
# 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 applicab... | mit | -8,312,624,307,603,858,000 | 30.555556 | 153 | 0.697589 | false |
yarikoptic/NiPy-OLD | examples/interfaces/process_fiac.py | 1 | 6055 | ''' Single subject analysis script for SPM / FIAC '''
import sys
from os.path import join as pjoin
from glob import glob
import numpy as np
from nipy.interfaces.spm import spm_info, make_job, scans_for_fnames, \
run_jobdef, fnames_presuffix, fname_presuffix, fltcols
def get_data(data_path, subj_id):
data_def... | bsd-3-clause | -6,172,351,069,423,954,000 | 29.124378 | 82 | 0.471181 | false |
xesscorp/skidl | skidl/bus.py | 1 | 16133 | # -*- coding: utf-8 -*-
# MIT license
#
# Copyright (C) 2018 by XESS Corp.
#
# 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... | mit | -8,701,624,065,980,637,000 | 34.613687 | 111 | 0.556065 | false |
ereOn/pyslot | doc/source/conf.py | 1 | 9568 | # -*- coding: utf-8 -*-
#
# PySlot documentation build configuration file, created by
# sphinx-quickstart on Fri Feb 5 22:24:39 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# Al... | gpl-3.0 | 8,700,318,934,928,059,000 | 31.107383 | 79 | 0.704849 | false |
MicheleTobias/CurvilinearAnisotropy | Code/WillametteFiles_Centerline.py | 1 | 1734 | # import the modules I'm gonna need
import glob, string, csv, os
# input the files to use
inputdirectory = 'C:\Users\Michele\Documents\Research\CurvilinearAnisotropy\WillametteRiver\willamette_elevations\willamette\centerline_elevation\\'
outputfile1 = 'C:\Users\Michele\Documents\Research\CurvilinearAnisotropy\Willame... | gpl-2.0 | 6,246,451,483,380,688,000 | 30.527273 | 168 | 0.686275 | false |
garbas/mozilla-releng-services | lib/cli_common/cli_common/log.py | 1 | 5277 | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from __future__ import absolute_import
import os
import structlog
import logbook
import structlog.exceptions
CHANNELS... | mpl-2.0 | -6,548,193,065,109,681,000 | 28.480447 | 126 | 0.617396 | false |
zfrenchee/pandas | pandas/core/api.py | 1 | 3146 |
# pylint: disable=W0614,W0401,W0611
# flake8: noqa
import numpy as np
from pandas.core.algorithms import factorize, unique, value_counts
from pandas.core.dtypes.missing import isna, isnull, notna, notnull
from pandas.core.categorical import Categorical
from pandas.core.groupby import Grouper
from pandas.io.formats.f... | bsd-3-clause | 2,358,515,945,609,053,000 | 37.839506 | 76 | 0.679275 | false |
siddhantgoel/tornado-sqlalchemy | tests/test_session_mixin.py | 1 | 1642 | from unittest.mock import Mock
from tornado_sqlalchemy import MissingDatabaseSettingError, SessionMixin
from ._common import BaseTestCase, User, db
class SessionMixinTestCase(BaseTestCase):
def test_mixin_ok(self):
class GoodHandler(SessionMixin):
def __init__(h_self):
h_self... | mit | -7,001,430,187,323,076,000 | 27.807018 | 72 | 0.545676 | false |
detrout/pykolab | pykolab/cli/telemetry/cmd_examine_session.py | 1 | 4119 |
# -*- coding: utf-8 -*-
# Copyright 2010-2012 Kolab Systems AG (http://www.kolabsys.com)
#
# Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen a kolabsys.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... | gpl-3.0 | 592,902,317,208,415,900 | 28.212766 | 112 | 0.554989 | false |
gltn/stdm | stdm/ui/view_str.py | 1 | 44716 | """
/***************************************************************************
Name : View STR Relationships
Description : Main Window for searching and browsing the social tenure
relationship of the participating entities.
Date : 24/May/2014
copyr... | gpl-2.0 | -8,273,558,001,482,112,000 | 32.030441 | 120 | 0.562371 | false |
multikatt/beets | beetsplug/permissions.py | 1 | 3116 | from __future__ import (division, absolute_import, print_function,
unicode_literals)
"""Fixes file permissions after the file gets written on import. Put something
like the following in your config.yaml to configure:
permissions:
file: 644
dir: 755
"""
import os
fro... | mit | 8,238,867,990,123,123,000 | 29.851485 | 78 | 0.626765 | false |
gonadarian/kagen | kagen/khan.py | 1 | 1955 | import os
import csv
import json
import pymongo
from kagen import utils
from kagen.utils import config
from datetime import datetime
logger = utils.get_logger("khan")
def work():
khan = utils.get_conn_khan()
db = utils.get_conn_mongo()
dtf = "%Y-%m-%dT%H:%M:%SZ"
doc = utils.get_response_json(khan, ... | mit | 5,795,363,018,765,925,000 | 31.583333 | 91 | 0.640409 | false |
irvined1982/olweb-clients | bin/bkill.py | 1 | 3674 | #!/usr/bin/env python
# Copyright 2014 David Irvine
#
# This file is part of olwclients
#
# olwclients 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... | gpl-2.0 | 4,289,308,900,084,577,300 | 42.223529 | 119 | 0.619488 | false |
panosl/helios | helios/orders/forms.py | 1 | 1114 | from django import forms
from helios.shipping.models import ShippingMethodRegions
class ShippingChoiceField(forms.ModelChoiceField):
def label_from_instance(self, obj):
return u'%s, %s - %s' % (obj.method.name, obj.method.shipper, obj.cost)
# todo this needs to be handled either here
# or in the checkou... | bsd-3-clause | 1,921,637,111,047,108,400 | 34.935484 | 128 | 0.670557 | false |
buaawp/pums | mock/migrations/0001_initial.py | 1 | 3879 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.Create... | mit | 6,251,896,528,812,043,000 | 42.58427 | 114 | 0.564836 | false |
cossatot/culpable | culpable/magnitudes.py | 1 | 22751 | import numpy as np
from .stats import Pdf, pdf_from_samples, multiply_pdfs, divide_pdfs
"""
Scaling relationships and related equations for earthquake magnitude
calculations.
"""
"""
Normalized slip distribution from Biasi and Weldon, 2006
"""
Dn_x = np.array(
[ 0. , 0.03852144, 0.07704287, 0.11556431... | mit | 3,321,407,271,756,784,000 | 33.628615 | 79 | 0.551976 | false |
huwiki/featured-feeds | rsslib.py | 1 | 4281 | #!/usr/bin/python
# -*- coding: iso-8859-2 -*-
import sys, os
import re, string
import time, datetime, calendar, locale
import urllib
import cPickle
import xml.sax.saxutils
locale.setlocale(locale.LC_TIME, 'en_GB')
currenttimestamp = time.strftime(u'%a, %d %b %Y %H:%M:%S +0000', time.gmtime())
locale.setlocale(locale... | mit | -2,498,234,806,636,101,000 | 25.103659 | 107 | 0.640972 | false |
mgedmin/objgraph | objgraph.py | 1 | 43531 | """
Tools for drawing Python object reference graphs with graphviz.
You can find documentation online at https://mg.pov.lt/objgraph/
Copyright (c) 2008-2017 Marius Gedminas <marius@pov.lt> and contributors
Released under the MIT licence.
"""
# Permission is hereby granted, free of charge, to any person obtaining a
#... | mit | 6,699,779,760,792,617,000 | 33.575854 | 79 | 0.588202 | false |
t794104/ansible | lib/ansible/plugins/inventory/gcp_compute.py | 1 | 19487 | # Copyright (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
DOCUMENTATION = '''
name: gcp_compute
plugin_type: inventory
short_description: Google C... | gpl-3.0 | 8,487,148,680,798,984,000 | 38.769388 | 137 | 0.556935 | false |
acg/lwpb | python/pbsplit.py | 1 | 1605 | #!/usr/bin/env python
'''
pbsplit - split a protobuf stream into multiple files
'''
import sys
import getopt
import lwpb
import lwpb.stream
import lwpb.codec
def shift(L): e = L[0] ; del L[0:1] ; return e
def main():
typename = ""
skip = 0
count = -1
splitsize = 1000 # in number of records
pb2file = ... | apache-2.0 | 1,052,393,894,243,850,500 | 16.637363 | 69 | 0.576947 | false |
bitmovin/bitmovin-python | examples/encoding/create_progressive_webm_encoding_with_vp9_and_opus_codecs.py | 1 | 4978 | import datetime
from bitmovin import Bitmovin, Encoding, HTTPSInput, S3Output, \
StreamInput, SelectionMode, Stream, EncodingOutput, ACLEntry, ACLPermission, \
MuxingStream, CloudRegion, ProgressiveWebMMuxing, VP9CodecConfiguration, OpusCodecConfiguration, VP9Quality
from bitmovin.errors import BitmovinError
... | unlicense | -3,270,803,099,738,486,000 | 48.78 | 119 | 0.57955 | false |
f3at/feat | src/feat/models/value.py | 1 | 25453 | # 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 | 6,844,360,681,269,452,000 | 26.606291 | 78 | 0.591011 | false |
beiko-lab/gengis | bin/Lib/site-packages/numpy/ma/mrecords.py | 1 | 28557 | """:mod:`numpy.ma..mrecords`
Defines the equivalent of :class:`numpy.recarrays` for masked arrays,
where fields can be accessed as attributes.
Note that :class:`numpy.ma.MaskedArray` already supports structured datatypes
and the masking of individual fields.
:author: Pierre Gerard-Marchant
"""
#!!!: * We sho... | gpl-3.0 | -4,077,217,941,820,372,500 | 37.226648 | 91 | 0.536366 | false |
yaybu/touchdown | touchdown/tests/test_aws_s3_file.py | 1 | 3062 | # Copyright 2015 Isotoma Limited
#
# 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... | apache-2.0 | -4,602,095,424,609,843,000 | 33.022222 | 87 | 0.629001 | false |
schleichdi2/OPENNFR-6.1-CORE | opennfr-openembedded-core/meta/lib/oeqa/utils/qemurunner.py | 1 | 24225 | # Copyright (C) 2013 Intel Corporation
#
# Released under the MIT license (see COPYING.MIT)
# This module provides a class for starting qemu images using runqemu.
# It's used by testimage.bbclass.
import subprocess
import os
import sys
import time
import signal
import re
import socket
import select
import errno
impor... | gpl-2.0 | 2,719,740,783,573,503,000 | 39.107616 | 159 | 0.533375 | false |
Orpheus11/nile | nile/common/lockutils.py | 1 | 3733 | import threading
import weakref
import contextlib
import logging
import fasteners
import os
LOG = logging.getLogger(__name__)
class Semaphores(object):
def __init__(self):
self._semaphores = weakref.WeakValueDictionary()
self._lock = threading.Lock()
def get(self, name):
with self._loc... | apache-2.0 | -4,795,306,328,737,834,000 | 33.247706 | 78 | 0.646397 | false |
Fokko/incubator-airflow | tests/test_utils/mock_operators.py | 1 | 1355 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 | 3,725,370,474,415,175,700 | 31.261905 | 65 | 0.723985 | false |
FedoraScientific/salome-paravis | test/VisuPrs/ImportMedField/B3.py | 1 | 1389 | # Copyright (C) 2010-2014 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library ... | lgpl-2.1 | 7,929,004,548,466,227,000 | 45.3 | 158 | 0.718503 | false |
Greymerk/python-rpg | src/world/terrain/chunkmanager.py | 1 | 1344 | from random import choice
from mapcache import MapCache
from chunk import Chunk
class ChunkManager:
def __init__(self, world):
self.world = world
self.chunkCache = []
self.mapCache = MapCache(self, self.world.seed)
self.maxCacheSize = 64
def getChunk(self, x, y):
chunkX = int(x) >> 4
chunkY = int(y) ... | gpl-3.0 | -1,728,710,524,475,288,800 | 19.676923 | 94 | 0.65253 | false |
daniel-dinu/rational-python | test_rational/test_rational.py | 1 | 32468 | import unittest2
from unittest2 import TestCase
from rational.rational import gcd
from rational.rational import Rational
__author__ = 'Daniel Dinu'
class TestRational(TestCase):
def setUp(self):
self.known_values = [(1, 2, 1, 2),
(-1, 2, -1, 2),
... | mit | 958,887,407,180,967,000 | 46.123367 | 101 | 0.43951 | false |
WaveBlocks/WaveBlocks | src/WaveBlocks/MatrixPotential1S.py | 1 | 13237 | """The WaveBlocks Project
This file contains code for the representation of potentials for a single component.
These potential are of course scalar ones.
@author: R. Bourquin
@copyright: Copyright (C) 2010, 2011 R. Bourquin
@license: Modified BSD License
"""
import sympy
import numpy
from MatrixPotential import Mat... | bsd-3-clause | -6,184,886,920,704,668,000 | 40.495298 | 136 | 0.652187 | false |
naturali/tensorflow | tensorflow/python/kernel_tests/segment_reduction_ops_test.py | 1 | 23515 | # Copyright 2015 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 | -4,520,860,088,002,389,000 | 37.423203 | 80 | 0.587242 | false |
ampproject/amp-github-apps | project-metrics/metrics_service/scrapers/commit_scraper.py | 1 | 5432 | import datetime
from typing import Sequence
import logging
import time
import sqlalchemy
from apis import github
from database import db
from database import models
SCRAPE_INTERVAL_SECONDS = 5
def timestamp_90_days_ago() -> datetime.datetime:
return datetime.datetime.now() - datetime.timedelta(days=90)
class Co... | apache-2.0 | 4,349,031,889,459,565,600 | 32.121951 | 80 | 0.628866 | false |
tobijk/ecromedos | lib/net/ecromedos/ecmlprocessor.py | 1 | 4602 | # -*- coding: utf-8 -*-
#
# Desc: This file is part of the ecromedos Document Preparation System
# Author: Tobias Koch <tobias@tobijk.de>
# License: MIT
# URL: http://www.ecromedos.net
#
import os, sys
import lxml.etree as etree
from net.ecromedos.error import ECMDSError, ECMDSPluginError
from net.ecromedos.co... | mit | 7,828,527,572,711,646,000 | 27.407407 | 76 | 0.58279 | false |
danielquinn/spirithunter | src/spirits/api/resources.py | 1 | 8242 | import json
import random
from math import sin, cos
from django.conf import settings
from django.core.exceptions import ValidationError
from django.shortcuts import get_object_or_404
from tastypie import fields
from tastypie import http
from tastypie.authentication import MultiAuthentication, Authentication, BasicAu... | agpl-3.0 | -7,481,127,565,425,262,000 | 26.565217 | 115 | 0.579592 | false |
linuxrocks123/MailTask | mt_attache.py | 1 | 3151 | #! /usr/bin/env python
# MailTask Alpha: The Email Manager
# Copyright (C) 2015 Patrick Simmons
# 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 ... | gpl-3.0 | -9,170,419,339,616,157,000 | 35.218391 | 149 | 0.699778 | false |
unapiedra/BBChop | tests/dumbdag.py | 1 | 3423 | # Copyright 2008 Ealdwulf Wuffinga
# This file is part of BBChop.
#
# BBChop 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 ... | gpl-2.0 | -1,333,789,492,420,188,700 | 29.5625 | 112 | 0.674847 | false |
jleete97/python-graphics | games/turns/reversi/reversi.py | 1 | 3731 | import random
import sys
import time
from reversiboard import *
from games.turns.reversi.reversimoves import *
# Window parameters
WINDOW_WIDTH = 800
WINDOW_HEIGHT = 700
# Colors
DARK_GREEN = (0, 128, 0)
DARK_GREY = (128, 128, 128)
LIGHT_RED = (255, 192, 192)
GREEN = (0, 255, 0)
WHITE = (255, 255, 255)
BLACK = (0, ... | mit | -7,343,959,332,232,993,000 | 26.233577 | 79 | 0.5197 | false |
Lothiraldan/MongoTSDB | tests/test_range.py | 1 | 3744 | import unittest
from mongotsdb import Range, SubRange, RangeSet, MultiRangeWorker, RangeWorker
class RangeTestCase(unittest.TestCase):
def setUp(self):
self.start = 0
self.stop = 7
self.step = self.stop - self.start
self.r = Range(self.start, self.stop)
def test_instantiation... | gpl-3.0 | -5,210,675,510,729,629,000 | 28.480315 | 78 | 0.60844 | false |
Foair/course-crawler | mooc/xuetangx.py | 1 | 7412 | # -*- coding: utf-8 -*-
"""学堂在线"""
import json
from bs4 import BeautifulSoup
from .utils import *
BASE_URL = 'http://www.xuetangx.com'
CANDY = Crawler()
CONFIG = {}
FILES = {}
def get_book(url):
"""获得所有的 PDF 电子书"""
nav_page = CANDY.get(url).text
shelves = set(re.findall(r'/courses/.+/pdfbook/\d/', nav_... | mit | -4,430,089,417,675,538,400 | 32.685714 | 109 | 0.566582 | false |
googleads/google-ads-python | google/ads/googleads/v8/errors/types/keyword_plan_error.py | 1 | 1758 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | 8,135,299,712,212,321,000 | 32.169811 | 76 | 0.677474 | false |
TribeMedia/synapse | synapse/handlers/e2e_keys.py | 2 | 12592 | # -*- coding: utf-8 -*-
# Copyright 2016 OpenMarket Ltd
#
# 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 | 1,883,954,235,118,884,400 | 37.98452 | 87 | 0.542011 | false |
hoomanlogic/hoomancmd | hoomancmd/matchsuggestion.py | 1 | 17803 | ### score matched, proximity, missing, or nomatch to find the best fit command ###
# todo: Improve suggestion engine
# >> plns
# Did you mean 'logs'? : 97 : journal:90
# used by all versions
proximity_mapping = {
'q': ['a', 's', 'w', '2', '1', '`'],
'w': ['q', 'a', 's', 'd', 'e', '3', '2', '1'],
'e': ['w',... | apache-2.0 | -2,147,103,867,725,780,500 | 35.935685 | 119 | 0.559569 | false |
pernici/sympy | sympy/series/tests/test_order.py | 1 | 6982 | from sympy import Symbol, Rational, Order, C, exp, ln, log, O, var, nan, pi, S
from sympy.utilities.pytest import XFAIL, raises
from sympy.abc import w, x, y, z
def test_caching_bug():
#needs to be a first test, so that all caches are clean
#cache it
e = O(w)
#and test that this won't raise an exceptio... | bsd-3-clause | -6,458,170,842,665,350,000 | 32.567308 | 78 | 0.563879 | false |
nadgowdas/cargo | cli/cargo.py | 1 | 2456 | #!/usr/bin/env python
#Copyright IBM Corporation 2015.
#LICENSE: Apache License 2.0 http://opensource.org/licenses/Apache-2.0
import os
import optparse
import logging
from voyage import *
def main():
usage = "usage: python %prog -f <config_file> {--list | --migrate --source <source> --container <container> --tar... | apache-2.0 | 8,801,125,674,314,020,000 | 35.117647 | 150 | 0.661645 | false |
Ilphrin/TuxleTriad | Menu.py | 1 | 16142 | # coding: utf-8
import pygame
import os
import sys
import gettext
from functions import *
from color import *
from pygame.locals import *
from game import Application
from Sound import Sound
from Text import Text
from Buttons import Button
from listOfCards import *
from Card import Card
pygame.init()
class Menu(pyga... | mit | 1,228,710,710,715,892,200 | 36.714953 | 78 | 0.477016 | false |
mattilyra/gensim | docs/src/conf.py | 1 | 7457 | # -*- coding: utf-8 -*-
#
# gensim documentation build configuration file, created by
# sphinx-quickstart on Wed Mar 17 13:42:21 2010.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All ... | lgpl-2.1 | -371,278,304,731,654,850 | 32.868182 | 114 | 0.707153 | false |
matham/cutils | cutils/knspace.py | 1 | 15278 | '''Provides namespace functionality for Kivy objects. It allows kivy objects
to be named and then accessed using the namespace.
:class:`KNSpace` instances are the namespaces that store the named objects.
Classes need to inherit from :class:`KNSpaceBehavior` so that the class, when
named, will be stored in the namespac... | mit | 1,435,365,778,809,909,800 | 35.63789 | 101 | 0.623969 | false |
iNecas/katello | cli/test/katello/tests/core/product/product_promote_test.py | 1 | 3293 | import unittest
from mock import Mock
import os
from katello.tests.core.action_test_utils import CLIOptionTestCase, CLIActionTestCase
from katello.tests.core.organization import organization_data
from katello.tests.core.product import product_data
from katello.tests.core.provider import provider_data
from katello.tes... | gpl-2.0 | -6,475,309,587,878,731,000 | 32.262626 | 126 | 0.668084 | false |
takashi-suehiro/rtmtools | rtc_handle_example/rtc_handle/rtc_handle_1.0.py | 1 | 16845 | #/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
# import sys
from omniORB import CORBA, URI
# from omniORB import any
from omniORB import any, cdrMarshal, cdrUnmarshal
import OpenRTM_aist
import RTC
from CorbaNaming import *
import SDOPackage
# from EmbryonicRtc import *
# class RtmEnv :
# rtm ... | mit | -8,554,086,833,814,778,000 | 34.840426 | 103 | 0.581656 | false |
nikdoof/django-eveigb | test_project/settings.py | 1 | 5384 | # Django settings for test_project project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 't... | bsd-3-clause | 2,804,299,625,662,578,700 | 33.292994 | 127 | 0.685921 | false |
eayunstack/oslo.messaging | tests/utils.py | 1 | 2075 | # Copyright 2010-2011 OpenStack Foundation
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyright 2013 Hewlett-Packard Development Company, L.P.
# All Rights Reserved.
# Copyright 2013 Red Hat, Inc.
#
# Licensed under the Apac... | apache-2.0 | 8,998,579,657,641,622,000 | 33.583333 | 78 | 0.701687 | false |
NinjaMSP/crossbar | crossbar/router/test/test_testament.py | 2 | 8815 | #####################################################################################
#
# Copyright (c) Crossbar.io Technologies GmbH
#
# Unless a separate license agreement exists between you and Crossbar.io GmbH (e.g.
# you have purchased a commercial license), the license terms below apply.
#
# Should you enter ... | agpl-3.0 | 2,491,934,011,154,283,500 | 36.67094 | 86 | 0.586954 | false |
prashrock/Python | leetCode/largest_number/create_largest_number_from_array.py | 1 | 1340 | # Use a custom sort comparator to sort the integers
# Converted the sorted integer array into a string
def cmp_to_key(mycmp):
'Convert a cmp= function into a key= function'
class K:
def __init__(self, obj, *args):
self.obj = obj
def __lt__(self, other):
return mycmp(self.... | gpl-2.0 | 4,418,024,888,891,023,400 | 31.682927 | 73 | 0.581343 | false |
emulbreh/lymph | lymph/core/events.py | 1 | 3099 | import re
import logging
from lymph.core.interfaces import Component
from lymph.core import trace
logger = logging.getLogger(__name__)
class Event(object):
def __init__(self, evt_type, body, source=None, headers=None, event_id=None):
self.event_id = event_id
self.evt_type = evt_type
sel... | apache-2.0 | 1,420,763,787,660,582,100 | 26.918919 | 114 | 0.571475 | false |
mesocentrefc/Janua-SMS | janua/actions/sms_usage.py | 1 | 2426 | # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
#
# Copyright (c) 2016 Cédric Clerget - HPC Center of Franche-Comté University
#
# This file is part of Janua-SMS
#
# http://github.com/mesocentrefc/Janua-SMS
#
# This program is free software: you can redistribute it and/or modify
# it under th... | gpl-2.0 | 3,349,284,974,751,728,000 | 25.347826 | 76 | 0.60066 | false |
Dziolas/invenio-oaiserver | tests/test_invenio_oaiserver.py | 1 | 1878 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2015 CERN.
#
# Invenio 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... | gpl-2.0 | -5,224,454,211,882,588,000 | 29.290323 | 76 | 0.714058 | false |
nathanbjenx/cairis | cairis/controllers/TemplateGoalController.py | 1 | 3319 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | apache-2.0 | 2,627,098,913,465,853,000 | 32.525253 | 78 | 0.726424 | false |
andyr0id/PyGFNN | examples/gfnn/example1F.py | 1 | 1657 | #!/usr/bin/env python
__author__ = 'Andrew J. Lambert, andy@andyroid.co.uk'
"""
example1P
A one layer network with fixed internal connections
"""
from pygfnn.tools.plotting.gfnn import *
import pygfnn.tools.shortcuts as gfnn
import numpy as np
import timeit
import matplotlib.pyplot as plt
import scipy.io as sio
if... | gpl-2.0 | 3,656,434,342,488,919,600 | 29.685185 | 129 | 0.608328 | false |
liberiun/cynin-intranet | src/ubify.viewlets/ubify/viewlets/browser/typetitle.py | 1 | 3657 | ###############################################################################
#cyn.in is an open source Collaborative Knowledge Management Appliance that
#enables teams to seamlessly work together on files, documents and content in
#a secure central environment.
#
#cyn.in v2 an open source appliance is distributed un... | gpl-3.0 | 1,373,551,312,006,338,000 | 50.507042 | 152 | 0.710965 | false |
code-for-india/sahana_shelter_worldbank | controllers/vol.py | 1 | 40041 | # -*- coding: utf-8 -*-
"""
Volunteer Management
"""
module = request.controller
resourcename = request.function
if not settings.has_module(module):
raise HTTP(404, body="Module disabled: %s" % module)
s3db.hrm_vars()
# =============================================================================
def index... | mit | -4,564,152,393,702,601,700 | 38.294406 | 96 | 0.471192 | false |
rosenbrockc/fortpy | fortpy/stats/bp.py | 1 | 5243 | """Methods for testing a code library against Fortran best practices to
help uncover subtle bugs that took a while for us to track down. See
especially http://www.cs.rpi.edu/~szymansk/OOF90/bugs.html"""
def _exec_check_pointers(executable):
"""Checks the specified executable for the pointer condition that not
... | mit | -214,200,888,926,042,880 | 42.330579 | 100 | 0.60576 | false |
mitoNGS/MToolBox | aux/filter_HF.py | 1 | 2956 | #!/usr/bin/env python
import fileinput
import sys, os
def usage():
print '''
This script is compatible with MToolBox versions < 1.2 only
This script filters the MToolBox vcf file based on Heteroplasmy threshold
Usage:
filter_HF.py <sample_name> <vcf_file> <HF_threshold[float]> <DP_threshold[float]> <out_type[vc... | gpl-3.0 | -3,761,606,398,086,951,400 | 33.776471 | 356 | 0.60115 | false |
fogleman/DCPU-16 | app/assembler.py | 1 | 16148 | import ply.lex as lex
import ply.yacc as yacc
# Constants
SIZE = 0x10000
# Lookups
BASIC_OPCODES = {
'SET': 0x01,
'ADD': 0x02,
'SUB': 0x03,
'MUL': 0x04,
'MLI': 0x05,
'DIV': 0x06,
'DVI': 0x07,
'MOD': 0x08,
'MDI': 0x09,
'AND': 0x0a,
'BOR': 0x0b,
'XOR': 0x0c,
'SHR': 0x... | mit | 4,979,945,226,758,335,000 | 24.631746 | 78 | 0.560503 | false |
bnkr/selenit | selenibench/scripts.py | 1 | 3871 | from __future__ import print_function
import sys, argparse, selenium, contextlib, os, json, traceback
from datetime import datetime as DateTime
from datetime import timedelta as TimeDelta
from selenium.webdriver import Remote as WebDriverRemote
from selenium.webdriver.support.ui import WebDriverWait
class Selenibench... | mit | -2,705,399,600,824,886,300 | 32.08547 | 86 | 0.547145 | false |
tobykurien/MakerDroid | assetsrc/public.mp3/fabmetheus_utilities/vector3index.py | 1 | 13371 | """
Vector3 is a three dimensional vector class.
Below are examples of Vector3 use.
>>> from vector3 import Vector3
>>> origin = Vector3()
>>> origin
0.0, 0.0, 0.0
>>> pythagoras = Vector3( 3, 4, 0 )
>>> pythagoras
3.0, 4.0, 0.0
>>> pythagoras.magnitude()
5.0
>>> pythagoras.magnitudeSquared()
25
>>> triplePythagoras ... | gpl-3.0 | -3,217,481,328,199,761,400 | 26.289796 | 157 | 0.614315 | false |
IQSS/geoconnect | gc_apps/classification/layer_link_helper.py | 1 | 5041 | """
Used for development to create WorldMap-related links from a layer name
"""
from __future__ import print_function
import logging
import re
import requests
from django.conf import settings
LOGGER = logging.getLogger(__name__)
GEONODE_PREFIX = 'geonode:'
class LayerLink(object):
"""Holds name, link, descriptio... | apache-2.0 | 4,475,897,529,455,973,400 | 29.551515 | 76 | 0.575878 | false |
MetricsGrimoire/sortinghat | tests/test_cmd_log.py | 1 | 8958 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014-2017 Bitergia
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any la... | gpl-3.0 | 3,161,797,829,543,985,000 | 35.263158 | 110 | 0.631126 | false |
sbidoul/buildbot | master/buildbot/www/oauth2.py | 1 | 9591 | # This file is part of Buildbot. Buildbot 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, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... | gpl-2.0 | -19,559,649,487,698,830 | 36.759843 | 89 | 0.603587 | false |
nijx/hypertable | src/py/ThriftClient/client_test.py | 1 | 4079 | import sys
import time
from hypertable.thriftclient import *
from hyperthrift.gen.ttypes import *
try:
client = ThriftClient("localhost", 38080)
print "HQL examples"
try:
namespace = client.namespace_open("bad")
except:
print "Caught exception when tyring to open 'bad' namespace"
namespace = client... | gpl-3.0 | -526,401,585,103,323,140 | 32.162602 | 156 | 0.679333 | false |
earlbellinger/asteroseismology | grid/calibrate.py | 1 | 3590 | #### Calibrate a solar model
#### Author: Earl Bellinger ( bellinger@mps.mpg.de )
#### Stellar Ages & Galactic Evolution Group
#### Max-Planck-Institut fur Sonnensystemforschung
#### Department of Astronomy, Yale University
import numpy as np
import pandas as pd
from scipy import optimize
from os import ... | gpl-2.0 | -8,822,781,440,106,951,000 | 26.72 | 88 | 0.51532 | false |
huajiahen/hotspot | backend/Busy/models.py | 1 | 1154 | # -*- coding:utf-8 -*-
from django.db.models import *
class Event(Model):
content = CharField(u'内容',max_length = 200)
starttime = IntegerField(u'开始时间')
endtime = IntegerField(u'结束时间')
#longitude = DecimalField(u'经度',max_digits = 18,decimal_places = 14)
#latitude = DecimalField(u'纬度',max_digits... | mit | -7,604,758,913,650,735,000 | 38.407407 | 72 | 0.662594 | false |
cmaclell/py_plan | py_plan/problems/blocksworld.py | 1 | 3681 | from operator import ne
from py_search.utils import compare_searches
from py_search.uninformed import depth_first_search
from py_search.uninformed import breadth_first_search
from py_search.uninformed import iterative_deepening_search
from py_plan.total_order import StateSpacePlanningProblem
from py_plan.base import ... | mit | 1,218,365,807,427,348,500 | 33.401869 | 68 | 0.32627 | false |
ntymtsiv/tempest | tempest/thirdparty/boto/test_ec2_instance_run.py | 1 | 14269 | # Copyright 2012 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | apache-2.0 | -516,099,398,364,878,460 | 40.479651 | 78 | 0.583152 | false |
citrix-openstack-build/horizon | horizon/tables/base.py | 1 | 53167 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... | apache-2.0 | 670,515,343,822,811,100 | 37.779723 | 79 | 0.584479 | false |
jromang/retina-old | distinclude/spyderlib/interpreter.py | 1 | 11927 | # -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Shell Interpreter"""
import sys
import atexit
import threading
import ctypes
import os
import re
import os.path as osp
import pydoc
from subproces... | gpl-3.0 | 547,717,842,301,860,860 | 35.26875 | 80 | 0.545035 | false |
danforthcenter/plantcv | tests/tests.py | 1 | 288502 | #!/usr/bin/env python
import pytest
import os
import shutil
import json
import numpy as np
import cv2
import sys
import pandas as pd
from plotnine import ggplot
from plantcv import plantcv as pcv
import plantcv.learn
import plantcv.parallel
import plantcv.utils
# Import matplotlib and use a null Template to block plot... | mit | -1,479,096,808,573,593,300 | 42.811997 | 229 | 0.650335 | false |
spectralpython/spectral | spectral/database/aster.py | 1 | 15620 | '''
Code for reading and managing ASTER spectral library data.
'''
from __future__ import absolute_import, division, print_function, unicode_literals
from spectral.utilities.python23 import IS_PYTHON3, tobytes, frombytes
from .spectral_database import SpectralDatabase
if IS_PYTHON3:
readline = lambda fin: fin.r... | gpl-2.0 | -1,652,097,644,647,048,200 | 33.866071 | 126 | 0.564277 | false |
pbugni/pheme.webAPIclient | pheme/webAPIclient/archive.py | 1 | 4121 | from datetime import datetime
import os
import requests
import json
from pheme.util.config import Config
def url_builder(predicate=None, resource=None, view=None, query_params={}):
"""Build webAPI url from config and passed values
:param predicate: desired action or type of document
:param resource: fil... | bsd-3-clause | 1,370,055,112,182,797,800 | 33.923729 | 78 | 0.645232 | false |
ActiveState/code | recipes/Python/436229_RecordJar_Parser/recipe-436229.py | 1 | 2025 | #!/usr/bin/env python
# recordjar.py - Parse a Record-Jar into a list of dictionaries.
# Copyright 2005 Lutz Horn <lutz.horn@gmx.de>
# Licensed unter the same terms as Python.
def parse_jar(flo):
"""Parse a Record-Jar from a file like object into a list of dictionaries.
This method parses a file like object ... | mit | -8,003,185,806,157,289,000 | 32.75 | 80 | 0.565432 | false |
randomchars/pushbullet.py | tests/fixtures.py | 1 | 2011 | import time
devices_list_response = {
"devices": [
{
"active": True,
"iden": "1",
"created": time.time(),
"modified": time.time(),
"icon": "system",
"generated_nickname": False,
"nickname": "test dev",
"manufact... | mit | -2,881,495,122,680,451,000 | 24.455696 | 62 | 0.380905 | false |
mbourqui/django-publications-bootstrap | publications_bootstrap/admin_views/import_bibtex.py | 1 | 7261 | # -*- coding: utf-8 -*-
import re
from django.contrib import messages
from django.contrib.admin.views.decorators import staff_member_required
from django.http import HttpResponseRedirect
from django.shortcuts import render
from django_countries import countries
from ..bibtex import parse
from ..models import Publica... | mit | -2,223,934,309,947,411,700 | 36.235897 | 112 | 0.428729 | false |
hbeatty/dell-wsman-client-api-python | setup.py | 1 | 1520 | """
Setup file for egg builds
@copyright: 2010-2012
@author: Joseph Tallieu <joseph_tallieu@dell.com>
@author: Vijay Halaharvi <vijay_halaharvi@dell.com>
@organization: Dell Inc. - PG Validation
@license: GNU LGLP v2.1
"""
# This file is part of WSManAPI.
#
# WSManAPI is free software: you can redistribute it an... | lgpl-3.0 | -7,334,710,254,634,723,000 | 36.073171 | 80 | 0.694079 | false |
dchenaux/Yoda | yoda/flask_debugtoolbar_mongo/panel.py | 1 | 2746 | from flask_debugtoolbar.panels import DebugPanel
import jinja2
from . import operation_tracker
from . import jinja_filters
class MongoDebugPanel(DebugPanel):
"""Panel that shows information about MongoDB operations.
"""
name = 'Mongo'
has_content = True
def __init__(self, *args, **kwargs):
... | bsd-3-clause | 3,575,773,966,745,471,000 | 36.616438 | 78 | 0.60488 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.