hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
0e7351729964b02b462566b09dcddbc2209fa1c8
3,561
py
Python
levelheap-micha-4d/levels/gamma.py
triffid/kiki
b64b8524063c149a5cc9118f48d80afec1d8a942
[ "Unlicense" ]
2
2020-01-04T23:44:10.000Z
2020-07-12T17:10:09.000Z
levelheap-micha-4d/levels/gamma.py
triffid/kiki
b64b8524063c149a5cc9118f48d80afec1d8a942
[ "Unlicense" ]
null
null
null
levelheap-micha-4d/levels/gamma.py
triffid/kiki
b64b8524063c149a5cc9118f48d80afec1d8a942
[ "Unlicense" ]
1
2022-03-16T05:43:33.000Z
2022-03-16T05:43:33.000Z
# level design by Michael Abel schemes=[test_scheme, tron_scheme,candy_scheme, default_scheme, green_scheme, yellow_scheme, blue_scheme, red_scheme, metal_scheme, bronze_scheme] # ................................................................................................................. def func_gamma():...
42.392857
115
0.511092
0
0
0
0
0
0
0
0
681
0.191238
0e7360046447f24e5c5fb81df9b707bff42c305e
13,241
py
Python
feature_importance/feature_attribution.py
UMCUGenetics/cancer_type_classification_from_sparse_SNV_data
03a768d0f999b9d3ab544909c1ca534c85d7cd17
[ "Apache-2.0" ]
null
null
null
feature_importance/feature_attribution.py
UMCUGenetics/cancer_type_classification_from_sparse_SNV_data
03a768d0f999b9d3ab544909c1ca534c85d7cd17
[ "Apache-2.0" ]
null
null
null
feature_importance/feature_attribution.py
UMCUGenetics/cancer_type_classification_from_sparse_SNV_data
03a768d0f999b9d3ab544909c1ca534c85d7cd17
[ "Apache-2.0" ]
null
null
null
from __future__ import division import os import sys import numpy as np import pandas as pd import tensorflow as tf from keras import backend as K from keras.models import load_model def freeze_session(session, keep_var_names=None, output_names=None, clear_devices=True): """ Freezes the state of a session i...
46.953901
118
0.701458
0
0
0
0
0
0
0
0
6,371
0.481157
0e736be5fe9338ed998f699968b1944d73ad1c08
2,405
py
Python
rolldecayestimators/tests/test_polynom_estimator.py
martinlarsalbert/rolldecay-estimators
4d70da6058720ecbcecba3ed94c40f287a115e05
[ "BSD-3-Clause" ]
1
2021-05-21T06:05:20.000Z
2021-05-21T06:05:20.000Z
rolldecayestimators/tests/test_polynom_estimator.py
martinlarsalbert/rolldecay-estimators
4d70da6058720ecbcecba3ed94c40f287a115e05
[ "BSD-3-Clause" ]
null
null
null
rolldecayestimators/tests/test_polynom_estimator.py
martinlarsalbert/rolldecay-estimators
4d70da6058720ecbcecba3ed94c40f287a115e05
[ "BSD-3-Clause" ]
null
null
null
import pytest import pandas as pd import os.path from sklearn.datasets import make_regression from sklearn.pipeline import Pipeline from sklearn.feature_selection import SelectKBest from sklearn.linear_model import LinearRegression from sklearn.preprocessing import PolynomialFeatures from sklearn.feature_selection impo...
23.125
100
0.686071
0
0
968
0.402495
1,016
0.422453
0
0
235
0.097713
0e75465f62c387ef9aa64e8ae316dc9423908eba
2,151
py
Python
jzl/utils/wrappers.py
elijahc/jzlsdk
fc04a60383e6e71d50d27e8d04dff96f18ee7b06
[ "MIT" ]
null
null
null
jzl/utils/wrappers.py
elijahc/jzlsdk
fc04a60383e6e71d50d27e8d04dff96f18ee7b06
[ "MIT" ]
7
2019-12-16T20:48:16.000Z
2022-02-09T23:31:19.000Z
jzl/utils/wrappers.py
elijahc/jzl
fc04a60383e6e71d50d27e8d04dff96f18ee7b06
[ "MIT" ]
null
null
null
import scipy.io as sio import numpy as np class MatWrapper(object): def __init__(self,mat_file): self.mat_fp = mat_file self.data = None class NeuroSurgMat(MatWrapper): def __init__(self, mat_file): self.mat_fp = mat_file self.data = None self._clfp = None se...
33.609375
91
0.566713
2,103
0.977685
0
0
1,590
0.739191
0
0
272
0.126453
0e75958c82fc2714586320be787064c237d82eab
123
py
Python
condition/leap year or not using conditional operator.py
PraghadeshManivannan/Python
7a42269c5f8cfd9178f1ed39ffc2afea1dd6c5aa
[ "MIT" ]
null
null
null
condition/leap year or not using conditional operator.py
PraghadeshManivannan/Python
7a42269c5f8cfd9178f1ed39ffc2afea1dd6c5aa
[ "MIT" ]
null
null
null
condition/leap year or not using conditional operator.py
PraghadeshManivannan/Python
7a42269c5f8cfd9178f1ed39ffc2afea1dd6c5aa
[ "MIT" ]
null
null
null
a = int(input("Enter the year:")) print(a,"is leap year") if a%4 == 0 and a%400 == 0 else print(a,"is not a leap year")
41
87
0.601626
0
0
0
0
0
0
0
0
51
0.414634
0e762537c53ad43de3d76c0baf22e9a8eda7f44a
245
py
Python
Aula_8/Aula8.py
Mateus-Silva11/AulasPython
d34dc4f62ade438e68b0a80e0baac4d6ec0d378e
[ "MIT" ]
null
null
null
Aula_8/Aula8.py
Mateus-Silva11/AulasPython
d34dc4f62ade438e68b0a80e0baac4d6ec0d378e
[ "MIT" ]
null
null
null
Aula_8/Aula8.py
Mateus-Silva11/AulasPython
d34dc4f62ade438e68b0a80e0baac4d6ec0d378e
[ "MIT" ]
null
null
null
#Tuplas numeros = [1,2,4,5,6,7,8,9] #lista usuario = {'Nome':'Mateus' , 'senha':123456789 } #dicionario pessoa = ('Mateus' , 'Alves' , 16 , 14 , 90) #tupla print(numeros) print(usuario) print(pessoa) numeros[1] = 8 usuario['senha'] = 4545343
18.846154
60
0.644898
0
0
0
0
0
0
0
0
73
0.297959
0e771285f72212fd64fb27aaa4e22a0fd1363127
7,242
py
Python
image-generation/variational-auto-encoder/vq-vae/models/vq_vae.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
228
2017-11-20T06:05:56.000Z
2022-03-23T12:40:05.000Z
image-generation/variational-auto-encoder/vq-vae/models/vq_vae.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
36
2018-01-11T23:26:20.000Z
2022-03-12T00:53:38.000Z
image-generation/variational-auto-encoder/vq-vae/models/vq_vae.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
76
2017-11-22T22:00:00.000Z
2022-03-28T05:58:57.000Z
# Copyright 2019,2020,2021 Sony Corporation. # Copyright 2021 Sony Group Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
42.350877
185
0.611019
6,441
0.889395
0
0
0
0
0
0
938
0.129522
0e78b39fa7d281be1d08a36cc35b24cc2b0c544b
3,464
py
Python
src/pyherc/test/builders/level.py
tuturto/pyherc
4e7c72a4d80d335f7d3c48cecac96cd7105acac4
[ "MIT" ]
25
2015-07-21T12:40:42.000Z
2021-09-23T09:00:45.000Z
src/pyherc/test/builders/level.py
tuturto/pyherc
4e7c72a4d80d335f7d3c48cecac96cd7105acac4
[ "MIT" ]
65
2015-02-15T19:42:19.000Z
2018-01-03T10:22:35.000Z
src/pyherc/test/builders/level.py
tuturto/pyherc
4e7c72a4d80d335f7d3c48cecac96cd7105acac4
[ "MIT" ]
3
2017-06-15T13:07:49.000Z
2019-04-15T02:18:39.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2010-2017 Tuukka Turto # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy,...
29.109244
79
0.634815
2,223
0.641744
0
0
0
0
0
0
1,614
0.465935
0e7a071ddbe4675462eb93a7095f9190e337de5c
22,595
py
Python
magma/backend/coreir/coreir_transformer.py
leonardt/magma
d3e8c9500ec3b167df8ed067e0c0305781c94ab6
[ "MIT" ]
167
2017-10-08T00:59:22.000Z
2022-02-08T00:14:39.000Z
magma/backend/coreir/coreir_transformer.py
leonardt/magma
d3e8c9500ec3b167df8ed067e0c0305781c94ab6
[ "MIT" ]
719
2017-08-29T17:58:28.000Z
2022-03-31T23:39:18.000Z
magma/backend/coreir/coreir_transformer.py
leonardt/magma
d3e8c9500ec3b167df8ed067e0c0305781c94ab6
[ "MIT" ]
14
2017-09-01T03:25:16.000Z
2021-11-05T13:30:24.000Z
from abc import ABC, abstractmethod from copy import copy import json import logging import os import coreir as pycoreir from magma.digital import Digital from magma.array import Array from magma.bits import Bits from magma.backend.check_wiring_context import check_wiring_context from magma.backend.coreir.coreir_util...
41.534926
80
0.633105
18,961
0.839168
0
0
75
0.003319
0
0
2,466
0.109139
0e7cf013eb13eaa544422d0897234c6664f7cce5
5,371
py
Python
src/encoded/tests/test_static_page.py
4dn-dcic/fourfron
29601961706d2371b982e57ae085e8ebec3b2714
[ "MIT" ]
11
2016-11-23T02:33:13.000Z
2021-06-18T14:21:20.000Z
src/encoded/tests/test_static_page.py
4dn-dcic/fourfron
29601961706d2371b982e57ae085e8ebec3b2714
[ "MIT" ]
1,159
2016-11-21T15:40:24.000Z
2022-03-29T03:18:38.000Z
src/encoded/tests/test_static_page.py
4dn-dcic/fourfron
29601961706d2371b982e57ae085e8ebec3b2714
[ "MIT" ]
5
2017-01-27T16:36:15.000Z
2019-06-14T14:39:54.000Z
import pytest import webtest from dcicutils.qa_utils import notice_pytest_fixtures from .workbook_fixtures import app_settings, app # are these needed? -kmp 12-Mar-2021 notice_pytest_fixtures(app_settings, app) pytestmark = [pytest.mark.indexing, pytest.mark.working] @pytest.fixture(scope='module') def help_page...
36.537415
225
0.661329
0
0
0
0
3,184
0.592813
0
0
1,772
0.32992
0e7d4d108567f466b35fc7926c86a921b3e00477
1,374
py
Python
api/views.py
rukbotto/reviews-django
28ff12a490d160b76ca75f5cc450fc7556996962
[ "MIT" ]
null
null
null
api/views.py
rukbotto/reviews-django
28ff12a490d160b76ca75f5cc450fc7556996962
[ "MIT" ]
null
null
null
api/views.py
rukbotto/reviews-django
28ff12a490d160b76ca75f5cc450fc7556996962
[ "MIT" ]
1
2018-09-06T18:52:33.000Z
2018-09-06T18:52:33.000Z
from django.http import Http404 from django.shortcuts import render from rest_framework import status from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framework.views import APIView from api.models import Review from api.serializers import ReviewSerializer ...
35.230769
76
0.703057
1,049
0.763464
0
0
0
0
0
0
29
0.021106
0e7dc78c76ad3448f8b2889d760c4e349ce77e58
1,429
py
Python
test/connector/exchange/altmarkets/test_altmarkets_user_stream_tracker.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
542
2021-12-17T22:34:31.000Z
2022-03-31T14:36:23.000Z
test/connector/exchange/altmarkets/test_altmarkets_user_stream_tracker.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
291
2021-12-17T20:07:53.000Z
2022-03-31T11:07:23.000Z
test/connector/exchange/altmarkets/test_altmarkets_user_stream_tracker.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
220
2021-12-17T12:41:23.000Z
2022-03-31T23:03:22.000Z
#!/usr/bin/env python import sys import asyncio import logging import unittest import conf from os.path import join, realpath from hummingbot.connector.exchange.altmarkets.altmarkets_user_stream_tracker import AltmarketsUserStreamTracker from hummingbot.connector.exchange.altmarkets.altmarkets_auth import AltmarketsA...
37.605263
111
0.773268
864
0.604619
0
0
462
0.323303
0
0
129
0.090273
0e7f4389c015b9220c6189155e2e9c20712acc78
209
py
Python
Lesson_n1/logger/simple-logger.py
LemuelPuglisi/TutoratoTap
81ce9d0f2163d18683c5aacde42b39f5a2e618a6
[ "MIT" ]
8
2022-03-22T10:12:03.000Z
2022-03-28T17:44:08.000Z
Lesson_n1/logger/simple-logger.py
LemuelPuglisi/TutoratoTap
81ce9d0f2163d18683c5aacde42b39f5a2e618a6
[ "MIT" ]
null
null
null
Lesson_n1/logger/simple-logger.py
LemuelPuglisi/TutoratoTap
81ce9d0f2163d18683c5aacde42b39f5a2e618a6
[ "MIT" ]
null
null
null
import time def log(): """ Python dummy logger example. """ t = 0 while True: print(f'time: {t} \t log sent.') t += 1 time.sleep(1) if __name__ == '__main__': log()
17.416667
40
0.492823
0
0
0
0
0
0
0
0
76
0.363636
0e80028221b4b905d8118772396dbaa3bc538fda
1,568
py
Python
appzoo/utils/streamlit_utils.py
streamlit-badge-bot/AppZoo
86547fdc5209fa137b0a6384d63e92f263c1e160
[ "MIT" ]
5
2020-11-05T12:13:45.000Z
2021-11-19T12:26:49.000Z
appzoo/utils/streamlit_utils.py
streamlit-badge-bot/AppZoo
86547fdc5209fa137b0a6384d63e92f263c1e160
[ "MIT" ]
null
null
null
appzoo/utils/streamlit_utils.py
streamlit-badge-bot/AppZoo
86547fdc5209fa137b0a6384d63e92f263c1e160
[ "MIT" ]
3
2020-11-23T23:06:34.000Z
2021-04-18T02:12:40.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Project : StreamlitApp. # @File : utils # @Time : 2020/11/3 12:17 下午 # @Author : yuanjie # @Email : yuanjie@xiaomi.com # @Software : PyCharm # @Description : https://share.streamlit.io/daniellewisdl/streamlit-cheat-sheet/app.py imp...
30.153846
96
0.612883
0
0
0
0
0
0
0
0
825
0.524809
0e810e0c87499969e85aa82e852af21b94d75db6
1,918
py
Python
examples/no_ui/huobitest.py
tienjunhsu/vnpy
be18953fbe74c408682a3ffd48e5fa93e2386284
[ "MIT" ]
null
null
null
examples/no_ui/huobitest.py
tienjunhsu/vnpy
be18953fbe74c408682a3ffd48e5fa93e2386284
[ "MIT" ]
null
null
null
examples/no_ui/huobitest.py
tienjunhsu/vnpy
be18953fbe74c408682a3ffd48e5fa93e2386284
[ "MIT" ]
null
null
null
import multiprocessing from time import sleep from datetime import datetime, time from logging import INFO from vnpy.event import EventEngine from vnpy.trader.setting import SETTINGS from vnpy.trader.engine import MainEngine from vnpy.gateway.hbdm import HbdmGateway from vnpy.gateway.hbsdm import HbsdmGateway from vn...
22.045977
71
0.683003
0
0
0
0
0
0
0
0
466
0.223823
0e83097f53c2e6c4632f27c5c21128930923b98d
2,928
py
Python
scripts/has_prebuilt.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
null
null
null
scripts/has_prebuilt.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
2
2021-03-26T00:29:32.000Z
2021-04-30T21:29:33.000Z
scripts/has_prebuilt.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Script to check if the package(s) have prebuilts. The script must be run inside the chroot. The output is a json dict mapping ...
28.705882
79
0.705601
0
0
0
0
0
0
0
0
1,309
0.447063
0e83218e9a9ab8e19a0dc8d1f227f7ad4339d871
23,057
py
Python
horizon/operational_mgmt/inventory/views.py
open-power-ref-design-toolkit/opsmgr
ce9d5dc8a4038f22302a168288a6a4f6683dcd45
[ "Apache-2.0" ]
5
2017-05-10T00:32:37.000Z
2019-08-21T09:32:01.000Z
horizon/operational_mgmt/inventory/views.py
open-power-ref-design-toolkit/opsmgr
ce9d5dc8a4038f22302a168288a6a4f6683dcd45
[ "Apache-2.0" ]
null
null
null
horizon/operational_mgmt/inventory/views.py
open-power-ref-design-toolkit/opsmgr
ce9d5dc8a4038f22302a168288a6a4f6683dcd45
[ "Apache-2.0" ]
3
2017-05-10T00:32:40.000Z
2018-10-16T19:18:18.000Z
# Copyright 2016, IBM US, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
42.856877
86
0.585202
21,645
0.93876
0
0
13,068
0.566769
0
0
7,558
0.327796
0e84e4b1430330a3daa5f05da337c132509ce937
15,547
py
Python
umbra/controller.py
galgeek/umbra
1a9a39606856b30f17885518dba8436c8909e0a2
[ "Apache-2.0" ]
48
2015-01-15T15:49:07.000Z
2021-07-03T17:10:33.000Z
umbra/controller.py
galgeek/umbra
1a9a39606856b30f17885518dba8436c8909e0a2
[ "Apache-2.0" ]
21
2015-07-30T23:03:08.000Z
2020-05-24T17:17:54.000Z
umbra/controller.py
galgeek/umbra
1a9a39606856b30f17885518dba8436c8909e0a2
[ "Apache-2.0" ]
23
2015-01-16T15:22:57.000Z
2021-07-14T13:38:47.000Z
#!/usr/bin/env python # vim: set sw=4 et: import logging import json import time import threading import kombu import socket from brozzler.browser import BrowserPool, BrowsingException import brozzler import urlcanon class AmqpBrowserController: """ Consumes amqp messages representing requests to browse urls,...
43.918079
150
0.566154
15,326
0.985785
0
0
0
0
0
0
4,368
0.280955
0e85f028f93bb5f31397176f386cc2e9751681f4
465
py
Python
Alura/MLClassificacao/A2V1dados.py
EduardoMoraesRitter/Alura
c0f5e7e9807e8e1d1dc46e6b847df8a8085783a6
[ "MIT" ]
null
null
null
Alura/MLClassificacao/A2V1dados.py
EduardoMoraesRitter/Alura
c0f5e7e9807e8e1d1dc46e6b847df8a8085783a6
[ "MIT" ]
null
null
null
Alura/MLClassificacao/A2V1dados.py
EduardoMoraesRitter/Alura
c0f5e7e9807e8e1d1dc46e6b847df8a8085783a6
[ "MIT" ]
null
null
null
import csv def carregar_acessos(): dados = []#lado direito marcacoes =[]#as classificaçoes lado esquerdo #abrir o arquivo arquivo = open('acesso.csv', 'r') #leitor de csv leitor = csv.reader(arquivo) #ler cada linha for acessou_home,acessou_como_funciona,acessou_contato,comprou in le...
23.25
77
0.703226
0
0
0
0
0
0
0
0
106
0.227468
0e86920fef555c6bd8efe1dbece15e67133d5a86
2,087
py
Python
Program/DPDP/dpdp/utils/profile_utils.py
italogs/HGS-CVRP
24b3e7b8525f4b2b2de69fd162bd10bedb39e51f
[ "MIT" ]
null
null
null
Program/DPDP/dpdp/utils/profile_utils.py
italogs/HGS-CVRP
24b3e7b8525f4b2b2de69fd162bd10bedb39e51f
[ "MIT" ]
null
null
null
Program/DPDP/dpdp/utils/profile_utils.py
italogs/HGS-CVRP
24b3e7b8525f4b2b2de69fd162bd10bedb39e51f
[ "MIT" ]
1
2021-06-09T12:55:19.000Z
2021-06-09T12:55:19.000Z
import time import numpy as np import torch class Profiler: def __init__(self, dummy=False, device=None): self.events = [] self.dummy = dummy self.device = device if device != torch.device('cpu') else None self.log('start') def log(self, name): if self.dummy: ...
40.134615
119
0.597508
1,633
0.782463
0
0
0
0
0
0
349
0.167226
0e873042296e41b0fec86717d2fc6d5d5d3721f0
3,818
py
Python
reviewboard/admin/views.py
vigneshsrinivasan/reviewboard
4775130c1c1022f81edc11928e02b1b6c069f6ed
[ "MIT" ]
1
2020-02-11T07:09:14.000Z
2020-02-11T07:09:14.000Z
reviewboard/admin/views.py
vigneshsrinivasan/reviewboard
4775130c1c1022f81edc11928e02b1b6c069f6ed
[ "MIT" ]
null
null
null
reviewboard/admin/views.py
vigneshsrinivasan/reviewboard
4775130c1c1022f81edc11928e02b1b6c069f6ed
[ "MIT" ]
null
null
null
import logging from django.conf import settings from django.contrib.admin.views.decorators import staff_member_required from django.contrib.auth.models import User from django.core.cache import cache from django.http import HttpResponseRedirect from django.shortcuts import render_to_response from django.template.conte...
35.027523
80
0.701676
0
0
0
0
2,370
0.620744
0
0
895
0.234416
0e882c9b948e6d3c33c4a811397e4287f0b75a40
2,603
py
Python
src/wls_filter.py
ray075hl/singleLDR2HDR
28cff4fcd5aa9a4c37931cce96562a2bdd5375fe
[ "MIT" ]
35
2018-06-08T00:28:55.000Z
2022-03-30T13:40:10.000Z
src/wls_filter.py
ray075hl/singleLDR2HDR
28cff4fcd5aa9a4c37931cce96562a2bdd5375fe
[ "MIT" ]
null
null
null
src/wls_filter.py
ray075hl/singleLDR2HDR
28cff4fcd5aa9a4c37931cce96562a2bdd5375fe
[ "MIT" ]
16
2018-11-02T15:08:39.000Z
2022-02-14T09:58:57.000Z
""" WLS filter: Edge-preserving smoothing based onthe weightd least squares optimization framework, as described in Farbman, Fattal, Lischinski, and Szeliski, "Edge-Preserving Decompositions for Multi-Scale Tone and Detail Manipulation", ACM Transactions on Graphics, 27(3), August 2008. Given an input image IN, we see...
34.25
81
0.62159
0
0
0
0
0
0
0
0
1,322
0.507876
0e88cbb20b73b185549520afd3dddebdd1c5d349
881
py
Python
tests/Bug1161780.py
grangier/python-soappy
41158e4afabe3af2ff414b1c4be35907bbf5dc81
[ "BSD-3-Clause" ]
1
2015-01-19T02:11:57.000Z
2015-01-19T02:11:57.000Z
tests/Bug1161780.py
grangier/python-soappy
41158e4afabe3af2ff414b1c4be35907bbf5dc81
[ "BSD-3-Clause" ]
2
2017-02-03T20:11:57.000Z
2019-09-09T19:10:49.000Z
tests/Bug1161780.py
grangier/python-soappy
41158e4afabe3af2ff414b1c4be35907bbf5dc81
[ "BSD-3-Clause" ]
3
2016-04-22T17:38:29.000Z
2019-08-13T14:38:37.000Z
#!/usr/bin/env python import sys sys.path.insert(1, "..") from SOAPpy.Errors import Error from SOAPpy.Parser import parseSOAPRPC original = """<?xml version="1.0"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:...
30.37931
132
0.725312
0
0
0
0
0
0
0
0
605
0.68672
0e8961f357932c6f57b68ab9acb081d4fe8c71fd
4,864
py
Python
catalyst/core/misc.py
tadejsv/catalyst
2553ce8fd7cecc025ad88819aea73faf8abb229b
[ "Apache-2.0" ]
206
2018-10-05T19:16:47.000Z
2019-01-19T21:10:41.000Z
catalyst/core/misc.py
tadejsv/catalyst
2553ce8fd7cecc025ad88819aea73faf8abb229b
[ "Apache-2.0" ]
20
2018-10-07T06:30:49.000Z
2019-01-17T17:26:15.000Z
catalyst/core/misc.py
tadejsv/catalyst
2553ce8fd7cecc025ad88819aea73faf8abb229b
[ "Apache-2.0" ]
22
2018-10-06T12:34:08.000Z
2019-01-10T16:00:48.000Z
from typing import Dict, List, Tuple, Union from collections import OrderedDict from functools import lru_cache import warnings from torch.utils.data import BatchSampler, DataLoader from catalyst.core.callback import ( Callback, CallbackWrapper, IBackwardCallback, ICriterionCallback, IOptimizerCal...
31.380645
81
0.668791
0
0
0
0
152
0.03125
0
0
1,658
0.340872
0e897b9b6ee11290f8bbe871a90dc748ef78c7fe
2,013
py
Python
expandimage.py
LuisLinan/helicity_fluxes
9b6f4049c819d758bca6e524a80c6d7a09e7b179
[ "MIT" ]
null
null
null
expandimage.py
LuisLinan/helicity_fluxes
9b6f4049c819d758bca6e524a80c6d7a09e7b179
[ "MIT" ]
null
null
null
expandimage.py
LuisLinan/helicity_fluxes
9b6f4049c819d758bca6e524a80c6d7a09e7b179
[ "MIT" ]
null
null
null
import numpy as np def place_mirror(im, x1, x2, y1, y2, mr): """ Place an image mr in specified locations of an image im. The edge locations in im where mr is to be placed are (x1,y1) and (x2,y2) Programmer --------- Manolis K. Georgoulis (JHU/APL, 10/12/05) """ nxa = np.zeros(2) ...
25.807692
118
0.524093
0
0
0
0
0
0
0
0
527
0.261798
0e8a4f5e382a07daf6ff75e3e2955a20dbb893fe
4,898
py
Python
python/protobufs/services/team/actions/get_teams_pb2.py
getcircle/protobuf-registry
20ad8463b7ac6e2cf279c08bcd3e953993fe9153
[ "MIT" ]
null
null
null
python/protobufs/services/team/actions/get_teams_pb2.py
getcircle/protobuf-registry
20ad8463b7ac6e2cf279c08bcd3e953993fe9153
[ "MIT" ]
null
null
null
python/protobufs/services/team/actions/get_teams_pb2.py
getcircle/protobuf-registry
20ad8463b7ac6e2cf279c08bcd3e953993fe9153
[ "MIT" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: protobufs/services/team/actions/get_teams.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as...
38.566929
519
0.780523
0
0
0
0
0
0
0
0
1,472
0.300531
0e8cf0d37b01be1452f5feb60a1354161f4516a1
795
py
Python
albumy/blueprints/user.py
puppetgc/albumy
8dce6a2f7828defa69fdb942ac38551cb81b079d
[ "MIT" ]
null
null
null
albumy/blueprints/user.py
puppetgc/albumy
8dce6a2f7828defa69fdb942ac38551cb81b079d
[ "MIT" ]
null
null
null
albumy/blueprints/user.py
puppetgc/albumy
8dce6a2f7828defa69fdb942ac38551cb81b079d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ :author: TianMing Xu (徐天明) :url: http://greyli.com :copyright: © 2021 TianMing Xu <78703671@qq.com> :license: MIT, see LICENSE for more details. """ from flask import render_template, current_app, request, Blueprint from albumy.models import User, Photo user_bp = Blueprint(...
34.565217
104
0.715723
0
0
0
0
454
0.566085
0
0
263
0.32793
0e8d1d299b98c3c9fde54963bdd473b0d3eb4f2b
187
py
Python
Tests/Aula_20.py
o-Ian/Practice-Python
1e4b2d0788e70006096a53a7cf038db3148ba4b7
[ "MIT" ]
4
2021-04-23T18:07:58.000Z
2021-05-12T11:38:14.000Z
Tests/Aula_20.py
o-Ian/Practice-Python
1e4b2d0788e70006096a53a7cf038db3148ba4b7
[ "MIT" ]
null
null
null
Tests/Aula_20.py
o-Ian/Practice-Python
1e4b2d0788e70006096a53a7cf038db3148ba4b7
[ "MIT" ]
null
null
null
def lin(): print('-' * 35) # Principal program lin() print(' IAN STIGLIANO SILVA ') lin() lin() print(' CURSO EM VÍDEO ') lin() lin() print(' GUSTAVO GUANABARA ') lin()
12.466667
34
0.572193
0
0
0
0
0
0
0
0
97
0.515957
0e8d916a04b0ea3e2a7473717726afba28ca4c92
5,304
py
Python
transparentai/datasets/variable/variable.py
Nathanlauga/transparentai
9c21c60fe68170f46ba4455173ce80493e3b3bb5
[ "MIT" ]
7
2020-01-20T09:59:51.000Z
2021-11-06T07:10:27.000Z
transparentai/datasets/variable/variable.py
Nathanlauga/transparentai
9c21c60fe68170f46ba4455173ce80493e3b3bb5
[ "MIT" ]
8
2020-03-24T14:28:50.000Z
2020-07-31T14:55:06.000Z
transparentai/datasets/variable/variable.py
Nathanlauga/transparentai
9c21c60fe68170f46ba4455173ce80493e3b3bb5
[ "MIT" ]
null
null
null
__all__ = [ 'describe_number', 'describe_datetime', 'describe_object', 'describe' ] import pandas as pd import numpy as np from scipy import stats from transparentai import utils def describe_common(arr): """Common descriptive statistics about an array. Returned statistics: - Count of ...
21.737705
60
0.607278
0
0
0
0
0
0
0
0
3,136
0.591252
0e8f0fd36260f6f9e8bd5e30e3b45277ea628c6a
1,472
py
Python
obniz/obniz/libs/measurements/measure.py
izm51/obniz-python-sdk
40a738b5fe2c0a415cdc09f46d28c143982bfb07
[ "MIT" ]
11
2019-03-22T12:02:11.000Z
2021-01-21T04:57:18.000Z
obniz/obniz/libs/measurements/measure.py
izm51/obniz-python-sdk
40a738b5fe2c0a415cdc09f46d28c143982bfb07
[ "MIT" ]
5
2019-03-02T08:28:25.000Z
2021-02-02T22:06:37.000Z
obniz/obniz/libs/measurements/measure.py
izm51/obniz-python-sdk
40a738b5fe2c0a415cdc09f46d28c143982bfb07
[ "MIT" ]
3
2019-07-20T06:55:09.000Z
2019-12-04T05:05:00.000Z
from ..utils.util import ObnizUtil class ObnizMeasure: def __init__(self, obniz): self.obniz = obniz self._reset() def _reset(self): self.observers = [] def echo(self, params): err = ObnizUtil._required_keys( params, ["io_pulse", "pulse", "pulse_width", "io_ec...
28.307692
84
0.506114
1,434
0.974185
0
0
0
0
0
0
354
0.240489
0e8f1b9e020cbcff46ef73a5b53081ba0b48bcd4
7,869
py
Python
media_grab-container/src/test/unit_test/controllers_test/test_CompletedDownloadsController.py
tomconnolly94/media_grab
6c1da232fefdcbcb9ae2d79926f31e65970dbfa8
[ "MIT" ]
null
null
null
media_grab-container/src/test/unit_test/controllers_test/test_CompletedDownloadsController.py
tomconnolly94/media_grab
6c1da232fefdcbcb9ae2d79926f31e65970dbfa8
[ "MIT" ]
null
null
null
media_grab-container/src/test/unit_test/controllers_test/test_CompletedDownloadsController.py
tomconnolly94/media_grab
6c1da232fefdcbcb9ae2d79926f31e65970dbfa8
[ "MIT" ]
null
null
null
# external dependencies import unittest import mock import os from unittest.mock import call import shutil from mock import MagicMock from datetime import datetime, timedelta # internal dependencies from src.controllers import CompletedDownloadsController from src.dataTypes.ProgramMode import PROGRAM_MODE from src.tes...
45.75
185
0.686618
7,233
0.919177
0
0
7,133
0.906468
0
0
2,554
0.324565
0e8ff2bd4049ece744d225d9c8cbf9ccd1e11cba
14,313
py
Python
framework/generated/vulkan_generators/vulkan_referenced_resource_consumer_body_generator.py
tomped01/gfxreconstruct
ca0eacd7b69fa01a0a9cb2b1259242f341919a43
[ "BSD-2-Clause", "MIT" ]
null
null
null
framework/generated/vulkan_generators/vulkan_referenced_resource_consumer_body_generator.py
tomped01/gfxreconstruct
ca0eacd7b69fa01a0a9cb2b1259242f341919a43
[ "BSD-2-Clause", "MIT" ]
null
null
null
framework/generated/vulkan_generators/vulkan_referenced_resource_consumer_body_generator.py
tomped01/gfxreconstruct
ca0eacd7b69fa01a0a9cb2b1259242f341919a43
[ "BSD-2-Clause", "MIT" ]
null
null
null
#!/usr/bin/python3 -i # # Copyright (c) 2020 LunarG, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify...
47.082237
175
0.591979
12,909
0.901907
0
0
0
0
0
0
5,362
0.374624
0e90f2a19fcb16a87a416f29066cb56fdda1a489
8,658
py
Python
python_modules/libraries/dagster-k8s/dagster_k8s/container_context.py
silentsokolov/dagster
510bf07bf6906294d5a239d60079c88211002ebf
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-k8s/dagster_k8s/container_context.py
silentsokolov/dagster
510bf07bf6906294d5a239d60079c88211002ebf
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-k8s/dagster_k8s/container_context.py
silentsokolov/dagster
510bf07bf6906294d5a239d60079c88211002ebf
[ "Apache-2.0" ]
null
null
null
from typing import TYPE_CHECKING, Any, Dict, List, NamedTuple, Optional, cast import kubernetes import dagster._check as check from dagster.config.validate import process_config from dagster.core.errors import DagsterInvalidConfigError from dagster.core.storage.pipeline_run import PipelineRun from dagster.core.utils ...
44.4
99
0.664703
8,026
0.927004
0
0
2,968
0.342804
0
0
1,044
0.120582
0e92fd11a801e6b4a8ab702830466beac2af8d01
8,809
py
Python
fudge-domain.py
jordantrc/domain-fudgery
21e86adca50ec73662159c0c2c5efd5a93f49cd2
[ "MIT" ]
null
null
null
fudge-domain.py
jordantrc/domain-fudgery
21e86adca50ec73662159c0c2c5efd5a93f49cd2
[ "MIT" ]
null
null
null
fudge-domain.py
jordantrc/domain-fudgery
21e86adca50ec73662159c0c2c5efd5a93f49cd2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # fudge-domain.py # # Finds potentially useful domains # which are visually similar to the # target domain and ascertains whether # these domains are currently available # (not registered). Also checks if any TLDs # are not registered for the domain. # # Usage: # domain-fudgery.py [options] [d...
43.181373
140
0.517993
0
0
0
0
0
0
0
0
5,419
0.615166
0e968767fd95ce20a6bb33677442fc2d6eaecce8
1,680
py
Python
crudbuilder/tables.py
rbuchli/django-crudbuilder
c43001f19c6dc64b0bd8ac389a95067da735073d
[ "Apache-2.0" ]
null
null
null
crudbuilder/tables.py
rbuchli/django-crudbuilder
c43001f19c6dc64b0bd8ac389a95067da735073d
[ "Apache-2.0" ]
null
null
null
crudbuilder/tables.py
rbuchli/django-crudbuilder
c43001f19c6dc64b0bd8ac389a95067da735073d
[ "Apache-2.0" ]
null
null
null
import django_tables2 as tables from django_tables2.utils import A from .abstract import BaseBuilder from .helpers import model_class_form, plural, custom_postfix_url class TableBuilder(BaseBuilder): """ Table builder which returns django_tables2 instance app : app name model : model name for which t...
34.285714
104
0.610714
1,509
0.898214
0
0
0
0
0
0
654
0.389286
0e96eee1110feda2c2d2b2c769427a9d03407ff4
4,769
py
Python
sales/tests/test_views.py
MatsLanGoH/greengrocer
bf22bd15e359f1e6d1827992db5abde9f8db53d5
[ "MIT" ]
null
null
null
sales/tests/test_views.py
MatsLanGoH/greengrocer
bf22bd15e359f1e6d1827992db5abde9f8db53d5
[ "MIT" ]
null
null
null
sales/tests/test_views.py
MatsLanGoH/greengrocer
bf22bd15e359f1e6d1827992db5abde9f8db53d5
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth.models import User from django.urls import reverse from django.utils import timezone from sales.models import Fruit, Transaction from datetime import timedelta # Create your tests here. class FruitListViewTest(TestCase): def setUp(self): # Cre...
40.415254
108
0.682952
4,513
0.94632
0
0
977
0.204865
0
0
858
0.179912
0e9715b939023c2f60d9e725e63e63323e77455b
2,591
py
Python
src/solution/112_path_sum.py
rsj217/leetcode-in-python3
f5d9fa50e55ce60a159f9a8ccf6080dc86f56852
[ "MIT" ]
1
2021-03-01T07:33:45.000Z
2021-03-01T07:33:45.000Z
src/solution/112_path_sum.py
rsj217/leetcode-in-python3
f5d9fa50e55ce60a159f9a8ccf6080dc86f56852
[ "MIT" ]
null
null
null
src/solution/112_path_sum.py
rsj217/leetcode-in-python3
f5d9fa50e55ce60a159f9a8ccf6080dc86f56852
[ "MIT" ]
null
null
null
import random from src.datastruct.bin_treenode import TreeNode import unittest class Solution: def hasPathSum(self, root: TreeNode, targetSum: int) -> bool: num = random.randint(0, 1) d = { 0: self.dfs, 1: self.postorder, 2: self.bfs, } return d...
30.845238
94
0.521034
2,457
0.948283
0
0
0
0
0
0
10
0.00386
0e97700b68b96eb221fafae3d8068522c2cf22b7
728
py
Python
setup.py
aloosley/python-highcharts-df
e9c644cf74dae17cbe52dc9912c56b0a465f9d95
[ "MIT" ]
null
null
null
setup.py
aloosley/python-highcharts-df
e9c644cf74dae17cbe52dc9912c56b0a465f9d95
[ "MIT" ]
null
null
null
setup.py
aloosley/python-highcharts-df
e9c644cf74dae17cbe52dc9912c56b0a465f9d95
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = "Alex Loosley <a.loosley@reply.de>" from setuptools import setup, find_packages setup( name='python-highcharts_df', version='0.1.0', description='python-highcharts_df wrapper for customizable pretty plotting quickly from pandas dataframes', a...
26.962963
111
0.656593
0
0
0
0
0
0
0
0
399
0.548077
0e97a5a6084ace1e9c1382face6d45b053e07a8c
4,013
py
Python
main.py
XianwuLin/debian-package-dependencies-terminator
46ff43b08404737e9dc95c9550f6711ecd2dc9ec
[ "MIT" ]
null
null
null
main.py
XianwuLin/debian-package-dependencies-terminator
46ff43b08404737e9dc95c9550f6711ecd2dc9ec
[ "MIT" ]
null
null
null
main.py
XianwuLin/debian-package-dependencies-terminator
46ff43b08404737e9dc95c9550f6711ecd2dc9ec
[ "MIT" ]
null
null
null
# /usr/bin/env python # -*- coding: utf-8 -*- import glob import logging import os import shutil import tarfile import tempfile import docker from flask import Flask, jsonify, request, send_file, abort app = Flask(__name__) port = 8765 download_folder = "./debs" if not os.path.exists(download_folder): os.mkdir(do...
37.157407
117
0.56616
0
0
0
0
3,306
0.823823
0
0
875
0.218041
0e97bd1c773c1a5622d071293cbf5def12d114a3
3,101
py
Python
api/models.py
WalkingMachine/wonderland
44e27ccdd981c6e6d2a8e7944156a8bc9e730931
[ "Apache-2.0" ]
3
2017-06-10T15:49:47.000Z
2019-03-15T10:04:31.000Z
api/models.py
WalkingMachine/wonderland
44e27ccdd981c6e6d2a8e7944156a8bc9e730931
[ "Apache-2.0" ]
11
2017-06-05T20:19:32.000Z
2018-06-16T21:03:37.000Z
api/models.py
WalkingMachine/wonderland
44e27ccdd981c6e6d2a8e7944156a8bc9e730931
[ "Apache-2.0" ]
2
2017-07-17T18:03:45.000Z
2021-11-12T03:36:58.000Z
from django.db import models # Description of an object in the arena class Entity(models.Model): entityId = models.AutoField(primary_key=True) entityClass = models.CharField(max_length=30) entityName = models.CharField(max_length=30, null=True, blank=True) entityCategory = models.CharField(max_length=...
46.984848
119
0.741696
2,986
0.962915
0
0
0
0
0
0
233
0.075137
0e97d08d8c72216b971d686bd4bb0a40920e98b4
1,134
py
Python
Problemset/reorder-list/reorder-list.py
worldwonderer/algorithm
083178b2d987de7f6020aceca869a353c0b4b1f3
[ "MIT" ]
1
2021-01-30T01:52:46.000Z
2021-01-30T01:52:46.000Z
Problemset/reorder-list/reorder-list.py
worldwonderer/algorithm
083178b2d987de7f6020aceca869a353c0b4b1f3
[ "MIT" ]
1
2021-12-15T14:54:06.000Z
2021-12-15T14:54:06.000Z
Problemset/reorder-list/reorder-list.py
worldwonderer/algorithm
083178b2d987de7f6020aceca869a353c0b4b1f3
[ "MIT" ]
2
2021-04-19T03:32:18.000Z
2021-06-22T07:06:01.000Z
# @Title: 重排链表 (Reorder List) # @Author: 18015528893 # @Date: 2021-02-12 16:05:36 # @Runtime: 100 ms # @Memory: 23.9 MB # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def reorderList(self, head:...
22.68
61
0.444444
859
0.752189
0
0
0
0
0
0
346
0.302977
0e9b3e893453a362db8cc46d3b47dec9fab0247b
662
py
Python
lib/JumpScale/baselib/changetracker/ChangeTrackerFactory.py
jumpscale7/jumpscale_core7
c3115656214cab1bd32f7a1e092c0bffc84a00cd
[ "Apache-2.0" ]
null
null
null
lib/JumpScale/baselib/changetracker/ChangeTrackerFactory.py
jumpscale7/jumpscale_core7
c3115656214cab1bd32f7a1e092c0bffc84a00cd
[ "Apache-2.0" ]
4
2016-08-25T12:08:39.000Z
2018-04-12T12:36:01.000Z
lib/JumpScale/baselib/changetracker/ChangeTrackerFactory.py
jumpscale7/jumpscale_core7
c3115656214cab1bd32f7a1e092c0bffc84a00cd
[ "Apache-2.0" ]
3
2016-03-08T07:49:34.000Z
2018-10-19T13:56:43.000Z
from JumpScale import j from .ChangeTrackerClient import ChangeTrackerClient class ChangeTrackerFactory: def __init__(self): self.logenable=True self.loglevel=5 self._cache={} def get(self, gitlabName="incubaid"): name="%s_%s"%(blobclientName,gitlabName) if gitlabName...
28.782609
78
0.678248
580
0.876133
0
0
0
0
0
0
37
0.055891
0e9c0c6abc17a0bcd1785e2bfd3e4fe09ec9ea9b
322
py
Python
test_db.py
landynS8990/collabora8e
40c0fed070f0ec2b51913fc87a9ef9b88feca083
[ "Apache-2.0" ]
null
null
null
test_db.py
landynS8990/collabora8e
40c0fed070f0ec2b51913fc87a9ef9b88feca083
[ "Apache-2.0" ]
null
null
null
test_db.py
landynS8990/collabora8e
40c0fed070f0ec2b51913fc87a9ef9b88feca083
[ "Apache-2.0" ]
null
null
null
import os import psycopg2 DATABASE_URL = os.environ.get('DATABASE_URL') def test_db(): conn = psycopg2.connect(DATABASE_URL) cur = conn.cursor() cur.execute("SELECT * FROM country;") for country in cur: print(country) cur.close() conn.close() if __name__ == '__main__': test_db(...
16.1
45
0.645963
0
0
0
0
0
0
0
0
48
0.149068
0e9c65c00eed8b90cbe776879ddc8f8c8c52fe94
1,108
py
Python
VanillaGift.py
ytcrackers/Vanilla-Card-Balance-Checkers
1a86301892b2d503a95974e291963474264b24b1
[ "MIT" ]
2
2021-04-21T04:50:44.000Z
2022-03-23T14:23:16.000Z
VanillaGift.py
ytcrackers/Vanilla-Card-Balance-Checkers
1a86301892b2d503a95974e291963474264b24b1
[ "MIT" ]
1
2020-04-13T22:43:01.000Z
2020-04-13T22:43:01.000Z
VanillaGift.py
rip/Vanilla-Card-Balance-Checkers
1a86301892b2d503a95974e291963474264b24b1
[ "MIT" ]
null
null
null
from requests_html import HTMLSession from sys import argv if len(argv) != 2: print("Usage: python3 VanillaGift.py VanillaGift.txt") else: # VanillaGift card balance checker for card in reversed(list(open(argv[1]))): cardNumber, expMonth, expYear, cvv = card.rstrip().split(':') c = cardNumber + ' ' + expMo...
25.181818
68
0.626354
0
0
0
0
0
0
0
0
511
0.461191
0e9c8f54c4bfa1885450e92bd3ef2811ccdb169b
30,069
py
Python
acme/tests/test_pmap.py
esi-neuroscience/acme
0bd8b6332a98f637c0638b5319afe81bf5bd4977
[ "BSD-3-Clause" ]
1
2021-07-01T13:34:59.000Z
2021-07-01T13:34:59.000Z
acme/tests/test_pmap.py
esi-neuroscience/acme
0bd8b6332a98f637c0638b5319afe81bf5bd4977
[ "BSD-3-Clause" ]
17
2020-12-29T15:04:09.000Z
2022-03-01T10:21:54.000Z
acme/tests/test_pmap.py
esi-neuroscience/acme
0bd8b6332a98f637c0638b5319afe81bf5bd4977
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Testing module for ACME's `ParallelMap` interface # # Builtin/3rd party package imports from multiprocessing import Value import os import sys import pickle import shutil import inspect import subprocess import getpass import time import itertools import logging from typing import Type impo...
45.697568
135
0.587083
28,079
0.933819
0
0
5,891
0.195916
0
0
7,680
0.255413
0e9e025b01eb969d408f82347a8fc498cac9ab24
766
py
Python
tests/frontend/analysis_frontend.py
CNR-ITTIG/plasodfaxp
923797fc00664fa9e3277781b0334d6eed5664fd
[ "Apache-2.0" ]
1
2019-09-26T08:16:30.000Z
2019-09-26T08:16:30.000Z
tests/frontend/analysis_frontend.py
CNR-ITTIG/plasodfaxp
923797fc00664fa9e3277781b0334d6eed5664fd
[ "Apache-2.0" ]
null
null
null
tests/frontend/analysis_frontend.py
CNR-ITTIG/plasodfaxp
923797fc00664fa9e3277781b0334d6eed5664fd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """Tests for the analysis front-end object.""" import unittest from plaso.frontend import analysis_frontend from plaso.storage import zip_file as storage_zip_file from tests.frontend import test_lib class AnalysisFrontendTests(test_lib.FrontendTestCase): """Tests for the...
25.533333
74
0.763708
472
0.616188
0
0
0
0
0
0
204
0.266319
0ea2730c361b568ac507b349f4219e90dc8e1b4e
388
py
Python
forms/forms/constants.py
dowjcr/forms
daba956b779dc2b8054aeab841835d3748c1c50f
[ "MIT" ]
null
null
null
forms/forms/constants.py
dowjcr/forms
daba956b779dc2b8054aeab841835d3748c1c50f
[ "MIT" ]
1
2021-10-03T10:23:17.000Z
2021-10-03T10:23:17.000Z
forms/forms/constants.py
dowjcr/forms
daba956b779dc2b8054aeab841835d3748c1c50f
[ "MIT" ]
null
null
null
"""Stores constants used as numbers for readability that are used across all apps""" class AdminRoles: """ """ JCRTREASURER = 1 SENIORTREASURER = 2 BURSARY = 3 ASSISTANTBURSAR = 4 CHOICES = ( (JCRTREASURER, 'JCR Treasurer'), (SENIORTREASURER, 'Senior Treasurer'), (BURSA...
24.25
84
0.615979
301
0.775773
0
0
0
0
0
0
151
0.389175
0ea30d061c0f6731c0b56ded5ff02ccd54a258dd
647
py
Python
simpsonMethod.py
Existence-glitch/PythonCodes
a49121855364a5e0ac2ff227ef91f19086a52f09
[ "MIT" ]
1
2021-06-08T06:53:50.000Z
2021-06-08T06:53:50.000Z
simpsonMethod.py
Existence-glitch/PythonCodes
a49121855364a5e0ac2ff227ef91f19086a52f09
[ "MIT" ]
null
null
null
simpsonMethod.py
Existence-glitch/PythonCodes
a49121855364a5e0ac2ff227ef91f19086a52f09
[ "MIT" ]
null
null
null
import numpy as np from numpy import log #Se define la función a integrar def f(x): return 1 / log(x) #Implementación del método de Simpson #Parámetros: #f es la función a integrar #a el límite inferior de la integral #b el límite superior de la integral #n el número de intervalos def simpson (f, a...
22.310345
46
0.525502
0
0
0
0
0
0
0
0
248
0.378049
0ea3b1c8782a586b2613aff8826b4b27c668ede7
1,517
py
Python
setup.py
cloudify-cosmo/cloudify-cluster-manager
c453f65e6c6aa8622751805df2a2549db4fb3685
[ "Apache-2.0" ]
2
2020-11-28T11:48:36.000Z
2020-11-28T11:48:38.000Z
setup.py
cloudify-cosmo/cloudify-cluster-manager
c453f65e6c6aa8622751805df2a2549db4fb3685
[ "Apache-2.0" ]
5
2020-10-12T16:48:09.000Z
2021-09-13T15:17:28.000Z
setup.py
cloudify-cosmo/cloudify-cluster-manager
c453f65e6c6aa8622751805df2a2549db4fb3685
[ "Apache-2.0" ]
null
null
null
######## # Copyright (c) 2020 Cloudify Platform 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-2.0 # # Unless requi...
30.34
79
0.678972
0
0
0
0
0
0
0
0
935
0.616348
0ea7201b51048203ec576eca4a186c7f31e54813
169
py
Python
practice/bitwise_operations/ex2.py
recursivelycurious/wordnik-repl
9d9e96a8ebc79b95f135d5bc871602b65d2d2b79
[ "MIT" ]
346
2016-02-22T20:21:10.000Z
2022-01-27T20:55:53.000Z
Language Skills/Python/Unit 10/2-Introduction to Bitwise Operators/Binary representation/2-Lesson I0_ The Base 2 Number System_.py
vpstudios/Codecademy-Exercise-Answers
ebd0ee8197a8001465636f52c69592ea6745aa0c
[ "MIT" ]
55
2016-04-07T13:58:44.000Z
2020-06-25T12:20:24.000Z
Language Skills/Python/Unit 10/2-Introduction to Bitwise Operators/Binary representation/2-Lesson I0_ The Base 2 Number System_.py
vpstudios/Codecademy-Exercise-Answers
ebd0ee8197a8001465636f52c69592ea6745aa0c
[ "MIT" ]
477
2016-02-21T06:17:02.000Z
2021-12-22T10:08:01.000Z
print 0b1, #1 print 0b10, #2 print 0b11, #3 print 0b100, #4 print 0b101, #5 print 0b110, #6 print 0b111 #7 print "******" print 0b1 + 0b11 print 0b11 * 0b11
15.363636
17
0.609467
0
0
0
0
0
0
0
0
22
0.130178
0ea75c30072eee31077e1649933e02a8c3a47e21
2,617
py
Python
meiduo_mall/scripts/regenerate_detail_html.py
1103928458/meiduo_drf
49595755f264b09ea748b4deb8a88bba5eb8557b
[ "MIT" ]
null
null
null
meiduo_mall/scripts/regenerate_detail_html.py
1103928458/meiduo_drf
49595755f264b09ea748b4deb8a88bba5eb8557b
[ "MIT" ]
null
null
null
meiduo_mall/scripts/regenerate_detail_html.py
1103928458/meiduo_drf
49595755f264b09ea748b4deb8a88bba5eb8557b
[ "MIT" ]
1
2020-11-10T07:22:42.000Z
2020-11-10T07:22:42.000Z
# from django.shortcuts import render # import os # from django.conf import settings # from goods.models import SKU # from contents.utils import get_categories # from goods.utils import get_breadcrumb # # def generate_static_sku_detail_html(sku_id): # # sku = SKU.objects.get(id=sku_id) # # category = sku.catego...
37.927536
101
0.620558
0
0
0
0
0
0
0
0
3,019
0.977972
0ea886e8f085826ecb3e920ac582aec32c17c562
1,990
py
Python
chatbot/algorithm/entity_recognizer.py
ningxie1991/Movie-Chatbot
d73eb26c0b682e0426b0b2b8aa7b49059f44a5a1
[ "MIT" ]
null
null
null
chatbot/algorithm/entity_recognizer.py
ningxie1991/Movie-Chatbot
d73eb26c0b682e0426b0b2b8aa7b49059f44a5a1
[ "MIT" ]
null
null
null
chatbot/algorithm/entity_recognizer.py
ningxie1991/Movie-Chatbot
d73eb26c0b682e0426b0b2b8aa7b49059f44a5a1
[ "MIT" ]
null
null
null
import os import joblib import numpy as np import pandas as pd import sklearn_crfsuite from sklearn_crfsuite import metrics from chatbot.algorithm.question_answering.utils.ner import collate, sent2features, sent2labels class MoviesNER: def __init__(self): # train_cased = /data/mit_movies_corpus/engtrain...
39.019608
103
0.68995
1,658
0.833166
0
0
0
0
0
0
456
0.229146
0ea910932de6945668274ae7ffdc58e15331f4f5
393
py
Python
env/lib/python3.6/site-packages/torch/jit/passes/inplace.py
bopopescu/smart_contracts7
40a487cb3843e86ab5e4cb50b1aafa2095f648cd
[ "Apache-2.0" ]
null
null
null
env/lib/python3.6/site-packages/torch/jit/passes/inplace.py
bopopescu/smart_contracts7
40a487cb3843e86ab5e4cb50b1aafa2095f648cd
[ "Apache-2.0" ]
null
null
null
env/lib/python3.6/site-packages/torch/jit/passes/inplace.py
bopopescu/smart_contracts7
40a487cb3843e86ab5e4cb50b1aafa2095f648cd
[ "Apache-2.0" ]
1
2020-07-24T17:53:25.000Z
2020-07-24T17:53:25.000Z
def _check_inplace(trace): """Checks that all PythonOps that were not translated into JIT format are out of place. Should be run after the ONNX pass. """ graph = trace.graph() for node in graph.nodes(): if node.kind() == 'PythonOp': if node.i('inplace'): raise R...
32.75
95
0.620865
0
0
0
0
0
0
0
0
191
0.486005
0ea94d6989972b8a0054db5ba41efd5546eaa245
219
py
Python
tests/test_logging.py
makaimann/fault
8c805415f398e64971d18fbd3014bc0b59fb38b8
[ "BSD-3-Clause" ]
31
2018-07-16T15:03:14.000Z
2022-03-10T08:36:09.000Z
tests/test_logging.py
makaimann/fault
8c805415f398e64971d18fbd3014bc0b59fb38b8
[ "BSD-3-Clause" ]
216
2018-07-18T20:00:34.000Z
2021-10-05T17:40:47.000Z
tests/test_logging.py
makaimann/fault
8c805415f398e64971d18fbd3014bc0b59fb38b8
[ "BSD-3-Clause" ]
10
2019-02-17T00:56:58.000Z
2021-11-05T13:31:37.000Z
import fault.logging def test_logging_smoke(): fault.logging.info("some info msg") fault.logging.debug("some debug msg") fault.logging.warning("some warning msg") fault.logging.error("some error msg")
24.333333
45
0.716895
0
0
0
0
0
0
0
0
65
0.296804
0eaa19e87c71dad721ec740eabbb2e6449cdf569
5,600
py
Python
rdftools/__init__.py
johnstonskj/rdftools
9f027520dec4cb35422a78a8d9a97bc5210db8f9
[ "MIT" ]
1
2022-02-03T18:41:49.000Z
2022-02-03T18:41:49.000Z
rdftools/__init__.py
johnstonskj/rdftools
9f027520dec4cb35422a78a8d9a97bc5210db8f9
[ "MIT" ]
6
2018-03-01T23:21:24.000Z
2018-03-07T18:35:52.000Z
rdftools/__init__.py
johnstonskj/rdftools
9f027520dec4cb35422a78a8d9a97bc5210db8f9
[ "MIT" ]
null
null
null
import argparse import i18n import logging import os import rdflib import sys from termcolor import colored from timeit import default_timer as timer __VERSION__ = '0.2.0' __LOG__ = None FORMATS = ['nt', 'n3', 'turtle', 'rdfa', 'xml', 'pretty-xml'] HEADER_SEP = '=' COLUMN_SEP = '|' EMPTY_LINE = '' COLUMN_SPEC = '{:...
30.601093
78
0.637321
0
0
0
0
0
0
0
0
657
0.117321
0eaded91ac94008a42cad76b8f191ad6073a2d0e
681
py
Python
app/utils/scrapy.py
edementyev/py-telegram-broker
7cf6ab9a243e1309e4edd8257efb0f6a7340bfae
[ "MIT" ]
null
null
null
app/utils/scrapy.py
edementyev/py-telegram-broker
7cf6ab9a243e1309e4edd8257efb0f6a7340bfae
[ "MIT" ]
7
2020-12-07T09:11:01.000Z
2022-03-02T18:15:01.000Z
app/utils/scrapy.py
edementyev/py-telegram-broker
7cf6ab9a243e1309e4edd8257efb0f6a7340bfae
[ "MIT" ]
null
null
null
from loguru import logger from scrapy.crawler import CrawlerProcess from scrapy.utils.log import DEFAULT_LOGGING from scrapy.utils.project import get_project_settings from scrape_magic.spiders.gatherer_spider import GathererSpider from scrape_magic.spiders.starcity_spider import StarcitySpider settings = get_project_...
32.428571
87
0.790015
0
0
0
0
0
0
0
0
36
0.052863
0eae926a9f1f0cb7eec42a2b4785dbee7f9eaa01
1,842
py
Python
app/services/auth.py
sloppysid/faunadb-hipflask
554fb8d35a26d990ac1207af1d475a36720b102f
[ "MIT" ]
1
2022-01-16T15:03:48.000Z
2022-01-16T15:03:48.000Z
app/services/auth.py
sloppysid/faunadb-hipflask
554fb8d35a26d990ac1207af1d475a36720b102f
[ "MIT" ]
null
null
null
app/services/auth.py
sloppysid/faunadb-hipflask
554fb8d35a26d990ac1207af1d475a36720b102f
[ "MIT" ]
1
2021-11-30T08:08:02.000Z
2021-11-30T08:08:02.000Z
from flask import ( Blueprint, request, jsonify, render_template, session, redirect, url_for ) from app.models import User bp = Blueprint('auth', __name__, url_prefix='/auth') ...
29.709677
480
0.445711
0
0
0
0
1,171
0.635722
0
0
391
0.212269
0eafba60413846c138910dc0d814f1ad191425ea
1,841
py
Python
run_extraction_and_generation.py
aychen99/Excavating-Occaneechi-Town
6e864ca69ff1881554eb4c88aebed236bafbeaf4
[ "MIT" ]
1
2020-10-01T01:07:11.000Z
2020-10-01T01:07:11.000Z
run_extraction_and_generation.py
aychen99/Excavating-Occaneechi-Town
6e864ca69ff1881554eb4c88aebed236bafbeaf4
[ "MIT" ]
null
null
null
run_extraction_and_generation.py
aychen99/Excavating-Occaneechi-Town
6e864ca69ff1881554eb4c88aebed236bafbeaf4
[ "MIT" ]
null
null
null
import json import pathlib from src.extract_old_site.extract import run_extraction from src.generate_new_site.generate import generate_site if __name__ == "__main__": script_root_dir = pathlib.Path(__file__).parent config = None with open((script_root_dir / "config.json")) as f: config = json.load...
38.354167
105
0.612167
0
0
0
0
0
0
0
0
774
0.420424
0eaff1b214599d29b4c8677703247eacd71b69b2
671
py
Python
learning_algorithm/neural_network.py
Bermuhz/DataMiningCompetitionFirstPrize
e0202ceeb99fc6cb869906fd8e7cc79a173a315e
[ "MIT" ]
128
2017-03-20T12:42:38.000Z
2022-03-12T07:06:55.000Z
learning_algorithm/neural_network.py
Bermuhz/DataMiningCompetitionFirstPrize
e0202ceeb99fc6cb869906fd8e7cc79a173a315e
[ "MIT" ]
4
2017-03-18T04:37:36.000Z
2017-07-09T14:11:18.000Z
learning_algorithm/neural_network.py
Bermuhz/DataMiningCompetitionFirstPrize
e0202ceeb99fc6cb869906fd8e7cc79a173a315e
[ "MIT" ]
77
2017-03-19T06:49:39.000Z
2022-03-12T07:06:56.000Z
from sklearn.neural_network import MLPClassifier from commons import variables from commons import tools from scipy.stats import mode def learn(x, y, test_x): (temp_x, temp_y) = tools.simple_negative_sample(x, y, variables.select_rate_nn) clf = MLPClassifier(hidden_layer_sizes=(variables.unit_num_nn,), rando...
39.470588
127
0.746647
0
0
0
0
0
0
0
0
12
0.017884
0eb0a8f9ad766e5dfaab13e68e0f57e269d67f78
981
py
Python
alpacka/envs/__init__.py
shoot-tree-search/sts
2d9f19a40c7fb1c637dd3bd230942c01f14927e1
[ "MIT" ]
2
2021-01-03T04:21:56.000Z
2021-02-12T12:54:58.000Z
alpacka/envs/__init__.py
shoot-tree-search/sts
2d9f19a40c7fb1c637dd3bd230942c01f14927e1
[ "MIT" ]
null
null
null
alpacka/envs/__init__.py
shoot-tree-search/sts
2d9f19a40c7fb1c637dd3bd230942c01f14927e1
[ "MIT" ]
null
null
null
"""Environments.""" import gin from alpacka.envs import bin_packing from alpacka.envs import cartpole from alpacka.envs import gfootball from alpacka.envs import octomaze from alpacka.envs import sokoban from alpacka.envs.base import * from alpacka.envs.wrappers import * # Configure envs in this module to ensure th...
35.035714
93
0.796126
0
0
0
0
0
0
0
0
308
0.313965
0eb0ceb7a9d1916d4e8a0ee0147a33ecff45bec7
7,294
py
Python
pymbolic/interop/ast.py
alexfikl/pymbolic
74bf37c6cde8e92303d30dcf722c5c317d00d6b3
[ "MIT" ]
null
null
null
pymbolic/interop/ast.py
alexfikl/pymbolic
74bf37c6cde8e92303d30dcf722c5c317d00d6b3
[ "MIT" ]
null
null
null
pymbolic/interop/ast.py
alexfikl/pymbolic
74bf37c6cde8e92303d30dcf722c5c317d00d6b3
[ "MIT" ]
null
null
null
from __future__ import division, absolute_import, print_function __copyright__ = "Copyright (C) 2015 Andreas Kloeckner" __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 r...
28.271318
84
0.559364
5,186
0.710995
0
0
0
0
0
0
2,546
0.349054
0eb181bcfa8fca128622c8a736645617de6b33ea
1,398
py
Python
testing.py
mfamilia/minimize_energy_consumption
d2925a305e6f04bef642b62c7f03b53ae9437a7b
[ "MIT" ]
1
2019-03-25T11:56:05.000Z
2019-03-25T11:56:05.000Z
testing.py
mfamilia/minimize_energy_consumption
d2925a305e6f04bef642b62c7f03b53ae9437a7b
[ "MIT" ]
null
null
null
testing.py
mfamilia/minimize_energy_consumption
d2925a305e6f04bef642b62c7f03b53ae9437a7b
[ "MIT" ]
null
null
null
import os import numpy as np import random as rn from environment import Environment from keras.models import load_model os.environ['PYTHONHASHSEED'] = '0' np.random.seed(42) rn.seed(12345) number_actions = 5 direction_boundary = (number_actions - 1) / 2 temperature_step = 1.5 env = Environment(initial_number_users ...
29.744681
88
0.723891
0
0
0
0
0
0
0
0
123
0.087983
7eba7ca1ca7a464de4552b722ba1235657cc1c18
126
py
Python
roomlistwatcher/infrastructure/producing/topics.py
dnguyen0304/room-list-watcher
7ac4d5172de22dd8906662da521995c8e06c2617
[ "MIT" ]
null
null
null
roomlistwatcher/infrastructure/producing/topics.py
dnguyen0304/room-list-watcher
7ac4d5172de22dd8906662da521995c8e06c2617
[ "MIT" ]
null
null
null
roomlistwatcher/infrastructure/producing/topics.py
dnguyen0304/room-list-watcher
7ac4d5172de22dd8906662da521995c8e06c2617
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from roomlistwatcher.common import utility class Topic(utility.AutomatedEnum): ROOM_FOUND = ()
15.75
42
0.698413
55
0.436508
0
0
0
0
0
0
23
0.18254
7ebae62d64d2c33a33e2537a143db8237e76925d
3,992
py
Python
GithubP1.py
rcamposm/ChallengePython
014d32b38d90a1a3be3d102d5123d9e34bacc2dc
[ "MIT" ]
null
null
null
GithubP1.py
rcamposm/ChallengePython
014d32b38d90a1a3be3d102d5123d9e34bacc2dc
[ "MIT" ]
null
null
null
GithubP1.py
rcamposm/ChallengePython
014d32b38d90a1a3be3d102d5123d9e34bacc2dc
[ "MIT" ]
null
null
null
******************* PARTE I ******************************* #Instalamos git en la terminal de VSC $sudo apt-get install git -y #Revisamos la versión del Git que hemos instalado $git --version # Podemos ver también un resumen de las principales funcionalidades de Git $git #Creamos una carpeta $mkdir ChallengePython #...
31.68254
132
0.667585
0
0
0
0
0
0
0
0
1,787
0.44597
7ebbd0a9762fef47be2234772336bb6ea7cc2c82
11,661
py
Python
packages/How_to_implement_Azure_machine_learning/aml_modeling/project/modeling/models/ebm_models.py
dochines/OpenEduAnalytics
a1882dec7ad8e1606b88a8042dcf95d5c03b42dc
[ "CC-BY-4.0", "MIT" ]
null
null
null
packages/How_to_implement_Azure_machine_learning/aml_modeling/project/modeling/models/ebm_models.py
dochines/OpenEduAnalytics
a1882dec7ad8e1606b88a8042dcf95d5c03b42dc
[ "CC-BY-4.0", "MIT" ]
1
2021-11-11T16:38:33.000Z
2021-11-11T16:38:33.000Z
packages/How_to_implement_Azure_machine_learning/aml_modeling/project/modeling/models/ebm_models.py
dochines/OpenEduAnalytics
a1882dec7ad8e1606b88a8042dcf95d5c03b42dc
[ "CC-BY-4.0", "MIT" ]
1
2021-11-11T00:09:55.000Z
2021-11-11T00:09:55.000Z
from typing import List, Tuple import mlflow import numpy as np import pandas as pd from sklearn.model_selection import train_test_split from interpret.glassbox import ExplainableBoostingClassifier, ExplainableBoostingRegressor from ..OEA_model import OEAModelInterface, ModelType, ExplanationType from ..modeling_ut...
31.346774
141
0.597119
11,308
0.969728
0
0
0
0
0
0
6,082
0.521568
7ebe8e1bd51003adafc28a2457a39de43d5df82f
580
py
Python
Problemset/rotate-array/rotate-array.py
KivenCkl/LeetCode
fcc97c66f8154a5d20c2aca86120cb37b9d2d83d
[ "MIT" ]
7
2019-05-08T03:41:05.000Z
2020-12-22T12:39:43.000Z
Problemset/rotate-array/rotate-array.py
Yuziquan/LeetCode
303fc1c8af847f783c4020bd731b28b72ed92a35
[ "MIT" ]
1
2021-07-19T03:48:35.000Z
2021-07-19T03:48:35.000Z
Problemset/rotate-array/rotate-array.py
Yuziquan/LeetCode
303fc1c8af847f783c4020bd731b28b72ed92a35
[ "MIT" ]
7
2019-05-10T20:43:20.000Z
2021-02-22T03:47:35.000Z
# @Title: 旋转数组 (Rotate Array) # @Author: KivenC # @Date: 2019-03-14 16:57:56 # @Runtime: 124 ms # @Memory: 13.4 MB class Solution: def rotate(self, nums: List[int], k: int) -> None: """ Do not return anything, modify nums in-place instead. """ ''' k = k % len(nums) ...
23.2
61
0.453448
462
0.785714
0
0
0
0
0
0
337
0.573129
7ebed46683710a9ebe0c25178b513a5b2e2bee9a
6,940
py
Python
detectron/utils/wsl_memonger.py
sisrfeng/NA-fWebSOD
49cb75a9a0d557b05968c6b11b0f17a7043f2077
[ "Apache-2.0" ]
23
2020-03-30T11:48:33.000Z
2022-03-11T06:34:31.000Z
detectron/utils/wsl_memonger.py
sisrfeng/NA-fWebSOD
49cb75a9a0d557b05968c6b11b0f17a7043f2077
[ "Apache-2.0" ]
9
2020-09-28T07:15:16.000Z
2022-03-25T08:11:06.000Z
detectron/utils/wsl_memonger.py
sisrfeng/NA-fWebSOD
49cb75a9a0d557b05968c6b11b0f17a7043f2077
[ "Apache-2.0" ]
10
2020-03-30T11:48:34.000Z
2021-06-02T06:12:36.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import collections import time import copy from caffe2.python import workspace, core from caffe2.proto import caffe2_pb2 import logging import caffe2.python._import_c_ext...
31.402715
87
0.602305
0
0
0
0
0
0
0
0
983
0.141643
7ebf6d3e2be8c328592cef72dbeeecb3c71dccf2
1,346
py
Python
staging/management/commands/staging_generator.py
Pyromanser/django-staging
1273ba880f48705f968e85631f55af036b1dceb2
[ "BSD-3-Clause" ]
null
null
null
staging/management/commands/staging_generator.py
Pyromanser/django-staging
1273ba880f48705f968e85631f55af036b1dceb2
[ "BSD-3-Clause" ]
null
null
null
staging/management/commands/staging_generator.py
Pyromanser/django-staging
1273ba880f48705f968e85631f55af036b1dceb2
[ "BSD-3-Clause" ]
2
2021-06-07T23:09:19.000Z
2021-06-09T21:27:55.000Z
import os import sys from optparse import make_option from django.core.management import BaseCommand, call_command from django.conf import settings def rel(*x): return os.path.join(os.path.abspath(os.path.dirname(__file__)), *x) class Command(BaseCommand): option_list = BaseCommand.option_list + ( m...
38.457143
92
0.658247
1,108
0.82318
0
0
0
0
0
0
338
0.251114
7ec2240f63eb96b7be86ac80819b426a891d9e4a
7,341
py
Python
test/test_cpy_compat.py
gracinet/hpy
3f850ae562c6977ed3088d5f5bb31a1ef4155d18
[ "MIT" ]
null
null
null
test/test_cpy_compat.py
gracinet/hpy
3f850ae562c6977ed3088d5f5bb31a1ef4155d18
[ "MIT" ]
null
null
null
test/test_cpy_compat.py
gracinet/hpy
3f850ae562c6977ed3088d5f5bb31a1ef4155d18
[ "MIT" ]
null
null
null
from .support import HPyTest class TestCPythonCompatibility(HPyTest): # One note about the should_check_refcount() in the tests below: on # CPython, handles are actually implemented as INCREF/DECREF, so we can # check e.g. after an HPy_Dup the refcnt is += 1. However, on PyPy they # are implemented i...
33.368182
90
0.48522
7,309
0.995641
0
0
0
0
0
0
5,883
0.801389
7ec2bfc9ccb6ee726f5d61b2d45451c02e9d41ea
553
py
Python
blog/migrations/0003_auto_20200321_0543.py
Sergey19940808/blog
26beea5b218ddfe3347e251994c5c2f500975df0
[ "MIT" ]
null
null
null
blog/migrations/0003_auto_20200321_0543.py
Sergey19940808/blog
26beea5b218ddfe3347e251994c5c2f500975df0
[ "MIT" ]
null
null
null
blog/migrations/0003_auto_20200321_0543.py
Sergey19940808/blog
26beea5b218ddfe3347e251994c5c2f500975df0
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-03-21 05:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0002_auto_20200320_1150'), ] operations = [ migrations.RemoveField( model_name='subscribebyblog', name='user...
24.043478
100
0.605787
488
0.839931
0
0
0
0
0
0
187
0.321859
7ec4be3802281f0f009f1059ea1169959c79b1bc
92
py
Python
Curso-em-video-Python/PycharmProjects/pythonExercicios/ex046 - ContagemRegressiva.py
sartinicj/curso-em-video-python
8cb4ca05a88351c44aa4a7befc59c9596a50f268
[ "MIT" ]
null
null
null
Curso-em-video-Python/PycharmProjects/pythonExercicios/ex046 - ContagemRegressiva.py
sartinicj/curso-em-video-python
8cb4ca05a88351c44aa4a7befc59c9596a50f268
[ "MIT" ]
null
null
null
Curso-em-video-Python/PycharmProjects/pythonExercicios/ex046 - ContagemRegressiva.py
sartinicj/curso-em-video-python
8cb4ca05a88351c44aa4a7befc59c9596a50f268
[ "MIT" ]
null
null
null
from time import sleep for i in range(10, 0, -1): print(i) sleep(1) print('Yeey!!')
15.333333
26
0.597826
0
0
0
0
0
0
0
0
8
0.086957
7ec5bb3ee6e56981cd97f19bc1f1b34b98f31935
631
py
Python
migrations/versions/1f97f799a477_add_contact_details_to_house.py
havanhuy1997/pmg-cms-2
21571235cf3d9552013bca29ab9af288b08e00d6
[ "Apache-2.0" ]
2
2019-06-11T20:46:43.000Z
2020-08-27T22:50:32.000Z
migrations/versions/1f97f799a477_add_contact_details_to_house.py
havanhuy1997/pmg-cms-2
21571235cf3d9552013bca29ab9af288b08e00d6
[ "Apache-2.0" ]
70
2017-05-26T14:04:06.000Z
2021-06-30T10:21:58.000Z
migrations/versions/1f97f799a477_add_contact_details_to_house.py
havanhuy1997/pmg-cms-2
21571235cf3d9552013bca29ab9af288b08e00d6
[ "Apache-2.0" ]
4
2017-08-29T10:09:30.000Z
2021-05-25T11:29:03.000Z
"""Add contact_details to House Revision ID: 1f97f799a477 Revises: 2df9ce70bad Create Date: 2018-08-08 10:58:44.869939 """ # revision identifiers, used by Alembic. revision = '1f97f799a477' down_revision = '2df9ce70bad' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated ...
23.37037
82
0.70206
0
0
0
0
0
0
0
0
413
0.654517
7ec8bcdeff170d91a374ba018e5e6426dc9a2e70
725
py
Python
JYTools/demo/asyncWorker/plusWorker.zh.py
meisanggou/Tools
66acd710e4227a3a35acf3b804ce12f1de518912
[ "MIT" ]
null
null
null
JYTools/demo/asyncWorker/plusWorker.zh.py
meisanggou/Tools
66acd710e4227a3a35acf3b804ce12f1de518912
[ "MIT" ]
3
2018-01-24T08:16:55.000Z
2018-01-30T06:55:59.000Z
JYTools/demo/asyncWorker/plusWorker.zh.py
meisanggou/Tools
66acd710e4227a3a35acf3b804ce12f1de518912
[ "MIT" ]
null
null
null
#! /usr/bin/env python # coding: utf-8 from JYTools.JYWorker import AsyncRedisWorker __author__ = 'meisanggou' class PlusWorker(AsyncRedisWorker): def handler_task(self, key, params): print("Enter Plus Worker") if "a" not in params: self.set_current_task_invalid("Need a") if...
25.892857
90
0.613793
466
0.642759
0
0
0
0
0
0
173
0.238621
7ec971469d93f6ab0b3357bd1986c1d75f158264
1,336
py
Python
wrappers.py
FlanOfFlans/Capone
ac09fabac8eb9a2be6233ec7cdcc14e954427226
[ "MIT" ]
null
null
null
wrappers.py
FlanOfFlans/Capone
ac09fabac8eb9a2be6233ec7cdcc14e954427226
[ "MIT" ]
4
2020-02-07T08:26:32.000Z
2021-02-28T21:04:22.000Z
wrappers.py
FlanOfFlans/Capone
ac09fabac8eb9a2be6233ec7cdcc14e954427226
[ "MIT" ]
null
null
null
import discord class CaponeServer(): def __init__(self, discord_server): self._discord_server = discord_server def get_members(self): return map(CaponeUser, self._discord_server.members()) def equals(self, other): return self._discord_server == other._discord_server class CaponeChannel(): def __init__(se...
24.740741
70
0.765719
1,314
0.983533
0
0
0
0
161
0.120509
19
0.014222
7ec9f217b2ef0eef366902d1d8043f6411d178a9
143
py
Python
_longname.py
michaelshumshum/kahoot-annoyer
a4f35e6ac6e54390815164fc9d81e28d8c301057
[ "MIT" ]
4
2021-02-20T10:55:33.000Z
2021-09-25T06:20:16.000Z
_longname.py
michaelshumshum/kahoot-annoyer
a4f35e6ac6e54390815164fc9d81e28d8c301057
[ "MIT" ]
7
2021-01-07T13:57:21.000Z
2021-09-30T06:28:15.000Z
_longname.py
michaelshumshum/kahoot-annoyer
a4f35e6ac6e54390815164fc9d81e28d8c301057
[ "MIT" ]
5
2021-01-19T12:27:49.000Z
2021-09-23T12:29:44.000Z
from random import randint def longname(): return ''.join(chr(randint(0,143859)) for i in range(10000)).encode('utf-8','ignore').decode()
28.6
98
0.692308
0
0
0
0
0
0
0
0
17
0.118881
7ec9fcf9ceb86315712a57bbd849628caaaffa4f
3,535
py
Python
concept_formation/examples/examples_utils.py
ThomasHoppe/concept_formation
2468fea78ba46804bf44228519eb33ebc5780d31
[ "MIT" ]
47
2015-06-08T20:34:18.000Z
2021-09-26T17:59:06.000Z
concept_formation/examples/examples_utils.py
ThomasHoppe/concept_formation
2468fea78ba46804bf44228519eb33ebc5780d31
[ "MIT" ]
65
2015-07-27T18:16:31.000Z
2021-10-04T14:02:51.000Z
concept_formation/examples/examples_utils.py
ThomasHoppe/concept_formation
2468fea78ba46804bf44228519eb33ebc5780d31
[ "MIT" ]
13
2015-07-27T13:27:03.000Z
2022-03-15T02:18:10.000Z
""" This module contains utility functions used in the example scripts. They are implemented separately because they use scipy and numpy and we want to remove external dependencies from within the core library. """ from __future__ import print_function from __future__ import unicode_literals from __future__ impo...
33.037383
82
0.600566
0
0
0
0
0
0
0
0
1,306
0.369448
7ecc4036bf06e228f69ff0e22a8350689c78b5b3
1,082
py
Python
tests/test_app_builder.py
dmitryhd/avio
4e99c123de12a682f1ac1141899d670fbab81de6
[ "MIT" ]
2
2018-05-28T14:15:00.000Z
2018-10-15T09:33:38.000Z
tests/test_app_builder.py
dmitryhd/avio
4e99c123de12a682f1ac1141899d670fbab81de6
[ "MIT" ]
null
null
null
tests/test_app_builder.py
dmitryhd/avio
4e99c123de12a682f1ac1141899d670fbab81de6
[ "MIT" ]
null
null
null
from aiohttp import web from avio.app_builder import AppBuilder from avio.default_handlers import InfoHandler def test_create_app(): app = AppBuilder().build_app() assert isinstance(app, web.Application) def test_app_config(): builder = AppBuilder({'app_key': 'value'}) app = builder.build_app({'upd...
26.390244
73
0.689464
176
0.162662
0
0
0
0
0
0
148
0.136784
7ecc93eabbbc809f0893cd5190e4fc2c1e5b2a52
665
py
Python
scripts/compute_lengths.py
ZurichNLP/understanding-mbr
4052f6feef783fd851fdaf0acd6bf6ad71dc58ef
[ "MIT" ]
12
2021-05-19T10:20:05.000Z
2021-12-18T07:51:35.000Z
scripts/compute_lengths.py
ZurichNLP/understanding-mbr
4052f6feef783fd851fdaf0acd6bf6ad71dc58ef
[ "MIT" ]
1
2021-06-22T17:37:35.000Z
2021-06-23T13:16:39.000Z
scripts/compute_lengths.py
ZurichNLP/understanding-mbr
4052f6feef783fd851fdaf0acd6bf6ad71dc58ef
[ "MIT" ]
1
2021-09-01T09:04:34.000Z
2021-09-01T09:04:34.000Z
#! /usr/bin/python3 import sys import numpy import argparse import logging def parse_args(): parser = argparse.ArgumentParser() parser.add_argument("--output", type=str, help="Where to save numpy array of lengths.", required=True) args = parser.parse_args() return args def main(): args = par...
17.972973
106
0.664662
0
0
0
0
0
0
0
0
88
0.132331
7ecf3dcc1c0914b06bad4a9556b6b06a68e54449
2,612
py
Python
turbinia/workers/analysis/postgresql_acct_test.py
jleaniz/turbinia
78849bf292196e517fe149b2d4c4ab7000576b11
[ "Apache-2.0" ]
null
null
null
turbinia/workers/analysis/postgresql_acct_test.py
jleaniz/turbinia
78849bf292196e517fe149b2d4c4ab7000576b11
[ "Apache-2.0" ]
null
null
null
turbinia/workers/analysis/postgresql_acct_test.py
jleaniz/turbinia
78849bf292196e517fe149b2d4c4ab7000576b11
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2022 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
36.788732
77
0.745023
1,783
0.682619
0
0
0
0
0
0
1,153
0.441424
7ecfee91de6afd15c9b4944fc8130ce2c7df090a
162
py
Python
top_players.py
ergest/Fantasy-Premier-League
7773eaad57058e760c5d1f77cfa98d2a06d73e48
[ "MIT" ]
1,011
2016-12-30T09:37:45.000Z
2022-03-31T02:50:09.000Z
top_players.py
ergest/Fantasy-Premier-League
7773eaad57058e760c5d1f77cfa98d2a06d73e48
[ "MIT" ]
111
2018-04-13T02:02:09.000Z
2022-02-21T05:07:39.000Z
top_players.py
ergest/Fantasy-Premier-League
7773eaad57058e760c5d1f77cfa98d2a06d73e48
[ "MIT" ]
739
2017-12-27T03:30:18.000Z
2022-03-22T14:09:04.000Z
from getters import * from parsers import * def main(): data = get_data() parse_top_players(data, 'data/2020-21') if __name__ == '__main__': main()
16.2
43
0.654321
0
0
0
0
0
0
0
0
24
0.148148
7ed1533d1fe94afa39fdc1263bf8dee1d5e7d532
2,372
py
Python
src/annotatepORFs.py
clb1/AnnotateCGDB
741324c7a8d05637a09cd16b515f9af2cde69ae6
[ "MIT" ]
null
null
null
src/annotatepORFs.py
clb1/AnnotateCGDB
741324c7a8d05637a09cd16b515f9af2cde69ae6
[ "MIT" ]
null
null
null
src/annotatepORFs.py
clb1/AnnotateCGDB
741324c7a8d05637a09cd16b515f9af2cde69ae6
[ "MIT" ]
null
null
null
#!/usr/bin/env python from collections import defaultdict import gzip import os import pandas as pd import sys import pdb def collectDataForMatchesToPMProteins(annotated_PM_proteins, blast_directory): pORF_to_PM_protein_matches = defaultdict(set) blast_file_columns = ["query", "subject", "perc_ident",...
37.650794
136
0.685497
0
0
0
0
0
0
0
0
418
0.176223
7ed1dd5c13dcf775a1baf193fd62b210cf6a5965
818
py
Python
ch10-unsupervised/clustering/spectral_clustering/tests/test_spectral_embedding_.py
skforest/intro_ds
478a6b236c2e33c4baffec8aafa8e0a8ed68dca8
[ "Apache-2.0" ]
314
2018-02-11T09:44:21.000Z
2022-03-31T02:55:34.000Z
ch10-unsupervised/clustering/spectral_clustering/tests/test_spectral_embedding_.py
jianyigengge/intro_ds
886e678e5353e9b4c0d4f3da83a00d6b9a2f06a5
[ "Apache-2.0" ]
5
2018-05-27T07:18:09.000Z
2019-03-29T14:07:55.000Z
ch10-unsupervised/clustering/spectral_clustering/tests/test_spectral_embedding_.py
jianyigengge/intro_ds
886e678e5353e9b4c0d4f3da83a00d6b9a2f06a5
[ "Apache-2.0" ]
262
2018-03-20T07:36:22.000Z
2022-03-08T06:51:58.000Z
# -*- coding: UTF-8 -*- import numpy as np from numpy.testing import assert_array_almost_equal from spectral_clustering.spectral_embedding_ import spectral_embedding def assert_first_col_equal(maps): constant_vec = [1] * maps.shape[0] assert_array_almost_equal(maps[:, 0] / maps[0, 0], constant_vec) def test...
30.296296
75
0.662592
0
0
0
0
0
0
0
0
121
0.142353
7ed22c3a12b83e7e397a2f42645d4d28f20c10a1
1,028
py
Python
setup.py
albarsil/pyschemavalidator-
18b6dddc41a2e48e87edd9c8744956c933a0954c
[ "MIT" ]
2
2021-07-14T22:16:11.000Z
2021-07-15T13:59:16.000Z
setup.py
albarsil/pyschemavalidator-
18b6dddc41a2e48e87edd9c8744956c933a0954c
[ "MIT" ]
null
null
null
setup.py
albarsil/pyschemavalidator-
18b6dddc41a2e48e87edd9c8744956c933a0954c
[ "MIT" ]
1
2021-11-08T17:51:56.000Z
2021-11-08T17:51:56.000Z
from setuptools import setup, find_packages def readme(): with open('README.md') as f: return f.read() setup( name='pyschemavalidator', version='1.0.4', description='Decorator for endpoint inputs on APIs and a dictionary/JSON validator.', long_description=readme(), long_description_con...
34.266667
98
0.640078
0
0
0
0
0
0
0
0
549
0.534047
7ed2f5da954583e80a42f4d878be91fafc750834
278
py
Python
Programming/list.py
flybaozi/algorithm-study
2e05a0ff9fd9c935822ca43636394f603aa3078d
[ "MIT" ]
null
null
null
Programming/list.py
flybaozi/algorithm-study
2e05a0ff9fd9c935822ca43636394f603aa3078d
[ "MIT" ]
null
null
null
Programming/list.py
flybaozi/algorithm-study
2e05a0ff9fd9c935822ca43636394f603aa3078d
[ "MIT" ]
null
null
null
def test1(): arr = [["我", "你好"], ["你在干嘛", "你干啥呢"], ["吃饭呢", "打球呢", "看电视呢"]] new_arr = [] for i in arr[0]: print(i) for j in arr[1]: new_arr.append(i + j) print(new_arr) # # def test(): # while True: # test1(arr) test1()
16.352941
65
0.435252
0
0
0
0
0
0
0
0
128
0.4
7ed5ebddc6457b559b508614ad321953960871a9
1,012
py
Python
fedsimul/utils/language_utils.py
cshjin/fedsimul
1e2b9a9d9034fbc679dfaff059c42dea5642971d
[ "MIT" ]
11
2021-05-07T01:28:26.000Z
2022-03-10T08:23:16.000Z
fedsimul/utils/language_utils.py
cshjin/fedsimul
1e2b9a9d9034fbc679dfaff059c42dea5642971d
[ "MIT" ]
2
2021-08-13T10:12:13.000Z
2021-08-31T02:03:20.000Z
fedsimul/utils/language_utils.py
cshjin/fedsimul
1e2b9a9d9034fbc679dfaff059c42dea5642971d
[ "MIT" ]
1
2021-06-08T07:23:22.000Z
2021-06-08T07:23:22.000Z
############################################################################### # Utils functions for language models. # # NOTE: source from https://github.com/litian96/FedProx ############################################################################### ALL_LETTERS = "\n !\"&'(),-.0123456789:;>?ABCDEFGHIJKLMNOPQRST...
25.948718
98
0.559289
0
0
0
0
0
0
0
0
608
0.600791
7ed622001a9b3fee28a3830ea934fc1222ee2519
12,347
py
Python
src/cascade/executor/cascade_plan.py
adolgert/cascade
2084e07c9ee5e901dd407b817220de882c7246a3
[ "MIT" ]
null
null
null
src/cascade/executor/cascade_plan.py
adolgert/cascade
2084e07c9ee5e901dd407b817220de882c7246a3
[ "MIT" ]
null
null
null
src/cascade/executor/cascade_plan.py
adolgert/cascade
2084e07c9ee5e901dd407b817220de882c7246a3
[ "MIT" ]
null
null
null
""" Specification for what parameters are used at what location within the Cascade. """ from os import linesep from types import SimpleNamespace import networkx as nx from cascade.core import getLoggers from cascade.core.parameters import ParameterProperty, _ParameterHierarchy from cascade.input_data import InputData...
40.615132
100
0.703734
856
0.069329
0
0
0
0
0
0
3,954
0.32024
7ed6592b4557770826c2b857640043319d38c35b
8,757
py
Python
utils/utils.py
YigeWang-WHU/BlastLoadsRegression
884ba58a31ba854eaf86b846e551a97d84b11924
[ "MIT" ]
null
null
null
utils/utils.py
YigeWang-WHU/BlastLoadsRegression
884ba58a31ba854eaf86b846e551a97d84b11924
[ "MIT" ]
null
null
null
utils/utils.py
YigeWang-WHU/BlastLoadsRegression
884ba58a31ba854eaf86b846e551a97d84b11924
[ "MIT" ]
null
null
null
import os import pickle as pickle import datetime import time # from contextlib import contextmanger import torch from torch.autograd import Variable import random import numpy as np def time_str(fmt=None): if fmt is None: fmt = '%Y-%m-%d_%H:%M:%S' return datetime.datetime.today().strftime(fmt) def st...
31.387097
91
0.595524
2,780
0.31746
0
0
0
0
0
0
2,544
0.29051
7ed68a92c00d63af048a398460040921d4a594c2
152
py
Python
src/xbrief/deco/__init__.py
pydget/xbrief
9e91927a98754b0fca1fa55eae9a785b15e963f9
[ "MIT" ]
null
null
null
src/xbrief/deco/__init__.py
pydget/xbrief
9e91927a98754b0fca1fa55eae9a785b15e963f9
[ "MIT" ]
null
null
null
src/xbrief/deco/__init__.py
pydget/xbrief
9e91927a98754b0fca1fa55eae9a785b15e963f9
[ "MIT" ]
null
null
null
from .deco_entries import deco_dict, deco_entries from .deco_matrix import deco_matrix from .deco_node import deco from .deco_vector import deco_vector
30.4
49
0.855263
0
0
0
0
0
0
0
0
0
0
7ed76cffa617d7dbb0eb5704950de02465bd2acc
239
py
Python
GPLT_Python/L1-003.py
upupming/algorithm
44edcffe886eaf4ce8c7b27a8db50d7ed5d29ef1
[ "MIT" ]
107
2019-10-25T07:46:59.000Z
2022-03-29T11:10:56.000Z
GPLT_Python/L1-003.py
upupming/algorithm
44edcffe886eaf4ce8c7b27a8db50d7ed5d29ef1
[ "MIT" ]
1
2021-08-13T05:42:27.000Z
2021-08-13T05:42:27.000Z
GPLT_Python/L1-003.py
upupming/algorithm
44edcffe886eaf4ce8c7b27a8db50d7ed5d29ef1
[ "MIT" ]
18
2020-12-09T14:24:22.000Z
2022-03-30T06:56:01.000Z
a = str(input()) b = {'0': 0, '1': 0, '2': 0, '3': 0, '4': 0, '5': 0, '6': 0, '7': 0, '8': 0, '9': 0} for i in a: b[i] = b[i] + 1 for i in range(len(b)): if b[str(i)] == 0: continue print(str(i) + ':' + str(b[str(i)]))
26.555556
84
0.376569
0
0
0
0
0
0
0
0
33
0.138075
7ed81731d9af7ea6f386a90d704f7cac21f33072
194
py
Python
QRCodeLib/qrcodelib/format/mode_indicator.py
yas78/QRCodeLibPy
7b2c489b5e38aa23619ae41bff7a31993885275b
[ "MIT" ]
null
null
null
QRCodeLib/qrcodelib/format/mode_indicator.py
yas78/QRCodeLibPy
7b2c489b5e38aa23619ae41bff7a31993885275b
[ "MIT" ]
1
2019-11-04T13:44:44.000Z
2019-11-04T13:44:44.000Z
QRCodeLib/qrcodelib/format/mode_indicator.py
yas78/QRCodeLibPy
7b2c489b5e38aa23619ae41bff7a31993885275b
[ "MIT" ]
null
null
null
class ModeIndicator: LENGTH = 4 TERMINATOR_VALUE = 0x0 NUMERIC_VALUE = 0x1 ALPHANUMERIC_VALUE = 0x2 STRUCTURED_APPEND_VALUE = 0x3 BYTE_VALUE = 0x4 KANJI_VALUE = 0x8
19.4
33
0.690722
193
0.994845
0
0
0
0
0
0
0
0
7ed934e50ac37fe2f6bc49fc6b26c673d5bef545
3,635
py
Python
cogs/setup.py
wan-hazem/discord-bot
c71dc49c2a1e1ad6cd41bd36f26a343684cd40d1
[ "MIT" ]
null
null
null
cogs/setup.py
wan-hazem/discord-bot
c71dc49c2a1e1ad6cd41bd36f26a343684cd40d1
[ "MIT" ]
null
null
null
cogs/setup.py
wan-hazem/discord-bot
c71dc49c2a1e1ad6cd41bd36f26a343684cd40d1
[ "MIT" ]
1
2020-09-24T20:07:11.000Z
2020-09-24T20:07:11.000Z
from discord import Role, Embed, Color from discord.ext import commands from discord.utils import get from sqlite3 import connect class Setup(commands.Cog, name='Setup'): """ Commandes de setup serveur réservées aux admins """ def __init__(self, bot): self.bot = bot @commands.command(brie...
54.253731
174
0.630261
3,538
0.952099
0
0
3,358
0.90366
3,115
0.838267
1,642
0.441873
7eda15ab90c17c289351ca4660c59723a26e49ce
5,793
py
Python
ppq/parser/onnx_parser.py
wdian/ppq
58bd1271ea6f0dfaf602eb72bdca63ea79f191b8
[ "Apache-2.0" ]
1
2022-01-06T09:38:13.000Z
2022-01-06T09:38:13.000Z
ppq/parser/onnx_parser.py
wdian/ppq
58bd1271ea6f0dfaf602eb72bdca63ea79f191b8
[ "Apache-2.0" ]
null
null
null
ppq/parser/onnx_parser.py
wdian/ppq
58bd1271ea6f0dfaf602eb72bdca63ea79f191b8
[ "Apache-2.0" ]
null
null
null
from typing import Any, Dict, Iterable, List from torch import random from ppq.core import NetworkFramework, is_file_exist from ppq.IR import BaseGraph, GraphBuilder, Operation, Variable import onnx from onnx import helper, mapping, numpy_helper class OnnxParser(GraphBuilder): def build_variables( self...
43.886364
120
0.615398
5,541
0.956499
0
0
0
0
0
0
850
0.146729
7edaeae2fc38a800bb95865424b3192bce1ad4c5
96
py
Python
cubes/query/__init__.py
digitalsatori/cubes
140133e8c2e3f2ff60631cc3ebc9966d16c1655e
[ "MIT" ]
1,020
2015-01-02T03:05:26.000Z
2022-02-12T18:48:51.000Z
cubes/query/__init__.py
digitalsatori/cubes
140133e8c2e3f2ff60631cc3ebc9966d16c1655e
[ "MIT" ]
259
2015-01-02T22:35:14.000Z
2021-09-02T04:20:41.000Z
cubes/query/__init__.py
digitalsatori/cubes
140133e8c2e3f2ff60631cc3ebc9966d16c1655e
[ "MIT" ]
288
2015-01-08T00:42:26.000Z
2022-03-31T17:25:10.000Z
from .browser import * from .cells import * from .computation import * from .statutils import *
19.2
26
0.75
0
0
0
0
0
0
0
0
0
0
7edcf59eb18eef02bdb316448f6adea4f05d6570
130
py
Python
pymoo/operators/mutation/nom.py
jarreguit/pymoo
0496a3c6765826148d8bab21650736760517dd25
[ "Apache-2.0" ]
762
2018-06-05T20:56:09.000Z
2021-09-14T09:09:42.000Z
pymoo/operators/mutation/nom.py
jarreguit/pymoo
0496a3c6765826148d8bab21650736760517dd25
[ "Apache-2.0" ]
176
2018-09-05T18:37:05.000Z
2021-09-14T01:18:43.000Z
pymoo/operators/mutation/nom.py
jarreguit/pymoo
0496a3c6765826148d8bab21650736760517dd25
[ "Apache-2.0" ]
160
2018-08-05T05:31:20.000Z
2021-09-14T09:09:45.000Z
from pymoo.core.mutation import Mutation class NoMutation(Mutation): def _do(self, problem, X, **kwargs): return X
16.25
40
0.684615
86
0.661538
0
0
0
0
0
0
0
0
7edd2d6611c190c72458a52ee8280a39a0f6019d
2,893
py
Python
tokenize.py
jobsforher/Internship
68d99e90c54b3ccf1f06bdc817b8a46f1f0fe97a
[ "Apache-2.0" ]
null
null
null
tokenize.py
jobsforher/Internship
68d99e90c54b3ccf1f06bdc817b8a46f1f0fe97a
[ "Apache-2.0" ]
null
null
null
tokenize.py
jobsforher/Internship
68d99e90c54b3ccf1f06bdc817b8a46f1f0fe97a
[ "Apache-2.0" ]
null
null
null
import re from sys import argv import sys script, filename=argv text=open(filename) s=text.read() y= re.split('\s+',s) '''rite=open("new.txt", 'w')''' temp=[] values=[0,1,2,3,4,5,6,7,8,9,10,11,12,13] stopword1=['with','more','than','for','a','an','the','then','to','I','as','am','and','is'] for word in y: m=0...
38.573333
418
0.382993
0
0
0
0
0
0
0
0
636
0.219841
7edd3771e2b51e9d09b225c2a3e4394114478f19
5,304
py
Python
main.py
zoumt1633/ace2005-preprocessing
b5c31fabb9648a096a480958a00244fbd5dda622
[ "MIT" ]
null
null
null
main.py
zoumt1633/ace2005-preprocessing
b5c31fabb9648a096a480958a00244fbd5dda622
[ "MIT" ]
null
null
null
main.py
zoumt1633/ace2005-preprocessing
b5c31fabb9648a096a480958a00244fbd5dda622
[ "MIT" ]
null
null
null
import os import copy from parser import Parser import json import argparse from tqdm import tqdm def get_data_paths(ace2005_path): test_files, dev_files, train_files = [], [], [] with open('./data_list.csv', mode='r') as csv_file: rows = csv_file.readlines() for row in rows[1:]: ...
33.783439
96
0.558258
0
0
0
0
0
0
0
0
925
0.169787
7ede2a1e09a4811ae478f01a896fc0510aa9e87d
360
py
Python
HPOBenchExperimentUtils/core/__init__.py
PhMueller/TrajectoryParser
9c19d37a3ff29a593c9b6d3e7fd3857e8c2d724f
[ "Apache-2.0" ]
null
null
null
HPOBenchExperimentUtils/core/__init__.py
PhMueller/TrajectoryParser
9c19d37a3ff29a593c9b6d3e7fd3857e8c2d724f
[ "Apache-2.0" ]
1
2021-09-01T16:35:21.000Z
2021-11-05T19:53:25.000Z
HPOBenchExperimentUtils/core/__init__.py
automl/HPOBenchExperimentUtils
9c19d37a3ff29a593c9b6d3e7fd3857e8c2d724f
[ "Apache-2.0" ]
null
null
null
WORKER_WAIT_FOR_SCHEDULER_TO_START_IN_S = 600 WORKER_WAIT_FOR_NAMESERVER_TO_START_IN_S = 300 SCHEDULER_PING_WORKERS_INTERVAL_IN_S = 10 SCHEDULER_TIMEOUT_WORKER_DISCOVERY_IN_S = 600 # See Explanation in HPOBenchExperimentUtils/__init__.py try: from HPOBenchExperimentUtils.optimizer.autogluon_optimizer import _obj_f...
32.727273
78
0.875
0
0
0
0
0
0
0
0
56
0.155556
7ee00fb2a41f748e6f16cd24d5dbedd13ee2a74c
155
py
Python
portfolio/portfolio_site/models/__init__.py
nguyentrisinh/portfolio
83b13f8ffaafae76f3a9597b2b8b428da188a555
[ "MIT" ]
null
null
null
portfolio/portfolio_site/models/__init__.py
nguyentrisinh/portfolio
83b13f8ffaafae76f3a9597b2b8b428da188a555
[ "MIT" ]
null
null
null
portfolio/portfolio_site/models/__init__.py
nguyentrisinh/portfolio
83b13f8ffaafae76f3a9597b2b8b428da188a555
[ "MIT" ]
null
null
null
from .contact import Contact from .project import Project from .link import Link from .category import Category from .project_image import ProjectImage
31
39
0.819355
0
0
0
0
0
0
0
0
0
0
7ee0306bca45832afc48ed42c697d3140fcc48e9
5,061
py
Python
cron/main.py
opendatasoft/overpass-query-box
8ba4fe876ff7959357ad780583b5b849d0ad62f5
[ "MIT" ]
3
2016-04-28T06:25:57.000Z
2016-09-27T23:08:53.000Z
cron/main.py
opendatasoft/overpass-query-box
8ba4fe876ff7959357ad780583b5b849d0ad62f5
[ "MIT" ]
null
null
null
cron/main.py
opendatasoft/overpass-query-box
8ba4fe876ff7959357ad780583b5b849d0ad62f5
[ "MIT" ]
4
2016-07-29T11:54:43.000Z
2019-04-16T23:27:47.000Z
#!/usr/bin/env python import sys import os import urllib import requests import shutil import json import datetime from ftplib import FTP, error_perm, error_reply API_URL = 'http://localhost/cgi-bin' TIMEOUT_MINUTES = 15 HOURS_BEFORE_PROCESS = 24 if len(sys.argv) < 4: sys.stderr.write('Usage : ./main.py FTP_SERV...
36.941606
108
0.648093
0
0
0
0
0
0
0
0
842
0.16637
7ee047a7066708d1b0437ff3c15225bede21aaf2
1,234
py
Python
tf_mnist_softmax.py
vishwesh5/DeepLearningPython
8482287a338af50d6766891b7ccdad38253a2113
[ "MIT" ]
2
2018-07-08T17:32:33.000Z
2018-08-20T18:07:21.000Z
tf_mnist_softmax.py
vishwesh5/DeepLearningPython
8482287a338af50d6766891b7ccdad38253a2113
[ "MIT" ]
null
null
null
tf_mnist_softmax.py
vishwesh5/DeepLearningPython
8482287a338af50d6766891b7ccdad38253a2113
[ "MIT" ]
2
2020-04-21T20:35:43.000Z
2021-08-28T01:46:28.000Z
# -*- coding: utf-8 -*- """ Created on Fri Jul 6 21:00:25 2018 @author: Vishwesh """ import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data DATA_DIR = "/tmp/data" NUM_STEPS=1000 MINIBATCH_SIZE=32 data = input_data.read_data_sets(DATA_DIR,one_hot=True) x = tf.placeholder...
28.045455
73
0.664506
0
0
0
0
0
0
0
0
120
0.097245