hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
239
max_forks_repo_name
stringlengths
5
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.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
797070b30f8f6be3b5b70effa1f71467bcfe2608
896
py
Python
my_package/Interpolation/setup.py
ZurMaD/DAIN
22570e51e84f7dfd48ba4f88e6ee7c9ff1b0b123
[ "MIT" ]
null
null
null
my_package/Interpolation/setup.py
ZurMaD/DAIN
22570e51e84f7dfd48ba4f88e6ee7c9ff1b0b123
[ "MIT" ]
null
null
null
my_package/Interpolation/setup.py
ZurMaD/DAIN
22570e51e84f7dfd48ba4f88e6ee7c9ff1b0b123
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import torch from setuptools import setup, find_packages from torch.utils.cpp_extension import BuildExtension, CUDAExtension cxx_args = ['-std=c++11'] nvcc_args = [ '-gencode', 'arch=compute_50,code=sm_50', '-gencode', 'arch=compute_52,code=sm_52', '-gencode', 'arch=compu...
28
67
0.664063
797071a68ab0f01cd78c7bb5fed589330a67703c
2,070
py
Python
neural_net/neural_net.py
abelard16/ai_captcha
31b558aec5134a97cc87ac3ed7c6e7b498d12592
[ "MIT" ]
null
null
null
neural_net/neural_net.py
abelard16/ai_captcha
31b558aec5134a97cc87ac3ed7c6e7b498d12592
[ "MIT" ]
null
null
null
neural_net/neural_net.py
abelard16/ai_captcha
31b558aec5134a97cc87ac3ed7c6e7b498d12592
[ "MIT" ]
null
null
null
""" Author: Rajat Gupta Neural Network Model """ import math class NeuralNetwork(object): """ Neural Network Library """ def dot(v, w): """ v_1 * w_1 + ... + v_n * w_n """ return sum(v_i * w_i for v_i, w_i in zip(v, w)) def sigmoid(self, x): """ Sig...
27.6
74
0.560386
797071ba615407516ba2fd6d79fc6bbbf7a65079
2,709
py
Python
ckan_cloud_operator/logs.py
aluminiumgeek/ckan-cloud-operator
c667f2d9b8fefb0abd3d92ce58f1a9eee4417c88
[ "MIT" ]
null
null
null
ckan_cloud_operator/logs.py
aluminiumgeek/ckan-cloud-operator
c667f2d9b8fefb0abd3d92ce58f1a9eee4417c88
[ "MIT" ]
null
null
null
ckan_cloud_operator/logs.py
aluminiumgeek/ckan-cloud-operator
c667f2d9b8fefb0abd3d92ce58f1a9eee4417c88
[ "MIT" ]
null
null
null
from logging import CRITICAL, ERROR, WARNING, INFO, DEBUG, getLevelName import datetime from distutils.util import strtobool import os from ruamel import yaml from ruamel.yaml.serializer import Serializer as ruamelSerializer from ruamel.yaml.emitter import Emitter as ruamelEmitter import sys def info(*args, **kwargs)...
27.927835
97
0.644149
7970722ee257d2f9a48d7d828c53f58ea5ff6638
80,019
py
Python
lib/google/cloud/vision_v1p3beta1/gapic/product_search_client.py
sangwo/dubhacks2019
0074ef9cdfaf25b84ce40bbb97872b07167ad83f
[ "MIT" ]
2
2021-11-26T07:08:43.000Z
2022-03-07T20:20:04.000Z
lib/google/cloud/vision_v1p3beta1/gapic/product_search_client.py
sangwo/dubhacks2019
0074ef9cdfaf25b84ce40bbb97872b07167ad83f
[ "MIT" ]
11
2021-04-08T22:10:50.000Z
2022-03-12T00:52:35.000Z
lib/google/cloud/vision_v1p3beta1/gapic/product_search_client.py
sangwo/dubhacks2019
0074ef9cdfaf25b84ce40bbb97872b07167ad83f
[ "MIT" ]
1
2020-07-25T20:36:02.000Z
2020-07-25T20:36:02.000Z
# -*- coding: utf-8 -*- # # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
41.633195
159
0.605406
79707276ac1d9b758f6ce50e487f55ae99c415cc
15,540
py
Python
gae_proxy/local/pac_server.py
TDUncle/XX-Net
24b2af60dc0abc1c26211813064bb14c1e22bac8
[ "BSD-2-Clause" ]
1
2016-03-28T03:27:59.000Z
2016-03-28T03:27:59.000Z
gae_proxy/local/pac_server.py
TDUncle/XX-Net
24b2af60dc0abc1c26211813064bb14c1e22bac8
[ "BSD-2-Clause" ]
null
null
null
gae_proxy/local/pac_server.py
TDUncle/XX-Net
24b2af60dc0abc1c26211813064bb14c1e22bac8
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # coding:utf-8 import os import base64 import time import re import thread import urllib2 import urlparse import simple_http_server from xlog import getLogger xlog = getLogger("gae_proxy") from config import config default_pacfile = os.path.join(os.path.dirname(os.path.abspath(__file__)), co...
45.438596
160
0.523295
797073126aa88316365cd64636974613cedcb66b
1,252
py
Python
installer/nftables.py
CyberKoo/ClashMagicRouter
c7d17f9b62085998af0ce030d227f843009be301
[ "MIT" ]
2
2021-06-03T07:23:18.000Z
2021-06-04T14:55:17.000Z
installer/nftables.py
CyberKoo/ClashMagicRouter
c7d17f9b62085998af0ce030d227f843009be301
[ "MIT" ]
null
null
null
installer/nftables.py
CyberKoo/ClashMagicRouter
c7d17f9b62085998af0ce030d227f843009be301
[ "MIT" ]
3
2021-06-03T07:23:02.000Z
2021-10-29T22:40:39.000Z
import shutil from command_helper import CommandHelper from exception import InadequateRequirementsException from file_helper import FileHelper from installer.installer import Installer from systemd_helper import SystemdHelper class NftablesInstaller(Installer): def _check_requirements(self): if not Comm...
43.172414
113
0.711661
7970733fd9230dbe1f5178db960db3db57cce1fa
153
py
Python
netbox_devicetype_importer/admin.py
k01ek/netbox-devicetype-importer
c74cff18c5f3b45e5c8402ad74fdd642208a0e88
[ "Apache-2.0" ]
17
2021-12-17T15:26:59.000Z
2022-03-28T13:23:23.000Z
netbox_newplugin/admin.py
k01ek/netbox-plugin-skeleton
d114e9fe511b9c29e112d5bb2316d394764c52b8
[ "Apache-2.0" ]
2
2021-11-26T15:21:35.000Z
2022-02-13T14:11:28.000Z
netbox_devicetype_importer/admin.py
k01ek/netbox-devicetype-importer
c74cff18c5f3b45e5c8402ad74fdd642208a0e88
[ "Apache-2.0" ]
4
2021-05-11T13:17:01.000Z
2022-03-19T21:14:37.000Z
""" from django.contrib import admin import .models @admin.register(models.MyModel1) class MyModel1Admin(admin.ModelAdmin): fields = '__all__' """
15.3
38
0.738562
7970734f0ad1c495266b23b52ce429631fdc1e7f
10,166
py
Python
airflow/providers/apache/beam/hooks/beam.py
takuti/airflow
0ac3b8c3dd749c59e60cf0169580b9e7c5049d9e
[ "Apache-2.0" ]
2
2022-02-09T08:59:56.000Z
2022-02-09T08:59:59.000Z
airflow/providers/apache/beam/hooks/beam.py
takuti/airflow
0ac3b8c3dd749c59e60cf0169580b9e7c5049d9e
[ "Apache-2.0" ]
null
null
null
airflow/providers/apache/beam/hooks/beam.py
takuti/airflow
0ac3b8c3dd749c59e60cf0169580b9e7c5049d9e
[ "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...
36.568345
108
0.632107
797073b1d0777c1fdf72fe0f278790ef1a00bab1
2,258
py
Python
DailyProgrammer/DP20141020A.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
2
2020-12-23T18:59:22.000Z
2021-04-14T13:16:09.000Z
DailyProgrammer/DP20141020A.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
DailyProgrammer/DP20141020A.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
""" [10/20/2014] Challenge #185 [Easy] Generated twitter handles https://www.reddit.com/r/dailyprogrammer/comments/2jt4cx/10202014_challenge_185_easy_generated_twitter/ #Description For those that don't tweet or know the workings of Twitter, you can reply to 'tweets' by replying to that user with an @ symbol and thei...
42.603774
118
0.753764
79707450c2a19da500ba39b6edd53df98285f289
6,658
py
Python
docs/conf.py
kmgroup/django-haystack-1.2.x-for-d1.8
b9368f169eec06e78131e81d6968cc6580d6ddee
[ "BSD-3-Clause" ]
1
2016-02-24T19:40:05.000Z
2016-02-24T19:40:05.000Z
docs/conf.py
kmgroup/django-haystack-1.2.x-for-d1.8
b9368f169eec06e78131e81d6968cc6580d6ddee
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
kmgroup/django-haystack-1.2.x-for-d1.8
b9368f169eec06e78131e81d6968cc6580d6ddee
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Haystack documentation build configuration file, created by # sphinx-quickstart on Wed Apr 15 08:50:46 2009. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # Al...
32.478049
80
0.71538
797075d7f013a5dc0daa00846e15776f836643cf
90
py
Python
interlinq/utils/__init__.py
rheaparekh/Distributed_Quantum_Phase_Estimation
3441a023fedd113b8b3e68e6c6c07f6642c0344a
[ "MIT" ]
24
2021-01-27T14:21:53.000Z
2022-03-16T23:43:51.000Z
interlinq/utils/__init__.py
zemenfes-afk/Interlin-q
1c4822c814a9fe8b7ba0a11e4744a51b17d67b6f
[ "MIT" ]
15
2021-02-28T17:58:52.000Z
2021-07-27T15:27:03.000Z
interlinq/utils/__init__.py
rheaparekh/Interlin-q
b434e471db72b62f912b12e9d86e4a0a6e2825e2
[ "MIT" ]
8
2021-01-27T10:23:12.000Z
2022-03-12T01:45:57.000Z
from .default_operation_time import DefaultOperationTime from .constants import Constants
30
56
0.888889
79707628255716921e5982cbf89a7ffd4c94b0cb
2,146
py
Python
Python/Solucionando Desafios em Python/ProgramaParaValidacaoNotas.py
elenderg/desafios-bootcamps-dio
003eda61f88702e68670262d6c656f47a3f318b6
[ "MIT" ]
334
2021-01-16T14:55:56.000Z
2022-03-31T01:57:19.000Z
Python/Solucionando Desafios em Python/ProgramaParaValidacaoNotas.py
elenderg/desafios-bootcamps-dio
003eda61f88702e68670262d6c656f47a3f318b6
[ "MIT" ]
5
2021-02-28T16:39:15.000Z
2021-12-15T20:01:08.000Z
Python/Solucionando Desafios em Python/ProgramaParaValidacaoNotas.py
elenderg/desafios-bootcamps-dio
003eda61f88702e68670262d6c656f47a3f318b6
[ "MIT" ]
132
2021-01-21T01:19:12.000Z
2022-03-30T21:47:46.000Z
# Programa para Validação de Notas # O calendário escolar está passando bem rápido, devido a isso, as professoras # de uma escola estão com dificuldade para calcular as notas dos alunos. Visando # em resolver a situação, a diretora da escola contratou você para desenvolver # um programa que leia as notas da primeira e...
33.53125
82
0.71342
79707672a10dccd67eccdc85b92aba7c32d3a03a
4,439
py
Python
src/bindings/python/src/compatibility/ngraph/opset1/__init__.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
1,127
2018-10-15T14:36:58.000Z
2020-04-20T09:29:44.000Z
src/bindings/python/src/compatibility/ngraph/opset1/__init__.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
439
2018-10-20T04:40:35.000Z
2020-04-19T05:56:25.000Z
src/bindings/python/src/compatibility/ngraph/opset1/__init__.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
414
2018-10-17T05:53:46.000Z
2020-04-16T17:29:53.000Z
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from ngraph.opset1.ops import absolute from ngraph.opset1.ops import absolute as abs from ngraph.opset1.ops import acos from ngraph.opset1.ops import add from ngraph.opset1.ops import asin from ngraph.opset1.ops import atan from ngraph.o...
39.633929
61
0.848615
7970777f998ed08568a5644bd83f97cf83ac969d
1,465
py
Python
dash_listen.py
ejt4x/dash-arp
6a1a25dc6ec1ab9ffdfebd6f1e2464de31124355
[ "MIT" ]
null
null
null
dash_listen.py
ejt4x/dash-arp
6a1a25dc6ec1ab9ffdfebd6f1e2464de31124355
[ "MIT" ]
null
null
null
dash_listen.py
ejt4x/dash-arp
6a1a25dc6ec1ab9ffdfebd6f1e2464de31124355
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from scapy.all import * import logging as log import requests import os import sys from config import ifttt_key, macs, interface ifttt_url = 'https://maker.ifttt.com/trigger/{event}/with/key/{key}' log.basicConfig(level=log.INFO) def button_pressed(event): request_url = ifttt_url.format(e...
28.173077
89
0.632082
7970785084c536ed98dfce4c5ac63e505f3e7751
72,384
py
Python
reviewboard/reviews/detail.py
seekingalpha/reviewboard
191bf21347f4272fad6ce6366d2e110025c62fd1
[ "MIT" ]
null
null
null
reviewboard/reviews/detail.py
seekingalpha/reviewboard
191bf21347f4272fad6ce6366d2e110025c62fd1
[ "MIT" ]
null
null
null
reviewboard/reviews/detail.py
seekingalpha/reviewboard
191bf21347f4272fad6ce6366d2e110025c62fd1
[ "MIT" ]
null
null
null
"""Definitions for the review request detail view.""" from __future__ import unicode_literals import logging from collections import Counter, defaultdict from datetime import datetime from itertools import chain from django.db.models import Q from django.utils import six from django.utils.timezone import utc from dj...
37.12
79
0.603462
797079dc5ea9e75761e60b5d3ad5a077a3d67610
19,719
py
Python
requests/adapters.py
lmvlmv/requests
5c9cc14056255a840e98953e050e90d14e5587ca
[ "Apache-2.0" ]
null
null
null
requests/adapters.py
lmvlmv/requests
5c9cc14056255a840e98953e050e90d14e5587ca
[ "Apache-2.0" ]
null
null
null
requests/adapters.py
lmvlmv/requests
5c9cc14056255a840e98953e050e90d14e5587ca
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ requests.adapters ~~~~~~~~~~~~~~~~~ This module contains the transport adapters that Requests uses to define and maintain connections. """ import os.path import socket from urllib3.poolmanager import PoolManager, proxy_from_url from urllib3.response import HTTPResponse from urllib3.util ...
40.079268
108
0.637355
79707a76098029e0994ea2637a22f9b57b5718b8
1,924
py
Python
SMSProject/venv/Lib/site-packages/test/test_structure_tree.py
LourencoFernando/SMS-Project
f8e13dafdb41aa01f79337819cc3033a532410e8
[ "MIT" ]
null
null
null
SMSProject/venv/Lib/site-packages/test/test_structure_tree.py
LourencoFernando/SMS-Project
f8e13dafdb41aa01f79337819cc3033a532410e8
[ "MIT" ]
null
null
null
SMSProject/venv/Lib/site-packages/test/test_structure_tree.py
LourencoFernando/SMS-Project
f8e13dafdb41aa01f79337819cc3033a532410e8
[ "MIT" ]
null
null
null
from fpdf.structure_tree import MarkedContent, PDFObject, StructureTreeBuilder def test_pdf_object_serialize(): class Point(PDFObject): __slots__ = ("_id", "x", "y") def __init__(self, x=0, y=0, **kwargs): super().__init__(**kwargs) self.x = x self.y = y c...
16.168067
84
0.593035
79707aa4ebcade609a49f1aa6d5eae2e535398bd
8,771
py
Python
paddlespeech/t2s/models/parallel_wavegan/parallel_wavegan_updater.py
KPatr1ck/DeepSpeech
ba5172ef3d3d4cebf42ab01129c4059a16b236ce
[ "Apache-2.0" ]
60
2021-12-17T13:39:45.000Z
2022-03-30T16:18:40.000Z
train/models/parallel_wavegan/parallel_wavegan_updater.py
AdamBear/VTuberTalk
1ae54151bf80f1f5bf8651605f480575396ce36a
[ "Apache-2.0" ]
10
2022-01-06T08:29:05.000Z
2022-03-31T15:44:13.000Z
train/models/parallel_wavegan/parallel_wavegan_updater.py
AdamBear/VTuberTalk
1ae54151bf80f1f5bf8651605f480575396ce36a
[ "Apache-2.0" ]
10
2022-01-01T16:10:11.000Z
2022-03-18T17:11:51.000Z
# Copyright (c) 2021 PaddlePaddle Authors. 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 # # Unless required by appli...
37.482906
79
0.630601
79707bcb90ff6a28f9a6159d80042f712b7af4be
1,899
py
Python
bin/selenium_command.py
djschaap/selenium_demo_app
7cbb468416a79c2ec9b0f7ef23d116a5657f2ecf
[ "MIT" ]
4
2019-11-29T06:24:07.000Z
2020-11-01T20:15:24.000Z
bin/selenium_command.py
djschaap/selenium_demo_app
7cbb468416a79c2ec9b0f7ef23d116a5657f2ecf
[ "MIT" ]
1
2021-04-13T18:21:24.000Z
2021-04-13T18:21:24.000Z
bin/selenium_command.py
djschaap/selenium_demo_app
7cbb468416a79c2ec9b0f7ef23d116a5657f2ecf
[ "MIT" ]
2
2021-03-11T06:39:27.000Z
2021-04-09T18:25:48.000Z
#!/usr/bin/env python from __future__ import absolute_import, division, print_function, unicode_literals import app from splunklib.searchcommands import dispatch, GeneratingCommand, Configuration, Option, validators import os, sys, time, json, unittest from website_monitoring import TestSuite, TestGenerator class St...
35.830189
124
0.670879
79707be4a5fb3087fc473813c87b960397cb187b
2,927
py
Python
salt/engines/stalekey.py
johnj/salt
b23656fa5ee24047c43ac702d6796a700570f749
[ "Apache-2.0" ]
5
2017-02-07T05:39:29.000Z
2020-06-13T02:07:33.000Z
salt/engines/stalekey.py
johnj/salt
b23656fa5ee24047c43ac702d6796a700570f749
[ "Apache-2.0" ]
86
2017-01-27T11:54:46.000Z
2020-05-20T06:25:26.000Z
salt/engines/stalekey.py
johnj/salt
b23656fa5ee24047c43ac702d6796a700570f749
[ "Apache-2.0" ]
11
2017-01-26T19:36:29.000Z
2021-12-11T07:54:16.000Z
# -*- coding: utf-8 -*- ''' An engine that uses presence detection to keep track of which minions have been recently connected and remove their keys if they have not been connected for a certain period of time. Requires that the minion_data_cache option be enabled. .. versionadded: 2017.7.0 :configuration: Exam...
28.696078
86
0.617697
79707bf9b82b6bd5f1c208f11a5b327d178dbbb9
24,822
py
Python
nipype/utils/tests/test_filemanip.py
PAmcconnell/nipype
39fbd5411a844ce7c023964d3295eb7643b95af5
[ "Apache-2.0" ]
null
null
null
nipype/utils/tests/test_filemanip.py
PAmcconnell/nipype
39fbd5411a844ce7c023964d3295eb7643b95af5
[ "Apache-2.0" ]
2
2018-04-26T12:09:32.000Z
2018-04-27T06:36:49.000Z
nipype/utils/tests/test_filemanip.py
PAmcconnell/nipype
39fbd5411a844ce7c023964d3295eb7643b95af5
[ "Apache-2.0" ]
1
2019-11-14T14:16:57.000Z
2019-11-14T14:16:57.000Z
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: import os import time import warnings from pathlib import Path import mock import pytest from ...testing import TempFATFS from ...utils.filemanip import ( save_json, load_json, ...
41.37
368
0.683225
79707de077343eba0f2abc1be29c4fd030eb07e2
412
py
Python
src/libs/Api.py
SharpCoder/ship-it
f61420bc456f60ea32cf1032792067785ac01224
[ "MIT" ]
null
null
null
src/libs/Api.py
SharpCoder/ship-it
f61420bc456f60ea32cf1032792067785ac01224
[ "MIT" ]
null
null
null
src/libs/Api.py
SharpCoder/ship-it
f61420bc456f60ea32cf1032792067785ac01224
[ "MIT" ]
null
null
null
import requests class Api: ''' invoke a rest endpoint kwargs: opertion = { method: 'String', url: 'String', headers: { key1: "value1", key2: "value2" } } ''' def invoke(self, operation): ...
21.684211
100
0.475728
79707e3468ac27e24f3c4423f2b7c93ad0549715
1,128
py
Python
docker_lib/docker_del.py
eonun/WebRange
9504975dd0c212d21d5b7ffd2114f1c068fbcc59
[ "Apache-2.0" ]
99
2018-08-04T12:08:19.000Z
2021-11-07T08:49:24.000Z
docker_lib/docker_del.py
eonun/WebRange
9504975dd0c212d21d5b7ffd2114f1c068fbcc59
[ "Apache-2.0" ]
null
null
null
docker_lib/docker_del.py
eonun/WebRange
9504975dd0c212d21d5b7ffd2114f1c068fbcc59
[ "Apache-2.0" ]
25
2018-04-26T02:14:28.000Z
2021-12-22T08:39:22.000Z
#!coding=utf-8 # 接受指令,删除一个docker容器,并返回true或false。 # 接受指令,删除一个docker镜像,并返回true或false。 from docker import errors as docker_errors from . import logger class Dokcers_Del(): def __init__(self, client): super(Dokcers_Del, self).__init__() self.client = client # 删除一个镜像 def Remove_Images(self, ...
23.5
79
0.596631
79707ed253ee817157d06081ea3914797ae39ffa
3,940
py
Python
aiida/scheduler/plugins/pbspro.py
joepvd/aiida_core
6e9711046753332933f982971db1d7ac7e7ade58
[ "BSD-2-Clause" ]
1
2019-03-15T10:37:53.000Z
2019-03-15T10:37:53.000Z
aiida/schedulers/plugins/pbspro.py
odarbelaeze/aiida_core
934b4ccdc73a993f2a6656caf516500470e3da08
[ "BSD-2-Clause" ]
null
null
null
aiida/schedulers/plugins/pbspro.py
odarbelaeze/aiida_core
934b4ccdc73a993f2a6656caf516500470e3da08
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
39.4
111
0.584772
79708012f3fd825bb0d29082de31b56ae90bdb3f
47,833
py
Python
tests/test_complex_logic.py
sfermigier/quantipy3
6b1a5404a70b1a419493f612c39127d7baed4124
[ "MIT" ]
null
null
null
tests/test_complex_logic.py
sfermigier/quantipy3
6b1a5404a70b1a419493f612c39127d7baed4124
[ "MIT" ]
null
null
null
tests/test_complex_logic.py
sfermigier/quantipy3
6b1a5404a70b1a419493f612c39127d7baed4124
[ "MIT" ]
null
null
null
import unittest import os.path import numpy as np import pandas as pd from pandas.util.testing import assert_frame_equal from . import test_helper import copy from operator import lt, le, eq, ne, ge, gt from pandas.core.index import Index __index_symbol__ = { Index.union: ',', Index.intersection: '&', Ind...
34.313486
96
0.540547
7970802f3a3eb85951b02f3a7663b1d348df74b9
14,650
py
Python
nova/log.py
bopopescu/extra-specs-1
6a14d8d7807727023b4d589af47e8a9605f12db1
[ "Apache-2.0" ]
null
null
null
nova/log.py
bopopescu/extra-specs-1
6a14d8d7807727023b4d589af47e8a9605f12db1
[ "Apache-2.0" ]
1
2020-07-24T14:14:13.000Z
2020-07-24T14:14:13.000Z
nova/log.py
bopopescu/extra-specs-1
6a14d8d7807727023b4d589af47e8a9605f12db1
[ "Apache-2.0" ]
1
2020-07-24T10:40:59.000Z
2020-07-24T10:40:59.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack LLC. # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # no...
34.880952
78
0.618976
7970803323603bd21364cb2eb8ecfc2346269c8d
23,361
py
Python
ceilometer/tests/functional/test_notification.py
mail2nsrajesh/ceilometer
f53ab18125cc2efc9a9d492a9c1e4acbc2e28d90
[ "Apache-2.0" ]
null
null
null
ceilometer/tests/functional/test_notification.py
mail2nsrajesh/ceilometer
f53ab18125cc2efc9a9d492a9c1e4acbc2e28d90
[ "Apache-2.0" ]
null
null
null
ceilometer/tests/functional/test_notification.py
mail2nsrajesh/ceilometer
f53ab18125cc2efc9a9d492a9c1e4acbc2e28d90
[ "Apache-2.0" ]
null
null
null
# # Copyright 2012 New Dream Network, LLC (DreamHost) # # 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...
40.840909
78
0.607465
7970817f35733507a7d88edc91d7120b93e5ae8f
329
py
Python
AutomationScripts/Google Meet Automation/curpostion.py
rafaelapcruz/Awesome_Python_Scripts
6493ce989c1bcd707a10836f09462916388476a1
[ "MIT" ]
3
2021-10-02T16:14:01.000Z
2021-10-02T16:19:34.000Z
AutomationScripts/Google Meet Automation/curpostion.py
rafaelapcruz/Awesome_Python_Scripts
6493ce989c1bcd707a10836f09462916388476a1
[ "MIT" ]
4
2021-10-02T05:32:08.000Z
2021-10-02T16:05:18.000Z
AutomationScripts/Google Meet Automation/curpostion.py
rafaelapcruz/Awesome_Python_Scripts
6493ce989c1bcd707a10836f09462916388476a1
[ "MIT" ]
5
2021-09-12T12:14:30.000Z
2021-10-02T15:50:54.000Z
import pyautogui, sys print('Press Ctrl-C to quit.') try: while True: x, y = pyautogui.position() positionStr = 'X: ' + str(x).rjust(4) + ' Y: ' + str(y).rjust(4) print(positionStr, end='') print('\b' * len(positionStr), end='', flush=True) except KeyboardInterrupt: prin...
29.909091
73
0.556231
797081942423e01f5a57ce6fa2485fdfea6cab56
517
py
Python
quick_chat/users/admin.py
Javen17/Quick-Chat-Server
9fedc0e7af9727adcd2cb922e34d819157d33f75
[ "MIT" ]
1
2021-04-13T05:44:44.000Z
2021-04-13T05:44:44.000Z
quick_chat/users/admin.py
Javen17/Quick-Chat-Server
9fedc0e7af9727adcd2cb922e34d819157d33f75
[ "MIT" ]
null
null
null
quick_chat/users/admin.py
Javen17/Quick-Chat-Server
9fedc0e7af9727adcd2cb922e34d819157d33f75
[ "MIT" ]
1
2022-01-20T08:08:49.000Z
2022-01-20T08:08:49.000Z
from django.contrib import admin from django.contrib.auth import admin as auth_admin from django.contrib.auth import get_user_model from quick_chat.users.forms import UserChangeForm, UserCreationForm User = get_user_model() @admin.register(User) class UserAdmin(auth_admin.UserAdmin): form = UserChangeForm ...
28.722222
83
0.748549
797081a15656bcaf80e977837948dd210831659f
6,137
py
Python
vwsfriend/vwsfriend/agent_connector.py
lari/VWsFriend
3223cdea8658286cafadef46a9c1e3fa918c522e
[ "MIT" ]
null
null
null
vwsfriend/vwsfriend/agent_connector.py
lari/VWsFriend
3223cdea8658286cafadef46a9c1e3fa918c522e
[ "MIT" ]
null
null
null
vwsfriend/vwsfriend/agent_connector.py
lari/VWsFriend
3223cdea8658286cafadef46a9c1e3fa918c522e
[ "MIT" ]
null
null
null
import os import time import subprocess # nosec import logging from sqlalchemy import create_engine, text, inspect from sqlalchemy.orm import Session from sqlalchemy.exc import OperationalError from weconnect.elements import vehicle from weconnect.addressable import AddressableLeaf from weconnect.elements.range_stat...
48.706349
152
0.635653
797081b08f8703f94bddd7d3d4b008d5cc8a2ccd
3,945
py
Python
clever/models/section_object.py
xparabolax/clever-python
9abad1b54e64582416896f5ef34d692f671bd6d0
[ "Apache-2.0", "MIT" ]
null
null
null
clever/models/section_object.py
xparabolax/clever-python
9abad1b54e64582416896f5ef34d692f671bd6d0
[ "Apache-2.0", "MIT" ]
null
null
null
clever/models/section_object.py
xparabolax/clever-python
9abad1b54e64582416896f5ef34d692f671bd6d0
[ "Apache-2.0", "MIT" ]
null
null
null
# coding: utf-8 """ Clever API The Clever API # noqa: E501 OpenAPI spec version: 2.1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from clever.models.section import Section # noqa: F401,E501 class SectionObject(obj...
27.395833
96
0.580735
7970825fe750669beaf3a1721893abc213024ef3
17,637
py
Python
jax/experimental/optimizers.py
danielsuo/jax
a473e5b6bb3be5aa032d30ed023abb6b121af0e0
[ "ECL-2.0", "Apache-2.0" ]
2
2021-03-27T03:01:52.000Z
2021-04-24T20:24:12.000Z
jax/experimental/optimizers.py
danielsuo/jax
a473e5b6bb3be5aa032d30ed023abb6b121af0e0
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax/experimental/optimizers.py
danielsuo/jax
a473e5b6bb3be5aa032d30ed023abb6b121af0e0
[ "ECL-2.0", "Apache-2.0" ]
1
2020-11-22T17:50:23.000Z
2020-11-22T17:50:23.000Z
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
32.480663
80
0.706299
7970832efb4639ff78d3b01f89abd3e6d09df31f
7,854
py
Python
detectron2/data/samplers/distributed_sampler.py
lukadvisor/BCNet
d55263c0543ecf27f1f72e03a1a1eafb7b18ae88
[ "MIT" ]
377
2021-03-24T05:13:49.000Z
2022-03-31T06:14:24.000Z
detectron2/data/samplers/distributed_sampler.py
lukadvisor/BCNet
d55263c0543ecf27f1f72e03a1a1eafb7b18ae88
[ "MIT" ]
89
2021-03-24T12:32:51.000Z
2022-03-29T12:11:06.000Z
detectron2/data/samplers/distributed_sampler.py
lukadvisor/BCNet
d55263c0543ecf27f1f72e03a1a1eafb7b18ae88
[ "MIT" ]
51
2021-03-26T00:36:17.000Z
2022-03-16T00:51:11.000Z
import itertools import math from collections import defaultdict from typing import Optional import torch from torch.utils.data.sampler import Sampler from detectron2.utils import comm class TrainingSampler(Sampler): """ In training, we only care about the "infinite stream" of training data. So this samp...
39.467337
92
0.63751
797083770bff7397d4f6aa2460914642529ce7c1
31,168
py
Python
cloudcafe/objectstorage/objectstorage_api/behaviors.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
null
null
null
cloudcafe/objectstorage/objectstorage_api/behaviors.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
null
null
null
cloudcafe/objectstorage/objectstorage_api/behaviors.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
null
null
null
""" Copyright 2015 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
39.805875
79
0.607995
7970845362f1a792a3ff775b65f79741829649bf
655
py
Python
tools/esp_prov/prov/__init__.py
ghsecuritylab/esp_alexa_idf
e132e8b960af6d576ce2fca4f6b2994be2f42e56
[ "Apache-2.0" ]
24
2019-03-16T05:34:52.000Z
2020-06-20T08:08:37.000Z
tools/esp_prov/prov/__init__.py
ghsecuritylab/esp_alexa_idf
e132e8b960af6d576ce2fca4f6b2994be2f42e56
[ "Apache-2.0" ]
1
2019-07-22T21:45:28.000Z
2019-07-22T21:45:28.000Z
tools/esp_prov/prov/__init__.py
ghsecuritylab/esp_alexa_idf
e132e8b960af6d576ce2fca4f6b2994be2f42e56
[ "Apache-2.0" ]
16
2019-03-25T06:03:30.000Z
2020-07-18T23:44:28.000Z
# Copyright 2018 Espressif Systems (Shanghai) PTE LTD # # 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 ...
36.388889
74
0.761832
797085ee8a2d92c1cc762731b96380340dc7e4a6
5,017
py
Python
lfs/payment/models.py
naro/django-lfs
312404370e497d00aa0f7221dc55a70a20490fb5
[ "BSD-3-Clause" ]
null
null
null
lfs/payment/models.py
naro/django-lfs
312404370e497d00aa0f7221dc55a70a20490fb5
[ "BSD-3-Clause" ]
null
null
null
lfs/payment/models.py
naro/django-lfs
312404370e497d00aa0f7221dc55a70a20490fb5
[ "BSD-3-Clause" ]
null
null
null
# django imports from django.conf import settings from django.contrib.contenttypes import generic from django.db import models from django.utils.translation import ugettext_lazy as _ # lfs imports import lfs.payment.settings from lfs.criteria.models.criteria_objects import CriteriaObjects from lfs.tax.models import Ta...
34.129252
153
0.714969
7970868979c77c8e845b19dce7098c1e315d0f47
17,542
py
Python
utils/exporters/blender/2.56/scripts/op/io_mesh_threejs/import_threejs.py
duhnnie/3-dreams-of-black
15aded97f57a82e5a4c95c4e74bcd603b3fc6e1e
[ "Apache-2.0" ]
475
2015-01-02T07:49:46.000Z
2022-03-17T04:01:47.000Z
utils/exporters/blender/2.56/scripts/op/io_mesh_threejs/import_threejs.py
duhnnie/3-dreams-of-black
15aded97f57a82e5a4c95c4e74bcd603b3fc6e1e
[ "Apache-2.0" ]
3
2015-03-06T10:51:03.000Z
2019-09-10T19:39:39.000Z
utils/exporters/blender/2.56/scripts/op/io_mesh_threejs/import_threejs.py
duhnnie/3-dreams-of-black
15aded97f57a82e5a4c95c4e74bcd603b3fc6e1e
[ "Apache-2.0" ]
130
2015-01-15T02:08:21.000Z
2021-12-20T19:15:22.000Z
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
27.581761
155
0.503249
7970882a5f29a64d2f07393e52f888adc99762da
1,695
py
Python
Tests/simple_tests.py
ProfFan/DearPyGui
5197a8a6773a3721bf1fd856be2e0ea4d6057b87
[ "MIT" ]
1
2021-09-21T03:13:16.000Z
2021-09-21T03:13:16.000Z
Tests/simple_tests.py
Prem95/DearPyGui
b7c8defdffcfd5f02fab1b71bb5f542d06012c82
[ "MIT" ]
1
2021-08-16T02:39:32.000Z
2021-08-16T02:39:32.000Z
Tests/simple_tests.py
Prem95/DearPyGui
b7c8defdffcfd5f02fab1b71bb5f542d06012c82
[ "MIT" ]
null
null
null
import unittest import dearpygui.dearpygui as dpg class TestSimple(unittest.TestCase): def setUp(self): with dpg.window() as self.window_id: self.item1 = dpg.add_button(label="item1") self.item2 = dpg.add_button(label="item2") self.item3 = dpg.add_button(label="item3"...
31.388889
79
0.644248
79708bc58a503150557927a71ba4f4e022dd1206
1,770
py
Python
tests/test_app/serializers.py
imbokov/drf_dynamics
06c5b9cc617b4ac143970a81dfde2124aa8097e3
[ "MIT" ]
29
2019-12-31T19:49:33.000Z
2021-11-15T09:52:34.000Z
tests/test_app/serializers.py
imbokov/drf_dynamics
06c5b9cc617b4ac143970a81dfde2124aa8097e3
[ "MIT" ]
1
2020-11-30T23:45:06.000Z
2020-11-30T23:45:06.000Z
tests/test_app/serializers.py
imbokov/drf_dynamics
06c5b9cc617b4ac143970a81dfde2124aa8097e3
[ "MIT" ]
3
2019-12-31T19:55:51.000Z
2020-09-07T20:13:05.000Z
from rest_framework import serializers from drf_dynamics.mixins import DynamicFieldsMixin from .models import Answer, Details, Invite, Party, Person class PersonSerializer(DynamicFieldsMixin, serializers.ModelSerializer): class Meta: model = Person fields = ( "id", "name",...
22.692308
73
0.566667
79708c1a668d6789699c6062f0815513ee6d2cfc
985
py
Python
examples/hero9-take-photo-webcam.py
KonradIT/gopropy
57385c84e86b8c47bec504eae9f90756b5187286
[ "MIT" ]
null
null
null
examples/hero9-take-photo-webcam.py
KonradIT/gopropy
57385c84e86b8c47bec504eae9f90756b5187286
[ "MIT" ]
null
null
null
examples/hero9-take-photo-webcam.py
KonradIT/gopropy
57385c84e86b8c47bec504eae9f90756b5187286
[ "MIT" ]
null
null
null
import sys import time from goprocam import GoProCamera, constants, exceptions import threading from signal import signal, SIGINT isOpenGoPro = True def take_photo(interface): gopro = GoProCamera.GoPro(ip_address=GoProCamera.GoPro.getWebcamIP( interface), camera=constants.gpcontrol, webcam_device=interfa...
25.25641
167
0.716751
79708cc65db0e5469b7bfaf71928d61d69810c86
1,565
bzl
Python
contrib/contrib_build_config.bzl
giantcroc/envoy
c535d5abf8d106925070fe6fd018a716e6bf2bf1
[ "Apache-2.0" ]
17,703
2017-09-14T18:23:43.000Z
2022-03-31T22:04:17.000Z
contrib/contrib_build_config.bzl
giantcroc/envoy
c535d5abf8d106925070fe6fd018a716e6bf2bf1
[ "Apache-2.0" ]
15,957
2017-09-14T16:38:22.000Z
2022-03-31T23:56:30.000Z
contrib/contrib_build_config.bzl
giantcroc/envoy
c535d5abf8d106925070fe6fd018a716e6bf2bf1
[ "Apache-2.0" ]
3,780
2017-09-14T18:58:47.000Z
2022-03-31T17:10:47.000Z
# See bazel/README.md for details on how this system works. CONTRIB_EXTENSIONS = { # # HTTP filters # "envoy.filters.http.squash": "//contrib/squash/filters/http/source:config", "envoy.filters.http.sxg": "//contrib/sxg/filters/http/so...
40.128205
129
0.575719
79708da1339d3fd66370e33f5100144f8f6a583e
14,517
py
Python
presenterserver/peppapig_detection/src/web.py
Atlas200DKTest/sample-peppapigdetection
ca7cf9ac40dc4a06d59edc021a4f5914e2815dfb
[ "Apache-2.0" ]
1
2021-02-26T21:47:43.000Z
2021-02-26T21:47:43.000Z
presenterserver/peppapig_detection/src/web.py
Atlas200DKTest/sample-peppapigdetection
ca7cf9ac40dc4a06d59edc021a4f5914e2815dfb
[ "Apache-2.0" ]
null
null
null
presenterserver/peppapig_detection/src/web.py
Atlas200DKTest/sample-peppapigdetection
ca7cf9ac40dc4a06d59edc021a4f5914e2815dfb
[ "Apache-2.0" ]
1
2020-10-10T09:20:48.000Z
2020-10-10T09:20:48.000Z
# -*- coding: UTF-8 -*- # # ======================================================================= # # Copyright (C) 2018, Hisilicon Technologies Co., Ltd. All Rights Reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions ...
30.626582
115
0.584074
79708edfee33d3f001fb962ce97f1a088d161fc0
1,459
py
Python
uwb/status_query.py
PurpleGuitar/tools
13152bb925b568ed4d4375065ed5a7dbdeee99de
[ "MIT" ]
null
null
null
uwb/status_query.py
PurpleGuitar/tools
13152bb925b568ed4d4375065ed5a7dbdeee99de
[ "MIT" ]
null
null
null
uwb/status_query.py
PurpleGuitar/tools
13152bb925b568ed4d4375065ed5a7dbdeee99de
[ "MIT" ]
2
2020-07-16T20:10:12.000Z
2020-07-16T20:14:18.000Z
#!/usr/bin/env python2 # -*- coding: utf8 -*- # # Copyright (c) 2015 unfoldingWord # http://creativecommons.org/licenses/MIT/ # See LICENSE file for details. # # Contributors: # Richard Mahn <richard_mahn@wycliffeassociates.org> """ This script queries the Bible Status of a given Bible """ import os import sys ...
28.607843
105
0.646333
79708f638f004b38e314076c3761fee68e89ff01
2,412
py
Python
vistrails/packages/ImageMagick/__init__.py
remram44/VisTrails-mybinder
ee7477b471920d738f3ac430932f01901b56ed44
[ "BSD-3-Clause" ]
83
2015-01-05T14:50:50.000Z
2021-09-17T19:45:26.000Z
vistrails/packages/ImageMagick/__init__.py
remram44/VisTrails-mybinder
ee7477b471920d738f3ac430932f01901b56ed44
[ "BSD-3-Clause" ]
254
2015-01-02T20:39:19.000Z
2018-11-28T17:16:44.000Z
vistrails/packages/ImageMagick/__init__.py
remram44/VisTrails-mybinder
ee7477b471920d738f3ac430932f01901b56ed44
[ "BSD-3-Clause" ]
40
2015-04-17T16:46:36.000Z
2021-09-28T22:43:24.000Z
############################################################################### ## ## Copyright (C) 2014-2016, New York University. ## Copyright (C) 2011-2014, NYU-Poly. ## Copyright (C) 2006-2011, University of Utah. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## ...
46.384615
79
0.704809
79708fbfcff145129af4921af697fa62f4627773
1,892
py
Python
setup.py
vemonet/kg-covid-19
18505c2603fcdb6233a7cdf4e956c5489fc6dea8
[ "BSD-3-Clause" ]
null
null
null
setup.py
vemonet/kg-covid-19
18505c2603fcdb6233a7cdf4e956c5489fc6dea8
[ "BSD-3-Clause" ]
null
null
null
setup.py
vemonet/kg-covid-19
18505c2603fcdb6233a7cdf4e956c5489fc6dea8
[ "BSD-3-Clause" ]
null
null
null
import os import re from codecs import open as copen # to use a consistent encoding from setuptools import find_packages, setup here = os.path.abspath(os.path.dirname(__file__)) # get the long description from the relevant file with copen(os.path.join(here, 'README.rst'), encoding='utf-8') as f: long_descriptio...
24.571429
88
0.635835
797090cfcb51b70d547a6f2100e9530fb84f9d3a
15,972
py
Python
osa/tests/test_jobs.py
gae-ucm/lstosa
c3dfc6b6009cb41d8ed8258600d23948e70d17de
[ "BSD-3-Clause" ]
2
2022-02-21T17:45:38.000Z
2022-03-25T11:48:52.000Z
osa/tests/test_jobs.py
cta-observatory/lstosa
dd7a3a4967f265217929a1271c3f9be559a122ac
[ "BSD-3-Clause" ]
79
2021-12-02T10:37:42.000Z
2022-03-29T23:56:44.000Z
osa/tests/test_jobs.py
cta-observatory/lstosa
dd7a3a4967f265217929a1271c3f9be559a122ac
[ "BSD-3-Clause" ]
1
2021-11-25T09:56:12.000Z
2021-11-25T09:56:12.000Z
import os from pathlib import Path from textwrap import dedent import pytest from osa.configs import options from osa.configs.config import cfg extra_files = Path(os.getenv("OSA_TEST_DATA", "extra")) datasequence_history_file = extra_files / "history_files/sequence_LST1_04185.0010.history" calibration_history_file =...
33.205821
180
0.661971
79709185dbb79aefd0ab02c0380f332922ed4de0
6,950
py
Python
src/glap/cli.py
Mountlex/glap
f70f548090172cbaedf25af85131e2d864a36c45
[ "MIT" ]
1
2021-01-29T19:02:51.000Z
2021-01-29T19:02:51.000Z
src/glap/cli.py
Mountlex/glap
f70f548090172cbaedf25af85131e2d864a36c45
[ "MIT" ]
6
2021-01-27T09:51:12.000Z
2021-02-26T10:48:29.000Z
src/glap/cli.py
Mountlex/glap
f70f548090172cbaedf25af85131e2d864a36c45
[ "MIT" ]
1
2021-02-01T14:39:27.000Z
2021-02-01T14:39:27.000Z
import click import gitlab import os import toml from zipfile import ZipFile from yaspin import yaspin from appdirs import user_config_dir, user_data_dir from pathlib import Path import platform import subprocess CONFIG_FILE_NAME = "glap.toml" CONFIG_PATH = user_config_dir("glap") + "/" + CONFIG_FILE_NAME TMP_PATH = u...
34.068627
102
0.62446
79709211c2801022a53c58935c8bc1960bfc0887
364
py
Python
tidlundsved/urls.py
mjovanc/tidlundsved
da55a07d02f04bc636299fe4d236aa19188a359b
[ "MIT" ]
1
2019-04-19T20:39:39.000Z
2019-04-19T20:39:39.000Z
tidlundsved/urls.py
mjovanc/tidlundsved
da55a07d02f04bc636299fe4d236aa19188a359b
[ "MIT" ]
3
2020-01-15T22:21:14.000Z
2020-01-15T22:21:15.000Z
tidlundsved/urls.py
mjovanc/tidlundsved
da55a07d02f04bc636299fe4d236aa19188a359b
[ "MIT" ]
null
null
null
from django.contrib import admin from django.conf.urls import include from django.urls import path from tidlundsved.views import IndexPageView, AboutPageView urlpatterns = [ path('admin/', admin.site.urls), path('', IndexPageView.as_view(), name='index'), path('om-oss/', AboutPageView.as_view(), name='ab...
26
59
0.706044
797092cbce002469e55be6c4c46fc12b0b973a10
710
py
Python
skill/__init__.py
MycroftAI/skill-date
9e1e266ae43838a18129dd47b78db6ba9dd280f4
[ "Apache-2.0" ]
1
2022-02-26T16:45:49.000Z
2022-02-26T16:45:49.000Z
skill/__init__.py
MycroftAI/skill-date
9e1e266ae43838a18129dd47b78db6ba9dd280f4
[ "Apache-2.0" ]
null
null
null
skill/__init__.py
MycroftAI/skill-date
9e1e266ae43838a18129dd47b78db6ba9dd280f4
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, Mycroft AI 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 writi...
41.764706
74
0.770423
79709402e062f9cfb0b782b88a4915858c18ab9f
7,583
py
Python
tests/conftest.py
jmcph4/py-evm
0cd3ebac9c7c336b07f2f52c52b069fbe400bcef
[ "MIT" ]
null
null
null
tests/conftest.py
jmcph4/py-evm
0cd3ebac9c7c336b07f2f52c52b069fbe400bcef
[ "MIT" ]
null
null
null
tests/conftest.py
jmcph4/py-evm
0cd3ebac9c7c336b07f2f52c52b069fbe400bcef
[ "MIT" ]
null
null
null
from pathlib import Path import pytest from eth_utils import ( decode_hex, to_canonical_address, to_tuple, to_wei, ) from eth_keys import keys import rlp from eth import constants from eth.chains.base import ( Chain, MiningChain, ) from eth.db.atomic import AtomicDB from eth.rlp.headers impor...
29.165385
121
0.686931
7970943b02be0c2dd825e11084843ef0bdbca0a8
261
py
Python
promo_rule/config/desktop.py
hrgadeha/promo_rule
3d88b54deec6504e2297a0b8a144fbbfd24678e4
[ "MIT" ]
null
null
null
promo_rule/config/desktop.py
hrgadeha/promo_rule
3d88b54deec6504e2297a0b8a144fbbfd24678e4
[ "MIT" ]
null
null
null
promo_rule/config/desktop.py
hrgadeha/promo_rule
3d88b54deec6504e2297a0b8a144fbbfd24678e4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from frappe import _ def get_data(): return [ { "module_name": "Promo Rule", "color": "blue", "icon": "octicon octicon-rocket", "type": "module", "label": _("Promo Rule") } ]
17.4
39
0.605364
797094c9ff008e3eb677bd54cf678b8ff89f3392
19,253
py
Python
pygef/gef.py
cemsbv/pygef
e83811744328778bbfc808424121bbf3a64e3ff1
[ "MIT" ]
3
2021-11-10T09:44:01.000Z
2022-02-01T07:55:03.000Z
pygef/gef.py
cemsbv/pygef
e83811744328778bbfc808424121bbf3a64e3ff1
[ "MIT" ]
79
2021-10-11T13:40:12.000Z
2022-03-31T10:26:47.000Z
pygef/gef.py
cemsbv/pygef
e83811744328778bbfc808424121bbf3a64e3ff1
[ "MIT" ]
4
2021-11-25T13:38:30.000Z
2022-02-18T10:27:58.000Z
import io import logging import re from typing import List import numpy as np import polars as pl import pygef.utils as utils from polars import col, lit, when # Try to import the optimized Rust header parsing but if that doesn't succeed # use the built-in python regex methods try: import gef USE_RUST_PARSED...
35.069217
125
0.616527
79709551b8b712919eec93c37039f6da53d05c67
3,787
py
Python
app/main/forms/frameworks.py
uk-gov-mirror/alphagov.digitalmarketplace-supplier-frontend
cf9d06cffe95c436f056cc9c967e9ef8a25381a4
[ "MIT" ]
null
null
null
app/main/forms/frameworks.py
uk-gov-mirror/alphagov.digitalmarketplace-supplier-frontend
cf9d06cffe95c436f056cc9c967e9ef8a25381a4
[ "MIT" ]
null
null
null
app/main/forms/frameworks.py
uk-gov-mirror/alphagov.digitalmarketplace-supplier-frontend
cf9d06cffe95c436f056cc9c967e9ef8a25381a4
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import HiddenField, RadioField from wtforms.validators import DataRequired, Length, InputRequired from dmutils.forms.fields import DMBooleanField, DMStripWhitespaceStringField, DMRadioField from dmutils.forms.widgets import DMSelectionButtonBase class AcceptAgreementVaria...
38.252525
119
0.642197
7970956f2f0882da93e4d7c42c52ff4ee2b693e1
11,947
py
Python
inference_ssd300.py
benjydel/ssd_keras
3cbbfa631dc1f5c66ce299f0c433cacb52c6cab1
[ "Apache-2.0" ]
null
null
null
inference_ssd300.py
benjydel/ssd_keras
3cbbfa631dc1f5c66ce299f0c433cacb52c6cab1
[ "Apache-2.0" ]
null
null
null
inference_ssd300.py
benjydel/ssd_keras
3cbbfa631dc1f5c66ce299f0c433cacb52c6cab1
[ "Apache-2.0" ]
null
null
null
# Needed libraries import argparse from ssd_encoder_decoder.ssd_output_decoder import decode_detections from data_generator.object_detection_2d_misc_utils import apply_inverse_transforms import numpy as np import random import cv2 from threading import Thread from datetime import datetime import time # exemple : #...
37.334375
209
0.650456
797095721a41f32d8b0808d1562c06498c81be2e
675
py
Python
adventcode/day1.py
johnhendrick/adventofcode2021
04d884d65eebc0178ddb79b1ff2a5c088c349e5e
[ "MIT" ]
1
2021-12-15T00:34:04.000Z
2021-12-15T00:34:04.000Z
adventcode/day1.py
johnhendrick/adventofcode2021
04d884d65eebc0178ddb79b1ff2a5c088c349e5e
[ "MIT" ]
null
null
null
adventcode/day1.py
johnhendrick/adventofcode2021
04d884d65eebc0178ddb79b1ff2a5c088c349e5e
[ "MIT" ]
null
null
null
import pandas as pd url = "https://adventofcode.com/2021/day/1/input" data = pd.read_csv('./input/input.txt', names=['input'], sep='\n') data_list = data.input.tolist() def increase_count(data_list): """ Args: data_list (list): input list Returns: int: number of increment """ co...
20.454545
66
0.591111
797095d1f2f1a1ffdf081dfbb8ce03d0f4ef2293
3,232
py
Python
detect_imgs.py
wanghh2000/Ultra-Light-Fast-Generic-Face-Detector-1MB
4db3c34f66631b4fbed55b141755d2a520905618
[ "MIT" ]
null
null
null
detect_imgs.py
wanghh2000/Ultra-Light-Fast-Generic-Face-Detector-1MB
4db3c34f66631b4fbed55b141755d2a520905618
[ "MIT" ]
null
null
null
detect_imgs.py
wanghh2000/Ultra-Light-Fast-Generic-Face-Detector-1MB
4db3c34f66631b4fbed55b141755d2a520905618
[ "MIT" ]
null
null
null
""" This code is used to batch detect images in a folder. """ import argparse import os import sys import cv2 from vision.ssd.config.fd_config import define_img_size parser = argparse.ArgumentParser(description='detect_imgs') parser.add_argument('--net_type', default="RFB", type=str, help='The network architecture ...
46.171429
142
0.726176
7970985389a5bd600401f2b401dd595c126d4c98
1,425
py
Python
farm_ecomm/home/migrations/0001_initial.py
SumeetSanwal/Farmer-Ecomm
021e79e1129a23d12970538451407a52bfe7938d
[ "MIT" ]
null
null
null
farm_ecomm/home/migrations/0001_initial.py
SumeetSanwal/Farmer-Ecomm
021e79e1129a23d12970538451407a52bfe7938d
[ "MIT" ]
null
null
null
farm_ecomm/home/migrations/0001_initial.py
SumeetSanwal/Farmer-Ecomm
021e79e1129a23d12970538451407a52bfe7938d
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2020-11-27 09:07 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Customer', fields=[ ('id', models.AutoField...
33.139535
114
0.526316
797098b83964a2cc342dae7718d40d4edb8e4945
46,351
py
Python
statsmodels/tsa/holtwinters.py
akaashsidhu/statsmodels
fadf25911739a3611980278aabf751e2df6e6680
[ "BSD-3-Clause" ]
76
2019-12-28T08:37:10.000Z
2022-03-29T02:19:41.000Z
statsmodels/tsa/holtwinters.py
akaashsidhu/statsmodels
fadf25911739a3611980278aabf751e2df6e6680
[ "BSD-3-Clause" ]
null
null
null
statsmodels/tsa/holtwinters.py
akaashsidhu/statsmodels
fadf25911739a3611980278aabf751e2df6e6680
[ "BSD-3-Clause" ]
35
2020-02-04T14:46:25.000Z
2022-03-24T03:56:17.000Z
""" Notes ----- Code written using below textbook as a reference. Results are checked against the expected outcomes in the text book. Properties: Hyndman, Rob J., and George Athanasopoulos. Forecasting: principles and practice. OTexts, 2014. Author: Terence L van Zyl Modified: Kevin Sheppard """ import numpy as np im...
40.2702
115
0.544562
797098c4cd9d5eadb6d2082ea019cbb617b9449e
42,737
py
Python
tools/linter_lib/custom_check.py
DD2480-group7-2020/zulip
9a1e18bcf383c38c35da168563a7345768c6d784
[ "Apache-2.0" ]
1
2020-03-17T14:58:50.000Z
2020-03-17T14:58:50.000Z
tools/linter_lib/custom_check.py
DD2480-group7-2020/zulip
9a1e18bcf383c38c35da168563a7345768c6d784
[ "Apache-2.0" ]
null
null
null
tools/linter_lib/custom_check.py
DD2480-group7-2020/zulip
9a1e18bcf383c38c35da168563a7345768c6d784
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import absolute_import from typing import List, TYPE_CHECKING from zulint.custom_rules import RuleList if TYPE_CHECKING: from zulint.custom_rules import Rule # Rule help: # By default, a rule applies to all files within the extension ...
49.984795
222
0.572057
797099245ebca488c22033ad76845627c6bd6231
2,067
py
Python
meshes/naca-2412-airfoil/airfoil-mesh.py
deepakdalakoti/Bayesian_neural_net
398bf645ae870aa03b347530299dfafd6063f5a7
[ "MIT" ]
41
2019-01-25T19:41:41.000Z
2022-03-28T12:55:07.000Z
meshes/naca-2412-airfoil/airfoil-mesh.py
zabaras/rans-uncertainty
1ee554d64550377dfa4295bb05e61bab98e43ee4
[ "MIT" ]
15
2020-08-04T08:45:10.000Z
2021-02-17T02:57:37.000Z
meshes/naca-2412-airfoil/airfoil-mesh.py
zabaras/rans-uncertainty
1ee554d64550377dfa4295bb05e61bab98e43ee4
[ "MIT" ]
22
2019-03-20T18:57:51.000Z
2022-01-23T16:49:23.000Z
''' // NACA 2412 Airfoil // Created using Gmsh (http://gmsh.info/) // Mesh Distributed by: Notre Dame CICS (MIT Liscense) // - Associated publication: // doi: https://doi.org/10.1016/j.jcp.2019.01.021 // github: https://github.com/cics-nd/rans-uncertainty ''' import pygmsh #See: https://pypi.org/project/pygmsh/ import...
32.809524
124
0.674891
797099265c984d30fb001c67ea0362777c1bb9f3
399
py
Python
CursoemVideo/Challenge016.py
ElptsJunior/Python
7347b38947b439afa392764aafe0a55f808530dd
[ "MIT" ]
null
null
null
CursoemVideo/Challenge016.py
ElptsJunior/Python
7347b38947b439afa392764aafe0a55f808530dd
[ "MIT" ]
null
null
null
CursoemVideo/Challenge016.py
ElptsJunior/Python
7347b38947b439afa392764aafe0a55f808530dd
[ "MIT" ]
null
null
null
'''Build in an program that read's an float number and show's your integer part for exemple insirted 6.1234 the result is 6 ''' from math import trunc #This module brings the function truncate from bibliotec math print('='*200) number = float(input('Please little Locust insert any number please : ')) print('='*200...
49.875
108
0.729323
797099dc0ca407d152ed1365ee2cc5a72c33a728
5,057
py
Python
ms2rescore/config_parser.py
compomics/ms2rescore
0f5e7f84b6c4466f890811377308032dd1c93912
[ "Apache-2.0" ]
4
2019-04-14T09:30:06.000Z
2020-11-22T04:02:54.000Z
ms2rescore/config_parser.py
compomics/ms2rescore
0f5e7f84b6c4466f890811377308032dd1c93912
[ "Apache-2.0" ]
21
2020-06-29T13:46:56.000Z
2022-03-30T10:10:15.000Z
ms2rescore/config_parser.py
compomics/ms2rescore
0f5e7f84b6c4466f890811377308032dd1c93912
[ "Apache-2.0" ]
5
2019-08-26T12:53:59.000Z
2022-02-03T14:23:47.000Z
"""Parse configuration from command line arguments and configuration files.""" import argparse import json import multiprocessing as mp import os from typing import Dict, Optional from cascade_config import CascadeConfig from ms2rescore import package_data from ms2rescore._exceptions import MS2ReScoreConfigurationEr...
31.60625
91
0.658098
797099ec7534c129a84b2e3852f04e3a270c2d6c
782
py
Python
tests/download_all_ads_to_file.py
JobtechSwe/castaway
e0917511b20152f0bd7e2802b73a0beae30a96f5
[ "Apache-2.0" ]
14
2018-09-12T14:08:54.000Z
2021-09-20T11:54:20.000Z
tests/download_all_ads_to_file.py
JobtechSwe/castaway
e0917511b20152f0bd7e2802b73a0beae30a96f5
[ "Apache-2.0" ]
43
2018-09-25T14:39:02.000Z
2021-10-01T08:40:23.000Z
tests/download_all_ads_to_file.py
JobtechSwe/castaway
e0917511b20152f0bd7e2802b73a0beae30a96f5
[ "Apache-2.0" ]
8
2018-11-21T23:51:47.000Z
2021-06-04T10:34:16.000Z
import datetime import json import requests api_key = '' url = "http://127.0.0.1:5000/snapshot" def download_all_ads(): response = requests.get(url, headers={'api-key': api_key, 'accept': 'application/json'}) response.raise_for_status() file_time_stamp = datetime.datetime.now().strftime("%Y_%m_%d_%H_%M_%...
32.583333
103
0.662404
79709a483f1e642dc1ca69b6daae89bb1ec465bf
2,426
py
Python
backend/models/postgis/interests.py
d-rita/tasking-manager
580a794f576e17baac5f46430cdde42aeefb4eab
[ "BSD-2-Clause" ]
421
2017-02-16T15:02:51.000Z
2022-03-06T07:12:14.000Z
backend/models/postgis/interests.py
d-rita/tasking-manager
580a794f576e17baac5f46430cdde42aeefb4eab
[ "BSD-2-Clause" ]
3,143
2017-02-14T16:47:25.000Z
2022-03-30T11:25:20.000Z
backend/models/postgis/interests.py
drklrd/tasking-manager
3c12892ac1e506e2170bff7e5e1094c416f6603e
[ "BSD-2-Clause" ]
280
2017-04-06T19:51:32.000Z
2022-03-16T09:21:27.000Z
from backend import db from backend.models.dtos.interests_dto import InterestDTO, InterestsListDTO from backend.models.postgis.utils import NotFound # Secondary table defining many-to-many join for interests of a user. user_interests = db.Table( "user_interests", db.metadata, db.Column("interest_id", db.In...
29.228916
79
0.640973
79709b055152165630a8f9b90fc56b12b6ae3380
345
py
Python
exerc004.py
LucasBischof/Praticando_Python
ab14e347228e19ec4ef1ad743e3a469979619f74
[ "MIT" ]
null
null
null
exerc004.py
LucasBischof/Praticando_Python
ab14e347228e19ec4ef1ad743e3a469979619f74
[ "MIT" ]
null
null
null
exerc004.py
LucasBischof/Praticando_Python
ab14e347228e19ec4ef1ad743e3a469979619f74
[ "MIT" ]
null
null
null
v1 = input('\033[1;31;42mDigite algo :\033[m') print('\033[7;30;45mé um numero :\033[m',v1.isnumeric()) print('\033[4;33;47mé um palavra :\033[m',v1.isalpha()) print('\033[1;37;40mé um numero ou uma palavra :\033[m',v1.isalnum()) print('\033[0;34;41mé em maiusculo :\033[m',v1.isupper()) print('\033[4;32;43mé em minuscu...
57.5
69
0.669565
79709bb00921e588de8a4e9caed4d34fee82a4de
3,100
py
Python
diaspy/notifications.py
kensanata/diaspy
e9e14013dc6d727dfbeda5d170abd510bfbdef21
[ "MIT" ]
null
null
null
diaspy/notifications.py
kensanata/diaspy
e9e14013dc6d727dfbeda5d170abd510bfbdef21
[ "MIT" ]
null
null
null
diaspy/notifications.py
kensanata/diaspy
e9e14013dc6d727dfbeda5d170abd510bfbdef21
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import time from diaspy.models import Notification """This module abstracts notifications. """ class Notifications(): """This class represents notifications of a user. """ def __init__(self, connection): self._connection = connection self._data = {} self._notifications = self.get(...
29.807692
97
0.713548
79709db1ee1282e8daa6614ceb23481d3cd58338
8,961
py
Python
mmcv/device/ipu/utils.py
imabackstabber/mmcv
b272c09b463f00fd7fdd455f7bd4a055f9995521
[ "Apache-2.0" ]
null
null
null
mmcv/device/ipu/utils.py
imabackstabber/mmcv
b272c09b463f00fd7fdd455f7bd4a055f9995521
[ "Apache-2.0" ]
null
null
null
mmcv/device/ipu/utils.py
imabackstabber/mmcv
b272c09b463f00fd7fdd455f7bd4a055f9995521
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import inspect import numpy as np import popart import poptorch import torch import torch.nn as nn from mmcv.utils import Registry def _options_assigner(cfg, options_node): # set popart.options by config # cfg: dict, python data type # options_node: python...
36.57551
79
0.645017
79709f84f0a053fd75e888ae827a0049dff7651e
4,734
py
Python
examples/enwik8_tf/eval.py
jwohlwend/flop
c5bbd4c5fae6291e2a056e68b44bcf97e4d757bf
[ "MIT" ]
null
null
null
examples/enwik8_tf/eval.py
jwohlwend/flop
c5bbd4c5fae6291e2a056e68b44bcf97e4d757bf
[ "MIT" ]
null
null
null
examples/enwik8_tf/eval.py
jwohlwend/flop
c5bbd4c5fae6291e2a056e68b44bcf97e4d757bf
[ "MIT" ]
null
null
null
# coding: utf-8 import argparse import time import math import os, sys import torch from data_utils import get_lm_corpus from mem_transformer import MemTransformerLM from utils.exp_utils import get_logger parser = argparse.ArgumentParser(description='PyTorch Transformer Language Model') parser.add_argument('--data',...
36.137405
86
0.614913
7970a1466812f556ed0f9eed06cf6e9bea535aa3
4,343
py
Python
dataprocessing/preprocessing.py
KBNLresearch/Demosaurus
9235e315d9eef9d8d64f94a90ab4fc8220670ef2
[ "Apache-2.0" ]
1
2020-06-25T16:39:35.000Z
2020-06-25T16:39:35.000Z
dataprocessing/preprocessing.py
KBNLresearch/Demosaurus
9235e315d9eef9d8d64f94a90ab4fc8220670ef2
[ "Apache-2.0" ]
6
2020-03-06T12:31:38.000Z
2021-09-20T15:08:17.000Z
dataprocessing/preprocessing.py
KBNLresearch/Demosaurus
9235e315d9eef9d8d64f94a90ab4fc8220670ef2
[ "Apache-2.0" ]
null
null
null
import os.path import re from unidecode import unidecode import difflib import nltk from collections import Counter import pickle import csv_db """For text processing, obtain stop word list from file and initialize tokenizer""" with open('dataprocessing/stopwordsDutch.txt','r') as f: stopwords = [x.strip() for x i...
47.206522
142
0.646788
7970a14e11408bb53e97432cc257ebd22a916aaa
7,282
py
Python
src/pymola/backends/sympy/generator.py
traversaro/pymola
2acd2497c9050c94c546a6dc4c560b5790ad26c2
[ "BSD-3-Clause" ]
null
null
null
src/pymola/backends/sympy/generator.py
traversaro/pymola
2acd2497c9050c94c546a6dc4c560b5790ad26c2
[ "BSD-3-Clause" ]
null
null
null
src/pymola/backends/sympy/generator.py
traversaro/pymola
2acd2497c9050c94c546a6dc4c560b5790ad26c2
[ "BSD-3-Clause" ]
1
2019-01-07T06:52:26.000Z
2019-01-07T06:52:26.000Z
from __future__ import print_function, absolute_import, division, print_function, unicode_literals import copy import os from typing import List import jinja2 from pymola import ast from pymola.tree import TreeListener, TreeWalker, flatten FILE_DIR = os.path.dirname(os.path.realpath(__file__)) # noinspection PyUnre...
33.712963
143
0.534331
7970a195c71d3a0ac2b9716dec3b14cd8553c431
13,052
py
Python
potion/envs/lq.py
T3p/policy-optimization
77006545779823737c4ca3b19e9d80506015c132
[ "MIT" ]
null
null
null
potion/envs/lq.py
T3p/policy-optimization
77006545779823737c4ca3b19e9d80506015c132
[ "MIT" ]
null
null
null
potion/envs/lq.py
T3p/policy-optimization
77006545779823737c4ca3b19e9d80506015c132
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import gym from gym import spaces from gym.utils import seeding import numpy as np import math from numbers import Number class LQ(gym.Env): """ Gym environment implementing an LQR problem s_{t+1} = A s_t + B a_t + noise r_{t+1} = - s_t^T Q s_t - a_t^T R...
38.501475
137
0.511263
7970a1e5527114cd3749b1dd133f6226a4e52e35
1,399
py
Python
venv/lib/python3.7/site-packages/zExceptions/TracebackSupplement.py
leanhvu86/matrix-server
6e16fc53dfebaeaf222ff5a371ccffcc65de3818
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.7/site-packages/zExceptions/TracebackSupplement.py
leanhvu86/matrix-server
6e16fc53dfebaeaf222ff5a371ccffcc65de3818
[ "Apache-2.0" ]
8
2015-03-31T18:49:09.000Z
2021-10-19T07:23:41.000Z
venv/lib/python3.7/site-packages/zExceptions/TracebackSupplement.py
leanhvu86/matrix-server
6e16fc53dfebaeaf222ff5a371ccffcc65de3818
[ "Apache-2.0" ]
3
2015-04-03T07:09:10.000Z
2018-03-20T16:34:09.000Z
############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # TH...
34.975
78
0.596855
7970a2307bb499e8b3755efef63c78725af1a9ed
15,820
py
Python
airflow_client/client/model/task_instance_reference.py
er1shivam/airflow-client-python
bf439f3f92b8248cb9f77adde250d4c4dbb860a9
[ "Apache-2.0" ]
null
null
null
airflow_client/client/model/task_instance_reference.py
er1shivam/airflow-client-python
bf439f3f92b8248cb9f77adde250d4c4dbb860a9
[ "Apache-2.0" ]
null
null
null
airflow_client/client/model/task_instance_reference.py
er1shivam/airflow-client-python
bf439f3f92b8248cb9f77adde250d4c4dbb860a9
[ "Apache-2.0" ]
1
2021-11-21T18:03:43.000Z
2021-11-21T18:03:43.000Z
# 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 u...
81.546392
8,085
0.682996
7970a296ab5fe5c1fbe75bf8957a6ad2b49a7e44
8,172
py
Python
torchgan/losses/auxclassifier.py
torchgan/torchgan
f4139537ac2d3d8609d5aecc859a6fb797b107a1
[ "MIT" ]
1,300
2018-10-14T05:02:29.000Z
2022-03-23T09:52:13.000Z
torchgan/losses/auxclassifier.py
yuhao20/torchgan
cfd5da4b7ffcec544c6cc4a22257edf40fd31f9d
[ "MIT" ]
102
2018-10-13T22:46:03.000Z
2022-01-03T19:20:09.000Z
torchgan/losses/auxclassifier.py
yuhao20/torchgan
cfd5da4b7ffcec544c6cc4a22257edf40fd31f9d
[ "MIT" ]
164
2018-10-12T08:36:29.000Z
2022-03-31T03:12:08.000Z
import torch from .functional import auxiliary_classification_loss from .loss import DiscriminatorLoss, GeneratorLoss __all__ = [ "AuxiliaryClassifierGeneratorLoss", "AuxiliaryClassifierDiscriminatorLoss", ] class AuxiliaryClassifierGeneratorLoss(GeneratorLoss): r"""Auxiliary Classifier GAN (ACGAN) loss...
43.935484
111
0.622736
7970a2f63004ccf0e2718d6c1f23042e298dbf0d
1,176
py
Python
mayan/apps/mayan_statistics/migrations/0002_auto_20191116_0236.py
darrenflexxu/Mayan-EDMS
6707365bfacd137e625ddc1b990168012246fa07
[ "Apache-2.0" ]
null
null
null
mayan/apps/mayan_statistics/migrations/0002_auto_20191116_0236.py
darrenflexxu/Mayan-EDMS
6707365bfacd137e625ddc1b990168012246fa07
[ "Apache-2.0" ]
5
2021-03-19T22:59:52.000Z
2022-03-12T00:13:16.000Z
mayan/apps/mayan_statistics/migrations/0002_auto_20191116_0236.py
Sumit-Kumar-Jha/mayan
5b7ddeccf080b9e41cc1074c70e27dfe447be19f
[ "Apache-2.0" ]
1
2020-07-29T21:03:27.000Z
2020-07-29T21:03:27.000Z
from __future__ import unicode_literals from django.db import migrations, models def operation_rename_duplicates(apps, schema_editor): StatisticResult = apps.get_model( app_label='mayan_statistics', model_name='StatisticResult' ) slugs = [] for entry in StatisticResult.objects.using(schema_e...
26.133333
85
0.585034
7970a31d0674fd84bd83c8138aba3d92169404d2
1,711
py
Python
IGDBService/importdata/models.py
fga-eps-mds/2018.2-GamesBI_IgdbService
d3508b4ab778ad7f150db09cd5ca20424200353f
[ "MIT" ]
null
null
null
IGDBService/importdata/models.py
fga-eps-mds/2018.2-GamesBI_IgdbService
d3508b4ab778ad7f150db09cd5ca20424200353f
[ "MIT" ]
10
2018-09-05T14:10:23.000Z
2018-09-19T00:15:46.000Z
IGDBService/importdata/models.py
fga-eps-mds/2018.2-GamesBI_IgdbService
d3508b4ab778ad7f150db09cd5ca20424200353f
[ "MIT" ]
2
2018-09-05T12:37:44.000Z
2018-09-12T23:56:37.000Z
from django.db import models class Genre(models.Model): id = models.IntegerField( ('Genre ID'), help_text=("Genre id at IGDB"), primary_key=True, ) name = models.CharField( ('Genre name'), help_text=("Genre name"), max_length=100, ) class IGDBGame(models.Model): id = models.IntegerField( ('IGDB...
17.459184
70
0.659848
7970a33bab13514de6d4de679493a5a19d9ee7ed
1,070
py
Python
sandbox/train_stuff.py
HJReachability/learning_feedback_linearization
cb655ade4cfbf53f5dd19f79c943f7665666f2cb
[ "BSD-3-Clause" ]
3
2020-12-18T01:51:30.000Z
2021-07-12T14:49:31.000Z
sandbox/train_stuff.py
HJReachability/learning_feedback_linearization
cb655ade4cfbf53f5dd19f79c943f7665666f2cb
[ "BSD-3-Clause" ]
1
2020-09-19T22:41:50.000Z
2020-09-19T22:41:51.000Z
sandbox/train_stuff.py
HJReachability/learning_feedback_linearization
cb655ade4cfbf53f5dd19f79c943f7665666f2cb
[ "BSD-3-Clause" ]
null
null
null
import gym import tensorflow as tf import spinup import numpy as np #defining arguments for environment envargs = {"uscaling": 0.1} #making environment lambda function #env = lambda : gym.make("quadrotor_14d_env:Quadrotor14dEnv-v0", uscaling=0.1, dynamicsScaling = 0) env = lambda : gym.make("custom_envs:BallAndBeamEn...
23.26087
99
0.65514
7970a3a2e432b65da381a3ecd7c88f46721cbc6c
14,531
py
Python
1.Data-exploration/Profiles_level4/cell_painting/scripts/nbconverted/8.cellpainting_calculate_nonspherized_null_p_values.py
broadinstitute/lincs-profiling-comparison
075c3bc60eeb3934fc42c30bae6aeed8cda1cd6d
[ "BSD-3-Clause" ]
1
2021-07-20T07:47:02.000Z
2021-07-20T07:47:02.000Z
1.Data-exploration/Profiles_level4/cell_painting/scripts/nbconverted/8.cellpainting_calculate_nonspherized_null_p_values.py
broadinstitute/lincs-profiling-comparison
075c3bc60eeb3934fc42c30bae6aeed8cda1cd6d
[ "BSD-3-Clause" ]
19
2020-10-24T20:55:27.000Z
2021-08-13T16:26:30.000Z
1.Data-exploration/Profiles_level4/cell_painting/scripts/nbconverted/8.cellpainting_calculate_nonspherized_null_p_values.py
broadinstitute/lincs-profiling-comparison
075c3bc60eeb3934fc42c30bae6aeed8cda1cd6d
[ "BSD-3-Clause" ]
3
2020-10-24T18:14:07.000Z
2021-06-24T17:36:25.000Z
#!/usr/bin/env python # coding: utf-8 # ## Calculate null distribution from median Cell Painting scores with same sample size as L1000 # # Code modified from @adeboyeML # In[1]: import os import pathlib import pandas as pd import numpy as np from collections import defaultdict from pycytominer import feature_selec...
28.160853
141
0.683504
7970a3c71401b4835ba09158ea06134418afa065
44,762
py
Python
fairseq/examples/speech_text_joint_to_text/models/s2t_dualinputtransformer.py
zhaoguangxiang/OFA
cc1719df2713f0a046f34acb0afd8782e08ea6be
[ "Apache-2.0" ]
367
2022-02-07T10:46:36.000Z
2022-03-31T14:20:57.000Z
fairseq/examples/speech_text_joint_to_text/models/s2t_dualinputtransformer.py
zhaoguangxiang/OFA
cc1719df2713f0a046f34acb0afd8782e08ea6be
[ "Apache-2.0" ]
29
2022-02-16T03:43:33.000Z
2022-03-31T03:23:35.000Z
fairseq/examples/speech_text_joint_to_text/models/s2t_dualinputtransformer.py
zhaoguangxiang/OFA
cc1719df2713f0a046f34acb0afd8782e08ea6be
[ "Apache-2.0" ]
44
2022-02-11T05:14:59.000Z
2022-03-30T19:54:33.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging from collections import namedtuple import torch import torch.nn as nn from fairseq import checkpoint_utils from fairseq import...
41.028414
126
0.615299
7970a3e3f61df32f2e01dfbeadb98cbcb771a4ec
6,812
py
Python
kubernetes/client/models/v1_stateful_set_list.py
pllsxyc/python
442ebc019056c2dc246be94f85cf61f1e1d26a88
[ "Apache-2.0" ]
1
2019-10-07T13:54:36.000Z
2019-10-07T13:54:36.000Z
kubernetes/client/models/v1_stateful_set_list.py
pllsxyc/python
442ebc019056c2dc246be94f85cf61f1e1d26a88
[ "Apache-2.0" ]
8
2020-10-28T01:18:36.000Z
2021-06-11T01:06:15.000Z
kubernetes/client/models/v1_stateful_set_list.py
pllsxyc/python
442ebc019056c2dc246be94f85cf61f1e1d26a88
[ "Apache-2.0" ]
1
2021-03-16T16:05:33.000Z
2021-03-16T16:05:33.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
33.392157
312
0.625367
7970a3fce9d4fea7cc1aa6115d3571e2057f6820
3,914
py
Python
resolwe_bio/tools/genehcluster.py
JenkoB/resolwe-bio
a958cf3fc82ebc37f527e1b156753f2324a33803
[ "Apache-2.0" ]
null
null
null
resolwe_bio/tools/genehcluster.py
JenkoB/resolwe-bio
a958cf3fc82ebc37f527e1b156753f2324a33803
[ "Apache-2.0" ]
null
null
null
resolwe_bio/tools/genehcluster.py
JenkoB/resolwe-bio
a958cf3fc82ebc37f527e1b156753f2324a33803
[ "Apache-2.0" ]
1
2021-09-03T08:50:54.000Z
2021-09-03T08:50:54.000Z
#!/usr/bin/env python2 # pylint: disable=missing-docstring,invalid-name,import-error # XXX: Refactor to a comand line tool and remove pylint disable """Hierarchical clustering of expression time courses.""" from __future__ import absolute_import, division, print_function import argparse import json import numpy as np...
31.821138
99
0.660705
7970a706543fb55960da2e610beac2a6a763dceb
48
py
Python
config/__init__.py
bateman/wolproxypyapi
41e955cf08bc5c677a7b97513082827211998889
[ "MIT" ]
null
null
null
config/__init__.py
bateman/wolproxypyapi
41e955cf08bc5c677a7b97513082827211998889
[ "MIT" ]
2
2021-12-28T07:56:06.000Z
2022-01-17T12:20:37.000Z
config/__init__.py
bateman/wolproxypyapi
41e955cf08bc5c677a7b97513082827211998889
[ "MIT" ]
null
null
null
from .config import API_KEY, api_config, logger
24
47
0.8125
7970a7202276fad4c5c687fc7320a62f45698382
559
py
Python
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/3_features/numtrees_45/rule_23.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/3_features/numtrees_45/rule_23.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/3_features/numtrees_45/rule_23.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
def findDecision(obj): #obj[0]: Coupon, obj[1]: Education, obj[2]: Occupation # {"feature": "Occupation", "instances": 23, "metric_value": 0.9986, "depth": 1} if obj[2]<=12: # {"feature": "Education", "instances": 20, "metric_value": 0.9928, "depth": 2} if obj[1]<=2: # {"feature": "Coupon", "instances": 15, "m...
31.055556
81
0.601073
7970a74afdd639af89f364a51eea55f29b09195e
4,401
py
Python
libpyka/db/pypostgres.py
karakawa88/libpyka
3cd29b68f26ca6bce6239545142b7cc410d97bd1
[ "MIT" ]
null
null
null
libpyka/db/pypostgres.py
karakawa88/libpyka
3cd29b68f26ca6bce6239545142b7cc410d97bd1
[ "MIT" ]
null
null
null
libpyka/db/pypostgres.py
karakawa88/libpyka
3cd29b68f26ca6bce6239545142b7cc410d97bd1
[ "MIT" ]
null
null
null
"""DB PostgreSQL関連ユティリティモジュール 内部ではpsycopg2モジュールを使用している。 Examples: python3 -m pypostgres で引数に何もしないでスクリプトで実行するとDB設定iniファイルの雛形を出力。 そのDB設定iniファイルはこのライブラリのconf/postgres.iniファイルである。 """ from typing import Optional, Union, Any from typing import Callable, NoReturn from typing import Sequence, Iterable, List, Tu...
29.145695
91
0.651897
7970a9473cd9e6167c234d46021767a803024983
358
py
Python
list03/exer_16.py
pedrolucas27/exercising-python
4b30bbce6b860fb617baf4600d8da83b68023e82
[ "MIT" ]
null
null
null
list03/exer_16.py
pedrolucas27/exercising-python
4b30bbce6b860fb617baf4600d8da83b68023e82
[ "MIT" ]
null
null
null
list03/exer_16.py
pedrolucas27/exercising-python
4b30bbce6b860fb617baf4600d8da83b68023e82
[ "MIT" ]
null
null
null
#Faça um programa que peça um número inteiro e determine se ele é ou não um número primo. # Um número primo é aquele que é divisível somente por ele mesmo e por 1. n = int(input("Informe um número:")) c = 0 for i in range(1,n+1): if n % i == 0: c += 1 if c == 2: print("{} é primo!".format(n)) else: ...
25.571429
89
0.614525
7970a972f08817447c2fa8a3acf2a5e0ad137ca1
483
py
Python
PropelRapp/migrations/0037_auto_20200521_0733.py
Adi1222/PropelR
453196cb8ad7c251b650c6bd147a8be5ee8eed50
[ "MIT" ]
1
2021-12-03T11:24:57.000Z
2021-12-03T11:24:57.000Z
PropelRapp/migrations/0037_auto_20200521_0733.py
Adi1222/PropelR
453196cb8ad7c251b650c6bd147a8be5ee8eed50
[ "MIT" ]
null
null
null
PropelRapp/migrations/0037_auto_20200521_0733.py
Adi1222/PropelR
453196cb8ad7c251b650c6bd147a8be5ee8eed50
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2020-05-21 07:33 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('PropelRapp', '0036_auto_20200521_0729'), ] operations = [ migrations.AlterField( model_name='ro...
24.15
106
0.648033
7970a9bccf9be86c628556c671905a4df33a8cc6
4,604
py
Python
controllers/admin/admin_user_controller.py
dc74089/the-blue-alliance
2c47b6e8b61819eda4dcda5e0011cb2d5c7d3785
[ "MIT" ]
null
null
null
controllers/admin/admin_user_controller.py
dc74089/the-blue-alliance
2c47b6e8b61819eda4dcda5e0011cb2d5c7d3785
[ "MIT" ]
null
null
null
controllers/admin/admin_user_controller.py
dc74089/the-blue-alliance
2c47b6e8b61819eda4dcda5e0011cb2d5c7d3785
[ "MIT" ]
null
null
null
from datetime import datetime import logging import os from google.appengine.api import users from google.appengine.ext import ndb from google.appengine.ext.webapp import template from controllers.base_controller import LoggedInHandler from consts.account_permissions import AccountPermissions from models.account impo...
30.289474
106
0.623588
7970a9f10c2321a91501dd6b8d467ca4b1c6f81f
10,079
py
Python
napari/utils/theme.py
MosGeo/napari
83e63fb628c5d52887a54324bf6745d63750752b
[ "BSD-3-Clause" ]
1,345
2019-03-03T21:14:14.000Z
2022-03-31T19:46:39.000Z
napari/utils/theme.py
MosGeo/napari
83e63fb628c5d52887a54324bf6745d63750752b
[ "BSD-3-Clause" ]
3,904
2019-03-02T01:30:24.000Z
2022-03-31T20:17:27.000Z
napari/utils/theme.py
MosGeo/napari
83e63fb628c5d52887a54324bf6745d63750752b
[ "BSD-3-Clause" ]
306
2019-03-29T17:09:10.000Z
2022-03-30T09:54:11.000Z
# syntax_style for the console must be one of the supported styles from # pygments - see here for examples https://help.farbox.com/pygments.html import re import warnings from ast import literal_eval from typing import Union from pydantic import validator from pydantic.color import Color try: from qtpy import QT_...
29.644118
189
0.582399
7970aa3c09fd2ac6f6bcf7a32a3bd7869eed3a94
1,616
py
Python
blueqat/utils.py
shinmorino/Blueqat
eac73c041306fa0d9146104acce123a8cd5ec8e5
[ "Apache-2.0" ]
null
null
null
blueqat/utils.py
shinmorino/Blueqat
eac73c041306fa0d9146104acce123a8cd5ec8e5
[ "Apache-2.0" ]
null
null
null
blueqat/utils.py
shinmorino/Blueqat
eac73c041306fa0d9146104acce123a8cd5ec8e5
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Blueqat Developers # # 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...
40.4
95
0.689356
7970aa708751ee6a4b070c68336ca60913d78621
7,988
py
Python
VVeb.UQ/www/interfaces/submit_prominence_workflow.py
ukaea/ALC_UQ
a2747c94036b04f1279abb5683c6a225a878aea3
[ "Apache-2.0" ]
2
2021-11-24T10:43:50.000Z
2021-12-07T20:02:38.000Z
VVeb.UQ/www/interfaces/submit_prominence_workflow.py
ukaea/ALC_UQ
a2747c94036b04f1279abb5683c6a225a878aea3
[ "Apache-2.0" ]
null
null
null
VVeb.UQ/www/interfaces/submit_prominence_workflow.py
ukaea/ALC_UQ
a2747c94036b04f1279abb5683c6a225a878aea3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import os import subprocess import sys import json import requests import time # --- Function to execute command with interactive printout sent to web-terminal in real-time def interactive_command(cmd,session_name): # --- Execute command try: cmd2 = 'printf "' + cmd + '" > /VVebUQ_ru...
34.431034
115
0.64672
7970aaa842c6dccc15dd4f8e8ada38428d55e3f0
7,634
py
Python
label_studio/data_manager/functions.py
cdpath/label-studio
68d0a05b335d090160ec45a253dd4ca386de536a
[ "Apache-2.0" ]
1
2021-10-20T04:22:09.000Z
2021-10-20T04:22:09.000Z
label_studio/data_manager/functions.py
cdpath/label-studio
68d0a05b335d090160ec45a253dd4ca386de536a
[ "Apache-2.0" ]
6
2022-02-21T15:19:35.000Z
2022-03-07T15:25:16.000Z
label_studio/data_manager/functions.py
cdpath/label-studio
68d0a05b335d090160ec45a253dd4ca386de536a
[ "Apache-2.0" ]
1
2021-08-18T15:07:47.000Z
2021-08-18T15:07:47.000Z
"""This file and its contents are licensed under the Apache License 2.0. Please see the included NOTICE for copyright information and LICENSE for a copy of the license. """ import logging from collections import OrderedDict from django.conf import settings from rest_framework.generics import get_object_or_404 from co...
32.485106
168
0.528687
7970acab1cbbf0f161bdd9761278fc651290b20c
95
py
Python
string/strStr.py
ZeddShi/alg-py
f491dbf92bf7ddf0ac159d1ccfa1f716e458699f
[ "MIT" ]
null
null
null
string/strStr.py
ZeddShi/alg-py
f491dbf92bf7ddf0ac159d1ccfa1f716e458699f
[ "MIT" ]
null
null
null
string/strStr.py
ZeddShi/alg-py
f491dbf92bf7ddf0ac159d1ccfa1f716e458699f
[ "MIT" ]
null
null
null
# 给定一个 haystack 字符串和一个 needle 字符串,在 haystack 字符串中找出 needle 字符串出现的第一个位置 (从0开始)。如果不存在,则返回 -1。
23.75
92
0.757895
7970acc5244d1e091e6b158df96aadc52b748919
35,994
py
Python
api/proquest/importer.py
arielmorelli/circulation
6008f79c502f58484dd8c800ccc90c34b6d5e9d7
[ "Apache-2.0" ]
null
null
null
api/proquest/importer.py
arielmorelli/circulation
6008f79c502f58484dd8c800ccc90c34b6d5e9d7
[ "Apache-2.0" ]
null
null
null
api/proquest/importer.py
arielmorelli/circulation
6008f79c502f58484dd8c800ccc90c34b6d5e9d7
[ "Apache-2.0" ]
null
null
null
import datetime import json import logging import tempfile from contextlib import contextmanager import six import webpub_manifest_parser.opds2.ast as opds2_ast from flask_babel import lazy_gettext as _ from requests import HTTPError from sqlalchemy import or_ from webpub_manifest_parser.utils import encode from api....
35.637624
120
0.615047
7970ad127c66a5cd21bf6ee93fd4c01303275fc3
497
py
Python
lab/lab08/tests/zap.py
tejashah88/cs61a-self-study
e32d77f751af66008ff4c69ffe0b32688b275516
[ "MIT" ]
6
2018-09-01T15:11:11.000Z
2022-03-23T00:34:31.000Z
labs/lab08/tests/zap.py
abalone88/cs61a_2018sp
59d408d0961cf71faf10b77779bfc71c0c508f0c
[ "MIT" ]
null
null
null
labs/lab08/tests/zap.py
abalone88/cs61a_2018sp
59d408d0961cf71faf10b77779bfc71c0c508f0c
[ "MIT" ]
3
2020-07-25T22:03:58.000Z
2022-01-05T18:54:52.000Z
test = { 'name': 'Zap', 'points': 0, 'suites': [ { 'cases': [ { 'answer': 'log(n)', 'choices': [ '1', 'n', 'log(n)', 'n^2', 'n^3', 'n^4', 'exponential' ], 'hidden': False, ...
17.75
71
0.317907
7970ae239c8954579b37f6cd91f17cacb3494bba
2,587
py
Python
tests/demo/test_demo_rotate_keys.py
alex-polosky/didcomm-python
955866024c9f6191df9c5a898cc77e1979781eae
[ "Apache-2.0" ]
8
2021-09-04T19:28:18.000Z
2021-12-22T16:00:18.000Z
tests/demo/test_demo_rotate_keys.py
alex-polosky/didcomm-python
955866024c9f6191df9c5a898cc77e1979781eae
[ "Apache-2.0" ]
4
2021-07-27T23:44:33.000Z
2021-10-13T13:29:39.000Z
tests/demo/test_demo_rotate_keys.py
alex-polosky/didcomm-python
955866024c9f6191df9c5a898cc77e1979781eae
[ "Apache-2.0" ]
7
2021-07-22T08:19:13.000Z
2022-01-04T14:46:38.000Z
import pytest as pytest from didcomm.common.resolvers import ResolversConfig from didcomm.message import Message, FromPrior from didcomm.pack_encrypted import ( pack_encrypted, PackEncryptedConfig, PackEncryptedParameters, ) from didcomm.protocols.routing.forward import unpack_forward from didcomm.secrets....
31.168675
87
0.74913
7970afd818264472766678ddf7619c9bcdf333a3
1,285
py
Python
partnerclient/hfppnetwork/partner/logginghelper.py
NASA-Tournament-Lab/CoECI-CMS-Healthcare-Fraud-Prevention
4facd935920e77239c25323ca7e233cb899ba9f5
[ "Apache-2.0" ]
7
2015-07-15T06:47:16.000Z
2020-10-17T20:51:09.000Z
partnerclient/hfppnetwork/partner/logginghelper.py
NASA-Tournament-Lab/CoECI-CMS-Healthcare-Fraud-Prevention
4facd935920e77239c25323ca7e233cb899ba9f5
[ "Apache-2.0" ]
null
null
null
partnerclient/hfppnetwork/partner/logginghelper.py
NASA-Tournament-Lab/CoECI-CMS-Healthcare-Fraud-Prevention
4facd935920e77239c25323ca7e233cb899ba9f5
[ "Apache-2.0" ]
8
2017-01-30T02:27:01.000Z
2021-04-21T04:15:48.000Z
# -*- coding: utf-8 -*- """ Copyright (C) 2013 TopCoder Inc., All Rights Reserved. This is the module that defines logging helper methods This module resides in Python source file logginghelper.py Thread Safety: It is thread safe because no module-level variable is used. @author: TCSASSEMBLER @version: 1.0 """ import...
31.341463
77
0.693385
7970b00eea394d371447081d3bdd09c54319a5dd
750
py
Python
face/migrations/0001_initial.py
jstavanja/quiz-biometrics-api
75e0db348668b14a85f94261aac092ae2d5fa9c6
[ "MIT" ]
null
null
null
face/migrations/0001_initial.py
jstavanja/quiz-biometrics-api
75e0db348668b14a85f94261aac092ae2d5fa9c6
[ "MIT" ]
null
null
null
face/migrations/0001_initial.py
jstavanja/quiz-biometrics-api
75e0db348668b14a85f94261aac092ae2d5fa9c6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-08-23 16:39 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('student', '0002_auto_20180823_1628'), ...
27.777778
114
0.621333
7970b013228d2af5bd195f3e337ed53071b854ec
3,381
py
Python
kurator/lib/tests/test_record.py
SaltyCatFish/kurator
6b6e8f61085cb89534fe7e70882c496cfd074110
[ "MIT" ]
null
null
null
kurator/lib/tests/test_record.py
SaltyCatFish/kurator
6b6e8f61085cb89534fe7e70882c496cfd074110
[ "MIT" ]
null
null
null
kurator/lib/tests/test_record.py
SaltyCatFish/kurator
6b6e8f61085cb89534fe7e70882c496cfd074110
[ "MIT" ]
null
null
null
import os import sqlite3 import pytest from kurator.lib.record import SqliteRecord DB_NAME = SqliteRecord.DATABASE_NAME class Test_Record: @pytest.fixture(autouse=True) def setup(self, tmpdir): self.record = SqliteRecord(os.path.join(tmpdir, DB_NAME)) self.connection = sqlite3.connect(os.p...
39.313953
180
0.650399
7970b0dd9c18cb66ec845d4901955716872a9be3
105
py
Python
api/server_eve.py
EricTsai83/nobel_viz
461b3c1cb26af35a69f576696f724da12681b690
[ "MIT" ]
null
null
null
api/server_eve.py
EricTsai83/nobel_viz
461b3c1cb26af35a69f576696f724da12681b690
[ "MIT" ]
null
null
null
api/server_eve.py
EricTsai83/nobel_viz
461b3c1cb26af35a69f576696f724da12681b690
[ "MIT" ]
null
null
null
# api/server_eve.py from eve import Eve app = Eve() if __name__ == '__main__': app.run(debug=True)
13.125
26
0.666667
7970b162c6b4a82809c5918c42af880c7cce8305
782
py
Python
visualize.py
MahmudulAlam/Recurrently-Semantic-Segmentation
64f988e3e278ef7807cdb2dd48c79eb1bbc66519
[ "MIT" ]
1
2022-02-15T21:18:14.000Z
2022-02-15T21:18:14.000Z
visualize.py
MahmudulAlam/Recurrently-Semantic-Segmentation
64f988e3e278ef7807cdb2dd48c79eb1bbc66519
[ "MIT" ]
null
null
null
visualize.py
MahmudulAlam/Recurrently-Semantic-Segmentation
64f988e3e278ef7807cdb2dd48c79eb1bbc66519
[ "MIT" ]
null
null
null
import colorsys import numpy as np def random_colors(N, bright=True): brightness = 1.0 if bright else 0.7 hsv = [(i / N, 1, brightness) for i in range(N)] colors = list(map(lambda c: colorsys.hsv_to_rgb(*c), hsv)) return colors def apply_mask(image, mask, color, alpha=0.5): for i in range(3): ...
28.962963
115
0.601023