hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e72c41aab33604f2ec16e615d495812f5f5c7b37 | 139 | py | Python | login/urls.py | JianPpan/untitled_ClassManagement | f6bd968823fc376ec1971ee9d2eece308287455a | [
"MulanPSL-1.0"
] | null | null | null | login/urls.py | JianPpan/untitled_ClassManagement | f6bd968823fc376ec1971ee9d2eece308287455a | [
"MulanPSL-1.0"
] | null | null | null | login/urls.py | JianPpan/untitled_ClassManagement | f6bd968823fc376ec1971ee9d2eece308287455a | [
"MulanPSL-1.0"
] | null | null | null | from django.conf.urls import url
from login.views import login
app_name = 'logins'
urlpatterns = [
url(r'^$', login, name='login')
] | 15.444444 | 35 | 0.683453 |
e72e5ca0d5f1fd1ab089d27e8486d4e08350c674 | 2,136 | py | Python | tests/performance_test.py | CMU-TBD/behavior_machine | b403192b8002603fc20c76713c7a9fe46a7ed686 | [
"MIT"
] | 1 | 2020-07-28T20:17:52.000Z | 2020-07-28T20:17:52.000Z | tests/performance_test.py | CMU-TBD/behavior_machine | b403192b8002603fc20c76713c7a9fe46a7ed686 | [
"MIT"
] | 1 | 2021-01-25T15:54:45.000Z | 2021-01-25T15:54:45.000Z | tests/performance_test.py | CMU-TBD/behavior_machine | b403192b8002603fc20c76713c7a9fe46a7ed686 | [
"MIT"
] | 1 | 2021-01-22T06:12:10.000Z | 2021-01-22T06:12:10.000Z | from behavior_machine.library.parallel_state import ParallelState
import time
from behavior_machine.core import Board, StateStatus, State, Machine, machine
from behavior_machine.library import IdleState
| 27.384615 | 77 | 0.654963 |
e72eb1777b0eeb9d14e40c925b44ea47d54e32ca | 289 | py | Python | kubernetes_typed/client/models/v1_nfs_volume_source.py | nikhiljha/kubernetes-typed | 4f4b969aa400c88306f92560e56bda6d19b2a895 | [
"Apache-2.0"
] | 22 | 2020-12-10T13:06:02.000Z | 2022-02-13T21:58:15.000Z | kubernetes_typed/client/models/v1_nfs_volume_source.py | nikhiljha/kubernetes-typed | 4f4b969aa400c88306f92560e56bda6d19b2a895 | [
"Apache-2.0"
] | 4 | 2021-03-08T07:06:12.000Z | 2022-03-29T23:41:45.000Z | kubernetes_typed/client/models/v1_nfs_volume_source.py | nikhiljha/kubernetes-typed | 4f4b969aa400c88306f92560e56bda6d19b2a895 | [
"Apache-2.0"
] | 2 | 2021-09-05T19:18:28.000Z | 2022-03-14T02:56:17.000Z | # Code generated by `typeddictgen`. DO NOT EDIT.
"""V1NFSVolumeSourceDict generated type."""
from typing import TypedDict
V1NFSVolumeSourceDict = TypedDict(
"V1NFSVolumeSourceDict",
{
"path": str,
"readOnly": bool,
"server": str,
},
total=False,
)
| 20.642857 | 48 | 0.636678 |
e72ec4ac47db8b60c5ca290dce90179f2358006a | 3,580 | py | Python | scdown/sc.py | chrisjr/scdown | fe82dce52884661297ecf640cd3ffd18c76ffc25 | [
"MIT"
] | null | null | null | scdown/sc.py | chrisjr/scdown | fe82dce52884661297ecf640cd3ffd18c76ffc25 | [
"MIT"
] | null | null | null | scdown/sc.py | chrisjr/scdown | fe82dce52884661297ecf640cd3ffd18c76ffc25 | [
"MIT"
] | null | null | null | import soundcloud
import os
import logging
from datetime import datetime
import requests
import sys
from celeryconfig import mongolab
import pymongo
from pymongo import MongoClient
from pymongo.errors import OperationFailure
USER = '/users/{_id}'
USER_TRACKS = '/users/{_id}/tracks'
USER_FOLLOWINGS = '/users/{_id}/fol... | 30.862069 | 75 | 0.572626 |
e730923173d6165ff991f322cce7b078b98b427d | 3,163 | py | Python | engine/api/gcp/tasks/system_add_new_usecase.py | torrotitans/torro_community | a3f153e69a860f0d6c831145f529d9e92193a0ae | [
"MIT"
] | 1 | 2022-01-12T08:31:59.000Z | 2022-01-12T08:31:59.000Z | engine/api/gcp/tasks/system_add_new_usecase.py | torrotitans/torro_community | a3f153e69a860f0d6c831145f529d9e92193a0ae | [
"MIT"
] | null | null | null | engine/api/gcp/tasks/system_add_new_usecase.py | torrotitans/torro_community | a3f153e69a860f0d6c831145f529d9e92193a0ae | [
"MIT"
] | 2 | 2022-01-19T06:26:32.000Z | 2022-01-26T15:25:15.000Z | from api.gcp.tasks.baseTask import baseTask
from db.usecase.db_usecase_mgr import usecase_mgr
from googleapiclient.errors import HttpError
from utils.status_code import response_code
import traceback
import json
import logging
logger = logging.getLogger("main.api.gcp.tasks" + __name__) | 44.549296 | 121 | 0.5773 |
e73096dd8b901862007a1822a67dd870b61cd04e | 43,110 | py | Python | tests/PyroTests/test_server.py | gabehack/Pyro4 | 88f88bf1ccdfaff8c2bbbda8fc032a145d07d44b | [
"MIT"
] | null | null | null | tests/PyroTests/test_server.py | gabehack/Pyro4 | 88f88bf1ccdfaff8c2bbbda8fc032a145d07d44b | [
"MIT"
] | null | null | null | tests/PyroTests/test_server.py | gabehack/Pyro4 | 88f88bf1ccdfaff8c2bbbda8fc032a145d07d44b | [
"MIT"
] | null | null | null | """
Tests for a running Pyro server, without timeouts.
Pyro - Python Remote Objects. Copyright by Irmen de Jong (irmen@razorvine.net).
"""
import time
import sys
import uuid
import unittest
import Pyro4.core
import Pyro4.errors
import Pyro4.util
import Pyro4.message
from Pyro4 import threadutil, curren... | 42.767857 | 153 | 0.575389 |
e731796d279cf969e12aff158cf9fea92faa20ea | 1,394 | py | Python | allies/management/commands/volley_ally.py | kevincornish/HeckGuide | eb974d6b589908f5fc2308d41032a48941cc3d21 | [
"MIT"
] | 4 | 2022-02-16T10:19:11.000Z | 2022-03-17T03:34:26.000Z | allies/management/commands/volley_ally.py | kevincornish/HeckGuide | eb974d6b589908f5fc2308d41032a48941cc3d21 | [
"MIT"
] | 1 | 2022-02-17T14:02:31.000Z | 2022-03-31T03:56:42.000Z | allies/management/commands/volley_ally.py | kevincornish/HeckGuide | eb974d6b589908f5fc2308d41032a48941cc3d21 | [
"MIT"
] | 3 | 2022-02-17T06:13:52.000Z | 2022-03-23T21:37:21.000Z | from django.core.management.base import BaseCommand, CommandError
from api import HeckfireApi, TokenException
from django.conf import settings
import logging
logger = logging.getLogger(__name__) | 38.722222 | 82 | 0.607604 |
e73755fa550829d883f1573e3aa8b34fc04f814e | 7,030 | py | Python | src/tabnet/sparsemax.py | clemens33/thesis | c94e066c2fe22881a7465eb9c3859bd02138748e | [
"MIT"
] | null | null | null | src/tabnet/sparsemax.py | clemens33/thesis | c94e066c2fe22881a7465eb9c3859bd02138748e | [
"MIT"
] | null | null | null | src/tabnet/sparsemax.py | clemens33/thesis | c94e066c2fe22881a7465eb9c3859bd02138748e | [
"MIT"
] | null | null | null | from typing import Any, Tuple, Union
import torch
import torch.nn as nn
from entmax import entmax_bisect
| 32.100457 | 117 | 0.616074 |
e737a6ff2ca452102fe4ae2d50a7bb2e06a1ab1b | 1,423 | py | Python | subseasonal_toolkit/models/deb_ecmwf/ecmwf_utils.py | UtopiaLLC/subseasonal_toolkit | 35e120a010606d10a7d94cdfbf4cb8347a234dfb | [
"MIT"
] | 2 | 2021-10-02T07:37:52.000Z | 2022-01-27T07:46:31.000Z | subseasonal_toolkit/models/deb_ecmwf/ecmwf_utils.py | UtopiaLLC/subseasonal_toolkit | 35e120a010606d10a7d94cdfbf4cb8347a234dfb | [
"MIT"
] | null | null | null | subseasonal_toolkit/models/deb_ecmwf/ecmwf_utils.py | UtopiaLLC/subseasonal_toolkit | 35e120a010606d10a7d94cdfbf4cb8347a234dfb | [
"MIT"
] | 3 | 2021-09-27T16:53:35.000Z | 2021-12-27T21:39:07.000Z | from scipy.spatial.distance import cdist, euclidean
def geometric_median(X, eps=1e-5):
"""Computes the geometric median of the columns of X, up to a tolerance epsilon.
The geometric median is the vector that minimizes the mean Euclidean norm to
each column of X.
"""
y = np.mean(X, 0)
while Tru... | 30.276596 | 99 | 0.550246 |
e7390c6ea9997d92c5a59b802c520427aaf2e179 | 2,493 | py | Python | espnet2/gan_tts/vits/monotonic_align/__init__.py | roshansh-cmu/espnet | 5fa6dcc4e649dc66397c629d0030d09ecef36b80 | [
"Apache-2.0"
] | null | null | null | espnet2/gan_tts/vits/monotonic_align/__init__.py | roshansh-cmu/espnet | 5fa6dcc4e649dc66397c629d0030d09ecef36b80 | [
"Apache-2.0"
] | null | null | null | espnet2/gan_tts/vits/monotonic_align/__init__.py | roshansh-cmu/espnet | 5fa6dcc4e649dc66397c629d0030d09ecef36b80 | [
"Apache-2.0"
] | null | null | null | """Maximum path calculation module.
This code is based on https://github.com/jaywalnut310/vits.
"""
import warnings
import numpy as np
import torch
from numba import njit, prange
try:
from .core import maximum_path_c
is_cython_avalable = True
except ImportError:
is_cython_avalable = False
warnings... | 31.1625 | 88 | 0.607702 |
e739779fbb9f7ff0a4abdae832fc3a6922d47f68 | 620 | py | Python | plugins/mod_log.py | nfcgate/server | 51dd45e64f91e765b1a0c9d5e5f52933006fb212 | [
"Apache-2.0"
] | 25 | 2016-01-13T21:59:00.000Z | 2022-02-05T07:55:18.000Z | plugins/mod_log.py | salmg/server | e5b485c4e2517aa741ed70948a92c61c1bc73f62 | [
"Apache-2.0"
] | 3 | 2018-05-30T13:42:12.000Z | 2020-10-13T09:56:01.000Z | plugins/mod_log.py | salmg/server | e5b485c4e2517aa741ed70948a92c61c1bc73f62 | [
"Apache-2.0"
] | 19 | 2015-08-23T02:53:33.000Z | 2021-09-28T20:53:50.000Z | from plugins.c2c_pb2 import NFCData
from plugins.c2s_pb2 import ServerData
| 26.956522 | 88 | 0.701613 |
e7398960f4dd8de46cd8fd73487b06b0c4d4c812 | 3,191 | py | Python | rowboat/plugins/join.py | DeJayDev/speedboat | ecce2075b69d8e18de17fac0daa702eb59cfcddd | [
"MIT"
] | 16 | 2021-01-03T14:00:48.000Z | 2022-03-01T21:03:27.000Z | rowboat/plugins/join.py | DeJayDev/speedboat | ecce2075b69d8e18de17fac0daa702eb59cfcddd | [
"MIT"
] | 14 | 2020-11-20T07:00:09.000Z | 2022-03-12T01:02:08.000Z | rowboat/plugins/join.py | SethBots/speedboat | e516261e9d34031045c70522955e8babe3d8ec6e | [
"MIT"
] | 9 | 2018-09-12T20:50:44.000Z | 2020-06-20T15:58:52.000Z | from datetime import datetime, timedelta
import gevent
from disco.types.base import SlottedModel
from disco.types.guild import VerificationLevel
from disco.util.snowflake import to_datetime
from rowboat.plugins import RowboatPlugin as Plugin
from rowboat.types import Field, snowflake
from rowboat.types.plugin import ... | 42.546667 | 127 | 0.67095 |
e73ab7b64cfe244e1ca49e1be6932024a4d3924d | 7,062 | py | Python | hue/logic/action.py | dnnsmnstrr/workflows | 104b370292060b7011120e7decb3db26275ae7f5 | [
"Unlicense"
] | 4 | 2020-08-12T21:56:07.000Z | 2021-06-01T09:11:12.000Z | hue/logic/action.py | dnnsmnstrr/workflows | 104b370292060b7011120e7decb3db26275ae7f5 | [
"Unlicense"
] | null | null | null | hue/logic/action.py | dnnsmnstrr/workflows | 104b370292060b7011120e7decb3db26275ae7f5 | [
"Unlicense"
] | 1 | 2021-12-06T02:40:43.000Z | 2021-12-06T02:40:43.000Z | # encoding: utf-8
from __future__ import unicode_literals
import colorsys
import datetime
import json
import os
import random
import sys
import time
from packages.workflow import Workflow3 as Workflow
import colors
import harmony
import request
import setup
import utils
if __name__ == '__main__':
workflow = W... | 31.810811 | 98 | 0.534551 |
e73aed3b29e68e999fa8e3ace630cc2cc0db89e5 | 734 | py | Python | bookshelf/accounts/urls.py | Danielvalev/bookshelf | eda857b275de49623c57e2288f86f401b87406c9 | [
"MIT"
] | null | null | null | bookshelf/accounts/urls.py | Danielvalev/bookshelf | eda857b275de49623c57e2288f86f401b87406c9 | [
"MIT"
] | null | null | null | bookshelf/accounts/urls.py | Danielvalev/bookshelf | eda857b275de49623c57e2288f86f401b87406c9 | [
"MIT"
] | null | null | null | from django.urls import path
from accounts.views import user_profile, LogoutView, LoginView, RegisterView, user_profile_edit
urlpatterns = [
# path('login/', login_user, name='login user'),
path('login/', LoginView.as_view(), name='login user'), # CBV
# path('logout/', logout_user, name='logout user'),
... | 43.176471 | 95 | 0.678474 |
e73ccdac55d151051f197eec351b7129cd6e61de | 13,790 | py | Python | doc/.src/book/src/approx1D.py | hplgit/fem-book | c23099715dc3cb72e7f4d37625e6f9614ee5fc4e | [
"MIT"
] | 86 | 2015-12-17T12:57:11.000Z | 2022-03-26T01:53:47.000Z | doc/.src/book/src/approx1D.py | hplgit/fem-book | c23099715dc3cb72e7f4d37625e6f9614ee5fc4e | [
"MIT"
] | 9 | 2017-04-16T21:57:29.000Z | 2021-04-17T08:09:30.000Z | doc/.src/book/src/approx1D.py | hplgit/fem-book | c23099715dc3cb72e7f4d37625e6f9614ee5fc4e | [
"MIT"
] | 43 | 2016-03-11T19:33:14.000Z | 2022-03-05T00:21:57.000Z | """
Approximation of functions by linear combination of basis functions in
function spaces and the least squares method or the collocation method
for determining the coefficients.
"""
from __future__ import print_function
import sympy as sym
import numpy as np
import mpmath
import matplotlib.pyplot as plt
#import sci... | 36.005222 | 78 | 0.570631 |
e73d28b97614c66ca738e1e4c737e90d85ce9b19 | 835 | py | Python | src/problems/cancel_1112/gen.py | Leomotors/stupid-problems | 801213b7646e39530e2fe652c95ec6cd887e7bd1 | [
"MIT"
] | null | null | null | src/problems/cancel_1112/gen.py | Leomotors/stupid-problems | 801213b7646e39530e2fe652c95ec6cd887e7bd1 | [
"MIT"
] | null | null | null | src/problems/cancel_1112/gen.py | Leomotors/stupid-problems | 801213b7646e39530e2fe652c95ec6cd887e7bd1 | [
"MIT"
] | null | null | null |
# * N <= 500, M <= 10000, max(p), max(a) <= 1e6
# * 10 : N, max(p), max(a) <= 10, M <= 15
# * 20 : N <= 20, M <= 100
# * 30 : N <= 69, M <= 420
# * 50 :
| 33.4 | 48 | 0.48982 |
e7422355175454fcfb89f48ad2d00d9c5dd1fa0e | 2,532 | py | Python | dash_website/utils/controls.py | SamuelDiai/Dash-Website | e064e432f14a86de1b54cf31ab311997c5643129 | [
"MIT"
] | null | null | null | dash_website/utils/controls.py | SamuelDiai/Dash-Website | e064e432f14a86de1b54cf31ab311997c5643129 | [
"MIT"
] | null | null | null | dash_website/utils/controls.py | SamuelDiai/Dash-Website | e064e432f14a86de1b54cf31ab311997c5643129 | [
"MIT"
] | null | null | null | import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
| 25.836735 | 105 | 0.554502 |
e745fb5c2bd82701b4b6fe87fdf23d2d1913eabb | 2,333 | py | Python | hedwig/test.py | Cool-tong/covid | 389c490e60f7b854369e0600b6dfc071baceaa7e | [
"Apache-2.0"
] | 15 | 2020-06-25T21:44:41.000Z | 2022-01-14T23:41:50.000Z | hedwig/test.py | Cool-tong/covid | 389c490e60f7b854369e0600b6dfc071baceaa7e | [
"Apache-2.0"
] | 9 | 2021-03-31T19:48:34.000Z | 2022-03-12T00:34:28.000Z | hedwig/test.py | Cool-tong/covid | 389c490e60f7b854369e0600b6dfc071baceaa7e | [
"Apache-2.0"
] | 8 | 2020-09-16T10:29:14.000Z | 2022-01-16T17:53:41.000Z | # from transformers import ReformerModel, ReformerTokenizer
# import torch
#
# tokenizer = ReformerTokenizer.from_pretrained('google/reformer-crime-and-punishment')
# model = ReformerModel.from_pretrained('google/reformer-crime-and-punishment')
#
# input_ids = torch.tensor(tokenizer.encode("Hello, my dog is cute", add... | 44.865385 | 123 | 0.753965 |
e746b6586494198935ce54917af266b0ab3f32e9 | 7,091 | py | Python | nginx_parse_emit/utils.py | offscale/nginx-parse-emit | 29b020f62fe1bc8377f2c30689f4bb4c5777ec69 | [
"Apache-2.0",
"MIT"
] | null | null | null | nginx_parse_emit/utils.py | offscale/nginx-parse-emit | 29b020f62fe1bc8377f2c30689f4bb4c5777ec69 | [
"Apache-2.0",
"MIT"
] | null | null | null | nginx_parse_emit/utils.py | offscale/nginx-parse-emit | 29b020f62fe1bc8377f2c30689f4bb4c5777ec69 | [
"Apache-2.0",
"MIT"
] | null | null | null | from operator import itemgetter
from platform import python_version_tuple
from sys import version
if version[0] == "2":
from cStringIO import StringIO
else:
from functools import reduce
from io import StringIO
from copy import copy
from itertools import filterfalse
from os import remove, path
from strin... | 30.433476 | 103 | 0.608236 |
e7480e46acbddcd69f925328f54a3a8f35b1978c | 832 | py | Python | setup.py | JimBoonie/hydra | 63665090812e4e209c67d5dc0b84b5bb35a57ead | [
"MIT"
] | 28 | 2015-12-30T22:38:16.000Z | 2021-03-21T07:52:39.000Z | setup.py | JimBoonie/hydra | 63665090812e4e209c67d5dc0b84b5bb35a57ead | [
"MIT"
] | 2 | 2017-02-23T09:54:09.000Z | 2018-12-14T12:20:28.000Z | setup.py | JimBoonie/hydra | 63665090812e4e209c67d5dc0b84b5bb35a57ead | [
"MIT"
] | 7 | 2017-02-23T09:43:24.000Z | 2022-01-10T12:17:36.000Z | from setuptools import setup
from setuptools.command.install import install as _install
setup(
cmdclass = { 'install' : install },
name = 'hydra',
version = '0.1',
author = 'tatsy',
author_email = 'tatsy.mail@gmail.com',
url = 'https://github.com/tatsy/hydra.git',
description = 'Python HDR ... | 25.212121 | 58 | 0.56851 |
e74a1d4b6667e28ee221b633c7ed252338e6e82b | 689 | py | Python | appmail/migrations/0003_emailtemplate_test_context.py | yunojuno/django-appmail | e665990a56e00b06469177d165cc14970b61971a | [
"MIT"
] | 7 | 2017-03-16T22:16:54.000Z | 2020-07-06T20:07:06.000Z | appmail/migrations/0003_emailtemplate_test_context.py | yunojuno/django-appmail | e665990a56e00b06469177d165cc14970b61971a | [
"MIT"
] | 13 | 2017-04-27T15:26:51.000Z | 2021-07-09T16:31:21.000Z | appmail/migrations/0003_emailtemplate_test_context.py | yunojuno/django-appmail | e665990a56e00b06469177d165cc14970b61971a | [
"MIT"
] | 3 | 2017-03-10T18:22:03.000Z | 2018-09-25T14:40:29.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-05-06 08:15
from __future__ import unicode_literals
from django.db import migrations
from ..compat import JSONField
| 24.607143 | 85 | 0.552975 |
e74a548d5928286d5e89cff8efabd8323a997dc8 | 3,006 | py | Python | tests/skillsearch/clients.py | allenai/alexafsm | 0c2e8842ddbb4a34ac64a5139e7febee3b28889a | [
"Apache-2.0"
] | 108 | 2017-05-11T22:33:39.000Z | 2022-03-04T03:04:51.000Z | tests/skillsearch/clients.py | allenai/alexafsm | 0c2e8842ddbb4a34ac64a5139e7febee3b28889a | [
"Apache-2.0"
] | null | null | null | tests/skillsearch/clients.py | allenai/alexafsm | 0c2e8842ddbb4a34ac64a5139e7febee3b28889a | [
"Apache-2.0"
] | 17 | 2017-05-12T23:26:38.000Z | 2020-04-20T19:39:54.000Z | """Client that handles query to elasticsearch"""
import string
from typing import List
from elasticsearch_dsl import Search
from alexafsm.test_helpers import recordable as rec
from elasticsearch_dsl.response import Response
from tests.skillsearch.skill_settings import SkillSettings
from tests.skillsearch.skill impo... | 37.575 | 109 | 0.633733 |
e74bee176de16cba930d5ae5c1c4a6c4a4161b92 | 9,380 | py | Python | pypsych/schedule.py | janmtl/pypsych | 1c606342dbdb984bc06aa9fd26963f3ce0a378b1 | [
"BSD-3-Clause"
] | null | null | null | pypsych/schedule.py | janmtl/pypsych | 1c606342dbdb984bc06aa9fd26963f3ce0a378b1 | [
"BSD-3-Clause"
] | null | null | null | pypsych/schedule.py | janmtl/pypsych | 1c606342dbdb984bc06aa9fd26963f3ce0a378b1 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Includes the Schedule class, validation functions, and compilation functions
for compiling a schedule of files to process.
Methods:
compile: shortcut for validating the loaded configuration, then
performing the search, and _resolve functions
load: load ... | 38.921162 | 79 | 0.552452 |
e74c20ff4559c50606dac276ec5df833419986bc | 3,160 | py | Python | dcorch/drivers/openstack/cinder_v2.py | starlingx-staging/stx-kingbird | 9869ad4640e76384fa14f031a59134cd439929a8 | [
"Apache-2.0"
] | 1 | 2018-08-24T19:48:03.000Z | 2018-08-24T19:48:03.000Z | dcorch/drivers/openstack/cinder_v2.py | kbujold/stx-distcloud | e82c7b43362bceb8d4ae9d121d023e42268204db | [
"Apache-2.0"
] | 3 | 2018-08-23T20:32:45.000Z | 2018-08-30T19:26:00.000Z | dcorch/drivers/openstack/cinder_v2.py | kbujold/stx-distcloud | e82c7b43362bceb8d4ae9d121d023e42268204db | [
"Apache-2.0"
] | 4 | 2018-08-21T18:09:12.000Z | 2018-08-28T15:47:12.000Z | # 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 unde... | 35.505618 | 77 | 0.603797 |
e74d4d6162ae8c2a70fd86d11e2efc802d6df3be | 1,202 | py | Python | figthesis/figshape.py | Gattocrucco/sipmfilter | 74215d6c53b998808fc6c677b46030234d996bdf | [
"CC-BY-4.0",
"MIT"
] | null | null | null | figthesis/figshape.py | Gattocrucco/sipmfilter | 74215d6c53b998808fc6c677b46030234d996bdf | [
"CC-BY-4.0",
"MIT"
] | null | null | null | figthesis/figshape.py | Gattocrucco/sipmfilter | 74215d6c53b998808fc6c677b46030234d996bdf | [
"CC-BY-4.0",
"MIT"
] | null | null | null | import numpy as np
from matplotlib import pyplot as plt
import figlatex
import template
import afterpulse_tile21
styles = {
5.5: dict(color='#f55'),
7.5: dict(hatch='//////', facecolor='#0000'),
9.5: dict(edgecolor='black', facecolor='#0000'),
}
fig, ax = plt.subplots(num='figshape', clear=True, figsize=... | 24.04 | 107 | 0.62396 |
e74daacb5f8aa03a88e92486990e7dd734003673 | 1,940 | py | Python | linchackathon/auth.py | YasserMahfoud/linchackathon | d0cdb7d72aa588847669830e14bb9baa308afc24 | [
"MIT"
] | null | null | null | linchackathon/auth.py | YasserMahfoud/linchackathon | d0cdb7d72aa588847669830e14bb9baa308afc24 | [
"MIT"
] | null | null | null | linchackathon/auth.py | YasserMahfoud/linchackathon | d0cdb7d72aa588847669830e14bb9baa308afc24 | [
"MIT"
] | 1 | 2022-02-28T09:25:47.000Z | 2022-02-28T09:25:47.000Z | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 13 11:08:56 2021
@author: yasse
"""
# =============================================================================
# Imports
# =============================================================================
import requests
from . import ipaddr as u
from .public import ge... | 25.526316 | 81 | 0.465464 |
e74e18233e68e6e6e2b6b4650e8d71aa16535204 | 5,559 | py | Python | eFELunit/utils.py | appukuttan-shailesh/eFELunit | 055385254875249293da72c1daf2d489033cb9da | [
"BSD-3-Clause"
] | null | null | null | eFELunit/utils.py | appukuttan-shailesh/eFELunit | 055385254875249293da72c1daf2d489033cb9da | [
"BSD-3-Clause"
] | null | null | null | eFELunit/utils.py | appukuttan-shailesh/eFELunit | 055385254875249293da72c1daf2d489033cb9da | [
"BSD-3-Clause"
] | null | null | null | """
Module for loading BluePyOpt optimized model files
"""
import os
import sciunit
from neuronunit.capabilities import ReceivesSquareCurrent, ProducesMembranePotential, Runnable
from neuron import h
import neo
from quantities import ms
import zipfile
import json
import collections
| 40.282609 | 135 | 0.589674 |
e7505d6ec1c66fa5c31c1b68248657004784ebb2 | 5,401 | py | Python | invenio_ldapclient/views.py | galterlibrary/invenio-ldapclient | 48b24b5bf46fd40c22dce042f54eaab6b7d377c3 | [
"MIT"
] | 1 | 2018-12-25T23:18:35.000Z | 2018-12-25T23:18:35.000Z | invenio_ldapclient/views.py | galterlibrary/invenio-ldapclient | 48b24b5bf46fd40c22dce042f54eaab6b7d377c3 | [
"MIT"
] | 6 | 2018-12-12T17:15:11.000Z | 2020-01-22T14:00:07.000Z | invenio_ldapclient/views.py | galterlibrary/invenio-ldapclient | 48b24b5bf46fd40c22dce042f54eaab6b7d377c3 | [
"MIT"
] | null | null | null | """Invenio-LDAPClient login view."""
from __future__ import absolute_import, print_function
import uuid
from flask import Blueprint, after_this_request
from flask import current_app as app
from flask import flash, redirect, render_template, request
from flask_security import login_user
from invenio_accounts.models i... | 29.839779 | 91 | 0.672098 |
e750a7db318e1b1722b11d4663f54e8a2e8abb6a | 1,125 | py | Python | 10 - Using break/Des_068.py | o-Ian/Practice-Python | 1e4b2d0788e70006096a53a7cf038db3148ba4b7 | [
"MIT"
] | 4 | 2021-04-23T18:07:58.000Z | 2021-05-12T11:38:14.000Z | 10 - Using break/Des_068.py | o-Ian/Practice-Python | 1e4b2d0788e70006096a53a7cf038db3148ba4b7 | [
"MIT"
] | null | null | null | 10 - Using break/Des_068.py | o-Ian/Practice-Python | 1e4b2d0788e70006096a53a7cf038db3148ba4b7 | [
"MIT"
] | null | null | null | from random import randint
perder = ganhou = 0
print('\n=-=-=-=-TENTE GANHAR DE MIM NO PAR OU MPAR!=-=-=-=-\n')
while True:
print('-=' * 15)
eu = int(input('Digite um nmero: '))
pc = randint(1, 100)
par_ganhou = impar_ganhou = 0
i_p = ' '
while i_p not in 'IP':
i_p = input('Voc escolhe... | 31.25 | 113 | 0.533333 |
e7523010d534a1b9ddc9737a5e53cd84edd3fabe | 553 | py | Python | src/app/coursegrab/controllers/untrack_section_controller.py | cuappdev/coursegrab-backend | e69cfaf8bcabae788ebf81e18078f8eb604c79a7 | [
"MIT"
] | 1 | 2020-02-28T00:53:34.000Z | 2020-02-28T00:53:34.000Z | src/app/coursegrab/controllers/untrack_section_controller.py | cuappdev/coursegrab-backend | e69cfaf8bcabae788ebf81e18078f8eb604c79a7 | [
"MIT"
] | 31 | 2019-11-06T22:14:16.000Z | 2021-11-03T21:51:40.000Z | src/app/coursegrab/controllers/untrack_section_controller.py | cuappdev/coursegrab-backend | e69cfaf8bcabae788ebf81e18078f8eb604c79a7 | [
"MIT"
] | null | null | null | from . import *
| 26.333333 | 65 | 0.643761 |
e7524d0748239053472f74164e6004e070acbfe8 | 281 | py | Python | scripts/stop.py | J0ins08/aria2-python-script | 461c1e861893b6309726bb804d51f9e2fff0a1e8 | [
"MIT"
] | null | null | null | scripts/stop.py | J0ins08/aria2-python-script | 461c1e861893b6309726bb804d51f9e2fff0a1e8 | [
"MIT"
] | null | null | null | scripts/stop.py | J0ins08/aria2-python-script | 461c1e861893b6309726bb804d51f9e2fff0a1e8 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
#@File : stop.py
#@Time : 2021/12/23 16:21:37
#@Author : J0ins08
#@Software : Visual Studio Code
from aria2 import *
if __name__ == '__main__':
remove_aria2_file()
remove_download_file()
remove_torrent_file() | 23.416667 | 36 | 0.590747 |
e7531c6aec53aa133b091d9c44add5e29edc53d4 | 446 | py | Python | rop1-sean_Pwn-2/hack.py | ss8651twtw/Pwn-CTF-writeups | 930a85169c2110594479cf66528b79e8ddae46a2 | [
"MIT"
] | 4 | 2021-08-01T07:53:26.000Z | 2021-09-08T08:50:09.000Z | rop1-sean_Pwn-2/hack.py | ss8651twtw/Pwn-CTF-writeups | 930a85169c2110594479cf66528b79e8ddae46a2 | [
"MIT"
] | null | null | null | rop1-sean_Pwn-2/hack.py | ss8651twtw/Pwn-CTF-writeups | 930a85169c2110594479cf66528b79e8ddae46a2 | [
"MIT"
] | 1 | 2022-03-22T10:13:53.000Z | 2022-03-22T10:13:53.000Z | from pwn import *
import time
context.arch = "amd64"
ip = "140.110.112.77"
port = 3122
r = remote(ip, port)
# r = process("./rop1")
data = 0x6ccd60
pop_rsi = 0x401637
pop_rax_rdx_rbx = 0x478616
pop_rdi = 0x401516
syscall = 0x4672b5
leave = 0x4009e4
r.sendline(flat(0xdeadbeef, pop_rax_rdx_rbx, 0x3b, 0, 0, pop_rdi, ... | 18.583333 | 121 | 0.681614 |
e7541e90aae6724fc21be662cfca2ab9529171ad | 3,548 | py | Python | jikanvision/FaceMeshModule.py | JikanDev/jikanvision | 09cd4ecdbfe6423cdf2c6f4ae064fcafae576eb0 | [
"Apache-2.0"
] | 1 | 2021-09-02T09:03:53.000Z | 2021-09-02T09:03:53.000Z | jikanvision/FaceMeshModule.py | JikanDev/jikanvision | 09cd4ecdbfe6423cdf2c6f4ae064fcafae576eb0 | [
"Apache-2.0"
] | 1 | 2021-10-21T14:50:06.000Z | 2021-10-21T14:50:06.000Z | jikanvision/FaceMeshModule.py | JikanDev/jikanvision | 09cd4ecdbfe6423cdf2c6f4ae064fcafae576eb0 | [
"Apache-2.0"
] | null | null | null | """
Face Mesh Module
By : JikanDev
Website : https://jikandev.xyz/
"""
import cv2
import mediapipe as mp
def main():
"""
Example code to use the module.
"""
cap = cv2.VideoCapture(0) # Get your camera
detector = FaceMeshDetector() # Call the FaceMeshDetector class
while Tr... | 35.48 | 112 | 0.592728 |
e7556f82e722747db689856c467461b5664c4d41 | 65,366 | py | Python | avi/heat/resources/pool.py | itlinux/avi-heat | 551adc130f651e1a52dcff0afc01cfa6b29a87f0 | [
"Apache-2.0"
] | 2 | 2016-08-09T21:06:52.000Z | 2016-08-18T21:34:11.000Z | avi/heat/resources/pool.py | itlinux/avi-heat | 551adc130f651e1a52dcff0afc01cfa6b29a87f0 | [
"Apache-2.0"
] | 10 | 2016-08-03T00:07:51.000Z | 2018-10-30T19:00:38.000Z | avi/heat/resources/pool.py | itlinux/avi-heat | 551adc130f651e1a52dcff0afc01cfa6b29a87f0 | [
"Apache-2.0"
] | 10 | 2016-06-13T20:17:19.000Z | 2020-12-21T11:46:59.000Z | # GENERATED FILE - DO NOT EDIT THIS FILE UNLESS YOU ARE A WIZZARD
#pylint: skip-file
from heat.engine import properties
from heat.engine import constraints
from heat.engine import attributes
from heat.common.i18n import _
from avi.heat.avi_resource import AviResource
from avi.heat.avi_resource import AviNestedResource... | 37.783815 | 486 | 0.669813 |
e75664bd27754a66bb2b335b17ad15fd80bbf4ca | 1,041 | py | Python | app/service/account_title_service.py | JunFuruya/Ratsnake | ff7fe7f6b56663978d2ee2d94df5d88786a0eaa7 | [
"MIT"
] | null | null | null | app/service/account_title_service.py | JunFuruya/Ratsnake | ff7fe7f6b56663978d2ee2d94df5d88786a0eaa7 | [
"MIT"
] | 5 | 2018-05-17T04:03:39.000Z | 2021-09-08T01:03:17.000Z | app/service/account_title_service.py | JunFuruya/Hideout | ff7fe7f6b56663978d2ee2d94df5d88786a0eaa7 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
from app.service.base_service import BaseService
from app.repository.account_title_repository import AccountTitleRepository
| 41.64 | 121 | 0.777137 |
e756f3d909ed9cf27d6e6754f6228111304c2edd | 6,728 | py | Python | cellpack/mgl_tools/mglutil/math/kinematics.py | mesoscope/cellpack | ec6b736fc706c1fae16392befa814b5337a3a692 | [
"MIT"
] | null | null | null | cellpack/mgl_tools/mglutil/math/kinematics.py | mesoscope/cellpack | ec6b736fc706c1fae16392befa814b5337a3a692 | [
"MIT"
] | 21 | 2021-10-02T00:07:05.000Z | 2022-03-30T00:02:10.000Z | cellpack/mgl_tools/mglutil/math/kinematics.py | mesoscope/cellpack | ec6b736fc706c1fae16392befa814b5337a3a692 | [
"MIT"
] | null | null | null | ## Automatically adapted for numpy.oldnumeric Jul 23, 2007 by
#
# Last modified on Mon Oct 15 15:33:49 PDT 2001 by lindy
#
# $Header: /opt/cvs/python/packages/share1.5/mglutil/math/kinematics.py,v 1.16 2007/07/24 17:30:40 vareille Exp $
#
"""kinematics.py - kinematic manipulation of chains of points
All transformati... | 32.191388 | 113 | 0.522889 |
e7584bf56075da23dbb46430a6950a9f3d4405c0 | 2,178 | py | Python | ucsc_genomes_downloader/utils/expand_bed_regions.py | LucaCappelletti94/ucsc_genomes_downloader | fdef5fae76a78606279aa3e49e0b009a1b34a436 | [
"MIT"
] | 5 | 2020-01-30T15:03:40.000Z | 2022-01-25T18:44:16.000Z | ucsc_genomes_downloader/utils/expand_bed_regions.py | LucaCappelletti94/ucsc_genomes_downloader | fdef5fae76a78606279aa3e49e0b009a1b34a436 | [
"MIT"
] | 2 | 2020-01-04T15:22:16.000Z | 2020-07-16T20:02:42.000Z | ucsc_genomes_downloader/utils/expand_bed_regions.py | LucaCappelletti94/ucsc_genomes_downloader | fdef5fae76a78606279aa3e49e0b009a1b34a436 | [
"MIT"
] | 3 | 2019-12-29T15:19:22.000Z | 2021-03-27T03:05:51.000Z | import pandas as pd
import numpy as np
__all__ = ["expand_bed_regions"]
def expand_bed_regions(bed: pd.DataFrame, window_size: int, alignment: str = "center") -> pd.DataFrame:
"""Return pandas dataframe setting regions to given window size considering given alignment.
Parameters
-----------------------
... | 36.915254 | 103 | 0.649219 |
e7593ec909d2ec472ea74ef88d48fb12c9f615bd | 2,972 | py | Python | examples/mri/non_cartesian_reconstruction.py | LElgueddari/pisap | ddd9f9f02dcd629b5615fa571ac7795c2d5e9727 | [
"CECILL-B"
] | null | null | null | examples/mri/non_cartesian_reconstruction.py | LElgueddari/pisap | ddd9f9f02dcd629b5615fa571ac7795c2d5e9727 | [
"CECILL-B"
] | null | null | null | examples/mri/non_cartesian_reconstruction.py | LElgueddari/pisap | ddd9f9f02dcd629b5615fa571ac7795c2d5e9727 | [
"CECILL-B"
] | 1 | 2018-12-04T14:32:15.000Z | 2018-12-04T14:32:15.000Z | """
Neuroimaging non-cartesian reconstruction
=========================================
Author: Chaithya G R
In this tutorial we will reconstruct an MRI image from non-cartesian kspace
measurements.
Import neuroimaging data
------------------------
We use the toy datasets available in pysap, more specifically a 2D ... | 30.326531 | 78 | 0.694482 |
e7596a25709bd7aeb8d58fbb9eb155b5582963d5 | 3,996 | py | Python | Homeautomation/Alarmpi/get_weather_yahoo.py | EtechProjects/Curtains-and-Blinds-Tests | 7bfacf50ee7a4b951337e60f0fa288fbe59762e2 | [
"Apache-2.0"
] | null | null | null | Homeautomation/Alarmpi/get_weather_yahoo.py | EtechProjects/Curtains-and-Blinds-Tests | 7bfacf50ee7a4b951337e60f0fa288fbe59762e2 | [
"Apache-2.0"
] | null | null | null | Homeautomation/Alarmpi/get_weather_yahoo.py | EtechProjects/Curtains-and-Blinds-Tests | 7bfacf50ee7a4b951337e60f0fa288fbe59762e2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib
import urllib2
import json
import decimal
import time
from apcontent import alarmpi_content
| 37.698113 | 191 | 0.548048 |
e75b23de02a67ea7c8d05abe2bf178f7d08eb2d7 | 1,857 | py | Python | triassic_scoring.py | SouthwestCCDC/2019-pcc | a2a38cfd0eb714fc9b2c0e69484171306eca67e0 | [
"Unlicense"
] | 1 | 2022-01-14T18:04:20.000Z | 2022-01-14T18:04:20.000Z | triassic_scoring.py | wrharding/triassic_shell | 2d13f8299c01a050d230034d2d37e0e3af8e1a02 | [
"Unlicense"
] | null | null | null | triassic_scoring.py | wrharding/triassic_shell | 2d13f8299c01a050d230034d2d37e0e3af8e1a02 | [
"Unlicense"
] | 1 | 2021-01-22T23:03:29.000Z | 2021-01-22T23:03:29.000Z | import sys
import logging
import socket
import argparse
import json
import os
import data_model
from flask import Flask
app = Flask(__name__)
app.secret_key = 'NpaguVKgv<;f;i(:T>3tn~dsOue5Vy)'
def main():
parser = argparse.ArgumentParser(prog='triassic_scoring.py')
parser.add_argument('-f', '--file', help="... | 26.913043 | 95 | 0.645665 |
e7610363e0afa1615d49f445e3e975b339f2990d | 592 | py | Python | day26.py | impractical101/LeetCode-30--June | 5420685a151e5561f54e7f1a0b699015050f75c2 | [
"MIT"
] | null | null | null | day26.py | impractical101/LeetCode-30--June | 5420685a151e5561f54e7f1a0b699015050f75c2 | [
"MIT"
] | null | null | null | day26.py | impractical101/LeetCode-30--June | 5420685a151e5561f54e7f1a0b699015050f75c2 | [
"MIT"
] | null | null | null | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
#Submitted by thr3sh0ld
| 28.190476 | 73 | 0.572635 |
e761eb72917ebd1c05f7e0b4d31c558fc821a540 | 511 | py | Python | extra/docker/django/mailinglist/factories.py | rlaneyjr/project_pawz | 27f316ef35968ed1319ec0585a050ebed795763a | [
"MIT"
] | null | null | null | extra/docker/django/mailinglist/factories.py | rlaneyjr/project_pawz | 27f316ef35968ed1319ec0585a050ebed795763a | [
"MIT"
] | 13 | 2020-02-12T00:12:52.000Z | 2022-02-12T09:42:36.000Z | extra/docker/django/mailinglist/factories.py | rlaneyjr/project_pawz | 27f316ef35968ed1319ec0585a050ebed795763a | [
"MIT"
] | null | null | null | from unittest.mock import patch
import factory
from mailinglist.models import Subscriber
| 25.55 | 76 | 0.690802 |
e7623781c52321968e53976d519675e457ceed8b | 486 | py | Python | wildlifelicensing/apps/main/migrations/0006_auto_20160801_1622.py | jawaidm/wildlifelicensing | 87e8e9ab163e0d7bbb0c7a654a13ce8a4d8fcf82 | [
"Apache-2.0"
] | null | null | null | wildlifelicensing/apps/main/migrations/0006_auto_20160801_1622.py | jawaidm/wildlifelicensing | 87e8e9ab163e0d7bbb0c7a654a13ce8a4d8fcf82 | [
"Apache-2.0"
] | 11 | 2019-03-19T02:03:11.000Z | 2019-05-31T07:20:59.000Z | wildlifelicensing/apps/main/migrations/0006_auto_20160801_1622.py | jawaidm/wildlifelicensing | 87e8e9ab163e0d7bbb0c7a654a13ce8a4d8fcf82 | [
"Apache-2.0"
] | 2 | 2020-08-10T10:17:10.000Z | 2021-10-31T23:20:53.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-08-01 08:22
from __future__ import unicode_literals
from django.db import migrations, models
| 23.142857 | 63 | 0.63786 |
e7632eac9bb25990fae2d561c6c167a8a522a509 | 5,565 | py | Python | plugin.program.super.favourites/player.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | 1 | 2019-03-05T09:38:10.000Z | 2019-03-05T09:38:10.000Z | plugin.program.super.favourites/player.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | null | null | null | plugin.program.super.favourites/player.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | 1 | 2021-11-05T20:48:09.000Z | 2021-11-05T20:48:09.000Z | #
# Copyright (C) 2014-
# Sean Poyser (seanpoyser@gmail.com)
#
# This Program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# Thi... | 27.413793 | 115 | 0.611321 |
e76480471e6bea18ea40a9e4037a74ba815e2226 | 1,756 | py | Python | bot/sign_api.py | rombintu/project12 | a127b8c697cb6e7cc07ff9528a79888f72c4c4ca | [
"MIT"
] | null | null | null | bot/sign_api.py | rombintu/project12 | a127b8c697cb6e7cc07ff9528a79888f72c4c4ca | [
"MIT"
] | null | null | null | bot/sign_api.py | rombintu/project12 | a127b8c697cb6e7cc07ff9528a79888f72c4c4ca | [
"MIT"
] | null | null | null | import os
from Crypto.Hash import SHA256
from Crypto.PublicKey import RSA
from Crypto.Signature import pkcs1_15
# pubkey, sign = create_sign('README.md')
# print(check('README.md', pubkey, sign)) | 28.786885 | 109 | 0.656606 |
e764cbf89763dd805ae8cb69ca387c4c6438236e | 38,685 | py | Python | vyperlogix/decorators/pyanno.py | raychorn/chrome_gui | f1fade70b61af12ee43c55c075aa9cfd32caa962 | [
"CC0-1.0"
] | 1 | 2020-09-29T01:36:33.000Z | 2020-09-29T01:36:33.000Z | vyperlogix/decorators/pyanno.py | raychorn/chrome_gui | f1fade70b61af12ee43c55c075aa9cfd32caa962 | [
"CC0-1.0"
] | null | null | null | vyperlogix/decorators/pyanno.py | raychorn/chrome_gui | f1fade70b61af12ee43c55c075aa9cfd32caa962 | [
"CC0-1.0"
] | null | null | null |
"""
Pyanno Python Annotations
version 0.76
Uses the new python decorators feature.
Do not apply these annotations within this module.
charlesmchen@gmail.com
for documentation, see the index.html file included in the distribution.
http://fightingquaker.com/pyanno/
"""
#from __future__ import with_statement
imp... | 36.323944 | 158 | 0.632338 |
e765459a83dd0305141cdf26d6934ff99915432e | 495 | py | Python | apps/batchResize.py | mshafiei/cvutils | 5805229d8822a9ee4a3c63e060358aca96fe5338 | [
"MIT"
] | 2 | 2021-07-19T12:38:14.000Z | 2021-11-01T21:30:36.000Z | apps/batchResize.py | mshafiei/cvgutils | ea93b3cb70a969c3b814f5a9f7672c6e00de5c61 | [
"MIT"
] | null | null | null | apps/batchResize.py | mshafiei/cvgutils | ea93b3cb70a969c3b814f5a9f7672c6e00de5c61 | [
"MIT"
] | null | null | null | import numpy as np
import glob
import cvgutils.Image as cvgim
import os
import tqdm
indir = '/home/mohammad/Projects/NRV/dataset/envmaps/*.exr'
outdir = '/home/mohammad/Projects/NRV/dataset/envmaps_512_1024'
inimgs = glob.glob(indir)
max16 = (2**16-1)
for img in tqdm.tqdm(inimgs):
im = cvgim.imread(img)
im = cv... | 30.9375 | 76 | 0.705051 |
e765541ab914b48a4f43b07b88c06ff9c0e6465a | 44 | py | Python | cli/__init__.py | charlesreid1/dahak-taco | b7ab6d510f4989e495667c745c4dd818d1732823 | [
"BSD-3-Clause"
] | null | null | null | cli/__init__.py | charlesreid1/dahak-taco | b7ab6d510f4989e495667c745c4dd818d1732823 | [
"BSD-3-Clause"
] | null | null | null | cli/__init__.py | charlesreid1/dahak-taco | b7ab6d510f4989e495667c745c4dd818d1732823 | [
"BSD-3-Clause"
] | 1 | 2018-03-16T21:27:28.000Z | 2018-03-16T21:27:28.000Z | _program = "taco"
__version__ = "1.0.1beta"
| 14.666667 | 25 | 0.681818 |
e765b119fb0c58069efcdb5bcbcb88dc12c714c8 | 257 | py | Python | telegramtoken/settings/sample_config.py | kahihia/community | 46d55d1029764b8d66278c930a9d574e7d1421d8 | [
"MIT"
] | null | null | null | telegramtoken/settings/sample_config.py | kahihia/community | 46d55d1029764b8d66278c930a9d574e7d1421d8 | [
"MIT"
] | null | null | null | telegramtoken/settings/sample_config.py | kahihia/community | 46d55d1029764b8d66278c930a9d574e7d1421d8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
NODE_IP = '127.0.0.1'
NODE_PORT = '9718'
NODE_USER = 'testuser'
NODE_PWD = 'testpassword'
STREAM_SMART_LICENSE = 'Telegram-license'
STREAM_SMART_LICENSE_ATTESTATION = 'Telegram-license-attestation'
STREAM_ISCC = 'telegramTokenJar'
| 23.363636 | 65 | 0.750973 |
e765fb3f3635f387b5b8188b7acfcdc41c6bffec | 894 | py | Python | test/test_substitution.py | corneliusroemer/pyro-cov | 54e89d128293f9ff9e995c442f72fa73f5f99b76 | [
"Apache-2.0"
] | 22 | 2021-09-14T04:33:11.000Z | 2022-02-01T21:33:05.000Z | test/test_substitution.py | corneliusroemer/pyro-cov | 54e89d128293f9ff9e995c442f72fa73f5f99b76 | [
"Apache-2.0"
] | 7 | 2021-11-02T13:48:35.000Z | 2022-03-23T18:08:35.000Z | test/test_substitution.py | corneliusroemer/pyro-cov | 54e89d128293f9ff9e995c442f72fa73f5f99b76 | [
"Apache-2.0"
] | 6 | 2021-09-18T01:06:51.000Z | 2022-01-10T02:22:06.000Z | # Copyright Contributors to the Pyro-Cov project.
# SPDX-License-Identifier: Apache-2.0
import pyro.poutine as poutine
import pytest
import torch
from pyro.infer.autoguide import AutoDelta
from pyrocov.substitution import GeneralizedTimeReversible, JukesCantor69
| 29.8 | 77 | 0.694631 |
e7666c41475df3a201f3e9500fe80142589cab4b | 438 | py | Python | angr/engines/vex/expressions/unsupported.py | aeflores/angr | ac85a3f168375ed0ee20551b1b716c1bff4ac02b | [
"BSD-2-Clause"
] | 1 | 2020-11-18T16:39:11.000Z | 2020-11-18T16:39:11.000Z | angr/engines/vex/expressions/unsupported.py | aeflores/angr | ac85a3f168375ed0ee20551b1b716c1bff4ac02b | [
"BSD-2-Clause"
] | 1 | 2019-04-08T12:10:07.000Z | 2019-04-08T12:10:07.000Z | angr/engines/vex/expressions/unsupported.py | aeflores/angr | ac85a3f168375ed0ee20551b1b716c1bff4ac02b | [
"BSD-2-Clause"
] | 1 | 2020-11-18T16:39:13.000Z | 2020-11-18T16:39:13.000Z | import logging
l = logging.getLogger(name=__name__)
| 39.818182 | 123 | 0.755708 |
e766e365a4ab93717384f44001cba425202a3102 | 837 | py | Python | modulo-1/exercicios/atividade_2_operadores_aritmeticos.py | giselemanuel/programa-Ifood-backend | d12544c30e2a26f7e2e2cd85df38a3f2c8860fe7 | [
"MIT"
] | 3 | 2021-04-25T23:31:13.000Z | 2021-04-26T16:59:12.000Z | modulo-1/exercicios/atividade_2_operadores_aritmeticos.py | giselemanuel/programa-Ifood-backend | d12544c30e2a26f7e2e2cd85df38a3f2c8860fe7 | [
"MIT"
] | null | null | null | modulo-1/exercicios/atividade_2_operadores_aritmeticos.py | giselemanuel/programa-Ifood-backend | d12544c30e2a26f7e2e2cd85df38a3f2c8860fe7 | [
"MIT"
] | null | null | null | """
Programa VamoAI:
Aluna: Gisele Rodrigues Manuel
Atividade 1.3
Descrio do Execcio 2:
Criar um programa que: Some : 1024 por 2048, Multiplique: 1024 por 2048, Divida 2048 por 1024,Subtraia 1024 por 2048, executar print dos operadores aritmticos.
"""
#Definio das variveis
num1 = 1024
num2 = 2048
soma = num1 + num2
... | 27.9 | 162 | 0.685783 |
e76743f69fad47d5de760eeb8b2c1a2dca1ce8fe | 2,354 | py | Python | scripts/sfuzz_data_retr.py | sunbeam891/Smart_contract_fuzzing | 327873f562028fb3ea241fb0c1dc0f039e8c005d | [
"MIT"
] | 1 | 2021-04-01T09:33:58.000Z | 2021-04-01T09:33:58.000Z | scripts/sfuzz_data_retr.py | sunbeam891/Smart_contract_fuzzing | 327873f562028fb3ea241fb0c1dc0f039e8c005d | [
"MIT"
] | 2 | 2021-11-09T03:25:40.000Z | 2021-11-09T06:23:45.000Z | scripts/sfuzz_data_retr.py | sunbeam891/Smart_contract_fuzzing | 327873f562028fb3ea241fb0c1dc0f039e8c005d | [
"MIT"
] | null | null | null | #Script_sFuzz_data_retriever_v0.6
#format = python3 sfuzz_data_retr.py <filename> <contractname> <contracts_folder>
import json
import os
from decimal import Decimal
import sys
from openpyxl import load_workbook
import pandas as pd
import coverage_json
import vulnerabilities_json
filename = sys.argv[1]
Contractname = ... | 39.898305 | 89 | 0.708581 |
e76781753c0e4a869e70caddd34d8e8a1557bef1 | 5,090 | py | Python | bifrost_whats_my_species/datadump.py | ssi-dk/bifrost_whats_my_species | fe59e8cf096b8622747278959d53a95c80bed9ad | [
"MIT"
] | null | null | null | bifrost_whats_my_species/datadump.py | ssi-dk/bifrost_whats_my_species | fe59e8cf096b8622747278959d53a95c80bed9ad | [
"MIT"
] | 2 | 2020-11-13T13:46:11.000Z | 2020-11-20T08:36:55.000Z | bifrost_whats_my_species/datadump.py | ssi-dk/bifrost-whats_my_species | fe59e8cf096b8622747278959d53a95c80bed9ad | [
"MIT"
] | null | null | null | from bifrostlib import common
from bifrostlib.datahandling import Sample
from bifrostlib.datahandling import SampleComponentReference
from bifrostlib.datahandling import SampleComponent
from bifrostlib.datahandling import Category
from typing import Dict
import os
datadump(
snakemake.params.samp... | 57.840909 | 226 | 0.711591 |
e76785635d525e1ea987b9fb10498fdb21db674e | 627 | py | Python | ex6-8.py | yiyidhuang/PythonCrashCrouse2nd | 3512f9ab8fcf32c6145604a37e2a62feddf174d1 | [
"MIT"
] | null | null | null | ex6-8.py | yiyidhuang/PythonCrashCrouse2nd | 3512f9ab8fcf32c6145604a37e2a62feddf174d1 | [
"MIT"
] | null | null | null | ex6-8.py | yiyidhuang/PythonCrashCrouse2nd | 3512f9ab8fcf32c6145604a37e2a62feddf174d1 | [
"MIT"
] | null | null | null | cristiano = {
'type': 'dog',
'owner': 'wei',
}
rose = {
'type': 'cat',
'owner': 'yan',
}
cloud = {
'type': 'pig',
'owner': 'luo',
}
pets = [cristiano, rose, cloud]
for pet in pets:
if pet == cristiano:
print('\nCristiano: '
+ '\n\ttype: ' + pet['type']
... | 20.225806 | 45 | 0.405104 |
e769251e473b5f4b32970f5dbac6d06da53753e2 | 4,766 | py | Python | dexy/filters/matrix.py | dexy/dexy | 323c1806e51f75435e11d2265703e68f46c8aef3 | [
"MIT"
] | 136 | 2015-01-06T15:04:47.000Z | 2021-12-21T22:52:41.000Z | dexy/filters/matrix.py | dexy/dexy | 323c1806e51f75435e11d2265703e68f46c8aef3 | [
"MIT"
] | 13 | 2015-01-26T14:06:58.000Z | 2020-03-27T21:16:10.000Z | dexy/filters/matrix.py | dexy/dexy | 323c1806e51f75435e11d2265703e68f46c8aef3 | [
"MIT"
] | 34 | 2015-01-02T16:24:53.000Z | 2021-11-27T05:38:30.000Z | from bs4 import BeautifulSoup
from dexy.filters.api import ApiFilter
import asyncio
import json
import mimetypes
import markdown
try:
from nio import AsyncClient
AVAILABLE = True
except ImportError:
AVAILABLE = False
| 32.868966 | 134 | 0.536299 |
e76a39929d3dba1cca55b2346b00be6b52fb4b66 | 880 | py | Python | vera molnar/random_grids.py | jkocontreras/drawbotscripts | 6688e65e057f25901ac1adb93c3108ab889de49f | [
"MIT"
] | null | null | null | vera molnar/random_grids.py | jkocontreras/drawbotscripts | 6688e65e057f25901ac1adb93c3108ab889de49f | [
"MIT"
] | null | null | null | vera molnar/random_grids.py | jkocontreras/drawbotscripts | 6688e65e057f25901ac1adb93c3108ab889de49f | [
"MIT"
] | null | null | null | import random
# ----------------------
# settings
pw = ph = 500
cell_a = 10 # amount of cells
sbdvs = 3 # subdivisions
gap = pw /(cell_a * sbdvs + cell_a + 1)
cell_s = sbdvs * gap
points = [(x * gap, y * gap) for x in range(sbdvs+1) for y in range(sbdvs+1) ]
# ----------------------
# function(s)
# ----------... | 19.555556 | 79 | 0.575 |
e76a3be58b3e2fbe5929631298e3ee8bfa3c6f30 | 1,997 | py | Python | tests/exercise5/lesson_5/exercise_6/hangman_clean.py | PONSASIKALA/signal-interpreter-server | 2a0fad375768e0dca99b8e8cb4ef19e863d99007 | [
"MIT"
] | null | null | null | tests/exercise5/lesson_5/exercise_6/hangman_clean.py | PONSASIKALA/signal-interpreter-server | 2a0fad375768e0dca99b8e8cb4ef19e863d99007 | [
"MIT"
] | null | null | null | tests/exercise5/lesson_5/exercise_6/hangman_clean.py | PONSASIKALA/signal-interpreter-server | 2a0fad375768e0dca99b8e8cb4ef19e863d99007 | [
"MIT"
] | null | null | null | # pylint: disable=missing-function-docstring
ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
initialize_game()
| 27.356164 | 79 | 0.620431 |
e76c2081bccf726a610c27def463e58a09b8c81d | 21,136 | py | Python | utlz/__init__.py | theno/utlz | bf7d2b53f3e0d35c6f8ded81f3f774a74fcd3389 | [
"MIT"
] | 2 | 2018-10-29T18:35:12.000Z | 2019-01-14T12:56:15.000Z | utlz/__init__.py | Bhanditz/utlz | bf7d2b53f3e0d35c6f8ded81f3f774a74fcd3389 | [
"MIT"
] | null | null | null | utlz/__init__.py | Bhanditz/utlz | bf7d2b53f3e0d35c6f8ded81f3f774a74fcd3389 | [
"MIT"
] | 1 | 2019-01-14T11:11:32.000Z | 2019-01-14T11:11:32.000Z | # -*- coding: utf-8 -*-
import collections
import functools
import gzip
import json
import inspect
import os.path
import shutil
import sys
import struct
import time
from functools import wraps
from utlz._version import __version__
# inspired by: http://stackoverflow.com/a/6618825
def flo(string):
'''Return the s... | 31.879336 | 86 | 0.58909 |
e76c666397b985650186328fae42e70cb9a10b72 | 1,835 | py | Python | distiller/core/Distiller.py | darkclouder/distiller | a8efbfd807d781b90daba6023e3f966a52836b42 | [
"BSD-2-Clause"
] | 3 | 2018-07-18T14:41:00.000Z | 2020-10-30T13:26:26.000Z | distiller/core/Distiller.py | darkclouder/distiller | a8efbfd807d781b90daba6023e3f966a52836b42 | [
"BSD-2-Clause"
] | 1 | 2018-07-19T08:23:09.000Z | 2018-07-19T08:23:09.000Z | distiller/core/Distiller.py | darkclouder/distiller | a8efbfd807d781b90daba6023e3f966a52836b42 | [
"BSD-2-Clause"
] | null | null | null | import os
from distiller.core.impl.HttpServer import HttpServer
from distiller.core.impl.CoreHandler import CoreHandler
| 27.38806 | 81 | 0.541144 |
e76ddf3376b76bafc19cbf52b3ad8126a2980c57 | 2,491 | py | Python | nora10/mylakeinitpar.py | kojitominaga/scratch | 5eaf4de30c89ff1e855a6be493105d1201f07f74 | [
"FSFAP"
] | null | null | null | nora10/mylakeinitpar.py | kojitominaga/scratch | 5eaf4de30c89ff1e855a6be493105d1201f07f74 | [
"FSFAP"
] | null | null | null | nora10/mylakeinitpar.py | kojitominaga/scratch | 5eaf4de30c89ff1e855a6be493105d1201f07f74 | [
"FSFAP"
] | null | null | null | import numpy as np
import os
depth_resolution = 0.1 # metre
def mylakeinit(max_depth, area):
'''max_depth: m, area: m2.
returns string to be written to an init file of MyLake
assumes a cone shaped bathymetry curve'''
depth_levels = np.arange(0, max_depth, depth_resolution)
if not max_depth i... | 31.531646 | 172 | 0.653954 |
e76ef4520136e84bfa60de421094e1c1499594a2 | 5,854 | py | Python | StratLearner/run_PreTrain.py | cdslabamotong/stratLearner | 58f278d438eed92683a7daac2605ec39abd18c94 | [
"MIT"
] | 7 | 2020-12-02T06:58:30.000Z | 2022-03-04T01:21:59.000Z | StratLearner/run_PreTrain.py | dm-ytlds/stratLearner | 3ad880a5ca0472a3a5823fa27db7dd2bc8ba0f33 | [
"MIT"
] | null | null | null | StratLearner/run_PreTrain.py | dm-ytlds/stratLearner | 3ad880a5ca0472a3a5823fa27db7dd2bc8ba0f33 | [
"MIT"
] | 1 | 2020-12-02T06:58:32.000Z | 2020-12-02T06:58:32.000Z | """
==============================
StratLearner Training
==============================
"""
import numpy as np
from one_slack_ssvm import OneSlackSSVM
from stratLearner import (StratLearn, Utils, InputInstance)
import multiprocessing
import argparse
import os
import sys
from datetime import datetime
parser = argpar... | 29.27 | 178 | 0.686197 |
e76f72134d51ed0f47cafe05a038eba895df8c92 | 2,059 | py | Python | chapter10/mech.py | NetworkRanger/python-core | f0aa2c4ce0665e559e85aef04c40c42164cd838a | [
"MIT"
] | 1 | 2018-12-29T15:32:06.000Z | 2018-12-29T15:32:06.000Z | chapter10/mech.py | NetworkRanger/python-core | f0aa2c4ce0665e559e85aef04c40c42164cd838a | [
"MIT"
] | null | null | null | chapter10/mech.py | NetworkRanger/python-core | f0aa2c4ce0665e559e85aef04c40c42164cd838a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author: NetworkRanger
# Date: 2019/8/11 9:39 AM
from BeautifulSoup import BeautifulSoup, SoupStrainer
from mechanize import Browser
BS = lambda page: page
YOUR_LOGIN = ''
YOUR_PASSWD = ''
br = Browser()
# home page
rsp = br.open('http://us.pycon.org/2011/home/')
print... | 30.731343 | 99 | 0.685284 |
e77025bb43131ecd54379f02fd5583a531b73916 | 581 | py | Python | Assignment2/2-1/lib/session.py | Computer-Science-Lecture/ITE2038 | 3436ab4598e7ace334952156fa7a56b3124b5557 | [
"MIT"
] | null | null | null | Assignment2/2-1/lib/session.py | Computer-Science-Lecture/ITE2038 | 3436ab4598e7ace334952156fa7a56b3124b5557 | [
"MIT"
] | null | null | null | Assignment2/2-1/lib/session.py | Computer-Science-Lecture/ITE2038 | 3436ab4598e7ace334952156fa7a56b3124b5557 | [
"MIT"
] | 1 | 2018-09-07T01:47:09.000Z | 2018-09-07T01:47:09.000Z | from lib.permission import Permission
| 27.666667 | 58 | 0.567986 |
e771901cac33122ea8a46bf698c48b3de96e015e | 886 | py | Python | nvic.py | dhylands/upy-examples | 90cca32f0c6c65c33967da9ac1a998e731c60d91 | [
"MIT"
] | 78 | 2015-01-15T23:24:21.000Z | 2022-02-25T09:24:58.000Z | nvic.py | dhylands/upy-examples | 90cca32f0c6c65c33967da9ac1a998e731c60d91 | [
"MIT"
] | 1 | 2015-02-04T00:51:52.000Z | 2015-02-04T00:51:52.000Z | nvic.py | dhylands/upy-examples | 90cca32f0c6c65c33967da9ac1a998e731c60d91 | [
"MIT"
] | 26 | 2015-02-03T21:26:33.000Z | 2022-02-21T02:57:46.000Z | import machine
SCS = 0xE000E000
SCB = SCS + 0x0D00
NVIC = SCS + 0x0100
VTOR = SCB + 0x08
SCB_SHP = SCB + 0x18
NVIC_PRIO = NVIC + 0x300
dump_nvic()
| 23.945946 | 84 | 0.546275 |
e772c6aaf22ad97381e12d6d2154f737e40ff951 | 9,152 | py | Python | trimesh/primitives.py | maganrobotics/UR3e-manipulation | ceaf650b1a811d0bfc3baf175d353fc7f4a33522 | [
"MIT"
] | null | null | null | trimesh/primitives.py | maganrobotics/UR3e-manipulation | ceaf650b1a811d0bfc3baf175d353fc7f4a33522 | [
"MIT"
] | null | null | null | trimesh/primitives.py | maganrobotics/UR3e-manipulation | ceaf650b1a811d0bfc3baf175d353fc7f4a33522 | [
"MIT"
] | null | null | null | import numpy as np
from . import util
from . import points
from . import creation
from .base import Trimesh
from .constants import log
from .triangles import windings_aligned
class Sphere(Primitive):
def __init__(self, *args, **kwargs):
'''
Create a Sphere primitive, which is a subclass of T... | 33.52381 | 87 | 0.605114 |
e7742de3e4510356f7231d426f247a622c865b21 | 1,923 | py | Python | discordbot.py | asamii0006/discordpy-startup | 3a14a4155373fff96067954e85ad64658e4bbbf5 | [
"MIT"
] | null | null | null | discordbot.py | asamii0006/discordpy-startup | 3a14a4155373fff96067954e85ad64658e4bbbf5 | [
"MIT"
] | null | null | null | discordbot.py | asamii0006/discordpy-startup | 3a14a4155373fff96067954e85ad64658e4bbbf5 | [
"MIT"
] | null | null | null | from discord.ext import commands
import os
import traceback
bot = commands.Bot(command_prefix='/')
token = os.environ['DISCORD_BOT_TOKEN']
bot.run(token)
# coding: utf-8
import random
import re
pattern = '\d{1,2}d\d{1,3}|\d{1,2}D\d{1,3}'
split_pattern = 'd|D'
#
#
#
import nDnDICE
client = discord.Client()
... | 22.103448 | 89 | 0.651586 |
e7765cf07995f7e47b792bf00a9c30793c228c4a | 1,604 | py | Python | filling/parse/ex.py | nvxden/flask-films | 038f4bcaa7feabdfff7662fb1048bf48515e5c26 | [
"MIT"
] | null | null | null | filling/parse/ex.py | nvxden/flask-films | 038f4bcaa7feabdfff7662fb1048bf48515e5c26 | [
"MIT"
] | null | null | null | filling/parse/ex.py | nvxden/flask-films | 038f4bcaa7feabdfff7662fb1048bf48515e5c26 | [
"MIT"
] | null | null | null | import asyncio as aio
import os
import re
from aiohttp import ClientSession
from pageloader import LoadPageTask, PageLoader
from nvxlira import Lira
from nvxaex import Executor
############################################################
# class
####################################################... | 20.831169 | 93 | 0.545511 |
e776bec5c2d6010767a894ee51a22e9c4a498c74 | 5,803 | py | Python | Incident-Response/Tools/cyphon/cyphon/contexts/autocomplete_light_registry.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 1 | 2021-07-24T17:22:50.000Z | 2021-07-24T17:22:50.000Z | Incident-Response/Tools/cyphon/cyphon/contexts/autocomplete_light_registry.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 2 | 2022-02-28T03:40:31.000Z | 2022-02-28T03:40:52.000Z | Incident-Response/Tools/cyphon/cyphon/contexts/autocomplete_light_registry.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 2 | 2022-02-25T08:34:51.000Z | 2022-03-16T17:29:44.000Z | # -*- coding: utf-8 -*-
# Copyright 2017-2019 ControlScan, Inc.
#
# This file is part of Cyphon Engine.
#
# Cyphon Engine is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# Cyphon En... | 33.16 | 85 | 0.697398 |
e77801f926d4f34148ef7757e8d2132f28e45ad4 | 2,228 | py | Python | download snipets.py | alxcord/my_public_scripts | 856decd73afe869b68095d5ab21d32ea261d872f | [
"Apache-2.0"
] | null | null | null | download snipets.py | alxcord/my_public_scripts | 856decd73afe869b68095d5ab21d32ea261d872f | [
"Apache-2.0"
] | null | null | null | download snipets.py | alxcord/my_public_scripts | 856decd73afe869b68095d5ab21d32ea261d872f | [
"Apache-2.0"
] | null | null | null | import urllib.request
...
url = 'http://example.com/'
response = urllib.request.urlopen(url)
data = response.read() # a `bytes` object
text = data.decode('utf-8') # a `str`; this step can't be used if data is binary
import urllib.request
import gzip
...
# Read the first 64 bytes of the file inside t... | 25.318182 | 144 | 0.670108 |
e77966df213ba660b9ceebdaefcb943c9ce395a4 | 33,959 | py | Python | wavespin/scattering1d/utils.py | OverLordGoldDragon/dev_tg | 1e06b89c1b0b5e95d9c53fda2efd02e41f708718 | [
"MIT"
] | 2 | 2020-03-28T05:37:34.000Z | 2020-09-17T20:02:21.000Z | wavespin/scattering1d/utils.py | OverLordGoldDragon/dev_tg | 1e06b89c1b0b5e95d9c53fda2efd02e41f708718 | [
"MIT"
] | 2 | 2020-06-02T17:52:53.000Z | 2020-09-18T00:46:34.000Z | wavespin/scattering1d/utils.py | OverLordGoldDragon/dev_tg | 1e06b89c1b0b5e95d9c53fda2efd02e41f708718 | [
"MIT"
] | 1 | 2020-06-02T17:52:24.000Z | 2020-06-02T17:52:24.000Z | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright (c) 2022- John Muradeli
#
# Distributed under the terms of the MIT License
# (see wavespin/__init__.py for details)
# -----------------------------------------------------------------------------
import n... | 40.427381 | 83 | 0.55835 |
e77ae9d82735c469e3ecb3a79c3b10547249e4e0 | 350 | py | Python | Demo/Demo_gym/envs/classic_control/__init__.py | Remosy/iceHocekeyIRL | 1ffeaf8a9bd9585038629be41a2da552e0a4473b | [
"MIT"
] | null | null | null | Demo/Demo_gym/envs/classic_control/__init__.py | Remosy/iceHocekeyIRL | 1ffeaf8a9bd9585038629be41a2da552e0a4473b | [
"MIT"
] | 3 | 2019-03-09T02:35:24.000Z | 2019-09-27T11:05:01.000Z | Demo/Demo_gym/envs/classic_control/__init__.py | Remosy/iceHocekeyIRL | 1ffeaf8a9bd9585038629be41a2da552e0a4473b | [
"MIT"
] | null | null | null | from Demo_gym.envs.classic_control.cartpole import CartPoleEnv
from Demo_gym.envs.classic_control.mountain_car import MountainCarEnv
from Demo_gym.envs.classic_control.continuous_mountain_car import Continuous_MountainCarEnv
from Demo_gym.envs.classic_control.pendulum import PendulumEnv
from Demo_gym.envs.classic_contr... | 50 | 91 | 0.897143 |
e77bc1533880b4a66753674e008ece8b99afe6f5 | 3,959 | py | Python | google-datacatalog-kafka-connector/tests/google/datacatalog_connectors/kafka/prepare/assembled_entry_factory_test.py | bonifacyj/datacatalog-connectors-message-brokers | 0f72c800ebf1e570b638a0ad930d48e9dc44a25e | [
"Apache-2.0"
] | 1 | 2021-04-30T22:52:41.000Z | 2021-04-30T22:52:41.000Z | google-datacatalog-kafka-connector/tests/google/datacatalog_connectors/kafka/prepare/assembled_entry_factory_test.py | bonifacyj/datacatalog-connectors-message-brokers | 0f72c800ebf1e570b638a0ad930d48e9dc44a25e | [
"Apache-2.0"
] | 2 | 2020-10-01T14:24:12.000Z | 2020-11-12T16:40:01.000Z | google-datacatalog-kafka-connector/tests/google/datacatalog_connectors/kafka/prepare/assembled_entry_factory_test.py | bonifacyj/datacatalog-connectors-message-brokers | 0f72c800ebf1e570b638a0ad930d48e9dc44a25e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#
# 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 ag... | 42.569892 | 79 | 0.717605 |
e77c7c1bc1c9242cd9b4a6f6bef09a3ab1d3884c | 731 | py | Python | _unittests/ut_datasource/test_geodata.py | sdpython/pyensae | ada4dbb0b9901bf481eff2ea239e74ed964d93b0 | [
"MIT"
] | 28 | 2015-07-19T21:20:51.000Z | 2022-02-16T11:50:53.000Z | _unittests/ut_datasource/test_geodata.py | sdpython/pyensae | ada4dbb0b9901bf481eff2ea239e74ed964d93b0 | [
"MIT"
] | 34 | 2015-06-16T15:38:25.000Z | 2021-12-29T11:04:01.000Z | _unittests/ut_datasource/test_geodata.py | sdpython/pyensae | ada4dbb0b9901bf481eff2ea239e74ed964d93b0 | [
"MIT"
] | 27 | 2015-01-13T08:24:22.000Z | 2022-03-31T14:51:23.000Z | """
@brief test log(time=3s)
"""
import unittest
from pyquickhelper.pycode import ExtTestCase, get_temp_folder
from pyensae.datasource import load_french_departements
if __name__ == "__main__":
unittest.main()
| 31.782609 | 92 | 0.670315 |
e77e265dab3efd07cc86c0fb9a999b719d05fb9d | 1,053 | py | Python | openfe/setup/methods/base.py | OpenFreeEnergy/openfe | f2423ed2e4444a0824ff9b560e23b420c4997c6f | [
"MIT"
] | 14 | 2022-01-24T22:01:19.000Z | 2022-03-31T04:58:35.000Z | openfe/setup/methods/base.py | OpenFreeEnergy/openfe | f2423ed2e4444a0824ff9b560e23b420c4997c6f | [
"MIT"
] | 109 | 2022-01-24T18:57:05.000Z | 2022-03-31T20:13:07.000Z | openfe/setup/methods/base.py | OpenFreeEnergy/openfe | f2423ed2e4444a0824ff9b560e23b420c4997c6f | [
"MIT"
] | 4 | 2022-01-24T18:45:54.000Z | 2022-02-21T06:28:24.000Z | # This code is part of OpenFE and is licensed under the MIT license.
# For details, see https://github.com/OpenFreeEnergy/openfe
import abc
from openff.toolkit.utils.serialization import Serializable
| 27 | 71 | 0.660019 |
e77e4dc700080418326c39439db7328ed34301f1 | 3,351 | py | Python | miscellaneous_server_test/time_distribution/time_distribution.py | gellens/Master_thesis_JAQ_code | 034de9d7883c0d81564f975405c8985aa4b4d428 | [
"MIT"
] | null | null | null | miscellaneous_server_test/time_distribution/time_distribution.py | gellens/Master_thesis_JAQ_code | 034de9d7883c0d81564f975405c8985aa4b4d428 | [
"MIT"
] | null | null | null | miscellaneous_server_test/time_distribution/time_distribution.py | gellens/Master_thesis_JAQ_code | 034de9d7883c0d81564f975405c8985aa4b4d428 | [
"MIT"
] | 1 | 2020-03-05T14:09:01.000Z | 2020-03-05T14:09:01.000Z | # import matplotlib
# import statsmodels as sm
# import scipy.stats as st
# import pandas as pd
# import warnings
import json
import os
from scipy.stats import gamma
from scipy.stats import lognorm
from scipy.stats import pareto
from scipy.stats import norm
import numpy as np
import matplotlib.pyplot as plt
if __... | 31.027778 | 175 | 0.63026 |
e77f1fd0092c945c3470861a6d81a4b28e40b56f | 422 | py | Python | phasma_food_v2/devices/admin.py | VizLoreLabs/phasmaFoodPlatform | 02c811c9178f338e081efbeacadb37c766dcb2db | [
"Apache-1.1"
] | null | null | null | phasma_food_v2/devices/admin.py | VizLoreLabs/phasmaFoodPlatform | 02c811c9178f338e081efbeacadb37c766dcb2db | [
"Apache-1.1"
] | null | null | null | phasma_food_v2/devices/admin.py | VizLoreLabs/phasmaFoodPlatform | 02c811c9178f338e081efbeacadb37c766dcb2db | [
"Apache-1.1"
] | null | null | null | from django.contrib import admin
from .models import PhasmaDevice
| 28.133333 | 74 | 0.64455 |
e77f4dac26b5f08c981a363bf893116d6ff184f3 | 1,400 | py | Python | scripts/af_assemblyPrep.py | aaronfang/small-Scripts | 890b10ab19fa9cdf2415aaf2dc08b81cc64fc79d | [
"MIT"
] | 1 | 2018-03-08T16:34:00.000Z | 2018-03-08T16:34:00.000Z | scripts/af_assemblyPrep.py | aaronfang/personal_scripts | 890b10ab19fa9cdf2415aaf2dc08b81cc64fc79d | [
"MIT"
] | null | null | null | scripts/af_assemblyPrep.py | aaronfang/personal_scripts | 890b10ab19fa9cdf2415aaf2dc08b81cc64fc79d | [
"MIT"
] | null | null | null | import pymel.core as pm
# Step1:
# Select top group node. Run the following.It will generate a locator.
# Send to the current group pivot position.
# You can position the locator where you want to represent the final pivot position.
curSel = pm.ls(sl=True,type='transform')[0]
trans = pm.xform(curSel,ws=1,piv=1,q=1)
r... | 33.333333 | 95 | 0.702857 |
e77fe1c595ad1068d9142dbaa9c92e34b2d27d6a | 3,270 | py | Python | util/vis_tool.py | LiderMyHand/AWR-Adaptive-Weighting-Regression | 81c4c98edd98cd03d423d820ca1fe9e01dbbb242 | [
"MIT"
] | 90 | 2020-03-16T15:18:57.000Z | 2022-03-16T10:02:52.000Z | util/vis_tool.py | LiderMyHand/AWR-Adaptive-Weighting-Regression | 81c4c98edd98cd03d423d820ca1fe9e01dbbb242 | [
"MIT"
] | 16 | 2020-05-01T03:11:44.000Z | 2021-12-14T13:03:38.000Z | util/vis_tool.py | LiderMyHand/AWR-Adaptive-Weighting-Regression | 81c4c98edd98cd03d423d820ca1fe9e01dbbb242 | [
"MIT"
] | 16 | 2020-05-21T09:07:04.000Z | 2022-02-22T13:00:19.000Z | import os.path as osp
import matplotlib.pyplot as plt
import numpy as np
import cv2
| 39.39759 | 89 | 0.410092 |
e7808d26b562a5ddeb70cd3327c78d41fcdc891d | 1,113 | py | Python | lib/exabgp/bgp/message/update/attribute/community/extended/mac_mobility.py | cloudscale-ch/exabgp | 55ee496dfbc3fce75c5107fae7a7d38567154d46 | [
"BSD-3-Clause"
] | 1 | 2019-06-25T20:49:37.000Z | 2019-06-25T20:49:37.000Z | lib/exabgp/bgp/message/update/attribute/community/extended/mac_mobility.py | nembery/exabgp | 53cfff843ddde33bf1c437a1c4ce99de20c6bade | [
"BSD-3-Clause"
] | null | null | null | lib/exabgp/bgp/message/update/attribute/community/extended/mac_mobility.py | nembery/exabgp | 53cfff843ddde33bf1c437a1c4ce99de20c6bade | [
"BSD-3-Clause"
] | 1 | 2020-07-23T16:52:51.000Z | 2020-07-23T16:52:51.000Z | # encoding: utf-8
"""
mac_mobility.py
Created by Anton Aksola on 2018-11-03
"""
from struct import pack
from struct import unpack
from exabgp.bgp.message.update.attribute.community.extended import ExtendedCommunity
# ================================================================== MacMobility
# RFC 7432 Section 7... | 22.26 | 84 | 0.666667 |
e780d9438e176381d9f02f6add14e1524a0e07ab | 867 | py | Python | aprendizado/udemy/03_desafio_POO/main.py | renatodev95/Python | 2adee4a01de41f8bbb68fce563100c135a5ab549 | [
"MIT"
] | null | null | null | aprendizado/udemy/03_desafio_POO/main.py | renatodev95/Python | 2adee4a01de41f8bbb68fce563100c135a5ab549 | [
"MIT"
] | null | null | null | aprendizado/udemy/03_desafio_POO/main.py | renatodev95/Python | 2adee4a01de41f8bbb68fce563100c135a5ab549 | [
"MIT"
] | null | null | null | from banco import Banco
from cliente import Cliente
from conta import ContaCorrente, ContaPoupanca
banco = Banco()
cliente1 = Cliente('Luiz', 30)
cliente2 = Cliente('Maria', 18)
cliente3 = Cliente('Joo', 50)
conta1 = ContaPoupanca(1111, 254136, 0)
conta2 = ContaCorrente(2222, 254137, 0)
conta3 = ContaPoupanca(1212, ... | 22.815789 | 46 | 0.734717 |
e781cdbe0452060897cb4aa77bea0b37fe424f36 | 386 | py | Python | detection_tf/scripts/stuff/node_finder.py | hywel1994/SARosPerceptionKitti | 82c307facb5b39e47c510fbdb132962cebf09d2e | [
"MIT"
] | 5 | 2019-01-17T03:08:41.000Z | 2021-10-31T17:02:11.000Z | detection_tf/scripts/stuff/node_finder.py | hywel1994/SARosPerceptionKitti | 82c307facb5b39e47c510fbdb132962cebf09d2e | [
"MIT"
] | 11 | 2020-02-05T00:36:38.000Z | 2020-05-31T23:20:21.000Z | detection_tf/scripts/stuff/node_finder.py | hywel1994/SARosPerceptionKitti | 82c307facb5b39e47c510fbdb132962cebf09d2e | [
"MIT"
] | 4 | 2018-11-02T09:57:59.000Z | 2021-04-27T01:20:04.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Thu Jan 11 15:58:42 2018
@author: gustav
"""
import tensorflow as tf
NODE_OPS = ['Placeholder','Identity']
MODEL_FILE = '../models/ssd_mobilenet_v11_coco/frozen_inference_graph.pb'
gf = tf.GraphDef()
gf.ParseFromString(open(MODEL_FILE,'rb').read())
prin... | 21.444444 | 73 | 0.681347 |
e78557afcf99f289bebfa26454aa02ac75ba1622 | 1,483 | py | Python | Clustering_Algorithms/create_chart.py | NikhilGupta1997/Data-Mining-Algorithms | 56c9acca3d4f62b72e0ec22e150421eaee2dc850 | [
"MIT"
] | 7 | 2018-12-25T07:52:51.000Z | 2021-05-17T23:53:18.000Z | Clustering_Algorithms/create_chart.py | NikhilGupta1997/Data-Mining-Algorithms | 56c9acca3d4f62b72e0ec22e150421eaee2dc850 | [
"MIT"
] | null | null | null | Clustering_Algorithms/create_chart.py | NikhilGupta1997/Data-Mining-Algorithms | 56c9acca3d4f62b72e0ec22e150421eaee2dc850 | [
"MIT"
] | null | null | null | import numpy as np
import sys
import matplotlib.pyplot as plt
file = 'optics.txt'
minpts = int(sys.argv[1])
epsilon = float(sys.argv[2])
X = []
Y = []
cluster_inds = []
inds = []
noise = []
buff = []
counter = 0
for i, line in enumerate(open(file).readlines()):
counter += 1
val = line.strip().split()
idx = int(va... | 20.315068 | 94 | 0.631153 |
e785fb58d580cc912f9ca3247c8aec7176d88b83 | 1,087 | py | Python | setup.py | yudevan/django-indonesia-regions | 5c01798c534e101115a1c943d13c6caa78897e01 | [
"MIT"
] | 5 | 2016-06-26T15:18:14.000Z | 2020-09-25T06:22:35.000Z | setup.py | yudevan/django-indonesia-regions | 5c01798c534e101115a1c943d13c6caa78897e01 | [
"MIT"
] | 5 | 2017-10-26T04:01:02.000Z | 2021-02-03T04:34:11.000Z | setup.py | yudevan/django-indonesia-regions | 5c01798c534e101115a1c943d13c6caa78897e01 | [
"MIT"
] | 7 | 2016-06-26T07:04:49.000Z | 2021-02-02T13:41:02.000Z | import os
from setuptools import find_packages, setup
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-indonesia-regions',
version='1.0.6',
packages=find_packages(),
include_package_data=True,
license='MIT ... | 33.96875 | 97 | 0.651334 |
e78630157ef111fb5facf453b100529fad826536 | 370 | py | Python | objectModel/Python/cdm/enums/cdm_incremental_partition_type.py | Microsoft/CDM | 7ea59264d661356ca1b44c31a352753928d08b5f | [
"CC-BY-4.0",
"MIT"
] | 265 | 2018-03-04T04:47:50.000Z | 2019-05-06T13:31:18.000Z | objectModel/Python/cdm/enums/cdm_incremental_partition_type.py | Microsoft/CDM | 7ea59264d661356ca1b44c31a352753928d08b5f | [
"CC-BY-4.0",
"MIT"
] | 39 | 2018-03-21T16:57:12.000Z | 2019-05-06T17:30:23.000Z | objectModel/Python/cdm/enums/cdm_incremental_partition_type.py | Microsoft/CDM | 7ea59264d661356ca1b44c31a352753928d08b5f | [
"CC-BY-4.0",
"MIT"
] | 75 | 2018-03-09T20:33:13.000Z | 2019-05-05T06:55:43.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
from enum import Enum
| 24.666667 | 94 | 0.716216 |
e7868823ca8a161623e547b6d7f6127e53f6a1db | 534 | py | Python | app/back/mongo/data/collect/maps/mongo.py | jgphilpott/polyplot | c46861174ee5881dadffbfb2278d555462523547 | [
"MIT"
] | 5 | 2021-05-17T14:17:14.000Z | 2021-12-14T12:54:32.000Z | app/back/mongo/data/collect/maps/mongo.py | jgphilpott/iGraph | 2a91ba57e4950856a83d3a109753f8f2badee829 | [
"MIT"
] | 8 | 2020-02-09T02:48:41.000Z | 2021-05-16T04:57:02.000Z | app/back/mongo/data/collect/maps/mongo.py | jgphilpott/iGraph | 2a91ba57e4950856a83d3a109753f8f2badee829 | [
"MIT"
] | 2 | 2016-09-12T03:48:16.000Z | 2019-05-04T14:15:19.000Z | from back.mongo.data.collect.ions import find_collection
from back.mongo.data.collect.maps.model import Map
| 31.411765 | 99 | 0.713483 |
e786a7b6d7533638ac5bb296afe211e365fb9e28 | 7,727 | py | Python | test/unitTest/arg_test.py | alljoyn/devtools-codegen | 388cac15e584dce3040d5090e8f627e5360e5c0f | [
"0BSD"
] | null | null | null | test/unitTest/arg_test.py | alljoyn/devtools-codegen | 388cac15e584dce3040d5090e8f627e5360e5c0f | [
"0BSD"
] | null | null | null | test/unitTest/arg_test.py | alljoyn/devtools-codegen | 388cac15e584dce3040d5090e8f627e5360e5c0f | [
"0BSD"
] | null | null | null | # Copyright AllSeen Alliance. All rights reserved.
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR... | 39.423469 | 75 | 0.640481 |
e78723495183f0fe8aa489d98c4605dbae6178f0 | 914 | py | Python | nlpatl/sampling/uncertainty/least_confidence.py | dumpmemory/nlpatl | 59209242d1ac26714b11b86261070ac50cc90432 | [
"MIT"
] | 18 | 2021-11-29T06:43:46.000Z | 2022-03-29T09:58:32.000Z | nlpatl/sampling/uncertainty/least_confidence.py | dumpmemory/nlpatl | 59209242d1ac26714b11b86261070ac50cc90432 | [
"MIT"
] | null | null | null | nlpatl/sampling/uncertainty/least_confidence.py | dumpmemory/nlpatl | 59209242d1ac26714b11b86261070ac50cc90432 | [
"MIT"
] | 1 | 2021-11-29T06:43:47.000Z | 2021-11-29T06:43:47.000Z | from typing import Tuple
import numpy as np
from nlpatl.sampling import Sampling
| 30.466667 | 132 | 0.659737 |
e787bcef0fe3c055b3e9f9ae08c31b576c247a87 | 2,376 | py | Python | random_video.py | enriqueav/the_random_video | 0dbeef2efbbad33351fd106b16095b4bb3ed8821 | [
"MIT"
] | 1 | 2020-11-07T17:15:27.000Z | 2020-11-07T17:15:27.000Z | random_video.py | enriqueav/the_random_video | 0dbeef2efbbad33351fd106b16095b4bb3ed8821 | [
"MIT"
] | null | null | null | random_video.py | enriqueav/the_random_video | 0dbeef2efbbad33351fd106b16095b4bb3ed8821 | [
"MIT"
] | null | null | null | import argparse
import time
from taor.randomvideo import random_video
if __name__ == "__main__":
parser = argparse.ArgumentParser(
description='Create random videos. The --seed argument can be used to generate'
'consistent results. By default the name of the video will contain the epoch... | 44.830189 | 97 | 0.513889 |
e787dc94ca4111ab33a1d29a9785aad5e480ebdf | 2,524 | py | Python | src/leetcode_1743_restore_the_array_from_adjacent_pairs.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | src/leetcode_1743_restore_the_array_from_adjacent_pairs.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | src/leetcode_1743_restore_the_array_from_adjacent_pairs.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | # @l2g 1743 python3
# [1743] Restore the Array From Adjacent Pairs
# Difficulty: Medium
# https://leetcode.com/problems/restore-the-array-from-adjacent-pairs
#
# There is an integer array nums that consists of n unique elements,but you have forgotten it.However,
# you do remember every pair of adjacent elements in nums... | 30.409639 | 106 | 0.638669 |
e789b7eb8d4c8742185f24806004dfff92a4a404 | 1,449 | py | Python | timetable/timetable.py | Huy-Ngo/usth-timetable-2 | d9f653ee2cb138b075c7c630b6f8be08d959cb08 | [
"MIT"
] | null | null | null | timetable/timetable.py | Huy-Ngo/usth-timetable-2 | d9f653ee2cb138b075c7c630b6f8be08d959cb08 | [
"MIT"
] | null | null | null | timetable/timetable.py | Huy-Ngo/usth-timetable-2 | d9f653ee2cb138b075c7c630b6f8be08d959cb08 | [
"MIT"
] | null | null | null | import datetime
from flask import (
Blueprint, flash, g, redirect, render_template, request, url_for, session
)
from werkzeug.exceptions import abort
from timetable.student_auth import login_required
from . import db, updater
bp = Blueprint('timetable', __name__)
| 30.1875 | 124 | 0.73844 |
e78c94bb5cf3e2d928816be2ee0ebeb373a52cb8 | 4,912 | py | Python | apps/sepa/tests/integration.py | jfterpstra/onepercentclub-site | 43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e | [
"BSD-3-Clause"
] | 7 | 2015-01-02T19:31:14.000Z | 2021-03-22T17:30:23.000Z | apps/sepa/tests/integration.py | jfterpstra/onepercentclub-site | 43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e | [
"BSD-3-Clause"
] | 1 | 2015-03-06T08:34:59.000Z | 2015-03-06T08:34:59.000Z | apps/sepa/tests/integration.py | jfterpstra/onepercentclub-site | 43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e | [
"BSD-3-Clause"
] | null | null | null | import os
import unittest
import decimal
from lxml import etree
from apps.sepa.sepa import SepaAccount, SepaDocument
from .base import SepaXMLTestMixin
| 31.896104 | 107 | 0.578583 |
e78d0b3c483bba3574b16e118dcb9461ba02bf95 | 2,992 | py | Python | freeflow/core/tests/dag.py | enorha/freeflow | 5b655ce616d408e566b0b900f96b24804dc49578 | [
"Apache-2.0"
] | 1 | 2021-11-19T08:48:00.000Z | 2021-11-19T08:48:00.000Z | freeflow/core/tests/dag.py | enorha/freeflow | 5b655ce616d408e566b0b900f96b24804dc49578 | [
"Apache-2.0"
] | 1 | 2022-01-06T23:11:02.000Z | 2022-01-06T23:11:02.000Z | freeflow/core/tests/dag.py | enorha/freeflow | 5b655ce616d408e566b0b900f96b24804dc49578 | [
"Apache-2.0"
] | 2 | 2021-11-19T08:51:35.000Z | 2021-12-24T14:39:00.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import unittest
import freeflow.core.tests
from airflow import models as af_models
if __name__ == '__main__':
unittest.main()
| 31.829787 | 98 | 0.531417 |
e78d767af998e6e80008e8c991011efc8624eff7 | 1,429 | py | Python | pingdomexport/tests/load/test_checks_output.py | mattboston/pingdomexport | 1cd7acbf813abee0b9a7865b9cd4a1e166d55c37 | [
"MIT"
] | 4 | 2018-01-25T09:18:38.000Z | 2021-02-12T18:36:08.000Z | pingdomexport/tests/load/test_checks_output.py | mattboston/pingdomexport | 1cd7acbf813abee0b9a7865b9cd4a1e166d55c37 | [
"MIT"
] | 1 | 2018-12-04T18:42:06.000Z | 2021-05-25T14:03:32.000Z | pingdomexport/tests/load/test_checks_output.py | mattboston/pingdomexport | 1cd7acbf813abee0b9a7865b9cd4a1e166d55c37 | [
"MIT"
] | 3 | 2019-04-30T11:52:14.000Z | 2021-03-24T20:58:04.000Z | from pingdomexport.load import checks_output
| 34.853659 | 152 | 0.401679 |
e78dbfdb3c598a36053c36006335775401473a5a | 83 | py | Python | Project_3/source/test_perihelion/test_perihelion.py | larsjbro/FYS4150 | 95ac4e09b5aad133b29c9aabb5be1302abdd8e65 | [
"BSD-2-Clause"
] | null | null | null | Project_3/source/test_perihelion/test_perihelion.py | larsjbro/FYS4150 | 95ac4e09b5aad133b29c9aabb5be1302abdd8e65 | [
"BSD-2-Clause"
] | null | null | null | Project_3/source/test_perihelion/test_perihelion.py | larsjbro/FYS4150 | 95ac4e09b5aad133b29c9aabb5be1302abdd8e65 | [
"BSD-2-Clause"
] | null | null | null | '''
Created on 30. okt. 2017
@author: LJB
'''
if __name__ == '__main__':
pass | 10.375 | 26 | 0.590361 |
e79009e224114b1ec0ae87c6bd3d54452a3b6720 | 791 | py | Python | story_with_exercises/5_ex_rename_like_a_pro.py | flrs/pycharm_tips_and_tricks | 21a2768f2cc3b6b2af8e672d32c7bd178900adad | [
"MIT"
] | 1 | 2020-02-17T15:08:57.000Z | 2020-02-17T15:08:57.000Z | story_with_exercises/5_ex_rename_like_a_pro.py | flrs/pycharm_tips_and_tricks | 21a2768f2cc3b6b2af8e672d32c7bd178900adad | [
"MIT"
] | null | null | null | story_with_exercises/5_ex_rename_like_a_pro.py | flrs/pycharm_tips_and_tricks | 21a2768f2cc3b6b2af8e672d32c7bd178900adad | [
"MIT"
] | null | null | null | """Rename Like a Pro
Exercise:
The contents of the people_on_meetup variable look more like a zoo. Let's rename the following items:
- variable "people_on_meetup" -> "animals_in_zoo"
- class "Meetup" -> "Zoo"
To rename an item, put the cursor on the item you want to rename and then press Shift+F6 on Windows/... | 22.6 | 105 | 0.663717 |
e79061260d07a54089774bc6a61e074894413160 | 832 | py | Python | bot/plugins/trivia/content/flags.py | best-coloc-ever/globibot | a4c4dd8bb3b71bff09bd2e1c4c5ce58ab1bad176 | [
"MIT"
] | 14 | 2016-02-03T16:47:01.000Z | 2019-12-09T14:24:25.000Z | bot/plugins/trivia/content/flags.py | best-coloc-ever/globibot | a4c4dd8bb3b71bff09bd2e1c4c5ce58ab1bad176 | [
"MIT"
] | 11 | 2016-08-19T22:00:25.000Z | 2022-01-13T00:39:48.000Z | bot/plugins/trivia/content/flags.py | best-coloc-ever/globibot | a4c4dd8bb3b71bff09bd2e1c4c5ce58ab1bad176 | [
"MIT"
] | 6 | 2016-08-19T21:30:58.000Z | 2019-09-27T05:24:08.000Z | from .helpers import *
from .behavior import trivia_behavior
from io import BytesIO
DELAY = 20
FlagsTrivia = trivia_behavior(
fetch = Fetch.read_json('flags.json'),
pick = Pick.random_collection,
premise = premise,
query = Query.timed(DELAY),
resolve = resolve,
)
| 24.470588 | 86 | 0.679087 |
e790a3d718923f21aded92fe9214fe4322d6f5f0 | 2,687 | py | Python | pipe_text_wrapper.py | STealthy-and-haSTy/PipeText | 518149cc3183ab9b6ba22be47405677259b7db7a | [
"MIT"
] | 1 | 2020-10-16T08:41:23.000Z | 2020-10-16T08:41:23.000Z | pipe_text_wrapper.py | STealthy-and-haSTy/PipeText | 518149cc3183ab9b6ba22be47405677259b7db7a | [
"MIT"
] | null | null | null | pipe_text_wrapper.py | STealthy-and-haSTy/PipeText | 518149cc3183ab9b6ba22be47405677259b7db7a | [
"MIT"
] | null | null | null | import sublime
import sublime_plugin
### ---------------------------------------------------------------------------
_pipe_cmd_history = PipeCommandHistory()
### ---------------------------------------------------------------------------
### ---------------------------------------------------------------------... | 31.244186 | 100 | 0.534053 |
e79113b7e230adcf093bfd7230288a6161d84a7d | 4,663 | py | Python | pytracer/texture/texturemap/__init__.py | zjiayao/pyTracer | c2b4ef299ecbdca1c519059488f7cd2438943ee4 | [
"MIT"
] | 9 | 2017-11-20T18:17:27.000Z | 2022-01-27T23:00:31.000Z | pytracer/texture/texturemap/__init__.py | zjiayao/pyTracer | c2b4ef299ecbdca1c519059488f7cd2438943ee4 | [
"MIT"
] | 4 | 2021-06-08T19:03:51.000Z | 2022-03-11T23:18:44.000Z | pytracer/texture/texturemap/__init__.py | zjiayao/pyTracer | c2b4ef299ecbdca1c519059488f7cd2438943ee4 | [
"MIT"
] | 1 | 2017-11-20T22:48:01.000Z | 2017-11-20T22:48:01.000Z | """
__init__.py
pytracer.texture.texturemap package
Texture map definitions.
Created by Jiayao on Aug 5, 2017
Modified on Aug 14, 2017
"""
from __future__ import absolute_import
from abc import (ABCMeta, abstractmethod)
from pytracer import *
import pytracer.geometry as geo
import pytracer.transform as trans
__all... | 25.620879 | 97 | 0.633712 |
e794ec0a4b84110bf4cfe442ef69d62eb12a32aa | 5,780 | py | Python | lib/task/worker.py | mrmansano/sublime-ycmd | fece62f0ce4e9cbf96ed8ba07f5cecb24b21427e | [
"MIT"
] | 12 | 2018-01-24T20:58:10.000Z | 2021-12-21T15:02:10.000Z | lib/task/worker.py | mrmansano/sublime-ycmd | fece62f0ce4e9cbf96ed8ba07f5cecb24b21427e | [
"MIT"
] | 4 | 2018-01-13T14:39:45.000Z | 2020-11-25T00:05:27.000Z | lib/task/worker.py | mrmansano/sublime-ycmd | fece62f0ce4e9cbf96ed8ba07f5cecb24b21427e | [
"MIT"
] | 2 | 2018-10-23T17:13:44.000Z | 2019-05-12T04:10:17.000Z | #!/usr/bin/env python3
'''
lib/task/worker.py
Task pool worker thread. Meant for internal use only.
Runs a thread to process items in a task pool. The class itself does not
inherit from `threading.Thread` directly. Instead, a helper function is exposed
for use in a thread target.
Users should not need to access this... | 28.613861 | 79 | 0.569896 |