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
bd9a2a22106cfdf6f802047a7e11b687baf754c4
4,522
py
Python
datasets/pasval_voc_writer.py
jiabaocui/SEGS
c03d3bcb6fdcc4e6e6e13767bed8eae754beb726
[ "MIT" ]
null
null
null
datasets/pasval_voc_writer.py
jiabaocui/SEGS
c03d3bcb6fdcc4e6e6e13767bed8eae754beb726
[ "MIT" ]
null
null
null
datasets/pasval_voc_writer.py
jiabaocui/SEGS
c03d3bcb6fdcc4e6e6e13767bed8eae754beb726
[ "MIT" ]
null
null
null
import os import random import xml.etree.ElementTree as ET import tensorflow as tf def int64_feature(value): """Wrapper for inserting int64 features into Example proto. """ if not isinstance(value, list): value = [value] return tf.train.Feature(int64_list=tf.train.Int64List(value=value)) de...
34.784615
103
0.623176
bd9b25df86c49c5c34262d4d2399058530c129b1
296
py
Python
backend/commands/remove_expired_tokens.py
KSodowska/codeforpoznan.pl_v3
ddb079db90eda869940f4467832ef96f70591055
[ "MIT" ]
8
2019-08-12T22:10:48.000Z
2020-09-13T17:46:10.000Z
backend/commands/remove_expired_tokens.py
KSodowska/codeforpoznan.pl_v3
ddb079db90eda869940f4467832ef96f70591055
[ "MIT" ]
326
2018-11-07T20:29:28.000Z
2022-02-10T08:53:42.000Z
backend/commands/remove_expired_tokens.py
KSodowska/codeforpoznan.pl_v3
ddb079db90eda869940f4467832ef96f70591055
[ "MIT" ]
49
2018-11-14T17:50:27.000Z
2021-04-20T22:40:29.000Z
import click from flask.cli import with_appcontext from backend.models import JWTToken
21.142857
46
0.75
bd9b69dd642e70dfb29c6adbdfeea6b8fd4c082f
200
py
Python
tests/cases/examples/skip_track/gen_playlist.py
aarongaut/nextsong
05639d3aba2ef31721fd2533ca804a0d32e64ebf
[ "MIT" ]
null
null
null
tests/cases/examples/skip_track/gen_playlist.py
aarongaut/nextsong
05639d3aba2ef31721fd2533ca804a0d32e64ebf
[ "MIT" ]
null
null
null
tests/cases/examples/skip_track/gen_playlist.py
aarongaut/nextsong
05639d3aba2ef31721fd2533ca804a0d32e64ebf
[ "MIT" ]
null
null
null
from nextsong import Playlist as p p( "01.mp3", p( p("02.mp3", weight=1 / 4), p(weight=3 / 4), count=1, ), "03.mp3", "04.mp3", loop=True, ).save_xml()
14.285714
34
0.455
bd9ca71b402899675dbdc36257c37a8b3b2984d6
861
py
Python
pelican/plugins/issues/__init__.py
GlowstoneMC/glowstonemc.github.io
1d1a453251816ef90fb8aaa63a689c81aaad4848
[ "Artistic-2.0" ]
6
2016-07-30T00:44:10.000Z
2021-07-09T02:24:36.000Z
pelican/plugins/issues/__init__.py
GlowstoneMC/glowstonemc.github.io
1d1a453251816ef90fb8aaa63a689c81aaad4848
[ "Artistic-2.0" ]
16
2016-07-30T01:01:30.000Z
2021-07-09T21:33:51.000Z
pelican/plugins/issues/__init__.py
GlowstoneMC/glowstonemc.github.io
1d1a453251816ef90fb8aaa63a689c81aaad4848
[ "Artistic-2.0" ]
10
2015-01-21T19:57:43.000Z
2017-09-01T22:15:21.000Z
import itertools import re from pelican import signals ISSUE_REGEX = re.compile(r"([\s(])(#[\d]+)([\s),.])") ISSUE_URL = "https://github.com/GlowstoneMC/Glowstone/issues/{}" ISSUE_HTML = """{}<a href="{}">{}</a>{}"""
24.6
70
0.637631
bd9d44c68b6bd8ea2a3e03df9da24659e42178bb
17,295
py
Python
athena/layers/commons.py
iou2much/athena
156dfceb0267e8c105e5d040aac017e2d8b9ad9d
[ "Apache-2.0" ]
null
null
null
athena/layers/commons.py
iou2much/athena
156dfceb0267e8c105e5d040aac017e2d8b9ad9d
[ "Apache-2.0" ]
null
null
null
athena/layers/commons.py
iou2much/athena
156dfceb0267e8c105e5d040aac017e2d8b9ad9d
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright (C) 2019 ATHENA AUTHORS; Xiangang Li # # 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 appli...
34.179842
123
0.6244
bd9d5067373dbf69f5799fe7d45b1985b89fc18a
381
py
Python
tickets/migrations/0012_auto_20180830_1028.py
SpenserPorter/automate_reporting
59a0a9ff8776a7e14cd66575fc8ad7da7ec66087
[ "MIT" ]
1
2019-02-06T12:40:02.000Z
2019-02-06T12:40:02.000Z
tickets/migrations/0012_auto_20180830_1028.py
SpenserPorter/automate_reporting
59a0a9ff8776a7e14cd66575fc8ad7da7ec66087
[ "MIT" ]
null
null
null
tickets/migrations/0012_auto_20180830_1028.py
SpenserPorter/automate_reporting
59a0a9ff8776a7e14cd66575fc8ad7da7ec66087
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2018-08-30 15:28 from django.db import migrations, models
20.052632
47
0.598425
bd9d807e7a31d0445e4cb5f019e63d43a7bf4018
12,879
py
Python
oscar/data/mars.py
IntelLabs/OSCAR
25d1dea35727379117e11b7238b5a0d1ed19acad
[ "BSD-3-Clause" ]
13
2021-02-12T18:41:53.000Z
2022-01-14T07:17:15.000Z
oscar/data/mars.py
IntelLabs/OSCAR
25d1dea35727379117e11b7238b5a0d1ed19acad
[ "BSD-3-Clause" ]
null
null
null
oscar/data/mars.py
IntelLabs/OSCAR
25d1dea35727379117e11b7238b5a0d1ed19acad
[ "BSD-3-Clause" ]
2
2021-03-05T18:27:23.000Z
2021-03-05T23:16:09.000Z
# # Copyright (C) 2020 Intel Corporation # # SPDX-License-Identifier: BSD-3-Clause # import logging from collections import Counter import torch from torch.utils.data import DataLoader from torchvision.transforms import transforms as T from torchvision.transforms import functional as TF import pytorch_lightning as p...
45.508834
202
0.601444
bd9dc0e3438ed94163bddc922821b2e616468b1a
2,704
py
Python
bin/changes.py
kcrca/clarity
84acb9b17bd8b84222bf25e3bb32fc578832e37f
[ "CC-BY-4.0" ]
1
2016-08-25T02:17:47.000Z
2016-08-25T02:17:47.000Z
bin/changes.py
kcrca/clarity
84acb9b17bd8b84222bf25e3bb32fc578832e37f
[ "CC-BY-4.0" ]
null
null
null
bin/changes.py
kcrca/clarity
84acb9b17bd8b84222bf25e3bb32fc578832e37f
[ "CC-BY-4.0" ]
2
2016-08-01T05:02:30.000Z
2022-01-14T12:58:14.000Z
#!/usr/bin/env python3 # Generate the animations and images needed to provide the "changes" texture pack. __author__ = 'arnold' import os import random import json import collections from PIL import Image import clip weeks_in_year = 52 timings = collections.OrderedDict() timings['autumn'] = 2 timings['winter'] = ...
29.075269
118
0.651257
bd9ea740497b5430ed79706f049d86c226916d0f
8,929
py
Python
exp2.py
jdrugo/LCSBookCode
ce9b8f35919e7dd959d007e6543d1479bbe2a26a
[ "MIT" ]
1
2020-11-25T14:57:49.000Z
2020-11-25T14:57:49.000Z
exp2.py
jdrugo/LCSBookCode
ce9b8f35919e7dd959d007e6543d1479bbe2a26a
[ "MIT" ]
null
null
null
exp2.py
jdrugo/LCSBookCode
ce9b8f35919e7dd959d007e6543d1479bbe2a26a
[ "MIT" ]
null
null
null
"""Trains a Bayesian LCS with a GA on the Waterhouse (1996) test function. """ import sys from numpy import double, array, ones, empty, arange, empty, hstack, \ sqrt, exp, sort, sum, inf, power, dot, linspace, sin, pi from numpy.random import random, randn, binomial, uniform, normal import Gnuplot from ga import...
33.317164
80
0.579348
bd9f9949e13417fd14f6292afebf26ca964e5be3
9,439
py
Python
test/test_live_tv_service_api.py
stanionascu/python-embyapi
a3f7aa49aea4052277cc43605c0d89bc6ff21913
[ "BSD-3-Clause" ]
null
null
null
test/test_live_tv_service_api.py
stanionascu/python-embyapi
a3f7aa49aea4052277cc43605c0d89bc6ff21913
[ "BSD-3-Clause" ]
null
null
null
test/test_live_tv_service_api.py
stanionascu/python-embyapi
a3f7aa49aea4052277cc43605c0d89bc6ff21913
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 """ Emby Server API Explore the Emby Server API # noqa: E501 OpenAPI spec version: 4.1.1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import embyapi from embyapi.api.live_tv_service_api import Li...
23.896203
78
0.637144
bda0ee2b60b3089f82bfd69b9afe911afcc77e80
4,454
py
Python
dolfyn/tests/test_vs_nortek.py
jklymak/dolfyn
eea98fe0021886cf654e25293c385c5c3707ff8d
[ "BSD-3-Clause" ]
null
null
null
dolfyn/tests/test_vs_nortek.py
jklymak/dolfyn
eea98fe0021886cf654e25293c385c5c3707ff8d
[ "BSD-3-Clause" ]
null
null
null
dolfyn/tests/test_vs_nortek.py
jklymak/dolfyn
eea98fe0021886cf654e25293c385c5c3707ff8d
[ "BSD-3-Clause" ]
null
null
null
from dolfyn.tests import test_read_adp as tr from dolfyn.tests import base from dolfyn.rotate.api import rotate2 from numpy.testing import assert_allclose import numpy as np import scipy.io as sio """ Testing against velocity and bottom-track velocity data in Nortek mat files exported from SignatureDeployment. inst2...
35.632
79
0.606646
bda2bb0b49a3956bff9896df11bb2cfb1702c6a1
1,022
py
Python
vscode/extensions/magicstack.magicpython-1.0.12/test/regexp/python2.py
nlimpid/dotfiles
b78d08707992f742f984f556fa58349c2ccd095d
[ "MIT" ]
5
2017-02-22T10:17:39.000Z
2021-04-06T16:36:13.000Z
test/regexp/python2.py
Setonas/MagicSetonas
ef76da5f27a0506b194c58072b81424e3ce985d7
[ "MIT" ]
4
2019-06-16T09:52:03.000Z
2019-08-18T02:11:35.000Z
vscode/extensions/magicstack.magicpython-1.0.12/test/regexp/python2.py
nlimpid/dotfiles
b78d08707992f742f984f556fa58349c2ccd095d
[ "MIT" ]
1
2020-08-29T02:30:52.000Z
2020-08-29T02:30:52.000Z
a = r' (?x) foo ' a : source.python : source.python = : keyword.operator.assignment.python, source.python : source.python r : source.python, storage.type.string.python, string.regexp.quoted.single.python ' : punctuation.definitio...
42.583333
112
0.622309
bda33f238048fa796ed848c9125688fdcab82f49
1,331
py
Python
backend/flaskr/formula.py
jyyang42/RobinOptionCalculator
be3f06f6ae54c7e2dd4badc258a9888e3e240a4a
[ "MIT" ]
1
2020-11-19T19:47:48.000Z
2020-11-19T19:47:48.000Z
backend/flaskr/formula.py
jyyang42/RobinOptionCalculater
be3f06f6ae54c7e2dd4badc258a9888e3e240a4a
[ "MIT" ]
7
2020-06-23T07:07:10.000Z
2020-08-24T23:43:53.000Z
backend/flaskr/formula.py
jyyang42/RobinOptionCalculater
be3f06f6ae54c7e2dd4badc258a9888e3e240a4a
[ "MIT" ]
2
2020-08-25T02:45:10.000Z
2020-11-19T19:47:38.000Z
import math if __name__ == "__main__": # Z = (x - ) / sigma p0 = 62 X = 60 t = 40 sigma = 0.32 Rho = 0.04 d1 = get_d1(p0, X, t, sigma, Rho) d2 = get_d2(d1, sigma, t) Nd1 = get_cumulative_standard_normal_distribution(d1) Nd2 = get_cumulative_standard_normal_distribution(d2...
25.596154
81
0.552968
bda34ec056c93e4918c1bc75e8154a348bc2e5e2
932
py
Python
bot/modules/magnet.py
AliAryanTech/Nyaa-Telegram-Bot
d1614ed218fd9f413d046eec61978df269b325b6
[ "MIT" ]
12
2020-12-01T04:40:37.000Z
2022-01-22T14:19:04.000Z
bot/modules/magnet.py
AliAryanTech/Nyaa-Telegram-Bot
d1614ed218fd9f413d046eec61978df269b325b6
[ "MIT" ]
null
null
null
bot/modules/magnet.py
AliAryanTech/Nyaa-Telegram-Bot
d1614ed218fd9f413d046eec61978df269b325b6
[ "MIT" ]
19
2021-02-09T19:20:59.000Z
2022-03-18T12:05:08.000Z
from .get_response import nyaa_id, sukebei_id from bot import NYAA, botname from pyrogram import Client, filters from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup, CallbackQuery INVALID_TEXT = """ No ID found! """
40.521739
137
0.637339
bda3f5b55352390d17d7c5c49807550e4e3deac1
297
py
Python
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/images/api/serializers.py
kaka-lin/azure-intelligent-edge-patterns
766833c7c25d2458cec697937be288202d1763bc
[ "MIT" ]
176
2019-07-03T00:20:15.000Z
2022-03-14T07:51:22.000Z
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/images/api/serializers.py
kaka-lin/azure-intelligent-edge-patterns
766833c7c25d2458cec697937be288202d1763bc
[ "MIT" ]
121
2019-06-24T20:47:27.000Z
2022-03-28T02:16:18.000Z
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/images/api/serializers.py
kaka-lin/azure-intelligent-edge-patterns
766833c7c25d2458cec697937be288202d1763bc
[ "MIT" ]
144
2019-06-18T18:48:43.000Z
2022-03-31T12:14:46.000Z
"""App API serializers. """ import logging from rest_framework import serializers from ..models import Image logger = logging.getLogger(__name__)
15.631579
51
0.703704
bda4133fe40f05627ed065666e33a64ba888ab8f
18,060
py
Python
fhir/resources/DSTU2/implementationguide.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
144
2019-05-08T14:24:43.000Z
2022-03-30T02:37:11.000Z
fhir/resources/DSTU2/implementationguide.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
82
2019-05-13T17:43:13.000Z
2022-03-30T16:45:17.000Z
fhir/resources/DSTU2/implementationguide.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
48
2019-04-04T14:14:53.000Z
2022-03-30T06:07:31.000Z
# -*- coding: utf-8 -*- """ Profile: https://www.hl7.org/fhir/DSTU2/implementationguide.html Release: DSTU2 Version: 1.0.2 Revision: 7202 """ from typing import Any, Dict from typing import List as ListType from pydantic import Field, root_validator from . import backboneelement, domainresource, fhirtypes
34.334601
92
0.612901
bda5541d8519516c1c651c498c62fb368ec8e19e
2,796
py
Python
Decorator Foundation.py
Enthuisasticpessimist/Small-exercise
b169000023c3863f9e30d2cfc7c0f6e228f612f7
[ "MIT" ]
null
null
null
Decorator Foundation.py
Enthuisasticpessimist/Small-exercise
b169000023c3863f9e30d2cfc7c0f6e228f612f7
[ "MIT" ]
null
null
null
Decorator Foundation.py
Enthuisasticpessimist/Small-exercise
b169000023c3863f9e30d2cfc7c0f6e228f612f7
[ "MIT" ]
null
null
null
##-----------Non parametric decorator---------------- ####initialization ##name = 'a' ##password = '1' ##user_status = False ## ####decorator ##def login(func): ## def inner(): ## global name,password,user_status ## if user_status == True: ## pass ## else: ## n = input('nam...
26.377358
79
0.508941
bda5691ceabca9d9b32498222c4155793f52475a
2,325
py
Python
src/mnkgame.py
isihya/minimax_algorithm_MNKgame
9876c12d065422334d87bf24c6d82171c7ace89e
[ "MIT" ]
null
null
null
src/mnkgame.py
isihya/minimax_algorithm_MNKgame
9876c12d065422334d87bf24c6d82171c7ace89e
[ "MIT" ]
null
null
null
src/mnkgame.py
isihya/minimax_algorithm_MNKgame
9876c12d065422334d87bf24c6d82171c7ace89e
[ "MIT" ]
null
null
null
import numpy as np from game import Game
28.012048
59
0.44129
bda5f88b1ed70dd6d4320c4922009e7031b24847
2,721
py
Python
memoit/main/forms.py
Szymon-I/Memo-IT-App
f435331c4fbd68d34a5fb1d1f6b54117bab6b864
[ "MIT" ]
null
null
null
memoit/main/forms.py
Szymon-I/Memo-IT-App
f435331c4fbd68d34a5fb1d1f6b54117bab6b864
[ "MIT" ]
14
2019-08-06T02:06:17.000Z
2022-03-11T23:49:01.000Z
memoit/main/forms.py
Szymon-I/Memo-IT-App
f435331c4fbd68d34a5fb1d1f6b54117bab6b864
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from .choices import * from django.contrib.auth.forms import AuthenticationForm from django.core.exceptions import ObjectDoesNotExist from django.forms import ValidationError # override basic au...
37.791667
117
0.669974
bda7487b706cb9a94241cf9262532248e9f7dfec
4,617
py
Python
tests/export_traces_test.py
galizia-lab/pyview
07bef637b0c60fae8830c1b3947e4a7bcd14bb2c
[ "BSD-3-Clause" ]
2
2021-11-07T10:17:16.000Z
2021-11-07T10:17:19.000Z
tests/export_traces_test.py
galizia-lab/pyview
07bef637b0c60fae8830c1b3947e4a7bcd14bb2c
[ "BSD-3-Clause" ]
5
2021-11-03T12:43:03.000Z
2021-12-16T10:34:52.000Z
tests/export_traces_test.py
galizia-lab/pyview
07bef637b0c60fae8830c1b3947e4a7bcd14bb2c
[ "BSD-3-Clause" ]
1
2021-09-23T15:46:26.000Z
2021-09-23T15:46:26.000Z
from common import initialize_test_yml_list_measurement from view import VIEW import pathlib as pl import shutil from view.python_core.ctvs import get_all_available_ctvs from view.python_core.gdm_generation.gdm_data_classes import GDMFile def test_export_traces_rois(): """ Testing exporting traces using .roi...
27.981818
98
0.65627
bda7fb3776a5d1e908f28700d29753c520db4037
2,551
py
Python
app/entries/forms.py
singh-prashant/blog
7c4d2e2d6890d3f0b48741b1090e41a990cad1de
[ "MIT" ]
null
null
null
app/entries/forms.py
singh-prashant/blog
7c4d2e2d6890d3f0b48741b1090e41a990cad1de
[ "MIT" ]
null
null
null
app/entries/forms.py
singh-prashant/blog
7c4d2e2d6890d3f0b48741b1090e41a990cad1de
[ "MIT" ]
null
null
null
from wtforms import Form, StringField, TextAreaField,SelectField, FileField,HiddenField from wtforms.validators import DataRequired, Optional, Email, URL, Length from models import Entry, Tag
31.109756
89
0.633477
bda9a1746f79218c2ab9314175f0e74a63028e6b
11,323
py
Python
cloudsmith_cli/cli/commands/tags.py
ThomasAdam/cloudsmith-cli
c335645bf947381a8f5c287bcc0ca6de7a809bdd
[ "Apache-2.0" ]
19
2018-02-14T23:48:27.000Z
2022-03-12T20:58:09.000Z
cloudsmith_cli/cli/commands/tags.py
ThomasAdam/cloudsmith-cli
c335645bf947381a8f5c287bcc0ca6de7a809bdd
[ "Apache-2.0" ]
68
2017-12-03T04:16:55.000Z
2022-03-03T09:45:48.000Z
cloudsmith_cli/cli/commands/tags.py
ThomasAdam/cloudsmith-cli
c335645bf947381a8f5c287bcc0ca6de7a809bdd
[ "Apache-2.0" ]
10
2017-12-25T14:36:24.000Z
2021-12-10T11:10:59.000Z
# -*- coding: utf-8 -*- """CLI/Commands - List objects.""" from __future__ import absolute_import, print_function, unicode_literals from operator import itemgetter import click from ...core.api.packages import ( get_package_tags as api_get_package_tags, tag_package as api_tag_package, ) from .. import comman...
31.192837
87
0.666078
bdaa3c35e12cb6be60fdc05cc2cfe86bb78ba70c
764
py
Python
tests/test_correct_pesel.py
matee911/pypesel
393e4bf4891b4bbb94cd077b26161dd2e94eed31
[ "Apache-2.0" ]
null
null
null
tests/test_correct_pesel.py
matee911/pypesel
393e4bf4891b4bbb94cd077b26161dd2e94eed31
[ "Apache-2.0" ]
null
null
null
tests/test_correct_pesel.py
matee911/pypesel
393e4bf4891b4bbb94cd077b26161dd2e94eed31
[ "Apache-2.0" ]
null
null
null
from pesel import Pesel import pytest def test_correct_pesel(pesel_obj, pesel_value): pytest.assume(pesel_obj.value == pesel_value) def test_correct_pesel_gender(pesel_obj): pytest.assume(pesel_obj.gender == 'male') def test_correct_pesel_male(pesel_obj): pytest.assume(pesel_obj.male is True) def ...
20.648649
56
0.764398
bdab079e812edf7ae50cfd1cbee57eb0f820a648
5,978
py
Python
oidc/endpoints/authorize.py
didx-xyz/yoma-oidc-bridge
7e3ff6ab3ea4fed01cd7d4c113c7c3b3244356eb
[ "Apache-2.0" ]
null
null
null
oidc/endpoints/authorize.py
didx-xyz/yoma-oidc-bridge
7e3ff6ab3ea4fed01cd7d4c113c7c3b3244356eb
[ "Apache-2.0" ]
null
null
null
oidc/endpoints/authorize.py
didx-xyz/yoma-oidc-bridge
7e3ff6ab3ea4fed01cd7d4c113c7c3b3244356eb
[ "Apache-2.0" ]
null
null
null
from aca.client import ACAClient from aries_cloudcontroller.aries_controller import AriesAgentController from asgiref.sync import sync_to_async, async_to_sync from django.utils import timezone from datetime import timedelta from aca.models import PresentationFactory from oidc.utils.shortener import create_short_url fr...
42.7
146
0.761124
bdad84b4bff0650ac95c00b90cecccaf57a977f3
425
py
Python
BOJ17207.py
INYEONGKIM/BOJ
5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc
[ "MIT" ]
2
2019-03-05T15:42:46.000Z
2019-07-24T15:52:36.000Z
BOJ17207.py
INYEONGKIM/BOJ
5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc
[ "MIT" ]
null
null
null
BOJ17207.py
INYEONGKIM/BOJ
5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc
[ "MIT" ]
null
null
null
a=[];b=[];t=[];task=[0]*5;n=['Youngki','Jinwoo','Jungwoo','Junsuk','Inseo'] for _ in range(5): a.append([int(i) for i in input().split()]) t.append([0]*5) for _ in range(5): b.append([int(i) for i in input().split()]) for i in range(5): for j in range(5): for k in range(5): t[i][j]+=...
28.333333
75
0.531765
bdae540df0f84f457e5404b4e6682360e4f75f83
5,163
py
Python
psana/psana/graphqt/IVSpectrum.py
ZLLentz/lcls2
3edbea556779f619944ee9b97fb33cd815a19a37
[ "BSD-3-Clause-LBNL" ]
null
null
null
psana/psana/graphqt/IVSpectrum.py
ZLLentz/lcls2
3edbea556779f619944ee9b97fb33cd815a19a37
[ "BSD-3-Clause-LBNL" ]
null
null
null
psana/psana/graphqt/IVSpectrum.py
ZLLentz/lcls2
3edbea556779f619944ee9b97fb33cd815a19a37
[ "BSD-3-Clause-LBNL" ]
null
null
null
"""Class :py:class:`IVSpectrum` is a QWidget with histogram, two axes, and color bar ==================================================================================== Usage :: # Run test: python lcls2/psana/psana/graphqt/IVSpectrum.py from psana.graphqt.IVSpectrum import IVSpectrum w = IVSpectrum() ...
32.88535
114
0.650978
bdb6b56e79718d96881ce563456b6ed24e5bfc35
2,912
py
Python
saige/load_results.py
Nealelab/ukb_common
ee063971d48e15ea4c525d26cf6745930d7106dc
[ "MIT" ]
8
2020-03-06T12:32:44.000Z
2021-11-17T18:00:13.000Z
saige/load_results.py
Nealelab/ukb_common
ee063971d48e15ea4c525d26cf6745930d7106dc
[ "MIT" ]
1
2021-11-02T20:09:05.000Z
2021-11-03T13:10:05.000Z
saige/load_results.py
Nealelab/ukb_common
ee063971d48e15ea4c525d26cf6745930d7106dc
[ "MIT" ]
3
2020-07-27T04:14:52.000Z
2021-09-15T13:43:23.000Z
#!/usr/bin/env python3 __author__ = 'konradk' from ukb_common import * import argparse import tempfile PHENO_KEY_FIELDS = ('trait_type', 'phenocode', 'pheno_sex', 'coding', 'modifier') if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--input_dir', help='Input directory',...
56
164
0.736607
bdb72defd6c6f62fdddbb438cb6348c91bc60611
4,981
py
Python
app/db/crud/recipeBewertung.py
baldur132/essensfindung
e1a8106d8a1de857340229a5fe36ca6910c55b35
[ "MIT" ]
1
2022-01-29T20:33:30.000Z
2022-01-29T20:33:30.000Z
app/db/crud/recipeBewertung.py
baldur132/essensfindung
e1a8106d8a1de857340229a5fe36ca6910c55b35
[ "MIT" ]
2
2022-03-08T06:41:22.000Z
2022-03-09T11:52:06.000Z
app/db/crud/recipeBewertung.py
baldur132/essensfindung
e1a8106d8a1de857340229a5fe36ca6910c55b35
[ "MIT" ]
6
2022-01-06T15:02:59.000Z
2022-02-02T08:08:56.000Z
"""All DB functions for the Bewertung table""" from typing import List from typing import Union import sqlalchemy from sqlalchemy.orm import Session from db.base import BewertungRecipe from db.base import Person from db.crud.user import get_user_by_mail from schemes import scheme_recipe from schemes import scheme_use...
34.116438
119
0.700863
bdb88a765d8bc6b5e477b1b64ee817472716d342
66,946
py
Python
tests/pyoozie/test_client.py
Shopify/pyoozie
6dcbcb8249820dc40b5a9bbbc04b0370240fd706
[ "MIT" ]
9
2017-03-16T15:30:23.000Z
2019-08-07T03:35:59.000Z
tests/pyoozie/test_client.py
Shopify/pyoozie
6dcbcb8249820dc40b5a9bbbc04b0370240fd706
[ "MIT" ]
43
2017-02-01T22:20:52.000Z
2020-08-10T08:48:20.000Z
tests/pyoozie/test_client.py
Shopify/pyoozie
6dcbcb8249820dc40b5a9bbbc04b0370240fd706
[ "MIT" ]
5
2017-02-08T17:59:06.000Z
2020-11-12T11:29:08.000Z
# Copyright (c) 2017 "Shopify inc." All rights reserved. # Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. from __future__ import unicode_literals import copy import mock import pytest import requests_mock import requests from pyoozie import exceptions from pyoozie im...
47.045678
118
0.647776
bdb903aa24f6b049c642dc46fbe0678bd7b992ac
35,706
py
Python
modules/tbc_mage.py
ClawDoctor/TBC_GUI_sim
ebdb40ef348f5b00b10f6323f07260f47e8aab74
[ "MIT" ]
null
null
null
modules/tbc_mage.py
ClawDoctor/TBC_GUI_sim
ebdb40ef348f5b00b10f6323f07260f47e8aab74
[ "MIT" ]
null
null
null
modules/tbc_mage.py
ClawDoctor/TBC_GUI_sim
ebdb40ef348f5b00b10f6323f07260f47e8aab74
[ "MIT" ]
null
null
null
import fns import numpy as np import sys from .libs import tbc_mage_backend as bck import importlib importlib.reload(bck) import copy
42.406176
183
0.651711
bdb9e345a7126b6fc13fd0106c741d7ab14d3f93
36,682
py
Python
PyPixel/SkyBlockStats.py
M4axim/PyPixel
8f77773a6e4c1541a41c98fd8edb86b4bb2aba67
[ "MIT" ]
2
2021-03-25T16:52:22.000Z
2021-09-22T16:42:57.000Z
PyPixel/SkyBlockStats.py
M4axim/PyPixel
8f77773a6e4c1541a41c98fd8edb86b4bb2aba67
[ "MIT" ]
null
null
null
PyPixel/SkyBlockStats.py
M4axim/PyPixel
8f77773a6e4c1541a41c98fd8edb86b4bb2aba67
[ "MIT" ]
2
2021-03-23T18:40:19.000Z
2022-01-03T18:17:08.000Z
# -*- coding: utf-8 -*- """ MIT License Copyright (c) 2021 plun1331 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...
73.955645
120
0.733684
bdba7af199ee6c2c990e85c3f998b299c41d4413
604
py
Python
nicos_virt_mlz/reseda/setups/guidehall.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_virt_mlz/reseda/setups/guidehall.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_virt_mlz/reseda/setups/guidehall.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'FRM II Neutron guide hall west infrastructure devices' group = 'lowlevel' devices = dict( Sixfold = device('nicos.devices.generic.ManualSwitch', description = 'Sixfold shutter status', states = ('closed', 'open'), pollinterval = 60, maxage = 120, ), Crane = d...
27.454545
69
0.584437
bdbb22ba6b4c3c39c0c15a90a8c254569dd0c0be
74
py
Python
tinycord/models/message/gateway/__init__.py
tinycord/tinycord
9e817452c1f2357878f07f8622f6240687470cad
[ "MIT" ]
8
2022-01-08T20:04:29.000Z
2022-03-21T19:12:19.000Z
tinycord/models/message/gateway/__init__.py
tinycord/tinycord
9e817452c1f2357878f07f8622f6240687470cad
[ "MIT" ]
null
null
null
tinycord/models/message/gateway/__init__.py
tinycord/tinycord
9e817452c1f2357878f07f8622f6240687470cad
[ "MIT" ]
1
2022-01-02T21:42:53.000Z
2022-01-02T21:42:53.000Z
from .reaction import ReactionGateway __all__ = [ "ReactionGateway" ]
14.8
37
0.743243
bdbb658871214d92211c98f23c493a5bef0ef8d6
2,366
py
Python
papermerge/core/management/commands/checkaccess.py
MinchinWeb/papermerge
8a5f73207413a3ea8989d277e140d448baa35ca4
[ "Apache-2.0" ]
null
null
null
papermerge/core/management/commands/checkaccess.py
MinchinWeb/papermerge
8a5f73207413a3ea8989d277e140d448baa35ca4
[ "Apache-2.0" ]
null
null
null
papermerge/core/management/commands/checkaccess.py
MinchinWeb/papermerge
8a5f73207413a3ea8989d277e140d448baa35ca4
[ "Apache-2.0" ]
null
null
null
import logging from django.core.management.base import BaseCommand try: from django_tenants.utils import get_tenant_model except: get_tenant_model = None from django.db import connection from papermerge.core.models import ( BaseTreeNode, Access ) from papermerge.core.auth import ( create_access_p...
24.645833
73
0.554522
bdbde2d938f424e96e16facd89ad398cdbed2930
46,214
py
Python
pysnmp-with-texts/CISCO-LISP-EXT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CISCO-LISP-EXT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CISCO-LISP-EXT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-LISP-EXT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-LISP-EXT-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:04:38 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, ...
175.05303
5,644
0.825378
bdbe3e3e964d3de239112acfd757c2553c93386b
678
py
Python
11.dumbo-octopus/py/part1.py
rolandbernard/adventofcode-2021
9249815af62d0fcf79b71357330a1456ea3be1ed
[ "BSD-2-Clause" ]
null
null
null
11.dumbo-octopus/py/part1.py
rolandbernard/adventofcode-2021
9249815af62d0fcf79b71357330a1456ea3be1ed
[ "BSD-2-Clause" ]
null
null
null
11.dumbo-octopus/py/part1.py
rolandbernard/adventofcode-2021
9249815af62d0fcf79b71357330a1456ea3be1ed
[ "BSD-2-Clause" ]
null
null
null
import sys import numpy as np raw = sys.stdin.read() map = np.array([[c for c in l] for l in raw.split('\n') if len(l) != 0], dtype=int) flashes = 0 for _ in range(100): for i in range(map.shape[0]): for j in range(map.shape[1]): energize(map, i, j) flashes += (map >= 10).sum() map[m...
26.076923
105
0.513274
bdbe6b219cb1418af34e685a56c258fed902050b
10,853
py
Python
rlb/utils.py
jaekyeom/drop-bottleneck
85b64ce72ac22af56e167da2817c295b79a03eb7
[ "Apache-2.0", "MIT" ]
8
2021-03-16T05:37:41.000Z
2021-06-18T05:15:15.000Z
rlb/utils.py
jaekyeom/drop-bottleneck
85b64ce72ac22af56e167da2817c295b79a03eb7
[ "Apache-2.0", "MIT" ]
null
null
null
rlb/utils.py
jaekyeom/drop-bottleneck
85b64ce72ac22af56e167da2817c295b79a03eb7
[ "Apache-2.0", "MIT" ]
2
2021-06-23T08:15:16.000Z
2021-08-30T14:13:58.000Z
from __future__ import print_function from collections import OrderedDict, defaultdict import numpy as np import random import copy #from mpi_util import mpi_moments #def fc(x, scope, nh, *, init_scale=1.0, init_bias=0.0): # with tf.variable_scope(scope): # nin = x.get_shape()[1].value # w = tf.get_...
36.789831
155
0.609417
bdbebeb76abb18683215eb78cded4e0d06667190
191
py
Python
adapters/lumi/WXCJKG13LM.py
russdan/domoticz-zigbee2mqtt-plugin
d47895eab44bc87fc19ce151698d2afe9554fadc
[ "MIT" ]
146
2018-09-19T11:38:48.000Z
2022-03-21T11:54:12.000Z
adapters/lumi/WXCJKG13LM.py
russdan/domoticz-zigbee2mqtt-plugin
d47895eab44bc87fc19ce151698d2afe9554fadc
[ "MIT" ]
783
2018-09-28T17:07:14.000Z
2022-03-31T10:18:27.000Z
adapters/lumi/WXCJKG13LM.py
russdan/domoticz-zigbee2mqtt-plugin
d47895eab44bc87fc19ce151698d2afe9554fadc
[ "MIT" ]
147
2018-09-25T18:39:51.000Z
2022-03-01T19:31:27.000Z
from adapters.lumi.aqara_opple_switch import AqaraOppleSwitch
21.222222
61
0.743455
bdc046b158b884fea2bcbaf2bb1204d34d3b4b00
4,565
py
Python
pydtnsim/routing/cgr_utils.py
ducktec/pydtnsim
916b0ebfa2b65b7a80af293dd4c39f862eadeae3
[ "MIT" ]
8
2018-12-11T17:39:44.000Z
2021-05-07T10:24:03.000Z
pydtnsim/routing/cgr_utils.py
Elianelin/pydtnsim
916b0ebfa2b65b7a80af293dd4c39f862eadeae3
[ "MIT" ]
13
2019-01-14T14:08:15.000Z
2021-06-12T17:03:43.000Z
pydtnsim/routing/cgr_utils.py
Elianelin/pydtnsim
916b0ebfa2b65b7a80af293dd4c39f862eadeae3
[ "MIT" ]
4
2019-03-20T15:12:40.000Z
2022-02-22T06:16:24.000Z
"""Module of commonly shared functions of various flavours of CGR.""" import math def cgr_neighbor_function(contact_graph, node, destination, current_distance, set_visited, suppressed_contacts, lookahead_time): """Neighbor function of CGR used by the Dijkstra algorithm. Used to det...
42.268519
79
0.660241
bdc04f43fced1ed2108de24776b9c054870c3a6d
785
py
Python
rxbp/multicast/multicastobservers/mapmulticastobserver.py
MichaelSchneeberger/rx_backpressure
16173827498bf1bbee3344933cb9efbfd19699f5
[ "Apache-2.0" ]
24
2018-11-22T21:04:49.000Z
2021-11-08T11:18:09.000Z
rxbp/multicast/multicastobservers/mapmulticastobserver.py
MichaelSchneeberger/rx_backpressure
16173827498bf1bbee3344933cb9efbfd19699f5
[ "Apache-2.0" ]
1
2019-02-06T15:58:46.000Z
2019-02-12T20:31:50.000Z
rxbp/multicast/multicastobservers/mapmulticastobserver.py
MichaelSchneeberger/rx_backpressure
16173827498bf1bbee3344933cb9efbfd19699f5
[ "Apache-2.0" ]
1
2021-01-26T12:41:37.000Z
2021-01-26T12:41:37.000Z
from dataclasses import dataclass from typing import Callable from rxbp.multicast.multicastobserver import MultiCastObserver from rxbp.multicast.typing import MultiCastItem
27.068966
62
0.650955
bdc1c2924b490c44031d1301da774e5f85923904
112
py
Python
Unit 5/5.2/5.2.8 Average Test Score.py
shashwat73/cse
60e49307e57105cf9916c7329f53f891c5e81fdb
[ "MIT" ]
1
2021-04-08T14:02:49.000Z
2021-04-08T14:02:49.000Z
Unit 5/5.2/5.2.8 Average Test Score.py
shashwat73/cse
60e49307e57105cf9916c7329f53f891c5e81fdb
[ "MIT" ]
null
null
null
Unit 5/5.2/5.2.8 Average Test Score.py
shashwat73/cse
60e49307e57105cf9916c7329f53f891c5e81fdb
[ "MIT" ]
null
null
null
Score = 0 for For3Scores in range(1,4): Average = int(input()) Score += Average print((Score/3))
12.444444
30
0.589286
bdc3d024640dd15b38deac97c8ed950cc5cf3909
415
py
Python
main/rsa_encryption/settings.py
Risoko/RSA-Encryption
1bea1ef3a7609541578d784b7315c73e1e6a481b
[ "MIT" ]
null
null
null
main/rsa_encryption/settings.py
Risoko/RSA-Encryption
1bea1ef3a7609541578d784b7315c73e1e6a481b
[ "MIT" ]
null
null
null
main/rsa_encryption/settings.py
Risoko/RSA-Encryption
1bea1ef3a7609541578d784b7315c73e1e6a481b
[ "MIT" ]
null
null
null
from decouple import config RANGE_OF_PRIME_NUMBERS = { "min": 10, "max": 190 } DATABASE = { 'type': config("TYPE"), 'user': config("USER"), 'password': config("PASSWORD"), 'localhost': config("LOCALHOST"), 'database_name': config("DATABASE_NAME") } PATH_FOR_PUBLIC_KEY = "/home/...
18.863636
54
0.6
bdc402ae42475915911f7485b03af5085a350424
2,413
py
Python
clean-up-pdf.py
spider-walker/reading-pdf-files-mongo
3a7b5346bd8e5bedfba388ea9a0053cd8330d332
[ "Apache-2.0" ]
null
null
null
clean-up-pdf.py
spider-walker/reading-pdf-files-mongo
3a7b5346bd8e5bedfba388ea9a0053cd8330d332
[ "Apache-2.0" ]
null
null
null
clean-up-pdf.py
spider-walker/reading-pdf-files-mongo
3a7b5346bd8e5bedfba388ea9a0053cd8330d332
[ "Apache-2.0" ]
null
null
null
with open('./data/data2017.txt') as f: lines = f.readlines() for ln in lines: ln = ln.replace(',', '').replace(':', '').replace('int64', '') \ .replace('Name', '').replace('dtype', '').replace('/', ' ') \ .replace('object', '').replace('float64', ' ') \ .replace('NaN'...
30.544304
98
0.426855
bdc63bfed4044eff802e2301570d6c7de4fbc7e5
1,423
py
Python
cv_workshops/7-day/9-clazz.py
afterloe/opencv-practice
83d76132d004ebbc96d99d34a0fd3fc37a044f9f
[ "MIT" ]
5
2020-03-13T07:34:30.000Z
2021-10-01T03:03:05.000Z
cv_workshops/7-day/9-clazz.py
afterloe/Opencv-practice
83d76132d004ebbc96d99d34a0fd3fc37a044f9f
[ "MIT" ]
null
null
null
cv_workshops/7-day/9-clazz.py
afterloe/Opencv-practice
83d76132d004ebbc96d99d34a0fd3fc37a044f9f
[ "MIT" ]
1
2020-03-01T12:35:02.000Z
2020-03-01T12:35:02.000Z
#!/usr/bin/env python3 # -*- coding=utf-8 -*- import cv2 as cv """ - OCRthreshold : 1 2 3 4 """ if "__main__" == __name__: main()
31.622222
121
0.598032
bdc6adac6ca6afd61c4934fbf7cff6d47b19bb9a
1,118
py
Python
vaccibot/__main__.py
fsoubelet/vaccibot
f0956ddbf9f0ac712d3e6e10d9fb5f3edb3dda11
[ "MIT" ]
null
null
null
vaccibot/__main__.py
fsoubelet/vaccibot
f0956ddbf9f0ac712d3e6e10d9fb5f3edb3dda11
[ "MIT" ]
null
null
null
vaccibot/__main__.py
fsoubelet/vaccibot
f0956ddbf9f0ac712d3e6e10d9fb5f3edb3dda11
[ "MIT" ]
null
null
null
import sys from loguru import logger from rich.console import Console, RenderGroup from rich.panel import Panel from vaccibot.constants import LOGURU_FORMAT from vaccibot.parsing import ARGS from vaccibot.process import retrieve_all_suitable_appointments from vaccibot.render import make_department_table logger.remov...
30.216216
93
0.674419
bdc6c6cba8f42afd0b986c47d1d40853cdff8c8c
4,618
py
Python
buuctf/107-hitcon_ctf_2019_one_punch/exp.py
RoderickChan/ctf_tasks
a021c6d86cade26448d099933f3caa856ed28360
[ "MIT" ]
null
null
null
buuctf/107-hitcon_ctf_2019_one_punch/exp.py
RoderickChan/ctf_tasks
a021c6d86cade26448d099933f3caa856ed28360
[ "MIT" ]
null
null
null
buuctf/107-hitcon_ctf_2019_one_punch/exp.py
RoderickChan/ctf_tasks
a021c6d86cade26448d099933f3caa856ed28360
[ "MIT" ]
null
null
null
from pwncli import * cli_script() p:tube = gift['io'] elf:ELF = gift['elf'] libc: ELF = gift['libc'] pop_rdi_ret = 0x26542 pop_rsi_ret = 0x26f9e pop_rdx_ret = 0x12bda6 pop_rax_ret = 0x47cf8 syscall_ret = 0xcf6c5 # use tcachebin stach unlink, while has 5, to malloc at any address # use tcachebin stach u...
22.637255
83
0.586618
bdc856fc9ff913efd9003763250b43ae605b0ec6
1,277
py
Python
pi4home/components/text_sensor/custom.py
khzd/pi4home
937bcdcf77bab111cca10af1fe45c63a55c29aae
[ "MIT" ]
1
2019-05-16T02:52:12.000Z
2019-05-16T02:52:12.000Z
pi4home/components/text_sensor/custom.py
khzd/pi4home
937bcdcf77bab111cca10af1fe45c63a55c29aae
[ "MIT" ]
null
null
null
pi4home/components/text_sensor/custom.py
khzd/pi4home
937bcdcf77bab111cca10af1fe45c63a55c29aae
[ "MIT" ]
null
null
null
import voluptuous as vol from pi4home.components import text_sensor import pi4home.config_validation as cv from pi4home.const import CONF_ID, CONF_LAMBDA, CONF_NAME, CONF_TEXT_SENSORS from pi4home.cpp_generator import add, process_lambda, variable from pi4home.cpp_types import std_vector CustomTextSensorConstructor =...
36.485714
96
0.750196
bdc8d13384d848da3326a2122e88d0a41453ccdd
4,589
py
Python
rolling_measures/rolling_measures/__init__.py
marketler/GFW_vessel_scoring
16a141e78258dcc9bab458d5ebd8fad6d2721816
[ "Apache-2.0" ]
null
null
null
rolling_measures/rolling_measures/__init__.py
marketler/GFW_vessel_scoring
16a141e78258dcc9bab458d5ebd8fad6d2721816
[ "Apache-2.0" ]
null
null
null
rolling_measures/rolling_measures/__init__.py
marketler/GFW_vessel_scoring
16a141e78258dcc9bab458d5ebd8fad6d2721816
[ "Apache-2.0" ]
null
null
null
import math import operator import six
28.503106
102
0.568098
bdcbad672362d3c6fe25962d2ca5b1424db44011
1,186
py
Python
lib/python2.7/site-packages/braintree/transparent_redirect.py
ervinpepic/E-commerce
2c15255d1730728cf35c166b9f88cffcb99f5323
[ "MIT" ]
3
2015-11-05T08:57:12.000Z
2016-07-17T18:10:55.000Z
lib/python2.7/site-packages/braintree/transparent_redirect.py
ervinpepic/E-commerce
2c15255d1730728cf35c166b9f88cffcb99f5323
[ "MIT" ]
13
2020-03-24T17:53:51.000Z
2022-02-10T20:01:14.000Z
lib/python2.7/site-packages/braintree/transparent_redirect.py
ervinpepic/E-commerce
2c15255d1730728cf35c166b9f88cffcb99f5323
[ "MIT" ]
2
2019-04-29T14:16:10.000Z
2020-07-23T12:04:17.000Z
import braintree from braintree.configuration import Configuration
31.210526
93
0.693929
bdcc6ad7468791c7a47fc038f3016e03c535f1fc
197
py
Python
fluentogram/src/abc/__init__.py
Arustinal/fluentogram
c3d7b307b40d520ef1db5e2a0945f3d7fe269b78
[ "MIT" ]
null
null
null
fluentogram/src/abc/__init__.py
Arustinal/fluentogram
c3d7b307b40d520ef1db5e2a0945f3d7fe269b78
[ "MIT" ]
null
null
null
fluentogram/src/abc/__init__.py
Arustinal/fluentogram
c3d7b307b40d520ef1db5e2a0945f3d7fe269b78
[ "MIT" ]
null
null
null
# coding=utf-8 from .misc import AbstractAttribTracer from .transformer import AbstractDataTransformer from .translator import AbstractTranslator from .translator_hub import AbstractTranslatorsHub
32.833333
50
0.873096
bdcc6e536cb58033fe61c7df47d8e2e7c55ae4c2
1,902
py
Python
awsume/autoawsume/process.py
ignatenkobrain/awsume
8191c35e8d60495e608c77801698c0a1a332d76f
[ "MIT" ]
654
2016-04-05T16:51:22.000Z
2022-03-28T21:07:30.000Z
awsume/autoawsume/process.py
ignatenkobrain/awsume
8191c35e8d60495e608c77801698c0a1a332d76f
[ "MIT" ]
149
2016-12-01T17:30:58.000Z
2022-03-29T23:49:50.000Z
awsume/autoawsume/process.py
ignatenkobrain/awsume
8191c35e8d60495e608c77801698c0a1a332d76f
[ "MIT" ]
90
2016-04-12T00:50:04.000Z
2022-03-30T20:44:45.000Z
import argparse import psutil from ..awsumepy.lib.aws_files import delete_section, get_aws_files, read_aws_file from ..awsumepy.lib.logger import logger
41.347826
101
0.664038
bdcd63c3f87c9cdba74f8e75512a7d40eef94fd9
8,787
py
Python
engine/sprite.py
amirgeva/retroupy
1ee19b36a72c5f592cce150d1d0382a00ccdc4a0
[ "BSD-3-Clause" ]
null
null
null
engine/sprite.py
amirgeva/retroupy
1ee19b36a72c5f592cce150d1d0382a00ccdc4a0
[ "BSD-3-Clause" ]
null
null
null
engine/sprite.py
amirgeva/retroupy
1ee19b36a72c5f592cce150d1d0382a00ccdc4a0
[ "BSD-3-Clause" ]
null
null
null
import json import os import gc from .app import get_screen from .utils import Rect from .bitmatrix import BitMatrix sprites_manager = SpritesManager() sprite_sheets = {} # EXPORT # EXPORT # EXPORT # EXPORT # EXPORT def load_json_file(filename): obj = json.load(open(filename, "r")) a = Animate...
27.719243
100
0.561739
bdcdd065ac669fb99de9c3ef2f470429acaafd67
1,562
py
Python
models/room.py
kwahalf/data-structures
19ebcbee6108e9b843bace4e7264e5e9e5c5c6fd
[ "MIT" ]
1
2018-12-28T23:56:08.000Z
2018-12-28T23:56:08.000Z
models/room.py
kwahalf/data-structures
19ebcbee6108e9b843bace4e7264e5e9e5c5c6fd
[ "MIT" ]
null
null
null
models/room.py
kwahalf/data-structures
19ebcbee6108e9b843bace4e7264e5e9e5c5c6fd
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod
27.892857
65
0.599232
bdcde9db518399671885520f0ddbde248285fab9
3,972
py
Python
tools/checker/file_format/c1visualizer/parser.py
lifansama/xposed_art_n
ec3fbe417d74d4664cec053d91dd4e3881176374
[ "MIT" ]
234
2017-07-18T05:30:27.000Z
2022-01-07T02:21:31.000Z
tools/checker/file_format/c1visualizer/parser.py
lifansama/xposed_art_n
ec3fbe417d74d4664cec053d91dd4e3881176374
[ "MIT" ]
21
2017-07-18T04:56:09.000Z
2018-08-10T17:32:16.000Z
tools/checker/file_format/c1visualizer/parser.py
lifansama/xposed_art_n
ec3fbe417d74d4664cec053d91dd4e3881176374
[ "MIT" ]
56
2017-07-18T10:37:10.000Z
2022-01-07T02:19:22.000Z
# Copyright (C) 2014 The Android Open Source Project # # 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 ...
43.648352
83
0.716012
bdcfa69692cd0e84e62228bc835f2c497955444e
10,882
py
Python
natcap/versioner/versioning.py
natcap/versioner
65e4c1cf38115dcfec260f0d186cedca192b0b2e
[ "BSD-3-Clause" ]
null
null
null
natcap/versioner/versioning.py
natcap/versioner
65e4c1cf38115dcfec260f0d186cedca192b0b2e
[ "BSD-3-Clause" ]
null
null
null
natcap/versioner/versioning.py
natcap/versioner
65e4c1cf38115dcfec260f0d186cedca192b0b2e
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import logging import os import re import subprocess import six LOGGER = logging.getLogger('natcap.versioner.versioning') LOGGER.setLevel(logging.ERROR) class HgArchive(VCSQuerier): name = 'Mercurial Archive' shortnode_len = 12 is_archive = True repo_data_locat...
32.195266
86
0.609355
bdd0adc5de287fb179800281e8709f5913da7913
878
py
Python
tests/utils/init_test.py
swinton/mopidy
c32c73f5112c29ef7ccccf36a508c571adb39759
[ "Apache-2.0" ]
null
null
null
tests/utils/init_test.py
swinton/mopidy
c32c73f5112c29ef7ccccf36a508c571adb39759
[ "Apache-2.0" ]
null
null
null
tests/utils/init_test.py
swinton/mopidy
c32c73f5112c29ef7ccccf36a508c571adb39759
[ "Apache-2.0" ]
null
null
null
from mopidy import utils from tests import unittest
31.357143
69
0.6959
bdd18a04d17e95c0953ca2e0c3d8db5c195b7e67
1,054
py
Python
src/two_level_aspect_entity_embedding_generation/clusterd_knowledge_graph_statistics.py
mainuliitkgp/AR-BERT
d6d5e8542a3a1c76edac49cec9e99ebda6395725
[ "MIT" ]
4
2022-03-06T17:41:57.000Z
2022-03-22T08:42:58.000Z
src/two_level_aspect_entity_embedding_generation/clusterd_knowledge_graph_statistics.py
mainuliitkgp/AR-BERT
d6d5e8542a3a1c76edac49cec9e99ebda6395725
[ "MIT" ]
null
null
null
src/two_level_aspect_entity_embedding_generation/clusterd_knowledge_graph_statistics.py
mainuliitkgp/AR-BERT
d6d5e8542a3a1c76edac49cec9e99ebda6395725
[ "MIT" ]
1
2022-03-19T14:04:42.000Z
2022-03-19T14:04:42.000Z
from __future__ import print_function import numpy as np import random import json import sys import os import networkx as nx from networkx.readwrite import json_graph version_info = list(map(int, nx.__version__.split('.'))) major = version_info[0] minor = version_info[1] assert (major <= 1) and (minor <= 11), "netwo...
28.486486
84
0.651803
bdd1f5712640c660f6739b854770d7e695f1c4d4
8,167
py
Python
src/aioros/tcpros/topic.py
mgrrx/aioros
9bd750020d0d5fb466891346f61b6f083cbb8f05
[ "Apache-2.0" ]
8
2020-08-27T17:16:59.000Z
2022-02-02T13:39:41.000Z
src/aioros/tcpros/topic.py
mgrrx/aioros
9bd750020d0d5fb466891346f61b6f083cbb8f05
[ "Apache-2.0" ]
3
2022-02-09T19:18:12.000Z
2022-03-08T21:12:00.000Z
src/aioros/tcpros/topic.py
mgrrx/aioros
9bd750020d0d5fb466891346f61b6f083cbb8f05
[ "Apache-2.0" ]
null
null
null
from asyncio import AbstractEventLoop from asyncio import iscoroutinefunction from asyncio import Event from asyncio import IncompleteReadError from asyncio import Queue from asyncio import open_connection from asyncio import open_unix_connection from typing import Dict from typing import List from typing import Set fr...
32.40873
75
0.628872
bdd325e14189de11da8187eeb203eba8b96feec5
1,911
py
Python
tests/core/test_local.py
riddopic/opta
25fa6435fdc7e2ea9c7963ed74100fffb0743063
[ "Apache-2.0" ]
595
2021-05-21T22:30:48.000Z
2022-03-31T15:40:25.000Z
tests/core/test_local.py
riddopic/opta
25fa6435fdc7e2ea9c7963ed74100fffb0743063
[ "Apache-2.0" ]
463
2021-05-24T21:32:59.000Z
2022-03-31T17:12:33.000Z
tests/core/test_local.py
riddopic/opta
25fa6435fdc7e2ea9c7963ed74100fffb0743063
[ "Apache-2.0" ]
29
2021-05-21T22:27:52.000Z
2022-03-28T16:43:45.000Z
import json import os import unittest from opta.core.local import Local from opta.layer import Layer
30.333333
65
0.529042
bdd3722beee7f3a9735cf08fa0cf57f708146d63
132
py
Python
train/antpush/environments/ant_maze_env.py
MIMUW-RL/spp-rl
86b96cdd220cc4eae86f7cfd26924c69b498dcc6
[ "MIT" ]
7
2020-06-15T12:25:53.000Z
2021-11-03T01:08:47.000Z
train/antpush/environments/ant_maze_env.py
MIMUW-RL/spp-rl
86b96cdd220cc4eae86f7cfd26924c69b498dcc6
[ "MIT" ]
null
null
null
train/antpush/environments/ant_maze_env.py
MIMUW-RL/spp-rl
86b96cdd220cc4eae86f7cfd26924c69b498dcc6
[ "MIT" ]
1
2020-12-21T11:21:22.000Z
2020-12-21T11:21:22.000Z
from environments.maze_env import MazeEnv from environments.ant import AntEnv
18.857143
41
0.810606
bdd3ab9d894a791877cd5b110bbcf4db48bff423
7,943
py
Python
test/test_state.py
bjornaa/ladim2
f6c1be9028ca54370ce33dde25b005d5b0bb4677
[ "MIT" ]
null
null
null
test/test_state.py
bjornaa/ladim2
f6c1be9028ca54370ce33dde25b005d5b0bb4677
[ "MIT" ]
null
null
null
test/test_state.py
bjornaa/ladim2
f6c1be9028ca54370ce33dde25b005d5b0bb4677
[ "MIT" ]
null
null
null
import numpy as np # type: ignore import pytest from ladim2.state import State # ------------ # __init__ # ------------ def test_init_minimal(): """Init State with no arguments""" S = State() assert len(S) == 0 assert S.npid == 0 assert set(S.variables) == {"pid", "X", "Y", "Z", "active", "aliv...
27.675958
85
0.590583
bdd4db2e43df9f7b67e7a41de13b7d8d81ab3b7c
220
py
Python
mysite/myinviteapi/models.py
datha88/rest-api-sample-friend-invite
1880837f4831c2d867a5a4ac1a176953838fab0d
[ "MIT" ]
null
null
null
mysite/myinviteapi/models.py
datha88/rest-api-sample-friend-invite
1880837f4831c2d867a5a4ac1a176953838fab0d
[ "MIT" ]
null
null
null
mysite/myinviteapi/models.py
datha88/rest-api-sample-friend-invite
1880837f4831c2d867a5a4ac1a176953838fab0d
[ "MIT" ]
null
null
null
from django.db import models # Create your models here.
24.444444
43
0.713636
bdd62727280cef056fc775786f12ebffe8812748
28,253
py
Python
tiknib/feature/asm_const.py
SoftSec-KAIST/tiknib
5f1e25df0ff652cf35574dae3e6a3cfb3b163e63
[ "MIT" ]
null
null
null
tiknib/feature/asm_const.py
SoftSec-KAIST/tiknib
5f1e25df0ff652cf35574dae3e6a3cfb3b163e63
[ "MIT" ]
null
null
null
tiknib/feature/asm_const.py
SoftSec-KAIST/tiknib
5f1e25df0ff652cf35574dae3e6a3cfb3b163e63
[ "MIT" ]
null
null
null
from tiknib.feature.asm_ppc import PPC_GRP_MAP # ==================== x86 32 ============================================= # data transfer X86_GRP_DTRANSFER = [ # general purpose instructions "CMOV", "CMOVA", "CMOVAE", "CMOVB", "CMOVBE", "CMOVC", "CMOVE", "CMOVG", "CMOVGE", "...
14.753525
88
0.455952
bdd65fd304b42fd5e57669cf829df3d843fd24ed
814
py
Python
dwi/patient.py
jupito/dwilib
6655eea21037977ed528b992b3a8471393127b77
[ "MIT" ]
9
2018-02-02T07:26:06.000Z
2021-07-28T11:27:38.000Z
dwi/patient.py
jupito/dwilib
6655eea21037977ed528b992b3a8471393127b77
[ "MIT" ]
null
null
null
dwi/patient.py
jupito/dwilib
6655eea21037977ed528b992b3a8471393127b77
[ "MIT" ]
4
2017-02-22T03:23:44.000Z
2021-12-10T10:32:08.000Z
"""Routines for handling patient lists.""" # TODO: Some functions from dwi.compat should be replaced with something better # here, they're still used by tools/{roc_auc,correlation}.py. from .types import GleasonScore def label_lesions(patients, thresholds=None): """Label lesions according to score groups.""" ...
33.916667
79
0.697789
bdd8443fccc1ae0affec98253387eaf4b0c3a80b
5,039
py
Python
runNum.py
NuPatchara/gitCV
68d1ecf3150cc819051a3bb718fae160da0ddcf9
[ "Apache-2.0" ]
null
null
null
runNum.py
NuPatchara/gitCV
68d1ecf3150cc819051a3bb718fae160da0ddcf9
[ "Apache-2.0" ]
null
null
null
runNum.py
NuPatchara/gitCV
68d1ecf3150cc819051a3bb718fae160da0ddcf9
[ "Apache-2.0" ]
null
null
null
import sys import cv2 import os, os.path import ColorClustering import numpy as np from PIL import Image from pytesser import * from sklearn.cluster import KMeans from sklearn.externals import joblib for root, _, files in os.walk('image/'): for f in files: imagePath = os.path.join(root, f) if 'tmp' in im...
41.991667
118
0.519944
bdd85f75dbf5d4102a25ebc2445a8a860dd88729
4,920
py
Python
networkunit/scores/score_kl_divergence.py
morales-gregorio/NetworkUnit
b858c3b2698fe3c0a7324ae8b8b388b74fd13c4d
[ "BSD-3-Clause" ]
8
2017-11-16T08:45:48.000Z
2021-11-29T16:51:45.000Z
networkunit/scores/score_kl_divergence.py
morales-gregorio/NetworkUnit
b858c3b2698fe3c0a7324ae8b8b388b74fd13c4d
[ "BSD-3-Clause" ]
17
2017-11-16T07:53:26.000Z
2021-05-07T10:27:34.000Z
networkunit/scores/score_kl_divergence.py
russelljjarvis/NetworkUnit
32179371d3a0ba354e6637cf4f97ba70522d4054
[ "BSD-3-Clause" ]
5
2019-03-23T00:55:33.000Z
2020-01-24T10:12:11.000Z
import numpy as np from scipy.stats import entropy import matplotlib.pyplot as plt import matplotlib.colors as colors import seaborn as sns import sciunit
35.912409
80
0.570732
bdd862ba88395be8cb418cfab8ce408473323919
635
py
Python
kikyo/config.py
jadbin/kikyo
98d875e85a28b4141cbd6616bba3d397a4219dc9
[ "MIT" ]
null
null
null
kikyo/config.py
jadbin/kikyo
98d875e85a28b4141cbd6616bba3d397a4219dc9
[ "MIT" ]
null
null
null
kikyo/config.py
jadbin/kikyo
98d875e85a28b4141cbd6616bba3d397a4219dc9
[ "MIT" ]
null
null
null
import base64 import io import requests import yaml from kikyo import Kikyo, Settings def configure_by_consul(config_url: str, **kwargs) -> Kikyo: """ConsulYAML :param config_url: URL """ resp = requests.get(config_url) resp.raise_for_status() settings = Settings() for data in resp.js...
19.84375
60
0.617323
bdd932ec045f92a204fc0462b20bc5fe9de822e1
5,077
py
Python
tests/ep_canvas_test.py
PytLab/catplot
63ad46218b17d5cdffdd026dad7d775cf4caa50b
[ "MIT" ]
35
2015-12-23T08:01:15.000Z
2021-11-03T01:34:20.000Z
tests/ep_canvas_test.py
PytLab/catplot
63ad46218b17d5cdffdd026dad7d775cf4caa50b
[ "MIT" ]
1
2015-11-25T05:52:43.000Z
2017-04-11T14:06:00.000Z
tests/ep_canvas_test.py
PytLab/catplot
63ad46218b17d5cdffdd026dad7d775cf4caa50b
[ "MIT" ]
10
2015-11-06T20:23:32.000Z
2020-05-16T19:18:38.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Test case for Energy Profle Canvas. """ import unittest import matplotlib.pyplot as plt from catplot.ep_components.ep_canvas import EPCanvas from catplot.ep_components.ep_lines import ElementaryLine from catplot.ep_components.ep_chain import EPChain if "__main__" ...
30.769697
84
0.623203
bdd9723808bf563a488aa0b07c42aceeac435545
458
py
Python
Leetcode/medium/bitwise-and-of-numbers-range.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
6
2021-07-29T03:26:20.000Z
2022-01-28T15:11:45.000Z
Leetcode/medium/bitwise-and-of-numbers-range.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
2
2021-09-30T09:47:23.000Z
2022-01-31T03:08:24.000Z
Leetcode/medium/bitwise-and-of-numbers-range.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
5
2021-08-10T06:41:11.000Z
2022-01-29T17:50:20.000Z
""" # BITWISE AND OF NUMBERS RANGE Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in this range, inclusive. Example 1: Input: [5,7] Output: 4 Example 2: Input: [0,1] Output: 0 """
17.615385
117
0.508734
bddccaa847cf3d70df32c8b547be9368dbd1d908
20
py
Python
api/views/consts.py
tarikyayla/reddit_dashboard
e5ecf3349a5c9333793c3ae5375bc4a0e501a16c
[ "MIT" ]
null
null
null
api/views/consts.py
tarikyayla/reddit_dashboard
e5ecf3349a5c9333793c3ae5375bc4a0e501a16c
[ "MIT" ]
null
null
null
api/views/consts.py
tarikyayla/reddit_dashboard
e5ecf3349a5c9333793c3ae5375bc4a0e501a16c
[ "MIT" ]
1
2020-11-27T23:24:09.000Z
2020-11-27T23:24:09.000Z
GET_FROM_REDDIT = 1
10
19
0.8
bddd1a20f636344c19e0119a658dd15a4909a0a2
2,955
py
Python
match_rcnn/mmdetection/mmdet/pretrained_models/cocopth.py
201419/taobao-live-product-recognition
1f5de5917b43b2b58f4387a77272fc7c587a1051
[ "Apache-2.0" ]
null
null
null
match_rcnn/mmdetection/mmdet/pretrained_models/cocopth.py
201419/taobao-live-product-recognition
1f5de5917b43b2b58f4387a77272fc7c587a1051
[ "Apache-2.0" ]
null
null
null
match_rcnn/mmdetection/mmdet/pretrained_models/cocopth.py
201419/taobao-live-product-recognition
1f5de5917b43b2b58f4387a77272fc7c587a1051
[ "Apache-2.0" ]
1
2021-05-14T03:30:29.000Z
2021-05-14T03:30:29.000Z
import torch import numpy as np num_classes = 25 model_coco = torch.load(r"/media/alvinai/Documents/model/faster_rcnn_r50_fpn_1x_20190610-bf0ea559.pth") # print(model_coco) # print(model_coco["state_dict"]["rpn_head.rpn_cls.weight"].shape) # a = model_coco["state_dict"]["rpn_head.rpn_cls.weight"][0] # model_co...
75.769231
140
0.706937
bdde05efcf874ead71f10d44b9b94987c03fce5e
995
py
Python
tests/test_git.py
graycarl/hbk
d4c90807b2558a2b61fb1253d9804fbaf373443f
[ "MIT" ]
1
2021-07-22T05:25:35.000Z
2021-07-22T05:25:35.000Z
tests/test_git.py
graycarl/hbk
d4c90807b2558a2b61fb1253d9804fbaf373443f
[ "MIT" ]
37
2017-07-27T06:07:25.000Z
2020-12-11T12:57:31.000Z
tests/test_git.py
graycarl/hbk
d4c90807b2558a2b61fb1253d9804fbaf373443f
[ "MIT" ]
1
2019-04-02T08:36:32.000Z
2019-04-02T08:36:32.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from builtins import * # noqa import pytest from hbkit import libs
23.690476
69
0.706533
bddf37e95b95085df635e34da4f5fe3ecddbccb0
1,751
py
Python
src/richie/apps/courses/migrations/0013_migrate_data_translated_licence_fields.py
leduong/richie
bf7ed379b7e2528cd790dadcec10ac2656efd189
[ "MIT" ]
174
2018-04-14T23:36:01.000Z
2022-03-10T09:27:01.000Z
src/richie/apps/courses/migrations/0013_migrate_data_translated_licence_fields.py
leduong/richie
bf7ed379b7e2528cd790dadcec10ac2656efd189
[ "MIT" ]
631
2018-04-04T11:28:53.000Z
2022-03-31T11:18:31.000Z
src/richie/apps/courses/migrations/0013_migrate_data_translated_licence_fields.py
leduong/richie
bf7ed379b7e2528cd790dadcec10ac2656efd189
[ "MIT" ]
64
2018-06-27T08:35:01.000Z
2022-03-10T09:27:43.000Z
# Generated by Django 2.2.8 on 2020-01-02 13:56 from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from django.db import migrations
35.02
88
0.718447
bddf54c37693012c2ebee8e890c2bc5f10dfd58d
5,510
py
Python
responsible_ai/gan_data_debiased/main.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
null
null
null
responsible_ai/gan_data_debiased/main.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
null
null
null
responsible_ai/gan_data_debiased/main.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Sony Group Corporation. # # 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 ...
38.531469
91
0.580581
bde0ad9f17012d7ebc6ee66313fe41b54189ab35
5,109
py
Python
hstools/utilities.py
saisiddu/pub_bandaragoda_etal_ems
d06e23c7c5dfa772d5dfe55c33bcf7abbd5e2060
[ "MIT" ]
1
2019-09-24T15:22:05.000Z
2019-09-24T15:22:05.000Z
hstools/utilities.py
saisiddu/pub_bandaragoda_etal_ems
d06e23c7c5dfa772d5dfe55c33bcf7abbd5e2060
[ "MIT" ]
null
null
null
hstools/utilities.py
saisiddu/pub_bandaragoda_etal_ems
d06e23c7c5dfa772d5dfe55c33bcf7abbd5e2060
[ "MIT" ]
null
null
null
from __future__ import print_function import os from IPython.core.display import display, HTML import glob from .compat import * def get_server_url_for_path(p): """ gets the url corresponding to a given file or directory path p : path to convert into a url returns the url path for the filepa...
30.963636
247
0.607164
bde1d05ede2b3e57e640969726cd7f09fb8e5559
155
py
Python
assignment2/earth_electrons.py
guozhonghao1994/ec602
e8f6b61e5cdad64e9fe943fc4f61d1fc9ad85f74
[ "Unlicense" ]
3
2018-11-14T16:07:31.000Z
2018-11-15T16:44:51.000Z
assignment2/earth_electrons.py
guozhonghao1994/ec602
e8f6b61e5cdad64e9fe943fc4f61d1fc9ad85f74
[ "Unlicense" ]
null
null
null
assignment2/earth_electrons.py
guozhonghao1994/ec602
e8f6b61e5cdad64e9fe943fc4f61d1fc9ad85f74
[ "Unlicense" ]
null
null
null
#Copyright 2017 Zhonghao Guo gzh1994@bu.edu import sys estimate=3.91*10**38 lower=3.72*10**38 upper=4.11*10**38 print(estimate) print(lower) print(upper)
17.222222
43
0.754839
bde5bd2cb3f7fdf8cc6f96a4c93e07d27f29156e
16,286
py
Python
activity/activity_IngestDigestToEndpoint.py
elifesciences/elife-bot
d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9
[ "MIT" ]
17
2015-02-10T07:10:29.000Z
2021-05-14T22:24:45.000Z
activity/activity_IngestDigestToEndpoint.py
elifesciences/elife-bot
d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9
[ "MIT" ]
459
2015-03-31T18:24:23.000Z
2022-03-30T19:44:40.000Z
activity/activity_IngestDigestToEndpoint.py
elifesciences/elife-bot
d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9
[ "MIT" ]
9
2015-04-18T16:57:31.000Z
2020-10-30T11:49:13.000Z
import os import time import json from collections import OrderedDict from digestparser import json_output from provider.execution_context import get_session from provider.article_processing import download_jats from provider import digest_provider, email_provider, lax_provider, utils from activity.objects import Activ...
36.191111
88
0.608805
bde6c2d4e221af5daf9ceb3a165e32e65089ccfe
249
py
Python
utils/forgiveness_of_the_offender.py
bbt-t/simple-bot_discord
46fa629e8278e8e453b3c272b2e838d0762aaaf8
[ "MIT" ]
null
null
null
utils/forgiveness_of_the_offender.py
bbt-t/simple-bot_discord
46fa629e8278e8e453b3c272b2e838d0762aaaf8
[ "MIT" ]
null
null
null
utils/forgiveness_of_the_offender.py
bbt-t/simple-bot_discord
46fa629e8278e8e453b3c272b2e838d0762aaaf8
[ "MIT" ]
null
null
null
from discord import Member, utils
19.153846
63
0.706827
bde798fb51621c003debde76678c82dcde2604d3
443
py
Python
mailing/urls.py
Aladom/django-mailing
aa18963b1902e4b7f066b0064a832e26e725f643
[ "MIT" ]
null
null
null
mailing/urls.py
Aladom/django-mailing
aa18963b1902e4b7f066b0064a832e26e725f643
[ "MIT" ]
13
2016-02-04T14:56:11.000Z
2021-06-10T20:39:51.000Z
mailing/urls.py
Aladom/django-mailing
aa18963b1902e4b7f066b0064a832e26e725f643
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf.urls import url from .views import MirrorView, SubscriptionsManagementView __all__ = [ 'app_name', 'urlpatterns', ] app_name = 'mailing' urlpatterns = [ url(r'^mirror/(?P<signed_pk>[0-9]+:[a-zA-Z0-9_-]+)/$', MirrorView.as_view(), name='mirror'), url(r'^sub...
26.058824
69
0.643341
bdea2dca87fdb221f4d7b5d7f20709164e7c3a60
1,029
py
Python
code2/day07/demo03.py
picktsh/python
0f758dcdf9eee3580d8f6e2241ef557b6320ef54
[ "MIT" ]
1
2019-12-31T16:44:06.000Z
2019-12-31T16:44:06.000Z
code2/day07/demo03.py
picktsh/python
0f758dcdf9eee3580d8f6e2241ef557b6320ef54
[ "MIT" ]
null
null
null
code2/day07/demo03.py
picktsh/python
0f758dcdf9eee3580d8f6e2241ef557b6320ef54
[ "MIT" ]
1
2022-01-13T10:32:22.000Z
2022-01-13T10:32:22.000Z
# requests import requests # headers headers = { 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36'} # url = 'https://www.zhihu.com/api/v4/members/zhang-jia-wei/articles?' # params = { 'include': 'data[*].comment_count,sugg...
32.15625
292
0.739553
bdeb63bd228672aa0d61f1e5f7d0335e8f073585
12,597
py
Python
pykit/codegen/llvm/llvm_codegen.py
ContinuumIO/pyk
1730d7b831e0cf12a641ac23b5cf03e17e0dc550
[ "BSD-3-Clause" ]
9
2015-06-23T00:13:49.000Z
2022-02-23T02:46:43.000Z
pykit/codegen/llvm/llvm_codegen.py
ContinuumIO/pyk
1730d7b831e0cf12a641ac23b5cf03e17e0dc550
[ "BSD-3-Clause" ]
1
2017-08-30T08:13:12.000Z
2017-08-31T06:36:32.000Z
pykit/codegen/llvm/llvm_codegen.py
ContinuumIO/pyk
1730d7b831e0cf12a641ac23b5cf03e17e0dc550
[ "BSD-3-Clause" ]
7
2015-05-08T10:17:47.000Z
2021-04-01T15:00:57.000Z
from functools import partial from pykit.ir import vvisit, ArgLoader, verify_lowlevel from pykit.ir import defs, opgrouper from pykit.types import Boolean, Integral, Real, Pointer, Function, Int64 from pykit.codegen.llvm.llvm_types import llvm_type import llvm.core as lc from llvm.core import Type, Constant #===----...
32.135204
82
0.618322
bdebe8ab095dd6dc14338c32ad38db4e4ac43ada
1,056
py
Python
ads_dashboard/ads/models.py
vintage/ads_dashboard
85a8540411a9af0a2e41dd3730b52e3c6b3805d4
[ "MIT" ]
null
null
null
ads_dashboard/ads/models.py
vintage/ads_dashboard
85a8540411a9af0a2e41dd3730b52e3c6b3805d4
[ "MIT" ]
5
2020-02-12T09:18:05.000Z
2021-09-22T18:05:21.000Z
ads_dashboard/ads/models.py
vintage/ads_dashboard
85a8540411a9af0a2e41dd3730b52e3c6b3805d4
[ "MIT" ]
null
null
null
from django.db import models
26.4
73
0.673295
bdeef5ecb135e522f7c40abc5e24bd958b8ff052
1,859
py
Python
DatabaseHandler/sqlite_operations.py
utkarsh7236/SCILLA
e11e4d753823ad522a1b3168283b6e6ffe3ea393
[ "Apache-2.0" ]
17
2019-12-09T19:09:07.000Z
2021-08-29T01:11:13.000Z
DatabaseHandler/sqlite_operations.py
utkarsh7236/SCILLA
e11e4d753823ad522a1b3168283b6e6ffe3ea393
[ "Apache-2.0" ]
1
2021-04-14T15:08:18.000Z
2021-04-14T15:08:18.000Z
DatabaseHandler/sqlite_operations.py
utkarsh7236/SCILLA
e11e4d753823ad522a1b3168283b6e6ffe3ea393
[ "Apache-2.0" ]
2
2020-06-05T03:01:06.000Z
2020-07-09T07:13:12.000Z
#!/usr/bin/env python __author__ = 'Florian Hase' #======================================================================== import time import sqlalchemy as sql #======================================================================== #======================================================================== #===...
23.833333
73
0.550834
bdf105752f21bbc068ce977d28dde3f6db125f50
8,818
py
Python
main.py
omegaBionic/pysparkPower
1354247e4ec085a65f288a1f31a05875f003da72
[ "Apache-2.0" ]
null
null
null
main.py
omegaBionic/pysparkPower
1354247e4ec085a65f288a1f31a05875f003da72
[ "Apache-2.0" ]
null
null
null
main.py
omegaBionic/pysparkPower
1354247e4ec085a65f288a1f31a05875f003da72
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import pylab as pl import pandas as pd from pyspark import SQLContext from pyspark.ml.clustering import KMeans from pyspark.ml.feature import VectorAssembler from pyspark.sql import SparkSession from pyspark.sql.types import StructType, StructField, IntegerType from d...
29.790541
109
0.713087
bdf19052bf08ce92ba043372f3b11061a349f71e
408
py
Python
app/pages/urls.py
julianpetrich/jpdotcom
ba9dac9c86f6d15374da9a37aac68963e56bcd93
[ "MIT" ]
null
null
null
app/pages/urls.py
julianpetrich/jpdotcom
ba9dac9c86f6d15374da9a37aac68963e56bcd93
[ "MIT" ]
null
null
null
app/pages/urls.py
julianpetrich/jpdotcom
ba9dac9c86f6d15374da9a37aac68963e56bcd93
[ "MIT" ]
null
null
null
from django.urls import path from .views import AboutView, ContactView, HomePageView, PrivacyView, TermsView urlpatterns = [ path("", HomePageView.as_view(), name="home"), path("about", AboutView.as_view(), name="about"), path("contact", ContactView.as_view(), name="contact"), path("terms", TermsView....
34
79
0.688725
bdf4b884e53e55033540d679eaf6e95f48c085d7
118
py
Python
tests/test_crawler.py
Yotamho/nba-analytics
13174040198d44aab035de58cf785bce6926958a
[ "MIT" ]
null
null
null
tests/test_crawler.py
Yotamho/nba-analytics
13174040198d44aab035de58cf785bce6926958a
[ "MIT" ]
null
null
null
tests/test_crawler.py
Yotamho/nba-analytics
13174040198d44aab035de58cf785bce6926958a
[ "MIT" ]
null
null
null
from nba_analytics.crawler import pbp_for_range
19.666667
47
0.762712
bdf5bfe6b045a2bc243a77cfba2030c81bcde42d
3,781
py
Python
src/open3DTool/visualizer.py
MobileRoboticsSkoltech/plane-segmentation-research
0627512c4cb53326de1aabf815e755d9e4484c9c
[ "Apache-2.0" ]
1
2021-10-15T08:18:55.000Z
2021-10-15T08:18:55.000Z
src/open3DTool/visualizer.py
MobileRoboticsSkoltech/plane-segmentation-research
0627512c4cb53326de1aabf815e755d9e4484c9c
[ "Apache-2.0" ]
1
2021-11-18T16:37:28.000Z
2021-11-18T16:37:28.000Z
src/open3DTool/visualizer.py
MobileRoboticsSkoltech/plane-segmentation-research
0627512c4cb53326de1aabf815e755d9e4484c9c
[ "Apache-2.0" ]
null
null
null
from src.open3DTool.planeUtils import ( segment_points_on_plane_by_picked_points, pick_points_utils, ) from src.algorithmsForPointCloud.fileUtils import ( get_point_cloud_from_bin_file, generate_labels_and_object_files, ) from src.open3DTool.fileUtils import update_label_files import numpy as np import ...
34.372727
87
0.691351
bdfa7f51aa6bca9797c581b745c48d3a51fc0b8d
8,868
py
Python
submission_utils.py
ameyagodbole/multihop_inference_explanation_regeneration
ab742433034b251a819b6eb898686530bd055cd0
[ "MIT" ]
7
2019-08-31T22:58:41.000Z
2021-02-06T17:41:38.000Z
submission_utils.py
ameyagodbole/multihop_inference_explanation_regeneration
ab742433034b251a819b6eb898686530bd055cd0
[ "MIT" ]
2
2020-02-19T13:32:03.000Z
2020-07-29T09:24:53.000Z
submission_utils.py
ameyagodbole/multihop_inference_explanation_regeneration
ab742433034b251a819b6eb898686530bd055cd0
[ "MIT" ]
1
2020-10-01T09:48:07.000Z
2020-10-01T09:48:07.000Z
import argparse import logging import numpy as np import pandas as pd from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.metrics.pairwise import cosine_distances import torch def create_predictions_file(questions_file, facts_file, examples_file, logits_file, pred_output_file, ...
45.948187
119
0.579725
bdfb7f7d975d38d147cc79c67eb8466db9daf8e8
1,884
py
Python
pysm/semantic_modeling/assembling/autolabel/auto_label.py
binh-vu/semantic-modeling
b387584502ba1daa6abd6b7573828416f6426b49
[ "MIT" ]
3
2019-10-31T15:26:20.000Z
2022-03-03T06:04:03.000Z
pysm/semantic_modeling/assembling/autolabel/auto_label.py
binh-vu/semantic-modeling
b387584502ba1daa6abd6b7573828416f6426b49
[ "MIT" ]
1
2021-10-05T14:57:29.000Z
2022-03-27T01:58:41.000Z
pysm/semantic_modeling/assembling/autolabel/auto_label.py
binh-vu/semantic-modeling
b387584502ba1daa6abd6b7573828416f6426b49
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from typing import Dict, Tuple, List, Set, Union, Optional from data_structure import Graph from semantic_modeling.assembling.autolabel.heuristic import preserved_structure_with_heuristic, get_gold_semantic_types from semantic_modeling.assembling.autolabel.maxf1 import get_go...
49.578947
120
0.728769
bdfb84bba555606efcd2d3ca97385378284beca7
8,203
py
Python
tests/test_levdistresult.py
ZenulAbidin/bip39validator
b78f2db6f46b56b408eef3a51e921e96247a9b46
[ "MIT" ]
3
2021-02-11T20:37:56.000Z
2021-06-11T03:29:15.000Z
tests/test_levdistresult.py
ZenulAbidin/bip39validator
b78f2db6f46b56b408eef3a51e921e96247a9b46
[ "MIT" ]
4
2020-10-04T23:11:08.000Z
2020-12-23T00:32:52.000Z
tests/test_levdistresult.py
ZenulAbidin/bip39validator
b78f2db6f46b56b408eef3a51e921e96247a9b46
[ "MIT" ]
null
null
null
from unittest import TestCase from bip39validator import ValidationFailed from bip39validator.BIP39WordList import BIP39WordList levdist_gt2 = """brown brpyt""" levdist_le2 = """brow brol""" # Expected results *must* be in word alphabetical order.
33.076613
73
0.536633
bdfb8afb236fa2a59d4614b476d34a5d38aae988
694
py
Python
landscapes/scripts/convert_fitness_to_s.py
Peyara/Evolution-Counterdiabatic-Driving
e695fad703b2d339bed0013e5b4254ba2365c105
[ "MIT" ]
3
2020-08-24T20:24:41.000Z
2020-08-26T02:16:16.000Z
landscapes/scripts/convert_fitness_to_s.py
hincz-lab/Evolution-Counterdiabatic-Driving
e695fad703b2d339bed0013e5b4254ba2365c105
[ "MIT" ]
null
null
null
landscapes/scripts/convert_fitness_to_s.py
hincz-lab/Evolution-Counterdiabatic-Driving
e695fad703b2d339bed0013e5b4254ba2365c105
[ "MIT" ]
null
null
null
import sys import numpy as np # This script takes in a file with fitness values separated by commas # and converts the values to be s values (relative fitness as used in # the model) instead. # WARNING: Overwrites given file! if len(sys.argv) < 2: print("Usage: python convert_fitness_to_s.py [name of file to co...
30.173913
95
0.695965
bdfc1be607446f5c58bd0a13c161e7d2e69d78e2
4,629
py
Python
test/test_ui/test_render.py
hrnciar/poezio
12b8af11df35dda535412b0c02ba792890095a7d
[ "Zlib" ]
50
2015-02-11T12:00:25.000Z
2022-01-18T05:26:40.000Z
test/test_ui/test_render.py
hrnciar/poezio
12b8af11df35dda535412b0c02ba792890095a7d
[ "Zlib" ]
3
2017-11-27T20:55:42.000Z
2020-03-20T18:05:53.000Z
test/test_ui/test_render.py
hrnciar/poezio
12b8af11df35dda535412b0c02ba792890095a7d
[ "Zlib" ]
15
2015-04-22T14:33:36.000Z
2021-09-29T21:33:50.000Z
import pytest from contextlib import contextmanager from datetime import datetime from poezio.theming import get_theme from poezio.ui.render import build_lines, Line, write_pre from poezio.ui.types import BaseMessage, Message, StatusMessage, XMLLog def test_write_pre_basemsg(buffer): str_time = '10:11:12' ...
31.924138
76
0.669259
bdfcac80e4077fb1f2378b55cba1401431e2ffec
1,099
py
Python
eats/behave/driver_steps.py
Etiqa/eats
8c8e2da93d0014f6fbb208185712c5526dba1174
[ "BSD-2-Clause" ]
null
null
null
eats/behave/driver_steps.py
Etiqa/eats
8c8e2da93d0014f6fbb208185712c5526dba1174
[ "BSD-2-Clause" ]
5
2021-03-18T21:34:44.000Z
2022-03-11T23:35:23.000Z
eats/behave/driver_steps.py
Etiqa/eats
8c8e2da93d0014f6fbb208185712c5526dba1174
[ "BSD-2-Clause" ]
null
null
null
from behave import * from hamcrest import * from selenium.common.exceptions import RemoteDriverServerException from eats.pyhamcrest import array_equal_to_by_key from eats.utils.mapping import table_mapping from ..users import Users
40.703704
115
0.767971
bdfcb80abeeba8ef801afb6b8c9b9a48834e2016
5,526
py
Python
homebytwo/routes/utils.py
drixselecta/homebytwo
29d26ce9f5586943e3b64c95aa4ce9ea7263bd10
[ "MIT" ]
7
2018-03-10T20:58:59.000Z
2021-08-22T17:18:09.000Z
homebytwo/routes/utils.py
HomebyTwo/homebytwo
29d26ce9f5586943e3b64c95aa4ce9ea7263bd10
[ "MIT" ]
69
2017-02-01T21:15:43.000Z
2022-02-26T09:33:27.000Z
homebytwo/routes/utils.py
drixselecta/homebytwo
29d26ce9f5586943e3b64c95aa4ce9ea7263bd10
[ "MIT" ]
null
null
null
from collections import namedtuple from itertools import accumulate, chain, islice, tee from pathlib import Path from django.contrib.gis.db.models.functions import Distance, LineLocatePoint from django.contrib.gis.measure import D from .fields import LineSubstring from .models import ActivityType, Place # named tupl...
31.758621
92
0.707926
bdfe275d909128740904498e8c3a21dcaa2bafb4
263
py
Python
aureaSym.py
osmartormena/introMATLAB
6e505a17d6666d92b4502eff746f4b4dcdcd3c1c
[ "CC0-1.0" ]
null
null
null
aureaSym.py
osmartormena/introMATLAB
6e505a17d6666d92b4502eff746f4b4dcdcd3c1c
[ "CC0-1.0" ]
null
null
null
aureaSym.py
osmartormena/introMATLAB
6e505a17d6666d92b4502eff746f4b4dcdcd3c1c
[ "CC0-1.0" ]
null
null
null
# Clculo da razo urea (phi) import sympy d = 20 phi = sympy.symbols('phi', nonnegative=True) eqn = sympy.Eq(1/phi, phi - 1) sol = sympy.solve(eqn) sympy.pprint(sol) phiAprox = sympy.N(sol[0], d) print('Para ', d, ' dgitos significativos, = ', phiAprox)
18.785714
60
0.669202
bdfe32d084754eda156889373513889dc3a4c1f0
15,732
py
Python
core/src/structs_classes/extract_structs.py
azurlane-doujin/AzurLanePaintingExtract-v1.0
ef4f25e70b3ca1b9df4304132cc7612c8f5efebb
[ "MIT" ]
144
2019-06-13T06:43:43.000Z
2022-03-29T15:07:57.000Z
core/src/structs_classes/extract_structs.py
Shabi1213/AzurLanePaintingExtract-v1.0
ef4f25e70b3ca1b9df4304132cc7612c8f5efebb
[ "MIT" ]
2
2020-08-02T15:08:58.000Z
2021-11-29T02:34:18.000Z
core/src/structs_classes/extract_structs.py
Shabi1213/AzurLanePaintingExtract-v1.0
ef4f25e70b3ca1b9df4304132cc7612c8f5efebb
[ "MIT" ]
19
2020-03-01T10:06:52.000Z
2022-02-06T13:49:26.000Z
import collections import os import re import time from itertools import filterfalse import wx from core.src.static_classes.static_data import GlobalData from core.src.structs_classes.basic_class import BasicInfo, BasicInfoList def append_to_tree(self, tree: wx.TreeCtrl, tree_root: wx.TreeItemId): ...
33.189873
117
0.557335
bdff65087e9d7a27500aa847fc385ea3b6c07441
3,950
py
Python
scbw_mq/tournament/benchmark/storage.py
Games-and-Simulations/sc-mq
f9ae798948add7fd84b77d75ca26ade94620f84e
[ "MIT" ]
2
2018-05-10T18:10:28.000Z
2018-05-13T18:14:33.000Z
scbw_mq/tournament/benchmark/storage.py
Games-and-Simulations/sc-mq
f9ae798948add7fd84b77d75ca26ade94620f84e
[ "MIT" ]
1
2019-09-20T14:14:49.000Z
2019-09-20T14:14:49.000Z
scbw_mq/tournament/benchmark/storage.py
Games-and-Simulations/sc-mq
f9ae798948add7fd84b77d75ca26ade94620f84e
[ "MIT" ]
null
null
null
import logging import os import shutil from os.path import exists from typing import Optional from scbw.map import check_map_exists from scbw.player import check_bot_exists from scbw.utils import download_extract_zip from ...utils import read_lines logger = logging.getLogger(__name__) # Feel free to include o...
31.854839
88
0.678481
bdff857464c359af0d0606a7da2091b6840dd15a
21,855
py
Python
dev-server/scripts/docker-entrypoint.py
circlenaut/docker-images
1768222b496288b6d08a51f979ade97554648817
[ "MIT" ]
null
null
null
dev-server/scripts/docker-entrypoint.py
circlenaut/docker-images
1768222b496288b6d08a51f979ade97554648817
[ "MIT" ]
null
null
null
dev-server/scripts/docker-entrypoint.py
circlenaut/docker-images
1768222b496288b6d08a51f979ade97554648817
[ "MIT" ]
null
null
null
#!/usr/bin/python """ Main Workspace Run Script """ import os import sys import logging import coloredlogs import json import math import glob import yaml import yamale import scripts.functions as func from copy import copy from subprocess import run, call ### Enable logging logging.basicConfig( format="%(asct...
39.307554
221
0.625212
da0211204f7b106ec6a65423c21ac69cd0c6c658
11,524
py
Python
py/host.py
black-parrot-hdk/arty-parrot
d5d1c5859cbe6a7acad9147b0d815fe478f92ec9
[ "BSD-3-Clause" ]
1
2022-01-09T07:45:12.000Z
2022-01-09T07:45:12.000Z
py/host.py
black-parrot-hdk/arty-parrot
d5d1c5859cbe6a7acad9147b0d815fe478f92ec9
[ "BSD-3-Clause" ]
2
2021-05-26T02:27:26.000Z
2021-05-28T07:02:48.000Z
py/host.py
black-parrot-hdk/arty-parrot
d5d1c5859cbe6a7acad9147b0d815fe478f92ec9
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import sys import argparse from enum import Enum from typing import Optional import serial from tqdm import tqdm from nbf import NBF_COMMAND_LENGTH_BYTES, NbfCommand, NbfFile, OPCODE_FINISH, OPCODE_PUTCH, OPCODE_READ_8, OPCODE_WRITE_8, ADDRESS_CSR_FREEZE DRAM_REGION_START = 0x00_8000_0000 DR...
41.602888
173
0.674505
da02379e9f1f2797e8f3d2fe77571451d25da847
618
py
Python
mistex/plugins/citation.py
martinosorb/mistex
27db70a95ae4bb8bc84c17c9d59c1bef5b5e92f4
[ "BSD-3-Clause" ]
null
null
null
mistex/plugins/citation.py
martinosorb/mistex
27db70a95ae4bb8bc84c17c9d59c1bef5b5e92f4
[ "BSD-3-Clause" ]
null
null
null
mistex/plugins/citation.py
martinosorb/mistex
27db70a95ae4bb8bc84c17c9d59c1bef5b5e92f4
[ "BSD-3-Clause" ]
null
null
null
from mistune.inline_parser import LINK_LABEL CITATION_PATTERN = r'\[\^@(' + LINK_LABEL + r')\]'
22.888889
73
0.666667