repo_name stringlengths 6 61 | path stringlengths 4 230 | copies stringlengths 1 3 | size stringlengths 4 6 | text stringlengths 1.01k 850k | license stringclasses 15
values | hash int64 -9,220,477,234,079,998,000 9,219,060,020B | line_mean float64 11.6 96.6 | line_max int64 32 939 | alpha_frac float64 0.26 0.9 | autogenerated bool 1
class | ratio float64 1.62 6.1 | config_test bool 2
classes | has_no_keywords bool 2
classes | few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
unho/thesaurus_editor | thesaurus/models.py | 1 | 3604 | # -*- coding: UTF-8 -*-
#
# Copyright 2013 Leandro Regueiro
#
# This file is part of Thesaurus-editor.
#
# Thesaurus-editor is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or ... | gpl-3.0 | -741,755,615,329,156,500 | 35.40404 | 124 | 0.6601 | false | 3.754167 | false | false | false |
devalbo/mm_anywhere | mm_app_core.py | 1 | 4332 | """
mm_app_core.py
~~~~~~~~~~~~
This module supports accessing image acquisition functionality, similar to the
main Micro-Manager dialog.
:copyright: (c) 2012 by Albert Boehmler
:license: GNU Affero General Public License, see LICENSE for more details.
"""
import sys, os, time, thread
from flask import Blueprint, r... | agpl-3.0 | -4,937,903,672,448,641,000 | 29.507042 | 80 | 0.660434 | false | 3.254696 | false | false | false |
saltstack/libnacl | tests/unit/test_raw_random.py | 1 | 3629 | """
Basic tests for randombytes_* functions
"""
import libnacl
import unittest
class TestRandomBytes(unittest.TestCase):
def test_randombytes_random(self):
self.assertIsInstance(libnacl.randombytes_random(), int)
def test_randombytes_uniform(self):
self.assertIsInstance(libnacl.randombytes_u... | apache-2.0 | 3,889,134,625,305,365,000 | 33.894231 | 95 | 0.659961 | false | 3.237288 | true | false | false |
pengutronix/aiohttp-json-rpc | examples/django3_example_project/example_project/settings.py | 1 | 3115 | """
Django settings for example_project project.
Generated by 'django-admin startproject' using Django 3.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
impo... | apache-2.0 | 6,363,014,849,474,257,000 | 24.958333 | 91 | 0.686035 | false | 3.5 | false | false | false |
mathkann/hyperopt | hyperopt/tests/test_criteria.py | 7 | 1917 | import numpy as np
import hyperopt.criteria as crit
def test_ei():
rng = np.random.RandomState(123)
for mean, var in [(0, 1), (-4, 9)]:
thresholds = np.arange(-5, 5, .25) * np.sqrt(var) + mean
v_n = [crit.EI_gaussian_empirical(mean, var, thresh, rng, 10000)
for thresh in thresh... | bsd-3-clause | -1,589,826,703,282,367,200 | 29.919355 | 73 | 0.542514 | false | 3.112013 | false | false | false |
WING-NUS/TESLA-S | lemma_format.py | 1 | 3183 | #!/usr/bin/env python
import sys
import re
from util import *
##
## reformat lemmatizer output from different lemmatizers
## output format: lemma1 lemma2 ... one sentence per line
##
if len(sys.argv) != 2:
print "usage: lemma_reformat.py [treetagger|freeling|morce|morph] < input > output"
sys.exit(-1)
if... | gpl-2.0 | -8,585,263,154,572,538,000 | 34.366667 | 127 | 0.49136 | false | 3.490132 | false | false | false |
arseneyr/essentia | test/src/unittest/standard/test_envelope.py | 1 | 2094 | #!/usr/bin/env python
# Copyright (C) 2006-2016 Music Technology Group - Universitat Pompeu Fabra
#
# This file is part of Essentia
#
# Essentia is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation ... | agpl-3.0 | -8,136,286,983,662,147,000 | 36.072727 | 108 | 0.684814 | false | 3.766187 | true | false | false |
HarmonyEnterpriseSolutions/harmony-platform | src/gnue/forms/uidrivers/java/widgets/menuitem.py | 1 | 3754 | # GNU Enterprise Forms - wx 2.6 UI Driver - MenuItem widget
#
# Copyright 2001-2007 Free Software Foundation
#
# This file is part of GNU Enterprise
#
# GNU Enterprise 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 Found... | gpl-2.0 | -4,051,717,551,590,470,700 | 29.770492 | 79 | 0.514118 | false | 4.280502 | false | false | false |
arjclark/cylc | lib/cylc/gui/graph.py | 2 | 3139 | #!/usr/bin/env python
# THIS FILE IS PART OF THE CYLC SUITE ENGINE.
# Copyright (C) 2008-2018 NIWA
#
# 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 yo... | gpl-3.0 | 4,249,888,790,959,960,000 | 32.042105 | 79 | 0.660083 | false | 3.46468 | false | false | false |
marshmallow-code/apispec | tests/test_ext_marshmallow.py | 1 | 47705 | import json
import pytest
from marshmallow.fields import Field, DateTime, Dict, String, Nested, List, TimeDelta
from marshmallow import Schema
from apispec import APISpec
from apispec.ext.marshmallow import MarshmallowPlugin
from apispec.ext.marshmallow import common
from apispec.exceptions import APISpecError
from ... | mit | -1,058,647,629,776,743,300 | 38.19885 | 88 | 0.514432 | false | 4.347886 | true | false | false |
anntzer/numpy | numpy/core/_type_aliases.py | 4 | 7807 | """
Due to compatibility, numpy has a very large number of different naming
conventions for the scalar types (those subclassing from `numpy.generic`).
This file produces a convoluted set of dictionaries mapping names to types,
and sometimes other mappings too.
.. data:: allTypes
A dictionary of names to types that... | bsd-3-clause | -6,382,904,487,549,934,000 | 31.127572 | 103 | 0.571923 | false | 3.654963 | false | false | false |
PlushBeaver/FanFicFare | makezip.py | 2 | 1915 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright 2015, Jim Miller
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless req... | gpl-3.0 | 878,587,940,607,048,700 | 34.826923 | 81 | 0.652219 | false | 4.057203 | false | false | false |
nextgis/ngq_compulink | qgis-installer/customization-conf/plugins/identifyplus/ngw_external_api_python/core/ngw_attachment.py | 2 | 2647 | # -*- coding: utf-8 -*-
"""
/***************************************************************************
NextGIS WEB API
-------------------
begin : 2014-11-19
git sha : $Format:%H$
copyright : (C) 2014 by NextGIS
e... | gpl-2.0 | 7,222,059,652,694,759,000 | 47.145455 | 148 | 0.488478 | false | 4.168504 | false | false | false |
elaeon/breast_cancer_networks | scripts_toolbox/id_genes2id_pvalue.py | 2 | 2007 | import csv
import sys
#abrimos el archivo en donde estan los Affy_id y geneSymbol
id_gene = csv.reader(open("id_gene_HG.csv", 'rb'), delimiter = ',')
dict = {}
aff_id = []
#metemos en un diccionario todas la entradas del archivo y en arreglo auxiliar solo los Affy_id para posteriormente iterar en el diccionario las ... | gpl-3.0 | 2,634,669,533,301,764,000 | 25.76 | 154 | 0.642252 | false | 2.453545 | false | false | false |
rspavel/spack | lib/spack/spack/build_systems/cmake.py | 3 | 14333 | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import inspect
import os
import platform
import re
import spack.build_environment
from llnl.util.filesystem import worki... | lgpl-2.1 | 1,484,900,245,329,804,500 | 37.323529 | 79 | 0.577618 | false | 4.458165 | true | false | false |
chrisdickinson/python-oauth2 | tests/test_oauth.py | 1 | 30405 | """
The MIT License
Copyright (c) 2009 Vic Fryzel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish... | mit | -2,785,435,832,432,267,000 | 35.196429 | 121 | 0.606117 | false | 3.691271 | true | false | false |
kaustubhcs/PyOpenWorm | PyOpenWorm/evidence.py | 2 | 12890 | from PyOpenWorm import *
class EvidenceError(Exception):
pass
def _pubmed_uri_to_pmid(uri):
from urlparse import urlparse
parsed = urlparse(uri)
pmid = int(parsed.path.split("/")[2])
return pmid
def _doi_uri_to_doi(uri):
from urlparse import urlparse
from urllib2 import unquote
pars... | mit | 8,356,134,866,388,307,000 | 34.122616 | 115 | 0.578898 | false | 3.84891 | false | false | false |
jhermann/rudiments | src/rudiments/security.py | 1 | 5487 | # -*- coding: utf-8 -*-
# pylint: disable=bad-continuation
""" Security / AuthN / AuthZ helpers.
"""
# Copyright © 2015 - 2019 Jürgen Hermann <jh@web.de>
#
# 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... | apache-2.0 | -7,458,670,958,381,981,000 | 37.356643 | 101 | 0.620966 | false | 4.139623 | false | false | false |
txsl/mail-trends | stats/bucket.py | 3 | 5756 | from pygooglechart import StackedVerticalBarChart, Axis
from base import *
_Y_AXIS_SPACE = 36
class BucketStat(ChartStat):
def __init__(self, bucket_count, title, width, height):
ChartStat.__init__(self)
self.__buckets = [0] * bucket_count
self.__max = 0
self.__title = title
self.__w... | apache-2.0 | -1,530,671,495,127,133,400 | 24.25 | 75 | 0.582349 | false | 3.488485 | false | false | false |
zhmz90/first_step_with_julia_kaggle.jl | King/sklearn.py | 1 | 1747 | # Loading Data
import pandas as pd
from skimage.io import imread
import numpy as np
def read_data(typeData, labelsInfo, imageSize, path):
#Intialize x matrix
x = np.zeros((labelsInfo.shape[0], imageSize))
for (index, idImage) in enumerate(labelsInfo["ID"]):
#Read image file
nameFile = "{0}/{1}Resized/{2}.Bmp... | mit | 3,464,750,835,726,655,000 | 27.639344 | 80 | 0.734402 | false | 3.038261 | true | false | false |
general-ai-challenge/Round1 | src/core/environment.py | 1 | 14751 | # Copyright (c) 2016-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import a... | bsd-3-clause | 5,099,730,751,178,480,000 | 41.510086 | 119 | 0.610128 | false | 4.56546 | false | false | false |
tboyce021/home-assistant | tests/components/ssdp/test_init.py | 2 | 4786 | """Test the SSDP integration."""
import asyncio
from unittest.mock import Mock, patch
import aiohttp
import pytest
from homeassistant.components import ssdp
from tests.common import mock_coro
async def test_scan_match_st(hass, caplog):
"""Test matching based on ST."""
scanner = ssdp.Scanner(hass, {"mock-do... | apache-2.0 | 5,570,147,458,681,157,000 | 26.825581 | 80 | 0.568533 | false | 3.207775 | true | false | false |
tiagocardosos/stoq | stoqlib/gui/dialogs/spreadsheetexporterdialog.py | 2 | 3749 | # -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2008-2012 Async Open Source <http://www.async.com.br>
## All rights reserved
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU Lesser General Public License as published by
## the Free Softw... | gpl-2.0 | 3,608,650,358,370,720,000 | 31.318966 | 78 | 0.616164 | false | 3.779234 | false | false | false |
chromium/chromium | chrome/test/webapps/generate_framework_tests_and_coverage_unittest.py | 1 | 2889 | #!/usr/bin/env python3
# Copyright 2021 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from io import StringIO
import os
import sys
import unittest
import tempfile
from generate_framework_tests_and_coverage import genera... | bsd-3-clause | 7,397,029,959,659,532,000 | 42.772727 | 87 | 0.591208 | false | 4.728314 | true | false | false |
petrvanblokland/Xierpa3 | xierpa3/sites/examples/dbdwebsite/make.py | 1 | 6285 | # -*- coding: UTF-8 -*-
# -----------------------------------------------------------------------------
# xierpa server
# Copyright (c) 2014+ buro@petr.com, www.petr.com, www.xierpa.com
#
# X I E R P A 3
# Distribution by the MIT License.
#
# -----------------------------------------------------------... | mit | 374,267,383,479,881,200 | 47.346154 | 119 | 0.668417 | false | 3.813714 | false | false | false |
lpryszcz/bin | FastaIndex.py | 1 | 16107 | #!/usr/bin/env python2
desc="""FastA index (.fai) handler compatible with samtools faidx (http://www.htslib.org/doc/faidx.html).
.fai is extended with 4 columns storing counts for A, C, G & T for each sequence.
"""
epilog="""Author: l.p.pryszcz+git@gmail.com
Bratislava, 15/06/2016
"""
import os, sys
from datetime impo... | gpl-3.0 | 3,183,129,728,090,957,000 | 38.097087 | 125 | 0.532688 | false | 3.774783 | false | false | false |
dmtucker/ogre | ogre/test/test_cli.py | 1 | 1995 | # coding: utf-8
"""Tests for ogre.cli"""
from __future__ import absolute_import
import random
import pytest
import ogre.cli
@pytest.fixture
def source():
"""Return a valid source."""
return random.choice(['twitter'])
# pylint: disable=redefined-outer-name
def test___main__():
"""Test python -m fun... | lgpl-2.1 | -5,412,784,920,642,356,000 | 25.6 | 85 | 0.646617 | false | 3.814532 | true | false | false |
jonanone/APIProject | vagrant/rate_limit/tester.py | 1 | 1220 | from __future__ import division
from time import sleep
import httplib2
import json
h = httplib2.Http()
url = raw_input("Please enter the uri you want to access, \n"
"If left blank the connection will be set to "
"'http://localhost:5000/rate-limited': ")
if url == '':
url = 'http... | mit | -2,319,813,114,321,841,700 | 30.282051 | 78 | 0.585246 | false | 3.8125 | false | false | false |
CuonDeveloper/cuon | cuon_client/Client/CUON/cuon/Chat/xmpp_client.py | 3 | 4029 | # -*- coding: utf-8 -*-
##Copyright (C) [2009] [Jürgen Hamel, D-32584 Löhne]
##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 versi... | gpl-3.0 | -636,960,826,041,465,300 | 32.840336 | 126 | 0.610628 | false | 4.07179 | false | false | false |
aprefontaine/TMScheduler | userprefs/views.py | 1 | 2273 | from django.http import HttpResponseRedirect, HttpResponse
from django.core.urlresolvers import reverse
from django.template import RequestContext
from django.template import Context, loader
from google.appengine.api import users
from userprefs.models import *
from clubs.models import Club
import logging
def index(req... | bsd-3-clause | -8,334,347,202,004,104,000 | 38.894737 | 118 | 0.646282 | false | 3.859083 | false | false | false |
mantidproject/mantid | scripts/Diffraction/isis_powder/hrpd_routines/hrpd_advanced_config.py | 3 | 2689 | # Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source,
# Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
# SPDX - License - Identifier: GPL - 3.0 +
from... | gpl-3.0 | -1,890,241,532,106,708,500 | 31.39759 | 84 | 0.656006 | false | 2.716162 | false | false | false |
garaud/ezhc | ezhc/sample.py | 1 | 2116 |
import os
import numpy as np
import pandas as pd
from _config import SAMPLES_DIR, DF_ONE_IDX_SEVERAL_COL, DF_ONE_IDX_SEVERAL_COL_2, \
DF_ONE_IDX_ONE_COL, DF_ONE_IDX_TWO_COL, DF_TWO_IDX_ONE_COL, DF_SCATTER, \
DF_BUBBLE, DF_HEATMAP, DF_SEVERAL_IDX_... | mit | -2,835,475,829,766,355,500 | 21.752688 | 109 | 0.576087 | false | 2.602706 | false | false | false |
FilipeMaia/afnumpy | afnumpy/core/multiarray.py | 1 | 4723 | import numpy
import afnumpy
import arrayfire
from .. import private_utils as pu
from ..decorators import *
def fromstring(string, dtype=float, count=-1, sep=''):
return array(numpy.fromstring(string, dtype, count, sep))
def array(object, dtype=None, copy=True, order=None, subok=False, ndmin=0):
# We're going... | bsd-2-clause | 26,260,496,238,726,344 | 32.496454 | 115 | 0.583739 | false | 3.45754 | false | false | false |
Lokesh-K-Haralakatta/iot-python | samples/managedGateway/simpleManagedGateway.py | 1 | 3793 | # *****************************************************************************
# Copyright (c) 2016 IBM Corporation and other Contributors.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution,... | epl-1.0 | -2,711,714,358,018,347,500 | 33.171171 | 144 | 0.674927 | false | 4.096112 | false | false | false |
dumoulinj/ers | ers_backend/ers_backend/settings.py | 1 | 4824 | """
Django settings for project ers_backend.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)... | mit | 912,146,412,908,303,500 | 24.256545 | 151 | 0.628939 | false | 3.35 | false | false | false |
openfisca/openfisca-tunisia-pension | openfisca_tunisia_pension/model/data.py | 1 | 2273 | # -*- coding: utf-8 -*-
from openfisca_tunisia_pension.model.base import *
# raic -> raci
# Socio-economic data
# Donnée d'entrée de la simulation à fournir à partir d'une enquète ou
# à générer avec un générateur de cas type
class date_naissance(Variable):
value_type = date
default_value = date(1970, 1,... | agpl-3.0 | 1,448,309,942,262,466,300 | 31.26087 | 136 | 0.720575 | false | 2.65 | false | false | false |
Sulter/MASTERlinker | plugins/wsserver.py | 1 | 4384 | # Plugin that creates a websocket server, and feeds all the messages written to the connected clients
import includes.helpers as helpers
import socket
import re
import base64
import hashlib
import struct
import threading
import select
import logging
class wsserver(helpers.Plugin):
def __init__(self, parent):
su... | mit | -3,755,545,347,154,293,000 | 37.45614 | 149 | 0.646898 | false | 3.650291 | false | false | false |
timlau/yumex | src/test/argpase.py | 1 | 1127 | # need the python-argparse package installed
import argparse
# create the parser
main_parser = None
def setupParser():
global main_parser
base_parser = argparse.ArgumentParser(add_help=False)
parser = base_parser.add_argument_group('base options')
parser.add_argument("-d", "--debuglevel", dest="debugl... | gpl-2.0 | 6,828,636,379,677,230,000 | 35.354839 | 113 | 0.64685 | false | 3.859589 | false | false | false |
LeBarbouze/tunacell | tunacell/plotting/dynamics.py | 1 | 34918 | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
This module defines plotting functions for the statistics of the dynamics.
"""
from __future__ import print_function
import os
import numpy as np
import collections
import logging
import matplotlib as mpl
import matplotlib.pyplot as plt
from matplotlib import ticker
... | mit | -8,386,384,393,471,840,000 | 37.286184 | 111 | 0.570725 | false | 3.65317 | false | false | false |
FOSSRIT/sweetermail | tracker.py | 1 | 4542 | # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# bu... | gpl-3.0 | -5,689,568,841,829,974,000 | 32.895522 | 128 | 0.624395 | false | 3.686688 | false | false | false |
Fat-Zer/FreeCAD_sf_master | src/Mod/Test/unittestgui.py | 12 | 15996 | #!/usr/bin/env python
"""
GUI framework and application for use with Python unit testing framework.
Execute tests written using the framework provided by the 'unittest' module.
Further information is available in the bundled documentation, and from
http://pyunit.sourceforge.net/
Copyright (c) 1999, 2000, ... | lgpl-2.1 | 3,964,741,910,127,345,000 | 38.090226 | 79 | 0.606339 | false | 4.038374 | true | false | false |
SysTheron/adhocracy | src/adhocracy/lib/helpers/selection_helper.py | 5 | 1162 | from pylons.i18n import _
from adhocracy.lib import cache
from adhocracy.lib.helpers import proposal_helper as proposal
from adhocracy.lib.helpers import url as _url
@cache.memoize('selection_url')
def url(selection, member=None, format='html', selection_page=False, **kwargs):
if member is None and format == 'h... | agpl-3.0 | 8,183,553,078,062,723,000 | 32.2 | 79 | 0.638554 | false | 3.809836 | false | false | false |
jlaunonen/kirppu | kirppu/tests/test_states.py | 1 | 8423 | # -*- coding: utf-8 -*-
from http import HTTPStatus
from django.test import Client, TestCase
import faker
from .factories import *
from .api_access import Api
from . import ResultMixin
from ..models import Item, Receipt, ReceiptItem
__author__ = 'codez'
class PublicTest(TestCase, ResultMixin):
def setUp(self)... | mit | 145,492,830,655,224,130 | 42.417526 | 118 | 0.642052 | false | 3.663767 | true | false | false |
gfyoung/pandas | pandas/io/formats/latex.py | 2 | 25201 | """
Module for formatting output data in Latex.
"""
from abc import ABC, abstractmethod
from typing import Iterator, List, Optional, Sequence, Tuple, Type, Union
import numpy as np
from pandas.core.dtypes.generic import ABCMultiIndex
from pandas.io.formats.format import DataFrameFormatter
def _split_into_full_shor... | bsd-3-clause | 5,614,373,283,270,551,000 | 29.546667 | 86 | 0.550931 | false | 4.081795 | false | false | false |
knightmare2600/d4rkc0de | others/darkMSSQL.py | 1 | 20446 | #!/usr/bin/python
################################################################
# .___ __ _______ .___ #
# __| _/____ _______| | __ ____ \ _ \ __| _/____ #
# / __ |\__ \\_ __ \ |/ // ___\/ /_\ \ / __ |/ __ \ #
# / /_/ | / __ \| | \/ <\ \___\... | gpl-2.0 | -3,683,697,330,514,333,000 | 44.843049 | 200 | 0.491588 | false | 3.48551 | false | false | false |
Petraea/jsonbot | jsb/drivers/sleek/message.py | 1 | 3117 | # jsb/drivers/sleek/message.py
#
#
""" jabber message definition .. types can be normal, chat, groupchat,
headline or error
"""
## jsb imports
from jsb.utils.exception import handle_exception
from jsb.utils.trace import whichmodule
from jsb.utils.generic import toenc, fromenc, jabberstrip
from jsb.utils.lockin... | mit | -797,068,788,213,894,300 | 28.130841 | 91 | 0.595124 | false | 3.79659 | false | false | false |
waggie/Facebook-Cr4wl3r | fb.py | 1 | 4917 | import json
import urllib2
#from threading import *
from pymongo import MongoClient
from xml.dom import minidom
from dicttoxml import dicttoxml
"""
t = Thread(target = conn_scan, args = (tgtHost, int(tgtPort)))
t.start()
"""
#screenLock = Semaphore(value = 1)
baseUrl = "http://graph.facebook.com/"
secureBaseU... | gpl-3.0 | -7,072,418,456,302,532,000 | 30.318471 | 91 | 0.605857 | false | 3.747713 | false | false | false |
adeshmukh/learntosolveit | languages/python/algorithm_spelling.py | 7 | 1031 | import re, collections
def words(text): return re.findall('[a-z]+', text.lower())
def train(features):
model = collections.defaultdict(lambda: 1)
for f in features:
model[f] += 1
return model
NWORDS = train(words(file('big.txt').read()))
alphabet = 'abcdefghijklmnopqrstuvwxyz'
def edits1(word):... | bsd-3-clause | -3,281,640,367,960,298,000 | 33.366667 | 85 | 0.636275 | false | 2.971182 | false | false | false |
r39132/airflow | tests/contrib/operators/test_ecs_operator.py | 3 | 11098 | # -*- 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 | -7,154,320,007,869,450,000 | 36.117057 | 138 | 0.545323 | false | 3.948061 | true | false | false |
zmarvel/playground | project3/merge.py | 1 | 1254 | def threeway_compare(x,y):
if x < y:
return -1
elif x == y:
return 0
else:
return 1
def merge(left, right, compare = threeway_compare):
result = []
i, j = 0, 0
while i < len(left) and j < len(right):
if compare(left[i], right[j]) <= 0:
result.append(l... | mit | 8,966,986,141,526,539,000 | 28.857143 | 77 | 0.508772 | false | 2.811659 | false | false | false |
lmazuel/azure-sdk-for-python | azure-cognitiveservices-search-websearch/azure/cognitiveservices/search/websearch/models/videos.py | 2 | 3475 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit | -4,605,479,205,483,070,500 | 39.406977 | 84 | 0.608058 | false | 3.908886 | false | false | false |
harag-on-steam/se-blender | src/python/space_engineers/texture_files.py | 1 | 5737 | from collections import namedtuple
from enum import Enum
from itertools import groupby
import os
import re
import bpy
_RE_DIFFUSE = re.compile(r"_[dm]e\.dds$", re.IGNORECASE)
_RE_NORMAL = re.compile(r"_ns\.dds$", re.IGNORECASE)
_RE_TEXTURE_TYPE = re.compile(
r"(?P<de>Diffuse_?(?P<me1>Masked_?)?(?:Emissiv(?:e|ity)... | gpl-2.0 | 4,081,149,205,319,464,000 | 40.273381 | 126 | 0.677532 | false | 3.68465 | false | false | false |
meigrafd/Sample-Code | sambaserver.py | 1 | 1194 | #!/usr/bin/python
import os
import sys
import crypt
a = raw_input("Enter No. Of user :")
def createuser (useradd1,passwd1):
epass = crypt.crypt(passwd1,"22")
return os.system(" useradd -p"+epass+ "-s" +"/bin/bash"+"-d"+"/home/"+useradd1+"-m"+"-c \"\"" +useradd1)
def sambaserver(user1):
f = raw_input ("Ent... | mit | 6,200,398,064,977,913,000 | 35.181818 | 112 | 0.656616 | false | 2.732265 | false | false | false |
nooperpudd/pulsar | tests/utils/structures/zset.py | 7 | 2912 | import unittest
from random import randint
from pulsar.utils.structures import Zset
from pulsar.apps.test import populate
class TestZset(unittest.TestCase):
zset = Zset
def random(self):
string = populate('string', size=100)
values = populate('float', size=100, min=-10, max=10)
s = s... | bsd-3-clause | 6,606,941,366,797,245,000 | 29.652632 | 67 | 0.525755 | false | 3.235556 | true | false | false |
PumpkinPai/lslvimazing-builder | spidey.py | 1 | 4506 | #!/usr/bin/python3
# go to 'targeturl' looking for 'searchterm' and return all of the values within
# 'delim' immediately following the beginning of 'searchterm'
import urllib.request
import os
# Crawl url, look for searchTerm, grab thing within delim, put it in txtFile
def crawl(url, pageBegin, pageEnd, searchTerm... | gpl-2.0 | 4,063,359,969,481,211,000 | 30.075862 | 81 | 0.524634 | false | 4.044883 | false | false | false |
wakatime/komodo-wakatime | components/wakatime/dependencies/__init__.py | 2 | 4336 | # -*- coding: utf-8 -*-
"""
wakatime.dependencies
~~~~~~~~~~~~~~~~~~~~~
Parse dependencies from a source code file.
:copyright: (c) 2014 Alan Hamlett.
:license: BSD, see LICENSE for more details.
"""
import logging
import re
import sys
from ..compat import u, open, import_module
from ..exception... | bsd-3-clause | -8,170,313,507,200,091,000 | 31.118519 | 107 | 0.561808 | false | 4.34034 | false | false | false |
virtuald/pygi-composite-templates | examples/from_file/mywidget.py | 2 | 1697 | #!/usr/bin/env python
from __future__ import print_function
# This is only required to make the example with without requiring installation
# - Most of the time, you shouldn't use this hack
import sys
from os.path import join, dirname
sys.path.insert(0, join(dirname(__file__), '..', '..'))
from gi.repository import... | lgpl-2.1 | -7,714,377,119,146,838,000 | 26.819672 | 83 | 0.63406 | false | 3.746137 | false | false | false |
javiligorria/ies-bolivar | JEM/settings.py | 1 | 5808 | # Django settings for JEM project.
import os.path
RUTA_PROYECTO = os.path.dirname(os.path.realpath(__file__))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'post... | gpl-3.0 | -5,361,671,234,065,746,000 | 33.152941 | 108 | 0.68722 | false | 3.592822 | false | false | false |
angr/angr | angr/angrdb/serializers/loader.py | 1 | 2125 |
from io import BytesIO
from typing import List
import cle
from ...errors import AngrCorruptDBError
from ..models import DbObject
class LoaderSerializer:
"""
Serialize/unserialize a CLE Loader object into/from an angr DB.
"""
backend2name = dict((v, k) for k, v in cle.ALL_BACKENDS.items())
@st... | bsd-2-clause | 7,931,450,695,782,348,000 | 28.109589 | 97 | 0.562824 | false | 4.319106 | false | false | false |
mcgill-robotics/Firmware | Tools/sdlog2/geo_tag_images.py | 2 | 14291 | #!/usr/bin/env python
#
# Tag the images recorded during a flight with geo location extracted from
# a PX4 binary log file.
#
# This file accepts *.jpg format images and reads position information
# from a *.px4log file
#
# Example Syntax:
# python geo_tag_images.py --logfile=log001.px4log --input=images/ --outpu... | bsd-3-clause | -4,232,421,145,934,824,400 | 31.928571 | 123 | 0.528235 | false | 3.792728 | false | false | false |
nigelsmall/py2neo | demo/moviegraph/server.py | 1 | 2334 | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from bottle import get, post, redirect, request, run, static_file, template, TEMPLATE_PATH
from calendar import month_name
from datetime import date
from os import getenv
from os.path import dirname, join as path_join
from py2neo import Graph, watch
from demo.moviegrap... | apache-2.0 | -523,447,049,300,249,700 | 24.933333 | 90 | 0.655527 | false | 3.432353 | false | false | false |
GoogleChromeLabs/pywebsocket3 | mod_pywebsocket/websocket_server.py | 15 | 11491 | # Copyright 2020, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | bsd-3-clause | -6,413,652,060,124,584,000 | 39.319298 | 79 | 0.599861 | false | 4.576264 | false | false | false |
cgmb/guardonce | tests/test_pattern_compiler.py | 1 | 9953 | # -*- coding: utf-8 -*-
# Copyright (C) 2016-2017 Cordell Bloor
# Published under the MIT License
import os
from nose.tools import *
from guardonce.pattern_compiler import *
def windows_only(f):
"""Only execute on windows systems"""
f.__test__ = os.name == "nt"
return f
def unix_only(f):
"""Only exec... | mit | -5,455,985,354,004,510,000 | 27.682997 | 61 | 0.658294 | false | 3.357962 | true | false | false |
kepoorhampond/python-draftlog | draftlog/lcs.py | 1 | 1104 | """
LCS: Line Count Stream
"""
from draftlog.logdraft import LogDraft
from draftlog.drafter import Drafter
import os
import subprocess
import sys
"""
An object inserted into "sys.stdout" in order to
keep track of how many lines have been logged.
"""
class LineCountStream(object):
def __init__(self):
self.d... | mit | -5,066,193,894,276,154,000 | 24.090909 | 61 | 0.605978 | false | 3.873684 | false | false | false |
mobarski/sandbox | rsm/v1.py | 2 | 3677 | from common import *
# TODO rename -> pooling/random/sparse/distributed hebbian/horde/crowd/fragment/sample memory
# NEW NAME: random sample memory / fruit fly memory
# TODO vol/mem_cnt_score_boost
# TODO focus
# TODO focus boost
# TODO noise boost
# TODO auto noise
# TODO auto focus
class rsm:
def __init__(self, n... | mit | 494,271,387,442,654,200 | 22.278481 | 95 | 0.595866 | false | 2.457888 | false | false | false |
ananthb/binder | setup.py | 1 | 1341 | """
binder
~~~~~~
binder is a learning social network. It helps you find and learn with
other students. Give it a whirl. Sign up today!
binder is also open source software and available under the MIT license.
:copyright: (c) 2015 by Ananth Bhaskararaman
:license: MIT, see LICENSE for more... | mit | -1,047,073,338,729,103,500 | 22.526316 | 76 | 0.607755 | false | 2.98 | false | false | false |
Xervmon/XervSync | duplicati/Installer/upload.py | 1 | 5342 | #!/usr/bin/env python
import sys
import os
import glob
def main():
source_folder = os.path.join('bin', 'release')
new_version = None
suggest_string = ''
for testfile in glob.glob( os.path.join(source_folder, 'Duplicati *.zip') ):
version_info = testfile[testfile.rfind('Duplicati ') + ... | gpl-3.0 | 7,946,786,659,490,272,000 | 42.516667 | 238 | 0.624298 | false | 3.334582 | false | false | false |
SlicerRt/SlicerDebuggingTools | PyDevRemoteDebug/ptvsd-3.2.1/ptvsd/util.py | 1 | 22941 | # Python Tools for Visual Studio
# Copyright(c) Microsoft Corporation
# 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
#
# THI... | bsd-3-clause | -7,209,905,003,792,995,000 | 35.356577 | 134 | 0.540081 | false | 3.914178 | true | false | false |
rtmilbourne/augur-core | tests/fixedpoint_tests/test_suite.py | 4 | 2236 | import cStringIO
import sys
_ = sys.stderr
sys.stderr = cStringIO.StringIO()
from pyethereum import tester as t
sys.stderr = _
from contextlib import contextmanager
from collections import namedtuple
from bitcoin import encode, decode
import random
import gmpy2
import time
gmpy2.get_context().precision = 256
_TestR... | gpl-3.0 | 2,710,647,747,908,694,000 | 26.95 | 86 | 0.624329 | false | 3.302806 | true | false | false |
ryepdx/shipping_api_fedex | helpers/fedex_wrapper.py | 1 | 8884 | import base64, logging
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)
from collections import namedtuple
from shipping import Package, get_country_code
from .fedex.services.rate_service import FedexRateServiceRequest
from .fedex.services.ship_service import FedexDeleteShipmentRequest, Fed... | agpl-3.0 | 4,817,629,897,485,987,000 | 44.798969 | 144 | 0.688766 | false | 3.937943 | true | false | false |
Vagab0nd/SiCKRAGE | sickchill/providers/metadata/wdtv.py | 1 | 8505 | import datetime
import os
import re
from xml.etree import ElementTree
from sickchill.helper.common import dateFormat, replace_extension
from sickchill.oldbeard import helpers
from ... import logger
from . import generic
class WDTVMetadata(generic.GenericMetadata):
"""
Metadata generation class for WDTV
... | gpl-3.0 | -1,577,157,463,934,966,500 | 34 | 157 | 0.585303 | false | 4.055794 | false | false | false |
domoritz/label_generator | rate.py | 1 | 3246 | """Calculate the difference between predictions and ground truth.
Provide a list of predicted files. In the same directory should
also be the label files. This script assumes correct filenames.
Usage:
main.py LIST [--thresh=THRESH] [--debug]
main.py (-h | --help)
main.py --version
Options:
--thresh=THRESH ... | bsd-3-clause | 4,731,531,660,132,277,000 | 28.243243 | 84 | 0.544054 | false | 3.783217 | false | false | false |
CorneliusIV/playlistdc | playlistdc/settings.py | 1 | 3770 | """
Django settings for playlistdc project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
import os
import dj_database_url
from decouple import config
BASE_DI... | mit | -3,622,044,227,207,103,500 | 25.180556 | 77 | 0.680637 | false | 3.402527 | true | false | false |
rsoscia/BAMS-to-NeuroLex | src/ProgressReport.py | 1 | 7486 | # ProgressReport.py
# Progress Report For Zaid
#This is an all encompassing program that does everything at once, hopefully placing all
#of the BAMS query results into a single CSV file
#doesn't run properly unless the path is accessed first, interactive python is activated,
#and the code is pasted into terminal..... | mit | 5,022,078,696,733,141,000 | 25.644128 | 110 | 0.62303 | false | 3.173379 | false | false | false |
kapilt/ansible | lib/ansible/plugins/__init__.py | 24 | 15677 | # (c) 2012, Daniel Hokka Zakrisson <daniel@hozac.com>
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> and others
#
# This file is part of Ansible
#
# Ansible 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 Foun... | gpl-3.0 | -5,174,014,401,932,513,000 | 33.837778 | 118 | 0.58219 | false | 4.195076 | true | false | false |
andersk/zulip | zerver/lib/widget.py | 3 | 3306 | import json
import re
from typing import Any, Optional, Tuple
from zerver.lib.message import SendMessageRequest
from zerver.models import Message, SubMessage
def get_widget_data(content: str) -> Tuple[Optional[str], Optional[str]]:
valid_widget_types = ["poll", "todo"]
tokens = content.split(" ")
# toke... | apache-2.0 | -4,493,608,394,027,516,400 | 29.611111 | 88 | 0.605868 | false | 3.978339 | false | false | false |
hrichstein/phys_50733 | rh_project/polar_try.py | 1 | 5028 | import numpy as np
import matplotlib.pyplot as plt
# from scipy.constants import G
# Setting plotting parameters
from matplotlib import rc,rcParams
rc('text', usetex=True)
rc('axes', linewidth=2)
rc('font', weight='bold')
rc('font', **{'family': 'serif', 'serif':['Computer Modern']})
def find_vel_init(M1, M2, A):
pe... | mit | -1,545,803,270,774,261,200 | 21.55157 | 83 | 0.568218 | false | 2.009592 | false | false | false |
NikolaYolov/invenio_backup | modules/webcomment/lib/webcomment_washer.py | 3 | 1706 | from invenio.htmlutils import HTMLWasher
import htmlentitydefs
class EmailWasher(HTMLWasher):
"""
Wash comments before being send by email
"""
def handle_starttag(self, tag, attrs):
"""Function called for new opening tags"""
if tag.lower() in self.allowed_tag_whitelist:
if ... | gpl-2.0 | 786,151,141,965,397,000 | 34.541667 | 101 | 0.521688 | false | 4.181373 | false | false | false |
tschijnmo/FFOMP | FFOMP/ccutils/gau2yaml.py | 1 | 10855 | """
Output conversion for Gaussian
==============================
This module contains conversion utilities that is solely written for the
Gaussian computational chemistry program.
.. autosummary::
:toctree:
gauout2PESyaml
"""
import collections
import re
from collections import abc
import itertools
impo... | mit | 1,514,037,048,358,668,300 | 23.175947 | 79 | 0.551359 | false | 3.4736 | false | false | false |
randy3k/Project-Manager | json_file.py | 1 | 1374 | import sublime
import os
class JsonFile:
def __init__(self, fpath, encoding='utf-8'):
self.encoding = encoding
self.fpath = fpath
def load(self, default=[]):
self.fdir = os.path.dirname(self.fpath)
if not os.path.isdir(self.fdir):
os.makedirs(self.fdir)... | mit | -1,720,593,305,830,880,800 | 33.230769 | 87 | 0.520378 | false | 3.959654 | false | false | false |
spasovski/zamboni | mkt/comm/tests/test_api.py | 2 | 20871 | import json
import os
from django.conf import settings
from django.core import mail
from django.core.urlresolvers import reverse
from django.test.client import MULTIPART_CONTENT
from django.test.utils import override_settings
import mock
from nose.tools import eq_, ok_
from amo.tests import (addon_factory, req_facto... | bsd-3-clause | 7,681,959,617,094,682,000 | 37.50738 | 79 | 0.593503 | false | 3.722975 | true | false | false |
Python-Tools/aioorm | aioorm/shortcuts.py | 1 | 3656 | from asyncio import iscoroutine
from peewee import ForeignKeyField
from playhouse.shortcuts import _clone_set
async def model_to_dict(model, recurse=True, backrefs=False, only=None,
exclude=None, seen=None, extra_attrs=None,
fields_from_query=None, max_depth=None):
... | mpl-2.0 | 7,883,790,944,815,843,000 | 35.19802 | 79 | 0.560449 | false | 4.474908 | false | false | false |
chokribr/invenioold | modules/bibfield/lib/bibfield_jsonreader.py | 15 | 3259 | # -*- coding: utf-8 -*-
##
## This file is part of Invenio.
## Copyright (C) 2014 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) a... | gpl-2.0 | -6,291,421,180,600,111,000 | 38.743902 | 109 | 0.596809 | false | 3.856805 | false | false | false |
Microsoft/ApplicationInsights-Python | tests/applicationinsights_tests/logging_tests/TestLoggingHandler.py | 1 | 7185 | import unittest
import logging as pylogging
import sys, os, os.path
from applicationinsights.channel import AsynchronousQueue, AsynchronousSender
from applicationinsights.channel import SynchronousQueue, SynchronousSender
rootDirectory = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..')
if rootDi... | mit | 3,186,689,510,377,948,000 | 41.767857 | 163 | 0.675157 | false | 4.14121 | true | false | false |
ches/openxenmanager | messages.py | 2 | 2098 | messages = {}
messages_header = {}
messages_header['PBD_PLUG_FAILED_ON_SERVER_START'] = "Failed to attach storage on server boot"
messages['PBD_PLUG_FAILED_ON_SERVER_START'] = "\
A storage repository could not be attached when server '%s' started.\n \
You may be able to fix this using the 'Repair Storage'\n \
option in... | gpl-2.0 | -5,009,017,996,744,451,000 | 47.790698 | 95 | 0.725929 | false | 3.405844 | false | false | false |
gabhijit/equities-data-utils | get_stocks_bse.py | 2 | 3579 | #
# Refer to LICENSE file and README file for licensing information.
#
# A simple script that tries to download the historical stock data
# for a BSE scrip
import os
from datetime import datetime as dt
import requests
import bs4
from tickerplot.utils.logger import get_logger
module_logger = get_logger(os.path.basena... | mit | 571,531,012,602,573,700 | 35.151515 | 89 | 0.590109 | false | 3.29558 | false | false | false |
Stefan-Korner/SpacePyLibrary | SPACE/ASW.py | 1 | 44245 | #******************************************************************************
# (C) 2018, Stefan Korner, Austria *
# *
# The Space Python Library is free software; you can redistribute it and/or *
... | mit | -8,097,726,725,551,173,000 | 43.964431 | 128 | 0.593242 | false | 3.422946 | true | false | false |
ric2b/confidential-debt-simplification | client/ui_pending.py | 1 | 5260 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'pending.ui'
#
# Created by: PyQt5 UI code generator 5.7.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_PendingWidget(object):
def setupUi(self, PendingWidget):
Pen... | gpl-3.0 | 1,727,756,830,978,285,000 | 51.6 | 114 | 0.706274 | false | 3.856305 | false | false | false |
thefab/rdlm-py | rdlmpy/lock.py | 1 | 1695 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is part of rdlm-py released under the MIT license.
# See the LICENSE file for more information.
import json
import datetime
from rdlmpy.exceptions import RDLMClientException
def iso8601_to_datetime(iso8601_string):
return datetime.datetime.strptime(iso8... | mit | 1,096,588,072,310,464,300 | 24.298507 | 80 | 0.59174 | false | 3.783482 | false | false | false |
benesch/pip | pip/_vendor/requests/packages/urllib3/util/connection.py | 365 | 4744 | from __future__ import absolute_import
import socket
try:
from select import poll, POLLIN
except ImportError: # `poll` doesn't exist on OSX and other platforms
poll = False
try:
from select import select
except ImportError: # `select` doesn't exist on AppEngine.
select = False
def is... | mit | 7,948,240,712,715,729,000 | 31.944444 | 82 | 0.636172 | false | 4.157756 | false | false | false |
vmware/nsxramlclient | tests/logicalswitch.py | 1 | 3893 | # coding=utf-8
#
# Copyright © 2015 VMware, Inc. All Rights Reserved.
#
# 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, co... | mit | 3,931,512,705,397,035,500 | 44.788235 | 115 | 0.753083 | false | 3.512635 | false | false | false |
ppuggioni/invivoinfer | invivoinfer/signalproc_functions.py | 1 | 1130 | from __future__ import division
import numpy as np
import scipy.signal as ssig
import math
import random
import matplotlib.pyplot as plt
import pdb
import nitime.algorithms as tsa
import nitime.utils as utils
# -------------------- Generate Inhomogeneous Poisson Process time events
def power_spectrum(trace,dt,... | apache-2.0 | 8,200,338,205,600,856,000 | 21.156863 | 138 | 0.630088 | false | 2.890026 | false | false | false |
luci/luci-py | appengine/swarming/server/bot_management.py | 2 | 34057 | # Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
"""Swarming bot management, e.g. list of known bots and their state.
+-----------+
|BotRoot |
|id=<bot_id>|
+-----------+
... | apache-2.0 | 6,103,475,689,103,912,000 | 33.29708 | 80 | 0.647767 | false | 3.548713 | false | false | false |
bdang2012/taiga-back-casting | taiga/projects/custom_attributes/services.py | 1 | 2749 | # Copyright (C) 2014-2015 Andrey Antukh <niwi@niwi.be>
# Copyright (C) 2014-2015 Jesús Espino <jespinog@gmail.com>
# Copyright (C) 2014-2015 David Barragán <bameda@dbarragan.com>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# pub... | agpl-3.0 | -7,095,326,727,825,272,000 | 38.811594 | 99 | 0.692028 | false | 3.702156 | false | false | false |
lcoandrade/DsgTools | core/DSGToolsProcessingAlgs/Algs/OtherAlgs/pecCalculatorAlgorithm.py | 1 | 8434 | # -*- coding: utf-8 -*-
"""
/***************************************************************************
DsgTools
A QGIS plugin
Brazilian Army Cartographic Production Tools
-------------------
begin : 2019-05-31
git sha ... | gpl-2.0 | -3,897,906,194,792,418,000 | 36.488889 | 99 | 0.507351 | false | 5.396033 | false | false | false |
drbitboy/SpiceyPy | spiceypy/spiceypy.py | 1 | 506780 | """
The MIT License (MIT)
Copyright (c) [2015-2018] [Andrew Annex]
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, modif... | mit | -6,712,519,455,095,810,000 | 31.357298 | 229 | 0.674344 | false | 3.19477 | false | false | false |
AlexisEidelman/Til | til/pgm/output/statistics.py | 2 | 2570 | '''
Created on 29 Apr 2013
@author: alexis_e
'''
from pandas import HDFStore, merge # DataFrame
import numpy as np
import pdb
import time
from utils import til_name_to_of
temps = time.clock()
simul = "C:/til/output/simul.h5"
# output = HDFStore(calc)
simul = HDFStore(simul)
nom = 'register'
base = 'entities/'... | gpl-3.0 | 8,974,987,625,415,200,000 | 27.241758 | 111 | 0.659533 | false | 2.562313 | false | false | false |
Arcana/emoticharms.trade | app/users/models.py | 1 | 3953 | from app import db, steam
from steam.api import HTTPError, HTTPTimeoutError
from flask.ext.login import AnonymousUserMixin
import datetime
from app.emoticharms.models import UserPack
class AnonymousUser(AnonymousUserMixin):
user_class = 0
@staticmethod
def update_steam():
return False
@stati... | gpl-2.0 | 4,285,753,455,298,286,000 | 33.077586 | 117 | 0.653428 | false | 3.485891 | false | false | false |
glouis/Laima-Discord-Bot | laima/model.py | 1 | 12691 | """
This file is part of Laima Discord Bot.
Copyright 2017 glouis
Laima Discord Bot 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.
Laima ... | gpl-3.0 | 9,206,986,548,832,388,000 | 26.351293 | 122 | 0.505713 | false | 3.621861 | false | false | false |
shainer/matasano | set7/ch52_part2.py | 1 | 1575 | #!/usr/bin/python3
from Crypto.Cipher import AES
from Crypto.Cipher import Blowfish
import math
import itertools
from ch52 import *
def F(message):
return MerkleDamgard(padPKCS7(message), state=b'\x07\x87', stateLen=2)
# This is a MD construction like in F, but with a larger state length,
# different initial state,... | gpl-3.0 | 6,155,153,189,169,903,000 | 24 | 71 | 0.707937 | false | 2.84296 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.