repo_name stringlengths 5 92 | path stringlengths 4 221 | copies stringclasses 19
values | size stringlengths 4 6 | content stringlengths 766 896k | license stringclasses 15
values | hash int64 -9,223,277,421,539,062,000 9,223,102,107B | line_mean float64 6.51 99.9 | line_max int64 32 997 | alpha_frac float64 0.25 0.96 | autogenerated bool 1
class | ratio float64 1.5 13.6 | config_test bool 2
classes | has_no_keywords bool 2
classes | few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Mzero2010/MaxZone | plugin.video.Mzero/core/downloader.py | 1 | 15031 | # -*- coding: utf-8 -*-
# ------------------------------------------------------------
# Mzero 4
# Copyright 2015 tvalacarta@gmail.com
# http://blog.tvalacarta.info/plugin-xbmc/Mzero/
#
# Distributed under the terms of GNU General Public License v3 (GPLv3)
# http://www.gnu.org/licenses/gpl-3.0.html
# ------------------... | gpl-3.0 | 5,840,123,317,750,125,000 | 36.297767 | 198 | 0.586361 | false | 3.72583 | false | false | false |
googleads/google-ads-python | google/ads/googleads/v8/services/services/age_range_view_service/client.py | 1 | 18043 | # -*- 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 | -6,773,315,631,857,939,000 | 40.28833 | 124 | 0.619853 | false | 4.49166 | false | false | false |
fnivek/Pop-a-Gator | scripts/game_sir_interface.py | 1 | 3921 | #!/usr/bin/env python
from bluetooth import *
import sys
from collections import OrderedDict
import argparse
import serial
# Take in command line args
parser = argparse.ArgumentParser(description='Interface with a game sir remote')
parser.add_argument('--pass_to_serial', action='store_true',
help='Pass the b... | mit | -7,996,774,728,194,808,000 | 28.488722 | 156 | 0.566692 | false | 3.306071 | false | false | false |
openbmc/openbmc-test-automation | bin/event_notification_util.py | 1 | 1499 | #!/usr/bin/env python
r"""
See help text for details.
"""
import sys
save_dir_path = sys.path.pop(0)
modules = ['gen_arg', 'gen_print', 'gen_valid', 'event_notification']
for module in modules:
exec("from " + module + " import *")
sys.path.insert(0, save_dir_path)
parser = argparse.ArgumentParser(
usage='... | apache-2.0 | -7,400,601,391,198,828,000 | 25.298246 | 79 | 0.651101 | false | 3.586124 | false | false | false |
samupl/website | apps/blog/models.py | 1 | 2366 | from django.conf import settings
from django.db import models
from django.db.models.signals import post_delete, post_save
from django.dispatch import receiver
from django.template.defaultfilters import slugify
class Post(models.Model):
author = models.ForeignKey(settings.AUTH_USER_MODEL)
date = models.DateTim... | mit | -5,252,156,682,347,990,000 | 32.323944 | 104 | 0.652578 | false | 3.731861 | false | false | false |
quantifiedcode-bot/invenio-search | setup.py | 1 | 4305 | # -*- 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,711,932,758,240,129,000 | 29.75 | 76 | 0.628339 | false | 3.809735 | true | false | false |
svebk/DeepSentiBank_memex | workflows/images-incremental-update/images-incremental-update.py | 1 | 58831 | import os
import json
import time
import calendar
import datetime
import dateutil.parser
import sys
print(sys.version)
import subprocess
dev = False
if dev:
dev_release_suffix = "_dev"
base_incremental_path = '/user/skaraman/data/images_incremental_update_dev/'
else:
dev_release_suffix = "_release"
b... | bsd-2-clause | 2,145,436,833,996,540,200 | 48.189799 | 322 | 0.640768 | false | 2.949662 | false | false | false |
twitter/pants | src/python/pants/base/worker_pool.py | 1 | 8243 | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import absolute_import, division, print_function, unicode_literals
import multiprocessing
import threading
from builtins import next, object
from multiproce... | apache-2.0 | -2,454,205,278,918,337,000 | 37.339535 | 101 | 0.678151 | false | 3.978282 | false | false | false |
hycis/Pynet | pynet/cost.py | 1 | 3580 | __author__ = "Zhenzhou Wu"
__copyright__ = "Copyright 2012, Zhenzhou Wu"
__credits__ = ["Zhenzhou Wu"]
__license__ = "3-clause BSD"
__email__ = "hyciswu@gmail.com"
__maintainer__ = "Zhenzhou Wu"
import theano.tensor as T
import theano
from pynet.utils.utils import theano_unique
floatX = theano.config.floatX
class Co... | apache-2.0 | -6,236,967,485,249,839,000 | 26.96875 | 79 | 0.550279 | false | 3.176575 | false | false | false |
3liz/QuickOSM | QuickOSM/core/api/connexion_oapi.py | 1 | 6275 | """Manage Overpass API connexion."""
import logging
import os
import re
from typing import List
from qgis.core import QgsFileDownloader
from qgis.PyQt.QtCore import QDir, QEventLoop, QFileInfo, QTemporaryFile, QUrl
from QuickOSM.core.exceptions import (
NetWorkErrorException,
OverpassBadRequestException,
... | gpl-2.0 | 4,600,529,764,808,338,400 | 31.179487 | 79 | 0.578327 | false | 4.214238 | false | false | false |
OpenMined/PySyft | packages/syft/src/syft/proto/core/node/common/action/exception_action_pb2.py | 1 | 6244 | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: proto/core/node/common/action/exception_action.proto
"""Generated protocol buffer code."""
# third party
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf... | apache-2.0 | 2,134,787,039,885,428,000 | 34.477273 | 547 | 0.618834 | false | 3.630233 | false | true | false |
MG-RAST/Shock | shock-server/plug-ins/boto-s3-download.py | 1 | 2570 | #!/usr/bin/python
# boto3 python client to download files from S3 and check md5
# AWS_ACCESS_KEY_ID .. The access key for your AWS account.
# AWS_SECRET_ACCESS_KEY .. The secret key for your AWS account.
# folker@anl.gov
import sys, getopt, boto3, hashlib, io
import argparse
def md5sum(src, length=io.DEFAULT_BUFFER... | bsd-2-clause | 3,889,921,259,526,281,700 | 32.38961 | 134 | 0.638911 | false | 3.422104 | false | false | false |
laughingman7743/PyAthena | tests/test_sqlalchemy_athena.py | 1 | 20111 | # -*- coding: utf-8 -*-
import re
import unittest
import uuid
from datetime import date, datetime
from decimal import Decimal
from urllib.parse import quote_plus
import numpy as np
import pandas as pd
import sqlalchemy
from sqlalchemy import String
from sqlalchemy.engine import create_engine
from sqlalchemy.exc import... | mit | -7,513,084,211,599,442,000 | 36.568224 | 88 | 0.565501 | false | 3.862221 | true | false | false |
rohanpm/qingfanyi | qingfanyi/process/translate.py | 1 | 3333 | # coding=utf-8
# qingfanyi - Chinese to English translation tool
# Copyright (C) 2016 Rohan McGovern <rohan@mcgovern.id.au>
#
# 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 ... | gpl-3.0 | -3,197,915,771,804,864,500 | 27.487179 | 75 | 0.660066 | false | 3.949052 | false | false | false |
fivethreeo/django-dragoman-blog | dragoman_blog/templatetags/dragoman_blog_tags.py | 1 | 1443 | from django import template
register = template.Library()
@register.inclusion_tag('admin/dragoman_blog/submit_line.html', takes_context=True)
def submit_row(context):
"""
Displays the row of buttons for delete and save.
"""
opts = context['opts']
change = context['change']
is_popup = context['... | bsd-3-clause | -6,141,228,518,920,310,000 | 42.757576 | 84 | 0.616078 | false | 3.910569 | false | false | false |
nbstr/demineur | functions.py | 1 | 4297 | #=========================================#
# IMPORTS #
#=========================================#
from beautiful import *
from random import randint
#=========================================#
# CONFIG #
#=========================================#
#... | unlicense | -421,806,785,374,238,600 | 24.622754 | 121 | 0.45291 | false | 3.065186 | false | false | false |
dbednarski/pyhdust | pyhdust/input.py | 1 | 29469 | # -*- coding:utf-8 -*-
"""
PyHdust *input* module: Hdust input tools.
:co-author: Rodrigo Vieira
:license: GNU GPL v3.0 (https://github.com/danmoser/pyhdust/blob/master/LICENSE)
"""
import os as _os
import numpy as _np
from glob import glob as _glob
from itertools import product as _product
import pyhdust.phc as _phc... | gpl-3.0 | -8,789,998,822,184,297,000 | 36.208333 | 166 | 0.488683 | false | 2.934283 | false | false | false |
MyPureCloud/kafka | release.py | 1 | 24941 | #!/usr/bin/env python
#
# 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 "Li... | apache-2.0 | -7,052,171,143,124,083,000 | 47.523346 | 275 | 0.670222 | false | 3.489716 | true | false | false |
googleapis/python-dialogflow | google/cloud/dialogflow_v2/services/versions/transports/base.py | 1 | 8840 | # -*- 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 | -1,845,300,222,030,163,700 | 36.457627 | 108 | 0.637557 | false | 4.154135 | false | false | false |
JaDogg/__py_playground | reference/sketchbook/chess/chess.py | 1 | 8066 | """
Chess board
No computer player yet
Sucks in other ways too
TO DO: look over http://home.hccnet.nl/h.g.muller/max-src2.html
"""
## b = InitialChessBoard()
## print str(b)
#. rnbqkbnr
#. pppppppp
#.
#.
#.
#.
#. PPPPPPPP
#. RNBQKBNR
## pw = HumanPlayer(white)
## pb = HumanPlayer(bl... | mit | -2,925,017,823,287,011,300 | 30.263566 | 131 | 0.508926 | false | 3.376308 | false | false | false |
vladiibine/whispy_lispy | src/whispy_lispy/cst.py | 1 | 4255 | # -*- coding utf-8 -*-
"""
Concrete syntax tree stuff
Lexer should return tokens that are instances of classes found here
"""
from __future__ import unicode_literals
import six
from whispy_lispy import keywords
class CSTError(Exception):
pass
class Token(object):
"""Concrete syntax tree node.
Can re... | mit | -7,624,388,774,132,405,000 | 25.761006 | 77 | 0.564512 | false | 4.037002 | false | false | false |
mcStargazer/nlp_talk_apr2017 | nlp_demo.py | 1 | 5920 | # -*- coding: utf-8 -*-
##############################################################################
# references
##############################################################################
# www.udemy.com/machinelearning/ - I really enjoyed this course. Take it!
# original data/code at www.superdatascience.com/... | mit | -1,762,223,717,350,091,000 | 39.827586 | 78 | 0.538176 | false | 3.899868 | true | false | false |
ciaracdb/ACMusic | acmusic/settings.py | 1 | 4739 | """
Django settings for gettingstarted project, on Heroku. For more info, see:
https://github.com/heroku/heroku-django-template
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/se... | apache-2.0 | 228,340,471,517,918,800 | 28.993671 | 91 | 0.685588 | false | 3.406902 | false | false | false |
ContinuumIO/ashiba | enaml/enaml/qt/qt_dock_area.py | 1 | 8630 | #------------------------------------------------------------------------------
# Copyright (c) 2013, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-------------------------------------------------... | bsd-3-clause | 3,861,476,787,407,625,700 | 32.065134 | 79 | 0.585747 | false | 4.236622 | false | false | false |
dstroppa/openstack-smartos-nova-grizzly | nova/virt/driver.py | 1 | 37731 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 Justin Santa Barbara
# 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.apach... | apache-2.0 | 6,519,940,940,505,130,000 | 39.310897 | 79 | 0.64496 | false | 4.757408 | false | false | false |
wegamekinglc/alpha-mind | alphamind/benchmarks/portfolio/rankbuild.py | 1 | 3088 | # -*- coding: utf-8 -*-
"""
Created on 2017-4-27
@author: cheng.li
"""
import datetime as dt
import numpy as np
import pandas as pd
from alphamind.portfolio.rankbuilder import rank_build
def benchmark_build_rank(n_samples: int, n_loops: int, n_included: int) -> None:
print("-" * 60)
print... | mit | 4,565,990,175,895,864,300 | 34.761905 | 101 | 0.540479 | false | 3.658768 | false | false | false |
ryanmiao/libvirt-test-API | repos/setVcpus/vcpupin_config.py | 1 | 3547 | #!/usr/bin/env python
# Test domain vcpu pin with flag VIR_DOMAIN_AFFECT_CONFIG, check
# domain config xml with vcpupin configuration.
import re
from xml.dom import minidom
import libvirt
from libvirt import libvirtError
from src import sharedmod
from utils import utils
required_params = ('guestname', 'vcpu', 'cpul... | gpl-2.0 | -5,593,081,498,587,919,000 | 31.541284 | 76 | 0.594587 | false | 3.714136 | true | false | false |
kubaszostak/gdal-dragndrop | osgeo/apps/Python27/Scripts/esri2wkt.py | 1 | 2143 | #!C:\OSGEO4~1\bin\python.exe
# ******************************************************************************
# $Id: esri2wkt.py 7464f4b11b93bb2d1098d1b962907228932bf8c1 2018-05-03 19:56:49 +1000 Ben Elliston $
#
# Project: GDAL
# Purpose: Simple command line program for translating ESRI .prj files
# ... | mit | -157,707,794,943,707,520 | 38.433962 | 101 | 0.631358 | false | 3.467638 | false | false | false |
OpenHumans/open-humans | public_data/models.py | 1 | 3781 | from collections import OrderedDict
from itertools import groupby
from django.db import models
from django.db.models import F
from common.fields import AutoOneToOneField
from open_humans.models import Member
from private_sharing.models import (
DataRequestProjectMember,
ProjectDataFile,
id_label_to_projec... | mit | 3,227,372,887,171,134,000 | 29.491935 | 88 | 0.642687 | false | 4.109783 | false | false | false |
bzcheeseman/pytorch-EMM | Examples/basic_controller.py | 1 | 15995 | #
# Created by Aman LaChapelle on 3/23/17.
#
# pytorch-EMM
# Copyright (c) 2017 Aman LaChapelle
# Full license at pytorch-EMM/LICENSE.txt
#
import torch
import torch.nn as nn
import torch.nn.functional as Funct
from torch.autograd import Variable
import torch.optim as optim
import numpy as np
from Utils import num_fl... | gpl-3.0 | -1,579,938,047,493,311,000 | 34.153846 | 117 | 0.519662 | false | 3.508445 | true | false | false |
decabyte/analog_sensors_board | scripts/analog_sensors.py | 1 | 4417 | # analog_sensors.py
# author: Valerio De Carolis <valerio.decarolis@gmail.com>
# date: 2013-10-30
# license: MIT
import sys
import os
import time
import signal
import serial
from serial import Serial, SerialException
# default serial configuration
DEFAULT_CONF = {
'port': '/dev/ttyACM3',
'baudrate': 57600,
'b... | mit | -6,909,965,110,469,711,000 | 19.737089 | 61 | 0.659724 | false | 2.724861 | false | false | false |
hellowebapp/hellowebapp-ic-code | collection/models.py | 1 | 2080 | from __future__ import unicode_literals
from PIL import Image
from django.contrib.auth.models import User
from django.db import models
class Timestamp(models.Model):
created = models.DateTimeField(auto_now_add=True)
updated = models.DateTimeField(auto_now=True)
class Meta:
abstract = True
clas... | mit | -5,621,587,585,220,553,000 | 28.714286 | 68 | 0.650481 | false | 3.823529 | false | false | false |
sannecottaar/burnman | burnman/material.py | 1 | 20844 | from __future__ import print_function
# This file is part of BurnMan - a thermoelastic and thermodynamic toolkit for the Earth and Planetary Sciences
# Copyright (C) 2012 - 2017 by the BurnMan team, released under the GNU
# GPL v2 or later.
import numpy as np
def material_property(func):
"""
Decorator @mater... | gpl-2.0 | -7,016,233,993,997,625,000 | 28.607955 | 117 | 0.576473 | false | 4.388211 | false | false | false |
j-carl/ansible | lib/ansible/module_utils/facts/system/distribution.py | 1 | 31164 | # -*- coding: utf-8 -*-
# Copyright: (c) 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
import os
import platform
import re
from ansible.module_utils.common.sys_info ... | gpl-3.0 | -1,558,401,853,560,547,600 | 43.969697 | 129 | 0.566872 | false | 3.904285 | false | false | false |
lsandig/apollon | ag.py | 1 | 6681 | #! /usr/bin/python3
# Command line program to create svg apollonian circles
# Copyright (c) 2014 Ludger Sandig
# This file is part of apollon.
# Apollon 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, eithe... | gpl-3.0 | 5,160,250,914,175,473,000 | 36.960227 | 209 | 0.640024 | false | 3.369138 | false | false | false |
AustereCuriosity/astropy | astropy/config/paths.py | 1 | 10744 | # Licensed under a 3-clause BSD style license - see LICENSE.rst
""" This module contains functions to determine where configuration and
data/cache files used by Astropy should be placed.
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
from ..extern impor... | bsd-3-clause | 6,146,739,670,736,519,000 | 33.107937 | 99 | 0.612249 | false | 4.091394 | true | false | false |
sqall01/alertR | alertClientExecuter/alertRclient.py | 1 | 12421 | #!/usr/bin/env python3
# written by sqall
# twitter: https://twitter.com/sqall01
# blog: https://h4des.org
# github: https://github.com/sqall01
#
# Licensed under the GNU Affero General Public License, version 3.
import sys
import os
import stat
from lib import ServerCommunication, ConnectionWatchdog, Receiver
from l... | agpl-3.0 | 694,129,595,070,432,500 | 41.979239 | 120 | 0.591901 | false | 4.605488 | true | false | false |
kwikteam/phy | tools/api.py | 1 | 7682 | # -*- coding: utf-8 -*-
"""Minimal API documentation generation."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
from importlib import import_module
import inspect
import os.path as op
import r... | bsd-3-clause | -4,705,370,727,807,438,000 | 29.355731 | 93 | 0.564193 | false | 4.004171 | false | false | false |
thinkle/gourmet | gourmet/check_encodings.py | 1 | 10430 | from typing import Dict
from gi.repository import Gtk
from .gdebug import debug
from .gtk_extras import dialog_extras as de
from gettext import gettext as _
from .prefs import Prefs
class CheckEncoding:
"""A class to read a file and guess the correct text encoding."""
encodings = ['iso8859', 'ascii', 'latin_... | gpl-2.0 | -2,510,780,388,387,652,600 | 40.553785 | 125 | 0.541611 | false | 3.976363 | false | false | false |
jakenjarvis/pyOss | MasterlistChecker.py | 1 | 12321 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# This file encoding UTF-8 no BOM. このファイルの文字コードはUTF-8 BOM無しです。
################################################################################
__appname__ = "MasterlistChecker.py"
__author__ = "Jaken<Jaken.Jarvis@gmail.com>"
__copyright__ = "Copyright 2010, Jaken"
... | gpl-3.0 | -4,486,569,772,765,041,000 | 37.088136 | 155 | 0.479403 | false | 3.579944 | false | false | false |
yk5/incubator-airflow | airflow/hooks/S3_hook.py | 1 | 12717 | # -*- 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 | -2,631,231,125,961,501,700 | 34.621849 | 108 | 0.57663 | false | 4.341755 | false | false | false |
mluke93/osf.io | website/routes.py | 1 | 51178 | # -*- coding: utf-8 -*-
import os
import httplib as http
from flask import request
from flask import send_from_directory
from framework import status
from framework import sentry
from framework.auth import cas
from framework.routing import Rule
from framework.flask import redirect
from framework.routing import WebRen... | apache-2.0 | 8,155,702,705,884,056,000 | 30.263286 | 147 | 0.506819 | false | 4.252077 | false | false | false |
Eric89GXL/vispy | vispy/visuals/graphs/layouts/force_directed.py | 1 | 7502 | # -*- coding: utf-8 -*-
# Copyright (c) Vispy Development Team. All Rights Reserved.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
"""
Force-Directed Graph Layout
===========================
This module contains implementations for a force-directed layout, where the
graph is modelled like a... | bsd-3-clause | -9,037,603,166,237,468,000 | 34.386792 | 77 | 0.589443 | false | 4.274644 | false | false | false |
mrachinskiy/booltron | ops_destructive/destructive_func.py | 1 | 5385 | # ##### BEGIN GPL LICENSE BLOCK #####
#
# Booltron super add-on for super fast booleans.
# Copyright (C) 2014-2021 Mikhail Rachinskiy
#
# 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, eith... | gpl-3.0 | 4,390,248,468,535,569,000 | 25.268293 | 84 | 0.591272 | false | 3.609249 | false | false | false |
googleapis/python-pubsub | google/pubsub_v1/services/schema_service/pagers.py | 1 | 5563 | # -*- 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 o... | apache-2.0 | 3,531,521,777,943,690,000 | 34.433121 | 87 | 0.6421 | false | 4.415079 | false | false | false |
pozetroninc/micropython | tools/codeformat.py | 1 | 5981 | #!/usr/bin/env python3
#
# This file is part of the MicroPython project, http://micropython.org/
#
# The MIT License (MIT)
#
# Copyright (c) 2020 Damien P. George
# Copyright (c) 2020 Jim Mussared
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated document... | mit | -5,834,360,555,829,730,000 | 32.982955 | 97 | 0.584852 | false | 3.742804 | false | false | false |
mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/lib/galaxy/model/migrate/versions/0056_workflow_outputs.py | 1 | 1144 | """
Migration script to create tables for adding explicit workflow outputs.
"""
from sqlalchemy import *
from sqlalchemy.orm import *
from migrate import *
from migrate.changeset import *
import logging
logging.basicConfig( level=logging.DEBUG )
log = logging.getLogger( __name__ )
# Need our custom types, but don't ... | gpl-3.0 | 321,194,510,091,218,500 | 27.6 | 107 | 0.693182 | false | 3.958478 | false | false | false |
dc3-plaso/plaso | plaso/cli/extract_analyze_tool.py | 1 | 2810 | # -*- coding: utf-8 -*-
"""The extraction and analysis CLI tool."""
import datetime
import os
from plaso.cli import status_view_tool
from plaso.lib import errors
class ExtractionAndAnalysisTool(status_view_tool.StatusViewTool):
"""Class that implements a combined extraction and analysis CLI tool."""
def __init... | apache-2.0 | 8,326,963,996,448,086,000 | 30.931818 | 80 | 0.688968 | false | 3.935574 | false | false | false |
lmarent/network_agents_ver2_python | agents/GraphExecution.py | 1 | 4105 | import multiprocessing
from ProviderAgentException import ProviderException
import MySQLdb
import logging
import foundation.agent_properties
logger = logging.getLogger('presenter_application')
logger.setLevel(logging.INFO)
fh = logging.FileHandler('presenter_logs.log')
fh.setLevel(logging.INFO)
formatter = logging.For... | mit | -8,014,453,808,743,486,000 | 38.471154 | 114 | 0.552741 | false | 4.016634 | false | false | false |
Newsboy-VA/Newsboy-Core | core/core.py | 1 | 1657 | #!/usr/bin/env python3
import asyncio
import sys
import logging
import argparse
from nlu import NLU
from client_communication import VAClientHandler
from module_communication import VAModuleHandler
class VirtualAssistant(object):
''' '''
def __init__(self):
parser = argparse.ArgumentParser(
... | gpl-3.0 | 4,354,760,709,866,121,000 | 27.084746 | 79 | 0.613156 | false | 3.908019 | false | false | false |
josiah-wolf-oberholtzer/discograph | discograph/ui.py | 1 | 3715 | # -*- encoding: utf-8 -*-
import json
from flask import Blueprint
from flask import current_app
from flask import make_response
from flask import request
from flask import render_template
from flask import url_for
from discograph import exceptions
from discograph import helpers
blueprint = Blueprint('ui', __name__, ... | mit | 2,357,549,400,716,320,300 | 31.596491 | 77 | 0.644415 | false | 3.678218 | false | false | false |
cl4u2/chirp | chirp/xml_ll.py | 1 | 7989 | # Copyright 2008 Dan Smith <dsmith@danplanet.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 3 of the License, or
# (at your option) any later version.
#
# This program is ... | gpl-3.0 | 3,356,739,449,751,182,300 | 30.956 | 79 | 0.587182 | false | 3.12926 | false | false | false |
tedkulp/bossogg | boss3/Database.py | 1 | 40212 | #Boss Ogg - A Music Server
#(c)2003 by Ted Kulp (wishy@comcast.net)
#This project's homepage is: http://bossogg.wishy.org
#
#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 L... | gpl-2.0 | -2,373,406,627,346,853,400 | 38.735178 | 411 | 0.680643 | false | 3.009205 | false | false | false |
Tapo4ek/django-cacheops | cacheops/query.py | 1 | 20226 | # -*- coding: utf-8 -*-
import sys
import json
import threading
import six
from funcy import select_keys, cached_property, once, once_per, monkey, wraps, walk
from funcy.py2 import mapcat, map
from .cross import pickle, md5
import django
from django.utils.encoding import smart_str, force_text
from django.core.exceptio... | bsd-3-clause | -6,195,858,916,017,696,000 | 37.234405 | 98 | 0.597399 | false | 4.125229 | false | false | false |
leigh123linux/Cinnamon | files/usr/share/cinnamon/cinnamon-settings/modules/cs_workspaces.py | 3 | 2070 | #!/usr/bin/python3
from SettingsWidgets import SidePage
from xapp.GSettingsWidgets import *
class Module:
name = "workspaces"
category = "prefs"
comment = _("Manage workspace preferences")
def __init__(self, content_box):
keywords = _("workspace, osd, expo, monitor")
sidePage = SideP... | gpl-2.0 | 622,025,873,954,569,200 | 42.125 | 193 | 0.638164 | false | 3.812155 | false | false | false |
vmassuchetto/dnstorm | dnstorm/app/migrations/0005_auto__add_field_idea_description.py | 1 | 16145 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Criteria.created'
db.add_column('dnstorm_criteria', 'crea... | gpl-2.0 | -7,145,299,977,409,573,000 | 81.377551 | 208 | 0.552865 | false | 3.579823 | false | false | false |
czepluch/pysecp256k1 | c_secp256k1/__init__.py | 1 | 9618 | import numbers
import struct
from glob import glob
from os import path
try:
from secrets import SystemRandom
random = SystemRandom()
except ImportError:
try:
from random import SystemRandom
random = SystemRandom()
except ImportError:
import random
from bitcoin import electrum_sig... | mit | -740,912,916,495,049,200 | 26.797688 | 96 | 0.638698 | false | 3.374737 | false | false | false |
LamaHamadeh/Microsoft-DAT210x | Module 5/assignment3.py | 1 | 6640 | '''
author Lama Hamadeh
'''
import pandas as pd
from datetime import timedelta
import matplotlib.pyplot as plt
import matplotlib
from sklearn.cluster import KMeans
matplotlib.style.use('ggplot') # Look Pretty
#
# INFO: This dataset has call records for 10 users tracked over the course of 3 years.
# Your job is to fi... | mit | -1,770,293,944,817,420,300 | 33.764398 | 119 | 0.708434 | false | 3.316683 | false | false | false |
SiniAghilas/scripts | source/python/script_martin_algorithm.py | 1 | 5564 | #!/usr/bin/jython
import os
import sys
from java.io import FileOutputStream
import logging
import optparse
import getopt
import string
__all__ = []
__version__ = 0.1
__date__ = '15-03-2015'
__updated__ ='21-03-2016'
__author__='asini'
## related path
if os.path.dirname(sys.argv[0])!= "":
directery_name=os.path.dir... | gpl-3.0 | -2,692,751,104,350,632,400 | 31.923077 | 183 | 0.682063 | false | 3.060506 | false | false | false |
hankcs/HanLP | hanlp/components/mtl/tasks/tok/reg_tok.py | 1 | 5225 | # -*- coding:utf-8 -*-
# Author: hankcs
# Date: 2020-08-02 16:51
import logging
from typing import Union, List, Dict, Any, Iterable, Tuple
import torch
from alnlp.modules import util
from torch import Tensor
from torch.utils.data import DataLoader
from hanlp.common.dataset import SamplerBuilder, PadSequenceDataLoader... | apache-2.0 | 9,092,129,869,008,547,000 | 46.93578 | 115 | 0.576459 | false | 4.328915 | false | false | false |
CSIRT-MU/Stream4Flow | applications/detection/ddos/spark/detection_ddos.py | 1 | 10022 | # -*- coding: utf-8 -*-
#
# MIT License
#
# Copyright (c) 2016 Michal Stefanik <stefanik.m@mail.muni.cz>, Milan Cermak <cermak@ics.muni.cz>
# Institute of Computer Science, Masaryk University
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentati... | mit | -2,848,101,401,985,156,600 | 45.398148 | 128 | 0.669627 | false | 4.042759 | false | false | false |
pony012/PruebaServicioCucea | app/app.py | 1 | 2764 | # from flask import Flask
from flask import render_template, redirect, url_for, flash
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField, BooleanField
from wtforms.validators import Required, Length, EqualTo, DataRequired
# from flask_mongoengine import MongoEngine
from flask_se... | mit | -703,852,059,490,693,200 | 30.770115 | 77 | 0.671852 | false | 3.656085 | false | false | false |
utarsuno/quasar_source | deprecated/c_processes/c_compiler.py | 1 | 1140 | # coding=utf-8
"""This module, c_compiler.py, is a utility program to compiling c programs."""
from universal_code.shell_abstraction.shell_command_runner import run_shell_command_and_get_results
def create_object_file(source_file_path, object_output_path):
"""Creates an object file."""
return _run_command_and_ret... | mit | -659,934,029,010,199,700 | 38.310345 | 141 | 0.716667 | false | 3.048128 | false | false | false |
MSEMJEJME/Get-Dumped | renpy/easy.py | 1 | 4218 | # Copyright 2004-2012 Tom Rothamel <pytom@bishoujo.us>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, m... | gpl-2.0 | 1,460,786,579,161,761,800 | 28.704225 | 82 | 0.584637 | false | 3.629948 | false | false | false |
carbonblack/cb-event-duplicator | cbopensource/tools/eventduplicator/transporter.py | 1 | 14136 | from __future__ import absolute_import, division, print_function
import logging
import datetime
from cbopensource.tools.eventduplicator.utils import get_process_id, get_parent_process_id
import sys
__author__ = 'jgarman'
log = logging.getLogger(__name__)
class Transporter(object):
def __init__(self, input_sourc... | mit | 3,804,607,781,867,005,400 | 37.835165 | 119 | 0.491865 | false | 4.239952 | false | false | false |
GrognardsFromHell/TemplePlus | tpdatasrc/co8infra/scr/Spell740 - Ray of Clumsiness.py | 1 | 1719 | from toee import *
import tpdp
def OnBeginSpellCast( spell ):
print "Ray of Cluminess OnBeginSpellCast"
print "spell.target_list=", spell.target_list
print "spell.caster=", spell.caster, " caster.level= ", spell.caster_level
def OnSpellEffect( spell ):
print "Ray of Clumsiness OnSpellEffect"
def OnBeginRound( sp... | mit | -6,098,167,636,621,271,000 | 31.45283 | 111 | 0.733566 | false | 2.612462 | false | false | false |
arkon/cdf-scrapers | labs/labs.py | 1 | 2979 | from collections import OrderedDict
from html.parser import HTMLParser
import argparse
import datetime
import json
import os
import sys
import time
import urllib.request
class PageParser(HTMLParser):
"""Parser for CDF Lab Machine Usage page."""
def __init__(self):
HTMLParser.__init__(self)
#... | mit | -283,823,200,020,091,780 | 24.681034 | 77 | 0.536757 | false | 3.998658 | false | false | false |
Leibniz137/testinfra | testinfra/modules/supervisor.py | 1 | 3502 | # coding: utf-8
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# dist... | apache-2.0 | 7,123,089,475,247,661,000 | 29.99115 | 74 | 0.590805 | false | 4.154211 | false | false | false |
JessWalters/VinnyBot | Core/Stats.py | 1 | 2045 | import glob
import json
import os
import threading
import discord
from urllib.request import urlopen
from urllib.request import Request
from Config import getToken
commandsCalled = 0
members = {}
VINNY_COLOR = int('008cba', 16)
async def getStats(message, client):
serverCount = 0
channelCount = 0
for ser... | mit | -4,362,727,674,846,634,000 | 33.661017 | 134 | 0.632274 | false | 3.724954 | false | false | false |
dchaplinsky/pep.org.ua | pepdb/core/migrations/0160_auto_20190801_1806.py | 1 | 1125 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.22 on 2019-08-01 15:06
from __future__ import unicode_literals
from django.db import migrations, models
def publish_everything(apps, schema_editor):
Company = apps.get_model("core", "Company")
Person = apps.get_model("core", "Person")
Person.objects.all(... | mit | 1,302,245,182,735,781,600 | 31.142857 | 141 | 0.643556 | false | 3.45092 | false | false | false |
delitamakanda/socialite | app/main/forms.py | 1 | 2488 | from flask_wtf import Form
from flask_pagedown.fields import PageDownField
from wtforms import TextField, StringField, SubmitField, TextAreaField, BooleanField, SelectField, ValidationError
from wtforms.validators import Required, Length, Regexp, EqualTo, Email
from ..models import User, Role, Comment
class CommentFo... | mit | -8,109,677,442,507,174,000 | 43.428571 | 183 | 0.679662 | false | 3.961783 | false | false | false |
fred806/Pype | pypeNuke.py | 1 | 52150 | import nuke
import nukescripts
import os
from xml.dom import minidom
from xml.dom.minidom import Document
from xml.etree import ElementTree as ET
import getpass
import re
import ftplib
from ftplib import FTP
import uuid
import os2emxpath as path
import subprocess as sp
import logging
pypePath = os.envir... | mit | -3,904,076,662,467,990,500 | 42.763948 | 245 | 0.527651 | false | 3.810463 | false | false | false |
bradkav/ATLASfits | DiphotonFits.py | 1 | 1961 | #--DiphotonFits.py - Version 1 - 04/02/2016
#--Author: Bradley J Kavanagh
#--Summary: Code for fitting the ATLAS diphoton data
#--and calculating the significance of the 750 GeV excess
#--Note: Requires emcee (http://dan.iel.fm/emcee/current/)
#--Please report any problems to: bradkav@gmail.com
print "----Likelihood... | mit | -6,611,880,352,664,472,000 | 29.169231 | 68 | 0.570117 | false | 2.913819 | false | false | false |
yangautumn/turing_pattern | amorphous_pattern/grid_graph.py | 1 | 1941 | """
Simulate how Droplets will perform with Young's Model on Grid Graphs with different density
Author: Yang Li
Date: July 14, 2017
# randomly generate N droplets with diameter = 4.5cm within a square
of length 60cm
"""
from AmorphousGraph import *
# 'factor' value kind of means how much strength to push each ... | gpl-3.0 | 1,260,177,515,249,739,000 | 25.958333 | 91 | 0.646574 | false | 2.615903 | false | false | false |
DeflatedPickle/Colony | colony/time.py | 1 | 1986 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
""""""
from tkinter import IntVar
__title__ = "Time"
__author__ = "DeflatedPickle"
__version__ = "1.3.1"
class Time(object):
def __init__(self, hours: int = 0, minutes: int = 0, seconds: int = 0):
self._hours = IntVar(value=hours)
self._minutes = In... | mit | -9,133,802,816,021,608,000 | 27.371429 | 110 | 0.552367 | false | 3.69145 | false | false | false |
Sinar/telus | lib/pymg3.py | 1 | 7566 | #!/usr/bin/python
"""
This is a module for dealing with MongoDB via PyMongo.
Use this module to manage databases and collections in MongoDB using
the Python driver, PyMongo. The API operation commands have slight
differences between `mongo` shell and `pymongo` in Python scripts.
MongoDB manual (https://docs.mongodb.c... | gpl-3.0 | -5,252,623,188,029,648,000 | 33.866359 | 70 | 0.649749 | false | 4.061192 | false | false | false |
aerospace-notebook/aerospace-notebook | nbimport.py | 1 | 2719 | """
Module.
"""
import io, os, sys, types
from IPython import nbformat
from IPython.core.interactiveshell import InteractiveShell
def find_notebook(fullname, path=None):
"""find a notebook, given its fully qualified name and an optional path
This turns "foo.bar" into "foo/bar.ipynb"
and tries turning "Foo... | bsd-3-clause | -4,277,971,977,055,841,000 | 30.988235 | 90 | 0.579257 | false | 3.91223 | false | false | false |
vallemrv/tpvB3 | tpv_for_eetop/tpv/controllers/arqueo.py | 1 | 6717 | # -*- coding: utf-8 -*-
# @Author: Manuel Rodriguez <valle>
# @Date: 10-May-2017
# @Email: valle.mrv@gmail.com
# @Last modified by: valle
# @Last modified time: 17-Mar-2018
# @License: Apache license vesion 2.0
from kivy.uix.anchorlayout import AnchorLayout
from kivy.properties import ObjectProperty, StringProp... | apache-2.0 | -6,670,678,691,411,380,000 | 31.765854 | 79 | 0.57749 | false | 3.053182 | false | false | false |
kingname/Bi_BiBi | jikexueyuan/webControlWithDataBase.py | 1 | 1508 | #--coding:utf8--
from flask.ext.bootstrap import Bootstrap
from flask import Flask, render_template, redirect
from flask.ext.wtf import Form
from wtforms import StringField, SubmitField, TextAreaField
from util.DataBaseManager import DataBaseManager
app = Flask(__name__)
bootstrap = Bootstrap(app)
app. config['SECRET... | gpl-3.0 | -7,558,096,615,025,651,000 | 34.560976 | 93 | 0.674897 | false | 3.446809 | false | false | false |
Arello-Mobile/sphinx-confluence | sphinx_confluence/__init__.py | 1 | 20132 | # -*- coding: utf-8 -*-
"""
https://confluence.atlassian.com/display/DOC/Confluence+Storage+Format
"""
from distutils.version import LooseVersion
import os
from docutils import nodes
from docutils.parsers.rst import directives, Directive, roles
from docutils.parsers.rst.directives import images
from docutils.parser... | mit | 2,380,515,453,393,359,000 | 33.179966 | 113 | 0.582853 | false | 3.828832 | false | false | false |
gsantovena/marathon | tests/system/test_marathon_root.py | 1 | 28234 | """ Test using root marathon.
This test suite imports all common tests found in marathon_common.py which are
to be tested on root marathon and MoM.
In addition it contains tests which are specific to root marathon, specifically
tests round dcos services registration and control and security.
"""
import... | apache-2.0 | -217,581,934,169,658,050 | 34.073292 | 158 | 0.624495 | false | 3.681575 | true | false | false |
kubevirt/client-python | kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_time.py | 1 | 2430 | # coding: utf-8
"""
KubeVirt API
This is KubeVirt API an add-on for Kubernetes.
OpenAPI spec version: 1.0.0
Contact: kubevirt-dev@googlegroups.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class K8sIoApi... | apache-2.0 | 7,947,710,263,294,770,000 | 23.545455 | 77 | 0.518519 | false | 4.300885 | false | false | false |
chrisvans/roasttron | docs/conf.py | 1 | 7821 | # -*- coding: utf-8 -*-
#
# roasttron documentation build configuration file, created by
# sphinx-quickstart.
#
# 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 configuration values have... | mit | 6,534,412,259,365,037,000 | 30.922449 | 80 | 0.697737 | false | 3.769157 | true | false | false |
untitaker/python-webuntis | webuntis/objects.py | 1 | 29012 | """
This file is part of python-webuntis
:copyright: (c) 2013 by Markus Unterwaditzer.
:license: BSD, see LICENSE for more details.
"""
import datetime
from webuntis.utils import datetime_utils, lazyproperty, \
timetable_utils
class Result(object):
"""Base class used to represent most API object... | bsd-3-clause | 4,595,428,751,574,091,300 | 27.555118 | 115 | 0.576106 | false | 4.085622 | false | false | false |
dims/cinder | cinder/volume/drivers/dell/dell_storagecenter_common.py | 1 | 55203 | # Copyright 2015 Dell Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | apache-2.0 | 7,205,747,925,299,166,000 | 44.622314 | 79 | 0.531366 | false | 4.868419 | false | false | false |
simoncozens/GlyphsPlugins | Comb.glyphsFilter/Contents/Resources/plugin.py | 1 | 3651 | # encoding: utf-8
from GlyphsApp.plugins import *
from math import cos, sin
from glyphmonkey import *
from itertools import izip
from GlyphsApp import LINE
class Comb(FilterWithDialog):
# Definitions of IBOutlets
# The NSView object from the User Interface. Keep this here!
dialog = objc.IBOutlet()
# Text field... | mit | -6,872,188,751,832,791,000 | 29.425 | 111 | 0.641468 | false | 2.825851 | false | false | false |
bucko909/powerpod | powerpod/types.py | 1 | 25068 | from collections import namedtuple
import datetime
import calendar
import struct
import sys
class StructType(object):
"""
Automatically uses SHAPE to pack/unpack simple structs.
"""
@classmethod
def from_binary(cls, data):
try:
return cls(*cls._decode(*struct.unpack(cls.SHAPE, data)))
except:
sys.stderr... | bsd-2-clause | -8,511,836,035,023,288,000 | 38.230047 | 489 | 0.65079 | false | 2.74357 | false | false | false |
snd/dejavu | recognize.py | 1 | 1047 | import sys
import warnings
warnings.filterwarnings("ignore")
import argparse
import timeit
from dejavu import Dejavu
from dejavu.timer import Timer
from dejavu.recognize import FileRecognizer
parser = argparse.ArgumentParser()
parser.add_argument("file", help="the file to recognize")
parser.add_argument(
"-... | mit | -60,996,768,827,672,870 | 22.266667 | 75 | 0.627507 | false | 3.561224 | false | false | false |
mgautierfr/ediap | libs/painter/__init__.py | 1 | 3074 | # This file is part of Edia.
#
# Ediap 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.
#
# Edia is distributed in the hope that it will... | gpl-2.0 | 42,613,606,250,163,280 | 30.690722 | 111 | 0.634027 | false | 3.537399 | false | false | false |
pfouque/deezer-python | deezer/client.py | 1 | 7891 | """
Implements a client class to query the
`Deezer API <http://developers.deezer.com/api>`_
"""
import json
try: # pragma: no cover - python 2
from urllib import urlencode
from urllib2 import urlopen
except ImportError: # pragma: no cover - python 3
from urllib.parse import urlencode
from urllib.requ... | mit | -2,699,333,509,705,244,000 | 30.564 | 80 | 0.582816 | false | 4.052902 | false | false | false |
gajim/gajim | win/misc/create-launcher.py | 1 | 5971 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2016 Christoph Reiter
#
# 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... | gpl-3.0 | -4,010,021,185,229,620,700 | 27.706731 | 81 | 0.610283 | false | 3.367738 | false | false | false |
geometalab/Vector-Tiles-Reader-QGIS-Plugin | plugin/util/global_map_tiles.py | 1 | 14349 | #!/usr/bin/env python
###############################################################################
# $Id$
#
# Project: GDAL2Tiles, Google Summer of Code 2007 & 2008
# Global Map Tiles Classes
# Purpose: Convert a raster into TMS tiles, create KML SuperOverlay EPSG:4326,
# generate a simple... | gpl-2.0 | 6,512,009,764,957,224,000 | 40.351585 | 113 | 0.621298 | false | 3.771091 | false | false | false |
droodle/kansha | kansha/card/comp.py | 1 | 12065 | # -*- coding:utf-8 -*-
# --
# Copyright (c) 2012-2014 Net-ng.
# All rights reserved.
#
# This software is licensed under the BSD License, as described in
# the file LICENSE.txt, which you should have received as part of
# this distribution.
# --
import dateutil.parser
from nagare import component, log, security
from ... | bsd-3-clause | -3,670,669,339,380,194,000 | 31.964481 | 173 | 0.594115 | false | 4.077391 | false | false | false |
mcalmer/spacewalk | client/rhel/rhnlib/rhn/rpclib.py | 1 | 24163 | #
# This module contains all the RPC-related functions the RHN code uses
#
# Copyright (c) 2005--2018 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTAB... | gpl-2.0 | 4,209,307,803,917,549,600 | 32.794406 | 169 | 0.573687 | false | 4.28574 | false | false | false |
jenfly/monsoon-onset | scripts/thesis-figs.py | 1 | 9561 | import sys
sys.path.append('/home/jwalker/dynamics/python/atmos-tools')
sys.path.append('/home/jwalker/dynamics/python/atmos-read')
sys.path.append('/home/jwalker/dynamics/python/monsoon-onset')
import numpy as np
import xarray as xray
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib as mpl
from m... | mit | 6,556,450,848,463,915,000 | 35.773077 | 85 | 0.606422 | false | 2.60802 | false | false | false |
brunobord/critica | apps/articles_epicurien/admin.py | 1 | 2409 | # -*- coding: utf-8 -*-
"""
Administration interface options for ``critica.apps.articles_epicurien`` models.
"""
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from critica.apps.admin.sites import basic_site, advanced_site
from critica.apps.articles.admin import BaseArticleA... | gpl-3.0 | -3,054,804,316,831,667,000 | 38.491803 | 90 | 0.674554 | false | 3.775862 | false | false | false |
palerdot/calibre | src/calibre/db/backend.py | 1 | 68501 | #!/usr/bin/env python
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
from __future__ import (unicode_literals, division, absolute_import,
print_function)
__license__ = 'GPL v3'
__copyright__ = '2011, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
# Imports {{{
... | gpl-3.0 | -5,460,101,433,638,921,000 | 40.141742 | 141 | 0.527146 | false | 4.183012 | false | false | false |
brainwane/missing-from-wikipedia | webapp/application.py | 1 | 1721 | # -*- coding: utf-8 -*-
from flask import Flask, render_template, request
import missing
app = Flask(__name__)
# take in names from datainput.html form
# run massagenames (implicitly chunks into 50 titles per request) and leftout
# return result to user in results.html form
def onWikipedia(names, lang):
names =... | gpl-3.0 | -7,242,098,130,690,440,000 | 35.617021 | 136 | 0.655433 | false | 3.563147 | false | false | false |
robbievanleeuwen/section-properties | sectionproperties/examples/example_frame.py | 1 | 1555 | import time
import numpy as np
import matplotlib.pyplot as plt
import sectionproperties.pre.sections as sections
from sectionproperties.analysis.cross_section import CrossSection
# create a rectangular section
geometry = sections.RectangularSection(d=100, b=50)
# create a list of mesh sizes to analyse
mesh_sizes = [1... | mit | -2,314,972,156,369,502,700 | 38.871795 | 78 | 0.684887 | false | 3.259958 | false | false | false |
F-Secure/lokki-wp8 | scripts/common.py | 1 | 1958 | """
Copyright (c) 2014-2015 F-Secure
See LICENSE for details
"""
"""
Common methods to be used in converting localization files.
Copyright: F-Secure, 2012
"""
#defult product name in localization files
PRODUCT_NAME_DEFAULT_VALUE = "F-Secure Mobile Sync"
# id that defines default product name in localization file
PROD... | apache-2.0 | -7,674,815,097,206,625,000 | 37.392157 | 103 | 0.643514 | false | 4.192719 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.