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
29ea67d659da7653aa136c153a4cb40ea40cdc95
3,826
py
Python
configs/MJOD_Net/MJOD_Net_ratio_1111_coco_mahjong_lr_0.02_batch_8_epoch_24.py
jaheel/MJOD-2136
81d4b8b79316f010279ef2c13a30827ae6b25c87
[ "Apache-2.0" ]
null
null
null
configs/MJOD_Net/MJOD_Net_ratio_1111_coco_mahjong_lr_0.02_batch_8_epoch_24.py
jaheel/MJOD-2136
81d4b8b79316f010279ef2c13a30827ae6b25c87
[ "Apache-2.0" ]
null
null
null
configs/MJOD_Net/MJOD_Net_ratio_1111_coco_mahjong_lr_0.02_batch_8_epoch_24.py
jaheel/MJOD-2136
81d4b8b79316f010279ef2c13a30827ae6b25c87
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py' ] model = dict( type='MJODNet', pretrained='open-mmlab://regnetx_400mf', backbone=dict( type='RegNet', arch='regnetx_400mf', out_indices=(3, ), frozen_stages=1, norm_cfg=dict(type='BN'...
31.105691
77
0.600105
229dfdf9d194e0199778bec6ee0bd53635b538ad
32,650
py
Python
counterblock/lib/modules/dex/__init__.py
droplister/counterblock
92de24fe0881388b7ffa31ea68eab72f7f1a47d0
[ "MIT" ]
null
null
null
counterblock/lib/modules/dex/__init__.py
droplister/counterblock
92de24fe0881388b7ffa31ea68eab72f7f1a47d0
[ "MIT" ]
null
null
null
counterblock/lib/modules/dex/__init__.py
droplister/counterblock
92de24fe0881388b7ffa31ea68eab72f7f1a47d0
[ "MIT" ]
null
null
null
""" Implements counterwallet asset-related support as a counterblock plugin DEPENDENCIES: This module requires the assets module to be loaded before it. Python 2.x, as counterblock is still python 2.x """ import os import sys import time import datetime import logging import decimal import urllib.request import urlli...
49.620061
174
0.656815
3ce69e30cf81b3eeb5702376274eb1c9eaada075
3,702
py
Python
devilry/utils/graphviz/dot.py
aless80/devilry-django
416c262e75170d5662542f15e2d7fecf5ab84730
[ "BSD-3-Clause" ]
29
2015-01-18T22:56:23.000Z
2020-11-10T21:28:27.000Z
devilry/utils/graphviz/dot.py
aless80/devilry-django
416c262e75170d5662542f15e2d7fecf5ab84730
[ "BSD-3-Clause" ]
786
2015-01-06T16:10:18.000Z
2022-03-16T11:10:50.000Z
devilry/utils/graphviz/dot.py
aless80/devilry-django
416c262e75170d5662542f15e2d7fecf5ab84730
[ "BSD-3-Clause" ]
15
2015-04-06T06:18:43.000Z
2021-02-24T12:28:30.000Z
class UmlField(list): def __init__(self, name, fieldtype='', visibility='+'): self.name = name self.fieldtype = fieldtype self.visibility = visibility def __str__(self): return '%(visibility)s %(name)s: %(fieldtype)s' % self.__dict__ class UmlClassLabel(object): table_tpl =...
28.259542
89
0.531334
4f0bd608791427979fa3c5d2bffac736abf2cc5c
14,408
py
Python
wrappers/python/virgil_crypto_lib/foundation/_c_bridge/_vscf_aes256_gcm.py
odidev/virgil-crypto-c
3d5d5cb19fdcf81eab08cdc63647f040117ecbd8
[ "BSD-3-Clause" ]
26
2018-12-17T13:45:25.000Z
2022-01-16T20:00:04.000Z
wrappers/python/virgil_crypto_lib/foundation/_c_bridge/_vscf_aes256_gcm.py
odidev/virgil-crypto-c
3d5d5cb19fdcf81eab08cdc63647f040117ecbd8
[ "BSD-3-Clause" ]
4
2019-01-03T12:08:52.000Z
2021-12-02T05:21:13.000Z
wrappers/python/virgil_crypto_lib/foundation/_c_bridge/_vscf_aes256_gcm.py
odidev/virgil-crypto-c
3d5d5cb19fdcf81eab08cdc63647f040117ecbd8
[ "BSD-3-Clause" ]
8
2019-01-24T08:22:06.000Z
2022-02-07T11:37:00.000Z
# Copyright (C) 2015-2021 Virgil Security, Inc. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # (1) Redistributions of source code must retain the above copyright # notice, this li...
52.776557
146
0.754026
38dfa920b23e8b8e31867a1ea8d33ea33ef19a35
3,076
py
Python
tests/operators/test_node_pod_operator.py
p-pekala/kedro-airflow-k8s
e619300ede95581d4acdbf43d3060a37594944b0
[ "Apache-2.0" ]
null
null
null
tests/operators/test_node_pod_operator.py
p-pekala/kedro-airflow-k8s
e619300ede95581d4acdbf43d3060a37594944b0
[ "Apache-2.0" ]
null
null
null
tests/operators/test_node_pod_operator.py
p-pekala/kedro-airflow-k8s
e619300ede95581d4acdbf43d3060a37594944b0
[ "Apache-2.0" ]
1
2021-05-11T09:50:57.000Z
2021-05-11T09:50:57.000Z
import unittest from kedro_airflow_k8s.operators.node_pod import NodePodOperator class TestNodePodOperator(unittest.TestCase): def test_task_create(self): task = NodePodOperator( node_name="test_node_name", namespace="airflow", volume_disabled=False, pvc_na...
34.954545
79
0.579649
6371962883398e184b72e7b73e8bbb196c37767a
250
py
Python
6 kyu/Mexican Wave.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
6
2020-09-03T09:32:25.000Z
2020-12-07T04:10:01.000Z
6 kyu/Mexican Wave.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
1
2021-12-13T15:30:21.000Z
2021-12-13T15:30:21.000Z
6 kyu/Mexican Wave.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
null
null
null
def wave(people): temp="" result=[] for i in range(0,len(people)): if people[i].isalpha(): temp+=people[0:i]+people[i].upper()+people[i+1:] result.append(temp) temp="" return result
25
60
0.496
e39a97dbd6523b9fb2247eb1a593e105ec8c4ce3
28,790
py
Python
queue_fair_adapter/queue_fair_adapter.py
Queue-Fair/python
4846398d58809c4ff42d63b524c8162d5a39bb67
[ "MIT" ]
null
null
null
queue_fair_adapter/queue_fair_adapter.py
Queue-Fair/python
4846398d58809c4ff42d63b524c8162d5a39bb67
[ "MIT" ]
null
null
null
queue_fair_adapter/queue_fair_adapter.py
Queue-Fair/python
4846398d58809c4ff42d63b524c8162d5a39bb67
[ "MIT" ]
null
null
null
from queue_fair_adapter.queue_fair_config import QueueFairConfig from queue_fair_adapter.queue_fair_logger import QueueFairLogger import json import urllib import traceback import hashlib import hmac import time import shelve import os class QueueFairAdapter: COOKIE_NAME_BASE = 'QueueFair-Pass-' ...
33.360371
97
0.478986
100c9ed4d942f0afb0a68169e0b2ce0cef4fdb84
1,422
py
Python
SOLVED/valid-parentheses.py
Roxxum/Coding-Challenges
4212653e9687d002586249df8bb42d17b398f667
[ "MIT" ]
null
null
null
SOLVED/valid-parentheses.py
Roxxum/Coding-Challenges
4212653e9687d002586249df8bb42d17b398f667
[ "MIT" ]
null
null
null
SOLVED/valid-parentheses.py
Roxxum/Coding-Challenges
4212653e9687d002586249df8bb42d17b398f667
[ "MIT" ]
null
null
null
""" Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: Open brackets must be closed by the same type of brackets. Open brackets must be closed in the correct order. Example 1: Input: s = "()" Output: true Example 2: I...
18.710526
120
0.512658
2a7020eeaa07eb6df9e5c96f4d67b54c22e373ae
1,737
py
Python
zerorpc/socket.py
prakatmac/zerorpc-python
46b90d1d7d00bef45d723b41cdf7383853959549
[ "MIT" ]
1
2017-05-03T14:44:41.000Z
2017-05-03T14:44:41.000Z
zerorpc/socket.py
madscheme/zerorpc-python
3428fdbd615dbc775dca019561a96a5f32638941
[ "MIT" ]
null
null
null
zerorpc/socket.py
madscheme/zerorpc-python
3428fdbd615dbc775dca019561a96a5f32638941
[ "MIT" ]
1
2021-09-08T09:56:24.000Z
2021-09-08T09:56:24.000Z
# -*- coding: utf-8 -*- # Open Source Initiative OSI - The MIT License (MIT):Licensing # # The MIT License (MIT) # Copyright (c) 2012 DotCloud Inc (opensource@dotcloud.com) # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Softwa...
39.477273
81
0.747841
b08265f5bd91c48fc2a4d9340d90ea1db6a53ebc
1,134
py
Python
cacheback/queryset.py
coagulant/django-cacheback
b57b77af572a1c47ea8161f96b1e8a7b7cec0d00
[ "MIT" ]
null
null
null
cacheback/queryset.py
coagulant/django-cacheback
b57b77af572a1c47ea8161f96b1e8a7b7cec0d00
[ "MIT" ]
null
null
null
cacheback/queryset.py
coagulant/django-cacheback
b57b77af572a1c47ea8161f96b1e8a7b7cec0d00
[ "MIT" ]
1
2018-08-02T14:38:10.000Z
2018-08-02T14:38:10.000Z
from cacheback.base import Job class QuerySetJob(Job): """ Helper class for wrapping ORM reads """ def __init__(self, model, lifetime=None, fetch_on_miss=None): """ :model: The model class to use """ super(QuerySetJob, self).__init__() self.model = model ...
25.2
65
0.585538
b243e82109ded742382d198c8f27851cddc0e66d
804
py
Python
tests/unit/control/test_sub_categories.py
code-R/retail_app
ea7d268a4994d12f8ef6ed609e8593e5337de74f
[ "MIT" ]
2
2018-04-16T02:40:26.000Z
2019-11-29T15:33:22.000Z
tests/unit/control/test_sub_categories.py
code-R/retail_app
ea7d268a4994d12f8ef6ed609e8593e5337de74f
[ "MIT" ]
null
null
null
tests/unit/control/test_sub_categories.py
code-R/retail_app
ea7d268a4994d12f8ef6ed609e8593e5337de74f
[ "MIT" ]
null
null
null
from sqlalchemy.orm import sessionmaker from retailstore.control import sub_categories from retailstore.db.sqlalchemy.models import SubCategory from retailstore.serializers.schemas import SubCategorySchema def test_collection_properties(mocker): session = mocker.MagicMock(sessionmaker) api = sub_categories.C...
33.5
61
0.802239
3b7851fc4da3d494b4f3e4da84a0cae9440ff1ac
2,122
py
Python
tests/graphs/algorithms/test_matching.py
ref-humbold/AlgoLib_Python
05f725504656ec93b879374a8cd87464d88fff77
[ "Apache-2.0" ]
null
null
null
tests/graphs/algorithms/test_matching.py
ref-humbold/AlgoLib_Python
05f725504656ec93b879374a8cd87464d88fff77
[ "Apache-2.0" ]
null
null
null
tests/graphs/algorithms/test_matching.py
ref-humbold/AlgoLib_Python
05f725504656ec93b879374a8cd87464d88fff77
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Tests: Hopcroft-Karp algorithm for matching in bipartite graph""" import unittest from assertpy import assert_that from algolib.graphs import MultipartiteGraph from algolib.graphs.algorithms import match class MatchingTest(unittest.TestCase): @staticmethod def test__match__when_ma...
41.607843
83
0.590009
fb4b42d1db76a10439405eb19b6792d7d57c8cd3
6,582
py
Python
utils.py
BL-Lac149597870/drugVQA
604703d66457c958ddc9eeb35268391edb6c4996
[ "MIT" ]
null
null
null
utils.py
BL-Lac149597870/drugVQA
604703d66457c958ddc9eeb35268391edb6c4996
[ "MIT" ]
null
null
null
utils.py
BL-Lac149597870/drugVQA
604703d66457c958ddc9eeb35268391edb6c4996
[ "MIT" ]
null
null
null
import numpy as np import re import torch from torch.autograd import Variable # from torch.utils.data import Dataset, DataLoader def create_variable(tensor): # Do cuda() before wrapping with variable if torch.cuda.is_available(): return Variable(tensor.cuda()) else: return Variable(tensor) ...
40.881988
91
0.665755
0c5a0e8b85cf7c725ad7810e9d1977448f4eaf63
850
py
Python
src/itemsapp/migrations/0021_auto_20211011_1728.py
robertsmoto/sodavault
200e843be7abe6cc447647bba55c7c1309092e5e
[ "BSD-3-Clause" ]
null
null
null
src/itemsapp/migrations/0021_auto_20211011_1728.py
robertsmoto/sodavault
200e843be7abe6cc447647bba55c7c1309092e5e
[ "BSD-3-Clause" ]
null
null
null
src/itemsapp/migrations/0021_auto_20211011_1728.py
robertsmoto/sodavault
200e843be7abe6cc447647bba55c7c1309092e5e
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.2.3 on 2021-10-11 17:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('itemsapp', '0020_groupchildren'), ] operations = [ migrations.AddField( model_name='item', name='categories', ...
29.310345
112
0.602353
3974467614d3004877313d4ca3b7efdea25f0322
258
py
Python
classifiers/chapter7/__init__.py
fulequn/DLAction
da2ff080f7a65f89010a5829b86fc1b45beb9dc8
[ "MIT" ]
null
null
null
classifiers/chapter7/__init__.py
fulequn/DLAction
da2ff080f7a65f89010a5829b86fc1b45beb9dc8
[ "MIT" ]
null
null
null
classifiers/chapter7/__init__.py
fulequn/DLAction
da2ff080f7a65f89010a5829b86fc1b45beb9dc8
[ "MIT" ]
null
null
null
from .layers import * from .dropout_layers import * from .updater import * from .bn_layers import * from .image_utils import * from .rnn import * from .rnn_layers import * from .cnn_layers import * from .coco_utils import * from .captioning_trainer import *
23.454545
33
0.767442
87b5f015768e37b598a9a02cad758182d184e447
945
py
Python
simulation/python_standard_lib/test/support/logging_helper.py
john-grando/pyExpandObjects
c08b1d1bc45684bc71c0f49b4d2f22c707cd4aa4
[ "BSD-3-Clause" ]
1
2020-10-25T16:33:22.000Z
2020-10-25T16:33:22.000Z
Lib/test/support/logging_helper.py
Krrishdhaneja/cpython
9ae9ad8ba35cdcece7ded73cd2207e4f8cb85578
[ "0BSD" ]
1
2021-02-03T01:56:56.000Z
2021-02-03T01:56:56.000Z
Lib/test/support/logging_helper.py
Krrishdhaneja/cpython
9ae9ad8ba35cdcece7ded73cd2207e4f8cb85578
[ "0BSD" ]
1
2022-01-11T18:31:05.000Z
2022-01-11T18:31:05.000Z
import logging.handlers class TestHandler(logging.handlers.BufferingHandler): def __init__(self, matcher): # BufferingHandler takes a "capacity" argument # so as to know when to flush. As we're overriding # shouldFlush anyway, we can set a capacity of zero. # You can call flu...
31.5
78
0.591534
1952a63d3c02fce1e1eafacfae6d42440cd5f221
4,365
py
Python
computer-vision/worker.py
vivCoding/healtheye
159d5db62773f75bd695eb1eafd80e1ca802ab46
[ "MIT" ]
3
2021-04-20T14:19:49.000Z
2022-03-15T09:30:58.000Z
computer-vision/worker.py
vivCoding/healtheye
159d5db62773f75bd695eb1eafd80e1ca802ab46
[ "MIT" ]
null
null
null
computer-vision/worker.py
vivCoding/healtheye
159d5db62773f75bd695eb1eafd80e1ca802ab46
[ "MIT" ]
2
2021-04-08T19:37:16.000Z
2021-06-23T00:59:56.000Z
import queue import threading import time import cv2 import os import shutil from draw_detections import draw_objects import requests import json import datetime class Worker: def __init__(self, vision, frame_delay=-1): self.vision = vision self.frame_delay = frame_delay self._queue = queue...
36.680672
150
0.555097
b20f3a810c36abc4aae095ecb403606465996519
3,338
py
Python
model.py
JWSoh/DUBD
af2230e947870eebeae80f913b11c74b8ba162cd
[ "MIT" ]
33
2021-01-19T05:14:45.000Z
2022-03-31T09:38:21.000Z
model.py
JWSoh/DUBD
af2230e947870eebeae80f913b11c74b8ba162cd
[ "MIT" ]
3
2021-01-19T08:07:03.000Z
2021-08-23T07:26:14.000Z
model.py
JWSoh/DUBD
af2230e947870eebeae80f913b11c74b8ba162cd
[ "MIT" ]
3
2021-03-06T10:11:40.000Z
2021-12-04T09:28:42.000Z
from ops import * class Denoiser(object): def __init__(self, x, sigma, name, reuse=False): self.input = x self.sigma= sigma self.name = name self.reuse = reuse self.noise_encoder() self.build_model() def build_model(self): print('Build Model {}'.format(...
37.505618
108
0.581186
3269048563011c3524581dd4a07d13bc2c11e3dd
3,273
py
Python
s2vegetation/download_data.py
balakumaran247/S2_Vegetation
402844869e5bb54a556d8b8481b959bdcc4f733e
[ "MIT" ]
2
2021-07-18T13:12:08.000Z
2021-10-04T18:06:22.000Z
s2vegetation/download_data.py
balakumaran247/S2_Vegetation
402844869e5bb54a556d8b8481b959bdcc4f733e
[ "MIT" ]
null
null
null
s2vegetation/download_data.py
balakumaran247/S2_Vegetation
402844869e5bb54a556d8b8481b959bdcc4f733e
[ "MIT" ]
1
2021-07-18T13:12:11.000Z
2021-07-18T13:12:11.000Z
from sentinelsat import SentinelAPI import zipfile import os, sys, shutil def check_login(username, password, latitude, longitude): ''' Checks the login and location details, SentinelAPI queries the Copernicus database ''' if username==None or password==None: print('\n Enter Login De...
42.506494
127
0.563397
ce4a58162c7f3a0d9205cc8da413858b8c379735
4,180
py
Python
homeassistant/components/daikin/__init__.py
shanbs/home-assistant
818776d2b4f11e4f51992dc88bc0a6f9055833b2
[ "Apache-2.0" ]
1
2019-02-18T03:16:32.000Z
2019-02-18T03:16:32.000Z
homeassistant/components/daikin/__init__.py
shanbs/home-assistant
818776d2b4f11e4f51992dc88bc0a6f9055833b2
[ "Apache-2.0" ]
3
2021-09-08T03:29:36.000Z
2022-03-12T00:59:48.000Z
homeassistant/components/daikin/__init__.py
shanbs/home-assistant
818776d2b4f11e4f51992dc88bc0a6f9055833b2
[ "Apache-2.0" ]
1
2019-09-28T07:06:08.000Z
2019-09-28T07:06:08.000Z
"""Platform for the Daikin AC.""" import asyncio from datetime import timedelta import logging from socket import timeout import async_timeout import voluptuous as vol from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry from homeassistant.const import CONF_HOSTS import homeassistant.helpers.config_val...
29.43662
79
0.656699
24634911d739b060d6fd93f0f8f0196e1d4667c3
2,770
py
Python
cvtools/io.py
sineatos/SpatialPyramidMatchExp
8135cb3be5f96097143a84931bee676e75ea2e2b
[ "Apache-2.0" ]
null
null
null
cvtools/io.py
sineatos/SpatialPyramidMatchExp
8135cb3be5f96097143a84931bee676e75ea2e2b
[ "Apache-2.0" ]
null
null
null
cvtools/io.py
sineatos/SpatialPyramidMatchExp
8135cb3be5f96097143a84931bee676e75ea2e2b
[ "Apache-2.0" ]
null
null
null
# -*- encoding:UTF-8 -*- """ 该模块包含一些读写相关的函数 """ import pickle import os import os.path as ospath import re from PIL import Image import cv2 def save_data(data, path_prefix="data", filename="data.bin", mode="wb"): """保存数据 :param data: 数据对象 :param path_prefix: 保存的目录名 :param filename: 数据的文件名 :param ...
26.893204
105
0.641877
ebb9f9eb66862084e42842b4121b5fad961ca251
13,325
py
Python
muskit/tasks/svs.py
pppku/Muskits
9f430db6cd3718e210a72df016084e63907f2559
[ "Apache-2.0" ]
null
null
null
muskit/tasks/svs.py
pppku/Muskits
9f430db6cd3718e210a72df016084e63907f2559
[ "Apache-2.0" ]
null
null
null
muskit/tasks/svs.py
pppku/Muskits
9f430db6cd3718e210a72df016084e63907f2559
[ "Apache-2.0" ]
null
null
null
import argparse import logging from typing import Callable from typing import Collection from typing import Dict from typing import List from typing import Optional from typing import Tuple import numpy as np import torch from typeguard import check_argument_types from typeguard import check_return_type from muskit.l...
35.344828
105
0.630919
d0f52735d827a973a418d0d16af6c9f36ec80881
279
py
Python
publictitles/health.py
LandRegistry/public-titles
1d52e5dd80e4632d98f40356262819bbf5c907ed
[ "MIT" ]
null
null
null
publictitles/health.py
LandRegistry/public-titles
1d52e5dd80e4632d98f40356262819bbf5c907ed
[ "MIT" ]
1
2021-06-01T22:00:40.000Z
2021-06-01T22:00:40.000Z
publictitles/health.py
LandRegistry/public-titles
1d52e5dd80e4632d98f40356262819bbf5c907ed
[ "MIT" ]
1
2021-04-11T06:06:27.000Z
2021-04-11T06:06:27.000Z
from healthcheck import HealthCheck class Health(object): def __init__(self, app, endpoint='/health', checks=[]): self.health = HealthCheck(app, endpoint) # extra health checks [self.health.add_check(check) for check in checks if callable(check)]
25.363636
77
0.684588
34ceaa092df8f54b0f45918190f83280f35b2d2f
546
py
Python
problems/balanced-brackets/balanced-brackets2.py
vidyadeepa/the-coding-interview
90171b77b6884176a6c28bdccb5d45bd6929b489
[ "MIT" ]
1,571
2015-12-09T14:08:47.000Z
2022-03-30T21:34:36.000Z
problems/balanced-brackets/balanced-brackets2.py
vidyadeepa/the-coding-interview
90171b77b6884176a6c28bdccb5d45bd6929b489
[ "MIT" ]
117
2015-10-22T05:59:19.000Z
2021-09-17T00:14:38.000Z
problems/balanced-brackets/balanced-brackets2.py
vidyadeepa/the-coding-interview
90171b77b6884176a6c28bdccb5d45bd6929b489
[ "MIT" ]
452
2015-10-21T23:00:58.000Z
2022-03-18T21:16:50.000Z
def bb(s): """ Use a stack to keep track of the brackets, yo! Runtime: O(n) """ brackets = [] matching = {")":"(", "]":"[", "}":"{"} for p in s: if p in matching.values(): brackets.append(p) else: try: top = brackets[-1] ...
23.73913
50
0.40293
1ce9aa8d98ba548ca309153d76d1c359e21e5874
1,108
py
Python
script.py
Dishtermaster/AMR-Url_Uploader
fbf746a6ae3c56b1b88e92c44c3cc9fd2938e0bd
[ "MIT" ]
1
2021-11-08T04:39:11.000Z
2021-11-08T04:39:11.000Z
script.py
Dishtermaster/AMR-Url_Uploader
fbf746a6ae3c56b1b88e92c44c3cc9fd2938e0bd
[ "MIT" ]
null
null
null
script.py
Dishtermaster/AMR-Url_Uploader
fbf746a6ae3c56b1b88e92c44c3cc9fd2938e0bd
[ "MIT" ]
7
2021-07-14T09:49:07.000Z
2022-02-08T14:44:28.000Z
class script(object): START_TEXT = "" HELP_USER = "" ABOUT_TEXT = "" FORMAT_SELECTION = """<b>Choose appropriate option</b> <a href='{}'>⬇️</a> 🎞 - Stream format 📁 - File format <i>NOTE : Taking high resolutions may result in files above 2GB and hence cannot Upload to TG. So better select ...
25.767442
163
0.636282
f9d48c55a8069ef01494b706ecfbfc5cc842be51
8,403
py
Python
py/test/selenium/webdriver/common/executing_async_javascript_tests.py
GQAssurance/selenium
fc93242e17385966cd2ad9088e1044ed6e8bf148
[ "Apache-2.0" ]
1
2019-09-24T11:34:34.000Z
2019-09-24T11:34:34.000Z
py/test/selenium/webdriver/common/executing_async_javascript_tests.py
GQAssurance/selenium
fc93242e17385966cd2ad9088e1044ed6e8bf148
[ "Apache-2.0" ]
null
null
null
py/test/selenium/webdriver/common/executing_async_javascript_tests.py
GQAssurance/selenium
fc93242e17385966cd2ad9088e1044ed6e8bf148
[ "Apache-2.0" ]
1
2019-09-15T11:54:10.000Z
2019-09-15T11:54:10.000Z
# Licensed to the Software Freedom Conservancy (SFC) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The SFC licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
39.266355
104
0.715816
d0f5ef9f5cd56a162a31acd00e6725819c2d1c9b
12,256
py
Python
render_functions.py
matteobarbieri/libtcod-tutorial
2be59978483d1c754b736a0fe96c9554e9ba8547
[ "MIT" ]
1
2019-03-09T14:20:51.000Z
2019-03-09T14:20:51.000Z
render_functions.py
matteobarbieri/libtcod-tutorial
2be59978483d1c754b736a0fe96c9554e9ba8547
[ "MIT" ]
null
null
null
render_functions.py
matteobarbieri/libtcod-tutorial
2be59978483d1c754b736a0fe96c9554e9ba8547
[ "MIT" ]
null
null
null
# import libtcodpy as libtcod import tcod as libtcod from enum import Enum, auto from game_state import GamePhase from menus import ( character_screen, inventory_menu, item_submenu) class RenderOrder(Enum): STAIRS = auto() CORPSE = auto() ITEM = auto() ACTOR = auto() def check_if_still_in_sig...
32.08377
82
0.585836
db81e8f5f9c06936366eec228951634ee87bc889
482
py
Python
pyriemann/__init__.py
qbarthelemy/pyRiemann
b35873b0a6cf9d81a1db09bbedb72a2fefe7d0c3
[ "BSD-3-Clause" ]
301
2015-04-19T20:23:21.000Z
2021-04-28T06:42:46.000Z
pyriemann/__init__.py
qbarthelemy/pyRiemann
b35873b0a6cf9d81a1db09bbedb72a2fefe7d0c3
[ "BSD-3-Clause" ]
98
2015-04-19T16:09:18.000Z
2021-04-29T15:21:52.000Z
pyriemann/__init__.py
vishalbelsare/pyRiemann
a55b09e317975f7eaaeffd4e6f2977f4174d3d2d
[ "BSD-3-Clause" ]
113
2015-05-13T07:40:48.000Z
2021-04-26T01:29:49.000Z
from ._version import __version__ from . import classification from . import tangentspace from . import channelselection from . import estimation from . import spatialfilters from . import clustering from . import stats from . import embedding from . import preprocessing __all__ = [ '__version__', 'classifica...
19.28
33
0.711618
3819437cc1c1604a2735450c4e4d80769d44321f
2,003
py
Python
Result/Potential.py
atily17/research
0e762e03747995c8a7d1d8a2ec42be31a17209dc
[ "BSD-3-Clause" ]
null
null
null
Result/Potential.py
atily17/research
0e762e03747995c8a7d1d8a2ec42be31a17209dc
[ "BSD-3-Clause" ]
null
null
null
Result/Potential.py
atily17/research
0e762e03747995c8a7d1d8a2ec42be31a17209dc
[ "BSD-3-Clause" ]
1
2022-02-25T06:38:29.000Z
2022-02-25T06:38:29.000Z
import numpy as np import matplotlib.cm as cm import matplotlib.pyplot as plt class Potential(object): def __init__(self, potentials, grid): nodes = grid.node.nodes self.potentials = [{ "potential":potentials[i], "point":nodes[i]["point"]} for i in range(len(nodes))] def print(self):...
44.511111
127
0.574638
8efcf5e0cf4dbf942a10235f1f4f65f0e9f535d6
686
py
Python
packages/w3af/w3af/plugins/attack/db/sqlmap/waf/secureiis.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
3
2019-04-09T22:59:33.000Z
2019-06-14T09:23:24.000Z
tools/w3af/w3af/plugins/attack/db/sqlmap/waf/secureiis.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
tools/w3af/w3af/plugins/attack/db/sqlmap/waf/secureiis.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Copyright (c) 2006-2017 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ import re from lib.core.settings import WAF_ATTACK_VECTORS __product__ = "SecureIIS Web Server Security (BeyondTrust)" def detect(get_page): retval = False for vector ...
26.384615
90
0.654519
eb46a7548dfa4a4eaea0f60bfba5ff068eb69273
1,360
py
Python
src/ralph/discovery/management/commands/venturetree.py
deejay1/ralph
26b7c66912590093e0087ba801e9108290ad0d63
[ "Apache-2.0" ]
1
2018-09-01T14:14:08.000Z
2018-09-01T14:14:08.000Z
src/ralph/discovery/management/commands/venturetree.py
srikanth4372/sample
127b5742ae464d42909a14d71e3c10c241ec3a23
[ "Apache-2.0" ]
1
2019-08-14T10:03:45.000Z
2019-08-14T10:03:45.000Z
src/ralph/discovery/management/commands/venturetree.py
srikanth4372/sample
127b5742ae464d42909a14d71e3c10c241ec3a23
[ "Apache-2.0" ]
1
2019-08-14T09:59:42.000Z
2019-08-14T09:59:42.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import textwrap import re from django.core.management.base import BaseCommand from ralph.business.models import Venture ...
31.627907
66
0.568382
a218fd3d9fd7dfc48e99379972f8687d1e8a58b4
5,542
py
Python
emsapi/models/adi_ems_web_api_v2_dto_profile_profile_results_event_record_py3.py
ge-flight-analytics/emsapi-python
2e3a53529758f1bd7a2a850119b1cc1b5ac552e3
[ "MIT" ]
null
null
null
emsapi/models/adi_ems_web_api_v2_dto_profile_profile_results_event_record_py3.py
ge-flight-analytics/emsapi-python
2e3a53529758f1bd7a2a850119b1cc1b5ac552e3
[ "MIT" ]
2
2020-01-16T00:04:35.000Z
2021-05-26T21:04:06.000Z
emsapi/models/adi_ems_web_api_v2_dto_profile_profile_results_event_record_py3.py
ge-flight-analytics/emsapi-python
2e3a53529758f1bd7a2a850119b1cc1b5ac552e3
[ "MIT" ]
1
2021-02-23T08:25:12.000Z
2021-02-23T08:25:12.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
48.614035
276
0.675208
621198b41a879ee808f725464ce977b9dfad7542
8,531
py
Python
train.py
HubBucket-Team/minigo
18d43c0950d3623ad33b9035ab91952b79f8c89c
[ "Apache-2.0" ]
1
2019-10-10T06:09:15.000Z
2019-10-10T06:09:15.000Z
train.py
VonRosenchild/minigo
18d43c0950d3623ad33b9035ab91952b79f8c89c
[ "Apache-2.0" ]
null
null
null
train.py
VonRosenchild/minigo
18d43c0950d3623ad33b9035ab91952b79f8c89c
[ "Apache-2.0" ]
1
2019-10-10T06:09:19.000Z
2019-10-10T06:09:19.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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
36.771552
83
0.653851
a20a0ee7697d4f6a78008da7f79e7610ffb39f61
10,141
py
Python
Vaccine_page/vaccine_heatmaps.py
ScilifelabDataCentre/covid-portal-visualisations
065084278b0452d003291115ab597d573aeb39ed
[ "MIT" ]
null
null
null
Vaccine_page/vaccine_heatmaps.py
ScilifelabDataCentre/covid-portal-visualisations
065084278b0452d003291115ab597d573aeb39ed
[ "MIT" ]
null
null
null
Vaccine_page/vaccine_heatmaps.py
ScilifelabDataCentre/covid-portal-visualisations
065084278b0452d003291115ab597d573aeb39ed
[ "MIT" ]
null
null
null
import argparse import plotly.express as px import plotly.graph_objects as go import pandas as pd import numpy as np # won't need this when data on 3rd dose for 12-17 year olds becomes available import os from vaccine_dataprep_Swedentots import ( first_two_vacc_dose_lan, third_vacc_dose_lan, fourth_vacc_d...
30.002959
127
0.540381
6b8708a88d49a1db7103eb5941c6f3c61b6921bd
1,862
py
Python
step/tests.py
Juru-10/SSF
794a2b4ba3bcccb073533ff4ff088085c6a2b080
[ "MIT" ]
null
null
null
step/tests.py
Juru-10/SSF
794a2b4ba3bcccb073533ff4ff088085c6a2b080
[ "MIT" ]
5
2021-02-08T20:30:20.000Z
2021-09-08T00:58:40.000Z
step/tests.py
Juru-10/SSF
794a2b4ba3bcccb073533ff4ff088085c6a2b080
[ "MIT" ]
null
null
null
from django.test import TestCase from .models import User,School,Level,Guide,Student import datetime as dt class SchoolTest(TestCase): """Test model for class School.""" def setUp(self): self.juru = School(name = 'Test',location = 'Test') def test_instance(self): self.assertTrue(isinstan...
28.212121
120
0.616004
d4ad2561519f860c54478180714d48d9caeee23f
2,376
py
Python
projects/PartialReID/train_net.py
NTU-ROSE/fast-reid
f4551a128ba17ef201301ccf3c986edae014cabd
[ "Apache-2.0" ]
2,194
2020-04-06T01:37:56.000Z
2022-03-30T22:17:28.000Z
projects/PartialReID/train_net.py
NTU-ROSE/fast-reid
f4551a128ba17ef201301ccf3c986edae014cabd
[ "Apache-2.0" ]
542
2020-04-14T08:00:05.000Z
2022-03-29T07:39:40.000Z
projects/PartialReID/train_net.py
NTU-ROSE/fast-reid
f4551a128ba17ef201301ccf3c986edae014cabd
[ "Apache-2.0" ]
667
2020-04-08T02:06:03.000Z
2022-03-29T00:57:32.000Z
#!/usr/bin/env python # encoding: utf-8 """ @author: sherlock @contact: sherlockliao01@gmail.com """ import logging import os import sys sys.path.append('.') from fastreid.config import get_cfg from fastreid.engine import DefaultTrainer, default_argument_parser, default_setup, launch from fastreid.utils.checkpoint ...
28.285714
109
0.664562
f24445c2ca7090df81e97b2f2c080fcc71b2f33c
157
py
Python
django/token_auth/urls.py
trckr/trckr-backend
c13e71035bf0d5428ed9584c86e1c82215ec8cb8
[ "MIT" ]
4
2018-03-31T13:56:46.000Z
2021-09-07T19:21:58.000Z
django/token_auth/urls.py
trckr/trckr-backend
c13e71035bf0d5428ed9584c86e1c82215ec8cb8
[ "MIT" ]
null
null
null
django/token_auth/urls.py
trckr/trckr-backend
c13e71035bf0d5428ed9584c86e1c82215ec8cb8
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('invalidate/', views.InvalidateAuthToken.as_view(), name='token-invalidation') ]
19.625
87
0.738854
18bc834b6503845280a79e7227b2bc5deaee8dbe
3,109
py
Python
python/tink/streaming_aead/_rewindable_input_stream.py
fax001/tink
9f30c97cb84b10bbba6978bc9c12c86478024050
[ "Apache-2.0" ]
1
2022-03-15T03:21:44.000Z
2022-03-15T03:21:44.000Z
python/tink/streaming_aead/_rewindable_input_stream.py
fax001/tink
9f30c97cb84b10bbba6978bc9c12c86478024050
[ "Apache-2.0" ]
1
2022-03-02T13:25:38.000Z
2022-03-02T13:25:38.000Z
python/tink/streaming_aead/_rewindable_input_stream.py
fax001/tink
9f30c97cb84b10bbba6978bc9c12c86478024050
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
33.793478
79
0.689289
945d6bac61e08d31c9bf1fafa700f62639cd1d27
3,453
py
Python
PythonDjangoPortfolio/.d_settings.py
jffc-dev/Python-Django-Portfolio
aca1aae3493f47535d01ced47d32b13a00bbc8e4
[ "MIT" ]
null
null
null
PythonDjangoPortfolio/.d_settings.py
jffc-dev/Python-Django-Portfolio
aca1aae3493f47535d01ced47d32b13a00bbc8e4
[ "MIT" ]
null
null
null
PythonDjangoPortfolio/.d_settings.py
jffc-dev/Python-Django-Portfolio
aca1aae3493f47535d01ced47d32b13a00bbc8e4
[ "MIT" ]
null
null
null
""" Django settings for PythonDjangoPortfolio project. Generated by 'django-admin startproject' using Django 3.2.11. 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/ ""...
25.389706
91
0.711845
95082a519c6713365aa13bce3fa18a1cd77574ce
9,144
py
Python
research/object_detection/data_decoders/tf_example_decoder.py
nanmon/red-convolucional
1cbbcb162f77a04d7922a5ab77c60bbadfa1f0e5
[ "Apache-2.0" ]
null
null
null
research/object_detection/data_decoders/tf_example_decoder.py
nanmon/red-convolucional
1cbbcb162f77a04d7922a5ab77c60bbadfa1f0e5
[ "Apache-2.0" ]
null
null
null
research/object_detection/data_decoders/tf_example_decoder.py
nanmon/red-convolucional
1cbbcb162f77a04d7922a5ab77c60bbadfa1f0e5
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow 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 applica...
45.492537
80
0.675962
9d96168d2396f9b55677051607cf168d38a09bcc
11,293
py
Python
kojen/cgen.py
kohjaen/kojen
e61855e48617e691d1fa0ddac4fdabac6b6a1eff
[ "MIT" ]
3
2020-07-12T08:17:42.000Z
2022-02-11T15:44:49.000Z
kojen/cgen.py
kohjaen/kojen
e61855e48617e691d1fa0ddac4fdabac6b6a1eff
[ "MIT" ]
null
null
null
kojen/cgen.py
kohjaen/kojen
e61855e48617e691d1fa0ddac4fdabac6b6a1eff
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'eugene' from collections import OrderedDict import os, shutil try: from .preservative import * except (ModuleNotFoundError, ImportError) as e: from preservative import * ''' MIT License Copyright (c) 2015 Eugene Grobbelaar (email : koh.jaen@yahoo...
42.454887
176
0.619853
3d234db44ccc9e505ca50662dfbe06091e5327ff
2,788
py
Python
ml/equationGen.py
Shivams9/pythoncodecamp
e6cd27f4704a407ee360414a8c9236b254117a59
[ "MIT" ]
6
2021-08-04T08:15:22.000Z
2022-02-02T11:15:56.000Z
ML/equationGen.py
Maurya232Abhishek/Python-repository-for-basics
3dcec5c529a0847df07c9dcc1424675754ce6376
[ "MIT" ]
14
2021-08-02T06:28:00.000Z
2022-03-25T10:44:15.000Z
ML/equationGen.py
Maurya232Abhishek/Python-repository-for-basics
3dcec5c529a0847df07c9dcc1424675754ce6376
[ "MIT" ]
6
2021-07-16T04:56:41.000Z
2022-02-16T04:40:06.000Z
#from sympy import symbols,diff import cv2 import matplotlib.pyplot as plt from sklearn.metrics import r2_score import numpy as np """class PredictorImage: def __init__(self,pic,label): self.pic = pic self.label = label""" def readimg(path): a= cv2.imread(path) return a def showimg(img,imgna...
25.577982
86
0.539096
b6c30cb572e9faefadc8d9f59113a1efbf8f7af6
414
py
Python
main/migrations/0015_auto_20190719_0743.py
gda2048/thefirst
f0a74c0a53d507297c58eb267152f6b17339ac02
[ "Apache-2.0" ]
5
2019-08-19T14:49:29.000Z
2019-12-19T19:03:54.000Z
main/migrations/0015_auto_20190719_0743.py
Sirkirill/PhychoBlog
f0a74c0a53d507297c58eb267152f6b17339ac02
[ "Apache-2.0" ]
10
2020-02-12T00:46:12.000Z
2022-02-10T09:16:47.000Z
main/migrations/0015_auto_20190719_0743.py
Sirkirill/PhychoBlog
f0a74c0a53d507297c58eb267152f6b17339ac02
[ "Apache-2.0" ]
1
2019-10-10T13:04:11.000Z
2019-10-10T13:04:11.000Z
# Generated by Django 2.2.3 on 2019-07-19 07:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0014_auto_20190719_0742'), ] operations = [ migrations.AlterField( model_name='achievement', name='priority',...
23
75
0.615942
7912de6de99984a6a6d22a2cdf088ad7c95fa135
1,406
py
Python
Python/kraken/ui/DataTypeWidgets/ScalarWidgetImpl.py
FabricExile/Kraken
d8c1f5189cb191945e2c18a1369c458d05305afc
[ "BSD-3-Clause" ]
7
2017-12-04T16:57:42.000Z
2021-09-07T07:02:38.000Z
Python/kraken/ui/DataTypeWidgets/ScalarWidgetImpl.py
xtvjxk123456/Kraken
d8c1f5189cb191945e2c18a1369c458d05305afc
[ "BSD-3-Clause" ]
null
null
null
Python/kraken/ui/DataTypeWidgets/ScalarWidgetImpl.py
xtvjxk123456/Kraken
d8c1f5189cb191945e2c18a1369c458d05305afc
[ "BSD-3-Clause" ]
6
2017-11-14T06:50:48.000Z
2021-08-21T22:47:29.000Z
from PySide import QtGui, QtCore from AttributeWidgetImpl import AttributeWidget class ScalarWidget(AttributeWidget): def __init__(self, attribute, parentWidget=None, addNotificationListener = True): super(ScalarWidget, self).__init__(attribute, parentWidget=parentWidget, addNotificationListener = addNot...
31.244444
131
0.667141
9ce6597ab4af34316217df467ab1d52694f75742
3,325
py
Python
scrape_mars.py
dosterman09/web-scraping-challenge
53d4020bb67c7e0b9c0693bc9804048d7b499f42
[ "ADSL" ]
null
null
null
scrape_mars.py
dosterman09/web-scraping-challenge
53d4020bb67c7e0b9c0693bc9804048d7b499f42
[ "ADSL" ]
null
null
null
scrape_mars.py
dosterman09/web-scraping-challenge
53d4020bb67c7e0b9c0693bc9804048d7b499f42
[ "ADSL" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # Scraping Mars! # In[1]: import pandas as pd import datetime as dt from flask import Flask import requests from splinter import Browser from bs4 import BeautifulSoup from webdriver_manager.chrome import ChromeDriverManager def scrape(): #create empty dictionary mars_info_d...
18.785311
80
0.713684
8bb2a7194d7ce4bd989bcba79bbec8bf75ba9c1c
1,340
py
Python
Flappy Bird/gameVariables.py
Mechatronixyt/Python-Games
243c26deef4303f49b1abdda97f32c3492739edb
[ "MIT" ]
1
2021-03-17T11:34:39.000Z
2021-03-17T11:34:39.000Z
Flappy Bird/gameVariables.py
Mechatronixyt/Python-Games
243c26deef4303f49b1abdda97f32c3492739edb
[ "MIT" ]
null
null
null
Flappy Bird/gameVariables.py
Mechatronixyt/Python-Games
243c26deef4303f49b1abdda97f32c3492739edb
[ "MIT" ]
null
null
null
#!/usr/bin/env python import pygame from pygame.locals import * #Global variables for the game gameWidth = 300 #Game window gameWidth gameHeight = 500 #Game window gameHeight FPS = 60 #Frames per second birdHeight = 35 ...
43.225806
67
0.468657
213e1e83e770614abfa29cb8c3bed63c81f80607
1,555
py
Python
section_3/lesson_6_step_9_lang/examples/one/conftest.py
aderny-twc/selenium_and_python
ff18cf38bd7c266adbb37cf894548f54b1bf4633
[ "MIT" ]
null
null
null
section_3/lesson_6_step_9_lang/examples/one/conftest.py
aderny-twc/selenium_and_python
ff18cf38bd7c266adbb37cf894548f54b1bf4633
[ "MIT" ]
null
null
null
section_3/lesson_6_step_9_lang/examples/one/conftest.py
aderny-twc/selenium_and_python
ff18cf38bd7c266adbb37cf894548f54b1bf4633
[ "MIT" ]
null
null
null
import pytest import time from selenium import webdriver from selenium.webdriver.chrome.options import Options def pytest_addoption(parser): parser.addoption('--browser_name', action='store', default="chrome", help="Choose browser: chrome or firefox") parser.addoption('--language', action...
40.921053
133
0.679743
96ac836306d109069ab980a700a0c4c0f4da7969
77,369
py
Python
harvest.py
kermitt2/article-dataset-builder
b97fbc063972658e05ffbd268dd5a3a82b12f629
[ "Apache-2.0" ]
13
2020-03-22T21:45:19.000Z
2022-03-24T09:28:25.000Z
harvest.py
kermitt2/article-dataset-builder
b97fbc063972658e05ffbd268dd5a3a82b12f629
[ "Apache-2.0" ]
3
2020-04-09T13:27:30.000Z
2021-11-01T20:12:41.000Z
harvest.py
kermitt2/article-dataset-builder
b97fbc063972658e05ffbd268dd5a3a82b12f629
[ "Apache-2.0" ]
1
2020-09-21T18:20:24.000Z
2020-09-21T18:20:24.000Z
import argparse import os import io import sys import urllib3 from urllib import parse from concurrent.futures import ThreadPoolExecutor, as_completed import argparse import boto3 import botocore import magic import requests import shutil import gzip import tarfile import json import pickle import subprocess import S3 ...
47.553165
173
0.584679
5b8212dd2907f325c3d09c675c764dbd7e936f89
1,726
py
Python
src/python/demo/reddit/bp.py
grongierisc/interoperability-embedded-python
6885c7249ea902a30d17a9dad1bde3d1e0223e8a
[ "MIT" ]
null
null
null
src/python/demo/reddit/bp.py
grongierisc/interoperability-embedded-python
6885c7249ea902a30d17a9dad1bde3d1e0223e8a
[ "MIT" ]
1
2022-02-13T12:32:47.000Z
2022-02-16T07:58:24.000Z
src/python/demo/reddit/bp.py
grongierisc/interoperability-embedded-python
6885c7249ea902a30d17a9dad1bde3d1e0223e8a
[ "MIT" ]
1
2022-01-12T09:07:53.000Z
2022-01-12T09:07:53.000Z
from grongier.pex import BusinessProcess from message import PostMessage from obj import PostClass import iris class FilterPostRoutingRule(BusinessProcess): """ This process receive a PostMessage containing a reddit post. It then understand if the post is about a dog or a cat or nothing and fill the ...
37.521739
86
0.585747
616e8573b1e842feb915ffe052b39a20f315b87b
3,545
py
Python
venv/lib/python3.6/site-packages/oslo_config/sphinxconfiggen.py
boogieLing/r0_es
14ac336a40c4f87b8bd3bd62a60158b437690c35
[ "MIT" ]
110
2015-01-29T20:10:46.000Z
2022-03-21T12:29:21.000Z
venv/lib/python3.6/site-packages/oslo_config/sphinxconfiggen.py
boogieLing/r0_es
14ac336a40c4f87b8bd3bd62a60158b437690c35
[ "MIT" ]
1
2019-03-16T18:35:42.000Z
2019-03-16T19:40:14.000Z
venv/lib/python3.6/site-packages/oslo_config/sphinxconfiggen.py
boogieLing/r0_es
14ac336a40c4f87b8bd3bd62a60158b437690c35
[ "MIT" ]
115
2015-01-14T03:25:05.000Z
2021-12-02T16:49:06.000Z
# Copyright 2015 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
36.173469
78
0.684344
41bc89acd59ea4b7c4624f266df289d7f575b665
15,758
py
Python
inbm-vision/vision-agent/vision/tests/unit/test_registry_manager.py
ahameedx/intel-inb-manageability
aca445fa4cef0b608e6e88e74476547e10c06073
[ "Apache-2.0" ]
5
2021-12-13T21:19:31.000Z
2022-01-18T18:29:43.000Z
inbm-vision/vision-agent/vision/tests/unit/test_registry_manager.py
ahameedx/intel-inb-manageability
aca445fa4cef0b608e6e88e74476547e10c06073
[ "Apache-2.0" ]
45
2021-12-30T17:21:09.000Z
2022-03-29T22:47:32.000Z
inbm-vision/vision-agent/vision/tests/unit/test_registry_manager.py
ahameedx/intel-inb-manageability
aca445fa4cef0b608e6e88e74476547e10c06073
[ "Apache-2.0" ]
4
2022-01-26T17:42:54.000Z
2022-03-30T04:48:04.000Z
from datetime import datetime from unittest import TestCase from vision.constant import * from vision.configuration_constant import * from vision.data_handler.idata_handler import IDataHandler from vision.registry_manager import RegistryManager from mock import Mock, patch mock_node_info = {'bootFwDate': "2018-10-9"...
52.526667
109
0.748699
6fa4539a976fb68bc43f237b6e52f93cca1a5793
11,485
py
Python
weasyl/login.py
greysteil/wzl-test
0f863b9e7c58e5861437618bd590126ca323140c
[ "Apache-2.0" ]
null
null
null
weasyl/login.py
greysteil/wzl-test
0f863b9e7c58e5861437618bd590126ca323140c
[ "Apache-2.0" ]
19
2018-01-02T07:27:22.000Z
2019-01-23T05:20:06.000Z
weasyl/login.py
greysteil/wzl-test
0f863b9e7c58e5861437618bd590126ca323140c
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import import arrow import bcrypt from sqlalchemy.sql.expression import select from libweasyl import security from libweasyl import staff from weasyl import define as d from weasyl import macro as m from weasyl import emailer from weasyl import moderation from weasyl.error import Weas...
33.193642
122
0.647801
caeca3e6a5e7afb04d9647091bd84f34aae13814
1,267
py
Python
run_adapters.py
atharva-naik/cartography_model_cap
02241703e22590c9d8bda126433d4f514eb62201
[ "MIT" ]
null
null
null
run_adapters.py
atharva-naik/cartography_model_cap
02241703e22590c9d8bda126433d4f514eb62201
[ "MIT" ]
null
null
null
run_adapters.py
atharva-naik/cartography_model_cap
02241703e22590c9d8bda126433d4f514eb62201
[ "MIT" ]
null
null
null
import os # comment this out except for KGP servers. # os.environ['OPENBLAS_NUM_THREADS'] = "20" import sys from cartography_adapters import get_cli_args, pprint_args, TrainingDynamics def main(): adapter=False notebook=False # ge commandline arguments cli_args = get_cli_args() # print arguments. ...
31.675
92
0.632202
64bac46264d676cee090102103eac6eaf77c2faa
19,466
py
Python
tests/helpers/test_template.py
smilepc/Home-assistant
db3bfad0b5e0815ba1e255d4d646af7c99caef8b
[ "MIT" ]
null
null
null
tests/helpers/test_template.py
smilepc/Home-assistant
db3bfad0b5e0815ba1e255d4d646af7c99caef8b
[ "MIT" ]
null
null
null
tests/helpers/test_template.py
smilepc/Home-assistant
db3bfad0b5e0815ba1e255d4d646af7c99caef8b
[ "MIT" ]
null
null
null
"""Test Home Assistant template helper methods.""" # pylint: disable=too-many-public-methods import unittest from unittest.mock import patch from homeassistant.components import group from homeassistant.exceptions import TemplateError from homeassistant.helpers import template from homeassistant.util.unit_system impor...
33.105442
79
0.522501
b91344661c0ad3020b2a53f00c09b83ee3c4072b
1,000
py
Python
ga_reports/users/admin.py
MikaelSantilio/ga-reports
c92f3053fbf0d2f88d5cb57cf625c1e0e82a36e9
[ "MIT" ]
1
2021-05-19T16:37:01.000Z
2021-05-19T16:37:01.000Z
ga_reports/users/admin.py
MikaelSantilio/ga-reports
c92f3053fbf0d2f88d5cb57cf625c1e0e82a36e9
[ "MIT" ]
4
2021-05-12T05:52:49.000Z
2022-03-31T09:08:22.000Z
ga_reports/users/admin.py
MikaelSantilio/ga-reports
c92f3053fbf0d2f88d5cb57cf625c1e0e82a36e9
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth import admin as auth_admin from django.contrib.auth import get_user_model from django.utils.translation import gettext_lazy as _ from ga_reports.users.forms import UserChangeForm, UserCreationForm User = get_user_model() @admin.register(User) class UserAdmin...
28.571429
74
0.557
57628cfc23fd2fcd20f73cdc537ff320d10f83e7
2,931
py
Python
configs/recognition/tsm/tsm_mobilenetv2_dense_1x1x8_100e_kinetics400_rgb.py
kiyoon/Video-Swin-Transformer
7a0d40ced8fb52c064d1cd11ffa8b0c3bbb77607
[ "Apache-2.0" ]
648
2021-06-24T19:33:09.000Z
2022-03-31T06:27:24.000Z
configs/recognition/tsm/tsm_mobilenetv2_dense_1x1x8_100e_kinetics400_rgb.py
jayleicn/mmaction2-1
0a6fde1abb8403f1f68b568f5b4694c6f828e27e
[ "Apache-2.0" ]
53
2021-07-01T03:07:52.000Z
2022-03-27T16:15:29.000Z
configs/recognition/tsm/tsm_mobilenetv2_dense_1x1x8_100e_kinetics400_rgb.py
jayleicn/mmaction2-1
0a6fde1abb8403f1f68b568f5b4694c6f828e27e
[ "Apache-2.0" ]
117
2021-06-25T01:22:32.000Z
2022-03-31T08:33:55.000Z
_base_ = [ '../../_base_/models/tsm_mobilenet_v2.py', '../../_base_/schedules/sgd_tsm_mobilenet_v2_100e.py', '../../_base_/default_runtime.py' ] # dataset settings dataset_type = 'RawframeDataset' data_root = 'data/kinetics400/rawframes_train' data_root_val = 'data/kinetics400/rawframes_val' ann_file_train...
33.306818
78
0.657455
55460cd1c553515059ba1a8f678bf082be2cc1d2
1,117
py
Python
strawberry/enum.py
skalarsystems/strawberry
95525e10966bb61c37b68fd438dd07ef15a0a811
[ "MIT" ]
1
2020-10-22T01:22:48.000Z
2020-10-22T01:22:48.000Z
strawberry/enum.py
skalarsystems/strawberry
95525e10966bb61c37b68fd438dd07ef15a0a811
[ "MIT" ]
null
null
null
strawberry/enum.py
skalarsystems/strawberry
95525e10966bb61c37b68fd438dd07ef15a0a811
[ "MIT" ]
null
null
null
import dataclasses from enum import EnumMeta from typing import Any, List, Optional from .exceptions import NotAnEnum @dataclasses.dataclass class EnumValue: name: str value: Any @dataclasses.dataclass class EnumDefinition: name: str values: List[EnumValue] description: Optional[str] def _pro...
20.309091
79
0.675918
31da83c692f25421886a6cd097a6eed35bc162d5
2,376
py
Python
panoptes_cli/commands/user.py
sarpu/panoptes-cli
cb2e6fc3a17644055102f396344f8390c3878d3f
[ "Apache-2.0" ]
16
2016-06-16T16:02:00.000Z
2021-07-01T13:22:18.000Z
panoptes_cli/commands/user.py
sarpu/panoptes-cli
cb2e6fc3a17644055102f396344f8390c3878d3f
[ "Apache-2.0" ]
106
2016-01-18T10:26:21.000Z
2022-03-24T10:48:27.000Z
panoptes_cli/commands/user.py
sarpu/panoptes-cli
cb2e6fc3a17644055102f396344f8390c3878d3f
[ "Apache-2.0" ]
5
2016-01-19T09:47:23.000Z
2020-12-19T10:03:00.000Z
import yaml import click from panoptes_cli.scripts.panoptes import cli from panoptes_client import Panoptes, User @cli.group() def user(): """Contains commands for retrieving information about users.""" pass @user.command() @click.option( '--email', '-e', help='Search for users by email addre...
24.75
79
0.577441
60101b7ff88352463e24808b721dc9529ccb1877
2,373
py
Python
pypureclient/flasharray/FA_2_10/api/__init__.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
pypureclient/flasharray/FA_2_10/api/__init__.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
pypureclient/flasharray/FA_2_10/api/__init__.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
from __future__ import absolute_import # import apis into api package from .api_clients_api import APIClientsApi from .active_directory_api import ActiveDirectoryApi from .administrators_api import AdministratorsApi from .alert_watchers_api import AlertWatchersApi from .alerts_api import AlertsApi from .apps_api impor...
42.375
84
0.887063
cb20a3ac34047a12d0fb23babaac403b74033fa7
8,958
py
Python
docs/_api/conf.py
arjenroodselaar/skidl
0bf801bd3b74e6ef94bd9aa1b68eef756b568276
[ "MIT" ]
2
2022-02-27T14:31:52.000Z
2022-02-27T14:31:56.000Z
docs/_api/conf.py
arjenroodselaar/skidl
0bf801bd3b74e6ef94bd9aa1b68eef756b568276
[ "MIT" ]
null
null
null
docs/_api/conf.py
arjenroodselaar/skidl
0bf801bd3b74e6ef94bd9aa1b68eef756b568276
[ "MIT" ]
1
2020-09-21T23:31:41.000Z
2020-09-21T23:31:41.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # skidl documentation build configuration file, created by # sphinx-quickstart on Tue Jul 9 22:26:36 2013. # # 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 # autog...
31.212544
123
0.716231
49e5effeae40239e5c1b63e42efe2a2e1e8b2fe1
4,092
py
Python
calliope/core/io.py
guidogz/Calliope_guido
148ee39c3671e55ad3a1a2da216ee23112d16abf
[ "Apache-2.0" ]
null
null
null
calliope/core/io.py
guidogz/Calliope_guido
148ee39c3671e55ad3a1a2da216ee23112d16abf
[ "Apache-2.0" ]
null
null
null
calliope/core/io.py
guidogz/Calliope_guido
148ee39c3671e55ad3a1a2da216ee23112d16abf
[ "Apache-2.0" ]
null
null
null
""" Copyright (C) 2013-2019 Calliope contributors listed in AUTHORS. Licensed under the Apache 2.0 License (see LICENSE file). io.py ~~~~~ Functions to read and save model results. """ import os import xarray as xr from calliope._version import __version__ from calliope import exceptions from calliope.core.util.d...
34.386555
101
0.672532
f8fff395415e6ca64413af4bcdf10841371e5e2b
10,107
py
Python
src/oci/object_storage/models/create_preauthenticated_request_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/object_storage/models/create_preauthenticated_request_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/object_storage/models/create_preauthenticated_request_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, 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-2.0. You may c...
41.085366
245
0.70001
a50f1eaba9456b55a44888e38d204d8e8b908958
610
py
Python
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/numtrees_200/rule_164.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/numtrees_200/rule_164.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/numtrees_200/rule_164.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
def findDecision(obj): #obj[0]: Driving_to, obj[1]: Passanger, obj[2]: Weather, obj[3]: Temperature, obj[4]: Time, obj[5]: Coupon, obj[6]: Coupon_validity, obj[7]: Gender, obj[8]: Age, obj[9]: Maritalstatus, obj[10]: Children, obj[11]: Education, obj[12]: Occupation, obj[13]: Income, obj[14]: Bar, obj[15]: Coffeehouse,...
76.25
441
0.678689
29a7585669258f41406d1cf3b496dcee5376dabd
309
py
Python
models/Status.py
FanchiniRudolf/gamification-back-end
aca5c465d5ef0e695049221564f8725112478afa
[ "MIT" ]
null
null
null
models/Status.py
FanchiniRudolf/gamification-back-end
aca5c465d5ef0e695049221564f8725112478afa
[ "MIT" ]
null
null
null
models/Status.py
FanchiniRudolf/gamification-back-end
aca5c465d5ef0e695049221564f8725112478afa
[ "MIT" ]
null
null
null
from core.Model import * from core.Utils import Utils class Status(Base, Model): # STATUS PENDING = 1 PROCESSING = 2 ERROR = 3 SEND = 4 __tablename__ = "status" id = Column(BigInteger, primary_key=True, autoincrement=True) description = Column(String(100), nullable=False)
19.3125
65
0.669903
f832fb18541439675fa6590755fafe7de89361a9
793
py
Python
stream_reader/obs_reader.py
anarkia7115/pubmed_parser
c671e324f68345ee6afc23b8c2f762cd35354406
[ "MIT" ]
null
null
null
stream_reader/obs_reader.py
anarkia7115/pubmed_parser
c671e324f68345ee6afc23b8c2f762cd35354406
[ "MIT" ]
null
null
null
stream_reader/obs_reader.py
anarkia7115/pubmed_parser
c671e324f68345ee6afc23b8c2f762cd35354406
[ "MIT" ]
null
null
null
import os import configparser import boto3 config = configparser.ConfigParser() config.read("config.ini") class ObsReader(object): def __init__(self): self.s3_client = boto3.client( service_name='s3', aws_access_key_id=os.getenv("AK"), aws_secret_access_key=os.getenv(...
24.78125
51
0.601513
f0a86ca7a7a0d960778bffbf51f75eee0fbbf3f1
12,861
py
Python
tests/frontier/test_ethash.py
ethereum/eth1.0-specs
ac7d0edbfcc5a21ef869eb1e7a25e2f6df4a2eac
[ "CC0-1.0" ]
152
2020-08-12T15:22:13.000Z
2021-08-17T17:13:57.000Z
tests/frontier/test_ethash.py
voith/eth1.0-specs
53281c10f8cbdade5bd9a318f739a619044d4c8d
[ "CC0-1.0" ]
260
2020-09-03T14:00:20.000Z
2021-08-16T20:10:59.000Z
tests/frontier/test_ethash.py
voith/eth1.0-specs
53281c10f8cbdade5bd9a318f739a619044d4c8d
[ "CC0-1.0" ]
72
2020-09-09T19:44:12.000Z
2021-08-14T23:02:11.000Z
import json import pkgutil import shutil import subprocess from random import randint from typing import Any, Dict, List, Tuple, cast import pytest from ethereum import crypto from ethereum.base_types import U256_CEIL_VALUE, Uint from ethereum.crypto import keccak256 from ethereum.ethash import ( EPOCH_SIZE, ...
32.642132
105
0.665656
0377ea243b69ee749031fa3206a18401ccb44a0f
3,470
py
Python
scripts_gpio/therm.py
BertrandFreylin/WeatherStation
4ab6f5af2af02a83c109ecb79498e4c92e5af5d2
[ "Apache-2.0" ]
null
null
null
scripts_gpio/therm.py
BertrandFreylin/WeatherStation
4ab6f5af2af02a83c109ecb79498e4c92e5af5d2
[ "Apache-2.0" ]
null
null
null
scripts_gpio/therm.py
BertrandFreylin/WeatherStation
4ab6f5af2af02a83c109ecb79498e4c92e5af5d2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import ADC0834 import time import math def setup_files(number_of_lines): num_lines_temp = sum(1 for line in open('/home/bertrand/workspace/rasp/static/data/therm_inside.csv')) if num_lines_temp > number_of_lines: to_delete = int(num_lines_temp - number_of_lines) with ope...
44.487179
106
0.665994
ef32a7580ce01496225600ec16ac30b6222e8250
153
py
Python
srilm/__init__.py
tetsuok/py-srilm-interpolator
063d87be16e6c7ec8f9b3b0e4f97e2616ec46b46
[ "BSD-3-Clause" ]
3
2016-05-03T19:05:54.000Z
2017-09-29T03:05:57.000Z
srilm/tests/__init__.py
tetsuok/py-srilm-interpolator
063d87be16e6c7ec8f9b3b0e4f97e2616ec46b46
[ "BSD-3-Clause" ]
null
null
null
srilm/tests/__init__.py
tetsuok/py-srilm-interpolator
063d87be16e6c7ec8f9b3b0e4f97e2616ec46b46
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2012 Tetsuo Kiso. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file.
38.25
52
0.764706
8c1b3acc1d3ba9f1d23e9006c43826246e2290ca
2,643
py
Python
models/alexnet.py
ZhecanJamesWang/MPIIGaze_Pytorch
369f836d8317b57d9d0f67622d220bc1e80a8696
[ "MIT" ]
8
2019-02-28T18:16:21.000Z
2020-07-05T10:15:25.000Z
models/alexnet.py
ZhecanJamesWang/MPIIGaze_Pytorch
369f836d8317b57d9d0f67622d220bc1e80a8696
[ "MIT" ]
1
2020-03-19T06:26:16.000Z
2020-03-19T06:26:16.000Z
models/alexnet.py
ZhecanJamesWang/MPIIGaze_Pytorch
369f836d8317b57d9d0f67622d220bc1e80a8696
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.utils.model_zoo as model_zoo # __all__ = ['AlexNet', 'alexnet'] model_urls = { 'alexnet': 'https://download.pytorch.org/models/alexnet-owt-4df8aa71.pth', } class Model(nn.Module): def __init__(self, num_classes=1000): super(Model, self).__init__() ...
28.728261
78
0.538403
e73dbd92426c598ff474cf8eb0981c2b73164e1c
1,654
py
Python
fingerprint_large_lib.py
ferluht/dejavu
b1d4cc3495b00b28dc332ac257ec5413ecefbb62
[ "MIT" ]
null
null
null
fingerprint_large_lib.py
ferluht/dejavu
b1d4cc3495b00b28dc332ac257ec5413ecefbb62
[ "MIT" ]
null
null
null
fingerprint_large_lib.py
ferluht/dejavu
b1d4cc3495b00b28dc332ac257ec5413ecefbb62
[ "MIT" ]
null
null
null
import json from dejavu import Dejavu from dejavu.logic.recognizer.file_recognizer import FileRecognizer from dejavu.logic.recognizer.microphone_recognizer import MicrophoneRecognizer import pandas as pd import sys import tqdm # load config from a JSON file (or anything outputting a python dictionary) config = { ...
29.535714
109
0.641475
66c2e2e7e3639378642a1bf488255130231552d3
10,865
py
Python
autofit/non_linear/mcmc/zeus/zeus.py
rhayes777/PyAutoF
87f56419348833b285b00da1a524e329588e0b01
[ "MIT" ]
39
2019-01-24T10:45:23.000Z
2022-03-18T09:37:59.000Z
autofit/non_linear/mcmc/zeus/zeus.py
rhayes777/PyAutoF
87f56419348833b285b00da1a524e329588e0b01
[ "MIT" ]
260
2018-11-27T12:56:33.000Z
2022-03-31T16:08:59.000Z
autofit/non_linear/mcmc/zeus/zeus.py
rhayes777/PyAutoF
87f56419348833b285b00da1a524e329588e0b01
[ "MIT" ]
13
2018-11-30T16:49:05.000Z
2022-01-21T17:39:29.000Z
from os import path from typing import Optional import numpy as np import zeus from sqlalchemy.orm import Session from autoconf import conf from autofit import exc from autofit.mapper.model_mapper import ModelMapper from autofit.mapper.prior_model.abstract import AbstractPriorModel from autofit.non_linear....
36.955782
121
0.615094
2ff60c36cb6b2f6bfdae8bdb63a9ec2906452c2d
41,048
py
Python
ansible-container/openshift-deploy/roles/ansible.kubernetes-modules/library/openshift_v1_image_stream_mapping.py
LeHack/Docker-network-research
62a57a6d723d8701a6d045a07a5abd2bd844a409
[ "Beerware" ]
4
2017-06-03T20:46:07.000Z
2017-12-19T02:15:00.000Z
ansible-container/openshift-deploy/roles/ansible.kubernetes-modules/library/openshift_v1_image_stream_mapping.py
LeHack/Docker-network-research
62a57a6d723d8701a6d045a07a5abd2bd844a409
[ "Beerware" ]
1
2017-06-03T20:32:37.000Z
2017-06-03T20:32:37.000Z
ansible-container/openshift-deploy/roles/ansible.kubernetes-modules/library/openshift_v1_image_stream_mapping.py
LeHack/Docker-network-research
62a57a6d723d8701a6d045a07a5abd2bd844a409
[ "Beerware" ]
null
null
null
#!/usr/bin/env python from ansible.module_utils.openshift_common import OpenShiftAnsibleModule, OpenShiftAnsibleException DOCUMENTATION = ''' module: openshift_v1_image_stream_mapping short_description: OpenShift ImageStreamMapping description: - Manage the lifecycle of a image_stream_mapping object. Supports check m...
46.698521
117
0.600468
b5f62545ded438be138b603c79bdb478d44608f2
722
py
Python
predict.py
lujiannan/Artificial-Intelligence
6ecb7f0b0ec18e9f2f374edafa097723c7bee375
[ "MIT" ]
null
null
null
predict.py
lujiannan/Artificial-Intelligence
6ecb7f0b0ec18e9f2f374edafa097723c7bee375
[ "MIT" ]
null
null
null
predict.py
lujiannan/Artificial-Intelligence
6ecb7f0b0ec18e9f2f374edafa097723c7bee375
[ "MIT" ]
null
null
null
""" The purpose for this file is to display the labels in an specific image at a specific directory variables needs to be altered before running: when inpur window pops up, enter the address of the image which needs to be predicted """ from yolo import YOLO from PIL import Image yolo = YOLO() normal_list = [] ov...
24.066667
125
0.689751
83616dd6cf632b0e02bfa46915372936eecd46a0
1,310
py
Python
utils.py
RaviTejaKomma/Automate-Boring-Stuff-Python
e5d8df1b060f20e50691f824ecabc3a30dc845c7
[ "MIT" ]
null
null
null
utils.py
RaviTejaKomma/Automate-Boring-Stuff-Python
e5d8df1b060f20e50691f824ecabc3a30dc845c7
[ "MIT" ]
null
null
null
utils.py
RaviTejaKomma/Automate-Boring-Stuff-Python
e5d8df1b060f20e50691f824ecabc3a30dc845c7
[ "MIT" ]
null
null
null
import os, shutil import os import shutil from subprocess import call def copy_dir(src_path, dest_path): try: print("Copying", src_path, "to", dest_path) call(['cp', '-rp', src_path, dest_path]) except Exception as e: print("Exception:", e) return e def clean_dir(dir_path, ex...
29.111111
68
0.638168
8ec8245eb19ea10c8ae5e5fb65c476b030899e9c
53,063
py
Python
venv/lib/python3.9/site-packages/GameCenter/_metadata.py
ipriyam26/RedditTTS
8528bdc3adcea1197c7159e6eb4c302487e32406
[ "MIT" ]
null
null
null
venv/lib/python3.9/site-packages/GameCenter/_metadata.py
ipriyam26/RedditTTS
8528bdc3adcea1197c7159e6eb4c302487e32406
[ "MIT" ]
null
null
null
venv/lib/python3.9/site-packages/GameCenter/_metadata.py
ipriyam26/RedditTTS
8528bdc3adcea1197c7159e6eb4c302487e32406
[ "MIT" ]
null
null
null
# This file is generated by objective.metadata # # Last update: Sat Jul 11 10:43:16 2020 # # flake8: noqa import objc, sys if sys.maxsize > 2 ** 32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a misc = {} constants = """$GKErrorDomain$GKExchangeTimeoutDefault@d$GKExcha...
31.755236
4,495
0.334131
724e57410213a3ff45d202a146ca68f3bbcdbeeb
8,964
py
Python
plotly/graph_objs/streamtube/_lighting.py
omridanan/plotly.py
a8d26670cba49ce15ce9b7639ae0f55a6088a825
[ "MIT" ]
null
null
null
plotly/graph_objs/streamtube/_lighting.py
omridanan/plotly.py
a8d26670cba49ce15ce9b7639ae0f55a6088a825
[ "MIT" ]
null
null
null
plotly/graph_objs/streamtube/_lighting.py
omridanan/plotly.py
a8d26670cba49ce15ce9b7639ae0f55a6088a825
[ "MIT" ]
1
2019-02-18T04:12:56.000Z
2019-02-18T04:12:56.000Z
from plotly.basedatatypes import BaseTraceHierarchyType import copy class Lighting(BaseTraceHierarchyType): # ambient # ------- @property def ambient(self): """ Ambient light increases overall color visibility but can wash out the image. The 'ambient' property is ...
30.593857
100
0.578425
fc4ecd0c62021a1f4f2ca4b352ce7e3923b2e1aa
733
py
Python
bihgpy/bounds.py
pedroramaciotti/BIHGPy
6b5be54deb89cdbffa4e2bddf5f7c4553742ffa2
[ "MIT" ]
null
null
null
bihgpy/bounds.py
pedroramaciotti/BIHGPy
6b5be54deb89cdbffa4e2bddf5f7c4553742ffa2
[ "MIT" ]
null
null
null
bihgpy/bounds.py
pedroramaciotti/BIHGPy
6b5be54deb89cdbffa4e2bddf5f7c4553742ffa2
[ "MIT" ]
null
null
null
import numpy as np from scipy.special import comb from scipy.special import beta from scipy.special import gamma from .check import initial_checks from .posterior import K_posterior_distribution def upper(N,n,k,alpha,a=1,b=1): # initial check N,n,_,k = initial_checks(N,n,N,k) if k==n: return 1.0; # Computing...
20.942857
55
0.720327
89e991cb5e9c57453e7520eaca2d62e35aa5eb6e
1,509
py
Python
test/countries/test_zimbabwe.py
hugovk/python-holidays
e22c667a159c959d81b512cc354910fc5c6653a9
[ "MIT" ]
48
2016-11-22T09:18:50.000Z
2018-01-14T14:06:49.000Z
test/countries/test_zimbabwe.py
hugovk/python-holidays
e22c667a159c959d81b512cc354910fc5c6653a9
[ "MIT" ]
59
2016-12-03T15:52:36.000Z
2018-01-16T09:37:15.000Z
test/countries/test_zimbabwe.py
hugovk/python-holidays
e22c667a159c959d81b512cc354910fc5c6653a9
[ "MIT" ]
51
2016-11-25T14:53:55.000Z
2018-01-16T09:58:56.000Z
# -*- coding: utf-8 -*- # python-holidays # --------------- # A fast, efficient Python library for generating country, province and state # specific sets of holidays on the fly. It aims to make determining whether a # specific date is a holiday as fast and flexible as possible. # # Authors: dr-prodigy <maurizio....
33.533333
78
0.666004
0f88c805ee12efe80e9f249b7d2589f2cd4b6663
3,436
py
Python
xblock_jupyter_viewer/xblock_jupyter_viewer.py
murat-polat/jupyter-edx-viewer-xblock
6024a3c5b443934654882b0e9b11c50005e2ee44
[ "BSD-3-Clause" ]
null
null
null
xblock_jupyter_viewer/xblock_jupyter_viewer.py
murat-polat/jupyter-edx-viewer-xblock
6024a3c5b443934654882b0e9b11c50005e2ee44
[ "BSD-3-Clause" ]
null
null
null
xblock_jupyter_viewer/xblock_jupyter_viewer.py
murat-polat/jupyter-edx-viewer-xblock
6024a3c5b443934654882b0e9b11c50005e2ee44
[ "BSD-3-Clause" ]
null
null
null
"""Jupyter Notebook Viewer XBlock""" import logging import pkg_resources import urllib.request from urllib.parse import urlencode, quote_plus from django.urls import reverse from xblock.core import XBlock from xblock.fields import Scope, String, Integer from xblock.fragment import Fragment from xblockutils.studio...
31.236364
115
0.614668
92281349a1f329ad50d812be00bc3d594ae37624
25,687
py
Python
docs/code/Coverage.py
vrthra/fuzzingbook
15319dcd7c213559cfe992c2e5936dab52929658
[ "MIT" ]
null
null
null
docs/code/Coverage.py
vrthra/fuzzingbook
15319dcd7c213559cfe992c2e5936dab52929658
[ "MIT" ]
null
null
null
docs/code/Coverage.py
vrthra/fuzzingbook
15319dcd7c213559cfe992c2e5936dab52929658
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # "Code Coverage" - a chapter of "The Fuzzing Book" # Web site: https://www.fuzzingbook.org/html/Coverage.html # Last change: 2022-02-09 08:18:28+01:00 # # Copyright (c) 2021 CISPA Helmholtz Center for Information Security # Copyright (c) 2018-2020 Saarland University, au...
25.868077
203
0.578697
36d044de04f38e88ac67805b1c5c7389fabee585
4,203
py
Python
pyrobolearn/worlds/samples/sports/billiard.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
2
2021-01-21T21:08:30.000Z
2022-03-29T16:45:49.000Z
pyrobolearn/worlds/samples/sports/billiard.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
null
null
null
pyrobolearn/worlds/samples/sports/billiard.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
1
2020-09-29T21:25:39.000Z
2020-09-29T21:25:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- r"""Provide the billiard world. """ import os import numpy as np from pyrobolearn.worlds import BasicWorld __author__ = "Brian Delhaisse" __copyright__ = "Copyright 2019, PyRoboLearn" __credits__ = ["Brian Delhaisse"] __license__ = "GNU GPLv3" __version__ = "1.0.0" __ma...
35.618644
117
0.585534
738b73ab921efcf9eacedafaa621d2793eadf9d7
11,817
py
Python
torchdyn/models/galerkin.py
mirams/torchdyn
32515299e7fa731c28d5384822b4bfca9f81fba7
[ "Apache-2.0" ]
1
2020-08-20T08:46:38.000Z
2020-08-20T08:46:38.000Z
torchdyn/models/galerkin.py
mirams/torchdyn
32515299e7fa731c28d5384822b4bfca9f81fba7
[ "Apache-2.0" ]
2
2020-10-07T23:21:11.000Z
2020-10-08T07:10:46.000Z
torchdyn/models/galerkin.py
mirams/torchdyn
32515299e7fa731c28d5384822b4bfca9f81fba7
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
45.625483
141
0.640941
0902082b716f889f0ef4ec9ca9dbfc6f158868f6
2,506
py
Python
plugins/action/dcnm_inventory.py
rost-d/ansible-dcnm
653b0ce5b89e8615d31bca3b15b60aac96c46e11
[ "Apache-2.0" ]
28
2020-07-19T02:56:38.000Z
2022-03-03T01:28:10.000Z
plugins/action/dcnm_inventory.py
rost-d/ansible-dcnm
653b0ce5b89e8615d31bca3b15b60aac96c46e11
[ "Apache-2.0" ]
67
2020-07-17T21:49:00.000Z
2022-03-20T14:59:23.000Z
plugins/action/dcnm_inventory.py
rost-d/ansible-dcnm
653b0ce5b89e8615d31bca3b15b60aac96c46e11
[ "Apache-2.0" ]
18
2020-07-07T14:42:22.000Z
2022-03-09T12:31:13.000Z
# Copyright (c) 2020 Cisco and/or its affiliates. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
39.777778
107
0.672785
ae5f8c94a08a51b74debd674108c8a2ec0df20ba
1,488
py
Python
tools/plyaddtexture_bal.py
pureexe/my-simple-sfm-ceres
12eed6f2ef4be6d2304b4f8b3851c71e39b51cc1
[ "MIT" ]
null
null
null
tools/plyaddtexture_bal.py
pureexe/my-simple-sfm-ceres
12eed6f2ef4be6d2304b4f8b3851c71e39b51cc1
[ "MIT" ]
null
null
null
tools/plyaddtexture_bal.py
pureexe/my-simple-sfm-ceres
12eed6f2ef4be6d2304b4f8b3851c71e39b51cc1
[ "MIT" ]
null
null
null
""" Convert point3d in numpy format into ply """ from database import COLMAPDatabase import numpy as np import argparse def main(args): point3d = [] image_id_index = [] with open(args.input,'r') as f: # remove header while f.readline().strip() != 'end_header': pass line ...
40.216216
188
0.639113
bae6eac8441182c919e3ead0a93797f5e73bc0bb
249
py
Python
smallApps/smallApps/timestamp.py
dambo1993/moje_konfigi_itp
29c294a559f07c1d90c80cf10cf9a5b103f40ff8
[ "MIT" ]
null
null
null
smallApps/smallApps/timestamp.py
dambo1993/moje_konfigi_itp
29c294a559f07c1d90c80cf10cf9a5b103f40ff8
[ "MIT" ]
null
null
null
smallApps/smallApps/timestamp.py
dambo1993/moje_konfigi_itp
29c294a559f07c1d90c80cf10cf9a5b103f40ff8
[ "MIT" ]
null
null
null
import sys from datetime import datetime if len(sys.argv) == 3: if sys.argv[1] == "-t": timestamp = sys.argv[2] dt_object = datetime.fromtimestamp(int(timestamp)) print(f"Date from timestamp: {timestamp} -> {dt_object}")
31.125
65
0.638554
a56deec6e0a03d3c1c1923d9cba0bab02bba1aab
1,372
py
Python
ex095_v02.py
danilodelucio/Exercicios_Curso_em_Video
d59e1b4efaf27dd0fc828a608201613c69ac333d
[ "MIT" ]
null
null
null
ex095_v02.py
danilodelucio/Exercicios_Curso_em_Video
d59e1b4efaf27dd0fc828a608201613c69ac333d
[ "MIT" ]
null
null
null
ex095_v02.py
danilodelucio/Exercicios_Curso_em_Video
d59e1b4efaf27dd0fc828a608201613c69ac333d
[ "MIT" ]
null
null
null
time = list() jogador = dict() partidas = list() while True: jogador.clear() jogador['nome'] = str(input('Nome do jogador: ')).title().strip() tot = int(input(f'Quantas partidas {jogador["nome"]} jogou? ')) partidas.clear() for c in range(0, tot): partidas.append(int(input(f' Quantos gols ...
28
75
0.545918
533446afc3b781b1c63c59d71520aa275d7b4dcb
389
py
Python
empmgt/asgi.py
Boydlloyd/empmgt
de2af88e5f26f4c998fde991e5379a44333f0121
[ "MIT" ]
null
null
null
empmgt/asgi.py
Boydlloyd/empmgt
de2af88e5f26f4c998fde991e5379a44333f0121
[ "MIT" ]
null
null
null
empmgt/asgi.py
Boydlloyd/empmgt
de2af88e5f26f4c998fde991e5379a44333f0121
[ "MIT" ]
null
null
null
""" ASGI config for empmgt project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTIN...
22.882353
78
0.784062
c628e5ad41fa839032bcc29034a770296d2fae87
855
py
Python
dataset/generate_csv.py
Beta3-Data/FacialLandmark-Live-Training
10b2b464f1deb015a7f152bb14f120f0dc6f9de2
[ "MIT" ]
null
null
null
dataset/generate_csv.py
Beta3-Data/FacialLandmark-Live-Training
10b2b464f1deb015a7f152bb14f120f0dc6f9de2
[ "MIT" ]
null
null
null
dataset/generate_csv.py
Beta3-Data/FacialLandmark-Live-Training
10b2b464f1deb015a7f152bb14f120f0dc6f9de2
[ "MIT" ]
null
null
null
import cv2 import os import random anno_root = '/mnt/lvmhdd1/dataset/face_keypoints/annos/' img_root = '/mnt/lvmhdd1/dataset/face_keypoints/images/' items = [] for anno_path in os.listdir(anno_root): if 'pts' in anno_path: with open(os.path.join(anno_root,anno_path)) as anno_file: lan...
34.2
87
0.635088
35b02e6ee380aaa511748ed5b56c6408fa1e7ea8
33,176
py
Python
sdk/python/pulumi_azure_nextgen/resources/v20190801/outputs.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/resources/v20190801/outputs.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/resources/v20190801/outputs.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** 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 from ... import _utilities, _tables from...
33.88764
495
0.624156
4536bdaf515094d49908bfca65ff9b8746ec2885
6,550
py
Python
frappe/app.py
cstkyrilos/frappe
27d9306bc5924c11c2749503454cc6d11a8cc654
[ "MIT" ]
null
null
null
frappe/app.py
cstkyrilos/frappe
27d9306bc5924c11c2749503454cc6d11a8cc654
[ "MIT" ]
null
null
null
frappe/app.py
cstkyrilos/frappe
27d9306bc5924c11c2749503454cc6d11a8cc654
[ "MIT" ]
1
2018-03-21T16:13:12.000Z
2018-03-21T16:13:12.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import os import MySQLdb from werkzeug.wrappers import Request from werkzeug.local import LocalManager from werkzeug.exceptions import HTTPException, NotF...
28.478261
103
0.754351
f0496cb72286a2cc570d469270240ed418b2408b
21,261
py
Python
Tests/modules/network_related/test__socket.py
aisk/ironpython3
d492fd811a0cee4d0a07cd46f02a29a3c90d964b
[ "Apache-2.0" ]
1,872
2015-01-02T18:56:47.000Z
2022-03-31T07:34:39.000Z
Tests/modules/network_related/test__socket.py
aisk/ironpython3
d492fd811a0cee4d0a07cd46f02a29a3c90d964b
[ "Apache-2.0" ]
675
2015-02-27T09:01:01.000Z
2022-03-31T14:03:25.000Z
Tests/modules/network_related/test__socket.py
aisk/ironpython3
d492fd811a0cee4d0a07cd46f02a29a3c90d964b
[ "Apache-2.0" ]
278
2015-01-02T03:48:20.000Z
2022-03-29T20:40:44.000Z
# Licensed to the .NET Foundation under one or more agreements. # The .NET Foundation licenses this file to you under the Apache 2.0 License. # See the LICENSE file in the project root for more information. # # test _socket # import os import _socket import sys import _thread import time import unittest from iptest ...
35.084158
152
0.499976
56d390248ef54c3700b1186650bb902d847c34e0
2,108
py
Python
src/fts3/rest/client/easy/ban.py
Jar-win/fts-rest
4db0880cf328037b8587b4d16741c40959b47ad2
[ "Apache-2.0" ]
1
2018-08-28T11:28:09.000Z
2018-08-28T11:28:09.000Z
src/fts3/rest/client/easy/ban.py
Jar-win/fts-rest
4db0880cf328037b8587b4d16741c40959b47ad2
[ "Apache-2.0" ]
13
2019-06-17T13:24:21.000Z
2022-02-03T16:28:10.000Z
src/fts3/rest/client/easy/ban.py
Jar-win/fts-rest
4db0880cf328037b8587b4d16741c40959b47ad2
[ "Apache-2.0" ]
3
2018-11-29T12:16:29.000Z
2021-02-25T09:16:47.000Z
# Copyright notice: # Copyright CERN, 2014. # # 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 ...
27.376623
93
0.663188
4f86cde4f58465d0a6e5c0a0642a092cf9bc9978
2,162
py
Python
hoopa/commands/cmdline.py
fishtn/hoopa
1742097c76b4ad4880bd22b87ee89be8490e2b24
[ "Apache-2.0" ]
9
2021-04-12T03:21:11.000Z
2022-01-06T07:51:11.000Z
hoopa/commands/cmdline.py
fishtn/hoopa
1742097c76b4ad4880bd22b87ee89be8490e2b24
[ "Apache-2.0" ]
3
2021-04-14T06:58:00.000Z
2021-06-17T03:25:34.000Z
hoopa/commands/cmdline.py
fishtn/hoopa
1742097c76b4ad4880bd22b87ee89be8490e2b24
[ "Apache-2.0" ]
3
2021-04-20T09:03:51.000Z
2022-01-06T07:51:19.000Z
import sys import cProfile from hoopa.exceptions import UsageError from hoopa.commands.create import CreateCommand def _pop_command_name(argv): i = 0 for arg in argv[1:]: if not arg.startswith('-'): del argv[i] return arg i += 1 def _print_unknown_command(cmd_name): ...
22.757895
81
0.600833
95147e4ab11dff09859168faa0a31a6f42f473b3
5,292
py
Python
Proyecto/1_red_neuronal/curva_aprendizaje.py
Rasan98/AA
0d755f3564483649dc1cfa9e127f4f66dcb533f5
[ "MIT" ]
null
null
null
Proyecto/1_red_neuronal/curva_aprendizaje.py
Rasan98/AA
0d755f3564483649dc1cfa9e127f4f66dcb533f5
[ "MIT" ]
null
null
null
Proyecto/1_red_neuronal/curva_aprendizaje.py
Rasan98/AA
0d755f3564483649dc1cfa9e127f4f66dcb533f5
[ "MIT" ]
null
null
null
#0 normal, 1 neumonía import numpy as np import matplotlib.pyplot as plt from scipy.io import loadmat from scipy.io import savemat import scipy.optimize as opt def sigmoide(X): #print(np.ravel(X)[np.argmax(X)]) return 1/(1+np.exp(-X)) def pesosAleatorios(L_in, L_out): eini = np.sqrt(6)/np.sqrt(L_in ...
32.869565
130
0.630197
37819c86d256d7a8f12eb393cfbc2c25c39dc676
13,270
py
Python
brainstorm/layers/clockwork_lstm_layer.py
PyCN/brainstorm
8f1fc886faf268b25085fa5c95bf106b1805d766
[ "MIT" ]
1,473
2015-10-25T19:12:45.000Z
2022-03-13T01:00:51.000Z
brainstorm/layers/clockwork_lstm_layer.py
PyCN/brainstorm
8f1fc886faf268b25085fa5c95bf106b1805d766
[ "MIT" ]
50
2015-10-25T19:14:17.000Z
2018-10-03T07:48:25.000Z
brainstorm/layers/clockwork_lstm_layer.py
PyCN/brainstorm
8f1fc886faf268b25085fa5c95bf106b1805d766
[ "MIT" ]
209
2015-10-25T20:22:06.000Z
2021-07-23T00:00:39.000Z
#!/usr/bin/env python # coding=utf-8 from __future__ import division, print_function, unicode_literals from collections import OrderedDict from brainstorm.structure.construction import ConstructionWrapper from brainstorm.utils import LayerValidationError, flatten_time, \ flatten_time_and_features from brainstorm.la...
40.58104
79
0.562622
388609561d7c4f1d914adb33c56e63fb8108b237
13,660
py
Python
src/tests/base/test_cancelevent.py
snadal/pretix
430ccece9a3af6fd93c51626a9551ef79cee8002
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/tests/base/test_cancelevent.py
snadal/pretix
430ccece9a3af6fd93c51626a9551ef79cee8002
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/tests/base/test_cancelevent.py
snadal/pretix
430ccece9a3af6fd93c51626a9551ef79cee8002
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from datetime import timedelta from decimal import Decimal from django.core import mail as djmail from django.test import TestCase from django.utils.timezone import now from django_scopes import scope from pretix.base.models import Event, Item, Order, OrderPosition, Organizer from pretix.base.models.orders import Ord...
43.642173
113
0.615886
d0a4d5be5af4376e1d2458ed5b4af3fd6c563ff3
1,873
py
Python
src/utils/runWhenBotStart/getMembersInVoiceStatesWhoAreActive.py
ZhangPluto/Funny-Nation
abd38f10d5cc9c026cbab5ae2995cb17a2902b8f
[ "MIT" ]
126
2022-01-15T02:29:07.000Z
2022-03-30T09:57:40.000Z
src/utils/runWhenBotStart/getMembersInVoiceStatesWhoAreActive.py
ZhangPluto/Funny-Nation
abd38f10d5cc9c026cbab5ae2995cb17a2902b8f
[ "MIT" ]
18
2022-01-11T22:24:35.000Z
2022-03-16T00:13:01.000Z
src/utils/runWhenBotStart/getMembersInVoiceStatesWhoAreActive.py
ZhangPluto/Funny-Nation
abd38f10d5cc9c026cbab5ae2995cb17a2902b8f
[ "MIT" ]
25
2022-01-22T15:06:27.000Z
2022-03-01T04:34:19.000Z
from discord import VoiceState, Member, Guild from typing import List, Dict from pymysql import Connection from src.Storage import Storage from src.model.activityStatManagement import getActivityStatByUser, newActivityStatForUser from src.model.userManagement import getUser, addNewUser from loguru import logger def g...
33.446429
124
0.665243
4146cf9186b413c798c50ce439528a9372aa4584
4,264
py
Python
sdk/tables/azure-data-tables/samples/async_samples/sample_authentication_async.py
mtin/azure-sdk-for-python
08d7f8f76d1c9eca230cbcecb3c42eb92817bcb8
[ "MIT" ]
null
null
null
sdk/tables/azure-data-tables/samples/async_samples/sample_authentication_async.py
mtin/azure-sdk-for-python
08d7f8f76d1c9eca230cbcecb3c42eb92817bcb8
[ "MIT" ]
null
null
null
sdk/tables/azure-data-tables/samples/async_samples/sample_authentication_async.py
mtin/azure-sdk-for-python
08d7f8f76d1c9eca230cbcecb3c42eb92817bcb8
[ "MIT" ]
null
null
null
# coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # --------------------------------------------------------------------...
42.217822
120
0.704503
eb55da74d8b8304711f6d8d8f1928c990fda18a6
4,200
py
Python
configs/reppoints_moment_parallel_r50_fpn_1x-deepfashion2.py
ShenhanQian/KGDet
730bc8254440a7e75f56f28f06982c1879f70403
[ "MIT" ]
24
2021-01-08T01:40:02.000Z
2022-03-09T07:31:10.000Z
configs/reppoints_moment_parallel_r50_fpn_1x-deepfashion2.py
ShenhanQian/KGDet
730bc8254440a7e75f56f28f06982c1879f70403
[ "MIT" ]
3
2021-07-29T04:21:19.000Z
2022-02-09T07:42:25.000Z
configs/reppoints_moment_parallel_r50_fpn_1x-deepfashion2.py
ShenhanQian/KGDet
730bc8254440a7e75f56f28f06982c1879f70403
[ "MIT" ]
3
2021-08-24T12:16:49.000Z
2021-12-25T09:49:54.000Z
# model settings norm_cfg = dict(type='GN', num_groups=32, requires_grad=True) model = dict( type='RepPointsDetectorKp', pretrained='modelzoo://resnet50', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, style='...
28.965517
80
0.615
f72ae0f6c794d479f6cdc796193f0e7a465e9821
15,152
py
Python
Perception-Project/project_template.py
renowator/Udacity_Robotics_Projects
3dc1f1ebff3c33d6bbb031653398ace5beb7f809
[ "MIT" ]
null
null
null
Perception-Project/project_template.py
renowator/Udacity_Robotics_Projects
3dc1f1ebff3c33d6bbb031653398ace5beb7f809
[ "MIT" ]
null
null
null
Perception-Project/project_template.py
renowator/Udacity_Robotics_Projects
3dc1f1ebff3c33d6bbb031653398ace5beb7f809
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Import modules import matplotlib.colors import matplotlib.pyplot as plt import numpy as np import sklearn from sklearn.preprocessing import LabelEncoder import pickle from sensor_stick.srv import GetNormals from sensor_stick.features import compute_color_histograms from sensor_stick.features im...
38.262626
159
0.714625