repo_name stringlengths 5 92 | path stringlengths 4 232 | copies stringclasses 19
values | size stringlengths 4 7 | content stringlengths 721 1.04M | license stringclasses 15
values | hash int64 -9,223,277,421,539,062,000 9,223,102,107B | line_mean float64 6.51 99.9 | line_max int64 15 997 | alpha_frac float64 0.25 0.97 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
Royal-Society-of-New-Zealand/NZ-ORCID-Hub | orcid_hub/models.py | 1 | 205148 | # -*- coding: utf-8 -*-
"""Application models."""
import copy
import csv
import os
import random
import re
import secrets
import string
import uuid
from collections import namedtuple
from datetime import datetime
from enum import IntEnum, IntFlag
from functools import lru_cache
from hashlib import md5
from io import S... | mit | -7,884,738,462,338,003,000 | 37.16707 | 117 | 0.521994 | false |
vlfedotov/django-business-logic | tests/test_reference.py | 1 | 2699 | # -*- coding: utf-8 -*-
from .common import *
class ReferenceDescriptorTest(TestCase):
def setUp(self):
self.content_type = ContentType.objects.get_for_model(Model)
def test_reference_descriptor_search_fields_empty(self):
reference_descriptor = ReferenceDescriptor.objects.create(content_typ... | mit | -730,975,050,206,971,100 | 36.486111 | 102 | 0.685069 | false |
fim/locksmith-agent | modules/locksmith/commands.py | 1 | 6091 | import os
import inspect
from datetime import datetime
from argparse import ArgumentParser
from locksmith.lock import *
from locksmith.log import logger
class CommandlineArgumentError(Exception):
pass
class CommandError(Exception):
pass
def cmd_list(conf, argv):
"""
List all existing build environme... | bsd-2-clause | -2,406,269,660,180,101,600 | 31.747312 | 102 | 0.626991 | false |
krisawatson/plugin.video.genesis | modules/sources/xmovies8_mv.py | 1 | 3436 | # -*- coding: utf-8 -*-
'''
Genesis Add-on
Copyright (C) 2015 lambda
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 ... | gpl-3.0 | -7,435,579,324,462,938,000 | 35.553191 | 176 | 0.575378 | false |
kobotoolbox/formpack | tests/test_kobo_locking.py | 1 | 12350 | # coding: utf-8
import base64
from io import BytesIO
from unittest import TestCase
import xlwt
from formpack.constants import KOBO_LOCK_SHEET
from formpack.utils.kobo_locking import (
get_kobo_locking_profiles,
revert_kobo_lock_structure,
strip_kobo_locking_profile,
)
from formpack.utils.exceptions impor... | gpl-3.0 | 556,275,671,662,753,500 | 36.75841 | 86 | 0.452499 | false |
snehasi/servo | components/script/dom/bindings/codegen/CodegenRust.py | 1 | 284971 | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# Common codegen classes.
from collections import defaultdict
from itertools import groupby
import operator
import os
... | mpl-2.0 | 6,758,460,289,241,190,000 | 38.911905 | 120 | 0.569563 | false |
john-tornblom/llvm-p86 | llvm_p86/compiler.py | 1 | 11818 | # encoding: utf-8
# Copyright (C) 2013 John Törnblom
#
# This file is part of LLVM-P86.
#
# LLVM-P86 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 l... | gpl-3.0 | -1,454,283,402,078,824,400 | 28.105911 | 78 | 0.556148 | false |
weblyzard/weblyzard_api | src/python/weblyzard_api/model/__init__.py | 1 | 18549 | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Created on May 14, 2018
.. codeauthor: Max Göbel <goebel@weblyzard.com>
'''
from __future__ import print_function
from __future__ import unicode_literals
from builtins import map
from builtins import str
from builtins import object
import json
import hashlib
import logging... | apache-2.0 | -1,612,660,601,922,884,600 | 35.511811 | 90 | 0.520649 | false |
jsirois/pants | src/python/pants/engine/unions.py | 1 | 4665 | # Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
from collections import defaultdict
from dataclasses import dataclass
from typing import DefaultDict, Iterable, Mapping, Type, TypeVar
from pants.util.... | apache-2.0 | -1,717,259,079,218,027,300 | 38.533898 | 98 | 0.673955 | false |
ZeitOnline/zeit.content.article | src/zeit/content/article/interfaces.py | 1 | 7135 | from zeit.content.article.i18n import MessageFactory as _
import zeit.cms.content.contentsource
import zeit.cms.content.interfaces
import zeit.cms.section.interfaces
import zeit.content.article.source
import zeit.content.cp.source
import zeit.content.image.interfaces
import zope.schema
ARTICLE_NS = 'http://namespaces.... | bsd-3-clause | 6,100,495,689,345,631,000 | 26.548263 | 76 | 0.643588 | false |
doge-search/webdoge | liqian/rice/scrap_professors.py | 1 | 2173 | #!/usr/bin/python
#coding=utf-8
import urllib2
import HTMLParser
import sys
import xml.dom.minidom as minidom
from htmlentitydefs import entitydefs
import glob
import requests.packages.urllib3.util.ssl_
requests.packages.urllib3.util.ssl_.DEFAULT_CIPHERS = 'ALL'
reload(sys)
sys.setdefaultencoding('utf-8')
class MyPar... | unlicense | 446,444,873,430,418,800 | 23.426966 | 59 | 0.69075 | false |
hivesolutions/appier | src/appier/test/util.py | 1 | 46210 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Hive Appier Framework
# Copyright (c) 2008-2021 Hive Solutions Lda.
#
# This file is part of Hive Appier Framework.
#
# Hive Appier Framework is free software: you can redistribute it and/or modify
# it under the terms of the Apache License as published by the Apach... | apache-2.0 | 8,092,827,500,867,253,000 | 36.913997 | 181 | 0.5725 | false |
kengz/Unity-Lab | slm_lab/agent/algorithm/hydra_dqn.py | 1 | 6241 | from slm_lab.agent import net
from slm_lab.agent.algorithm import policy_util
from slm_lab.agent.algorithm.sarsa import SARSA
from slm_lab.agent.algorithm.dqn import DQN
from slm_lab.lib import logger, util
from slm_lab.lib.decorator import lab_api
import numpy as np
import torch
logger = logger.get_logger(__name__)
... | mit | -135,697,500,058,434,270 | 49.739837 | 178 | 0.627784 | false |
dpm76/eaglebone | drone/flight/stabilization/imu6050.py | 1 | 7844 | # -*- coding: utf-8 -*-
'''
Created on 23/10/2015
@author: david
'''
import logging
import math
import time
import imu6050_defs as reg
from sensors.I2CSensor import I2CSensor
from sensors.vector import Vector
from copy import deepcopy
from flight.stabilization.state import SensorState
try:
import smbus
ex... | isc | 3,956,320,715,344,091,600 | 23.974522 | 128 | 0.55394 | false |
slibby/machine | openaddr/ci/__init__.py | 1 | 28361 | import logging; _L = logging.getLogger('openaddr.ci')
from ..compat import standard_library, expand_uri
from .. import jobs, render
from .objects import (
add_job, write_job, read_job, complete_set, update_set_renders,
add_run, set_run, copy_run, read_completed_set_runs,
get_completed_file_run, get_comple... | isc | -8,725,184,806,641,569,000 | 36.464993 | 106 | 0.618138 | false |
GoogleCloudPlatform/healthcare | imaging/ml/toolkit/hcls_imaging_ml_toolkit/test_pubsub_util.py | 1 | 1730 | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | 4,498,637,888,027,374,600 | 30.454545 | 76 | 0.731792 | false |
transientlunatic/acreroad_1420 | acreroad_1420/__main__.py | 2 | 18434 | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Main entry for SRT drive control.
Author: Ronnie Frith
Contact: frith.ronnie@gmail.com
"""
from . import CONFIGURATION as config
from . import CATALOGUE
from .drive import Drive
#from acreroad_1420 import CONFIGURATION as config
import numpy as np
import sys, argparse, t... | bsd-3-clause | 1,118,366,716,028,535,700 | 40.327354 | 560 | 0.613932 | false |
Qwaz/solved-hacking-problem | DEFCON/2019 Finals/babi/solver.py | 1 | 1302 | from base64 import b64encode
from pwn import *
def s_array(*args):
assert len(args) % 2 == 0
return 'a:%d:{' % (len(args) // 2) + ''.join(args) + '}'
def s_bool(val):
return 'b:%d;' % val
def s_str(s):
return 's:%d:"%s";' % (len(s), s)
def s_ref(val):
return 'r:%d;' % val... | gpl-2.0 | -9,006,028,544,528,207,000 | 15.835616 | 65 | 0.506144 | false |
WamanAvadhani/Rammbock | src/Rammbock/networking.py | 1 | 13800 | # Copyright 2014 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 | 5,183,357,354,468,281,000 | 31.394366 | 153 | 0.626304 | false |
jhanley634/testing-tools | problem/covid/sd_cases_deaths.py | 1 | 2150 | #! /usr/bin/env streamlit run
# Copyright 2020 John Hanley.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, mod... | mit | -4,698,819,997,443,697,000 | 35.440678 | 80 | 0.695349 | false |
spreeker/democracygame | democracy/issue/migrations/0002_auto__add_field_issue_slug.py | 1 | 4992 | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Issue.slug'
db.add_column('issue_issue', 'slug', self.gf('django.db.models.fields.SlugFiel... | bsd-3-clause | -6,876,075,056,248,061,000 | 64.684211 | 182 | 0.553085 | false |
TheImagingSource/tiscamera | examples/python/00-list-devices.py | 1 | 2576 | #!/usr/bin/env python3
# Copyright 2017 The Imaging Source Europe GmbH
#
# 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 a... | apache-2.0 | -4,272,001,744,929,887,700 | 31.607595 | 94 | 0.660326 | false |
cfelton/minnesota | test/test_system/test_regfile.py | 1 | 7464 | #
# Copyright (c) 2006-2013 Christopher L. Felton
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This prog... | gpl-3.0 | 6,406,166,799,250,013,000 | 28.975904 | 93 | 0.561763 | false |
BlackhatEspeed/electrum | gui/qt/seed_dialog.py | 1 | 3072 | #!/usr/bin/env python
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2013 ecdsa@github
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your... | gpl-3.0 | 2,860,938,589,312,174,000 | 35.141176 | 160 | 0.66569 | false |
crdoconnor/dumbyaml | tests/engine.py | 1 | 4347 | from subprocess import check_call, call, PIPE, CalledProcessError
from os import path, system, chdir
import hitchpython
import hitchserve
import hitchtest
import hitchcli
from commandlib import Command, run
from pathlib import Path
# Get directory above this file
PROJECT_DIRECTORY = path.abspath(path.join(path.dirnam... | mit | -51,328,045,312,967,176 | 37.8125 | 99 | 0.566598 | false |
tleonhardt/CodingPlayground | python/cffi/fibonacci/test_cffi.py | 1 | 1755 | #!/usr/bin/env python
""" Python wrapper to time the CFFI wrapper for computing the nth fibonacci number
in a non-recursive fashion and compare it to the pure Python implementation.
"""
import cffi
import fib_python
if __name__ == '__main__':
import sys
import timeit
n = 20
try:
n = int(sys.ar... | mit | -701,642,183,918,904,800 | 34.1 | 154 | 0.612536 | false |
openstack/octavia | octavia/tests/functional/api/v2/test_availability_zone_profiles.py | 1 | 29649 | # Copyright 2019 Verizon Media
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 | 1,955,087,208,449,069,000 | 49.337861 | 79 | 0.58835 | false |
robertchase/spindrift | test/test_http.py | 1 | 2290 | import gzip
import pytest
import spindrift.http as http
import spindrift.network as network
PORT = 12345
class Context(object):
def __init__(self):
self.server = 0
self.client = 0
class Server(http.HTTPHandler):
def on_http_data(self):
self.context.server += 1
self.http_... | mit | -7,030,067,683,979,909,000 | 20.203704 | 74 | 0.624017 | false |
RUBi-ZA/JMS | src/JMS/wsgi.py | 1 | 1589 | """
WSGI config for JMS project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` sett... | gpl-2.0 | 7,755,971,003,792,942,000 | 36.833333 | 79 | 0.786029 | false |
CityGenerator/Megacosm-Generator | tests/test_magicitem.py | 1 | 2982 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"Fully test this module's functionality through the use of fixtures."
from megacosm.generators import MagicItem
from megacosm.generators import NPC
from megacosm.generators import Curse
import unittest2 as unittest
import fixtures
import fakeredis
from config import TestC... | gpl-2.0 | 744,235,947,299,921,000 | 34.5 | 74 | 0.648893 | false |
jinhong666/Python | AvailabilityMonitor/DbAccess/dbaccesser.py | 1 | 1073 | #!/usr/bin/python
from Tools.datetimetool import DateTimeTool
import logging
from DbAccess import DBHelper
SOCKET_TIMEOUT = 1
class DbAccesser:
def __init__(self,host,user,pwd,db):
self._dbHelper = DBHelper(host,user,pwd,db)
self._logger = logging.getLogger("root")
def RecordMonitor(self,do... | apache-2.0 | 5,166,579,525,175,662,000 | 33.633333 | 116 | 0.6564 | false |
googleapis/python-aiplatform | samples/snippets/create_hyperparameter_tuning_job_python_package_sample.py | 1 | 3771 | # 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | 1,663,557,871,573,529,000 | 35.970588 | 95 | 0.638823 | false |
poffey21/edge | src/authentication/tests.py | 1 | 8664 | import re
from django.conf import settings
from django.contrib import auth
from django.contrib.auth import authenticate, get_user_model
from django.db.models.functions import Length
from django.test import Client
from django.test import TestCase
# Create your tests here.
from django.urls import reverse
from django.uti... | mit | -395,900,838,223,951,100 | 41.679803 | 115 | 0.651662 | false |
dNG-git/pas_upnp | src/dNG/data/upnp/identifier_mixin.py | 1 | 5198 | # -*- coding: utf-8 -*-
"""
direct PAS
Python Application Services
----------------------------------------------------------------------------
(C) direct Netware Group - All rights reserved
https://www.direct-netware.de/redirect?pas;upnp
The following license agreement remains valid unless any additions or
changes a... | gpl-2.0 | 28,591,505,664,425,940 | 24.111111 | 104 | 0.563678 | false |
JackyChou/SGRS | SGRS/common_settings.py | 1 | 3285 | """
Django settings for SGRS project.
Generated by 'django-admin startproject' using Django 1.8.
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/settings/
"""
# Build paths ins... | gpl-2.0 | 4,849,460,929,883,837,000 | 24.269231 | 71 | 0.666971 | false |
miguelgrinberg/microblog | migrations/versions/780739b227a7_posts_table.py | 1 | 1057 | """posts table
Revision ID: 780739b227a7
Revises: e517276bb1c2
Create Date: 2017-09-11 12:23:25.496587
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '780739b227a7'
down_revision = 'e517276bb1c2'
branch_labels = None
depends_on = None
def upgrade():
# ##... | mit | -2,497,830,188,465,469,400 | 27.567568 | 83 | 0.663198 | false |
googleapis/googleapis-gen | google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/enums/types/merchant_center_link_status.py | 1 | 1291 | # -*- 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 | 245,458,820,869,564,640 | 29.738095 | 74 | 0.693261 | false |
ActiDoo/gamification-engine | setup.py | 1 | 2935 | import os
import re
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.txt')) as f:
README = f.read()
with open(os.path.join(here, 'CHANGES.txt')) as f:
CHANGES = f.read()
requires = [
'pyramid',
'pyramid_chameleon',
... | mit | -1,113,054,953,801,862,000 | 28.646465 | 122 | 0.600341 | false |
keseldude/brobot | brobot/core/bot.py | 1 | 10481 | #===============================================================================
# brobot
# Copyright (C) 2010 Michael Keselman
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version... | gpl-3.0 | 7,017,456,056,481,446,000 | 34.771331 | 80 | 0.539929 | false |
Southpaw-TACTIC/TACTIC | src/pyasm/prod/web/render_wdg.py | 1 | 6716 | ###########################################################
#
# Copyright (c) 2005, Southpaw Technology
# All Rights Reserved
#
# PROPRIETARY INFORMATION. This software is proprietary to
# Southpaw Technology, and is not to be reproduced, transmitted,
# or disclosed in any way without written permi... | epl-1.0 | 7,091,345,297,028,031,000 | 31.444444 | 156 | 0.609738 | false |
Miserlou/Zappa | tests/test_app.py | 1 | 1055 | from zappa.asynchronous import task
try:
from urllib.parse import parse_qs
except ImportError:
from cgi import parse_qs
try:
from html import escape
except ImportError:
from cgi import escape
def hello_world(environ, start_response):
parameters = parse_qs(environ.get('QUERY_STRING', ''))
if '... | mit | -5,456,621,769,303,471,000 | 22.444444 | 84 | 0.651185 | false |
awacha/cct | attic/gui/core/builderwidget.py | 1 | 2464 | import logging
from gi.repository import Gtk, Gdk, GdkPixbuf
from ...core.utils.callback import Callbacks, SignalFlags
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
class BuilderWidget(Callbacks):
__signals__ = {'destroy': (SignalFlags.RUN_FIRST, None, ())}
def __init__(self, gladefil... | bsd-3-clause | -4,639,427,528,054,207,000 | 36.907692 | 99 | 0.640016 | false |
google-code/acromania | amprotocol.py | 1 | 3608 | # Copyright 2009 Lee Harr
#
# This file is part of Acromania.
#
# Acromania 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.
#
# Acroman... | gpl-3.0 | 1,931,519,000,349,934,800 | 28.818182 | 100 | 0.613359 | false |
matthewbauer/Reggie | windows_build.py | 1 | 2846 | from distutils.core import setup
from py2exe.build_exe import py2exe
import os, os.path, shutil, sys
upxFlag = False
if '-upx' in sys.argv:
sys.argv.remove('-upx')
upxFlag = True
dir = 'distrib/windows'
print '[[ Freezing Reggie! ]]'
print '>> Destination directory: %s' % dir
sys.argv.append('py... | gpl-2.0 | 7,492,280,498,728,124,000 | 32.707317 | 84 | 0.603654 | false |
henrykironde/deletedret | docs/conf.py | 3 | 7970 | import sys
import sphinx_rtd_theme
from retriever.lib.defaults import ENCODING
encoding = ENCODING.lower()
from retriever.lib.defaults import VERSION, COPYRIGHT
from retriever.lib.scripts import SCRIPT_LIST, reload_scripts
from retriever.lib.tools import open_fw
from retriever.lib.repository import check_for_updates... | mit | -5,806,422,816,114,753,000 | 30.88 | 90 | 0.692346 | false |
Pikecillo/genna | external/4Suite-XML-1.0.2/test/Xml/Xslt/Borrowed/mb_20030223.py | 1 | 2150 | # a pretty straightforward Muenchian grouping test
from Xml.Xslt import test_harness
sheet_1 = """<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes"/>
<xsl:key name="skills-by-mark" match="skill" use="@m... | gpl-2.0 | 4,578,644,373,810,415,600 | 28.452055 | 80 | 0.583256 | false |
AstroHuntsman/POCS | pocs/tests/test_focuser.py | 1 | 4299 | import pytest
from pocs.focuser.simulator import Focuser as SimFocuser
from pocs.focuser.birger import Focuser as BirgerFocuser
from pocs.camera.simulator import Camera
from pocs.utils.config import load_config
params = [SimFocuser, BirgerFocuser]
ids = ['simulator', 'birger']
# Ugly hack to access id inside fixtur... | mit | -8,882,572,169,062,581,000 | 33.392 | 94 | 0.676902 | false |
windmill/windmill | windmill/management/commands/test_windmill.py | 1 | 4314 | # Copyright (c) 2008-2009 Mikeal Rogers <mikeal.rogers@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | apache-2.0 | 8,694,265,997,949,678,000 | 36.513043 | 100 | 0.572323 | false |
datapythonista/pandas | pandas/tests/io/pytables/test_timezones.py | 2 | 11495 | from datetime import (
date,
timedelta,
)
import numpy as np
import pytest
from pandas._libs.tslibs.timezones import maybe_get_tz
import pandas.util._test_decorators as td
import pandas as pd
from pandas import (
DataFrame,
DatetimeIndex,
Series,
Timestamp,
date_range,
)
import pandas._te... | bsd-3-clause | -4,588,879,910,586,167,000 | 29.817694 | 85 | 0.582427 | false |
WarrenWeckesser/scikits-image | skimage/morphology/convex_hull.py | 2 | 3703 | __all__ = ['convex_hull_image', 'convex_hull_object']
import numpy as np
from ..measure._pnpoly import grid_points_in_poly
from ._convex_hull import possible_hull
from ..measure._label import label
from ..util import unique_rows
try:
from scipy.spatial import Delaunay
except ImportError:
Delaunay = None
def... | bsd-3-clause | 7,252,472,451,150,757,000 | 30.117647 | 96 | 0.644883 | false |
evancasey/startup-finder | lib/github_dump.py | 1 | 1658 | import urllib
import urllib2
import json
import pdb
import sys
import time
import csv
import tokens
from models import *
class GithubListener:
def get_all_repos(self,org):
url = "https://api.github.com/orgs/" + org + "/repos?client_id=" + tokens.GITHUB_ID + "&client_secret=" + tokens.GITHUB_SECRET ... | mit | -1,315,194,730,258,532,000 | 20.269231 | 142 | 0.431242 | false |
reed-college/lemur | lemur/utility_modify.py | 1 | 23527 | # Libraries
# Local
from lemur import models as m
from lemur import (app, db)
from lemur.utility_generate_and_convert import (check_existence,
generate_lab_id,
generate_experiment_id,
... | mit | -2,824,706,532,023,522,000 | 42.649351 | 130 | 0.538403 | false |
Egor-Krivov/pdp | tests/test_base.py | 1 | 3421 | import unittest
import time
from contextlib import suppress
from queue import Queue as ThreadQueue
from threading import Thread
from threading import Event as ThreadEvent
import numpy as np
from pdp.base import InterruptableQueue, StopEvent, start_one2one_transformer
DEFAULT_LOOP_TIMEOUT = 0.02
def set_event_after... | mit | -184,339,067,233,399,360 | 29.81982 | 119 | 0.609763 | false |
modoboa/modoboa-stats | modoboa_stats/forms.py | 1 | 1691 | """Modoboa stats forms."""
import rrdtool
from pkg_resources import parse_version
from django.conf import settings
from django.utils.translation import ugettext_lazy
from django import forms
from modoboa.lib import form_utils
from modoboa.parameters import forms as param_forms
class ParametersForm(param_forms.Adm... | mit | 6,087,176,765,779,094,000 | 32.156863 | 79 | 0.66233 | false |
danthedeckie/streetsign | tests/test_formgets.py | 1 | 7692 | '''
tests/test_formgets.py
Tests for the various getstr/getint/getbool helper functions.
Part of streetsign.
'''
import sys
import os
import unittest
sys.path.append(os.path.dirname(__file__) + '/..')
from streetsign_server.views.utils import getstr, getint, getbool, \
... | gpl-3.0 | 531,835,391,887,350,800 | 32.443478 | 79 | 0.606344 | false |
bigzhao/flask-projects-manage | app/auth/views.py | 1 | 2830 | # -*- coding: utf-8 -*-
from flask import render_template, redirect, request, url_for, flash
from flask.ext.login import login_user, logout_user, login_required, current_user
from . import auth
from ..models import User
from .forms import RegisterForm, EditForm, ChangePasswdForm
from .. import db
@auth.route('/lo... | mit | 6,027,085,668,962,736,000 | 29.43956 | 83 | 0.625632 | false |
Tamriel/wagtail_room_booking | account/models.py | 1 | 13705 | from __future__ import unicode_literals
import datetime
import operator
try:
from urllib.parse import urlencode
except ImportError: # python 2
from urllib import urlencode
from django.core.urlresolvers import reverse
from django.db import models, transaction
from django.db.models import Q
from django.db.mod... | gpl-3.0 | 7,228,095,418,603,898,000 | 34.505181 | 110 | 0.624954 | false |
appleseedhq/gaffer | python/GafferUI/CompoundDataPlugValueWidget.py | 1 | 9030 | ##########################################################################
#
# Copyright (c) 2012, John Haddon. All rights reserved.
# Copyright (c) 2013, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that ... | bsd-3-clause | 551,014,885,235,974,460 | 50.306818 | 192 | 0.670764 | false |
bobismijnnaam/bobe-euler | 48/Utils.py | 1 | 12422 | #!/usr/bin/env python3
import collections
# skim seems to be intensive and doing a lot of work even though in some
# cases it could do less. For example, in add, you can stop skimming if after
# skimming the first two cells the carrier is 0.
# we need more kinds of skimming, at least two (i.e. the skim as we ... | mit | 5,004,734,104,982,722,000 | 24.096639 | 80 | 0.495089 | false |
projectgus/yamdwe | mediawiki.py | 1 | 7964 | """
Methods for importing mediawiki pages, images via the simplemediawki
wrapper to the MediaWiki API.
Copyright (C) 2014 Angus Gratton
Licensed under New BSD License as described in the file LICENSE.
"""
from __future__ import print_function, unicode_literals, absolute_import, division
import simplemediawiki, simplej... | bsd-3-clause | 6,800,407,379,736,151,000 | 48.465839 | 345 | 0.596936 | false |
alerta/python-alerta-client | alertaclient/top.py | 1 | 5079 | import curses
import sys
import time
from curses import wrapper
from datetime import datetime
from alertaclient.models.alert import Alert
from alertaclient.utils import DateTime
class Screen:
ALIGN_RIGHT = 'R'
ALIGN_CENTRE = 'C'
def __init__(self, client, timezone):
self.client = client
... | apache-2.0 | 1,558,769,885,894,008,600 | 33.087248 | 118 | 0.525103 | false |
ikinsella/squall | flaskapp/squall/models.py | 1 | 32913 | import os
import shutil
import json
import yaml
import zipfile
import re
from flask import (render_template, current_app)
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.login import (UserMixin, AnonymousUserMixin)
from werkzeug.security import (generate_password_hash, check_password_hash)
from sqlalchemy.e... | bsd-3-clause | -587,099,930,290,131,300 | 28.360393 | 80 | 0.599824 | false |
digwanderlust/pants | src/python/pants/base/target_addressable.py | 1 | 2168 | # 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, generators, nested_scopes, print_function,
unicode_literals, with_statement)
from six import stri... | apache-2.0 | 9,125,159,257,805,332,000 | 37.035088 | 95 | 0.690959 | false |
cryptapus/electrum-myr | plugins/ledger/qt.py | 1 | 2181 | import threading
from PyQt4.Qt import (QDialog, QInputDialog, QLineEdit,
QVBoxLayout, QLabel, SIGNAL)
import PyQt4.QtCore as QtCore
from electrum.i18n import _
from .ledger import LedgerPlugin
from ..hw_wallet.qt import QtHandlerBase, QtPluginBase
from electrum_gui.qt.util import *
from btchip.... | mit | 870,677,349,423,049,600 | 27.324675 | 121 | 0.607519 | false |
beni55/sentry | src/sentry/interfaces.py | 1 | 35445 | """
sentry.interfaces
~~~~~~~~~~~~~~~~~
Interfaces provide an abstraction for how structured data should be
validated and rendered.
:copyright: (c) 2010-2013 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
import itertools
import urlparse
import warnings
from pygme... | bsd-3-clause | 8,498,770,027,748,643,000 | 29.424893 | 119 | 0.551136 | false |
blag/django-watchman | tests/test_views.py | 1 | 13325 | # -*- coding: utf-8 -*-
"""
test_django-watchman
------------
Tests for `django-watchman` views module.
"""
from __future__ import unicode_literals
import json
try:
from importlib import reload
except ImportError: # Python < 3
pass
import sys
import unittest
import django
from django.conf import settings
... | bsd-3-clause | 8,361,702,971,815,497,000 | 36.641243 | 126 | 0.644428 | false |
xcgspring/XSTAF | XSTAF/ui/ui_confirmDialog.py | 1 | 2148 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'confirmDialog.ui'
#
# Created: Fri Jun 05 09:54:07 2015
# by: PyQt4 UI code generator 4.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except ... | apache-2.0 | -5,367,792,330,494,818,000 | 40.307692 | 102 | 0.705773 | false |
deannariddlespur/django-baker | django_baker/management/commands/bake.py | 1 | 2636 | from __future__ import print_function
from django.core.management.base import BaseCommand, CommandError
from django.core.exceptions import ImproperlyConfigured
from django.db.models import get_app, get_models
from django.db.models.loading import get_model
from ...bakery import Baker
class Command(BaseCommand):
ar... | bsd-3-clause | 8,704,876,466,907,126,000 | 42.933333 | 120 | 0.616844 | false |
noironetworks/neutron | neutron/agent/common/resource_processing_queue.py | 1 | 6194 | # Copyright 2014 Hewlett-Packard Development Company, L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | apache-2.0 | 4,223,049,414,664,777,700 | 36.539394 | 79 | 0.652406 | false |
open-synergy/opnsynid-partner-contact | partner_app/models/res_partner.py | 1 | 1107 | # -*- coding: utf-8 -*-
# Copyright 2017 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openerp import models, api
class ResPartner(models.Model):
_inherit = "res.partner"
@api.multi
def button_toggle_customer(self):
for partner in self:
pa... | agpl-3.0 | -3,164,423,185,243,750,400 | 24.744186 | 63 | 0.528455 | false |
GroestlCoin/electrum-grs | electrum_grs/plugins/trustedcoin/trustedcoin.py | 1 | 31657 | #!/usr/bin/env python
#
# Electrum - Lightweight Bitcoin Client
# Copyright (C) 2015 Thomas Voegtlin
#
# 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... | gpl-3.0 | -3,658,117,888,799,464,400 | 41.041169 | 139 | 0.603468 | false |
jkibele/benthic_photo_survey | bps_package/photo_tagging.py | 1 | 24681 | import pyexiv2 as exiv # see note about pyexiv2 in notes.txt
import json
from ast import literal_eval
from depth_temp_log_io import *
from configuration import *
from gps_log_io import *
from common import *
# That namespace url doesn't really exist. The custom tags seem to work
# without it. Perhaps I should figure ou... | bsd-3-clause | 3,740,261,318,711,634,000 | 37.146832 | 165 | 0.565658 | false |
rpavlik/jhbuild-vrjuggler | jhbuild/frontends/buildscript.py | 1 | 11073 | # jhbuild - a build script for GNOME 1.x and 2.x
# Copyright (C) 2001-2006 James Henstridge
# Copyright (C) 2003-2004 Seth Nickell
#
# buildscript.py: base class of the various interface types
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public Lic... | gpl-2.0 | 3,736,484,522,379,380,700 | 40.943182 | 101 | 0.530118 | false |
aoyono/sicpy | Chapter2/exercises/exercise2_37.py | 1 | 1735 | # -*- coding: utf-8 -*-
"""
https://mitpress.mit.edu/sicp/full-text/book/book-Z-H-15.html#%_thm_2.37
"""
from operator import add, mul
from Chapter2.exercises.exercise2_36 import accumulate_n
from Chapter2.themes.lisp_list_structured_data import cons, lisp_list, print_lisp_list
from Chapter2.sequences_as_conventional_... | mit | 4,179,315,568,607,372,300 | 21.532468 | 86 | 0.508357 | false |
Bioto/Huuey-python | huuey/hue/scenes/scene.py | 1 | 1071 | from huuey.paths import Paths
class Scene:
name = None
lights = []
owner = None
recycle = None
locked = None
appdata = None
picture = None
lastupdated = None
version = None
_id = None
_parent = None
def __init__(self, obj, parent, _id):
self._parent = parent
... | mit | 6,638,197,520,970,899,000 | 20 | 62 | 0.535948 | false |
openstack/vitrage | tools/datasource-scaffold/sample/__init__.py | 1 | 1820 | # Copyright 2018 - Vitrage team
#
# 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 writi... | apache-2.0 | 5,598,332,246,566,623,000 | 36.916667 | 75 | 0.636813 | false |
paultag/monomoy | monomoy/__init__.py | 1 | 1167 | # Copyright (c) 2012 Paul Tagliamonte <paultag@debian.org>
#
# 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 | -483,813,172,240,003,100 | 52.045455 | 76 | 0.769494 | false |
angloc/savutil | csv2json.py | 1 | 3749 | # Convert a CSV file into a JSON object with distribution
import classifiedunicodevalue
from classifiedunicodevalue import ClassifiedUnicodeValue
from datautil import compressedValueSequence, compressedValues
import unicodecsv
from version import savutilName, savutilVersion
def blankNone (x):
if x is None:
return... | gpl-2.0 | 4,556,128,825,799,290,000 | 23.503268 | 82 | 0.660443 | false |
ideascube/ideascube | ideascube/management/commands/tags.py | 1 | 7027 | import sys
from itertools import groupby
from operator import itemgetter
from django.utils.termcolors import colorize
from taggit.models import Tag, TaggedItem
from ideascube.management.base import BaseCommandWithSubcommands
from ideascube.utils import sanitize_tag_name
def log(text, **kwargs):
sys.stdout.writ... | agpl-3.0 | -4,190,601,327,684,026,000 | 38.477528 | 79 | 0.552156 | false |
hanteng/country-groups | scripts/_construct_data_EU-Asia.py | 1 | 4189 | # -*- coding: utf-8 -*-
#歧視無邊,回頭是岸。鍵起鍵落,情真情幻。
# Correction
import os.path, glob
import requests
from lxml.html import fromstring, tostring, parse
from io import StringIO, BytesIO
import codecs
import pandas as pd
import json
XML_encoding="utf-8"
# Data source
URL_ = "https://ec.europa.eu/europeaid/regions/asia-0_en"... | gpl-3.0 | 8,520,566,600,957,169,000 | 29.962687 | 140 | 0.633888 | false |
eckardm/archivematica | src/dashboard/src/components/archival_storage/forms.py | 1 | 1245 | # This file is part of Archivematica.
#
# Copyright 2010-2013 Artefactual Systems Inc. <http://artefactual.com>
#
# Archivematica is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the ... | agpl-3.0 | -1,230,661,360,885,088,800 | 37.90625 | 105 | 0.746185 | false |
petropavel13/2photo-api | utils.py | 1 | 3700 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals # py2
from datetime import datetime
from django.utils import timezone as tz
from django.utils.timezone import is_naive, make_aware
msk_tz = tz.pytz.timezone('Europe/Moscow')
date_mapping = {
'января': '1',
'февраля': '2',
'марта': '3',
... | mit | -4,624,639,881,835,006,000 | 24.549296 | 95 | 0.617971 | false |
shibanis1/spark-tk | python/sparktk/frame/ops/dot_product.py | 1 | 3552 | def dot_product(self, left_column_names,right_column_names,dot_product_column_name,default_left_values=None,default_right_values=None):
"""
Calculate dot product for each row in current frame.
Parameters
----------
:param left_column_names: (List[str]) Names of columns used to create the left vect... | apache-2.0 | -7,716,103,984,630,105,000 | 46.36 | 146 | 0.561937 | false |
bjoernmainz/simple-contact-form | images/bin/rename_speech.py | 1 | 1168 | #!/usr/bin/python
import os
import glob
import shutil
def rename(files):
new_files = []
for f in files:
dirname = os.path.dirname(f)
basename = os.path.basename(f)
filetype = ""
number = ""
print("------------")
print("Basename: %s") % basename
if not basename.find("ogg") == -1:
file_type = "og... | gpl-2.0 | 4,740,280,325,139,808,000 | 20.236364 | 69 | 0.605308 | false |
openstack/designate | designate/rpc.py | 1 | 8026 | # Copyright 2013 Red Hat, 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 agre... | apache-2.0 | -4,182,365,424,016,584,000 | 31.626016 | 79 | 0.661974 | false |
Azure/azure-sdk-for-python | sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_dedicated_host_groups_operations.py | 1 | 21434 | # 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 may ... | mit | -3,765,282,343,104,155,000 | 48.273563 | 180 | 0.646776 | false |
ewandor/home-assistant | homeassistant/components/websocket_api.py | 1 | 14819 | """
Websocket based API for Home Assistant.
For more details about this component, please refer to the documentation at
https://home-assistant.io/developers/websocket_api/
"""
import asyncio
from contextlib import suppress
from functools import partial
import json
import logging
from aiohttp import web
import voluptu... | apache-2.0 | -6,186,071,054,472,008,000 | 28.51992 | 78 | 0.577569 | false |
dazhaoniel/1kg-more | js1kg/urls.py | 1 | 3537 | from django.conf.urls import url, include
from django.views.generic import TemplateView
from django.contrib.auth.decorators import login_required
from django.core.urlresolvers import reverse_lazy
from rest_framework import routers
from js1kg.corporate import views as corporate_views
from js1kg.message import views as ... | apache-2.0 | 2,167,665,762,157,306,400 | 46.797297 | 125 | 0.704552 | false |
lissyx/build-mozharness | scripts/desktop_unittest.py | 1 | 28855 | #!/usr/bin/env python
# ***** BEGIN LICENSE BLOCK *****
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
# ***** END LICENSE BLOCK *****
"""desktop_unittest.py
The goal o... | mpl-2.0 | 5,648,094,374,295,425,000 | 44.369497 | 115 | 0.535089 | false |
rosedu/I.GameBot | tictactoe/game_engine/generate_leaderboard.py | 1 | 1523 | import sys
import json
import operator
def read_raw_json(file_handle):
f = open(file_handle, 'r')
try:
raw_json = f.read()
finally:
f.close()
return raw_json
def parse_raw_json(raw_json):
return json.loads(raw_json)
def add_contestant_info_to_players_dictionary(
contest... | agpl-3.0 | -8,578,562,874,529,528,000 | 21.397059 | 79 | 0.639527 | false |
kashif/chainer | tests/chainer_tests/functions_tests/activation_tests/test_tanh.py | 1 | 3973 | import unittest
import mock
import numpy
import chainer
from chainer import cuda
from chainer import functions
from chainer import gradient_check
from chainer import testing
from chainer.testing import attr
from chainer.testing import condition
@testing.parameterize(*testing.product({
'shape': [(3, 2), ()],
... | mit | -706,666,682,520,923,000 | 33.25 | 79 | 0.623207 | false |
jtaghiyar/single_cell_lims | elastidjango/celery.py | 1 | 1033 | """
Created on Oct 27, 2016
@author: Jafar Taghiyar (jtaghiyar@bccrc.ca)
"""
from __future__ import absolute_import
import os
#============================
# Celery imports
#----------------------------
from celery import Celery
#============================
# Django imports
#----------------------------
# set the... | mit | 4,008,024,806,926,323,000 | 25.512821 | 74 | 0.621491 | false |
alecthomas/voluptuous | voluptuous/util.py | 3 | 3150 | import sys
from voluptuous.error import LiteralInvalid, TypeInvalid, Invalid
from voluptuous.schema_builder import Schema, default_factory, raises
from voluptuous import validators
__author__ = 'tusharmakkar08'
def _fix_str(v):
if sys.version_info[0] == 2 and isinstance(v, unicode):
s = v
else:
... | bsd-3-clause | 5,798,480,879,912,180,000 | 18.444444 | 72 | 0.51619 | false |
google/sample-sql-translator | sql_parser/func.py | 1 | 3624 | # 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | apache-2.0 | 3,897,709,106,737,068,000 | 27.992 | 78 | 0.586093 | false |
FrodeSolheim/fs-uae | docs/scripts/update.py | 1 | 17476 | #!/usr/bin/env python3
import os
import shutil
import sys
try:
import markdown
except ImportError:
markdown = None
if not os.path.exists("docs/scripts"):
print("Run this script from the project root directory")
sys.exit(1)
last_main_option = ""
last_main_option_added = False
option_data = {}
option... | gpl-2.0 | -654,725,747,254,878,300 | 30.545126 | 90 | 0.463493 | false |
openstack/python-senlinclient | doc/source/conf.py | 1 | 2408 |
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under ... | apache-2.0 | 1,665,903,313,054,131,200 | 33.4 | 79 | 0.69892 | false |
gregplaysguitar/django-trolley | cart/views.py | 1 | 17305 | # -*- coding: utf-8 -*-
import simplejson
from django.http import HttpResponse, HttpResponseNotAllowed, HttpResponseRedirect
from django.template import RequestContext
from django.shortcuts import get_object_or_404
from django.conf import settings
from django.template.loader import get_template
from django.template.l... | bsd-3-clause | -3,236,693,349,976,724,500 | 35.976496 | 129 | 0.535452 | false |
dhermes/project-euler | python/complete/no335.py | 1 | 1809 | #!/usr/bin/env python
# Since M(2**n + 1) = 4**n + 3**n - 2**(n + 1) (empirically),
# we find sum_{n=0}^{P} M(2**n + 1) is equal to
# (4**(P + 1) - 1)/3 + (3**(P + 1) - 1)/2 + 2*(2**(P + 1) - 1)
# = (4*(4**P) - 1)*(3**(-1)) + (3*(3**P) - 1)*(2**(-1)) + 4*(2**P) - 2
# (This is because (r - 1)*(r**P + ... + r + 1) = r**... | apache-2.0 | -1,711,806,754,531,232,000 | 29.15 | 74 | 0.512438 | false |
dionhaefner/veros | veros/core/streamfunction/island.py | 1 | 1983 | import numpy
import scipy.ndimage
from ... import veros_method, runtime_settings as rs
from .. import utilities
@veros_method
def isleperim(vs, kmt, verbose=False):
utilities.enforce_boundaries(vs, kmt)
if rs.backend == 'bohrium':
kmt = kmt.copy2numpy()
structure = numpy.ones((3, 3)) # merge d... | mit | 4,557,765,566,113,674,000 | 32.610169 | 81 | 0.646495 | false |
AlessandroMinali/pyIRCbot | pyIRCbot.py | 1 | 2803 | #Alessandro Minali 2014
# www.alessandrom.me
#questions/suggestions/feedback to: alessandro.minali@gmail.com
##ONLY CHANGE VALUES THAT HAVE COMMENTS BESIDE THEM
import socket
import commands
import moderation
import time
class PyIRCBot():
def __init__(self):
HOST = "irc.twitch.tv"
P... | mit | -26,257,662,847,638,284 | 30.593023 | 95 | 0.475919 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.