hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
126ed0c4b5b9953ffae260a135fbd0a7f5870c29
3,556
py
Python
src/inmanta/db/versions/v4.py
inmanta/inmanta-core
ae2153d57f124d00ad1b58e6d4bc6818364be4a8
[ "Apache-2.0" ]
6
2021-03-09T10:24:02.000Z
2022-01-16T03:52:11.000Z
src/inmanta/db/versions/v4.py
inmanta/inmanta-core
ae2153d57f124d00ad1b58e6d4bc6818364be4a8
[ "Apache-2.0" ]
1,319
2020-12-18T08:52:29.000Z
2022-03-31T18:17:32.000Z
src/inmanta/db/versions/v4.py
inmanta/inmanta-core
ae2153d57f124d00ad1b58e6d4bc6818364be4a8
[ "Apache-2.0" ]
4
2021-03-03T15:36:50.000Z
2022-03-11T11:41:51.000Z
""" Copyright 2020 Inmanta 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 ...
41.348837
116
0.691789
1421bb4be638e2a3c3966a6940ebbf88b122c194
19,414
py
Python
examples/pytorch/multiple-choice/run_swag.py
bugface/transformers
ba286fe7d51db12ad663effac83bed8199dd7141
[ "Apache-2.0" ]
5
2020-09-01T09:15:48.000Z
2020-09-15T03:25:05.000Z
examples/pytorch/multiple-choice/run_swag.py
bugface/transformers
ba286fe7d51db12ad663effac83bed8199dd7141
[ "Apache-2.0" ]
2
2022-03-08T04:58:59.000Z
2022-03-19T03:45:14.000Z
examples/pytorch/multiple-choice/run_swag.py
bugface/transformers
ba286fe7d51db12ad663effac83bed8199dd7141
[ "Apache-2.0" ]
3
2020-08-20T04:46:25.000Z
2020-10-14T08:39:13.000Z
#!/usr/bin/env python # coding=utf-8 # Copyright The HuggingFace Team and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.ap...
40.70021
119
0.667096
54cdb369b0b4e01c130aab22125b7a3645c210db
657
py
Python
app/table_booker/migrations/0002_auto_20210614_0707.py
Jonwodi/Django-PostgreSQL-Docker
150c4b63446408978bda7c14b1e92992da0200d2
[ "MIT" ]
null
null
null
app/table_booker/migrations/0002_auto_20210614_0707.py
Jonwodi/Django-PostgreSQL-Docker
150c4b63446408978bda7c14b1e92992da0200d2
[ "MIT" ]
null
null
null
app/table_booker/migrations/0002_auto_20210614_0707.py
Jonwodi/Django-PostgreSQL-Docker
150c4b63446408978bda7c14b1e92992da0200d2
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2021-06-14 07:07 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('table_booker', '0001_initial'), ] operations = [ migrations.AddField( model_name='booking', ...
26.28
134
0.619482
78bf9c998dfcee7b0d42b7e5731c028cc2d45719
2,768
py
Python
openpype/hosts/nuke/plugins/publish/extract_gizmo.py
dangerstudios/OpenPype
10ddcc4699137888616eec57cd7fac9648189714
[ "MIT" ]
87
2021-05-07T08:40:46.000Z
2022-03-19T00:36:25.000Z
openpype/hosts/nuke/plugins/publish/extract_gizmo.py
dangerstudios/OpenPype
10ddcc4699137888616eec57cd7fac9648189714
[ "MIT" ]
1,019
2021-04-26T06:22:56.000Z
2022-03-31T16:30:43.000Z
openpype/hosts/nuke/plugins/publish/extract_gizmo.py
dangerstudios/OpenPype
10ddcc4699137888616eec57cd7fac9648189714
[ "MIT" ]
33
2021-04-29T12:35:54.000Z
2022-03-25T14:48:42.000Z
import pyblish.api from avalon.nuke import lib as anlib from openpype.hosts.nuke.api import utils as pnutils import nuke import os import openpype class ExtractGizmo(openpype.api.Extractor): """Extracting Gizmo (Group) node Will create nuke script only with the Gizmo node. """ order = pyblish.api.Ex...
29.136842
74
0.562139
9bf3b7e5b44e2b57c1922e1f1d05b59452d26ab1
18,050
py
Python
tutorials/video_classification_example/train.py
kevinmtian/pytorchvideo
168e16859a6029ef8ebeb476f9163bebb6c6b87d
[ "Apache-2.0" ]
null
null
null
tutorials/video_classification_example/train.py
kevinmtian/pytorchvideo
168e16859a6029ef8ebeb476f9163bebb6c6b87d
[ "Apache-2.0" ]
null
null
null
tutorials/video_classification_example/train.py
kevinmtian/pytorchvideo
168e16859a6029ef8ebeb476f9163bebb6c6b87d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import argparse import itertools import logging import os import pytorch_lightning import pytorchvideo.data import pytorchvideo.models.resnet import torch import torch.nn.functional as F from pytorch_lightning.callbacks import LearningRateMonitor...
38.650964
95
0.631413
1ec508699970ddb779f3212536dcc8ccaf1f644e
3,568
py
Python
Django Email sender/mysite/mysite/settings.py
Mihir008/Web-Ideas
f8ccb6dfdec2c34c65618bd4e8b43426b7bdfe3a
[ "MIT" ]
10
2021-10-08T15:09:14.000Z
2021-12-27T10:38:07.000Z
Django Email sender/mysite/mysite/settings.py
Mihir008/Web-Ideas
f8ccb6dfdec2c34c65618bd4e8b43426b7bdfe3a
[ "MIT" ]
35
2021-10-07T10:40:24.000Z
2021-10-31T16:47:08.000Z
Django Email sender/mysite/mysite/settings.py
Mihir008/Web-Ideas
f8ccb6dfdec2c34c65618bd4e8b43426b7bdfe3a
[ "MIT" ]
29
2021-10-08T09:44:09.000Z
2021-12-12T05:54:03.000Z
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 3.2.5. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ import os.path...
26.043796
91
0.710202
e860226915423b5b1197b56eac23499b742bfa49
12,433
py
Python
sdks/python/apache_beam/runners/interactive/pipeline_analyzer_test.py
RusOr10n/beam
ede14d4aa7d239f74d5565a28a7c4433eaaa7d47
[ "Apache-2.0" ]
2
2019-12-10T11:32:48.000Z
2020-03-18T04:50:52.000Z
sdks/python/apache_beam/runners/interactive/pipeline_analyzer_test.py
RusOr10n/beam
ede14d4aa7d239f74d5565a28a7c4433eaaa7d47
[ "Apache-2.0" ]
14
2020-02-12T22:20:41.000Z
2021-11-09T19:41:23.000Z
sdks/python/apache_beam/runners/interactive/pipeline_analyzer_test.py
violalyu/beam
dd605e568d70b1a6ebea60c15b2aec3e240f3914
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
41.168874
81
0.665487
c6919a72ad6dfaa50b41b6c3d187c951dcb08b5f
23,113
py
Python
nova/tests/unit/test_policy.py
gotostack/nova
c0b85389acc7a7d666bfabd542c2695c87192544
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/test_policy.py
gotostack/nova
c0b85389acc7a7d666bfabd542c2695c87192544
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/test_policy.py
gotostack/nova
c0b85389acc7a7d666bfabd542c2695c87192544
[ "Apache-2.0" ]
1
2020-07-24T00:41:49.000Z
2020-07-24T00:41:49.000Z
# Copyright 2011 Piston Cloud Computing, Inc. # All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
41.645045
79
0.721109
6d9813a45fcdfac4d11a910ffbcc88d7d3b07c4b
3,908
py
Python
yandexcloud/_operation_waiter.py
korsar182/python-sdk
873bf2a9b136a8f2faae72e86fae1f5b5c3d896a
[ "MIT" ]
36
2018-12-23T13:51:50.000Z
2022-03-25T07:48:24.000Z
yandexcloud/_operation_waiter.py
korsar182/python-sdk
873bf2a9b136a8f2faae72e86fae1f5b5c3d896a
[ "MIT" ]
15
2019-02-28T04:55:09.000Z
2022-03-06T23:17:24.000Z
yandexcloud/_operation_waiter.py
korsar182/python-sdk
873bf2a9b136a8f2faae72e86fae1f5b5c3d896a
[ "MIT" ]
18
2019-02-23T07:10:57.000Z
2022-03-28T14:41:08.000Z
import time from datetime import datetime import logging import grpc from google.protobuf.empty_pb2 import Empty from yandex.cloud.operation.operation_service_pb2_grpc import OperationServiceStub from yandex.cloud.operation.operation_service_pb2 import GetOperationRequest from yandexcloud._retry_interceptor import Re...
37.219048
110
0.694729
efb2c6f9ef40ed24ad9b5f65eed87899c6f12a9a
250
py
Python
exercise034.py
AlissonRaphael/python_exercises
3f1185c4f2fff24c9fa2ffd6b60f90599044c985
[ "MIT" ]
null
null
null
exercise034.py
AlissonRaphael/python_exercises
3f1185c4f2fff24c9fa2ffd6b60f90599044c985
[ "MIT" ]
null
null
null
exercise034.py
AlissonRaphael/python_exercises
3f1185c4f2fff24c9fa2ffd6b60f90599044c985
[ "MIT" ]
null
null
null
salario = float(input('Digite o salário: R$ ')) if salario >= 1250: print('Com reajuste de 10%, o novo salário é R$ {:.2f}'.format(salario+salario*0.1)) else: print('Com reajuste de 15%, o novo salário é R$ {:.2f}'.format(salario+salario*0.15))
35.714286
87
0.664
c303173ebda4877f183222c724141eb7cc9180cf
823
py
Python
tests/test_app.py
Ravillatypov/macrobase
17382e498a516bb6aa03aa98eea8f4e9932f5788
[ "MIT" ]
null
null
null
tests/test_app.py
Ravillatypov/macrobase
17382e498a516bb6aa03aa98eea8f4e9932f5788
[ "MIT" ]
4
2020-04-30T07:17:56.000Z
2020-07-31T08:42:20.000Z
tests/test_app.py
Ravillatypov/macrobase
17382e498a516bb6aa03aa98eea8f4e9932f5788
[ "MIT" ]
2
2020-12-23T15:52:17.000Z
2021-06-09T10:09:10.000Z
import pytest from macrobase.app import Application, HookNames from tests.sample_app import SampleApplication @pytest.mark.timeout(3) def test_empty_application(application: Application): application.run() def test_hooks_before_start(mocker, application: Application, sample_app: SampleApplication): hook_sp...
29.392857
93
0.808019
be5504e00d86c406144bd1ebad8cbfc313829c7d
1,103
py
Python
code/kafka_producer.py
t1191578/moniteredit
48465d7cbee2452392720a26320d8753f8807bc9
[ "Apache-2.0" ]
null
null
null
code/kafka_producer.py
t1191578/moniteredit
48465d7cbee2452392720a26320d8753f8807bc9
[ "Apache-2.0" ]
null
null
null
code/kafka_producer.py
t1191578/moniteredit
48465d7cbee2452392720a26320d8753f8807bc9
[ "Apache-2.0" ]
null
null
null
from kafka import KafkaProducer from datetime import datetime import time from json import dumps import json ,requests, logging, time KAFKA_TOPIC_NAME = "20A1" KAFKA_BOOTSTRAP_SERVERS_CONS = '192.168.29.228:9092' def success(metadata): print(metadata.topic) def error(exception): print(exception) if __name__ =...
35.580645
110
0.669084
d1202a74bff78dabe8244f1e89d65350e8a77afb
2,150
py
Python
src/arch/x86/isa/insts/x87/arithmetic/square_root.py
qianlong4526888/haha
01baf923693873c11ae072ce4dde3d8f1d7b6239
[ "BSD-3-Clause" ]
135
2016-10-21T03:31:49.000Z
2022-03-25T01:22:20.000Z
src/arch/x86/isa/insts/x87/arithmetic/square_root.py
qianlong4526888/haha
01baf923693873c11ae072ce4dde3d8f1d7b6239
[ "BSD-3-Clause" ]
35
2017-03-10T17:57:46.000Z
2022-02-18T17:34:16.000Z
src/arch/x86/isa/insts/x87/arithmetic/square_root.py
qianlong4526888/haha
01baf923693873c11ae072ce4dde3d8f1d7b6239
[ "BSD-3-Clause" ]
48
2016-12-08T12:03:13.000Z
2022-02-16T09:16:13.000Z
# Copyright (c) 2007 The Hewlett-Packard Development Company # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implemen...
52.439024
72
0.793953
a8de8b4cdcaac1ce63615791fcc1a672212a4359
1,871
py
Python
doc/processing/pypro1.py
rasql/edunum
c9e3be3dbf86a6eb6c28d46b055f8a72bff00ee5
[ "MIT" ]
3
2021-02-15T22:30:03.000Z
2021-06-16T13:28:25.000Z
doc/processing/pypro1.py
rasql/edunum
c9e3be3dbf86a6eb6c28d46b055f8a72bff00ee5
[ "MIT" ]
null
null
null
doc/processing/pypro1.py
rasql/edunum
c9e3be3dbf86a6eb6c28d46b055f8a72bff00ee5
[ "MIT" ]
3
2021-02-15T10:37:12.000Z
2021-08-10T13:25:42.000Z
import pygame from pygame.locals import * screen = None width = 640 height = 480 mousePressed = False mouseX = 0 mouseY = 0 stroke = (0, 0, 0) RED = 255, 0, 0 def background(*rgb): global bg if len(rgb) == 1: bg = (rgb) * 3 else: bg = rgb screen.fill(bg) def keyP...
18.165049
61
0.520043
24d46508899868d1356954ee43bfe59ec2f17a2e
7,048
py
Python
gym-hls/gym_hls/envs/getcycle.py
XiaoSanchez/autophase
3d8d173ad27b9786e36efd22d0ceacbcf1cb1dfb
[ "BSD-3-Clause" ]
null
null
null
gym-hls/gym_hls/envs/getcycle.py
XiaoSanchez/autophase
3d8d173ad27b9786e36efd22d0ceacbcf1cb1dfb
[ "BSD-3-Clause" ]
null
null
null
gym-hls/gym_hls/envs/getcycle.py
XiaoSanchez/autophase
3d8d173ad27b9786e36efd22d0ceacbcf1cb1dfb
[ "BSD-3-Clause" ]
null
null
null
import re import subprocess import os # Available LLVM optimizatons # tailduplicate, simplify-libcalls, -block-placement #opt_passes_str="-inline -jump-threading -simplifycfg -gvn -loop-rotate -codegenprepare" opt_passes_str = "-correlated-propagation -scalarrepl -lowerinvoke -strip -strip-nondebug -sccp -globalopt...
46.368421
563
0.67168
5ef02b64c05b60ac04f89979b2eaa7477f943994
9,452
py
Python
aiohomekit/testing.py
jaredhobbs/aiohomekit
de4f708af4b2fb93a0c3d62e28b453b74a2dcecb
[ "Apache-2.0" ]
21
2020-02-14T20:45:47.000Z
2022-03-29T01:36:14.000Z
aiohomekit/testing.py
jaredhobbs/aiohomekit
de4f708af4b2fb93a0c3d62e28b453b74a2dcecb
[ "Apache-2.0" ]
78
2020-03-22T22:25:50.000Z
2022-03-10T23:08:43.000Z
aiohomekit/testing.py
jaredhobbs/aiohomekit
de4f708af4b2fb93a0c3d62e28b453b74a2dcecb
[ "Apache-2.0" ]
18
2020-04-09T23:02:18.000Z
2022-03-01T23:20:19.000Z
# # Copyright 2019 aiohomekit team # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
32.259386
87
0.633834
25b8a36c1a353f0b998ee032011bc3380d307bd9
32,911
py
Python
CalcFOMForm.py
johnmgregoire/JCAPDataProcess
c8120e5b2f8fc840a6307b40293dccaf94bd8c2c
[ "BSD-3-Clause" ]
5
2017-03-24T21:05:22.000Z
2021-09-15T18:18:05.000Z
CalcFOMForm.py
johnmgregoire/JCAPDataProcess
c8120e5b2f8fc840a6307b40293dccaf94bd8c2c
[ "BSD-3-Clause" ]
null
null
null
CalcFOMForm.py
johnmgregoire/JCAPDataProcess
c8120e5b2f8fc840a6307b40293dccaf94bd8c2c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'D:\Google Drive\Documents\PythonCode\JCAP\JCAPDataProcess\QtDesign\CalcFOMForm.ui' # # Created by: PyQt4 UI code generator 4.11.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 =...
72.173246
170
0.7427
b39588fee3c6bfbd3c0774f877692cd5008a8b61
7,920
py
Python
util.py
Harsha-Musunuri/stylegan2-pytorch
bd9b42f7031aa1d16245ac64bc562baf0fc0945f
[ "MIT", "BSD-2-Clause", "Apache-2.0" ]
7
2021-11-13T02:31:21.000Z
2022-03-30T01:30:15.000Z
util.py
Harsha-Musunuri/stylegan2-pytorch
bd9b42f7031aa1d16245ac64bc562baf0fc0945f
[ "MIT", "BSD-2-Clause", "Apache-2.0" ]
null
null
null
util.py
Harsha-Musunuri/stylegan2-pytorch
bd9b42f7031aa1d16245ac64bc562baf0fc0945f
[ "MIT", "BSD-2-Clause", "Apache-2.0" ]
1
2021-03-03T03:46:18.000Z
2021-03-03T03:46:18.000Z
import os import sys import ast import math import torch import shutil import random import numpy as np from torchvision.io import write_video from torchvision import utils from torch.nn import functional as F class AverageMeter(object): """Computes and stores the average and current value""" def __init__(sel...
35.515695
183
0.632449
75267806d63bae7582741a125a7d6a94d637239d
1,290
py
Python
newsletter/migrations/0012_newslettereventlink.py
OpenCanada/website
6334ff412addc0562ac247080194e5d182e8e924
[ "MIT" ]
10
2015-12-18T16:41:33.000Z
2018-11-11T08:36:46.000Z
newsletter/migrations/0012_newslettereventlink.py
OpenCanada/website
6334ff412addc0562ac247080194e5d182e8e924
[ "MIT" ]
96
2015-07-14T22:45:56.000Z
2017-07-25T19:59:48.000Z
newsletter/migrations/0012_newslettereventlink.py
OpenCanada/website
6334ff412addc0562ac247080194e5d182e8e924
[ "MIT" ]
9
2015-07-28T14:38:43.000Z
2019-01-04T17:38:42.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import django.db.models.deletion import modelcluster.fields import wagtail.core.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('events', '0002_auto_20150728_1915'), ('newslet...
39.090909
200
0.633333
d71457e936bc7bcfdd701e0ba03477310dd717f2
1,319
py
Python
ENV/lib/python3.5/site-packages/pyrogram/api/types/update_saved_gifs.py
block1o1/CryptoPredicted
7f660cdc456fb8252b3125028f31fd6f5a3ceea5
[ "MIT" ]
4
2021-10-14T21:22:25.000Z
2022-03-12T19:58:48.000Z
ENV/lib/python3.5/site-packages/pyrogram/api/types/update_saved_gifs.py
inevolin/CryptoPredicted
7f660cdc456fb8252b3125028f31fd6f5a3ceea5
[ "MIT" ]
null
null
null
ENV/lib/python3.5/site-packages/pyrogram/api/types/update_saved_gifs.py
inevolin/CryptoPredicted
7f660cdc456fb8252b3125028f31fd6f5a3ceea5
[ "MIT" ]
1
2022-03-15T22:52:53.000Z
2022-03-15T22:52:53.000Z
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2018 Dan Tès <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free S...
26.918367
74
0.681577
08c2ff72344f8a1657965f5f5032443b325bfce1
33,990
py
Python
atom.symlink/packages/wakatime/lib/wakatime-master/wakatime/packages/pytz/__init__.py
sanata-/dotenv
1dda3581ba86ebd78ddfe410ca11d54f096e4427
[ "MIT" ]
1
2015-05-25T15:31:24.000Z
2015-05-25T15:31:24.000Z
packages/wakatime/wakatime/packages/pytz/__init__.py
AppVentus/AvTime-client
164333c3e1d80d1baba00cd0e1d308f2c1023156
[ "BSD-3-Clause" ]
null
null
null
packages/wakatime/wakatime/packages/pytz/__init__.py
AppVentus/AvTime-client
164333c3e1d80d1baba00cd0e1d308f2c1023156
[ "BSD-3-Clause" ]
null
null
null
''' datetime.tzinfo timezone definitions generated from the Olson timezone database: ftp://elsie.nci.nih.gov/pub/tz*.tar.gz See the datetime section of the Python Library Reference for information on how to use these modules. ''' # The Olson database is updated several times a year. OLSON_VERSION = '2013d' VERSI...
22.465301
81
0.66293
26ed295ad5e1dcfc1e0d44d47e9c63e21d362f1d
1,024
py
Python
example.py
f416720001/PythonHMM
f50a9a883122950cab7b574be8d8c3da1b21d12d
[ "BSD-3-Clause" ]
null
null
null
example.py
f416720001/PythonHMM
f50a9a883122950cab7b574be8d8c3da1b21d12d
[ "BSD-3-Clause" ]
null
null
null
example.py
f416720001/PythonHMM
f50a9a883122950cab7b574be8d8c3da1b21d12d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from hmm import Model # 來自維基百科 https://zh.wikipedia.org/wiki/%E9%9A%90%E9%A9%AC%E5%B0%94%E5%8F%AF%E5%A4%AB%E6%A8%A1%E5%9E%8B # 假設你有一個住得很遠的朋友,他每天跟你打電話告訴你他那天做了什麼。 # 你的朋友僅僅對三種活動感興趣:公園散步,購物以及清理房間。 # 他選擇做什麼事情只憑天氣。你對於他所住的地方的天氣情況並不了解,但是你知道總的趨勢。在他告訴你每天所做的事情基礎上,你想要猜測他所在地的天氣情況。 # 天氣的狀態,你無法直接觀察 = 它們對你來說...
26.25641
102
0.638672
a7d7ed530e7084ad556e92084e088c1592867303
2,052
py
Python
src/main/python/cosmopusher/n560reader.py
konz/cosmopusher
7701b3ecd5d2e7fa90e34e75cb53a0dd12c6124c
[ "Apache-2.0" ]
null
null
null
src/main/python/cosmopusher/n560reader.py
konz/cosmopusher
7701b3ecd5d2e7fa90e34e75cb53a0dd12c6124c
[ "Apache-2.0" ]
null
null
null
src/main/python/cosmopusher/n560reader.py
konz/cosmopusher
7701b3ecd5d2e7fa90e34e75cb53a0dd12c6124c
[ "Apache-2.0" ]
null
null
null
import logging import re from datetime import datetime DATA_REGEX = re.compile('^(\d{2}-\w{3}-\d{2} \d{2}:\d{2}:\d{2})\s+(\d+|---)\*?\s+(\d+|---)\*?\s+(\d+|---)(.*)$') SETTINGS_REGEX = re.compile('^(\S+)\s+VERSION (\S+).*?SpO2 Limit: (\d+)-(\d+)%\s+PR Limit: (\d+)-(\d+)BPM$') LOGGER = logging.getLogger('cosmopusher')...
31.569231
112
0.575536
12647855880d55ecf3c852631919d9142408df9e
7,151
py
Python
gesture_digit_prediction_app/hello/views.py
qiulongquan/DS_Research
864181b458e5af6f22b471d1598b7d96b3efc757
[ "Apache-2.0" ]
1
2020-11-08T07:26:22.000Z
2020-11-08T07:26:22.000Z
gesture_digit_prediction_app/hello/views.py
qiulongquan/DS_Research
864181b458e5af6f22b471d1598b7d96b3efc757
[ "Apache-2.0" ]
null
null
null
gesture_digit_prediction_app/hello/views.py
qiulongquan/DS_Research
864181b458e5af6f22b471d1598b7d96b3efc757
[ "Apache-2.0" ]
null
null
null
from .models import Img from django.shortcuts import render from tensorflow.keras.preprocessing import image from django.utils import timezone from django.utils.timezone import localtime import matplotlib.pyplot as plt import numpy as np import os # shutil是文件 文件夹操作相关方法的package import shutil import tensorflow as tf impo...
33.260465
88
0.602154
6625f7cc49d40c6595aefdda25775656f289b47f
1,014
py
Python
shopping_list.py
ecampostrini/shopping-buddy
9748c972f5df3b102c41d245c92dfc87bcf0700f
[ "Apache-2.0" ]
null
null
null
shopping_list.py
ecampostrini/shopping-buddy
9748c972f5df3b102c41d245c92dfc87bcf0700f
[ "Apache-2.0" ]
null
null
null
shopping_list.py
ecampostrini/shopping-buddy
9748c972f5df3b102c41d245c92dfc87bcf0700f
[ "Apache-2.0" ]
null
null
null
import yaml from collections import namedtuple from units import BaseQuantity class ShoppingList: Item = namedtuple("ShoppingListItem", "name quantity") @classmethod def fromFile(cls, filename): with open(filename, "r") as shopping_list: return cls(yaml.safe_load(shopping_list)) def __init__(self...
27.405405
85
0.674556
462c0a59dae2a39d94d267894599be4ab29cf159
629
py
Python
setup.py
zapatacomputing/z-quantum-qcbm
ac0899b1b3b556e25d475459a37cb5889cfd62c6
[ "Apache-2.0" ]
5
2020-06-02T16:52:01.000Z
2021-11-17T11:37:55.000Z
setup.py
zapatacomputing/z-quantum-qcbm
ac0899b1b3b556e25d475459a37cb5889cfd62c6
[ "Apache-2.0" ]
40
2020-05-15T19:45:01.000Z
2022-03-30T19:16:38.000Z
setup.py
zapatacomputing/z-quantum-qcbm
ac0899b1b3b556e25d475459a37cb5889cfd62c6
[ "Apache-2.0" ]
5
2020-08-17T08:31:30.000Z
2021-09-08T12:32:22.000Z
import setuptools setuptools.setup( name="z-quantum-qcbm", use_scm_version=True, author="Zapata Computing, Inc.", author_email="info@zapatacomputing.com", description="QCBM package for Orquestra.", url="https://github.com/zapatacomputing/z-quantum-qcbm ", packages=setuptools.find_namespace_...
29.952381
61
0.659777
368c76167a3daff86d8478a9de1dd552123661c5
3,182
py
Python
model-optimizer/mo/ops/memoryoffset.py
evgenytalanin-intel/openvino
c3aa866a3318fe9fa8c7ebd3bd333b075bb1cc36
[ "Apache-2.0" ]
1
2021-07-30T17:03:50.000Z
2021-07-30T17:03:50.000Z
model-optimizer/mo/ops/memoryoffset.py
evgenytalanin-intel/openvino
c3aa866a3318fe9fa8c7ebd3bd333b075bb1cc36
[ "Apache-2.0" ]
4
2021-04-01T08:29:48.000Z
2021-08-30T16:12:52.000Z
model-optimizer/mo/ops/memoryoffset.py
evgenytalanin-intel/openvino
c3aa866a3318fe9fa8c7ebd3bd333b075bb1cc36
[ "Apache-2.0" ]
3
2021-03-09T08:27:29.000Z
2021-04-07T04:58:54.000Z
""" Copyright (C) 2018-2020 Intel 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 i...
44.816901
110
0.638906
29321bef7979fde779819a2596fdee24534152ed
970
py
Python
examples/multi_goal/__init__.py
limash/softlearning
aaa9d8c5cc3ba4bf459eb5a1a7469b3ae3b4f94f
[ "MIT" ]
920
2018-12-11T16:22:23.000Z
2022-03-28T08:17:07.000Z
examples/multi_goal/__init__.py
limash/softlearning
aaa9d8c5cc3ba4bf459eb5a1a7469b3ae3b4f94f
[ "MIT" ]
133
2018-12-09T08:08:33.000Z
2022-02-28T12:43:14.000Z
examples/multi_goal/__init__.py
limash/softlearning
aaa9d8c5cc3ba4bf459eb5a1a7469b3ae3b4f94f
[ "MIT" ]
241
2018-12-03T21:35:24.000Z
2022-03-20T06:24:45.000Z
"""Provides functions that are utilized by the command line interface. In particular, the examples are exposed to the command line interface (defined in `softlearning.scripts.console_scripts`) through the `get_trainable_class`, `get_variant_spec`, and `get_parser` functions. """ def get_trainable_class(*args, **kwar...
30.3125
71
0.683505
2f63f14926c480ac108ca49a407157dd1dcaa670
5,463
py
Python
utils/provider.py
MatrixSuper/3DObjectKnowledge
15617aacc086eeede6860142ddf1c7c7e5c5a0bc
[ "MIT" ]
1
2018-02-13T04:08:09.000Z
2018-02-13T04:08:09.000Z
utils/provider.py
MatrixSuper/3DObjectKnowledge
15617aacc086eeede6860142ddf1c7c7e5c5a0bc
[ "MIT" ]
null
null
null
utils/provider.py
MatrixSuper/3DObjectKnowledge
15617aacc086eeede6860142ddf1c7c7e5c5a0bc
[ "MIT" ]
null
null
null
import os import sys import numpy as np import h5py BASE_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(BASE_DIR) # Download dataset for point cloud classification DATA_DIR = os.path.join(BASE_DIR, 'data') if not os.path.exists(DATA_DIR): os.mkdir(DATA_DIR) if not os.path.exists(os.path.join(DATA...
36.42
83
0.607542
ef51361ce78e93bcbddc55e3940944924644d508
3,724
py
Python
src/pynwb/ndx_simulation_output/simulation_output.py
ben-dichter-consulting/ndx-simulation-output
aca738b2463868255efbbd1eac8354471197f8c6
[ "BSD-3-Clause" ]
2
2020-05-16T19:51:18.000Z
2020-06-09T19:26:43.000Z
src/pynwb/ndx_simulation_output/simulation_output.py
catalystneuro/ndx-simulation-output
aca738b2463868255efbbd1eac8354471197f8c6
[ "BSD-3-Clause" ]
1
2019-11-04T17:05:23.000Z
2019-11-04T17:05:23.000Z
src/pynwb/ndx_simulation_output/simulation_output.py
catalystneuro/ndx-simulation-output
aca738b2463868255efbbd1eac8354471197f8c6
[ "BSD-3-Clause" ]
2
2019-10-16T06:23:19.000Z
2019-10-16T06:24:50.000Z
import numpy as np from pynwb import register_class, docval, get_class from hdmf.common.table import VectorIndex, VectorData, DynamicTable, ElementIdentifiers from hdmf.utils import call_docval_func namespace = 'ndx-simulation-output' def create_ragged_array(name, values): """ :param values: list of lists ...
39.617021
108
0.675886
976a88bc5347aa16532ffe28d9b07de90099da28
2,599
py
Python
qiskit_nature/circuit/library/ansatzes/uccsd.py
Ryand1234/qiskit-nature
e39594b8ede4533af7d22b2b121f29d624e569ed
[ "Apache-2.0" ]
132
2021-01-28T14:51:11.000Z
2022-03-25T21:10:47.000Z
qiskit_nature/circuit/library/ansatzes/uccsd.py
Ryand1234/qiskit-nature
e39594b8ede4533af7d22b2b121f29d624e569ed
[ "Apache-2.0" ]
449
2021-01-28T19:57:43.000Z
2022-03-31T17:01:50.000Z
qiskit_nature/circuit/library/ansatzes/uccsd.py
Ryand1234/qiskit-nature
e39594b8ede4533af7d22b2b121f29d624e569ed
[ "Apache-2.0" ]
109
2021-01-28T13:17:46.000Z
2022-03-30T23:53:39.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
38.791045
99
0.664486
fa478c20788796b0608d8b48c0789df71adbce75
15,079
py
Python
var/spack/repos/builtin/packages/openjdk/package.py
renjithravindrankannath/spack
043b2cbb7c99d69a373f3ecbf35bc3b4638bcf85
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/openjdk/package.py
renjithravindrankannath/spack
043b2cbb7c99d69a373f3ecbf35bc3b4638bcf85
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/openjdk/package.py
renjithravindrankannath/spack
043b2cbb7c99d69a373f3ecbf35bc3b4638bcf85
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os import platform import re from spack.package import * from spack.util.prefix import Prefix # If you need to ad...
71.804762
253
0.7405
fec96f2d2ccebb6fb0a46b592b42dec506999a4e
228
py
Python
project/main/serializers/students.py
SYSU-MATHZH/drf-starter
68b0845840657ced0a22e97183c1f40f211d1652
[ "MIT" ]
1
2021-02-16T09:42:40.000Z
2021-02-16T09:42:40.000Z
project/main/serializers/students.py
Demonhero0/2020TCM
028a7a1d22591c496923a011316353debc3290af
[ "MIT" ]
null
null
null
project/main/serializers/students.py
Demonhero0/2020TCM
028a7a1d22591c496923a011316353debc3290af
[ "MIT" ]
2
2019-06-14T07:38:08.000Z
2020-02-06T00:41:33.000Z
from rest_framework import serializers from project.main.models import Student class StudentSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Student fields = ('url', 'name', 'number')
28.5
64
0.736842
3b89d28910b7d4947763e17720b160901866e706
3,282
py
Python
third_party/catapult/dashboard/dashboard/find_change_points_exp.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
1
2020-09-15T08:43:34.000Z
2020-09-15T08:43:34.000Z
third_party/catapult/dashboard/dashboard/find_change_points_exp.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
third_party/catapult/dashboard/dashboard/find_change_points_exp.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Contains experimental alerting functions.""" from dashboard import find_change_points from dashboard.models import anomaly_config def RunFindChangePoin...
35.290323
80
0.746496
7b8199377279be1b4c242fbc6e5dc408e0bd8097
10,337
py
Python
hypha/apply/api/v1/review/views.py
slifty/hypha
93313933c26589858beb9a861e33431658cd3b24
[ "BSD-3-Clause" ]
20
2021-04-08T16:38:49.000Z
2022-02-09T20:05:57.000Z
hypha/apply/api/v1/review/views.py
OpenTechFund/WebApp
d6e2bb21a39d1fa7566cb60fe19f372dabfa5f0f
[ "BSD-3-Clause" ]
1,098
2017-12-15T11:23:03.000Z
2020-01-24T07:58:07.000Z
hypha/apply/api/v1/review/views.py
OpenTechFund/WebApp
d6e2bb21a39d1fa7566cb60fe19f372dabfa5f0f
[ "BSD-3-Clause" ]
10
2021-02-23T12:00:26.000Z
2022-03-24T13:03:37.000Z
from django.shortcuts import get_object_or_404 from rest_framework import permissions, status, viewsets from rest_framework.decorators import action from rest_framework.exceptions import ValidationError from rest_framework.response import Response from wagtail.core.blocks.field_block import RichTextBlock from hypha.ap...
36.786477
101
0.645448
b600bb45e029e9a8901872617254764a816cc2da
876
py
Python
Django Planner/users/forms.py
karsteneugene/Django-Planner
0dadda440266e282676b4a3b2f18e60a1ac3d813
[ "MIT" ]
null
null
null
Django Planner/users/forms.py
karsteneugene/Django-Planner
0dadda440266e282676b4a3b2f18e60a1ac3d813
[ "MIT" ]
null
null
null
Django Planner/users/forms.py
karsteneugene/Django-Planner
0dadda440266e282676b4a3b2f18e60a1ac3d813
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm from .models import Profile # Uses the User model so the new user will be added to the table class UserRegisterForm(UserCreationForm): # Added an email field for registration email = for...
28.258065
90
0.707763
bd99f2d1991753c8d900a65edb8d29e66bcfc11a
1,416
py
Python
tests/test_ilp.py
FilipKlaesson/cops
67d2e5dd4534b3f3eec95b6cfda9d4c9c1746ef0
[ "BSD-3-Clause" ]
null
null
null
tests/test_ilp.py
FilipKlaesson/cops
67d2e5dd4534b3f3eec95b6cfda9d4c9c1746ef0
[ "BSD-3-Clause" ]
null
null
null
tests/test_ilp.py
FilipKlaesson/cops
67d2e5dd4534b3f3eec95b6cfda9d4c9c1746ef0
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import scipy.sparse as sp from cops.optimization_wrappers import Constraint, solve_ilp def import_gurobi(): try: import gurobipy return True except ModuleNotFoundError as e: return False def import_mosek(): try: import mosek return True excep...
30.12766
70
0.588277
fff7e5e1e6556e9aad6f5f3a6d9af14019b43c81
59,008
py
Python
uproot/model.py
wiso/uproot4
b1cf6e6b48e75dcd2e1f0c30668fb8583fe0382d
[ "BSD-3-Clause" ]
null
null
null
uproot/model.py
wiso/uproot4
b1cf6e6b48e75dcd2e1f0c30668fb8583fe0382d
[ "BSD-3-Clause" ]
null
null
null
uproot/model.py
wiso/uproot4
b1cf6e6b48e75dcd2e1f0c30668fb8583fe0382d
[ "BSD-3-Clause" ]
null
null
null
# BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/main/LICENSE """ This module defines utilities for modeling C++ objects as Python objects and the :doc:`uproot.model.Model` class, which is the superclass of all objects that are read from ROOT files. The :doc:`uproot.model.VersionedModel` class i...
38.897825
98
0.600613
00b7cb59260ed681f3321c8e1234d48c7299443d
1,190
py
Python
setup.py
GuyShane/virtualfish
2d463a02b2fcdf7e65438b44ef5b56d897900413
[ "MIT" ]
null
null
null
setup.py
GuyShane/virtualfish
2d463a02b2fcdf7e65438b44ef5b56d897900413
[ "MIT" ]
null
null
null
setup.py
GuyShane/virtualfish
2d463a02b2fcdf7e65438b44ef5b56d897900413
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='virtualfish', description='A virtualenv wrapper for the Fish shell', author='Adam Brenecki', author_email='adam@brenecki.id.au', url='https://github.com/adambrenecki/virtualfish', packages=find_packages(), include_package_data=True, ...
28.333333
64
0.567227
17627583e519728b8782b8e5428539094f971ae6
25
py
Python
code.py
flavio-fernandes/kitchen_clock
920ba7d201b7895f414775aaa4685aa66b040802
[ "MIT" ]
null
null
null
code.py
flavio-fernandes/kitchen_clock
920ba7d201b7895f414775aaa4685aa66b040802
[ "MIT" ]
null
null
null
code.py
flavio-fernandes/kitchen_clock
920ba7d201b7895f414775aaa4685aa66b040802
[ "MIT" ]
null
null
null
import kitchen_clock.py
8.333333
23
0.84
758a81d82e83cf7f8e82b3955436ac1dc1162d32
1,014
py
Python
Python/q1.py
uday256071/DataStructures-and-Algorithms
d5740a27a8e4141616307ec3771bc7ad95ff9f72
[ "MIT" ]
null
null
null
Python/q1.py
uday256071/DataStructures-and-Algorithms
d5740a27a8e4141616307ec3771bc7ad95ff9f72
[ "MIT" ]
null
null
null
Python/q1.py
uday256071/DataStructures-and-Algorithms
d5740a27a8e4141616307ec3771bc7ad95ff9f72
[ "MIT" ]
null
null
null
'''This problem was recently asked by Google. Given a list of numbers and a number k, return whether any two numbers from the list add up to k. For example, given [10, 15, 3, 7] and k of 17, return true since 10 + 7 is 17''' # using hashMap edge case checked for k/2 - HASHMAP def sumOfTwo(arr,k): arrSet = s...
27.405405
97
0.534517
29ccb9ef339b14d760442644b36a9a22fa24b220
14,872
py
Python
slack_bolt/oauth/async_oauth_flow.py
hirosassa/bolt-python
befc3a1463f3ac8dbb780d66decc304e2bdf3e7a
[ "MIT" ]
1
2021-08-14T15:14:02.000Z
2021-08-14T15:14:02.000Z
slack_bolt/oauth/async_oauth_flow.py
hirosassa/bolt-python
befc3a1463f3ac8dbb780d66decc304e2bdf3e7a
[ "MIT" ]
null
null
null
slack_bolt/oauth/async_oauth_flow.py
hirosassa/bolt-python
befc3a1463f3ac8dbb780d66decc304e2bdf3e7a
[ "MIT" ]
null
null
null
import logging import os from logging import Logger from typing import Optional, Dict, Callable, Awaitable, Sequence from slack_bolt.error import BoltError from slack_bolt.logger.messages import error_oauth_settings_invalid_type_async from slack_bolt.oauth.async_callback_options import ( AsyncCallbackOptions, ...
40.194595
88
0.600524
ac4226358c67d36faad3cd47d4cd22003343c0e2
8,831
py
Python
netbox/secrets/views.py
vietbm-hcm/netbox
a16218b3111c2c8dd952c1fa35c13e5d5fd81ea9
[ "Apache-2.0" ]
null
null
null
netbox/secrets/views.py
vietbm-hcm/netbox
a16218b3111c2c8dd952c1fa35c13e5d5fd81ea9
[ "Apache-2.0" ]
null
null
null
netbox/secrets/views.py
vietbm-hcm/netbox
a16218b3111c2c8dd952c1fa35c13e5d5fd81ea9
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import base64 from django.contrib import messages from django.contrib.auth.decorators import permission_required, login_required from django.contrib.auth.mixins import PermissionRequiredMixin from django.db import transaction, IntegrityError from django.db.models import Count fr...
34.767717
116
0.659042
22a885e96f918da0288f47ae29b93fc7bd9b9900
4,499
py
Python
backend/common/json_data.py
maura-dev/zc_plugin_company_sales_prospect
08a35a796169d137b9a111390cfe239900c3940a
[ "BSD-3-Clause" ]
9
2021-08-28T10:44:25.000Z
2021-09-09T19:16:12.000Z
backend/common/json_data.py
maura-dev/zc_plugin_company_sales_prospect
08a35a796169d137b9a111390cfe239900c3940a
[ "BSD-3-Clause" ]
117
2021-08-28T08:02:48.000Z
2021-10-04T15:14:18.000Z
backend/common/json_data.py
maura-dev/zc_plugin_company_sales_prospect
08a35a796169d137b9a111390cfe239900c3940a
[ "BSD-3-Clause" ]
182
2021-08-28T08:43:30.000Z
2021-12-21T01:58:14.000Z
import json import requests from django.conf import settings # from rest_framework.response import Response PLUGIN_ID = settings.PLUGIN_ID ORGANISATION_ID = settings.ORGANISATION_ID ROOM_COLLECTION_NAME = settings.ROOM_COLLECTION_NAME PROSPECTS_COLLECTION_NAME = settings.PROSPECTS_COLLECTION_NAME PROSPECTS_ROOM_ID = ...
30.605442
120
0.560569
bfeea00f39be3f5ae6eed5de581d6cd09ee440e0
3,503
py
Python
tests/test_utils.py
puetzk/packaging
64f82b53576497102de6b53bdeb79fc1c66c280a
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
tests/test_utils.py
puetzk/packaging
64f82b53576497102de6b53bdeb79fc1c66c280a
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
tests/test_utils.py
puetzk/packaging
64f82b53576497102de6b53bdeb79fc1c66c280a
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. import pytest from packaging.tags import Tag from packaging.utils import ( InvalidSdistFilename, InvalidWheelFilename, canonic...
28.25
80
0.533543
5a60d1415994e60667ed89b0131810579d59be1d
2,843
py
Python
tslearn/datasets/cached.py
andriyor/tslearn
6c93071b385a89112b82799ae5870daeca1ab88b
[ "BSD-2-Clause" ]
1,151
2020-04-30T08:24:14.000Z
2022-03-29T22:12:01.000Z
tslearn/datasets/cached.py
andriyor/tslearn
6c93071b385a89112b82799ae5870daeca1ab88b
[ "BSD-2-Clause" ]
216
2017-05-10T23:33:10.000Z
2020-04-30T07:28:26.000Z
tslearn/datasets/cached.py
andriyor/tslearn
6c93071b385a89112b82799ae5870daeca1ab88b
[ "BSD-2-Clause" ]
172
2017-06-02T11:53:50.000Z
2020-04-22T15:29:13.000Z
import numpy import os class CachedDatasets: """A convenience class to access cached time series datasets. Note, that these *cached datasets* are statically included into *tslearn* and are distinct from the ones in :class:`UCR_UEA_datasets`. When using the Trace dataset, please cite [1]_. See Al...
32.306818
79
0.558565
db01ba7869aba42f1979058ece66997bfc3f709c
35,526
py
Python
mkdocs/tests/config/config_options_tests.py
wmc1992/huggingface-accelerate-docs-zh
308851c27408a21ea80b4c23d3ab2bda548c4e8c
[ "BSD-2-Clause" ]
1
2022-01-04T12:26:45.000Z
2022-01-04T12:26:45.000Z
mkdocs/tests/config/config_options_tests.py
wmc1992/huggingface-accelerate-docs-zh
308851c27408a21ea80b4c23d3ab2bda548c4e8c
[ "BSD-2-Clause" ]
null
null
null
mkdocs/tests/config/config_options_tests.py
wmc1992/huggingface-accelerate-docs-zh
308851c27408a21ea80b4c23d3ab2bda548c4e8c
[ "BSD-2-Clause" ]
1
2022-02-13T09:41:59.000Z
2022-02-13T09:41:59.000Z
import os import sys import textwrap import unittest from unittest.mock import patch import mkdocs from mkdocs.config import config_options from mkdocs.config.base import Config from mkdocs.tests.base import tempdir from mkdocs.utils import yaml_load class OptionallyRequiredTest(unittest.TestCase): def test_emp...
34.126801
113
0.613016
7b140c06fc71663447eaff17a05271e0256189a1
209
py
Python
py2app_tests/basic_app_with_plugin/setup.py
flupke/py2app
8eb6c618f9c63d6ac970fb145a7f7782b71bcb4d
[ "MIT" ]
81
2015-11-29T12:17:39.000Z
2021-08-02T07:06:51.000Z
py2app_tests/basic_app_with_plugin/setup.py
flupke/py2app
8eb6c618f9c63d6ac970fb145a7f7782b71bcb4d
[ "MIT" ]
11
2016-10-23T16:34:10.000Z
2022-01-30T05:45:54.000Z
py2app_tests/basic_app_with_plugin/setup.py
flupke/py2app
8eb6c618f9c63d6ac970fb145a7f7782b71bcb4d
[ "MIT" ]
21
2016-01-25T18:46:31.000Z
2021-01-08T17:38:03.000Z
from setuptools import setup setup( name='BasicApp', app=['main.py'], options=dict( py2app=dict( include_plugins=['dummy1.qlgenerator', 'dummy2.mdimporter'], ) ) )
17.416667
72
0.574163
f692995960b6a5e6ccf264d3c194143612da3765
615
py
Python
proyectos_de_ley/stats/migrations/0001_initial.py
napsta32/proyectos_de_ley
63b7737e194a0958f9e95ca92773887000867bc7
[ "MIT" ]
12
2016-07-27T06:23:52.000Z
2021-09-08T16:09:52.000Z
proyectos_de_ley/stats/migrations/0001_initial.py
napsta32/proyectos_de_ley
63b7737e194a0958f9e95ca92773887000867bc7
[ "MIT" ]
58
2015-01-18T14:53:45.000Z
2021-02-19T06:27:19.000Z
proyectos_de_ley/stats/migrations/0001_initial.py
napsta32/proyectos_de_ley
63b7737e194a0958f9e95ca92773887000867bc7
[ "MIT" ]
10
2015-01-28T02:20:38.000Z
2020-11-22T06:23:26.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='ComisionCount', fields=[ ('id', models.AutoFiel...
24.6
114
0.547967
77fef25acf03e45ecec9b6d5e666515b3dbedfe2
7,674
py
Python
docs/src/conf.py
Xilinx/graphanalytics
7b8923b6494bc11708619edeac8d96eccfc76413
[ "BSD-3-Clause" ]
11
2021-01-31T17:50:55.000Z
2022-03-23T12:40:39.000Z
docs/src/conf.py
Xilinx/graphanalytics
7b8923b6494bc11708619edeac8d96eccfc76413
[ "BSD-3-Clause" ]
1
2021-03-11T22:02:19.000Z
2021-03-25T17:09:37.000Z
docs/src/conf.py
Xilinx/graphanalytics
7b8923b6494bc11708619edeac8d96eccfc76413
[ "BSD-3-Clause" ]
2
2021-03-02T18:41:47.000Z
2021-11-14T06:54:08.000Z
# # Copyright 2021 Xilinx, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
31.068826
102
0.667579
6c7877a121f0754b3b0be3aa438721eb3e302e44
9,182
py
Python
getInstance.py
rdustinb/fpga_code_ops
a4176067b007b13fb83c236eac7d73399769d8f7
[ "MIT" ]
1
2018-04-12T15:26:16.000Z
2018-04-12T15:26:16.000Z
getInstance.py
rdustinb/GAPy
a4176067b007b13fb83c236eac7d73399769d8f7
[ "MIT" ]
3
2015-10-23T18:17:59.000Z
2016-03-28T18:06:29.000Z
getInstance.py
rdustinb/GAPy
a4176067b007b13fb83c236eac7d73399769d8f7
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3.4 import getopt import sys from os import getcwd from os import getenv try: import pyperclip except ImportError: print("pyperclip (>= v1.3) is required for this tool. Please run:\n") print("\tpip install pyperclip\n") print("Also please note that on Gnome, xclip is required and on KDE...
33.148014
91
0.574167
b130b44fc851bc99be1ce4e43c34e20b4305012e
3,927
py
Python
Python/getVerificationStudy.py
KienTTran/PSU-CIDD-MaSim-Support
db4e3c514b1bb85bc3f20e75703d6be4967e98a9
[ "BSD-3-Clause" ]
null
null
null
Python/getVerificationStudy.py
KienTTran/PSU-CIDD-MaSim-Support
db4e3c514b1bb85bc3f20e75703d6be4967e98a9
[ "BSD-3-Clause" ]
null
null
null
Python/getVerificationStudy.py
KienTTran/PSU-CIDD-MaSim-Support
db4e3c514b1bb85bc3f20e75703d6be4967e98a9
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 # getVerificationStudy.py # # Query for verification studies and prompt the use to supply the replicate # id that they wish to download, the CSV file saved is formatted so it can be # used with the Matlab plotting function. # # Note that results for the model burn-in period are include and may con...
36.700935
107
0.670996
831e48ef47fff340ff1f555a2b1e53169d18e280
4,989
py
Python
napari/layers/surface/_tests/test_surface.py
Czaki/napari
9f423a19f7bb187f9d2e12fe9c7e063a38ccd07e
[ "BSD-3-Clause" ]
1
2022-03-01T19:38:06.000Z
2022-03-01T19:38:06.000Z
napari/layers/surface/_tests/test_surface.py
Czaki/napari
9f423a19f7bb187f9d2e12fe9c7e063a38ccd07e
[ "BSD-3-Clause" ]
17
2020-06-11T21:02:03.000Z
2021-02-02T19:10:19.000Z
napari/layers/surface/_tests/test_surface.py
pwinston/napari
5ebb3cc914038519591d7186a8a2d42b6fdc42b9
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pytest from napari._tests.utils import check_layer_world_data_extent from napari.layers import Surface def test_random_surface(): """Test instantiating Surface layer with random 2D data.""" np.random.seed(0) vertices = np.random.random((10, 2)) faces = np.random.randint(10, ...
32.396104
79
0.656845
431cd6fe42548124dfaff9e2aeb78562ddfd43e6
2,349
py
Python
benchmark/tabix_bench.py
Munchic/pysam
38fd53b521b99373e223a2ad42ec596124e98050
[ "MIT" ]
1
2018-06-29T01:47:33.000Z
2018-06-29T01:47:33.000Z
benchmark/tabix_bench.py
Munchic/pysam
38fd53b521b99373e223a2ad42ec596124e98050
[ "MIT" ]
null
null
null
benchmark/tabix_bench.py
Munchic/pysam
38fd53b521b99373e223a2ad42ec596124e98050
[ "MIT" ]
null
null
null
import gzip import pysam import timeit iterations = 5 repeats = 100 print ("repeats=", repeats, "iterations=", iterations) fn_compressed = '/tmp/windows_small.bed.gz' fn_uncompressed = '/tmp/windows_small.bed' def test_python_compressed(): '''iterate through with python.''' f = gzip.open( fn_compressed) ...
30.506494
78
0.664538
fb1af2b6ba7c64773e3eb0f188fe914ea2ee6f01
1,002
py
Python
src/server/api/API_ingest/dropbox_handler.py
carlos-dominguez/paws-data-pipeline
5c224e1f259c079631df7d3514a873875c633221
[ "MIT" ]
27
2019-11-20T20:20:30.000Z
2022-01-31T17:24:55.000Z
src/server/api/API_ingest/dropbox_handler.py
mrcrnkovich/paws-data-pipeline
7c0bd4c5f23276f541611cb564f2f5abbb6b9887
[ "MIT" ]
348
2019-11-26T20:34:02.000Z
2022-02-27T20:28:20.000Z
src/server/api/API_ingest/dropbox_handler.py
mrcrnkovich/paws-data-pipeline
7c0bd4c5f23276f541611cb564f2f5abbb6b9887
[ "MIT" ]
20
2019-12-03T23:50:33.000Z
2022-02-09T18:38:25.000Z
import dropbox try: from secrets_dict import DROPBOX_APP except ImportError: # Not running locally print("Couldn't get DROPBOX_APP from file, trying environment **********") from os import environ try: DROPBOX_APP = environ['DROPBOX_APP'] except KeyError: # Not in environment ...
27.833333
89
0.691617
84ab9dee85067655467e62f7492dac2084708fe8
724
py
Python
lib/commands/getpid.py
Tru5tNo1/shad0w
d26b790226d7a307c99d4e1f2a8309a9f09e088d
[ "MIT" ]
1,732
2020-04-28T20:13:43.000Z
2022-03-31T19:11:27.000Z
lib/commands/getpid.py
windows1988/shad0w
3b7e9b826108e03796c24a2bd80c2e2a87b2cfbd
[ "MIT" ]
70
2020-06-05T15:21:05.000Z
2022-01-07T13:07:19.000Z
lib/commands/getpid.py
windows1988/shad0w
3b7e9b826108e03796c24a2bd80c2e2a87b2cfbd
[ "MIT" ]
292
2020-04-29T02:17:24.000Z
2022-03-18T05:02:29.000Z
# # Get the current pid info # import json __description__ = "Show current process info" __author__ = "@_batsec_" __type__ = "process" EXEC_ID = 0x4000 OPCODE_PID = 0x7000 def pid_callback(shad0w, data): shad0w.debug.log(data, log=True, pre=False) return "" def main(shad0w, args): # check we actual...
20.685714
68
0.675414
5a3d56c830a56ebbc85e4d310f09c4f4be267ad2
713
py
Python
scripts/fix_umlaut_annotated_data.py
fraunhofer-iais/hybrid_summarization_eval
399505ca2bc3485b7e88840a83a803b03f7779c8
[ "Apache-2.0" ]
1
2021-09-13T22:59:46.000Z
2021-09-13T22:59:46.000Z
scripts/fix_umlaut_annotated_data.py
fraunhofer-iais/hybrid_summarization_eval
399505ca2bc3485b7e88840a83a803b03f7779c8
[ "Apache-2.0" ]
null
null
null
scripts/fix_umlaut_annotated_data.py
fraunhofer-iais/hybrid_summarization_eval
399505ca2bc3485b7e88840a83a803b03f7779c8
[ "Apache-2.0" ]
null
null
null
import unicodedata from konvens2020_summarization.data_classes import Corpus def fix_unicode(text): text = unicodedata.normalize('NFC', text) return text corpus = Corpus.from_excel('../data/raw_annotated/competition_data_annotated_full.xlsx') for doc in corpus: doc.text = fix_unicode(doc.text) doc....
25.464286
88
0.718093
9f0e77b2264f1079b759bbd01b92b5538946687d
522
py
Python
recognition/audio_settings.py
ReanGD/smart-home
0d3ebe3213ad275f64490218ca3dbc0128c12339
[ "Apache-2.0" ]
1
2018-07-31T21:17:37.000Z
2018-07-31T21:17:37.000Z
recognition/audio_settings.py
ReanGD/smart-home
0d3ebe3213ad275f64490218ca3dbc0128c12339
[ "Apache-2.0" ]
null
null
null
recognition/audio_settings.py
ReanGD/smart-home
0d3ebe3213ad275f64490218ca3dbc0128c12339
[ "Apache-2.0" ]
null
null
null
from typing import List from audio import AudioSettings def get_common_settings(settings: List[AudioSettings]) -> AudioSettings: channels = settings[0].channels sample_format = settings[0].sample_format sample_rate = settings[0].sample_rate for setting in settings: if (channels != setting.chan...
32.625
72
0.695402
5998e5f2fa71d33e9ec15d52dc2e6ecffb5a51d0
9,249
py
Python
dryxPython/tests/test_mysql.py
thespacedoctor/dryxPython
8f34f997192eebef9403bd40e4b7c1b1d216f53c
[ "BSD-3-Clause" ]
2
2015-08-01T16:00:44.000Z
2017-02-24T21:06:50.000Z
dryxPython/tests/test_mysql.py
thespacedoctor/dryxPython
8f34f997192eebef9403bd40e4b7c1b1d216f53c
[ "BSD-3-Clause" ]
null
null
null
dryxPython/tests/test_mysql.py
thespacedoctor/dryxPython
8f34f997192eebef9403bd40e4b7c1b1d216f53c
[ "BSD-3-Clause" ]
null
null
null
import os import nose from .. import mysql # SETUP AND TEARDOWN FIXTURE FUNCTIONS FOR THE ENTIRE MODULE def setUpModule(): import logging import logging.config import yaml "set up test fixtures" moduleDirectory = os.path.dirname(__file__) + "/../tests" # SETUP PATHS TO COMMONG DIRECTORIES F...
33.632727
485
0.597686
00a820f1b85b78f8abbf72068690d1c65c3cf863
398
py
Python
src/store/wsgi.py
BrayanPotosi/Python-DB-Manipulation
85921d3342d2bd2873cc32c593f748a3315c5b0b
[ "MIT" ]
null
null
null
src/store/wsgi.py
BrayanPotosi/Python-DB-Manipulation
85921d3342d2bd2873cc32c593f748a3315c5b0b
[ "MIT" ]
null
null
null
src/store/wsgi.py
BrayanPotosi/Python-DB-Manipulation
85921d3342d2bd2873cc32c593f748a3315c5b0b
[ "MIT" ]
null
null
null
""" WSGI config for store project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTING...
23.411765
78
0.786432
1e8368f854ea5feec16224e84f79f99e084a0ade
4,520
py
Python
spec/predict.py
deep-spin/spec-blackboxnlp
23db7a559e09ff7f63ede06b04cad226432b90db
[ "MIT" ]
2
2020-11-26T07:46:48.000Z
2021-07-28T08:06:58.000Z
spec/predict.py
deep-spin/spec-blackboxnlp
23db7a559e09ff7f63ede06b04cad226432b90db
[ "MIT" ]
null
null
null
spec/predict.py
deep-spin/spec-blackboxnlp
23db7a559e09ff7f63ede06b04cad226432b90db
[ "MIT" ]
null
null
null
import logging from pathlib import Path from spec import constants from spec import iterator from spec import models from spec.dataset import dataset, fields from spec.dataset.corpora import available_corpora from spec.predicter import Predicter logger = logging.getLogger(__name__) def run(options): fields_tupl...
36.451613
79
0.650664
1d2e6200beb9e1d46bb15a3c52933113762c9e30
586
py
Python
argparser/parser.py
mhsiddiqui/djrest-argparser
8c29701a5723cf0e732220e08a2e0ef41d0149eb
[ "MIT" ]
null
null
null
argparser/parser.py
mhsiddiqui/djrest-argparser
8c29701a5723cf0e732220e08a2e0ef41d0149eb
[ "MIT" ]
null
null
null
argparser/parser.py
mhsiddiqui/djrest-argparser
8c29701a5723cf0e732220e08a2e0ef41d0149eb
[ "MIT" ]
null
null
null
from rest_framework import serializers as parser from rest_framework.utils.serializer_helpers import ReturnDict class ArgParser(parser.Serializer): def parse(self, raise_exception=True): if self.is_valid(raise_exception=raise_exception): pass def update(self, instance, validated_data): ...
20.928571
63
0.687713
df606ee1a473de14daed31d42dc823f7c20def90
1,212
py
Python
setup.py
matekrk/swa_gaussian
ab56ee2126c8d3d24221fbbeaf5d1ecfd40fd697
[ "BSD-2-Clause" ]
337
2019-02-08T01:58:34.000Z
2022-03-26T08:47:56.000Z
setup.py
matekrk/swa_gaussian
ab56ee2126c8d3d24221fbbeaf5d1ecfd40fd697
[ "BSD-2-Clause" ]
16
2019-02-15T18:40:56.000Z
2021-07-07T07:16:56.000Z
setup.py
matekrk/swa_gaussian
ab56ee2126c8d3d24221fbbeaf5d1ecfd40fd697
[ "BSD-2-Clause" ]
66
2019-02-10T17:59:22.000Z
2022-03-20T03:37:34.000Z
from setuptools import setup import os import sys _here = os.path.abspath(os.path.dirname(__file__)) if sys.version_info[0] < 3: with open(os.path.join(_here, "README.rst")) as f: long_description = f.read() else: with open(os.path.join(_here, "README.rst"), encoding="utf-8") as f: long_descri...
27.545455
95
0.594059
b9984fdaeed6c63d5f18bc843e9aa098bd41950a
70
py
Python
apps/ImageSearch/algs/NLassoNN/__init__.py
AmFamMLTeam/NEXT
2b604230395be1b98e84115c20b5f509d5f24411
[ "Apache-2.0" ]
2
2020-11-16T17:01:36.000Z
2022-03-04T17:07:59.000Z
apps/ImageSearch/algs/NLassoNN/__init__.py
AmFamMLTeam/NEXT
2b604230395be1b98e84115c20b5f509d5f24411
[ "Apache-2.0" ]
null
null
null
apps/ImageSearch/algs/NLassoNN/__init__.py
AmFamMLTeam/NEXT
2b604230395be1b98e84115c20b5f509d5f24411
[ "Apache-2.0" ]
null
null
null
from apps.ImageSearch.algs.NLassoNN.NLassoNN import NLassoNN as MyAlg
35
69
0.857143
36aaacfe38b82b67bbe4d928e9636be8d2a1509f
4,534
py
Python
src/oci/_vendor/urllib3/util/request.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/_vendor/urllib3/util/request.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/_vendor/urllib3/util/request.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Modified Work: Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE...
30.42953
245
0.64689
d0e3fe5982ab89872f45567d2a1049ff782689fd
8,349
py
Python
wagtail/contrib/search_promotions/views.py
sonnybaker/wagtail
5522992c2923276fca40417401e8fb2c536b4b4f
[ "BSD-3-Clause" ]
8,851
2016-12-09T19:01:45.000Z
2022-03-31T04:45:06.000Z
wagtail/contrib/search_promotions/views.py
sonnybaker/wagtail
5522992c2923276fca40417401e8fb2c536b4b4f
[ "BSD-3-Clause" ]
5,197
2016-12-09T19:24:37.000Z
2022-03-31T22:17:55.000Z
wagtail/contrib/search_promotions/views.py
sonnybaker/wagtail
5522992c2923276fca40417401e8fb2c536b4b4f
[ "BSD-3-Clause" ]
2,548
2016-12-09T18:16:55.000Z
2022-03-31T21:34:38.000Z
from django.core.paginator import Paginator from django.db import transaction from django.db.models import Sum, functions from django.shortcuts import get_object_or_404, redirect from django.template.response import TemplateResponse from django.urls import reverse from django.utils.translation import gettext as _ from ...
40.726829
111
0.661397
17be173ec27b20ba9772796eead6c31e122edb76
2,058
py
Python
setup.py
matthewrmshin/demo
a2c959c893242d2214a85d60eab356997665f2cd
[ "MIT" ]
null
null
null
setup.py
matthewrmshin/demo
a2c959c893242d2214a85d60eab356997665f2cd
[ "MIT" ]
null
null
null
setup.py
matthewrmshin/demo
a2c959c893242d2214a85d60eab356997665f2cd
[ "MIT" ]
null
null
null
"""Demo project with bells and whistles.""" from ast import literal_eval import os from setuptools import setup, find_packages PKGNAME = 'demo' URL = 'https://github.com/matthewrmshin/demo' # Get the long description from the README file HERE = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(HER...
27.44
72
0.610301
e7efc51c851a4c564bdfada0474070d7584d6183
21,731
py
Python
giveaways/giveaways.py
Kuro-Rui/flare-cogs
f739e3a4a8c65bf0e10945d242ba0b82f96c6d3d
[ "MIT" ]
null
null
null
giveaways/giveaways.py
Kuro-Rui/flare-cogs
f739e3a4a8c65bf0e10945d242ba0b82f96c6d3d
[ "MIT" ]
null
null
null
giveaways/giveaways.py
Kuro-Rui/flare-cogs
f739e3a4a8c65bf0e10945d242ba0b82f96c6d3d
[ "MIT" ]
null
null
null
import asyncio import contextlib import logging from copy import deepcopy from datetime import datetime, timezone from typing import Optional import aiohttp import discord from redbot.core import Config, commands from redbot.core.commands.converter import TimedeltaConverter from redbot.core.utils.chat_formatting impor...
42.526419
240
0.587456
71c84b6d0eed09d2f40a7040e788202179c9327a
2,014
py
Python
src/attestation/azext_attestation/__init__.py
YingXue/azure-cli-extensions
30086b7fe22ed591daaae9019920db6c16aef9de
[ "MIT" ]
1
2020-09-16T03:47:44.000Z
2020-09-16T03:47:44.000Z
src/attestation/azext_attestation/__init__.py
YingXue/azure-cli-extensions
30086b7fe22ed591daaae9019920db6c16aef9de
[ "MIT" ]
null
null
null
src/attestation/azext_attestation/__init__.py
YingXue/azure-cli-extensions
30086b7fe22ed591daaae9019920db6c16aef9de
[ "MIT" ]
1
2019-05-02T00:55:30.000Z
2019-05-02T00:55:30.000Z
# -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incor...
42.851064
111
0.667329
6203ddd086f9f1c20fe16d0e85228cf2f3063f16
2,159
py
Python
chiadoge/consensus/deficit.py
Jsewill/chiadogecoin
55511228301a0b4d00c8f4da270be8b434777470
[ "Apache-2.0" ]
2
2021-07-05T14:34:35.000Z
2022-01-01T21:27:52.000Z
chiadoge/consensus/deficit.py
Jsewill/chiadogecoin
55511228301a0b4d00c8f4da270be8b434777470
[ "Apache-2.0" ]
null
null
null
chiadoge/consensus/deficit.py
Jsewill/chiadogecoin
55511228301a0b4d00c8f4da270be8b434777470
[ "Apache-2.0" ]
1
2021-07-07T11:08:36.000Z
2021-07-07T11:08:36.000Z
from typing import Optional from chiadoge.consensus.block_record import BlockRecord from chiadoge.consensus.constants import ConsensusConstants from chiadoge.util.ints import uint8, uint32 def calculate_deficit( constants: ConsensusConstants, height: uint32, prev_b: Optional[BlockRecord], overflow: b...
39.981481
104
0.635016
473f698937a8e95144e4a9da6e3272bed37c5874
741
py
Python
backend/api/serializers/ActividadSerializer.py
kukiamarilla/polijira
510dbc1473db973ac71fc68fa5a9b758b90a780b
[ "MIT" ]
1
2022-03-02T02:28:49.000Z
2022-03-02T02:28:49.000Z
backend/api/serializers/ActividadSerializer.py
kukiamarilla/polijira
510dbc1473db973ac71fc68fa5a9b758b90a780b
[ "MIT" ]
22
2021-09-01T17:44:25.000Z
2021-10-07T19:39:09.000Z
backend/api/serializers/ActividadSerializer.py
kukiamarilla/polijira
510dbc1473db973ac71fc68fa5a9b758b90a780b
[ "MIT" ]
null
null
null
from rest_framework import serializers from backend.api.models import Actividad from backend.api.serializers.UsuarioSerializer import UsuarioSerializer class ActividadSerializer(serializers.ModelSerializer): """ ActividadSerializer Serializer del modelo Actividad Args: serializers (ModelSerialize...
24.7
75
0.620783
3ca8edea2c3a8bbdb5df1d9824232d04445c8101
198
py
Python
life.py
mmoreirasouza/pythonzombiegame
fa36c72ad0734ba8d9db8753a6be5823d68571af
[ "Apache-2.0" ]
2
2018-03-03T21:42:55.000Z
2021-06-02T02:27:03.000Z
life.py
mmoreirasouza/pythonzombiegame
fa36c72ad0734ba8d9db8753a6be5823d68571af
[ "Apache-2.0" ]
null
null
null
life.py
mmoreirasouza/pythonzombiegame
fa36c72ad0734ba8d9db8753a6be5823d68571af
[ "Apache-2.0" ]
2
2019-04-28T16:59:35.000Z
2021-06-02T02:27:08.000Z
from rect import Rect class Life(Rect): Lifes = [] def __init__(self, x, y): self.health = 200 self.total_frames = 0 super(Life, self).__init__(x, y, 32, 32) Life.Lifes.append(self)
13.2
42
0.651515
f45edee2008083ac214eed672e7e2a07fea59725
13,269
py
Python
st2common/tests/unit/test_action_db_utils.py
FairwindsOps/st2
2b76ca740c4af0d6b2c1d1ba5534ce4133fd16fa
[ "Apache-2.0" ]
1
2021-04-08T03:21:49.000Z
2021-04-08T03:21:49.000Z
st2common/tests/unit/test_action_db_utils.py
FairwindsOps/st2
2b76ca740c4af0d6b2c1d1ba5534ce4133fd16fa
[ "Apache-2.0" ]
null
null
null
st2common/tests/unit/test_action_db_utils.py
FairwindsOps/st2
2b76ca740c4af0d6b2c1d1ba5534ce4133fd16fa
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
43.792079
98
0.6788
db80b632e3c2017221a11f325b27d29615a898ad
1,770
py
Python
get_team_roles/team_roles.py
erikpaasonen/public-support-scripts
3e9750ed2c6e6c162776e41d33330666f649fe39
[ "Apache-2.0" ]
59
2015-01-11T01:59:36.000Z
2022-03-07T07:51:08.000Z
get_team_roles/team_roles.py
erikpaasonen/public-support-scripts
3e9750ed2c6e6c162776e41d33330666f649fe39
[ "Apache-2.0" ]
12
2019-03-22T23:14:48.000Z
2022-03-25T20:13:17.000Z
get_team_roles/team_roles.py
erikpaasonen/public-support-scripts
3e9750ed2c6e6c162776e41d33330666f649fe39
[ "Apache-2.0" ]
38
2015-01-26T18:53:25.000Z
2021-12-16T17:39:06.000Z
import argparse import sys import pdpyras def get_teams(session, comma_separated): if comma_separated: sys.stdout.write("Team ID, Team Name, User ID, User name, Team role\n") try: for team in session.iter_all('teams'): get_team_members(team['id'], team['name'], session, comma_separa...
45.384615
148
0.622034
77b3fcdb8b3fba5cf9916fd0ff94bab72a1e63e9
11,064
py
Python
lib/cogs/duels.py
davidgao93/KenCoin
61654a66b6ec6cd49cd9e6f04d956164655d145e
[ "Unlicense" ]
null
null
null
lib/cogs/duels.py
davidgao93/KenCoin
61654a66b6ec6cd49cd9e6f04d956164655d145e
[ "Unlicense" ]
1
2021-07-20T02:00:20.000Z
2021-07-20T12:08:59.000Z
lib/cogs/duels.py
davidgao93/KenCoin
61654a66b6ec6cd49cd9e6f04d956164655d145e
[ "Unlicense" ]
null
null
null
import re import time from datetime import datetime from random import randint from discord import Member, Embed from asyncio import sleep from discord.ext.commands import Cog from discord.ext.commands import command from discord.ext.commands import BadArgument from ..db import db class Duels(Cog): def __init__(...
56.44898
182
0.510936
ebec900eaa0a138c4c5ad71639d2fe3e8d894063
1,946
py
Python
imagenet/create_test_set.py
cenkbircanoglu/openface
2d54ca065b6ff6ba816299d25f296bc1d13ad761
[ "Apache-2.0" ]
1
2019-03-28T07:28:35.000Z
2019-03-28T07:28:35.000Z
imagenet/create_test_set.py
cenkbircanoglu/openface
2d54ca065b6ff6ba816299d25f296bc1d13ad761
[ "Apache-2.0" ]
null
null
null
imagenet/create_test_set.py
cenkbircanoglu/openface
2d54ca065b6ff6ba816299d25f296bc1d13ad761
[ "Apache-2.0" ]
1
2019-12-11T05:30:33.000Z
2019-12-11T05:30:33.000Z
import os from PIL import Image def get_test_set(mapping_path, test_mapping, test_folder, output, dim): with open(mapping_path, mode='rb') as f: train_data = f.readlines() train_classes = {} test_classes = {} for d in train_data: path, cls = d.replace('\n', '').split(" ") cls =...
37.423077
96
0.626927
5e99459e92404a877324d474db67774039c64723
8,869
py
Python
src/ssh/azext_ssh/ssh_info.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
null
null
null
src/ssh/azext_ssh/ssh_info.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
9
2022-03-25T19:35:49.000Z
2022-03-31T06:09:47.000Z
src/ssh/azext_ssh/ssh_info.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
1
2022-03-10T22:13:02.000Z
2022-03-10T22:13:02.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
44.567839
116
0.62104
46dfa4f1ece16f58ac21ec79f1fdcef5e7eb8c01
1,620
py
Python
scripts/west_commands/completion.py
chen-png/zephyr
11e91a83c1f6923a0078834404e238e5b7df3693
[ "Apache-2.0" ]
35
2018-09-09T13:32:51.000Z
2022-02-13T03:38:55.000Z
scripts/west_commands/completion.py
chen-png/zephyr
11e91a83c1f6923a0078834404e238e5b7df3693
[ "Apache-2.0" ]
12
2019-08-15T10:37:21.000Z
2019-09-11T18:23:58.000Z
scripts/west_commands/completion.py
chen-png/zephyr
11e91a83c1f6923a0078834404e238e5b7df3693
[ "Apache-2.0" ]
13
2018-11-16T16:40:53.000Z
2021-12-28T09:18:58.000Z
# Copyright (c) 2019 Nordic Semiconductor ASA # # SPDX-License-Identifier: Apache-2.0 import argparse import os from west import log from west.commands import WestCommand # Relative to the folder where this script lives COMPLETION_REL_PATH = 'completion/west-completion' class Completion(WestCommand): def __ini...
31.764706
78
0.601235
34f3fe9f8394562889cdcfb8f2a9a4429fd86222
2,907
py
Python
release/stubs.min/System/__init___parts/AsyncCallback.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/__init___parts/AsyncCallback.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/__init___parts/AsyncCallback.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class AsyncCallback(MulticastDelegate, ICloneable, ISerializable): """ References a method to be called when a corresponding asynchronous operation completes. AsyncCallback(object: object,method: IntPtr) """ def BeginInvoke(self, ar, callback, object): """ BeginInvoke(self: AsyncCallba...
27.685714
221
0.664259
87a12c1b0fdb3f88f53570df035bbe91dcd034a4
1,393
py
Python
lab6.py
uni-student234/ISAT252
4c0942919c432456fe26900c23f076161b4cc266
[ "MIT" ]
null
null
null
lab6.py
uni-student234/ISAT252
4c0942919c432456fe26900c23f076161b4cc266
[ "MIT" ]
null
null
null
lab6.py
uni-student234/ISAT252
4c0942919c432456fe26900c23f076161b4cc266
[ "MIT" ]
null
null
null
""" Week 2, day 6, lab 6 """ #3.1 for each_num in range(0, 6): #numbers 0 to 5 if each_num is not 3: #don't count 3 print(each_num) #exclude 3 and 6 #3.2 i = 1 #set another variable for num in range(1, 6): #from 0 to 5 i = i*num #multiplying th...
21.765625
71
0.496052
9f8487724cc0df75e6514be2775b216b3a1c1992
925
py
Python
jcatalog/transform/scielo_orcid_update.py
ednilson/jcatalog
e36188e39fbf37c74e37445060e1bafa18a3e20b
[ "BSD-2-Clause" ]
null
null
null
jcatalog/transform/scielo_orcid_update.py
ednilson/jcatalog
e36188e39fbf37c74e37445060e1bafa18a3e20b
[ "BSD-2-Clause" ]
null
null
null
jcatalog/transform/scielo_orcid_update.py
ednilson/jcatalog
e36188e39fbf37c74e37445060e1bafa18a3e20b
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 ''' This script reads data from various sources to process and store in MongoDB. ''' import pyexcel import logging import models from accent_remover import * logging.basicConfig(filename='logs/times.info.txt', level=logging.INFO) logger = logging.getLogger(__name__) def scielocitations(filename): ...
22.02381
76
0.623784
8b25454e0acfd33b4d7f7ccf518c01eefe0d45bf
6,767
py
Python
gen_video.py
joshua-paperspace/BlendGAN
ab512453d6fcd6906cc60aa98a443d0339b00b66
[ "MIT" ]
403
2021-11-01T06:26:27.000Z
2022-03-30T12:18:34.000Z
gen_video.py
joshua-paperspace/BlendGAN
ab512453d6fcd6906cc60aa98a443d0339b00b66
[ "MIT" ]
13
2021-11-20T08:09:23.000Z
2022-01-03T10:21:39.000Z
gen_video.py
joshua-paperspace/BlendGAN
ab512453d6fcd6906cc60aa98a443d0339b00b66
[ "MIT" ]
48
2021-11-01T06:48:43.000Z
2022-03-28T02:30:33.000Z
import argparse import os import cv2 import numpy as np import torch from model import Generator from psp_encoder.psp_encoders import PSPEncoder from utils import ten2cv, cv2ten import glob from tqdm import tqdm import random seed = 0 random.seed(seed) np.random.seed(seed) torch.manual_seed(seed) torch.cuda.manua...
34.176768
118
0.653465
caf572483ad8b6d50d8906cc2f4e8fe89a981e38
342
py
Python
contacts/admin.py
fion21/Alicante-Properties_Django
3e48afa42fdbba8d5a8355c06e969ca39bfbb2f1
[ "MIT" ]
null
null
null
contacts/admin.py
fion21/Alicante-Properties_Django
3e48afa42fdbba8d5a8355c06e969ca39bfbb2f1
[ "MIT" ]
3
2021-06-10T22:35:13.000Z
2022-01-13T02:13:50.000Z
contacts/admin.py
fion21/Alicante-Properties_Django
3e48afa42fdbba8d5a8355c06e969ca39bfbb2f1
[ "MIT" ]
1
2020-02-18T23:22:54.000Z
2020-02-18T23:22:54.000Z
from django.contrib import admin from .models import Contact class ContactAdmin(admin.ModelAdmin): list_display = ('id', 'name', 'listing', 'email', 'contact_date') list_display_links = ('id', 'name') search_fields = ('name', 'email', 'listing') list_per_page = 25 admin.site.register(Co...
24.428571
70
0.669591
ebd52cd499e88f2ba8ba0ae1dd0b21f344679083
6,455
py
Python
torchmeta/tests/modules/test_activation.py
hanseungwook/pytorch-meta
c385b921d14821cdf12b01bd7adc7010fc4930d9
[ "MIT" ]
1,704
2019-09-16T15:08:18.000Z
2022-03-31T22:36:43.000Z
torchmeta/tests/modules/test_activation.py
hanseungwook/pytorch-meta
c385b921d14821cdf12b01bd7adc7010fc4930d9
[ "MIT" ]
135
2019-09-20T15:34:03.000Z
2022-03-13T23:31:17.000Z
torchmeta/tests/modules/test_activation.py
hanseungwook/pytorch-meta
c385b921d14821cdf12b01bd7adc7010fc4930d9
[ "MIT" ]
221
2019-09-17T09:01:21.000Z
2022-03-30T03:23:35.000Z
import pytest import numpy as np import torch import torch.nn as nn from collections import OrderedDict from torchmeta.modules import MetaModule from torchmeta.modules.activation import MetaMultiheadAttention @pytest.mark.parametrize('bias', [True, False]) @pytest.mark.parametrize('add_bias_kv', [True, False]) @pyt...
39.601227
87
0.620759
5aa08fa5e5b7bfce5e48c4c71c3bc217748f6b19
7,910
py
Python
sdk/python/pulumi_gcp/organizations/get_folder.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
121
2018-06-18T19:16:42.000Z
2022-03-31T06:06:48.000Z
sdk/python/pulumi_gcp/organizations/get_folder.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
492
2018-06-22T19:41:03.000Z
2022-03-31T15:33:53.000Z
sdk/python/pulumi_gcp/organizations/get_folder.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
43
2018-06-19T01:43:13.000Z
2022-03-23T22:43:37.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
37.488152
193
0.663843
e40a7a8b930ea76f7a78fb4d1cc6dd5c7d186afa
8,223
py
Python
mayan/apps/sources/tests/mocks.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
4
2021-09-02T00:16:30.000Z
2021-09-09T22:25:15.000Z
mayan/apps/sources/tests/mocks.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
86
2021-09-01T23:53:02.000Z
2021-09-20T02:25:10.000Z
mayan/apps/sources/tests/mocks.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
70
2021-09-01T12:54:51.000Z
2022-02-16T00:53:18.000Z
from django.utils.encoding import force_bytes, force_text from .literals import TEST_EMAIL_BASE64_FILENAME, TEST_STAGING_PREVIEW_WIDTH class MockIMAPMessage: def __init__(self, uid): self.flags = [] self.mailbox = None self.uid = uid def flags_add(self, flags_string): for fla...
28.453287
86
0.550043
eac05d6a7720904c4f08d964db59269b4c75c687
163
py
Python
Kurs Work/Tree.py
Delivery-Klad/Kurs_work
522641ff2537961bf66603961a9666b00a4fef76
[ "Apache-2.0" ]
2
2020-01-02T01:39:59.000Z
2020-07-11T21:49:31.000Z
Kurs Work/Tree.py
Delivery-Klad/Kurs_work
522641ff2537961bf66603961a9666b00a4fef76
[ "Apache-2.0" ]
null
null
null
Kurs Work/Tree.py
Delivery-Klad/Kurs_work
522641ff2537961bf66603961a9666b00a4fef76
[ "Apache-2.0" ]
1
2019-11-21T06:53:38.000Z
2019-11-21T06:53:38.000Z
class TreeNode: # класс дерева def __init__(self, data, left=None, right=None): self.data = data self.left = left self.right = right
23.285714
52
0.601227
b12889f450d6a8cff39a76b1ad4004fc8430252d
20,536
py
Python
oauth_provider/tests/issues.py
ovidioreyna/django-oauth-plus
b9b64a3ac24fd11f471763c88462bbf3c53e46e6
[ "BSD-3-Clause" ]
null
null
null
oauth_provider/tests/issues.py
ovidioreyna/django-oauth-plus
b9b64a3ac24fd11f471763c88462bbf3c53e46e6
[ "BSD-3-Clause" ]
4
2018-01-11T20:59:12.000Z
2020-05-12T12:48:53.000Z
oauth_provider/tests/issues.py
ovidioreyna/django-oauth-plus
b9b64a3ac24fd11f471763c88462bbf3c53e46e6
[ "BSD-3-Clause" ]
3
2020-08-25T21:07:33.000Z
2021-04-08T15:58:28.000Z
from __future__ import absolute_import, print_function import datetime import json import time import oauth2 as oauth import six.moves.urllib.error import six.moves.urllib.parse import six.moves.urllib.request from django.conf import settings from django.test.client import RequestFactory from six.moves.urllib.parse i...
41.403226
133
0.668631
7151fee6151e8c36df2d1e05e3f52c888c6cb370
3,246
py
Python
tools/xenserver/populate_other_config.py
bopopescu/OpenStack-DNRM-Nova
7354f378398850113ac93b511547ed05218dc770
[ "Apache-2.0" ]
1
2021-04-08T10:13:03.000Z
2021-04-08T10:13:03.000Z
tools/xenserver/populate_other_config.py
bopopescu/OpenStack-DNRM-Nova
7354f378398850113ac93b511547ed05218dc770
[ "Apache-2.0" ]
1
2018-01-19T07:50:49.000Z
2018-01-19T07:50:49.000Z
tools/xenserver/populate_other_config.py
bopopescu/OpenStack-DNRM-Nova
7354f378398850113ac93b511547ed05218dc770
[ "Apache-2.0" ]
1
2020-07-24T08:49:47.000Z
2020-07-24T08:49:47.000Z
#!/usr/bin/env python # Copyright 2013 OpenStack Foundation # # 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 l...
30.336449
79
0.69162
8811b2902d59659676bb07d4673a0fc253902cae
297
py
Python
PIC/test/TestCfg.py
LawrenceK/webbrick
cf81416653f091bacfbf29eb6e4507db33ac0ca6
[ "BSD-3-Clause" ]
1
2019-01-21T13:10:49.000Z
2019-01-21T13:10:49.000Z
PIC/test/TestCfg.py
LawrenceK/webbrick
cf81416653f091bacfbf29eb6e4507db33ac0ca6
[ "BSD-3-Clause" ]
null
null
null
PIC/test/TestCfg.py
LawrenceK/webbrick
cf81416653f091bacfbf29eb6e4507db33ac0ca6
[ "BSD-3-Clause" ]
null
null
null
# $Id:$ # class TestWbConfig: _wbAddress = "10.100.100.100" # these should match what the webBrick has. _dwellCount = 4 _spCount = 8 _diCount = 12 _aiCount = 4 _doCount = 8 _aoCount = 4 _tempCount = 5 _schedCount = 16 _sceneCount = 12
17.470588
48
0.569024
3e2190e48d1dcf00656dec0f37e5c457741ad884
1,150
py
Python
ricerca_app/migrations/0027_auto_20211117_0938.py
UniversitaDellaCalabria/Ricerca
b46157d3182d1c59cff4d36cc63b9e89f2f320c9
[ "Apache-2.0" ]
null
null
null
ricerca_app/migrations/0027_auto_20211117_0938.py
UniversitaDellaCalabria/Ricerca
b46157d3182d1c59cff4d36cc63b9e89f2f320c9
[ "Apache-2.0" ]
1
2020-08-03T15:12:46.000Z
2020-09-03T22:12:16.000Z
ricerca_app/migrations/0027_auto_20211117_0938.py
UniversitaDellaCalabria/Ricerca
b46157d3182d1c59cff4d36cc63b9e89f2f320c9
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.7 on 2021-11-17 09:38 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('ricerca_app', '0026_auto_20211117_0859'), ] operations = [ migrations.CreateModel( name='Labora...
32.857143
177
0.610435
8461f68b626b787a8b9488cb3ea373ebb61e0614
1,370
py
Python
provided-basic-tests/tests/proj3.py
wangsanfeng1998/xv6-3
15bf3cfb6275f70d682ea5780e654a387d1df001
[ "Xnet", "X11" ]
null
null
null
provided-basic-tests/tests/proj3.py
wangsanfeng1998/xv6-3
15bf3cfb6275f70d682ea5780e654a387d1df001
[ "Xnet", "X11" ]
null
null
null
provided-basic-tests/tests/proj3.py
wangsanfeng1998/xv6-3
15bf3cfb6275f70d682ea5780e654a387d1df001
[ "Xnet", "X11" ]
null
null
null
import sys, os, inspect import toolspath from testing import Xv6Test, Xv6Build curdir = os.path.realpath(os.path.dirname(inspect.getfile(inspect.currentframe()))) def get_description(name): cfile = os.path.join(curdir, 'ctests/proj3', name+'.c') with open(cfile, 'r') as f: desc = f.readline() desc = desc.st...
24.464286
83
0.668613
0dcf168cec9559877cf933092cabde33eb891c19
5,777
py
Python
extra_foam/gui/windows/tests/test_plot_widgets.py
European-XFEL/EXtra-foam
f8d225db6b8923d0cce9db2b8c8a80613600b64c
[ "BSD-3-Clause" ]
7
2019-11-27T09:31:37.000Z
2022-02-12T21:28:49.000Z
extra_foam/gui/windows/tests/test_plot_widgets.py
European-XFEL/EXtra-foam
f8d225db6b8923d0cce9db2b8c8a80613600b64c
[ "BSD-3-Clause" ]
172
2019-12-03T07:56:02.000Z
2022-03-25T15:46:45.000Z
extra_foam/gui/windows/tests/test_plot_widgets.py
European-XFEL/EXtra-foam
f8d225db6b8923d0cce9db2b8c8a80613600b64c
[ "BSD-3-Clause" ]
9
2019-11-27T09:32:38.000Z
2022-01-05T09:56:10.000Z
import unittest from unittest.mock import patch from extra_foam.logger import logger from extra_foam.gui import mkQApp from extra_foam.gui.plot_widgets.plot_items import ScatterPlotItem from extra_foam.pipeline.data_model import ProcessedData from extra_foam.pipeline.tests import _TestDataMixin app = mkQApp() logger...
31.227027
84
0.680284
d717cebc76262f34fa0233e27599a1fa474de1fd
3,178
py
Python
setup.py
jakevdp/MyST-NB
156d50e6b59553c06423e7541be3ed8e5802c863
[ "BSD-3-Clause" ]
1
2021-03-18T07:57:54.000Z
2021-03-18T07:57:54.000Z
setup.py
jakevdp/MyST-NB
156d50e6b59553c06423e7541be3ed8e5802c863
[ "BSD-3-Clause" ]
null
null
null
setup.py
jakevdp/MyST-NB
156d50e6b59553c06423e7541be3ed8e5802c863
[ "BSD-3-Clause" ]
null
null
null
"""MyST-NB package setup.""" from setuptools import find_packages, setup # Manually finding the version so we don't need to import our module text = open("./myst_nb/__init__.py").read() for line in text.split("\n"): if "__version__" in line: break version = line.split("= ")[-1].strip('"') setup( name=...
32.10101
84
0.539333
ab3f54bcb668fea52cb3fd659528f73b14600d6e
1,222
py
Python
test/test_image_log.py
LayeredInsight/layint_api_python
a5c9a5b24098bd823c5102b7ab9e4745432f19b4
[ "Apache-2.0" ]
null
null
null
test/test_image_log.py
LayeredInsight/layint_api_python
a5c9a5b24098bd823c5102b7ab9e4745432f19b4
[ "Apache-2.0" ]
null
null
null
test/test_image_log.py
LayeredInsight/layint_api_python
a5c9a5b24098bd823c5102b7ab9e4745432f19b4
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Layered Insight Assessment, Compliance, Witness & Control LI Assessment & Compliance performs static vulnerability analysis, license and package compliance. LI Witness provides deep insight and analytics into containerized applications. Control provides dynamic runtime security and analyti...
27.155556
383
0.728314
b7886a78dcf52542cd225548213e6e637b43c166
14,533
py
Python
catalyst/finance/controls.py
red-eagle-eye/catalyst
4a72e8158a49548095f1e7fbbff9e7a52d8dca4b
[ "Apache-2.0" ]
6
2019-05-23T17:52:22.000Z
2022-01-30T08:13:19.000Z
catalyst/finance/controls.py
red-eagle-eye/catalyst
4a72e8158a49548095f1e7fbbff9e7a52d8dca4b
[ "Apache-2.0" ]
null
null
null
catalyst/finance/controls.py
red-eagle-eye/catalyst
4a72e8158a49548095f1e7fbbff9e7a52d8dca4b
[ "Apache-2.0" ]
null
null
null
# # Copyright 2014 Quantopian, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
32.805869
79
0.594165
2b81d3e3ebbbe9699111be22c330ad0fde3f8f0c
1,080
py
Python
pystripe/api/utils.py
gbozee/pystripe
42ffef976bfec5ee0021c53dcd29676abdf78204
[ "MIT" ]
null
null
null
pystripe/api/utils.py
gbozee/pystripe
42ffef976bfec5ee0021c53dcd29676abdf78204
[ "MIT" ]
null
null
null
pystripe/api/utils.py
gbozee/pystripe
42ffef976bfec5ee0021c53dcd29676abdf78204
[ "MIT" ]
1
2019-11-05T18:51:00.000Z
2019-11-05T18:51:00.000Z
def charge_data(raw_data, full_auth=False): data = raw_data["object"] if full_auth: return data status = data.get("status") amount_refunded = data.get("amount_refunded") if amount_refunded: amount_refunded = amount_refunded / 100 amount = data["amount"] session = dat...
32.727273
69
0.602778
7b223786d4b2fca11af07d990740743edf7345e9
622
py
Python
codewars/duck_duck_goose.py
davidlukac/codekata-python
e4a9297fa658d2d36de43b3547353be85c08e990
[ "MIT" ]
null
null
null
codewars/duck_duck_goose.py
davidlukac/codekata-python
e4a9297fa658d2d36de43b3547353be85c08e990
[ "MIT" ]
null
null
null
codewars/duck_duck_goose.py
davidlukac/codekata-python
e4a9297fa658d2d36de43b3547353be85c08e990
[ "MIT" ]
null
null
null
# Duck Duck Goose # http://www.codewars.com/kata/duck-duck-goose import unittest from typing import List class Player: def __init__(self, name: str): self.name = name def duck_duck_goose(players: List[Player], goose: int) -> str: return players[goose % len(players) - 1].name class TestDuckDuckGoo...
22.214286
62
0.670418
8d770de7b40ac78a6362fe1840f0447f8b96d4fd
14,992
py
Python
web_requester/requester.py
JoseVL92/http-requests
fa846e0d0e59943847ee4c871bc701726ffec909
[ "MIT" ]
1
2020-01-09T07:37:50.000Z
2020-01-09T07:37:50.000Z
web_requester/requester.py
JoseVL92/http-requests
fa846e0d0e59943847ee4c871bc701726ffec909
[ "MIT" ]
null
null
null
web_requester/requester.py
JoseVL92/http-requests
fa846e0d0e59943847ee4c871bc701726ffec909
[ "MIT" ]
null
null
null
import aiohttp import asyncio import logging import requests import sys from aiohttp.client_exceptions import ClientConnectionError, ClientResponseError from concurrent.futures import TimeoutError from urllib3.util import parse_url """ From experience, I know that aiohttp library causes problems behind an http proxy ...
39.766578
129
0.623599
06c4d88d2fb5216e178e4de47efbcc471cd1a57e
1,519
gyp
Python
vendor/mapbox-gl-native/vendor/mapbox-base/mapbox/pixelmatch-cpp/pixelmatch.gyp
aic-develop/vietmaps-gl-native-ios-source
c73c28c4f1ea60ecd4c83c8b49f6947ee06f24f2
[ "BSL-1.0", "Apache-2.0" ]
33
2015-11-20T23:33:50.000Z
2022-02-25T21:28:41.000Z
vendor/mapbox-gl-native/vendor/mapbox-base/mapbox/pixelmatch-cpp/pixelmatch.gyp
aic-develop/vietmaps-gl-native-ios-source
c73c28c4f1ea60ecd4c83c8b49f6947ee06f24f2
[ "BSL-1.0", "Apache-2.0" ]
5
2016-09-28T11:37:41.000Z
2022-02-05T11:08:44.000Z
vendor/mapbox-gl-native/vendor/mapbox-base/mapbox/pixelmatch-cpp/pixelmatch.gyp
aic-develop/vietmaps-gl-native-ios-source
c73c28c4f1ea60ecd4c83c8b49f6947ee06f24f2
[ "BSL-1.0", "Apache-2.0" ]
5
2016-12-30T16:44:22.000Z
2021-02-21T12:55:46.000Z
{ 'target_defaults': { 'default_configuration': 'Release', 'cflags_cc': [ '-std=c++11', '-Wall', '-Wextra', '-Wshadow', '-fno-rtti', '-fexceptions' ], 'xcode_settings': { 'CLANG_CXX_LANGUAGE_STANDARD':'c++11', 'MACOSX_DEPLOYMENT_TARGET': '10.7', 'CLANG_CXX_LIBRARY': 'libc++', 'OTHE...
31
114
0.518762