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
794b756382e3cdaf08185845317edc4752c798c0
2,894
py
Python
vega/algorithms/nas/modnas/contrib/callback/metrics_stats.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/algorithms/nas/modnas/contrib/callback/metrics_stats.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/algorithms/nas/modnas/contrib/callback/metrics_stats.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. 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...
39.108108
100
0.662405
794b772c435a8d005001d784d0c1ed3078a9f98c
1,218
py
Python
drf_nested_forms/parsers.py
emperorDuke/nested_formdata
f6850b5a3836dbc4af9a7d1104981f2198cc1a30
[ "MIT" ]
12
2020-03-30T05:41:37.000Z
2022-02-08T17:52:14.000Z
drf_nested_forms/parsers.py
emperorDuke/nested_formdata
f6850b5a3836dbc4af9a7d1104981f2198cc1a30
[ "MIT" ]
6
2020-03-28T21:39:49.000Z
2021-11-24T21:37:27.000Z
drf_nested_forms/parsers.py
emperorDuke/nested_formdata
f6850b5a3836dbc4af9a7d1104981f2198cc1a30
[ "MIT" ]
2
2021-05-14T17:36:42.000Z
2021-06-06T19:33:04.000Z
from rest_framework.parsers import MultiPartParser, JSONParser from .utils import NestedForm from .settings import api_settings class NestedMultiPartParser(MultiPartParser): """ Parser for multipart form data that is nested and also it may include files """ options = api_settings.OPTIONS def...
25.914894
66
0.659278
794b77434f287fd6880ca3d2ac2739f0321059d6
5,180
py
Python
tests/unit/tuner/pytorch/test_loss.py
jina-ai/finetuner
6b8701c6ca372310364e6791c1c2761700dfc150
[ "Apache-2.0" ]
270
2021-10-20T10:16:02.000Z
2022-03-31T07:58:54.000Z
tests/unit/tuner/pytorch/test_loss.py
jina-ai/finetuner
6b8701c6ca372310364e6791c1c2761700dfc150
[ "Apache-2.0" ]
211
2021-10-20T12:08:52.000Z
2022-03-28T12:53:59.000Z
tests/unit/tuner/pytorch/test_loss.py
jina-ai/finetuner
6b8701c6ca372310364e6791c1c2761700dfc150
[ "Apache-2.0" ]
19
2021-10-20T10:21:43.000Z
2022-02-09T20:26:43.000Z
import numpy as np import pytest import torch import torch.nn.functional as F from finetuner.tuner.pytorch.losses import ( NTXentLoss, SiameseLoss, TripletLoss, get_distance, ) N_BATCH = 10 N_DIM = 128 ALL_LOSSES = [SiameseLoss, TripletLoss] @pytest.mark.parametrize('margin', [0.0, 0.5, 1.0]) @pyte...
33.419355
88
0.668147
794b77ed2dfdaf6bfe4dc4d1c97480fcf1af3248
10,866
py
Python
bokeh/tests/test_transform.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
6
2020-02-21T15:50:34.000Z
2021-11-09T19:45:50.000Z
bokeh/tests/test_transform.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
1
2021-05-08T06:24:26.000Z
2021-05-08T06:24:26.000Z
bokeh/tests/test_transform.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
2
2019-08-28T14:57:54.000Z
2019-11-26T16:18:30.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
37.340206
115
0.513252
794b77ff945c9833cfbbd6cb860171a4c3b3f1fb
560
py
Python
Python/Chittle_Ben_FSE 2019-2020/0.3.3/ui.py
benchittle/misc
a5332f3696d36609154713bdc5e6367b73fdb8be
[ "MIT" ]
null
null
null
Python/Chittle_Ben_FSE 2019-2020/0.3.3/ui.py
benchittle/misc
a5332f3696d36609154713bdc5e6367b73fdb8be
[ "MIT" ]
null
null
null
Python/Chittle_Ben_FSE 2019-2020/0.3.3/ui.py
benchittle/misc
a5332f3696d36609154713bdc5e6367b73fdb8be
[ "MIT" ]
null
null
null
""" Date: April 9, 2020 Version: 0.3.3 >Added this module: """ import pygame as pg import config class Hotbar: def __init__(self, game): self.game = game self.image = pg.Surface(config.HOTBAR_SIZE) self.rect = self.image.get_rect(midleft=(0, config.SCREEN_HEIGHT / 2)) self.image....
14.358974
79
0.608929
794b791cba4f53e6c50dabbb3ba818fa62a00905
8,037
py
Python
nixui/graphics/generic_widgets.py
yater/nix-gui
e7d1137ff85ef6bfe33ccc7cd8eee944475d4217
[ "MIT" ]
null
null
null
nixui/graphics/generic_widgets.py
yater/nix-gui
e7d1137ff85ef6bfe33ccc7cd8eee944475d4217
[ "MIT" ]
null
null
null
nixui/graphics/generic_widgets.py
yater/nix-gui
e7d1137ff85ef6bfe33ccc7cd8eee944475d4217
[ "MIT" ]
null
null
null
from PyQt5 import QtWidgets, QtCore, QtGui from nixui.graphics import richtext, icon class ReplacableWidget(QtWidgets.QStackedWidget): def __init__(self, starting_widget=None): super().__init__() starting_widget = starting_widget or QtWidgets.QLabel() self.current_widget = starting_widge...
32.148
132
0.6541
794b79724346b2f622f7afbde9c9e2daf696b037
860
py
Python
zcls/config/configs/dataloader.py
YinAoXiong/ZCls
8aeea3640f8456937db35d043e37cf2c03ac9017
[ "Apache-2.0" ]
null
null
null
zcls/config/configs/dataloader.py
YinAoXiong/ZCls
8aeea3640f8456937db35d043e37cf2c03ac9017
[ "Apache-2.0" ]
null
null
null
zcls/config/configs/dataloader.py
YinAoXiong/ZCls
8aeea3640f8456937db35d043e37cf2c03ac9017
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @date: 2020/11/25 下午6:50 @file: dataloader.py @author: zj @description: """ from yacs.config import CfgNode as CN def add_config(_C): # ---------------------------------------------------------------------------- # # DataLoader # ---------------------------------------------...
26.060606
86
0.55814
794b79a7b1daedaab2c4d458753347ed1bfbbc6e
40,105
py
Python
mlflow/store/tracking/sqlalchemy_store.py
jene4ekjene4ek/my_mlflow
1ac1b5d6657789168253101ae3a8477cff54dd9e
[ "Apache-2.0" ]
1
2021-01-10T14:00:57.000Z
2021-01-10T14:00:57.000Z
mlflow/store/tracking/sqlalchemy_store.py
jene4ekjene4ek/my_mlflow
1ac1b5d6657789168253101ae3a8477cff54dd9e
[ "Apache-2.0" ]
5
2019-02-19T18:17:03.000Z
2019-07-12T06:48:03.000Z
mlflow/store/tracking/sqlalchemy_store.py
jene4ekjene4ek/my_mlflow
1ac1b5d6657789168253101ae3a8477cff54dd9e
[ "Apache-2.0" ]
1
2020-12-29T18:01:42.000Z
2020-12-29T18:01:42.000Z
import json import logging import uuid import math import sqlalchemy import sqlalchemy.sql.expression as sql from mlflow.entities.lifecycle_stage import LifecycleStage from mlflow.models import Model from mlflow.store.tracking import SEARCH_MAX_RESULTS_THRESHOLD from mlflow.store.db.db_types import MYSQL, MSSQL impor...
48.671117
100
0.631318
794b79c0d26ace7db0ca083f80f6ecdf3959e123
146
py
Python
setup.py
Yongjie-Zhu/cpp_wrapper
233f934844e9e65602c5b3073c54873fc368794c
[ "RSA-MD" ]
null
null
null
setup.py
Yongjie-Zhu/cpp_wrapper
233f934844e9e65602c5b3073c54873fc368794c
[ "RSA-MD" ]
null
null
null
setup.py
Yongjie-Zhu/cpp_wrapper
233f934844e9e65602c5b3073c54873fc368794c
[ "RSA-MD" ]
null
null
null
from setuptools import setup setup(name='cpp_wrapper', version='0.1', packages=['cpp_wrapper'], scripts=['create_project.py'])
20.857143
36
0.657534
794b79dba88c9147bfa4fae06d0ada385cc504f7
6,614
py
Python
pySSG.tab/Project Planning.Panel/Create Views.pulldown/Elevations.pushbutton/script_back.py
kbruxvoort/SSG.extension
ea0e0472e1c3940a63cab8c013228cba6425595a
[ "MIT" ]
2
2021-09-29T10:49:16.000Z
2022-02-18T04:05:18.000Z
pySSG.tab/Project Planning.Panel/Create Views.pulldown/Elevations.pushbutton/script_back.py
kbruxvoort/SSG.extension
ea0e0472e1c3940a63cab8c013228cba6425595a
[ "MIT" ]
1
2022-02-28T14:01:43.000Z
2022-02-28T14:01:43.000Z
pySSG.tab/Project Planning.Panel/Create Views.pulldown/Elevations.pushbutton/script_back.py
kbruxvoort/SSG.extension
ea0e0472e1c3940a63cab8c013228cba6425595a
[ "MIT" ]
null
null
null
""" This script creates interior elevations each room based on room boundary. """ #pylint: disable=import-error,invalid-name,broad-except import clr import math # Import RevitAPI clr.AddReference("RevitAPI") import Autodesk from Autodesk.Revit.DB import * from pyrevit import revit from pyrevit import script from pyre...
30.200913
109
0.612186
794b7a01dbc1fb17c314ec94755e276166a4a75b
7,557
py
Python
generator/game/game_state.py
andCelli/efg_tools
0de50f41e971d6ebb461ae4733843096af87e014
[ "MIT" ]
null
null
null
generator/game/game_state.py
andCelli/efg_tools
0de50f41e971d6ebb461ae4733843096af87e014
[ "MIT" ]
null
null
null
generator/game/game_state.py
andCelli/efg_tools
0de50f41e971d6ebb461ae4733843096af87e014
[ "MIT" ]
null
null
null
from typing import Dict, List from game.game_structures import Card, PlayerId, Team, Bid class TurnInfo: def __init__(self, first, current, cards, tricks_won: Dict[int, int]): self.first_player_id = first self.current_player_id = current self.cards = cards # map player ids with num...
35.646226
160
0.573773
794b7a9716e99fd99271a25699cf5b1026284a00
1,105
py
Python
vendor/packages/translate-toolkit/translate/filters/test_prefilters.py
DESHRAJ/fjord
8899b6286b23347c9b024334e61c33fe133e836d
[ "BSD-3-Clause" ]
null
null
null
vendor/packages/translate-toolkit/translate/filters/test_prefilters.py
DESHRAJ/fjord
8899b6286b23347c9b024334e61c33fe133e836d
[ "BSD-3-Clause" ]
1
2021-12-13T20:55:07.000Z
2021-12-13T20:55:07.000Z
vendor/packages/translate-toolkit/translate/filters/test_prefilters.py
DESHRAJ/fjord
8899b6286b23347c9b024334e61c33fe133e836d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """tests decoration handling functions that are used by checks""" from translate.filters import prefilters def test_removekdecomments(): assert prefilters.removekdecomments(u"Some sṱring") == u"Some sṱring" assert prefilters.removekdecomments(u"_: Commenṱ\\n\nSo...
35.645161
88
0.713122
794b7b151ab61c39dda3bdc4d4b7bc01a05d5826
607
py
Python
dbas/views/discussion/tests/test_attitude.py
tbsschroeder/dbas
9c86eccde65cd64bc5719573b3b8449d8f333e08
[ "MIT" ]
23
2017-05-18T13:33:51.000Z
2021-12-26T18:04:09.000Z
dbas/views/discussion/tests/test_attitude.py
tbsschroeder/dbas
9c86eccde65cd64bc5719573b3b8449d8f333e08
[ "MIT" ]
8
2019-12-26T17:19:44.000Z
2020-05-28T15:38:31.000Z
dbas/views/discussion/tests/test_attitude.py
tbsschroeder/dbas
9c86eccde65cd64bc5719573b3b8449d8f333e08
[ "MIT" ]
7
2017-09-27T11:15:42.000Z
2021-12-26T18:12:38.000Z
import unittest from pyramid import testing from dbas.helper.test import verify_dictionary_of_view from dbas.tests.utils import construct_dummy_request from dbas.views.discussion.rendered import attitude class DiscussionAttitudeViewTests(unittest.TestCase): def setUp(self): self.config = testing.setUp()...
27.590909
54
0.710049
794b7b1f4ba949bdf4a286a838c5345c0d12a81f
5,118
py
Python
src/tela/tela_organizador.py
Franco904/sistema-eventos
4461fb79d21bf17d3f740cd82bb2e2f2fff870ae
[ "MIT" ]
null
null
null
src/tela/tela_organizador.py
Franco904/sistema-eventos
4461fb79d21bf17d3f740cd82bb2e2f2fff870ae
[ "MIT" ]
2
2022-02-02T21:31:43.000Z
2022-03-05T22:54:10.000Z
src/tela/tela_organizador.py
Franco904/sistema-eventos
4461fb79d21bf17d3f740cd82bb2e2f2fff870ae
[ "MIT" ]
null
null
null
import PySimpleGUI as sg class TelaOrganizador: def __init__(self): self.__window = None def tela_opcoes(self): opcao = -1 while opcao == -1: self.inicializar_opcoes() button, values = self.__window.read() if values['0'] or button is None: ...
34.816327
113
0.565064
794b7b1ff5dd6afa72ea61d89cf8c5368e27c26f
2,819
py
Python
clevrer_dev/clevrer/run_net.py
gabrielsluz/SlowFast
bd06eac47fa236b070fd9a3b39518eea08d02947
[ "Apache-2.0" ]
null
null
null
clevrer_dev/clevrer/run_net.py
gabrielsluz/SlowFast
bd06eac47fa236b070fd9a3b39518eea08d02947
[ "Apache-2.0" ]
null
null
null
clevrer_dev/clevrer/run_net.py
gabrielsluz/SlowFast
bd06eac47fa236b070fd9a3b39518eea08d02947
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. """Wrapper to train and test the CLEVRER model. Example: ----Clevrer dataset----- python3 clevrer_dev/clevrer/run_net.py \ --cfg clevrer_dev/clevrer/clevrer.yaml \ DATA.PATH_TO_DATA_DIR /datasets/clevrer_dummy \ DATA....
28.19
75
0.732175
794b7d06ed14ac6629aec3420d87ccc30d375c54
145
py
Python
atcoder/abc176/c.py
sugitanishi/competitive-programming
51af65fdce514ece12f8afbf142b809d63eefb5d
[ "MIT" ]
null
null
null
atcoder/abc176/c.py
sugitanishi/competitive-programming
51af65fdce514ece12f8afbf142b809d63eefb5d
[ "MIT" ]
null
null
null
atcoder/abc176/c.py
sugitanishi/competitive-programming
51af65fdce514ece12f8afbf142b809d63eefb5d
[ "MIT" ]
null
null
null
ans=0 n=int(input()) d=list(map(int,input().split())) mx=0 for i in range(len(d)): if mx<=d[i]: mx=d[i] else: ans+=mx-d[i] print(ans)
14.5
32
0.558621
794b7d26a7995925acdc721dbda7217062e8a79c
574
py
Python
mapbackend/settings_local_example.py
copoutapp/copout-back
f02a0a9fc4299a204185af15880fdee0e1ce40d2
[ "MIT" ]
null
null
null
mapbackend/settings_local_example.py
copoutapp/copout-back
f02a0a9fc4299a204185af15880fdee0e1ce40d2
[ "MIT" ]
3
2021-04-08T21:34:53.000Z
2021-09-22T19:31:20.000Z
mapbackend/settings_local_example.py
copoutapp/copout-back
f02a0a9fc4299a204185af15880fdee0e1ce40d2
[ "MIT" ]
null
null
null
""" local settings example """ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = '<YOUR SECRET KEY HERE>' # Database # https://docs.djangoproject.com/en/3.0/ref/settings/#databases DATABASES = { 'default': { 'ENGINE': 'django.contrib.gis.db.backends.postgis', 'NAME': ...
22.96
66
0.592334
794b7deb2a8b06b992ccd97beb0127e03d020c7d
5,173
py
Python
examples/trials/mnist-keras/mnist-keras.py
dutxubo/nni
c16f4e1c89b54b8b80661ef0072433d255ad2d24
[ "MIT" ]
9,680
2019-05-07T01:42:30.000Z
2022-03-31T16:48:33.000Z
examples/trials/mnist-keras/mnist-keras.py
dutxubo/nni
c16f4e1c89b54b8b80661ef0072433d255ad2d24
[ "MIT" ]
1,957
2019-05-06T21:44:21.000Z
2022-03-31T09:21:53.000Z
examples/trials/mnist-keras/mnist-keras.py
dutxubo/nni
c16f4e1c89b54b8b80661ef0072433d255ad2d24
[ "MIT" ]
1,571
2019-05-07T06:42:55.000Z
2022-03-31T03:19:24.000Z
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the Software without restriction, including without limitation # the rights to ...
37.485507
137
0.7023
794b7e1a1f53a39f9268dc6f1c7067cabd55733c
2,267
py
Python
code_block_timer/storage.py
cclauss/code_block_timer
2c94490013bf072ae0fab8a5a48bd07d9c80b14f
[ "Apache-2.0" ]
1
2020-04-14T05:36:06.000Z
2020-04-14T05:36:06.000Z
code_block_timer/storage.py
cclauss/code_block_timer
2c94490013bf072ae0fab8a5a48bd07d9c80b14f
[ "Apache-2.0" ]
4
2015-02-13T01:21:28.000Z
2015-02-15T18:45:36.000Z
code_block_timer/storage.py
cclauss/code_block_timer
2c94490013bf072ae0fab8a5a48bd07d9c80b14f
[ "Apache-2.0" ]
2
2015-02-13T03:20:29.000Z
2020-01-02T12:33:32.000Z
# Copyright 2014 Julia Eskew # 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, sof...
32.855072
85
0.625055
794b7e7f697f7cb51d02dfed4007f6de9d8c40ff
3,908
py
Python
.history/my_classes/ScopesClosuresAndDecorators/decorators_1_20210714124523.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/ScopesClosuresAndDecorators/decorators_1_20210714124523.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/ScopesClosuresAndDecorators/decorators_1_20210714124523.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
"""Decorators Recall the simple closure example we did which allowed us to maintain a count of ho9w many times a function was called: def counter(fn): count = 0 def inner(*args, **kwargs): # using *args. **kwargs means we can call any function fn with any combination of positional and keyword arguments ...
38.313725
205
0.554759
794b7f256f4fc36a8e9b03ebbc8dd3752c2ce6bf
36,001
py
Python
tests/api_connexion/endpoints/test_dag_run_endpoint.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
79
2021-10-15T07:32:27.000Z
2022-03-28T04:10:19.000Z
tests/api_connexion/endpoints/test_dag_run_endpoint.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
153
2021-10-15T05:23:46.000Z
2022-02-23T06:07:10.000Z
tests/api_connexion/endpoints/test_dag_run_endpoint.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
23
2021-10-15T02:36:37.000Z
2022-03-17T02:59:27.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...
38.258236
110
0.552624
794b802b4facf7d82d7ab87fc50ec8c3d69ae220
31,456
py
Python
src/ea/sutadapters/CLI/client.py
ExtensiveAutomation/extensiveautomation-plugin-cli
dbe25549166e5ec7732887a0341143bac567f6c1
[ "MIT" ]
null
null
null
src/ea/sutadapters/CLI/client.py
ExtensiveAutomation/extensiveautomation-plugin-cli
dbe25549166e5ec7732887a0341143bac567f6c1
[ "MIT" ]
null
null
null
src/ea/sutadapters/CLI/client.py
ExtensiveAutomation/extensiveautomation-plugin-cli
dbe25549166e5ec7732887a0341143bac567f6c1
[ "MIT" ]
null
null
null
##!/usr/bin/env python # -*- coding: utf-8 -*- # ------------------------------------------------------------------ # MIT License # # Copyright (c) 2010-2021 Denis MACHARD # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Softwa...
35.664399
156
0.531568
794b807dd77edf2ce3eacd126714947f70d70d62
185
py
Python
Types/Enums/Stereo_SfM_Type.py
SBCV/PythonUtility
0062e1e60dc151776b963d13bc4c1763eb90d333
[ "MIT" ]
2
2019-02-20T14:56:13.000Z
2020-05-19T12:31:53.000Z
Types/Enums/Stereo_SfM_Type.py
SBCV/PythonUtility
0062e1e60dc151776b963d13bc4c1763eb90d333
[ "MIT" ]
null
null
null
Types/Enums/Stereo_SfM_Type.py
SBCV/PythonUtility
0062e1e60dc151776b963d13bc4c1763eb90d333
[ "MIT" ]
1
2021-01-07T08:32:07.000Z
2021-01-07T08:32:07.000Z
class StereoSfMType(object): # Options to demonstrate usefulness of semantic and statistical outlier filtering initial_stereo_sfm = 'INITIAL' refined_stereo_sfm = 'REFINED'
37
85
0.778378
794b81fb5c370d080b31bc2fe188ed1bb120368c
3,735
py
Python
python/efcamdat/preprocess_efcamdat.py
skinnersBoxy/input-filter
6528b6dc094c59ac6d28a24016d0c42de495d313
[ "MIT" ]
null
null
null
python/efcamdat/preprocess_efcamdat.py
skinnersBoxy/input-filter
6528b6dc094c59ac6d28a24016d0c42de495d313
[ "MIT" ]
null
null
null
python/efcamdat/preprocess_efcamdat.py
skinnersBoxy/input-filter
6528b6dc094c59ac6d28a24016d0c42de495d313
[ "MIT" ]
null
null
null
""" Processes English L2 parse tree data into (determiner, noun category, count) triplets. """ import argparse import datetime import gc import xml.etree.ElementTree as ElementTree import pandas as pd def get_flags(): """ Parses the flags. """ parser = argparse.ArgumentParser( description= 'P...
35.913462
113
0.562517
794b82a3daaf8291fd8fcaeaa50debbda617761f
7,976
py
Python
distutilazy/clean.py
farzadghanei/distutilazy
c3c7d062f7cb79abb7677cac57dd752127ff78e7
[ "MIT" ]
null
null
null
distutilazy/clean.py
farzadghanei/distutilazy
c3c7d062f7cb79abb7677cac57dd752127ff78e7
[ "MIT" ]
2
2016-06-16T14:12:48.000Z
2018-07-22T12:44:21.000Z
distutilazy/clean.py
farzadghanei/distutilazy
c3c7d062f7cb79abb7677cac57dd752127ff78e7
[ "MIT" ]
null
null
null
""" distutilazy.clean ----------------- command classes to help clean temporary files :license: MIT. For more details see LICENSE file or https://opensource.org/licenses/MIT """ from __future__ import absolute_import import os from shutil import rmtree from distutils import log from distutils.core import Command fro...
30.442748
79
0.596163
794b8473783d9c923730503c75665a9f98b693cc
844
py
Python
true_crime/01-Web-Scraping-Python-and-BeautifulSoup/criminal_minds.py
jvmistica/hubpages
6486312b3b3df122dd67bc4c2f7582736f02342a
[ "MIT" ]
null
null
null
true_crime/01-Web-Scraping-Python-and-BeautifulSoup/criminal_minds.py
jvmistica/hubpages
6486312b3b3df122dd67bc4c2f7582736f02342a
[ "MIT" ]
1
2021-03-31T20:06:36.000Z
2021-03-31T20:06:36.000Z
true_crime/01-Web-Scraping-Python-and-BeautifulSoup/criminal_minds.py
jvmistica/hubpages
6486312b3b3df122dd67bc4c2f7582736f02342a
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup # Retrieve all stories url = "https://criminalminds.fandom.com/wiki/Real_Criminals/Serial_Killers" response = requests.get(url) soup = BeautifulSoup(response.text, "lxml") stories = soup.find_all("div", {"class": "lightbox-caption"}) for story in stories: # Retrieve ...
32.461538
75
0.664692
794b851df222f0777e624d5dc90cab6aaaaaa812
3,291
py
Python
tests/unit/utils/test_pkg.py
nadvornik/salt-1
6837044f5a207cf39f3064428b0ed276226a5e39
[ "Apache-2.0" ]
19
2016-01-29T14:37:52.000Z
2022-03-30T18:08:01.000Z
tests/unit/utils/test_pkg.py
nadvornik/salt-1
6837044f5a207cf39f3064428b0ed276226a5e39
[ "Apache-2.0" ]
223
2016-03-02T16:39:41.000Z
2022-03-03T12:26:35.000Z
tests/unit/utils/test_pkg.py
nadvornik/salt-1
6837044f5a207cf39f3064428b0ed276226a5e39
[ "Apache-2.0" ]
64
2016-02-04T19:45:26.000Z
2021-12-15T02:02:31.000Z
import salt.utils.pkg from salt.utils.pkg import rpm from tests.support.mock import NO_MOCK, NO_MOCK_REASON, MagicMock, Mock, patch from tests.support.unit import TestCase, skipIf try: import pytest except ImportError: pytest = None @skipIf(pytest is None, "PyTest is missing") class PkgRPMTestCase(TestCase):...
32.584158
113
0.576724
794b8579baba721a2b89b7b791575220e57b3f44
990
py
Python
CosmosTrigger/__init__.py
yshin1209/peridyme2
ada7fec3820044bbd2bd4ce20aeb08b9ca4b1928
[ "MIT" ]
null
null
null
CosmosTrigger/__init__.py
yshin1209/peridyme2
ada7fec3820044bbd2bd4ce20aeb08b9ca4b1928
[ "MIT" ]
null
null
null
CosmosTrigger/__init__.py
yshin1209/peridyme2
ada7fec3820044bbd2bd4ce20aeb08b9ca4b1928
[ "MIT" ]
2
2021-08-05T14:25:29.000Z
2021-08-05T14:37:39.000Z
# Cosmos DB Trigger # 2021 Yong-Jun Shin # Ctrl-Shift-P --> Terminal: Create New Integrated Terminal # gremlinpython==3.5.0 --> requirments.txt # gremelinpython supports python 3.4 or higher # pip install --target ".\.venv\Lib\site-packages" -r requirements.txt --upgrade import logging import datetime import azure.f...
31.935484
89
0.641414
794b87c4977e357f0da921102852614b755b3cff
4,229
py
Python
test_ga_scripts/compare_selections.py
jmehault/genetic_algorithm_feature_selection
43d250f35be69b32943963201165ea941fb173da
[ "MIT" ]
null
null
null
test_ga_scripts/compare_selections.py
jmehault/genetic_algorithm_feature_selection
43d250f35be69b32943963201165ea941fb173da
[ "MIT" ]
null
null
null
test_ga_scripts/compare_selections.py
jmehault/genetic_algorithm_feature_selection
43d250f35be69b32943963201165ea941fb173da
[ "MIT" ]
null
null
null
import time import numpy as np import pandas as pd import genetic_algorithm_feature_selection.variable_selection as vs import genetic_algorithm_feature_selection.genetic_steps as gs from sklearn.linear_model import LinearRegression from sklearn.datasets import make_regression from sklearn.feature_selection import RFECV...
37.758929
88
0.671317
794b884d5147320b0b4d590b311ec8e03395e4af
7,756
py
Python
kaizen_mapping/utils/gis.py
fuzailpalnak/kaizen
432fbb780cd3725ecab51ee3daf74b1373a13c0c
[ "MIT" ]
12
2020-10-11T09:59:05.000Z
2022-01-16T18:34:55.000Z
kaizen_mapping/utils/gis.py
safarzadeh-reza/kaizen
432fbb780cd3725ecab51ee3daf74b1373a13c0c
[ "MIT" ]
null
null
null
kaizen_mapping/utils/gis.py
safarzadeh-reza/kaizen
432fbb780cd3725ecab51ee3daf74b1373a13c0c
[ "MIT" ]
2
2021-04-15T08:26:07.000Z
2022-01-16T20:59:43.000Z
from typing import Union, Tuple, List import numpy as np import geopandas import visvalingamwyatt as vw from gdal import ogr, osr from affine import Affine from geopandas import GeoDataFrame from pandas import Series from rasterio.transform import rowcol, xy from shapely.geometry import mapping, box, Point, Polygon, ...
31.024
115
0.67638
794b895aa064898c35b6c990341ff16b3478a8ba
8,693
py
Python
front-end/testsuite-python-lib/Python-3.1/Lib/ctypes/util.py
MalloyPower/parsing-python
b2bca5eed07ea2af7a2001cd4f63becdfb0570be
[ "MIT" ]
1
2020-11-26T18:53:46.000Z
2020-11-26T18:53:46.000Z
Lib/ctypes/util.py
orestis/python
870a82aac7788ffa105e2a3e4480b3715c93bff6
[ "PSF-2.0" ]
null
null
null
Lib/ctypes/util.py
orestis/python
870a82aac7788ffa105e2a3e4480b3715c93bff6
[ "PSF-2.0" ]
2
2018-08-06T04:37:38.000Z
2022-02-27T18:07:12.000Z
import sys, os # find_library(name) returns the pathname of a library, or None. if os.name == "nt": def _get_build_version(): """Return the version of MSVC that was used to build Python. For Python 2.3 and up, the version number is included in sys.version. For earlier versions, assume th...
32.92803
118
0.478891
794b89d15c84a1cda965110bd791ba8658a9d68c
8,945
py
Python
benchmarks/vision/cifar_10_stc.py
jzheng17/rf-dn-paper
e13274e4c6a7b6cfc7f8146d3d1eb3f1bfafefe4
[ "MIT" ]
6
2021-09-01T07:25:00.000Z
2021-10-06T00:53:52.000Z
benchmarks/vision/cifar_10_stc.py
jzheng17/rf-dn-paper
e13274e4c6a7b6cfc7f8146d3d1eb3f1bfafefe4
[ "MIT" ]
20
2021-11-02T13:27:31.000Z
2022-02-15T21:16:26.000Z
benchmarks/vision/cifar_10_stc.py
jzheng17/rf-dn-paper
e13274e4c6a7b6cfc7f8146d3d1eb3f1bfafefe4
[ "MIT" ]
3
2021-09-05T22:07:44.000Z
2021-09-14T00:32:36.000Z
""" Coauthors: Haoyin Xu Yu-Chung Peng """ from toolbox import * import argparse import random import torchvision.models as models import torchvision.datasets as datasets import torchvision.transforms as transforms def run_cnn32(): cnn32_kappa = [] cnn32_ece = [] cnn32_train_time = [] cnn...
34.141221
87
0.597317
794b8b603fb45226d50f1457096f2054126779d5
2,949
py
Python
utils/json2trn.py
szmmm/speechchain
909724c6f305588a52958f64f584ad21696b5173
[ "Apache-2.0" ]
2
2019-10-29T21:41:50.000Z
2021-01-23T03:52:42.000Z
utils/json2trn.py
szmmm/speechchain
909724c6f305588a52958f64f584ad21696b5173
[ "Apache-2.0" ]
null
null
null
utils/json2trn.py
szmmm/speechchain
909724c6f305588a52958f64f584ad21696b5173
[ "Apache-2.0" ]
1
2021-12-04T01:30:25.000Z
2021-12-04T01:30:25.000Z
#!/usr/bin/env python # encoding: utf-8 # Copyright 2017 Johns Hopkins University (Shinji Watanabe) # 2018 Xuankai Chang (Shanghai Jiao Tong University) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) import argparse import codecs import json import logging import sys from espnet.utils.cli_util...
35.53012
103
0.597152
794b8d913445c77cf2a69da01c22e8e45e62c2fe
7,499
py
Python
slim/nets/dcgan.py
okojoalg/Creative-Adversarial-Networks
7f06f395b9f317f9235dc8c60c7b385cd6530471
[ "MIT" ]
1
2021-05-04T16:56:32.000Z
2021-05-04T16:56:32.000Z
slim/nets/dcgan.py
okojoalg/Creative-Adversarial-Networks
7f06f395b9f317f9235dc8c60c7b385cd6530471
[ "MIT" ]
null
null
null
slim/nets/dcgan.py
okojoalg/Creative-Adversarial-Networks
7f06f395b9f317f9235dc8c60c7b385cd6530471
[ "MIT" ]
null
null
null
# Copyright 2016 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...
37.308458
81
0.64702
794b8d9749897156ad3075fc954a59c761dae4b0
5,232
py
Python
venv/Lib/site-packages/kombu/transport/zookeeper.py
Verckolf/MyInterfaceTest
e05674bd673a6a43cfb33f7cb4318886ba92a05c
[ "MIT" ]
39
2016-12-05T14:36:37.000Z
2021-07-29T18:22:34.000Z
venv/Lib/site-packages/kombu/transport/zookeeper.py
Verckolf/MyInterfaceTest
e05674bd673a6a43cfb33f7cb4318886ba92a05c
[ "MIT" ]
68
2016-12-12T20:38:47.000Z
2020-07-26T18:28:49.000Z
venv/Lib/site-packages/kombu/transport/zookeeper.py
Verckolf/MyInterfaceTest
e05674bd673a6a43cfb33f7cb4318886ba92a05c
[ "MIT" ]
120
2016-08-18T14:53:03.000Z
2020-06-16T13:27:20.000Z
""" kombu.transport.zookeeper ========================= Zookeeper transport. :copyright: (c) 2010 - 2013 by Mahendra M. :license: BSD, see LICENSE for more details. **Synopsis** Connects to a zookeeper node as <server>:<port>/<vhost> The <vhost> becomes the base for all the other znodes. So we can use it like a vho...
27.68254
73
0.658257
794b8e5a3505a2fc84abcaaa821de76519c705f8
3,498
py
Python
python/marvin/io.py
NTForked/marvin
a5f242ec7a8ba7ab7af7cb1590eb4932a2b13cda
[ "MIT" ]
487
2015-11-10T09:04:26.000Z
2022-03-11T08:53:03.000Z
python/marvin/io.py
NTForked/marvin
a5f242ec7a8ba7ab7af7cb1590eb4932a2b13cda
[ "MIT" ]
42
2015-11-10T17:33:50.000Z
2018-07-05T17:15:38.000Z
python/marvin/io.py
NTForked/marvin
a5f242ec7a8ba7ab7af7cb1590eb4932a2b13cda
[ "MIT" ]
178
2015-11-10T19:32:07.000Z
2022-03-17T08:38:22.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function, division import numpy as np import struct class Tensor(object): def __init__(self): self.name = None self.value = None CODE_TO_TYPE = { 0: np.float16, 1: np.float32, 2: np.float64, 3: np...
29.15
77
0.561464
794b8ec3c542fa446854d8c8c7a067532e22b23d
29,321
py
Python
src/sage/algebras/shuffle_algebra.py
bopopescu/classic_diff_geom
2b1d88becbc8cb30962e0995cc78e429e0f5589f
[ "BSL-1.0" ]
null
null
null
src/sage/algebras/shuffle_algebra.py
bopopescu/classic_diff_geom
2b1d88becbc8cb30962e0995cc78e429e0f5589f
[ "BSL-1.0" ]
null
null
null
src/sage/algebras/shuffle_algebra.py
bopopescu/classic_diff_geom
2b1d88becbc8cb30962e0995cc78e429e0f5589f
[ "BSL-1.0" ]
1
2020-07-24T12:08:30.000Z
2020-07-24T12:08:30.000Z
# -*- coding: utf-8 -*- r""" Shuffle algebras AUTHORS: - Frédéric Chapoton (2013-03): Initial version - Matthieu Deneufchatel (2013-07): Implemented dual PBW basis """ #***************************************************************************** # Copyright (C) 2013 Frédéric Chapoton <chapoton-math-univ-lyon1-fr> ...
33.168552
355
0.531735
794b8f2c7501f87d3d62fb367b0c150c2b8b7969
2,075
py
Python
roll_dice.py
Karins-Coils/CastleDice
66397b1d50da89aaf1ba69ea33bc58e0eba43d73
[ "MIT" ]
2
2015-09-17T16:36:27.000Z
2015-09-17T17:01:03.000Z
roll_dice.py
Karins-Coils/CastleDice
66397b1d50da89aaf1ba69ea33bc58e0eba43d73
[ "MIT" ]
9
2019-12-04T21:49:50.000Z
2021-10-02T09:08:01.000Z
roll_dice.py
khawley/CastleDice
66397b1d50da89aaf1ba69ea33bc58e0eba43d73
[ "MIT" ]
null
null
null
#!/usr/bin/env python2.7 import random # Resources ## Building Materials Wood ='wood' Stone = 'stone' Gold = 'gold' Land = 'land' Iron = 'iron' ## Animals Horse = 'horse' Pig = 'pig' Cow = 'cow' Chicken = 'chicken' ## Lone Barbarian Barbarian = 'barbarian' class Die: resource = "" ## this tracks what kind of die i...
22.554348
94
0.618313
794b906d5f535d643589f28dbfef3431a8f0adc6
1,309
py
Python
test/test_page_dto_uploaded_file_dto.py
unofficial-memsource/memsource-cli-client
a6639506b74e95476da87f4375953448b76ea90c
[ "Apache-2.0" ]
16
2019-09-25T00:20:38.000Z
2021-05-04T05:56:10.000Z
test/test_page_dto_uploaded_file_dto.py
zerodayz/memsource-cli-client
c2574f1467539a49e6637c874e88d75c7ef789b3
[ "Apache-2.0" ]
26
2019-09-30T14:00:03.000Z
2021-05-12T11:15:18.000Z
test/test_page_dto_uploaded_file_dto.py
zerodayz/memsource-cli-client
c2574f1467539a49e6637c874e88d75c7ef789b3
[ "Apache-2.0" ]
1
2021-05-24T16:19:14.000Z
2021-05-24T16:19:14.000Z
# coding: utf-8 """ Memsource REST API Welcome to Memsource's API documentation. To view our legacy APIs please [visit our documentation](https://wiki.memsource.com/wiki/Memsource_API) and for more information about our new APIs, [visit our blog](https://www.memsource.com/blog/2017/10/24/introducing-rest-apis...
31.926829
421
0.741024
794b910ddc914b9c51b0b2152bcbad42d6c7fcc8
948
py
Python
src/models/hierarchical_attention/train_han.py
kmanchel/BiasNet
caef2e4f7db0a64ae528b5428a7123b3061481d2
[ "MIT" ]
1
2020-11-09T01:26:14.000Z
2020-11-09T01:26:14.000Z
src/models/hierarchical_attention/train_han.py
kmanchel/BiasNet
caef2e4f7db0a64ae528b5428a7123b3061481d2
[ "MIT" ]
null
null
null
src/models/hierarchical_attention/train_han.py
kmanchel/BiasNet
caef2e4f7db0a64ae528b5428a7123b3061481d2
[ "MIT" ]
1
2021-03-29T22:16:56.000Z
2021-03-29T22:16:56.000Z
from __future__ import absolute_import, division, print_function, unicode_literals import os import sys sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/../") sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/../../preprocess/") import logging from logging import getLogger, DEBUG, INFO, WAR...
26.333333
88
0.727848
794b923604ab860b1209ac9ec64b986db3cf80df
4,233
py
Python
dogechia/consensus/block_record.py
hagbardcelene/doge-chia
72bdf0a7b20a579fe4645f0cb132955e181e1c44
[ "Apache-2.0" ]
27
2021-07-06T16:33:50.000Z
2022-02-19T21:11:25.000Z
dogechia/consensus/block_record.py
hagbardcelene/doge-chia
72bdf0a7b20a579fe4645f0cb132955e181e1c44
[ "Apache-2.0" ]
15
2021-07-07T02:32:59.000Z
2021-10-15T21:19:51.000Z
dogechia/consensus/block_record.py
hagbardcelene/doge-chia
72bdf0a7b20a579fe4645f0cb132955e181e1c44
[ "Apache-2.0" ]
12
2021-07-08T15:36:20.000Z
2022-03-15T08:34:01.000Z
from dataclasses import dataclass from typing import List, Optional from dogechia.consensus.constants import ConsensusConstants from dogechia.consensus.pot_iterations import calculate_ip_iters, calculate_sp_iters from dogechia.types.blockchain_format.classgroup import ClassgroupElement from dogechia.types.blockchain_f...
47.033333
115
0.762343
794b9276cd797858634f25c0e8802569d1146f83
7,564
py
Python
test/test_dataset.py
LeoPaoli/sankeyview
99f21a7d90888a85bb5aac2f57e9c72bd9de4a8a
[ "MIT" ]
1
2021-08-05T09:52:20.000Z
2021-08-05T09:52:20.000Z
test/test_dataset.py
LeoPaoli/sankeyview
99f21a7d90888a85bb5aac2f57e9c72bd9de4a8a
[ "MIT" ]
null
null
null
test/test_dataset.py
LeoPaoli/sankeyview
99f21a7d90888a85bb5aac2f57e9c72bd9de4a8a
[ "MIT" ]
null
null
null
import pytest import pandas as pd from sankeyview.dataset import Dataset, eval_selection from sankeyview.sankey_definition import ProcessGroup, Bundle, Elsewhere def _dataset(): dim_process = pd.DataFrame.from_records( [ ('a1', 'a'), ('a2', 'a'), ('b', 'b'), ...
29.092308
85
0.515071
794b928e2339f08fce1207ccb4920eabb1314a7e
2,693
py
Python
tests/mytesttools.py
iwschris/ezodf2
061c4aa3f26e9157ad46155d8ce92db7187b0574
[ "MIT" ]
4
2015-03-15T22:32:35.000Z
2019-12-23T12:13:13.000Z
tests/mytesttools.py
iwschris/ezodf2
061c4aa3f26e9157ad46155d8ce92db7187b0574
[ "MIT" ]
3
2017-08-17T09:36:42.000Z
2021-12-13T19:43:28.000Z
tests/mytesttools.py
iwschris/ezodf2
061c4aa3f26e9157ad46155d8ce92db7187b0574
[ "MIT" ]
null
null
null
#!/usr/bin/env python #coding:utf-8 # Purpose: testing tools # Created: 30.12.2010 # Copyright (C) 2010, Manfred Moitzi # License: MIT from __future__ import unicode_literals, print_function, division __author__ = "mozman <mozman@gmx.at>" import os import random from lxml import etree def in_XML(source, ...
30.258427
118
0.583364
794b92e0626174e5012f3c35d354037da1636d30
732
py
Python
addon-sdk-1.17/python-lib/cuddlefish/templates.py
hankduan/firefoxExtension
a5fd86ef024a5ed21e039eb2f4b50fb6d0cf3567
[ "MIT" ]
102
2015-01-09T22:12:00.000Z
2021-04-21T01:18:51.000Z
addon-sdk-1.17/python-lib/cuddlefish/templates.py
hankduan/firefoxExtension
a5fd86ef024a5ed21e039eb2f4b50fb6d0cf3567
[ "MIT" ]
17
2015-01-24T22:30:47.000Z
2020-11-19T01:13:32.000Z
addon-sdk-1.17/python-lib/cuddlefish/templates.py
hankduan/firefoxExtension
a5fd86ef024a5ed21e039eb2f4b50fb6d0cf3567
[ "MIT" ]
33
2015-01-15T16:11:15.000Z
2021-06-11T12:15:29.000Z
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. #Template used by test-main.js TEST_MAIN_JS = '''\ var main = require("./main"); exports["test main"] = function(assert...
22.181818
69
0.628415
794b92f6fa3a20681cce2b7f994700d56cde2064
284
py
Python
basic/if_or.py
shilpasayura/python
8f3b2432f972c9aeb4b04e2141ea4abf2437762c
[ "MIT" ]
1
2021-10-07T15:15:01.000Z
2021-10-07T15:15:01.000Z
basic/if_or.py
shilpasayura/python
8f3b2432f972c9aeb4b04e2141ea4abf2437762c
[ "MIT" ]
null
null
null
basic/if_or.py
shilpasayura/python
8f3b2432f972c9aeb4b04e2141ea4abf2437762c
[ "MIT" ]
null
null
null
name1 = 'Fito' name2 = 'Ben' name3 = 'Ruby' name4 = 'Nish' name5 = 'Nito' name = input("Enter your name: ") if name == name1 or name == name2 or name == name3 or name == name4 or name == name5: print("I know you!") else: print("Sorry, ", name, "I don't know who you are :(")
23.666667
85
0.598592
794b933cf28f5b9a094c2eac4cde57b3238ab70c
2,514
py
Python
qiskit/transpiler/passes/layout/apply_layout.py
Elliot-Coupe/qiskit-terra
8a604e156ba4c2fa099b1c24cd941f59b9408398
[ "Apache-2.0" ]
1
2021-07-06T09:07:47.000Z
2021-07-06T09:07:47.000Z
qiskit/transpiler/passes/layout/apply_layout.py
Elliot-Coupe/qiskit-terra
8a604e156ba4c2fa099b1c24cd941f59b9408398
[ "Apache-2.0" ]
1
2019-10-03T12:22:41.000Z
2019-10-03T12:22:41.000Z
qiskit/transpiler/passes/layout/apply_layout.py
Elliot-Coupe/qiskit-terra
8a604e156ba4c2fa099b1c24cd941f59b9408398
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
36.970588
96
0.67144
794b9341f6af5f1fb87252e51fe40f4e0fc788ca
1,457
py
Python
src/algo/handle_simple.py
wengzilla/staketaxcsv
c52210106ec8194973f6ff178a307c77699e094e
[ "MIT" ]
140
2021-12-11T23:37:46.000Z
2022-03-29T23:04:36.000Z
src/algo/handle_simple.py
wengzilla/staketaxcsv
c52210106ec8194973f6ff178a307c77699e094e
[ "MIT" ]
80
2021-12-17T15:13:47.000Z
2022-03-31T13:33:53.000Z
src/algo/handle_simple.py
wengzilla/staketaxcsv
c52210106ec8194973f6ff178a307c77699e094e
[ "MIT" ]
52
2021-12-12T00:37:17.000Z
2022-03-29T23:25:09.000Z
from algo import constants as co from algo.export_tx import export_reward_tx from algo.util_algo import get_transfer_asset, get_transfer_receiver from common.make_tx import make_unknown_tx, make_unknown_tx_with_transfer def handle_unknown(exporter, txinfo): row = make_unknown_tx(txinfo) exporter.ingest_row(ro...
45.53125
96
0.717914
794b9410520b4758dbb0bc49b561db39fbc7973e
23,407
py
Python
notebooks/__code/ui_water_intake_profile.py
mabrahamdevops/python_notebooks
6d5e7383b60cc7fd476f6e85ab93e239c9c32330
[ "BSD-3-Clause" ]
null
null
null
notebooks/__code/ui_water_intake_profile.py
mabrahamdevops/python_notebooks
6d5e7383b60cc7fd476f6e85ab93e239c9c32330
[ "BSD-3-Clause" ]
null
null
null
notebooks/__code/ui_water_intake_profile.py
mabrahamdevops/python_notebooks
6d5e7383b60cc7fd476f6e85ab93e239c9c32330
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/Users/j35/git/python_notebooks/notebooks/ui/ui_water_intake_profile.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(...
65.75
126
0.758149
794b9422c4dc01b77440bc89e2eb00144cf7e62a
140,114
py
Python
lib/sqlalchemy/orm/relationships.py
bowlofeggs/sqlalchemy
4042792348481e8c00515f8df6af503ca4d0ee73
[ "MIT" ]
null
null
null
lib/sqlalchemy/orm/relationships.py
bowlofeggs/sqlalchemy
4042792348481e8c00515f8df6af503ca4d0ee73
[ "MIT" ]
null
null
null
lib/sqlalchemy/orm/relationships.py
bowlofeggs/sqlalchemy
4042792348481e8c00515f8df6af503ca4d0ee73
[ "MIT" ]
1
2021-11-23T17:59:42.000Z
2021-11-23T17:59:42.000Z
# orm/relationships.py # Copyright (C) 2005-2020 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Heuristics related to join conditions as used in :func:`_orm.relationship`. ...
38.684152
79
0.579735
794b94e622838696d16e69f60268694f6b889c37
247
py
Python
actions/admin.py
Hoofeycheng/Bookmarks
f2721633cd39393f0c92993579071679bb975ab0
[ "MIT" ]
null
null
null
actions/admin.py
Hoofeycheng/Bookmarks
f2721633cd39393f0c92993579071679bb975ab0
[ "MIT" ]
null
null
null
actions/admin.py
Hoofeycheng/Bookmarks
f2721633cd39393f0c92993579071679bb975ab0
[ "MIT" ]
null
null
null
from django.contrib import admin from actions.models import Action # Register your models here. @admin.register(Action) class ActionAdmin(admin.ModelAdmin): list_display = ("user","verb","target","created") search_fields = ("verb",)
17.642857
53
0.724696
794b9623be2e950e65752f82342df7cdb2df9222
3,374
py
Python
aleph/util.py
gazeti/aleph
f6714c4be038471cfdc6408bfe88dc9e2ed28452
[ "MIT" ]
1
2017-07-28T12:54:09.000Z
2017-07-28T12:54:09.000Z
aleph/util.py
gazeti/aleph
f6714c4be038471cfdc6408bfe88dc9e2ed28452
[ "MIT" ]
7
2017-08-16T12:49:23.000Z
2018-02-16T10:22:11.000Z
aleph/util.py
gazeti/aleph
f6714c4be038471cfdc6408bfe88dc9e2ed28452
[ "MIT" ]
6
2017-07-26T12:29:53.000Z
2017-08-18T09:35:50.000Z
# coding: utf-8 import os import six import yaml import shutil from os import path from hashlib import sha1 from celery import Task from tempfile import mkdtemp from aleph.text import string_value TMP_PREFIX = six.text_type('aleph.tmp.') PDF_MIME = 'application/pdf' def checksum(filename): """Generate a hash fo...
26.992
73
0.647303
794b98856db2c09616f594b0ed31b8f17c1cdf35
6,370
py
Python
generated/ansible-collection/apimanagementdelegationsetting_info.py
audevbot/autorest.devops.debug
a507fb6e2dd7826212537f27d583f203aac1c28f
[ "MIT" ]
null
null
null
generated/ansible-collection/apimanagementdelegationsetting_info.py
audevbot/autorest.devops.debug
a507fb6e2dd7826212537f27d583f203aac1c28f
[ "MIT" ]
null
null
null
generated/ansible-collection/apimanagementdelegationsetting_info.py
audevbot/autorest.devops.debug
a507fb6e2dd7826212537f27d583f203aac1c28f
[ "MIT" ]
null
null
null
#!/usr/bin/python # # Copyright (c) 2019 Zim Kalinowski, (@zikalino) # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
28.693694
113
0.557614
794b98bda43dae12c172364de06264c693c118a7
1,730
py
Python
e2e_graphsage/data/datasets/edge_dataset.py
mingruimingrui/E2EGraphSage
90de7befd3a8ced514697c073b4c64e96b63bdb0
[ "MIT" ]
null
null
null
e2e_graphsage/data/datasets/edge_dataset.py
mingruimingrui/E2EGraphSage
90de7befd3a8ced514697c073b4c64e96b63bdb0
[ "MIT" ]
null
null
null
e2e_graphsage/data/datasets/edge_dataset.py
mingruimingrui/E2EGraphSage
90de7befd3a8ced514697c073b4c64e96b63bdb0
[ "MIT" ]
null
null
null
""" """ import random from collections import Iterable import numpy as np import torch.utils.data class EdgeDataset(torch.utils.data.Dataset): def __init__(self, adjacency_list, src_node_ids=None): formatted_adjacency_list = [] for neighbors in adjacency_list: neighbors = np.array(ne...
32.641509
79
0.653179
794b996cb4b1bda4b398d4a9ead25e18d747cd35
10,274
py
Python
tests/previs/test_media.py
tws0002/anima
73c256d1f7716a2db7933d6d8519a51333c7e5b4
[ "BSD-2-Clause" ]
7
2016-03-30T14:43:33.000Z
2020-11-12T17:56:40.000Z
tests/previs/test_media.py
tws0002/anima
73c256d1f7716a2db7933d6d8519a51333c7e5b4
[ "BSD-2-Clause" ]
null
null
null
tests/previs/test_media.py
tws0002/anima
73c256d1f7716a2db7933d6d8519a51333c7e5b4
[ "BSD-2-Clause" ]
3
2017-04-13T04:29:04.000Z
2019-05-08T00:28:44.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2012-2015, Anima Istanbul # # This module is part of anima-tools and is released under the BSD 2 # License: http://www.opensource.org/licenses/BSD-2-Clause import unittest from anima.edit import Media, Video, Track, Clip, File class MediaTestCase(unittest.TestCase): """test...
32.206897
96
0.57845
794b9ac4575e6969b3179a91d698e0b4115fe7f4
758
py
Python
study/pyaudio_study/02.py
strawsyz/straw
db313c78c2e3c0355cd10c70ac25a15bb5632d41
[ "MIT" ]
2
2020-04-06T09:09:19.000Z
2020-07-24T03:59:55.000Z
study/pyaudio_study/02.py
strawsyz/straw
db313c78c2e3c0355cd10c70ac25a15bb5632d41
[ "MIT" ]
null
null
null
study/pyaudio_study/02.py
strawsyz/straw
db313c78c2e3c0355cd10c70ac25a15bb5632d41
[ "MIT" ]
null
null
null
import wave import pyaudio ## 不会报错,但是文件打不开 ## 根本没有用 CHUNK = 1024 FORMAT = pyaudio.paInt16 CHANNELS = 2 RATE = 44100 RECORD_SECONDS = 5 # 录制时长 WAVE_OUTPUT_FILENAME = "output.wav" p = pyaudio.PyAudio() stream = p.open(format=FORMAT, channels=CHANNELS, rate=RATE, input=T...
21.657143
54
0.667546
794b9ba3f165235a3d0f888ef5957753f2fce509
1,200
py
Python
Leetcode/Python Solutions/Stack/scoreofParentheses.py
Mostofa-Najmus-Sakib/Applied-Algorithm
bc656fd655617407856e0ce45b68585fa81c5035
[ "MIT" ]
1
2020-01-06T02:21:56.000Z
2020-01-06T02:21:56.000Z
Leetcode/Python Solutions/Stack/scoreofParentheses.py
Mostofa-Najmus-Sakib/Applied-Algorithm
bc656fd655617407856e0ce45b68585fa81c5035
[ "MIT" ]
null
null
null
Leetcode/Python Solutions/Stack/scoreofParentheses.py
Mostofa-Najmus-Sakib/Applied-Algorithm
bc656fd655617407856e0ce45b68585fa81c5035
[ "MIT" ]
3
2021-02-22T17:41:01.000Z
2022-01-13T05:03:19.000Z
""" LeetCode Problem: 856. Score of Parentheses Link: https://leetcode.com/problems/score-of-parentheses/ Language: Python Written by: Mostofa Adib Shakib """ # Optimal Solution # Time Complexity: O(n) # Space Complexity: O(1) class Solution(object): def scoreOfParentheses(self, S): ans = bal = 0 ...
23.529412
57
0.4525
794b9c3a3f7f4d609aff26075db91c07407bddb0
32,746
py
Python
tests/dataset/test_pandas_dataset.py
zachlindsey/great_expectations
953e152e35e065b443563ab87e94dd84573bdad1
[ "Apache-2.0" ]
1
2021-04-11T20:54:23.000Z
2021-04-11T20:54:23.000Z
tests/dataset/test_pandas_dataset.py
zachlindsey/great_expectations
953e152e35e065b443563ab87e94dd84573bdad1
[ "Apache-2.0" ]
53
2021-10-02T02:26:51.000Z
2021-12-28T20:49:25.000Z
tests/dataset/test_pandas_dataset.py
zachlindsey/great_expectations
953e152e35e065b443563ab87e94dd84573bdad1
[ "Apache-2.0" ]
1
2022-03-03T16:47:32.000Z
2022-03-03T16:47:32.000Z
import datetime import json from unittest import mock import pandas as pd import pytest import great_expectations as ge from great_expectations import DataContext from great_expectations.core import ExpectationSuite from great_expectations.core.expectation_configuration import ExpectationConfiguration from great_expe...
34.324948
137
0.552709
794b9d7d0c7cd66873bcba290c972c6163ebecfc
3,515
py
Python
bindings/python/ensmallen/datasets/string/arcobacterspl.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/arcobacterspl.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/arcobacterspl.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Arcobacter sp. L. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--protein assoc...
32.546296
223
0.672831
794b9df3796df451dbf7748dc7e3cdc72ecff807
186,573
py
Python
Lib/test/test_argparse.py
MarshalL-son/cpython
9b027d4cea57e98c76f5176cc3188dc81603356c
[ "0BSD" ]
null
null
null
Lib/test/test_argparse.py
MarshalL-son/cpython
9b027d4cea57e98c76f5176cc3188dc81603356c
[ "0BSD" ]
2
2022-01-20T18:33:26.000Z
2022-03-01T04:06:41.000Z
Lib/test/test_argparse.py
duke4ever/cpython
ad5e8520f3e117f45481513014548a39879d30d2
[ "0BSD" ]
null
null
null
# Author: Steven J. Bethard <steven.bethard@gmail.com>. import inspect import io import operator import os import shutil import stat import sys import textwrap import tempfile import unittest import argparse import warnings from test.support import os_helper from unittest import mock class StdIOBuffer(io.TextIOWrap...
33.460007
112
0.555975
794b9ef97ee26dd7471371a63026dc373f4d1aa0
10,188
py
Python
src/qsiprep_analyses/registrations/registrations.py
GalBenZvi/qsiprep_analyses
51512cffca218210f6b85e5eadd593b382963bbd
[ "Apache-2.0" ]
null
null
null
src/qsiprep_analyses/registrations/registrations.py
GalBenZvi/qsiprep_analyses
51512cffca218210f6b85e5eadd593b382963bbd
[ "Apache-2.0" ]
null
null
null
src/qsiprep_analyses/registrations/registrations.py
GalBenZvi/qsiprep_analyses
51512cffca218210f6b85e5eadd593b382963bbd
[ "Apache-2.0" ]
null
null
null
""" Definition of the :class:`NativeRegistration` class. """ from pathlib import Path from typing import Tuple, Union import nibabel as nib from brain_parts.parcellation.parcellations import ( Parcellation as parcellation_manager, ) from nilearn.image.resampling import resample_to_img from nipype.interfaces.base i...
32.970874
104
0.590989
794b9f871af88887cf121f2b83583fa9eecf4a09
17,779
py
Python
train_cls.py
RamsteinWR/Diabetic-Retinopathy-Blindness-Detection
24390aeefd197600255a961189872dd4dfc77092
[ "MIT" ]
68
2019-09-08T20:04:23.000Z
2021-05-05T10:05:14.000Z
train_cls.py
RamsteinWR/Diabetic-Retinopathy-Blindness-Detection
24390aeefd197600255a961189872dd4dfc77092
[ "MIT" ]
1
2019-09-24T06:40:33.000Z
2019-10-04T09:13:35.000Z
train_cls.py
RamsteinWR/Diabetic-Retinopathy-Blindness-Detection
24390aeefd197600255a961189872dd4dfc77092
[ "MIT" ]
25
2019-09-09T04:42:51.000Z
2022-03-28T15:01:30.000Z
from __future__ import absolute_import import argparse import collections import json import multiprocessing import os from datetime import datetime import torch from catalyst.dl import SupervisedRunner, EarlyStoppingCallback from catalyst.utils import load_checkpoint, unpack_checkpoint from pytorch_toolbelt.utils im...
45.010127
113
0.584229
794b9faa507659b7057e2debf1173a8b3bc95ef5
38,423
py
Python
pybind/slxos/v16r_1_00b/brocade_mpls_rpc/show_mpls_lsp_extensive/output/lsp/show_mpls_lsp_extensive_info/show_mpls_lsp_instances_info/lsp_instances/lsp_cspf_exclude_hops/show_mpls_lsp_hop_list/hop/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/brocade_mpls_rpc/show_mpls_lsp_extensive/output/lsp/show_mpls_lsp_extensive_info/show_mpls_lsp_instances_info/lsp_instances/lsp_cspf_exclude_hops/show_mpls_lsp_hop_list/hop/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/brocade_mpls_rpc/show_mpls_lsp_extensive/output/lsp/show_mpls_lsp_extensive_info/show_mpls_lsp_instances_info/lsp_instances/lsp_cspf_exclude_hops/show_mpls_lsp_hop_list/hop/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
73.60728
566
0.767145
794b9fc0bd3a2bbf84e50b8326190554d02780f9
591
py
Python
maths/fibonacci_sequence_recursion.py
jenia90/Python
696fb4a681ad9e4d84e0d2b894daf449a3e30b24
[ "MIT" ]
21
2020-11-29T11:34:44.000Z
2021-06-04T05:50:33.000Z
maths/fibonacci_sequence_recursion.py
Agha-Muqarib/Python
04f156a8973d6156a4357e0717d9eb0aa264d086
[ "MIT" ]
279
2020-02-12T20:51:09.000Z
2021-07-20T11:25:19.000Z
maths/fibonacci_sequence_recursion.py
Agha-Muqarib/Python
04f156a8973d6156a4357e0717d9eb0aa264d086
[ "MIT" ]
12
2020-10-03T05:44:19.000Z
2022-01-16T05:37:54.000Z
# Fibonacci Sequence Using Recursion def recur_fibo(n: int) -> int: """ >>> [recur_fibo(i) for i in range(12)] [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] """ return n if n <= 1 else recur_fibo(n - 1) + recur_fibo(n - 2) def main() -> None: limit = int(input("How many terms to include in fibon...
25.695652
81
0.58714
794b9ffdcd804e4faf789bf479a655340581cafa
1,071
py
Python
udemy/Machine Learning A-Z/Part 2 - Regression/Section 7 - Support Vector Regression (SVR)/svr.py
balazssimon/ml-playground
c2eba497bebc53e5a03807bdd8873c55f0ec73e1
[ "Apache-2.0" ]
null
null
null
udemy/Machine Learning A-Z/Part 2 - Regression/Section 7 - Support Vector Regression (SVR)/svr.py
balazssimon/ml-playground
c2eba497bebc53e5a03807bdd8873c55f0ec73e1
[ "Apache-2.0" ]
null
null
null
udemy/Machine Learning A-Z/Part 2 - Regression/Section 7 - Support Vector Regression (SVR)/svr.py
balazssimon/ml-playground
c2eba497bebc53e5a03807bdd8873c55f0ec73e1
[ "Apache-2.0" ]
null
null
null
# SVR # Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd # Importing the dataset dataset = pd.read_csv('Position_Salaries.csv') X = dataset.iloc[:, 1:2].values y = dataset.iloc[:, 2].values.reshape(-1,1) # Splitting the dataset into the Training set and Test set """from ...
26.775
95
0.746032
794ba053de9a3d0898364888d77f04903e464997
15,273
py
Python
trainval_model.py
spyflying/Referring-Image-Segmentation-via-Cross-Modal-Progressive-Comprehension
094639b8bf00cc169ea7b49cdf9c87fdfc70d963
[ "MIT" ]
52
2020-06-17T08:35:36.000Z
2022-03-22T08:04:12.000Z
trainval_model.py
spyflying/Referring-Image-Segmentation-via-Cross-Modal-Progressive-Comprehension
094639b8bf00cc169ea7b49cdf9c87fdfc70d963
[ "MIT" ]
6
2020-06-09T11:06:23.000Z
2022-01-07T05:40:59.000Z
trainval_model.py
spyflying/Referring-Image-Segmentation-via-Cross-Modal-Progressive-Comprehension
094639b8bf00cc169ea7b49cdf9c87fdfc70d963
[ "MIT" ]
15
2020-06-23T22:51:59.000Z
2021-08-07T10:40:57.000Z
from __future__ import division import sys import os import argparse import tensorflow as tf import skimage from skimage import io as sio import time # import matplotlib.pyplot as plt from get_model import get_segmentation_model from pydensecrf import densecrf from util import data_reader from util.processing_tools i...
43.266289
132
0.562103
794ba0cf6f5797caf5f4cdcfd039ef2b32fd32ba
5,365
py
Python
main.py
hernikplays/PythonPrsty
b596e49010378ce50847657aac694247a33f5b5b
[ "MIT" ]
null
null
null
main.py
hernikplays/PythonPrsty
b596e49010378ce50847657aac694247a33f5b5b
[ "MIT" ]
1
2021-06-21T18:46:36.000Z
2021-06-21T18:46:36.000Z
main.py
hernikplays/PythonPrsty
b596e49010378ce50847657aac694247a33f5b5b
[ "MIT" ]
null
null
null
from time import time from pynput import keyboard from colorama import Fore,init,Back import os import utils from sys import stdin import re init() # předdefinujeme proměnné text = "" napsano = f"{Fore.GREEN}^{Fore.RESET}" # to, co už uživatel napsal listener = None # proměnná pro posluchač stisknutí kláves radek = 0...
36.25
144
0.604846
794ba0d050d52b3480f71a883a903cc804bc0a9d
2,706
py
Python
tests/utests/voltha/core/test_logical_device_agent_venet.py
jonohart/voltha
87314cd53cb4c61e7e62b0ed3fc6da94603cc507
[ "Apache-2.0" ]
null
null
null
tests/utests/voltha/core/test_logical_device_agent_venet.py
jonohart/voltha
87314cd53cb4c61e7e62b0ed3fc6da94603cc507
[ "Apache-2.0" ]
null
null
null
tests/utests/voltha/core/test_logical_device_agent_venet.py
jonohart/voltha
87314cd53cb4c61e7e62b0ed3fc6da94603cc507
[ "Apache-2.0" ]
null
null
null
from unittest import main from mock import Mock from tests.utests.voltha.core.test_logical_device_agent import \ test_logical_device_agent from voltha.protos.device_pb2 import Port class test_logical_device_agent_venet(test_logical_device_agent): def setUp(self): #calling the parent class setUp ...
38.657143
75
0.504065
794ba2ce1d5dffb3a5e251f92f782bc561a198b9
8,622
py
Python
src/problem3.py
brammetc/24-Exam3-201920
e28d0f6e48928b4d55da568455d757f2fe500118
[ "MIT" ]
null
null
null
src/problem3.py
brammetc/24-Exam3-201920
e28d0f6e48928b4d55da568455d757f2fe500118
[ "MIT" ]
null
null
null
src/problem3.py
brammetc/24-Exam3-201920
e28d0f6e48928b4d55da568455d757f2fe500118
[ "MIT" ]
null
null
null
""" Exam 3, problem 3. Authors: Vibha Alangar, Aaron Wilkin, David Mutchler, Dave Fisher, Matt Boutell, Amanda Stouder, their colleagues and Tanner Brammeier. January 2019. """ # DONE: 1. PUT YOUR NAME IN THE ABOVE LINE. import testing_helper import time def main(): """ Calls the TEST ...
35.481481
79
0.563906
794ba35b1f559f7983ad2a493f06b797b6f69cab
3,377
py
Python
examples/daal4py/decision_forest_classification_default_dense_batch.py
yumorozov/scikit-learn-intelex
7a39c0a0e208b49f209168b01fb50206f962175f
[ "Apache-2.0" ]
1
2021-12-24T16:53:01.000Z
2021-12-24T16:53:01.000Z
examples/daal4py/decision_forest_classification_default_dense_batch.py
yumorozov/scikit-learn-intelex
7a39c0a0e208b49f209168b01fb50206f962175f
[ "Apache-2.0" ]
null
null
null
examples/daal4py/decision_forest_classification_default_dense_batch.py
yumorozov/scikit-learn-intelex
7a39c0a0e208b49f209168b01fb50206f962175f
[ "Apache-2.0" ]
null
null
null
#=============================================================================== # Copyright 2014 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.o...
37.10989
81
0.671898
794ba5f1d193fb6a562353e2429e727af42f24af
1,270
py
Python
util/io_util.py
CxrImagePreProcessing/CheXaid
d815afbdfdea63cd3aa9151f1f8a1093b7c02412
[ "MIT" ]
8
2020-03-04T22:16:06.000Z
2022-02-13T20:04:49.000Z
util/io_util.py
CxrImagePreProcessing/CheXaid
d815afbdfdea63cd3aa9151f1f8a1093b7c02412
[ "MIT" ]
2
2020-03-23T21:43:40.000Z
2020-05-06T13:17:39.000Z
util/io_util.py
CxrImagePreProcessing/CheXaid
d815afbdfdea63cd3aa9151f1f8a1093b7c02412
[ "MIT" ]
5
2020-08-01T01:07:36.000Z
2021-12-14T17:28:09.000Z
import argparse from sys import stderr def args_to_list(csv, allow_empty, arg_type=int, allow_negative=True): """Convert comma-separated arguments to a list. Args: csv: Comma-separated list of arguments as a string. allow_empty: If True, allow the list to be empty. Otherwise return None inste...
28.222222
102
0.630709
794ba622663cd57a0b2963c494f038eb05c9a606
2,017
py
Python
venv/Lib/site-packages/pyrogram/raw/types/input_privacy_value_allow_all.py
iamgeorgiy/heroku-userbot
5a92417d16f8ead949d88cb38da213fc2da5d3a4
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/input_privacy_value_allow_all.py
iamgeorgiy/heroku-userbot
5a92417d16f8ead949d88cb38da213fc2da5d3a4
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/input_privacy_value_allow_all.py
iamgeorgiy/heroku-userbot
5a92417d16f8ead949d88cb38da213fc2da5d3a4
[ "Apache-2.0" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2020 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
31.515625
103
0.637581
794ba649899fae402387ab592e6fa3cda8cfca62
3,381
py
Python
ESMF/src/addon/ESMPy/examples/locstream_grid_regrid.py
joeylamcy/gchp
0e1676300fc91000ecb43539cabf1f342d718fb3
[ "NCSA", "Apache-2.0", "MIT" ]
1
2018-07-05T16:48:58.000Z
2018-07-05T16:48:58.000Z
ESMF/src/addon/ESMPy/examples/locstream_grid_regrid.py
joeylamcy/gchp
0e1676300fc91000ecb43539cabf1f342d718fb3
[ "NCSA", "Apache-2.0", "MIT" ]
1
2022-03-04T16:12:02.000Z
2022-03-04T16:12:02.000Z
ESMF/src/addon/ESMPy/examples/locstream_grid_regrid.py
joeylamcy/gchp
0e1676300fc91000ecb43539cabf1f342d718fb3
[ "NCSA", "Apache-2.0", "MIT" ]
null
null
null
# This example demonstrates how to regrid between a LocStream and a Grid. # The data files can be retrieved from the ESMF data repository by uncommenting the # following block of code: # # import os # DD = os.path.join(os.getcwd(), "examples/data") # if not os.path.isdir(DD): # os.makedirs(DD) # from ESMF.util.cach...
33.81
111
0.729666
794ba66dfc96bb5b12403590690562f4dd0e65ee
24,831
py
Python
rdr_service/lib_fhir/fhirclient_1_0_6/models/valueset.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
39
2017-10-13T19:16:27.000Z
2021-09-24T16:58:21.000Z
fhirclient/models/valueset.py
NematiLab/Streaming-Sepsis-Prediction-System-for-Intensive-Care-Units
fb5ad260fb8d264d85aea9e6c895d1700eea4d11
[ "Apache-2.0" ]
312
2017-09-08T15:42:13.000Z
2022-03-23T18:21:40.000Z
rdr_service/lib_fhir/fhirclient_1_0_6/models/valueset.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
19
2017-09-15T13:58:00.000Z
2022-02-07T18:33:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 1.0.2.7202 (http://hl7.org/fhir/StructureDefinition/ValueSet) on 2016-06-23. # 2016, SMART Health IT. from . import domainresource class ValueSet(domainresource.DomainResource): """ A set of codes drawn from one or more code systems. ...
37.737082
100
0.603278
794ba6b6de142250827338e7e52d2155b49a9b50
551
py
Python
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/payment_payumoney/__manifest__.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
1
2019-12-19T01:53:13.000Z
2019-12-19T01:53:13.000Z
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/payment_payumoney/__manifest__.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/payment_payumoney/__manifest__.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'PayuMoney Payment Acquirer', 'category': 'Payment Acquirer', 'summary': 'Payment Acquirer: PayuMoney Implementation', 'description': """ PayuMoney Payment Acquirer for India. PayUmoney...
27.55
74
0.646098
794ba7b196c510cffc7a15136925ecc6104fed5b
2,051
py
Python
rack/paths.py
tkaneko0204/rack
2b459e0c870ad2cb936b458e7597bd6ebb9f031e
[ "Apache-2.0" ]
null
null
null
rack/paths.py
tkaneko0204/rack
2b459e0c870ad2cb936b458e7597bd6ebb9f031e
[ "Apache-2.0" ]
null
null
null
rack/paths.py
tkaneko0204/rack
2b459e0c870ad2cb936b458e7597bd6ebb9f031e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 ITOCHU Techno-Solutions Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
31.553846
78
0.658703
794ba86c86c412b9d3c52178607f8b63dd5d1a4b
35,835
py
Python
src/k8s-extension/azext_k8s_extension/vendored_sdks/operations/_extensions_operations.py
ravithanneeru/azure-cli-extensions
e0de87f3563ae39525370e9912589aac33e7bded
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/k8s-extension/azext_k8s_extension/vendored_sdks/operations/_extensions_operations.py
ravithanneeru/azure-cli-extensions
e0de87f3563ae39525370e9912589aac33e7bded
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/k8s-extension/azext_k8s_extension/vendored_sdks/operations/_extensions_operations.py
ravithanneeru/azure-cli-extensions
e0de87f3563ae39525370e9912589aac33e7bded
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# 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. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
54.460486
253
0.672248
794ba8955ef9ebb51572be3471879e3708bcefdc
1,888
py
Python
setup.py
ryukinix/rentalcar
fbcba57ae87ed9252e1ea6cb4ad401c176785e5b
[ "Apache-2.0" ]
4
2017-12-13T18:02:54.000Z
2021-10-29T20:19:00.000Z
setup.py
ryukinix/rentalcar
fbcba57ae87ed9252e1ea6cb4ad401c176785e5b
[ "Apache-2.0" ]
1
2017-12-13T18:28:57.000Z
2019-01-03T05:37:20.000Z
setup.py
ryukinix/rentalcar
fbcba57ae87ed9252e1ea6cb4ad401c176785e5b
[ "Apache-2.0" ]
2
2019-05-07T20:01:09.000Z
2019-11-16T22:08:05.000Z
#!/usr/bin/env python # coding=utf-8 # # Python Script # # Copyright © Manoel Vilela # # from setuptools import setup, find_packages from codecs import open # To use a consistent encoding from os import path import project here = path.abspath(path.dirname(__file__)) readme = path.join(here, 'README.md') with op...
29.046154
82
0.623411
794ba94b070335497086b6c31e7aade02d9f77fb
1,502
py
Python
setup.py
afatt/effmass
dac39d404f2417ba0618c8b2183363698ffee69b
[ "MIT" ]
1
2021-09-02T03:20:31.000Z
2021-09-02T03:20:31.000Z
setup.py
afatt/effmass
dac39d404f2417ba0618c8b2183363698ffee69b
[ "MIT" ]
null
null
null
setup.py
afatt/effmass
dac39d404f2417ba0618c8b2183363698ffee69b
[ "MIT" ]
1
2021-11-29T07:48:16.000Z
2021-11-29T07:48:16.000Z
import os from effmass import __version__ try: from setuptools import setup except ImportError: from distutils.core import setup try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except ImportError: long_description = open('README.md').read() config = { 'description': 'An effectiv...
27.309091
91
0.553262
794baa155dfb849b538cb74f838d14d40d2ba0a4
2,442
py
Python
DRIVE/perception/infers/segmention_infer.py
rohit9934/DRIVE-Digital-Retinal-Images-for-Vessel-Extraction
8ed44675500bdd60b2ba58cdac79b6902fbe4f99
[ "MIT" ]
24
2019-07-18T02:12:54.000Z
2022-01-20T14:49:31.000Z
DRIVE/perception/infers/segmention_infer.py
LeadingIndiaAI/Digital-Retinal-Images-for-Vessel-Extraction
8ed44675500bdd60b2ba58cdac79b6902fbe4f99
[ "MIT" ]
2
2019-11-14T08:57:49.000Z
2021-05-16T00:28:20.000Z
DRIVE/perception/infers/segmention_infer.py
Arvin117/DRIVE-Digital-Retinal-Images-for-Vessel-Extraction
8ed44675500bdd60b2ba58cdac79b6902fbe4f99
[ "MIT" ]
5
2020-04-28T16:18:45.000Z
2022-03-21T01:35:37.000Z
# -- coding: utf-8 -- """ Copyright (c) 2018. All rights reserved. Created by Rohit Sharma, Abdul Mugeesh and Kanishk Nama.. """ #The purpose of the Segmentation Infer file is to help testing process and show How to predict. #Importing all libraries... import glob,cv2,numpy as np import matplotlib.pyplot as plt fro...
38.761905
125
0.765356
794baa9cbf2c40184c88765f9fe39e838d5e15ba
76
py
Python
elastipy/plot/__init__.py
defgsus/elastipy
c1144ab39fa70571ba0e02ccf41d380a8a1bd730
[ "Apache-2.0" ]
1
2021-02-17T17:50:28.000Z
2021-02-17T17:50:28.000Z
elastipy/plot/__init__.py
defgsus/elastipy
c1144ab39fa70571ba0e02ccf41d380a8a1bd730
[ "Apache-2.0" ]
2
2021-03-29T02:09:41.000Z
2022-03-01T20:09:48.000Z
elastipy/plot/__init__.py
netzkolchose/elastipy
c1144ab39fa70571ba0e02ccf41d380a8a1bd730
[ "Apache-2.0" ]
null
null
null
from .backend import get_backend, set_backend from .heatmap_ import heatmap
25.333333
45
0.842105
794bab652e939ea003869cbbd2334c56bc026ea6
2,320
py
Python
academicstoday_project/student/tests/test_announcements.py
LeeDoona/EasyGrading
8a3b7a95e328a5b710bd98934dcde7556731bd72
[ "Apache-2.0" ]
146
2017-02-04T11:14:50.000Z
2021-12-30T20:54:50.000Z
academicstoday_project/student/tests/test_announcements.py
LeeDoona/EasyGrading
8a3b7a95e328a5b710bd98934dcde7556731bd72
[ "Apache-2.0" ]
139
2015-02-21T21:40:34.000Z
2016-02-20T13:34:25.000Z
academicstoday_project/student/tests/test_announcements.py
topsit143/acda
c2a20ffd1dcf8668d1fe401d114d32d9e686f1fd
[ "Apache-2.0" ]
88
2017-01-20T20:32:44.000Z
2022-02-07T05:32:44.000Z
from django.core.urlresolvers import resolve from django.http import HttpRequest from django.http import QueryDict from django.test import TestCase from django.test import Client from django.contrib.auth.models import User from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators i...
32.222222
75
0.676293
794babb6067cbf2502ef6a75292a3ae8d3bd4cce
839
py
Python
Repositories/Raspbian/cv07.py
Dong-gi/Dong-gi.github.io
2c3d083db72e06032a1daf528ee9b175219aa554
[ "MIT" ]
5
2018-02-27T16:19:35.000Z
2020-08-25T13:09:49.000Z
Repositories/Raspbian/cv07.py
Dong-gi/Dong-gi.github.io
2c3d083db72e06032a1daf528ee9b175219aa554
[ "MIT" ]
25
2019-03-28T00:36:04.000Z
2021-08-12T01:42:41.000Z
Repositories/Raspbian/cv07.py
Dong-gi/Dong-gi.github.io
2c3d083db72e06032a1daf528ee9b175219aa554
[ "MIT" ]
1
2021-11-28T11:28:29.000Z
2021-11-28T11:28:29.000Z
import numpy as np import cv2 img1 = cv2.imread('start05.jpg') img2 = cv2.imread('start05-2.jpg') print(cv2.add(np.uint8([250]), np.uint8([20]))) # dst = a*img1 + b*img2 + c cv2.imshow('Image Blending', cv2.addWeighted(img1, 0.3, img2, 0.7, 0)) cv2.waitKey(0) # put logo on top-left logo = cv2.imread('logo.jpg', cv2...
23.971429
70
0.702026
794babbf29d54296e11c9414429982436ffba2d2
5,886
py
Python
pysurf/logger.py
MFSJMenger/pysurf
99c6a94d4cb5046f16a0961b907061d989ffb6dc
[ "Apache-2.0" ]
7
2020-10-28T13:46:08.000Z
2021-05-27T06:41:56.000Z
pysurf/logger.py
MFSJMenger/pysurf
99c6a94d4cb5046f16a0961b907061d989ffb6dc
[ "Apache-2.0" ]
2
2020-10-27T19:15:12.000Z
2020-10-27T19:15:25.000Z
pysurf/logger.py
MFSJMenger/pysurf
99c6a94d4cb5046f16a0961b907061d989ffb6dc
[ "Apache-2.0" ]
2
2021-04-15T05:54:30.000Z
2022-02-08T00:10:10.000Z
from datetime import datetime from functools import partial # from .utils.context_utils import DoOnException from .utils.context_utils import ExitOnException from .utils.context_utils import BaseContextDecorator __all__ = ["get_logger", "Logger"] def get_logger(filename, name, sublogger=None, mode="w"): """init...
33.443182
103
0.528203
794babd62cb65edb618f1cad43fa04ab371d9b97
20,806
py
Python
tests/test_attr.py
simonyangme/picamera
cfd637f4aeede4b50698bb6963b99d0d9f0fe4c1
[ "BSD-3-Clause" ]
null
null
null
tests/test_attr.py
simonyangme/picamera
cfd637f4aeede4b50698bb6963b99d0d9f0fe4c1
[ "BSD-3-Clause" ]
null
null
null
tests/test_attr.py
simonyangme/picamera
cfd637f4aeede4b50698bb6963b99d0d9f0fe4c1
[ "BSD-3-Clause" ]
1
2020-04-21T02:40:37.000Z
2020-04-21T02:40:37.000Z
# vim: set et sw=4 sts=4 fileencoding=utf-8: # # Python camera library for the Rasperry-Pi camera module # Copyright (c) 2013-2017 Dave Jones <dave@waveform.org.uk> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # ...
38.601113
92
0.640729
794bac09d3f97d0ae5537c27ae5a3e0ce8ead475
137
py
Python
fastwlk/utils/validation.py
pjhartout/fastwlk
deb78923c9a8450099c26bac09da94ae87892d0d
[ "BSD-3-Clause" ]
null
null
null
fastwlk/utils/validation.py
pjhartout/fastwlk
deb78923c9a8450099c26bac09da94ae87892d0d
[ "BSD-3-Clause" ]
7
2022-03-21T08:46:44.000Z
2022-03-25T16:20:48.000Z
fastwlk/utils/validation.py
pjhartout/fastwlk
deb78923c9a8450099c26bac09da94ae87892d0d
[ "BSD-3-Clause" ]
null
null
null
from typing import Iterable, Union def check_wl_input(X: Iterable) -> Union[Iterable, None]: """TODO: implement checks""" pass
19.571429
57
0.693431
794bac1a447b859444eb47e25706feb4035573f7
5,773
py
Python
flink-python/pyflink/table/table_result.py
markcho/flink
600ace21aad941367db82539dce993c444c0a1d7
[ "Apache-2.0" ]
2
2020-06-17T06:10:12.000Z
2020-12-11T15:12:14.000Z
flink-python/pyflink/table/table_result.py
markcho/flink
600ace21aad941367db82539dce993c444c0a1d7
[ "Apache-2.0" ]
2
2021-03-30T11:03:02.000Z
2021-12-14T20:58:33.000Z
flink-python/pyflink/table/table_result.py
markcho/flink
600ace21aad941367db82539dce993c444c0a1d7
[ "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...
44.751938
98
0.440499
794bac95dae681cbc11af1aac24e7175b4e3bff0
1,778
py
Python
pybpodgui_plugin/models/project/project_uibusy.py
ckarageorgkaneen/pybpod-gui-plugin
ef9ca8a7094b9d225dde8e3db58d94ae084aaac5
[ "MIT" ]
null
null
null
pybpodgui_plugin/models/project/project_uibusy.py
ckarageorgkaneen/pybpod-gui-plugin
ef9ca8a7094b9d225dde8e3db58d94ae084aaac5
[ "MIT" ]
null
null
null
pybpodgui_plugin/models/project/project_uibusy.py
ckarageorgkaneen/pybpod-gui-plugin
ef9ca8a7094b9d225dde8e3db58d94ae084aaac5
[ "MIT" ]
1
2021-02-22T21:32:03.000Z
2021-02-22T21:32:03.000Z
# !/usr/bin/python3 # -*- coding: utf-8 -*- import logging from confapp import conf from AnyQt.QtGui import QIcon from pybpodgui_plugin.models.board import Board from pybpodgui_plugin.models.project.project_dockwindow import ProjectDockWindow logger = logging.getLogger(__name__) class ProjectUIBusy(ProjectDockWind...
30.135593
80
0.651294
794bae6bbf231a94145647ff288700c43055c656
1,978
py
Python
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/raw/GL/INGR/color_clamp.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/raw/GL/INGR/color_clamp.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/raw/GL/INGR/color_clamp.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
'''OpenGL extension INGR.color_clamp Overview (from the spec) Various RGBA color space conversions require clamping to values in a more constrained range than [0, 1]. This extension allows the definition of independent color clamp values for each of the four color components as part of the Final Conversion in t...
47.095238
80
0.813448
794bb1375c02a620c3a7dbda974eb9d604239969
3,426
py
Python
nipyapi/nifi/models/funnels_entity.py
iMajna/nipyapi
5480af8fe8c6b470249837835cb1a067abb6678e
[ "Apache-2.0" ]
null
null
null
nipyapi/nifi/models/funnels_entity.py
iMajna/nipyapi
5480af8fe8c6b470249837835cb1a067abb6678e
[ "Apache-2.0" ]
1
2020-03-16T10:02:46.000Z
2020-03-16T13:37:42.000Z
nipyapi/nifi/models/funnels_entity.py
iMajna/nipyapi
5480af8fe8c6b470249837835cb1a067abb6678e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ NiFi Rest Api The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ...
27.629032
479
0.539988
794bb21dd784cf0421f3152d2dc3782c2e4946bb
107,104
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_07_01/operations/_network_watchers_operations.py
praveenkuttappan/azure-sdk-for-python
4b79413667b7539750a6c7dde15737013a3d4bd5
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_07_01/operations/_network_watchers_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_07_01/operations/_network_watchers_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# 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. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
53.074331
250
0.679526
794bb2c40e5551d7b1820d6101b8f9aaa877dd5f
7,518
py
Python
src/monitoring/notifications/notifier.py
gkovacs81/argus_server
97ebf705ed3e61a69bd561faf495e2c19bda510d
[ "MIT" ]
null
null
null
src/monitoring/notifications/notifier.py
gkovacs81/argus_server
97ebf705ed3e61a69bd561faf495e2c19bda510d
[ "MIT" ]
3
2021-06-02T04:07:35.000Z
2021-12-27T20:21:46.000Z
src/monitoring/notifications/notifier.py
gkovacs81/argus_server
97ebf705ed3e61a69bd561faf495e2c19bda510d
[ "MIT" ]
null
null
null
import json import logging import os import smtplib from queue import Empty, Queue from smtplib import SMTPException from threading import Thread from time import sleep from models import Option from monitoring.broadcast import Broadcaster from monitoring.constants import LOG_NOTIFIER, MONITOR_STOP, MONITOR_UPDATE_CON...
33.864865
118
0.58606
794bb30cdaf3231eaa3b6ffc815950532b159867
8,474
py
Python
shapely/affinity.py
gisjedi/Shapely
2555c8ba80cf275783df8a927a19bef2c8283206
[ "BSD-3-Clause" ]
1
2015-04-29T18:09:02.000Z
2015-04-29T18:09:02.000Z
shapely/affinity.py
gisjedi/Shapely
2555c8ba80cf275783df8a927a19bef2c8283206
[ "BSD-3-Clause" ]
null
null
null
shapely/affinity.py
gisjedi/Shapely
2555c8ba80cf275783df8a927a19bef2c8283206
[ "BSD-3-Clause" ]
null
null
null
"""Affine transforms, both in general and specific, named transforms.""" from math import sin, cos, tan, pi __all__ = ['affine_transform', 'rotate', 'scale', 'skew', 'translate'] def affine_transform(geom, matrix): """Returns a transformed geometry using an affine transformation matrix. The coefficient mat...
33.101563
78
0.547439
794bb30ef46251f70b96a4dc008b4b2ba2c63fb8
6,875
py
Python
codebase/train.py
vishalbelsare/AmortizedCausalDiscovery
eaea1e4be3583b896bd9c2653e87869b302dd7c4
[ "MIT" ]
null
null
null
codebase/train.py
vishalbelsare/AmortizedCausalDiscovery
eaea1e4be3583b896bd9c2653e87869b302dd7c4
[ "MIT" ]
null
null
null
codebase/train.py
vishalbelsare/AmortizedCausalDiscovery
eaea1e4be3583b896bd9c2653e87869b302dd7c4
[ "MIT" ]
null
null
null
from __future__ import division from __future__ import print_function from collections import defaultdict import time import numpy as np import torch from model.modules import * from utils import arg_parser, logger, data_loader, forward_pass_and_eval from model import utils, model_loader def train(): best_val_...
27.721774
87
0.574836
794bb351e234495c2fa7d594ae3aa09e6a3ae9cc
575
py
Python
python-while/desafio2.py
MaylaAlves/phyton_1
520a0489366df33c8cc233f9487f93f0b305c69f
[ "MIT" ]
null
null
null
python-while/desafio2.py
MaylaAlves/phyton_1
520a0489366df33c8cc233f9487f93f0b305c69f
[ "MIT" ]
null
null
null
python-while/desafio2.py
MaylaAlves/phyton_1
520a0489366df33c8cc233f9487f93f0b305c69f
[ "MIT" ]
null
null
null
import random valor = random.randint(1,10) contador = 0 chute = 0 print('Chute um numero entre 1 e 10') while chute != valor: contador+=1 chute = input (f'Entre com um chute #{contador}: ') if chute.isnumeric(): chute = int(chute) else: print('Somente números, por favor!') cont...
23.958333
79
0.627826
794bb41551132b6a6c58319f0cf295db30cc9c45
177
py
Python
SimTracker/TrackerMaterialAnalysis/python/trackingMaterialAnalyser_ForHGCalPhaseII_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
SimTracker/TrackerMaterialAnalysis/python/trackingMaterialAnalyser_ForHGCalPhaseII_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
SimTracker/TrackerMaterialAnalysis/python/trackingMaterialAnalyser_ForHGCalPhaseII_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # Analyze and plot the tracking material from SimTracker.TrackerMaterialAnalysis.trackingMaterialAnalyser_ForHGCalPhaseII_cfi import *
35.4
93
0.875706
794bb4337eef7c7ffa4a2181fd12fcbaf2a49cb5
14,666
py
Python
cinder/tests/unit/volume/drivers/netapp/dataontap/test_nfs_base.py
potsmaster/cinder
275c2acdfb4282b0ec0314c9875b759958c093f8
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/volume/drivers/netapp/dataontap/test_nfs_base.py
potsmaster/cinder
275c2acdfb4282b0ec0314c9875b759958c093f8
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/volume/drivers/netapp/dataontap/test_nfs_base.py
potsmaster/cinder
275c2acdfb4282b0ec0314c9875b759958c093f8
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 Andrew Kerr. All rights reserved. # Copyright (c) 2015 Tom Barron. All rights reserved. # 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 ...
41.429379
79
0.676326
794bb5a4a32801e59a0b29705dcf4a8e73d795df
10,257
py
Python
src/api/dataflow/batch/views/debug_views.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
84
2021-06-30T06:20:23.000Z
2022-03-22T03:05:49.000Z
src/api/dataflow/batch/views/debug_views.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
7
2021-06-30T06:21:16.000Z
2022-03-29T07:36:13.000Z
src/api/dataflow/batch/views/debug_views.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
40
2021-06-30T06:21:26.000Z
2022-03-29T12:42:26.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ------------------------------------------...
36.37234
111
0.542654
794bb68ea588aa83cbd56880c05eed3da723b0ea
48,199
py
Python
src/beanmachine/ppl/compiler/special_function_caller.py
facebookresearch/beanmachine
225114d9964b90c3a49adddc4387b4a47d1b4262
[ "MIT" ]
177
2021-12-12T14:19:05.000Z
2022-03-24T05:48:10.000Z
src/beanmachine/ppl/compiler/special_function_caller.py
facebookresearch/beanmachine
225114d9964b90c3a49adddc4387b4a47d1b4262
[ "MIT" ]
171
2021-12-11T06:12:05.000Z
2022-03-31T20:26:29.000Z
src/beanmachine/ppl/compiler/special_function_caller.py
facebookresearch/beanmachine
225114d9964b90c3a49adddc4387b4a47d1b4262
[ "MIT" ]
31
2021-12-11T06:27:19.000Z
2022-03-25T13:31:56.000Z
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import inspect import math import operator from types import MethodType from typing import Any, Callable, Dict, List, NoReturn, Optional, S...
38.466879
91
0.640324
794bb6f43886e81a1ccff675bbab83fd20262f6f
1,699
py
Python
app/core/migrations/0001_initial.py
locnt1195/recipe-app-api
2bf23bf0c9693d450ea3318132c2d07875ba82d7
[ "MIT" ]
1
2021-01-15T09:51:19.000Z
2021-01-15T09:51:19.000Z
app/core/migrations/0001_initial.py
locnt1195/recipe-app-api
2bf23bf0c9693d450ea3318132c2d07875ba82d7
[ "MIT" ]
7
2021-01-15T09:51:47.000Z
2021-09-22T19:27:09.000Z
app/core/migrations/0001_initial.py
locnt1195/recipe-app-api
2bf23bf0c9693d450ea3318132c2d07875ba82d7
[ "MIT" ]
null
null
null
# Generated by Django 3.0 on 2020-07-17 09:18 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fie...
49.970588
266
0.637434
794bb7f9982f79c18424d9e8c922c3f1bacc64d2
2,186
py
Python
app.py
Jigys123/OCE-heroku
3abd7a6ece0ba03553abfcc9e5422afea94baef1
[ "BSD-3-Clause" ]
8
2017-12-11T12:18:30.000Z
2020-08-01T18:41:41.000Z
app.py
Jigys123/OCE-heroku
3abd7a6ece0ba03553abfcc9e5422afea94baef1
[ "BSD-3-Clause" ]
null
null
null
app.py
Jigys123/OCE-heroku
3abd7a6ece0ba03553abfcc9e5422afea94baef1
[ "BSD-3-Clause" ]
2
2019-07-22T23:44:12.000Z
2019-10-05T15:57:29.000Z
import os,cv2,pytesseract from flask import Flask, render_template, request,jsonify from PIL import Image pytesseract.pytesseract.tesseract_cmd = 'C:\Program Files (x86)\Tesseract-OCR\\tesseract' app = Flask(__name__) UPLOAD_FOLDER = os.path.basename('.') app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER @app.route('/')...
34.15625
166
0.643184