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
4c2d9f91e47f374b558a37fc891829c105809bba
4,714
py
Python
rlcard/utils/seeding.py
AdrianP-/rlcard
5b99dc8faa4c97ecac2d1189967b90c45d79624b
[ "MIT" ]
null
null
null
rlcard/utils/seeding.py
AdrianP-/rlcard
5b99dc8faa4c97ecac2d1189967b90c45d79624b
[ "MIT" ]
null
null
null
rlcard/utils/seeding.py
AdrianP-/rlcard
5b99dc8faa4c97ecac2d1189967b90c45d79624b
[ "MIT" ]
null
null
null
#The MIT License # #Copyright (c) 2020 DATA Lab at Texas A&M University #Copyright (c) 2016 OpenAI (https://openai.com) # #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, inclu...
41.350877
461
0.694103
0
0
0
0
0
0
0
0
2,836
0.601612
4c2f421ab198ddb3faa7c72a6c2f2f1822a0634f
8,573
py
Python
ops/transforms.py
ex4sperans/freesound-classification
71b9920ce0ae376aa7f1a3a2943f0f92f4820813
[ "Apache-2.0" ]
55
2019-06-30T02:36:10.000Z
2021-12-07T07:24:42.000Z
ops/transforms.py
ex4sperans/freesound-classification
71b9920ce0ae376aa7f1a3a2943f0f92f4820813
[ "Apache-2.0" ]
13
2020-01-28T22:48:34.000Z
2022-03-11T23:50:36.000Z
ops/transforms.py
ex4sperans/freesound-classification
71b9920ce0ae376aa7f1a3a2943f0f92f4820813
[ "Apache-2.0" ]
7
2019-07-21T15:54:16.000Z
2020-07-22T13:02:37.000Z
import random import math from functools import partial import json import pysndfx import librosa import numpy as np import torch from ops.audio import ( read_audio, compute_stft, trim_audio, mix_audio_and_labels, shuffle_audio, cutout ) SAMPLE_RATE = 44100 class Augmentation: """A base class for data...
22.679894
84
0.561647
8,253
0.962674
0
0
0
0
0
0
662
0.077219
4c30506aa8598c0388ff7d67c1b22762e60080e5
2,011
py
Python
figures/pp.py
mathematicalmichael/thesis
2906b10f94960c3e75bdb48e5b8b583f59b9441e
[ "MIT" ]
6
2019-04-24T08:05:49.000Z
2020-12-28T20:34:29.000Z
figures/pp.py
mathematicalmichael/thesis
2906b10f94960c3e75bdb48e5b8b583f59b9441e
[ "MIT" ]
59
2019-12-27T23:15:05.000Z
2021-11-24T17:52:57.000Z
figures/pp.py
mathematicalmichael/thesis
2906b10f94960c3e75bdb48e5b8b583f59b9441e
[ "MIT" ]
null
null
null
#!/usr/env/bin python import os # os.environ['OMP_NUM_THREADS'] = '1' from newpoisson import poisson import numpy as np from fenics import set_log_level, File, RectangleMesh, Point mesh = RectangleMesh(Point(0,0), Point(1,1), 36, 36) # comm = mesh.mpi_comm() set_log_level(40) # ERROR=40 # from mpi4py import MPI # com...
32.967213
111
0.61462
0
0
0
0
0
0
0
0
576
0.286425
4c308137f6fcaffcc096aaa674f08780ed2a8ef7
3,606
py
Python
additions/irreducible_check.py
kluhan/seraphim
412b693effb15f80d348d6d885d7c781774bb8aa
[ "MIT" ]
null
null
null
additions/irreducible_check.py
kluhan/seraphim
412b693effb15f80d348d6d885d7c781774bb8aa
[ "MIT" ]
null
null
null
additions/irreducible_check.py
kluhan/seraphim
412b693effb15f80d348d6d885d7c781774bb8aa
[ "MIT" ]
null
null
null
""" Irreduzibilitätskriterien Implementiert wurden das Eisenstein- und das Perronkriterium Quellen: https://rms.unibuc.ro/bulletin/pdf/53-3/perron.pdf http://math-www.uni-paderborn.de/~chris/Index33/V/par5.pdf Übergeben werden Polynome vom Typ Polynomial, keine direkten Listen von Koeff...
27.112782
121
0.646977
0
0
0
0
0
0
0
0
1,549
0.428137
4c30bd2dd03a5aeb1d8422cd8b6cb2d539652200
39,763
py
Python
numba/stencils/stencil.py
auderson/numba
3d67c9850ab56457f418cf40af6245fd9c337705
[ "BSD-2-Clause" ]
6,620
2015-01-04T08:51:04.000Z
2022-03-31T12:52:18.000Z
numba/stencils/stencil.py
auderson/numba
3d67c9850ab56457f418cf40af6245fd9c337705
[ "BSD-2-Clause" ]
6,457
2015-01-04T03:18:41.000Z
2022-03-31T17:38:42.000Z
numba/stencils/stencil.py
auderson/numba
3d67c9850ab56457f418cf40af6245fd9c337705
[ "BSD-2-Clause" ]
930
2015-01-25T02:33:03.000Z
2022-03-30T14:10:32.000Z
# # Copyright (c) 2017 Intel Corporation # SPDX-License-Identifier: BSD-2-Clause # import copy import numpy as np from llvmlite import ir as lir from numba.core import types, typing, utils, ir, config, ir_utils, registry from numba.core.typing.templates import (CallableTemplate, signature, ...
47.849579
141
0.554133
36,754
0.924327
0
0
1,309
0.03292
0
0
10,636
0.267485
4c30fc13cf631ce207921b9c3acc713c3fb36b5f
3,754
py
Python
examples/bicycle/bicycle_dynamics.py
lujieyang/irs_lqr
bc9cade6a3bb2fa2d76bdd5fe453030a7b28700f
[ "MIT" ]
6
2021-11-20T19:05:06.000Z
2022-01-31T00:10:41.000Z
examples/bicycle/bicycle_dynamics.py
lujieyang/irs_lqr
bc9cade6a3bb2fa2d76bdd5fe453030a7b28700f
[ "MIT" ]
10
2021-07-24T19:50:36.000Z
2021-11-20T19:06:40.000Z
examples/bicycle/bicycle_dynamics.py
lujieyang/irs_lqr
bc9cade6a3bb2fa2d76bdd5fe453030a7b28700f
[ "MIT" ]
1
2021-12-15T22:09:31.000Z
2021-12-15T22:09:31.000Z
import numpy as np import pydrake.symbolic as ps import torch import time from irs_lqr.dynamical_system import DynamicalSystem class BicycleDynamics(DynamicalSystem): def __init__(self, h): super().__init__() """ x = [x pos, y pos, heading, speed, steering_angle] u = [acceleration,...
28.225564
91
0.483751
3,616
0.963239
0
0
0
0
0
0
1,151
0.306606
4c30fdedde14a46b90015527caf9d689634cdfab
6,504
py
Python
apps/proportions.py
harmkenn/PST_Deploy_Test
2484acf13f1f998c98fa94fad98c1f75c27d292b
[ "MIT" ]
null
null
null
apps/proportions.py
harmkenn/PST_Deploy_Test
2484acf13f1f998c98fa94fad98c1f75c27d292b
[ "MIT" ]
null
null
null
apps/proportions.py
harmkenn/PST_Deploy_Test
2484acf13f1f998c98fa94fad98c1f75c27d292b
[ "MIT" ]
null
null
null
import streamlit as st import math from scipy.stats import * import pandas as pd import numpy as np from plotnine import * def app(): # title of the app st.subheader("Proportions") st.sidebar.subheader("Proportion Settings") prop_choice = st.sidebar.radio("",["One Proportion","Two Proportions"]) ...
48.177778
207
0.482934
0
0
0
0
0
0
0
0
869
0.133528
4c31c440814ac777bd4779fa4968cf1b1847bcac
1,263
py
Python
integration/v2/test_service_instances.py
subhash12/cf-python-client
c0ecbb8ec85040fc2f74b6c52e1f9a6c6c16c4b0
[ "Apache-2.0" ]
47
2017-12-17T00:54:33.000Z
2022-02-25T09:54:52.000Z
integration/v2/test_service_instances.py
subhash12/cf-python-client
c0ecbb8ec85040fc2f74b6c52e1f9a6c6c16c4b0
[ "Apache-2.0" ]
125
2017-10-27T09:38:10.000Z
2022-03-10T07:53:35.000Z
integration/v2/test_service_instances.py
subhash12/cf-python-client
c0ecbb8ec85040fc2f74b6c52e1f9a6c6c16c4b0
[ "Apache-2.0" ]
50
2018-01-19T07:57:21.000Z
2022-02-14T14:47:31.000Z
import logging import unittest from config_test import build_client_from_configuration _logger = logging.getLogger(__name__) class TestServiceInstances(unittest.TestCase): def test_create_update_delete(self): client = build_client_from_configuration() result = client.v2.service_instances.create(...
43.551724
129
0.69517
1,133
0.89707
0
0
0
0
0
0
137
0.108472
4c31cf7c510d884081297346de14530206f0c46f
24
py
Python
runway/core/providers/__init__.py
troyready/runway
4fd299961a4b73df39e14f4f19a7236f7be17dd8
[ "Apache-2.0" ]
134
2018-02-26T21:35:23.000Z
2022-03-03T00:30:27.000Z
runway/core/providers/__init__.py
asksmruti/runway
8aca76df9372e3d13eb35e12f81758f618e89e74
[ "Apache-2.0" ]
937
2018-03-08T22:04:35.000Z
2022-03-30T12:21:47.000Z
runway/core/providers/__init__.py
asksmruti/runway
8aca76df9372e3d13eb35e12f81758f618e89e74
[ "Apache-2.0" ]
70
2018-02-26T23:48:11.000Z
2022-03-02T18:44:30.000Z
"""Runway providers."""
12
23
0.625
0
0
0
0
0
0
0
0
23
0.958333
4c32dcda5e8a9e2b82a81dd52550421a3c5cdcea
13,265
py
Python
samples/COVServer.py
noelli/bacpypes
c2f4d753ed86bc0357823e718e7ff16c05f06850
[ "MIT" ]
null
null
null
samples/COVServer.py
noelli/bacpypes
c2f4d753ed86bc0357823e718e7ff16c05f06850
[ "MIT" ]
null
null
null
samples/COVServer.py
noelli/bacpypes
c2f4d753ed86bc0357823e718e7ff16c05f06850
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ This sample application is a server that supports COV notification services. The console accepts commands that change the properties of an object that triggers the notifications. """ import time from threading import Thread from bacpypes.debugging import bacpypes_debugging, ModuleLogger fro...
30.354691
87
0.618168
9,271
0.698907
0
0
9,391
0.707953
0
0
3,533
0.26634
4c32edf19e346b501323693f4025d8d4782f7d64
973
py
Python
server/glassface/facebookfriender/views.py
theopak/glassface
bcb6c02636bda069d604a4da1dd09222e99be356
[ "MIT" ]
1
2017-02-24T16:18:24.000Z
2017-02-24T16:18:24.000Z
server/glassface/facebookfriender/views.py
theopak/glassface
bcb6c02636bda069d604a4da1dd09222e99be356
[ "MIT" ]
null
null
null
server/glassface/facebookfriender/views.py
theopak/glassface
bcb6c02636bda069d604a4da1dd09222e99be356
[ "MIT" ]
null
null
null
import os import platform import subprocess from django.http import HttpResponse from django.conf import settings def add(request, friend): phantomjs = os.path.join(settings.PROJECT_PATH, 'glassface', 'facebookfriender', platform.system(), 'phantomjs') script = os.path.join(settings.PROJECT_PATH, 'glassface'...
38.92
137
0.732785
0
0
0
0
0
0
0
0
221
0.227133
4c330026016ced54e01a326234695f3fe1fb584f
5,187
py
Python
fancylit/modeling/yellowbrick_funcs.py
rubyruins/fancylit
56a7cdfe78edd687a3b318bbbfa534203de1ace8
[ "Apache-2.0" ]
null
null
null
fancylit/modeling/yellowbrick_funcs.py
rubyruins/fancylit
56a7cdfe78edd687a3b318bbbfa534203de1ace8
[ "Apache-2.0" ]
null
null
null
fancylit/modeling/yellowbrick_funcs.py
rubyruins/fancylit
56a7cdfe78edd687a3b318bbbfa534203de1ace8
[ "Apache-2.0" ]
null
null
null
import random import numpy as np import pandas as pd import streamlit as st from sklearn.naive_bayes import GaussianNB from sklearn.model_selection import train_test_split from yellowbrick.classifier import classification_report from yellowbrick.target import FeatureCorrelation from yellowbrick.target import ClassBalan...
30.511765
389
0.614035
0
0
0
0
0
0
0
0
1,818
0.350492
4c33dde47e4450a45e6aa5280d3a4d98189d8d33
14,566
py
Python
info/modules/admin/views.py
moonbria/test1
05893bd91d416ca4093e4619ede427434fa665cc
[ "MIT" ]
null
null
null
info/modules/admin/views.py
moonbria/test1
05893bd91d416ca4093e4619ede427434fa665cc
[ "MIT" ]
null
null
null
info/modules/admin/views.py
moonbria/test1
05893bd91d416ca4093e4619ede427434fa665cc
[ "MIT" ]
null
null
null
from flask import request import random import re from flask import current_app, jsonify from flask import g from flask import make_response from flask import redirect from flask import render_template from flask import request from flask import session from flask import url_for import time from info import constants, ...
28.729783
87
0.604696
0
0
0
0
14,794
0.948212
0
0
3,167
0.202987
4c3438c0b1046ec22f1ab42437a0d08677dfe6f2
2,839
py
Python
src/predict_model.py
Swati17293/outlet-prediction
3c1f41b88d71b5247763bacc9dbc1abf5d0619a2
[ "MIT" ]
1
2020-10-28T00:05:31.000Z
2020-10-28T00:05:31.000Z
src/predict_model.py
Swati17293/outlet-prediction
3c1f41b88d71b5247763bacc9dbc1abf5d0619a2
[ "MIT" ]
null
null
null
src/predict_model.py
Swati17293/outlet-prediction
3c1f41b88d71b5247763bacc9dbc1abf5d0619a2
[ "MIT" ]
1
2021-12-09T14:36:54.000Z
2021-12-09T14:36:54.000Z
#Answer Generation import csv import os import numpy as np from keras.models import * from keras.models import Model from keras.preprocessing import text def load_model(): print('\nLoading model...') # load json and create model json_file = open('models/MODEL.json', 'r') loaded_model_json = json_file...
27.038095
89
0.534343
0
0
0
0
0
0
0
0
503
0.177175
4c353955c991e91d2a8ac820fc6be7fa23bb7348
716
py
Python
tools/client.py
Alisa1114/yolov4-pytorch-1
5dd8768f2eef868c9ee4588818350d4e1b50b98f
[ "MIT" ]
null
null
null
tools/client.py
Alisa1114/yolov4-pytorch-1
5dd8768f2eef868c9ee4588818350d4e1b50b98f
[ "MIT" ]
null
null
null
tools/client.py
Alisa1114/yolov4-pytorch-1
5dd8768f2eef868c9ee4588818350d4e1b50b98f
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from socket import * def client(): #實驗室電腦 # serverip='120.126.151.182' # serverport=8887 #在自己電腦測試 serverip='127.0.0.1' serverport=8888 client=socket(AF_INET,SOCK_STREAM) client.connect((serverip,serverport)) address_file = open('tools/address.txt', 'r')...
25.571429
64
0.624302
0
0
0
0
0
0
0
0
410
0.539474
4c35e02888592e1186585689132cd3d10b0f4a6d
13,039
py
Python
dapy/models/kuramoto_sivashinsky.py
hassaniqbal209/data-assimilation
ec52d655395dbed547edf4b4f3df29f017633f1b
[ "MIT" ]
11
2020-07-29T07:46:39.000Z
2022-03-17T01:28:07.000Z
dapy/models/kuramoto_sivashinsky.py
hassaniqbal209/data-assimilation
ec52d655395dbed547edf4b4f3df29f017633f1b
[ "MIT" ]
1
2020-07-14T11:49:17.000Z
2020-07-29T07:43:22.000Z
dapy/models/kuramoto_sivashinsky.py
hassaniqbal209/data-assimilation
ec52d655395dbed547edf4b4f3df29f017633f1b
[ "MIT" ]
10
2020-07-14T11:34:24.000Z
2022-03-07T09:08:12.000Z
"""Non-linear SPDE model on a periodic 1D spatial domain for laminar wave fronts. Based on the Kuramato--Sivashinsky PDE model [1, 2] which exhibits spatio-temporally chaotic dynamics. References: 1. Kuramoto and Tsuzuki. Persistent propagation of concentration waves in dissipative media far from thermal ...
47.072202
88
0.666692
12,126
0.923112
0
0
0
0
0
0
7,572
0.576431
4c3723af9b53c7e19a14d4d5a300a57c775f6c8c
553
py
Python
setup.py
Lif3line/myo-helper
7c71a3ee693661ddba0171545bf5798f46231b3c
[ "MIT" ]
null
null
null
setup.py
Lif3line/myo-helper
7c71a3ee693661ddba0171545bf5798f46231b3c
[ "MIT" ]
null
null
null
setup.py
Lif3line/myo-helper
7c71a3ee693661ddba0171545bf5798f46231b3c
[ "MIT" ]
null
null
null
"""Utiltiy functions for working with Myo Armband data.""" from setuptools import setup, find_packages setup(name='myo_helper', version='0.1', description='Utiltiy functions for working with Myo Armband data', author='Lif3line', author_email='[email protected]', license='MIT', ...
27.65
85
0.631103
0
0
0
0
0
0
0
0
272
0.491863
4c3bcf54b28a72322eb20b3cefe8c6d28943d5e4
1,030
py
Python
demos/restful-users/index.py
karldoenitz/karlooper
2e1df83ed1ec9b343cdd930162a4de7ecd149c04
[ "MIT" ]
161
2016-05-17T12:44:07.000Z
2020-07-30T02:18:34.000Z
demos/restful-users/index.py
karldoenitz/karlooper
2e1df83ed1ec9b343cdd930162a4de7ecd149c04
[ "MIT" ]
6
2016-08-29T01:40:26.000Z
2017-12-29T09:20:41.000Z
demos/restful-users/index.py
karldoenitz/karlooper
2e1df83ed1ec9b343cdd930162a4de7ecd149c04
[ "MIT" ]
16
2016-06-27T02:56:54.000Z
2019-08-08T08:18:48.000Z
# -*-encoding:utf-8-*- import os from karlooper.web.application import Application from karlooper.web.request import Request class UsersHandler(Request): def get(self): return self.render("/user-page.html") class UserInfoHandler(Request): def post(self): print(self.get_http_request_message(...
23.409091
99
0.61165
524
0.508738
0
0
0
0
0
0
202
0.196117
4c3c325909dda45d25ada2b46ed9a46e19b99dfc
4,154
py
Python
temporal_transforms.py
LijiangLong/3D-ResNets-PyTorch
89d2cba0b52d55aaa834635a81c172bc38771cd3
[ "MIT" ]
null
null
null
temporal_transforms.py
LijiangLong/3D-ResNets-PyTorch
89d2cba0b52d55aaa834635a81c172bc38771cd3
[ "MIT" ]
null
null
null
temporal_transforms.py
LijiangLong/3D-ResNets-PyTorch
89d2cba0b52d55aaa834635a81c172bc38771cd3
[ "MIT" ]
null
null
null
import random import math class LoopPadding(object): def __init__(self, size): self.size = size def __call__(self, frame_indices): out = frame_indices for index in out: if len(out) >= self.size: break out.append(index) return out cl...
26.974026
115
0.590515
4,112
0.989889
0
0
0
0
0
0
1,556
0.374579
4c3c84ef8550fb8c1fe9332f31bf0fbd72087616
1,206
py
Python
cli/waiter/subcommands/kill.py
geofft/waiter
0e10cd497c2c679ea43231866d9f803c3fed5d77
[ "Apache-2.0" ]
null
null
null
cli/waiter/subcommands/kill.py
geofft/waiter
0e10cd497c2c679ea43231866d9f803c3fed5d77
[ "Apache-2.0" ]
null
null
null
cli/waiter/subcommands/kill.py
geofft/waiter
0e10cd497c2c679ea43231866d9f803c3fed5d77
[ "Apache-2.0" ]
null
null
null
from waiter.action import process_kill_request from waiter.util import guard_no_cluster, check_positive def kill(clusters, args, _, __): """Kills the service(s) using the given token name.""" guard_no_cluster(clusters) token_name_or_service_id = args.get('token-or-service-id') is_service_id = args.get...
46.384615
115
0.694859
0
0
0
0
0
0
0
0
421
0.349088
4c3ccdaafeb79fdce0197fde1a5c4f83054573ab
3,338
py
Python
a2t/src/a2t.py
syeda-khurrath/fabric8-analytics-common
421f7e27869c5695ed73b51e6422e097aba00108
[ "Apache-2.0" ]
null
null
null
a2t/src/a2t.py
syeda-khurrath/fabric8-analytics-common
421f7e27869c5695ed73b51e6422e097aba00108
[ "Apache-2.0" ]
4
2019-05-20T08:27:47.000Z
2019-05-20T08:29:57.000Z
a2t/src/a2t.py
codeready-analytics/fabric8-analytics-common
a763c5534d601f2f40a0f02c02914c49ea23669d
[ "Apache-2.0" ]
1
2020-10-05T21:12:44.000Z
2020-10-05T21:12:44.000Z
"""The main module of the Analytics API Load Tests tool. Copyright (c) 2019 Red Hat Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any late...
30.345455
90
0.65698
0
0
0
0
0
0
0
0
1,418
0.424805
4c3d2c0aac2c057e54b3e25d8827904204518172
3,568
py
Python
riscv_ctg/ctg.py
Giri2801/riscv-ctg
a90e03f0856bbdd106c3f6d51815af94707e711e
[ "BSD-3-Clause" ]
null
null
null
riscv_ctg/ctg.py
Giri2801/riscv-ctg
a90e03f0856bbdd106c3f6d51815af94707e711e
[ "BSD-3-Clause" ]
null
null
null
riscv_ctg/ctg.py
Giri2801/riscv-ctg
a90e03f0856bbdd106c3f6d51815af94707e711e
[ "BSD-3-Clause" ]
null
null
null
# See LICENSE.incore file for details import os,re import multiprocessing as mp import time import shutil from riscv_ctg.log import logger import riscv_ctg.utils as utils import riscv_ctg.constants as const from riscv_isac.cgf_normalize import expand_cgf from riscv_ctg.generator import Generator from math import * fr...
37.166667
114
0.626962
0
0
0
0
0
0
0
0
559
0.15667
4c3e29e2ae1ab7be40f9cfea714aae230e6e4e54
2,146
py
Python
Back-End/Python/timers/clock_named_tuple.py
ASHISHKUMAR2411/Programming-CookBook
9c60655d64d21985ccb4196360858d98344701f9
[ "MIT" ]
25
2021-04-28T02:51:26.000Z
2022-03-24T13:58:04.000Z
Back-End/Python/timers/clock_named_tuple.py
ASHISHKUMAR2411/Programming-CookBook
9c60655d64d21985ccb4196360858d98344701f9
[ "MIT" ]
1
2022-03-03T23:33:41.000Z
2022-03-03T23:35:41.000Z
Back-End/Python/timers/clock_named_tuple.py
ASHISHKUMAR2411/Programming-CookBook
9c60655d64d21985ccb4196360858d98344701f9
[ "MIT" ]
15
2021-05-30T01:35:20.000Z
2022-03-25T12:38:25.000Z
from collections import namedtuple MainTimer = namedtuple('MainTimer', 'new_time_joined, end_period, new_weekday, days') def add_time(start, duration, start_weekday=None): weekdays = [ 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday' ] start_time, period ...
32.029851
102
0.592265
0
0
0
0
0
0
0
0
517
0.240913
4c405ed31ecc4361eadac459e688c3b9b4ba7bba
225
py
Python
mlsurvey/visualize/__init__.py
jlaumonier/mlsurvey
373598d067c7f0930ba13fe8da9756ce26eecbaf
[ "MIT" ]
null
null
null
mlsurvey/visualize/__init__.py
jlaumonier/mlsurvey
373598d067c7f0930ba13fe8da9756ce26eecbaf
[ "MIT" ]
null
null
null
mlsurvey/visualize/__init__.py
jlaumonier/mlsurvey
373598d067c7f0930ba13fe8da9756ce26eecbaf
[ "MIT" ]
null
null
null
from .analyze_logs import AnalyzeLogs from .search_interface import SearchInterface from .detail_interface import DetailInterface from .user_interface import UserInterface from .visualize_log_detail import VisualizeLogDetail
37.5
52
0.888889
0
0
0
0
0
0
0
0
0
0
4c4211ba5dbc8c290d97362485169fd20badaf8a
816
py
Python
stanford/sms-tools/lectures/02-DFT/plots-code/idft.py
phunc20/dsp
e7c496eb5fd4b8694eab0fc049cf98a5e3dfd886
[ "MIT" ]
1
2021-03-12T18:32:06.000Z
2021-03-12T18:32:06.000Z
stanford/sms-tools/lectures/02-DFT/plots-code/idft.py
phunc20/dsp
e7c496eb5fd4b8694eab0fc049cf98a5e3dfd886
[ "MIT" ]
null
null
null
stanford/sms-tools/lectures/02-DFT/plots-code/idft.py
phunc20/dsp
e7c496eb5fd4b8694eab0fc049cf98a5e3dfd886
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import sys sys.path.append('../../../software/models/') import dftModel as DFT import math k0 = 8.5 N = 64 w = np.ones(N) x = np.cos(2*np.pi*k0/N*np.arange(-N/2,N/2)) mX, pX = DFT.dftAnal(x, w, N) y = DFT.dftSynth(mX, pX, N) plt.figure(1, figsize=(9.5, 5)) plt.subpl...
23.314286
56
0.654412
0
0
0
0
0
0
0
0
153
0.1875
4c43be0918680e081f3bcc9acc58506e39754d60
1,421
py
Python
setup.py
jerzydziewierz/typobs
15fa697386f5fb3a1df53b865557c338be235d91
[ "Apache-2.0" ]
null
null
null
setup.py
jerzydziewierz/typobs
15fa697386f5fb3a1df53b865557c338be235d91
[ "Apache-2.0" ]
null
null
null
setup.py
jerzydziewierz/typobs
15fa697386f5fb3a1df53b865557c338be235d91
[ "Apache-2.0" ]
null
null
null
# setup.py as described in: # https://stackoverflow.com/questions/27494758/how-do-i-make-a-python-script-executable # to install on your system, run: # > pip install -e . from setuptools import setup, find_packages setup( name='typobs', version='0.0.3', entry_points={ 'console_scripts': [ ...
36.435897
87
0.640394
0
0
0
0
0
0
0
0
974
0.685433
4c43f28c0f9c6fae0da417c39d88b7b2698c63a6
5,775
py
Python
tests/fixtures.py
ehelms/system-baseline-backend
729cc8ba53119a7ed397fb3ea3d46f9ecedb8528
[ "Apache-2.0" ]
null
null
null
tests/fixtures.py
ehelms/system-baseline-backend
729cc8ba53119a7ed397fb3ea3d46f9ecedb8528
[ "Apache-2.0" ]
null
null
null
tests/fixtures.py
ehelms/system-baseline-backend
729cc8ba53119a7ed397fb3ea3d46f9ecedb8528
[ "Apache-2.0" ]
null
null
null
""" decoded AUTH_HEADER (newlines added for readability): { "identity": { "account_number": "1234", "internal": { "org_id": "5678" }, "type": "User", "user": { "email": "[email protected]", "first_name": "Firstname", "is_active":...
31.557377
81
0.66303
0
0
0
0
0
0
0
0
4,557
0.789091
4c449a22ce009dfff20f9f81e80e2e5aae88a200
3,200
py
Python
2021-02-03/2.py
Elfenreigen/MCM-2021-C-SJTU-Test
98e3b14dbe7bb0ab4a76245d14e4691050704ac9
[ "MIT" ]
1
2022-01-24T11:59:40.000Z
2022-01-24T11:59:40.000Z
2021-02-03/2.py
Elfenreigen/MCM-2021-C-SJTU-Test
98e3b14dbe7bb0ab4a76245d14e4691050704ac9
[ "MIT" ]
null
null
null
2021-02-03/2.py
Elfenreigen/MCM-2021-C-SJTU-Test
98e3b14dbe7bb0ab4a76245d14e4691050704ac9
[ "MIT" ]
null
null
null
#####Time Flow Simulation###### import numpy as np import pandas as pd import matplotlib.pyplot as plt from datetime import timedelta import datetime import csv data=pd.read_excel('CF66-all.xlsx') data.sort_values(by=['WBL_AUD_DT'],ascending=True,inplace=True) or_data=pd.read_excel('CF66-ordinary.xlsx') rul...
27.118644
121
0.62375
0
0
0
0
0
0
0
0
702
0.213764
4c483ae5f1b2a18e4178f810a8a5efb2cf0ef940
776
py
Python
tests/test_selection.py
qrebjock/fanok
5c3b95ca5f2ec90af7060c21409a11130bd350bd
[ "MIT" ]
null
null
null
tests/test_selection.py
qrebjock/fanok
5c3b95ca5f2ec90af7060c21409a11130bd350bd
[ "MIT" ]
null
null
null
tests/test_selection.py
qrebjock/fanok
5c3b95ca5f2ec90af7060c21409a11130bd350bd
[ "MIT" ]
1
2020-08-26T12:20:26.000Z
2020-08-26T12:20:26.000Z
import pytest import numpy as np from fanok.selection import adaptive_significance_threshold @pytest.mark.parametrize( "w, q, offset, expected", [ ([1, 2, 3, 4, 5], 0.1, 0, 1), ([-1, 2, -3, 4, 5], 0.1, 0, 4), ([-3, -2, -1, 0, 1, 2, 3], 0.1, 0, np.inf), ([-3, -2, -1, 0, 1, 2, ...
27.714286
79
0.474227
0
0
0
0
678
0.873711
0
0
24
0.030928
4c49699fa44232922a69a87e2fa00808e22b315a
7,256
py
Python
unitcap/unit_cap.py
fintelia/habitationi
7dd15ecbab0ad63a70505920766de9c27294fb6e
[ "Apache-2.0" ]
1
2021-10-03T14:44:38.000Z
2021-10-03T14:44:38.000Z
unitcap/unit_cap.py
fintelia/habitationi
7dd15ecbab0ad63a70505920766de9c27294fb6e
[ "Apache-2.0" ]
null
null
null
unitcap/unit_cap.py
fintelia/habitationi
7dd15ecbab0ad63a70505920766de9c27294fb6e
[ "Apache-2.0" ]
1
2021-02-20T23:22:10.000Z
2021-02-20T23:22:10.000Z
#!/usr/bin/python # Copyright 2019 Christopher Schmidt # # 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...
32.106195
108
0.553335
961
0.132442
0
0
0
0
0
0
2,354
0.324421
4c4972e50ba94dc3591b0fc9fac43e37a601a455
25
py
Python
matrix/__init__.py
AbhiK002/Matrix
2d83f08877dccba9e4c710bd5fb65f613848d63f
[ "MIT" ]
2
2022-02-11T04:39:21.000Z
2022-02-12T15:50:35.000Z
matrix/__init__.py
AbhiK002/Matrix
2d83f08877dccba9e4c710bd5fb65f613848d63f
[ "MIT" ]
null
null
null
matrix/__init__.py
AbhiK002/Matrix
2d83f08877dccba9e4c710bd5fb65f613848d63f
[ "MIT" ]
null
null
null
from .main import Matrix
12.5
24
0.8
0
0
0
0
0
0
0
0
0
0
4c497bbd6391fbc0eaad2b9548fcee8c07a53d5e
2,348
py
Python
samples/cmk/test.py
jasstionzyf/Mask_RCNN
971a9dd9be1f9716e6f7c23b959bd57079cd93eb
[ "MIT" ]
null
null
null
samples/cmk/test.py
jasstionzyf/Mask_RCNN
971a9dd9be1f9716e6f7c23b959bd57079cd93eb
[ "MIT" ]
null
null
null
samples/cmk/test.py
jasstionzyf/Mask_RCNN
971a9dd9be1f9716e6f7c23b959bd57079cd93eb
[ "MIT" ]
null
null
null
import os import sys import json import datetime import numpy as np import glob import skimage from PIL import Image as pil_image import cv2 import cv2 def locationToMask(locations=None,height=None,width=None): mask = np.zeros([height, width, len(locations)], dtype=np.uint8) for ...
18.488189
77
0.559199
0
0
0
0
0
0
0
0
382
0.162692
4c49c1d6c63daaf7fca0ba56abe4608634b5eea3
371
py
Python
myBeautifulSoup.py
ZhongXinWang/python
4cf3ecdc9d9e811e777c6d8408a8319097cfdec3
[ "Apache-2.0" ]
null
null
null
myBeautifulSoup.py
ZhongXinWang/python
4cf3ecdc9d9e811e777c6d8408a8319097cfdec3
[ "Apache-2.0" ]
null
null
null
myBeautifulSoup.py
ZhongXinWang/python
4cf3ecdc9d9e811e777c6d8408a8319097cfdec3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- #Author:Winston.Wang import requests from bs4 import BeautifulSoup print(dir(BeautifulSoup)) url = 'http://www.baidu.com'; with requests.get(url) as r: r.encoding='utf-8' soup = BeautifulSoup(r.text) #格式化 pret = soup.prettify(); u = soup.select('#u1 a') for i in u: ...
24.733333
52
0.660377
0
0
0
0
0
0
0
0
140
0.361757
4c4aaf6acc32d2b6cfe7656b0adf41a02eba514c
869
py
Python
blogsNewsModule/urls.py
adityakekare/NewsAPIDjango
47ff0c69e3d48c10a257c8221916ccd2fdaf9abb
[ "MIT" ]
1
2020-10-14T17:13:45.000Z
2020-10-14T17:13:45.000Z
blogsNewsModule/urls.py
adityakekare/NewsAPIDjango
47ff0c69e3d48c10a257c8221916ccd2fdaf9abb
[ "MIT" ]
null
null
null
blogsNewsModule/urls.py
adityakekare/NewsAPIDjango
47ff0c69e3d48c10a257c8221916ccd2fdaf9abb
[ "MIT" ]
null
null
null
from django.urls import path, include from . import views urlpatterns = [ path("", views.newsView, name="home"), path("createBlog", views.CreateBlogView.as_view(), name="createBlog"), path("myBlogs", views.PostListView.as_view(), name="myBlogs"), path("single/<int:pk>", views.PostDetailView.as_view(), ...
41.380952
75
0.667434
0
0
0
0
0
0
0
0
252
0.289988
4c4ab4331dee2d296afdfa6d9310db62fe1c4c93
3,133
py
Python
unitClass.py
MatthewZheng/UnitsPlease
5911267b5a0a78dd4d833c6be46e89caaf98c200
[ "MIT" ]
null
null
null
unitClass.py
MatthewZheng/UnitsPlease
5911267b5a0a78dd4d833c6be46e89caaf98c200
[ "MIT" ]
null
null
null
unitClass.py
MatthewZheng/UnitsPlease
5911267b5a0a78dd4d833c6be46e89caaf98c200
[ "MIT" ]
null
null
null
#!/usr/bin/python _author_ = "Matthew Zheng" _purpose_ = "Sets up the unit class" class Unit: '''This is a class of lists''' def __init__(self): self.baseUnits = ["m", "kg", "A", "s", "K", "mol", "cd", "sr", "rad"] self.derivedUnits = ["Hz", "N", "Pa", "J", "W", "C", "V", "F", "ohm", "S", "Wb",...
42.917808
192
0.509416
3,050
0.973197
0
0
0
0
0
0
1,033
0.329611
4c4be3eb705a80e6147920908a86da5673e90f59
918
py
Python
week4/string_format.py
MathAdventurer/Data_Mining
b0a06b5f7c13a3762a07eb84518aa4ee56896516
[ "MIT" ]
1
2021-02-27T18:35:39.000Z
2021-02-27T18:35:39.000Z
week4/string_format.py
MathAdventurer/Data_Mining
b0a06b5f7c13a3762a07eb84518aa4ee56896516
[ "MIT" ]
null
null
null
week4/string_format.py
MathAdventurer/Data_Mining
b0a06b5f7c13a3762a07eb84518aa4ee56896516
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Feb 26 22:23:07 2020 @author: Neal LONG Try to construct URL with string.format """ base_url = "http://quotes.money.163.com/service/gszl_{:>06}.html?type={}" stock = "000002" api_type = 'cp' print("http://quotes.money.163.com/service/gszl_"+stock+".html?type="...
27
80
0.623094
0
0
0
0
0
0
0
0
571
0.622004
4c4da9a43e106d41a3befb2cd7c5b3dab87492dd
274
py
Python
conans/server/server_launcher.py
Wonders11/conan
28ec09f6cbf1d7e27ec27393fd7bbc74891e74a8
[ "MIT" ]
6,205
2015-12-01T13:40:05.000Z
2022-03-31T07:30:25.000Z
conans/server/server_launcher.py
Wonders11/conan
28ec09f6cbf1d7e27ec27393fd7bbc74891e74a8
[ "MIT" ]
8,747
2015-12-01T16:28:48.000Z
2022-03-31T23:34:53.000Z
conans/server/server_launcher.py
Mattlk13/conan
005fc53485557b0a570bb71670f2ca9c66082165
[ "MIT" ]
961
2015-12-01T16:56:43.000Z
2022-03-31T13:50:52.000Z
from conans.server.launcher import ServerLauncher from conans.util.env_reader import get_env launcher = ServerLauncher(server_dir=get_env("CONAN_SERVER_HOME")) app = launcher.server.root_app def main(*args): launcher.launch() if __name__ == "__main__": main()
18.266667
66
0.762774
0
0
0
0
0
0
0
0
29
0.105839
4c4dd7e5ec767d2a5876ed8c611d8ac4661dfd09
153,586
py
Python
sdk/videoanalyzer/azure-mgmt-videoanalyzer/azure/mgmt/videoanalyzer/models/_models.py
praveenkuttappan/azure-sdk-for-python
4b79413667b7539750a6c7dde15737013a3d4bd5
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/videoanalyzer/azure-mgmt-videoanalyzer/azure/mgmt/videoanalyzer/models/_models.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/videoanalyzer/azure-mgmt-videoanalyzer/azure/mgmt/videoanalyzer/models/_models.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 ...
38.473447
815
0.658563
152,726
0.994401
0
0
0
0
0
0
106,388
0.692693
4c4fedd0e6fc912cf1a282846b6e90c655a094c7
69,123
py
Python
blender/arm/material/cycles.py
philipmduarte/armory
675211c66a1e49147226ccb472a6f5dc87b7db02
[ "Zlib" ]
1
2021-03-17T05:51:45.000Z
2021-03-17T05:51:45.000Z
blender/arm/material/cycles.py
philipmduarte/armory
675211c66a1e49147226ccb472a6f5dc87b7db02
[ "Zlib" ]
null
null
null
blender/arm/material/cycles.py
philipmduarte/armory
675211c66a1e49147226ccb472a6f5dc87b7db02
[ "Zlib" ]
null
null
null
# # This module builds upon Cycles nodes work licensed as # Copyright 2011-2013 Blender Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2...
39.207601
185
0.567568
0
0
0
0
0
0
0
0
16,641
0.240745
4c4ffee559cb6b71ce9c01f453a956254f1cdb8a
9,981
py
Python
src/config.py
Jizanator/botty
3026de0d4c03f4e797ed92dedb8fdfdf9cf1462e
[ "MIT" ]
null
null
null
src/config.py
Jizanator/botty
3026de0d4c03f4e797ed92dedb8fdfdf9cf1462e
[ "MIT" ]
null
null
null
src/config.py
Jizanator/botty
3026de0d4c03f4e797ed92dedb8fdfdf9cf1462e
[ "MIT" ]
null
null
null
import configparser import numpy as np import os class Config: def _select_val(self, section: str, key: str = None): if section in self._custom and key in self._custom[section]: return self._custom[section][key] elif section in self._config: return self._config[se...
55.45
164
0.616772
9,260
0.927763
0
0
0
0
0
0
3,590
0.359683
4c50b18cade6c81fd3dffac9c31804d4407603cf
19,446
py
Python
aps/transform/utils.py
haoxiangsnr/aps
38f77139b54553b0cb04b26a833bebbbf3177c5e
[ "Apache-2.0" ]
2
2021-06-17T20:29:02.000Z
2021-09-18T01:56:36.000Z
aps/transform/utils.py
haoxiangsnr/aps
38f77139b54553b0cb04b26a833bebbbf3177c5e
[ "Apache-2.0" ]
null
null
null
aps/transform/utils.py
haoxiangsnr/aps
38f77139b54553b0cb04b26a833bebbbf3177c5e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Jian Wu # License: Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) import math import numpy as np import torch as th import torch.nn as nn import torch.nn.functional as tf import librosa.filters as filters from aps.const import EPSILON from typing import Optional, Union, Tuple def init_win...
34.849462
121
0.538671
4,325
0.222411
0
0
0
0
0
0
6,964
0.35812
4c517119112a50b7dbf0616dc32615e3180ecafa
3,427
py
Python
applications/tensorflow/cnns/models/resnet.py
xihuaiwen/chinese_bert
631afbc76c40b0ac033be2186e717885246f446c
[ "MIT" ]
null
null
null
applications/tensorflow/cnns/models/resnet.py
xihuaiwen/chinese_bert
631afbc76c40b0ac033be2186e717885246f446c
[ "MIT" ]
null
null
null
applications/tensorflow/cnns/models/resnet.py
xihuaiwen/chinese_bert
631afbc76c40b0ac033be2186e717885246f446c
[ "MIT" ]
null
null
null
# Copyright 2019 Graphcore Ltd. from models.resnet_base import ResNet import tensorflow.compat.v1 as tf import tensorflow.contrib as contrib from tensorflow.python.ipu import normalization_ops # This is all written for: NHWC class TensorflowResNet(ResNet): def __init__(self, *args, **kwargs): self.dtype...
38.505618
101
0.569594
3,197
0.932886
0
0
0
0
0
0
187
0.054567
4c545b9b4e257d67ea1869f9e75cf7e1b7bca4c8
613
py
Python
backend/app/migrations/0021_auto_20201205_1846.py
mareknowak98/AuctionPortal
0059fec07d51c6942b8af73cb8c4f9962c21fc97
[ "MIT" ]
null
null
null
backend/app/migrations/0021_auto_20201205_1846.py
mareknowak98/AuctionPortal
0059fec07d51c6942b8af73cb8c4f9962c21fc97
[ "MIT" ]
null
null
null
backend/app/migrations/0021_auto_20201205_1846.py
mareknowak98/AuctionPortal
0059fec07d51c6942b8af73cb8c4f9962c21fc97
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2020-12-05 18:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0020_auto_20201204_2324'), ] operations = [ migrations.AlterField( model_name='profile', name='profileBankAcc...
25.541667
73
0.60522
520
0.848287
0
0
0
0
0
0
141
0.230016
4c551d5c25c26d348d1738fdb22529ee094e17ed
8,942
py
Python
rawcdf_extract.py
bedaro/ssm-analysis
09880dbfa5733d6301b84accc8f42a5ee320d698
[ "MIT" ]
null
null
null
rawcdf_extract.py
bedaro/ssm-analysis
09880dbfa5733d6301b84accc8f42a5ee320d698
[ "MIT" ]
null
null
null
rawcdf_extract.py
bedaro/ssm-analysis
09880dbfa5733d6301b84accc8f42a5ee320d698
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import time import os import tempfile import shutil import logging from enum import Enum from argparse import ArgumentParser, Namespace, FileType from netCDF4 import Dataset, MFDataset import geopandas as gpd import numpy as np domain_nodes_shp = "gis/ssm domain nodes.shp" masked_nodes_txt = "g...
40.461538
117
0.64225
93
0.0104
132
0.014762
0
0
0
0
2,388
0.267054
4c55251ed58f769e9fbe55114b14a016770952cb
1,075
py
Python
libcity/executor/map_matching_executor.py
nadiaaaaachen/Bigscity-LibCity
d8efd38fcc238e3ba518c559cc9f65b49efaaf71
[ "Apache-2.0" ]
1
2021-11-22T12:22:32.000Z
2021-11-22T12:22:32.000Z
libcity/executor/map_matching_executor.py
yuanhaitao/Bigscity-LibCity
9670c6a2f26043bb8d9cc1715780bb599cce2cd5
[ "Apache-2.0" ]
null
null
null
libcity/executor/map_matching_executor.py
yuanhaitao/Bigscity-LibCity
9670c6a2f26043bb8d9cc1715780bb599cce2cd5
[ "Apache-2.0" ]
null
null
null
from logging import getLogger from libcity.executor.abstract_tradition_executor import AbstractTraditionExecutor from libcity.utils import get_evaluator class MapMatchingExecutor(AbstractTraditionExecutor): def __init__(self, config, model): self.model = model self.config = config self.ev...
29.861111
94
0.652093
943
0.858053
0
0
0
0
0
0
357
0.324841
4c55a30419a518ea1054e9871ae5c2c7cf5db9f5
307
py
Python
project1/budget/migrations/0005_delete_hiddenstatus_budget.py
sujeethiremath/Project-1
7f0bff66287d479e231e123615f2df18f9107178
[ "MIT" ]
null
null
null
project1/budget/migrations/0005_delete_hiddenstatus_budget.py
sujeethiremath/Project-1
7f0bff66287d479e231e123615f2df18f9107178
[ "MIT" ]
null
null
null
project1/budget/migrations/0005_delete_hiddenstatus_budget.py
sujeethiremath/Project-1
7f0bff66287d479e231e123615f2df18f9107178
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2020-04-08 00:08 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('budget', '0004_auto_20200407_2356'), ] operations = [ migrations.DeleteModel( name='HiddenStatus_Budget', ), ]
18.058824
47
0.618893
222
0.723127
0
0
0
0
0
0
101
0.32899
4c55bbb06ea35dd59d573da6a8f782da8c81fbf2
3,548
py
Python
tutorial/43.py
mssung94/daishin-trading-system
d6682495afb7a08e68db65537b1d1789f2996891
[ "MIT" ]
2
2020-11-21T08:45:26.000Z
2020-11-21T08:50:56.000Z
tutorial/43.py
mssung94/daishin-trading-system
d6682495afb7a08e68db65537b1d1789f2996891
[ "MIT" ]
null
null
null
tutorial/43.py
mssung94/daishin-trading-system
d6682495afb7a08e68db65537b1d1789f2996891
[ "MIT" ]
null
null
null
# 대신증권 API # 데이터 요청 방법 2가지 BlockRequest 와 Request 방식 비교 예제 # 플러스 API 에서 데이터를 요청하는 방법은 크게 2가지가 있습니다 # # BlockRequest 방식 - 가장 간단하게 데이터 요청해서 수신 가능 # Request 호출 후 Received 이벤트로 수신 받기 # # 아래는 위 2가지를 비교할 수 있도록 만든 예제 코드입니다 # 일반적인 데이터 요청에는 BlockRequest 방식이 가장 간단합니다 # 다만, BlockRequest 함수 내에서도 동일 하게 메시지펌핑을 하고 있어 해당 ...
31.39823
84
0.590755
748
0.179033
0
0
0
0
0
0
2,080
0.497846
4c55db68c1c667219febb6705164366e8f8c7adb
18,439
py
Python
ADPTC_LIB/DPTree_ST.py
SuilandCoder/ADPTC_LIB
ef5c2b7fcf117c8c90a3841489471289ecbf4562
[ "MIT" ]
null
null
null
ADPTC_LIB/DPTree_ST.py
SuilandCoder/ADPTC_LIB
ef5c2b7fcf117c8c90a3841489471289ecbf4562
[ "MIT" ]
null
null
null
ADPTC_LIB/DPTree_ST.py
SuilandCoder/ADPTC_LIB
ef5c2b7fcf117c8c90a3841489471289ecbf4562
[ "MIT" ]
null
null
null
#%% import numpy as np import copy import matplotlib.pyplot as plt import time def split_cluster_new(tree,local_density,dc_eps,closest_denser_nodes_id,mixin_near_matrix): ''' dc_eps: density_connectivity 阈值 使用父子节点的直接距离,与子节点与兄弟节点的连通距离进行聚簇划分; 使用平均密度划分outlier 返回: outlier_f...
38.575314
186
0.633548
11,101
0.566927
0
0
0
0
0
0
3,557
0.181656
4c56a26b957f0f1d768b5949bae27c075bbc9817
10,280
py
Python
datasets/tao/tao.py
Nik-V9/AirObject
5937e64531f08449e81d2c90e3c6643727efbaf0
[ "BSD-3-Clause" ]
9
2022-03-15T17:28:48.000Z
2022-03-29T12:32:28.000Z
datasets/tao/tao.py
Nik-V9/AirObject
5937e64531f08449e81d2c90e3c6643727efbaf0
[ "BSD-3-Clause" ]
1
2022-03-29T06:03:14.000Z
2022-03-29T13:38:29.000Z
datasets/tao/tao.py
Nik-V9/AirObject
5937e64531f08449e81d2c90e3c6643727efbaf0
[ "BSD-3-Clause" ]
1
2022-03-15T19:34:06.000Z
2022-03-15T19:34:06.000Z
from __future__ import print_function import sys sys.path.append('.') import os from typing import Optional, Union import cv2 import numpy as np import PIL.Image as Image import pickle import torch from torch.utils import data __all__ = ["TAO"] class TAO(data.Dataset): r"""A torch Dataset for loading in `the TA...
41.788618
135
0.569163
10,229
0.976236
0
0
0
0
0
0
4,228
0.403512
4c573a085ee0bd360c33de2b14ef3c06c724afc8
2,572
py
Python
Platforms/Web/Processing/Api/Discord/Configs/Quotedisabledchannels/errors.py
The-CJ/Phaazebot
83a9563d210718071d4e2cdcca3b212c87abaf51
[ "MIT" ]
2
2017-09-14T08:07:55.000Z
2021-05-18T05:05:05.000Z
Platforms/Web/Processing/Api/Discord/Configs/Quotedisabledchannels/errors.py
The-CJ/Phaazebot
83a9563d210718071d4e2cdcca3b212c87abaf51
[ "MIT" ]
111
2018-04-15T14:32:14.000Z
2021-03-28T21:06:29.000Z
Platforms/Web/Processing/Api/Discord/Configs/Quotedisabledchannels/errors.py
The-CJ/Phaazebot
83a9563d210718071d4e2cdcca3b212c87abaf51
[ "MIT" ]
1
2018-04-15T13:24:44.000Z
2018-04-15T13:24:44.000Z
from typing import TYPE_CHECKING if TYPE_CHECKING: from Platforms.Web.main_web import PhaazebotWeb import json from aiohttp.web import Response from Utils.Classes.extendedrequest import ExtendedRequest async def apiDiscordConfigsQuoteDisabledChannelExists(cls:"PhaazebotWeb", WebRequest:ExtendedRequest, **kwargs) -> ...
28.577778
127
0.691291
0
0
0
0
0
0
2,364
0.919129
1,225
0.476283
4c59684045a1dab8436432732a93183e33f7d39d
3,853
py
Python
augmentation/ISDA.py
RichardScottOZ/sota-data-augmentation-and-optimizers
60128ca762ac2864a3b54c43c36d1d5aa2033e5a
[ "MIT" ]
31
2020-01-14T20:03:31.000Z
2022-01-07T08:02:09.000Z
augmentation/ISDA.py
RichardScottOZ/sota-data-augmentation-and-optimizers
60128ca762ac2864a3b54c43c36d1d5aa2033e5a
[ "MIT" ]
null
null
null
augmentation/ISDA.py
RichardScottOZ/sota-data-augmentation-and-optimizers
60128ca762ac2864a3b54c43c36d1d5aa2033e5a
[ "MIT" ]
6
2020-03-04T09:31:45.000Z
2021-11-21T18:47:15.000Z
import torch import torch.nn as nn class EstimatorCV(): def __init__(self, feature_num, class_num): super(EstimatorCV, self).__init__() self.class_num = class_num self.CoVariance = torch.zeros(class_num, feature_num, feature_num)#.cuda() self.Ave = torch.zeros(class_num, feature_nu...
29.868217
104
0.536465
3,812
0.989359
0
0
0
0
0
0
233
0.060472
4c59cbad1a1c628d8be0abf3472039d2b0fe36c6
22,828
py
Python
netpyne/plotting/plotter.py
sanjayankur31/netpyne
d8b7e94cabeb27e23e30853ff17ae86518b35ac2
[ "MIT" ]
null
null
null
netpyne/plotting/plotter.py
sanjayankur31/netpyne
d8b7e94cabeb27e23e30853ff17ae86518b35ac2
[ "MIT" ]
null
null
null
netpyne/plotting/plotter.py
sanjayankur31/netpyne
d8b7e94cabeb27e23e30853ff17ae86518b35ac2
[ "MIT" ]
null
null
null
""" Module for plotting analyses """ import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np from copy import deepcopy import pickle, json import os from matplotlib.offsetbox import AnchoredOffsetbox try: basestring except NameError: basestring = str colorList = [[0.42, 0.67, 0.84], [0....
34.535552
376
0.56987
19,548
0.856317
0
0
0
0
0
0
4,602
0.201595
4c5b0cb42835f92d5cfa623b7b0648900462ba33
1,069
py
Python
examples/simpleWiki.py
klahnakoski/mo-parsing
885bf3fd61430d5fa15164168b975b18988fcf9e
[ "MIT" ]
1
2021-10-30T21:18:29.000Z
2021-10-30T21:18:29.000Z
examples/simpleWiki.py
klahnakoski/mo-parsing
885bf3fd61430d5fa15164168b975b18988fcf9e
[ "MIT" ]
22
2020-04-15T14:49:30.000Z
2021-12-22T02:49:52.000Z
examples/simpleWiki.py
klahnakoski/mo-parsing
885bf3fd61430d5fa15164168b975b18988fcf9e
[ "MIT" ]
null
null
null
from mo_parsing.helpers import QuotedString wikiInput = """ Here is a simple Wiki input: *This is in italics.* **This is in bold!** ***This is in bold italics!*** Here's a URL to {{Pyparsing's Wiki Page->https://site-closed.wikispaces.com}} """ def convertToHTML(opening, closing): def convers...
28.131579
91
0.635173
0
0
0
0
0
0
0
0
317
0.296539
4c5b215bf00e243da89ca4e94c55e9e94a7ff44a
9,885
py
Python
tests/test_app_settings_dict.py
wheelercj/app_settings
06224dec0b5baf1eeb92e5a81ca4e8385d4942a6
[ "MIT" ]
null
null
null
tests/test_app_settings_dict.py
wheelercj/app_settings
06224dec0b5baf1eeb92e5a81ca4e8385d4942a6
[ "MIT" ]
null
null
null
tests/test_app_settings_dict.py
wheelercj/app_settings
06224dec0b5baf1eeb92e5a81ca4e8385d4942a6
[ "MIT" ]
null
null
null
import pytest import re from typing import Any, Tuple from dataclasses import dataclass from app_settings_dict import Settings def test_simple_settings() -> None: settings = Settings( settings_file_path="C:/Users/chris/Documents/sample_settings_file_name.json", default_factories={ "key...
27.84507
86
0.527466
170
0.017198
0
0
185
0.018715
0
0
2,407
0.2435
4c5b696f9bc64bbbc8bda141e564e9a8de0891a8
5,910
py
Python
demo/demo_FSANET_ssd.py
jacke121/FSA-Net
c4d60bd38e9d17b0ea33d824ec443a01bdeba015
[ "Apache-2.0" ]
null
null
null
demo/demo_FSANET_ssd.py
jacke121/FSA-Net
c4d60bd38e9d17b0ea33d824ec443a01bdeba015
[ "Apache-2.0" ]
null
null
null
demo/demo_FSANET_ssd.py
jacke121/FSA-Net
c4d60bd38e9d17b0ea33d824ec443a01bdeba015
[ "Apache-2.0" ]
null
null
null
import os import time import cv2 import sys sys.path.append('..') import numpy as np from math import cos, sin from lib.FSANET_model import * import numpy as np from keras.layers import Average def draw_axis(img, yaw, pitch, roll, tdx=None, tdy=None, size = 50): print(yaw,roll,pitch) pitch = pitch * np.pi /...
34.16185
122
0.577496
0
0
0
0
0
0
0
0
1,142
0.193232
4c5b93a68b2014eb34642b9dabeaf09a9053d01e
5,118
py
Python
examples/app_commands/slash_autocomplete.py
Mihitoko/pycord
137c1474eed5fb4273e542bd22ad76764a8712fc
[ "MIT" ]
null
null
null
examples/app_commands/slash_autocomplete.py
Mihitoko/pycord
137c1474eed5fb4273e542bd22ad76764a8712fc
[ "MIT" ]
null
null
null
examples/app_commands/slash_autocomplete.py
Mihitoko/pycord
137c1474eed5fb4273e542bd22ad76764a8712fc
[ "MIT" ]
1
2022-02-20T09:10:40.000Z
2022-02-20T09:10:40.000Z
import discord from discord.commands import option bot = discord.Bot(debug_guilds=[...]) COLORS = ["red", "orange", "yellow", "green", "blue", "indigo", "violet"] LOTS_OF_COLORS = [ "aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige", "bisque", "blueviolet", "brown...
27.079365
112
0.657679
0
0
0
0
2,025
0.395662
2,852
0.557249
3,085
0.602775
4c5bad7796ac5e7201e5d6fb5312abee3b503a5c
11,522
py
Python
tools/Networking/sybil_block_no_ban.py
simewu/bitcoin_researcher
b9fd2efdb8ae8467c5bd4b3320713a541635df16
[ "MIT" ]
1
2020-02-15T21:44:04.000Z
2020-02-15T21:44:04.000Z
tools/Networking/sybil_block_no_ban.py
SimeoW/bitcoin
3644405f06c8b16a437513e8c02f0f061b91be2e
[ "MIT" ]
null
null
null
tools/Networking/sybil_block_no_ban.py
SimeoW/bitcoin
3644405f06c8b16a437513e8c02f0f061b91be2e
[ "MIT" ]
null
null
null
from _thread import start_new_thread from bitcoin.messages import * from bitcoin.net import CAddress from bitcoin.core import CBlock from io import BytesIO as _BytesIO import atexit import bitcoin import fcntl import hashlib import json import os import random import re import socket import struct import sys import tim...
34.497006
359
0.743881
0
0
0
0
0
0
0
0
5,543
0.48108
4c5c39c5c86dfe51c79bcbc35385263a0ba508a1
1,638
py
Python
spider/db.py
aloneZERO/douban-movie-visualization
8e59c4d0b00df1b240a5dce09093ae4984fd7118
[ "WTFPL" ]
null
null
null
spider/db.py
aloneZERO/douban-movie-visualization
8e59c4d0b00df1b240a5dce09093ae4984fd7118
[ "WTFPL" ]
null
null
null
spider/db.py
aloneZERO/douban-movie-visualization
8e59c4d0b00df1b240a5dce09093ae4984fd7118
[ "WTFPL" ]
null
null
null
#!python3 ''' 数据库操作类 author: justZero email: [email protected] date: 2017-8-6 ''' import time import pandas as pd import numpy as np import pymysql import pymysql.cursors import pprint class MySQLdb(object): def __init__(self): self.conn = pymysql.connect( host='localho...
25.2
156
0.566545
1,171
0.696195
0
0
0
0
0
0
484
0.287753
4c5d1777ffd1452788619a58c2a3c09a88985225
2,077
py
Python
examples/rxff-serial/run.py
sctiwari/EZFF_ASE
94710d4cf778ff2db5e6df0cd6d10d92e1b98afe
[ "MIT" ]
3
2019-01-22T21:22:09.000Z
2019-04-02T22:50:40.000Z
examples/rxff-serial/run.py
ElsevierSoftwareX/SOFTX-D-20-00066
b43f8bbb1321d7ed3eeec4f8bb894fe431779433
[ "MIT" ]
14
2019-01-14T18:33:15.000Z
2019-07-08T22:10:11.000Z
examples/rxff-serial/run.py
ElsevierSoftwareX/SOFTX-D-20-00066
b43f8bbb1321d7ed3eeec4f8bb894fe431779433
[ "MIT" ]
3
2019-03-24T23:43:13.000Z
2021-09-12T13:45:08.000Z
import ezff from ezff.interfaces import gulp, qchem # Define ground truths gt_gs = qchem.read_structure('ground_truths/optCHOSx.out') gt_gs_energy = qchem.read_energy('ground_truths/optCHOSx.out') gt_scan = qchem.read_structure('ground_truths/scanCHOSx.out') gt_scan_energy = qchem.read_energy('ground_truths/scanCHOSx....
37.763636
124
0.735676
0
0
0
0
0
0
0
0
590
0.284064
4c5db4db71b2cfe512dcdca6c87e641cb929544e
2,288
py
Python
dev_files/utils.py
dylanwal/unit_parse
07a74d43b9f161bd7ad6ef12ab0f362f1bf6a90d
[ "BSD-3-Clause" ]
1
2022-01-29T17:14:40.000Z
2022-01-29T17:14:40.000Z
dev_files/utils.py
dylanwal/unit_parse
07a74d43b9f161bd7ad6ef12ab0f362f1bf6a90d
[ "BSD-3-Clause" ]
null
null
null
dev_files/utils.py
dylanwal/unit_parse
07a74d43b9f161bd7ad6ef12ab0f362f1bf6a90d
[ "BSD-3-Clause" ]
null
null
null
import logging from testing_func import testing_func, test_logger from unit_parse import logger, Unit, Q from unit_parse.utils import * test_logger.setLevel(logging.DEBUG) logger.setLevel(logging.DEBUG) test_split_list = [ # positive control (changes) [["fish","pig", "cow"], ["f", "is", "h", "pig", "cow"], ...
27.566265
89
0.542832
0
0
0
0
0
0
0
0
784
0.342657
4c5e8dbae6d19592874e45bede3206b69cd9c042
594
py
Python
genlicense.py
d53dave/python-crypto-licensecheck
d11612612ea54a5418fd8dbba9212a9c84c56f22
[ "CNRI-Python", "RSA-MD" ]
null
null
null
genlicense.py
d53dave/python-crypto-licensecheck
d11612612ea54a5418fd8dbba9212a9c84c56f22
[ "CNRI-Python", "RSA-MD" ]
null
null
null
genlicense.py
d53dave/python-crypto-licensecheck
d11612612ea54a5418fd8dbba9212a9c84c56f22
[ "CNRI-Python", "RSA-MD" ]
null
null
null
import sys from Crypto.Signature import pkcs1_15 from Crypto.Hash import SHA256 from Crypto.PublicKey import RSA def sign_data(key, data, output_file): with open(key, 'r', encoding='utf-8') as keyFile: rsakey = RSA.importKey(keyFile.read()) signer = pkcs1_15.new(rsakey) digest = SHA256.new...
28.285714
53
0.66835
0
0
0
0
0
0
0
0
31
0.052189
4c5f21108bc3014442b8b88f1279054fc89706f5
5,302
py
Python
freqtrade/strategy/informative_decorator.py
Fractate/freqbot
47b35d2320dc97977411454c1466c762d339fdee
[ "MIT" ]
1
2022-03-06T22:44:30.000Z
2022-03-06T22:44:30.000Z
freqtrade/strategy/informative_decorator.py
Fractate/freqbot
47b35d2320dc97977411454c1466c762d339fdee
[ "MIT" ]
null
null
null
freqtrade/strategy/informative_decorator.py
Fractate/freqbot
47b35d2320dc97977411454c1466c762d339fdee
[ "MIT" ]
1
2021-09-22T23:28:21.000Z
2021-09-22T23:28:21.000Z
from typing import Any, Callable, NamedTuple, Optional, Union from pandas import DataFrame from freqtrade.exceptions import OperationalException from freqtrade.strategy.strategy_helper import merge_informative_pair PopulateIndicators = Callable[[Any, DataFrame, dict], DataFrame] class InformativeData(NamedTuple):...
41.100775
100
0.656733
142
0.026782
0
0
0
0
0
0
2,408
0.454168
4c60db4ddf2f272ea38921358d511b5e55303545
835
py
Python
codigo_das_aulas/aula_09/aula_09_03.py
VeirichR/curso-python-selenium
9b9107a64adb4e6bcf10c76287e0b4cc7d024321
[ "CC0-1.0" ]
234
2020-04-03T02:59:30.000Z
2022-03-27T15:29:21.000Z
codigo_das_aulas/aula_09/aula_09_03.py
VeirichR/curso-python-selenium
9b9107a64adb4e6bcf10c76287e0b4cc7d024321
[ "CC0-1.0" ]
8
2020-04-20T11:20:43.000Z
2021-08-18T16:41:15.000Z
codigo_das_aulas/aula_09/aula_09_03.py
VeirichR/curso-python-selenium
9b9107a64adb4e6bcf10c76287e0b4cc7d024321
[ "CC0-1.0" ]
77
2020-04-03T13:25:19.000Z
2022-02-24T15:31:26.000Z
from functools import partial from selenium.webdriver import Firefox from selenium.webdriver.support.ui import ( WebDriverWait ) def esperar_elemento(elemento, webdriver): print(f'Tentando encontrar "{elemento}"') if webdriver.find_elements_by_css_selector(elemento): return True return False ...
21.973684
58
0.762874
0
0
0
0
0
0
0
0
193
0.230585
4c6108b6c6b2c6296484cdaaf51540f0a9efca44
1,470
py
Python
prae/losses.py
irom-lab/RL_Generalization
82add6898ee2e962a3aa5efedf80821a013eae7f
[ "MIT" ]
24
2020-06-30T11:43:38.000Z
2021-11-15T22:58:47.000Z
prae/losses.py
irom-lab/RL_Generalization
82add6898ee2e962a3aa5efedf80821a013eae7f
[ "MIT" ]
null
null
null
prae/losses.py
irom-lab/RL_Generalization
82add6898ee2e962a3aa5efedf80821a013eae7f
[ "MIT" ]
4
2020-10-15T10:54:18.000Z
2021-05-25T07:38:14.000Z
import torch from torch import nn from prae.distances import square_dist, HingedSquaredEuclidean class Loss(nn.Module): """ """ def __init__(self, hinge, neg=True, rew=True): """ """ super().__init__() self.reward_loss = square_dist # If False, no negative sampling ...
24.098361
86
0.586395
1,050
0.714286
0
0
0
0
0
0
165
0.112245
4c61ecd42ed59f6a2c7fd49a38719e52edaf2a1f
845
py
Python
orion/modules/active/wolfram.py
isathish/ai_opesource
cdccd882306c45712fcdd40e15937b5a9571028a
[ "MIT" ]
null
null
null
orion/modules/active/wolfram.py
isathish/ai_opesource
cdccd882306c45712fcdd40e15937b5a9571028a
[ "MIT" ]
null
null
null
orion/modules/active/wolfram.py
isathish/ai_opesource
cdccd882306c45712fcdd40e15937b5a9571028a
[ "MIT" ]
null
null
null
""" Handles most general questions (including math!) Requires: - WolframAlpha API key Usage Examples: - "How tall is Mount Everest?" - "What is the derivative of y = 2x?" """ import wolframalpha from orion.classes.module import Module from orion.classes.task import ActiveTask from orion i...
21.666667
68
0.639053
435
0.514793
0
0
0
0
0
0
206
0.243787
4c624ee7a6d344a15a579b043c3cb6fef1c9aa3b
1,035
py
Python
polymatch/matchers/standard.py
linuxdaemon/poly-match
66d967999de982d5ee9463c46b0ff8040d91dc67
[ "MIT" ]
null
null
null
polymatch/matchers/standard.py
linuxdaemon/poly-match
66d967999de982d5ee9463c46b0ff8040d91dc67
[ "MIT" ]
26
2020-05-13T17:46:45.000Z
2022-03-18T16:07:14.000Z
polymatch/matchers/standard.py
TotallyNotRobots/poly-match
66d967999de982d5ee9463c46b0ff8040d91dc67
[ "MIT" ]
null
null
null
from polymatch import PolymorphicMatcher class ExactMatcher(PolymorphicMatcher): def compile_pattern(self, raw_pattern): return raw_pattern def compile_pattern_cs(self, raw_pattern): return raw_pattern def compile_pattern_ci(self, raw_pattern): return raw_pattern.lower() def...
23.522727
46
0.696618
988
0.954589
0
0
119
0.114976
0
0
17
0.016425
4c6289a028d756ccd03ac220d11a9d33117ee573
6,530
py
Python
djcorsche/settings_default.py
carthage-college/django-djcorsche
c43db6e634f5b3fc9c8b0cff80ced8382ca6643c
[ "BSD-3-Clause" ]
null
null
null
djcorsche/settings_default.py
carthage-college/django-djcorsche
c43db6e634f5b3fc9c8b0cff80ced8382ca6643c
[ "BSD-3-Clause" ]
null
null
null
djcorsche/settings_default.py
carthage-college/django-djcorsche
c43db6e634f5b3fc9c8b0cff80ced8382ca6643c
[ "BSD-3-Clause" ]
null
null
null
""" Django settings for project. """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) import os # Debug #DEBUG = False DEBUG = True TEMPLATE_DEBUG = DEBUG INFORMIX_DEBUG = "debug" ADMINS = ( ('', ''), ) MANAGERS = ADMINS SECRET_KEY = '' ALLOWED_HOSTS = [] LANGUAGE_CODE = 'en-us' TIME_ZONE...
27.552743
96
0.620214
0
0
0
0
0
0
0
0
3,590
0.54977
4c6339b396838bba425536d8c48a53a76850151f
956
py
Python
records/12-09/ffff.py
AaronYang2333/CSCI_570
03e34ce5ff192fc94612bc3afb51dcab3e854462
[ "Apache-2.0" ]
36
2020-07-25T00:13:25.000Z
2022-02-28T17:48:15.000Z
records/12-09/ffff.py
AaronYang2333/LeetCode
03e34ce5ff192fc94612bc3afb51dcab3e854462
[ "Apache-2.0" ]
6
2020-06-06T04:39:37.000Z
2021-04-03T01:45:39.000Z
records/12-09/ffff.py
AaronYang2333/LeetCode
03e34ce5ff192fc94612bc3afb51dcab3e854462
[ "Apache-2.0" ]
16
2020-12-16T02:38:16.000Z
2022-02-28T17:48:16.000Z
__author__ = 'Aaron Yang' __email__ = '[email protected]' __date__ = '12/9/2020 4:18 PM' from abc import abstractmethod class Product(object): @abstractmethod def setMsg(self, msg="default info"): self.msg = msg @abstractmethod def info(self): print(self.msg) class DefaultObj(Produ...
16.20339
41
0.624477
640
0.669456
0
0
205
0.214435
0
0
95
0.099372
4c63d036bfd0e51ade860a3521aecee117e88f7d
7,064
py
Python
tests/test_users.py
fastapi-users/fastapi-users-db-sqlmodel
3a46b80399f129aa07a834a1b40bf49d08c37be1
[ "MIT" ]
18
2021-09-09T09:35:30.000Z
2022-03-19T04:58:17.000Z
tests/test_users.py
fastapi-users/fastapi-users-db-sqlmodel
3a46b80399f129aa07a834a1b40bf49d08c37be1
[ "MIT" ]
null
null
null
tests/test_users.py
fastapi-users/fastapi-users-db-sqlmodel
3a46b80399f129aa07a834a1b40bf49d08c37be1
[ "MIT" ]
3
2021-11-01T16:58:54.000Z
2022-02-15T16:17:11.000Z
import uuid from typing import AsyncGenerator import pytest from sqlalchemy import exc from sqlalchemy.ext.asyncio import AsyncSession, create_async_engine from sqlalchemy.orm import sessionmaker from sqlmodel import Session, SQLModel, create_engine from fastapi_users_db_sqlmodel import ( NotSetOAuthAccountTableE...
30.982456
88
0.709513
0
0
1,368
0.193658
5,775
0.817525
5,674
0.803228
841
0.119054
4c64a40785307d838c76dd7877d9296fa9590e81
623
py
Python
copy_reg.py
rtbo/vkdgen
04a228961bb091b59dc6f741eee703cd81724ca3
[ "MIT" ]
2
2021-01-08T15:05:27.000Z
2021-10-12T08:44:01.000Z
copy_reg.py
rtbo/vkdgen
04a228961bb091b59dc6f741eee703cd81724ca3
[ "MIT" ]
null
null
null
copy_reg.py
rtbo/vkdgen
04a228961bb091b59dc6f741eee703cd81724ca3
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import os from os import path root_dir = path.dirname(path.realpath(__file__)) local_reg_dir = path.join(root_dir, 'registry') os.makedirs(local_reg_dir, exist_ok=True) def copy_reg(reg_dir, files): import shutil for f in files: file_path = path.join(reg_dir, f) if not...
31.15
76
0.704655
0
0
0
0
0
0
0
0
127
0.203852
4c64de6df990440fb9bf292eb702bdb614dfcfae
22,653
py
Python
utils.py
atward424/ASCVD_ML
39404dd5f50a527576b91e8f53f5157f76382712
[ "Apache-2.0" ]
1
2021-04-08T07:05:18.000Z
2021-04-08T07:05:18.000Z
utils.py
atward424/ASCVD_ML
39404dd5f50a527576b91e8f53f5157f76382712
[ "Apache-2.0" ]
null
null
null
utils.py
atward424/ASCVD_ML
39404dd5f50a527576b91e8f53f5157f76382712
[ "Apache-2.0" ]
1
2021-04-08T07:07:53.000Z
2021-04-08T07:07:53.000Z
import numpy as np import pandas as pd import scipy.stats as st #from medical_ML import Experiment import matplotlib.pyplot as plt import xgboost as xgb from sklearn.ensemble import RandomForestClassifier, GradientBoostingClassifier from sklearn.dummy import DummyClassifier from sklearn.tree import DecisionTreeClassif...
48.821121
147
0.382201
0
0
0
0
0
0
0
0
12,622
0.557189
4c656802f3785c807e752895a2d07dd94b79c82b
4,377
py
Python
cloud/caasp-admin-setup/lib/caaspadminsetup/utils.py
hwoarang/caasp-container-manifests
6df831d6b4f4218f96e552c416d86eabcfad46c0
[ "Apache-2.0" ]
5
2017-03-16T10:47:39.000Z
2018-01-17T13:07:03.000Z
cloud/caasp-admin-setup/lib/caaspadminsetup/utils.py
hwoarang/caasp-container-manifests
6df831d6b4f4218f96e552c416d86eabcfad46c0
[ "Apache-2.0" ]
138
2017-03-08T12:43:51.000Z
2019-04-15T12:57:30.000Z
cloud/caasp-admin-setup/lib/caaspadminsetup/utils.py
hwoarang/caasp-container-manifests
6df831d6b4f4218f96e552c416d86eabcfad46c0
[ "Apache-2.0" ]
26
2017-03-09T08:24:03.000Z
2019-03-08T00:26:52.000Z
import json import logging import re import susepubliccloudinfoclient.infoserverrequests as ifsrequest import yaml import sys RELEASE_DATE = re.compile('^.*-v(\d{8})-*.*') def get_caasp_release_version(): """Return the version from os-release""" os_release = open('/etc/os-release', 'r').readlines() for e...
37.732759
80
0.631026
0
0
0
0
0
0
0
0
1,729
0.395019
4c66a4345821de6dcbba5bb0bbb633c3ee79daa3
2,219
py
Python
tools/Bitcoin Parser/blockchain_parser/tests/test_block.py
simewu/bitcoin_researcher
b9fd2efdb8ae8467c5bd4b3320713a541635df16
[ "MIT" ]
1
2020-02-15T21:44:04.000Z
2020-02-15T21:44:04.000Z
tools/Bitcoin Parser/blockchain_parser/tests/test_block.py
SimeoW/bitcoin
3644405f06c8b16a437513e8c02f0f061b91be2e
[ "MIT" ]
null
null
null
tools/Bitcoin Parser/blockchain_parser/tests/test_block.py
SimeoW/bitcoin
3644405f06c8b16a437513e8c02f0f061b91be2e
[ "MIT" ]
null
null
null
# Copyright (C) 2015-2016 The bitcoin-blockchain-parser developers # # This file is part of bitcoin-blockchain-parser. # # It is subject to the license terms in the LICENSE file found in the top-level # directory of this distribution. # # No part of bitcoin-blockchain-parser, including this file, may be copied, # modif...
43.509804
79
0.68995
1,677
0.755746
0
0
0
0
0
0
644
0.290221
4c66dd7c5bb758efe86e3099648aa0be4405bfa6
75
py
Python
genegenie/admin/__init__.py
genegeniebio/genegenie-admin
93e9253febc14b17d17a5fbc2eb0e22f1c974083
[ "MIT" ]
null
null
null
genegenie/admin/__init__.py
genegeniebio/genegenie-admin
93e9253febc14b17d17a5fbc2eb0e22f1c974083
[ "MIT" ]
null
null
null
genegenie/admin/__init__.py
genegeniebio/genegenie-admin
93e9253febc14b17d17a5fbc2eb0e22f1c974083
[ "MIT" ]
null
null
null
''' DNA++ (c) DNA++ 2017 All rights reserved. @author: neilswainston '''
9.375
22
0.626667
0
0
0
0
0
0
0
0
74
0.986667
4c69488448856c1dbc829f26d69379083cb5c7c7
600
py
Python
tests/conftest.py
pkavousi/similar-users
8434e0a03dc8dfa218a34601431c564dff3e80b6
[ "FTL", "RSA-MD" ]
null
null
null
tests/conftest.py
pkavousi/similar-users
8434e0a03dc8dfa218a34601431c564dff3e80b6
[ "FTL", "RSA-MD" ]
null
null
null
tests/conftest.py
pkavousi/similar-users
8434e0a03dc8dfa218a34601431c564dff3e80b6
[ "FTL", "RSA-MD" ]
null
null
null
import os import pandas as pd import pytest from user_similarity_model.config.core import DATASET_DIR, config @pytest.fixture() def sample_local_data(): """AI is creating summary for sample_local_data Returns: [Dict]: This function returns a dictionary with CSV files which in dataset folder...
27.272727
78
0.716667
0
0
0
0
485
0.808333
0
0
270
0.45
4c6a6e28161a83ca0b9ef2212d453c1bc1cfcfd6
232
py
Python
weather/apps.py
chrisjen83/rfb_weather_obs
8eab16358c5059655d208ef41aa38692fa21776f
[ "Apache-2.0" ]
1
2020-12-05T05:23:26.000Z
2020-12-05T05:23:26.000Z
weather/apps.py
chrisjen83/rfb_weather_obs
8eab16358c5059655d208ef41aa38692fa21776f
[ "Apache-2.0" ]
null
null
null
weather/apps.py
chrisjen83/rfb_weather_obs
8eab16358c5059655d208ef41aa38692fa21776f
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig import logging logger = logging.getLogger(__name__) class WeatherConfig(AppConfig): name = 'weather' def ready(self): from forecastUpdater import updater updater.start()
17.846154
43
0.715517
142
0.612069
0
0
0
0
0
0
9
0.038793
4c6a77a19021a586afe308be8abcbb50f2c090fd
26
py
Python
projects/django-filer/test.py
fleimgruber/python
2e735762c73651cffc027ca850b2a58d87d54b49
[ "Unlicense" ]
25
2021-10-30T19:54:59.000Z
2022-03-29T06:11:02.000Z
projects/django-filer/test.py
fleimgruber/python
2e735762c73651cffc027ca850b2a58d87d54b49
[ "Unlicense" ]
21
2021-10-19T01:09:38.000Z
2022-03-24T16:08:53.000Z
projects/django-filer/test.py
fleimgruber/python
2e735762c73651cffc027ca850b2a58d87d54b49
[ "Unlicense" ]
3
2022-01-25T20:25:13.000Z
2022-03-08T02:58:50.000Z
import filer import tests
8.666667
12
0.846154
0
0
0
0
0
0
0
0
0
0
4c6c5b767e3d2e7d380bed49701614a213de873b
8,063
py
Python
examples/plots/plot_pass_network.py
DymondFormation/mplsoccer
544300857ec5936781e12fda203cf2df8a3d00b9
[ "MIT" ]
null
null
null
examples/plots/plot_pass_network.py
DymondFormation/mplsoccer
544300857ec5936781e12fda203cf2df8a3d00b9
[ "MIT" ]
null
null
null
examples/plots/plot_pass_network.py
DymondFormation/mplsoccer
544300857ec5936781e12fda203cf2df8a3d00b9
[ "MIT" ]
null
null
null
""" ============ Pass Network ============ This example shows how to plot passes between players in a set formation. """ import pandas as pd from mplsoccer.pitch import Pitch from matplotlib.colors import to_rgba import numpy as np from mplsoccer.statsbomb import read_event, EVENT_SLUG ##############################...
55.226027
116
0.615032
0
0
0
0
0
0
0
0
3,987
0.49442
4c6cd0ca287f397e656cbb934079a5d03bb867b9
2,786
py
Python
jsfiddle_factory/__init__.py
andrewp-as-is/jsfiddle-factory.py
7b8b883676f3330f5714b15157819b583a753ba1
[ "Unlicense" ]
null
null
null
jsfiddle_factory/__init__.py
andrewp-as-is/jsfiddle-factory.py
7b8b883676f3330f5714b15157819b583a753ba1
[ "Unlicense" ]
null
null
null
jsfiddle_factory/__init__.py
andrewp-as-is/jsfiddle-factory.py
7b8b883676f3330f5714b15157819b583a753ba1
[ "Unlicense" ]
null
null
null
__all__ = ['Factory'] import jsfiddle_build import jsfiddle_github import jsfiddle_generator import jsfiddle_readme_generator import getdirs import getfiles import os import popd import yaml @popd.popd def _build(path): os.chdir(path) jsfiddle_build.Build().save("build.html") @popd.popd def _init(path): ...
30.955556
98
0.578248
2,117
0.759871
0
0
464
0.166547
0
0
317
0.113783
4c6d7d5083c40236ec67c12d5db46eb9b81e4185
5,774
py
Python
spellnn/train.py
MartinXPN/SpellNN
e3226fbff359ef60360e63bf7b80a7e1c909e7d8
[ "MIT" ]
null
null
null
spellnn/train.py
MartinXPN/SpellNN
e3226fbff359ef60360e63bf7b80a7e1c909e7d8
[ "MIT" ]
null
null
null
spellnn/train.py
MartinXPN/SpellNN
e3226fbff359ef60360e63bf7b80a7e1c909e7d8
[ "MIT" ]
null
null
null
import logging import os from datetime import datetime from inspect import signature, Parameter from pathlib import Path from pprint import pprint from textwrap import dedent from typing import Optional, Union import fire import tensorflow as tf from tensorflow.keras.callbacks import EarlyStopping, ModelCheckpoint, Te...
46.943089
118
0.662799
4,977
0.861967
0
0
0
0
0
0
573
0.099238
4c6e61959c8414eed50a9b983937c8b1f9cf4b26
3,711
py
Python
flax/core/frozen_dict.py
juliuskunze/flax
929395cf5c7391bca3e33ef6760ff9591401d19e
[ "Apache-2.0" ]
null
null
null
flax/core/frozen_dict.py
juliuskunze/flax
929395cf5c7391bca3e33ef6760ff9591401d19e
[ "Apache-2.0" ]
null
null
null
flax/core/frozen_dict.py
juliuskunze/flax
929395cf5c7391bca3e33ef6760ff9591401d19e
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Flax Authors. # # 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 wri...
25.770833
80
0.68041
1,746
0.470493
72
0.019402
1,788
0.481811
0
0
1,542
0.415521
4c72d8c0b48b4984dfd1c6e64ae6bd05f864f9ea
1,273
py
Python
pybb/middleware.py
grigi/pybbm
9ecc5e7fadf4da820d2fc2c22914e14f3545047d
[ "BSD-2-Clause" ]
null
null
null
pybb/middleware.py
grigi/pybbm
9ecc5e7fadf4da820d2fc2c22914e14f3545047d
[ "BSD-2-Clause" ]
null
null
null
pybb/middleware.py
grigi/pybbm
9ecc5e7fadf4da820d2fc2c22914e14f3545047d
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.utils import translation from django.db.models import ObjectDoesNotExist from pybb import util from pybb.signals import user_saved class PybbMiddleware(object): def process_request(self, request): if request.user.is_authenticated(): try: # ...
37.441176
69
0.624509
1,101
0.864886
0
0
0
0
0
0
265
0.20817
4c72f9ae2886173a745e73873beb49821cbc3a3f
691
py
Python
streetlite/common/constants.py
s0h3ck/streetlite
21db388702f828417dd3dc0fbfa5af757216e1e0
[ "MIT" ]
null
null
null
streetlite/common/constants.py
s0h3ck/streetlite
21db388702f828417dd3dc0fbfa5af757216e1e0
[ "MIT" ]
1
2021-06-01T22:23:13.000Z
2021-06-01T22:23:13.000Z
streetlite/common/constants.py
s0h3ck/streetlite
21db388702f828417dd3dc0fbfa5af757216e1e0
[ "MIT" ]
null
null
null
from enum import Enum class CustomEnum(Enum): @classmethod def has_value(cls, value): return any(value == item.value for item in cls) @classmethod def from_value(cls, value): found_element = None if cls.has_value(value): found_element = cls(value) retu...
18.675676
55
0.622287
660
0.955137
0
0
275
0.397974
0
0
0
0
4c73a2fb986309ca0a2f6912149adaf74509a6fc
716
py
Python
day5.py
achien/advent-of-code-2021
8851e1727975ea8124db78b54fe577fbf2e5883d
[ "MIT" ]
null
null
null
day5.py
achien/advent-of-code-2021
8851e1727975ea8124db78b54fe577fbf2e5883d
[ "MIT" ]
null
null
null
day5.py
achien/advent-of-code-2021
8851e1727975ea8124db78b54fe577fbf2e5883d
[ "MIT" ]
null
null
null
import fileinput counts = {} for line in fileinput.input(): line = line.strip() p1, p2 = line.split('>') p1 = p1[:-2] x1, y1 = p1.split(',') x1 = int(x1) y1 = int(y1) p2 = p2[1:] x2, y2 = p2.split(',') x2 = int(x2) y2 = int(y2) if x1 == x2: dx = 0 elif x1 > x2:...
15.911111
42
0.391061
0
0
0
0
0
0
0
0
9
0.01257
4c73c6bd43cad4b6997238ea62e6e2c529f20e54
1,635
py
Python
meditation_example.py
sodapopinsky/dfk
be48e89d4b054ad8abbb009d0e1ea4c10f559af5
[ "MIT" ]
90
2021-10-17T19:36:45.000Z
2022-03-31T17:19:43.000Z
meditation_example.py
sodapopinsky/dfk
be48e89d4b054ad8abbb009d0e1ea4c10f559af5
[ "MIT" ]
13
2021-11-13T00:19:31.000Z
2022-03-20T15:13:22.000Z
meditation_example.py
sodapopinsky/dfk
be48e89d4b054ad8abbb009d0e1ea4c10f559af5
[ "MIT" ]
71
2021-11-05T03:00:41.000Z
2022-03-30T06:16:25.000Z
import logging from web3 import Web3 import sys import time import meditation.meditation as meditation if __name__ == "__main__": log_format = '%(asctime)s|%(name)s|%(levelname)s: %(message)s' logger = logging.getLogger("DFK-meditation") logger.setLevel(logging.DEBUG) logging.basicConfig(level=loggin...
41.923077
127
0.720489
0
0
0
0
0
0
0
0
264
0.161468
4c752c3e0e33ba7c7da469ab66cb6adfa9bb958a
669
py
Python
python/johnstarich/interval.py
JohnStarich/dotfiles
eaa07b09aa02fc2fa2516cebdd3628b4daf506e4
[ "Apache-2.0" ]
3
2018-02-28T14:22:53.000Z
2022-01-24T02:38:22.000Z
python/johnstarich/interval.py
JohnStarich/dotfiles
eaa07b09aa02fc2fa2516cebdd3628b4daf506e4
[ "Apache-2.0" ]
null
null
null
python/johnstarich/interval.py
JohnStarich/dotfiles
eaa07b09aa02fc2fa2516cebdd3628b4daf506e4
[ "Apache-2.0" ]
null
null
null
import time class Interval(object): def __init__(self, delay_time: int): self.delay_time = delay_time self.current_time = 0 @staticmethod def now(): return time.gmtime().tm_sec def should_run(self) -> bool: if self.current_time == 0: self.current_time = In...
24.777778
67
0.606876
654
0.977578
0
0
64
0.095665
0
0
0
0
4c76367fcd11568b786d20b9e43e17b970ff6e48
2,329
py
Python
servers/python/coweb/bot/wrapper/object.py
opencoweb/coweb
7b3a87ee9eda735a859447d404ee16edde1c5671
[ "AFL-2.1" ]
83
2015-01-05T19:02:57.000Z
2021-11-19T02:48:09.000Z
servers/python/coweb/bot/wrapper/object.py
xuelingxiao/coweb
7b3a87ee9eda735a859447d404ee16edde1c5671
[ "AFL-2.1" ]
3
2015-12-16T13:49:33.000Z
2019-06-17T13:38:50.000Z
servers/python/coweb/bot/wrapper/object.py
xuelingxiao/coweb
7b3a87ee9eda735a859447d404ee16edde1c5671
[ "AFL-2.1" ]
14
2015-04-29T22:36:53.000Z
2021-11-18T03:24:29.000Z
''' Copyright (c) The Dojo Foundation 2011. All Rights Reserved. Copyright (c) IBM Corporation 2008, 2011. All Rights Reserved. ''' # tornado import tornado.ioloop # std lib import logging import time import weakref import functools # coweb from .base import BotWrapperBase log = logging.getLogger('coweb.bot') class O...
35.287879
78
0.653499
2,015
0.865178
0
0
0
0
0
0
715
0.306999
4c76baa8499aec4813a3d47e851bd3cbe62268bf
6,193
py
Python
battle_tut5.py
lankotiAditya/RPG_battle_main
0063941d023ff1c18a6b050fab4d0c7ec583b11a
[ "MIT" ]
22
2021-01-13T10:21:42.000Z
2022-03-10T00:06:05.000Z
battle_tut5.py
lankotiAditya/RPG_battle_main
0063941d023ff1c18a6b050fab4d0c7ec583b11a
[ "MIT" ]
1
2021-01-14T17:02:41.000Z
2021-01-14T20:23:38.000Z
battle_tut5.py
lankotiAditya/RPG_battle_main
0063941d023ff1c18a6b050fab4d0c7ec583b11a
[ "MIT" ]
33
2021-01-17T08:52:38.000Z
2022-03-28T10:36:36.000Z
import pygame import random pygame.init() clock = pygame.time.Clock() fps = 60 #game window bottom_panel = 150 screen_width = 800 screen_height = 400 + bottom_panel screen = pygame.display.set_mode((screen_width, screen_height)) pygame.display.set_caption('Battle') #define game variables current_fighter = 1 total...
23.911197
101
0.707089
2,459
0.397061
0
0
0
0
0
0
1,160
0.187308
4c791be103564830f1d4250200840c0dccc964ac
651
py
Python
curso_em_video/0087a.py
marinaoliveira96/python-exercises
13fc0ec30dec9bb6531cdeb41c80726971975835
[ "MIT" ]
null
null
null
curso_em_video/0087a.py
marinaoliveira96/python-exercises
13fc0ec30dec9bb6531cdeb41c80726971975835
[ "MIT" ]
null
null
null
curso_em_video/0087a.py
marinaoliveira96/python-exercises
13fc0ec30dec9bb6531cdeb41c80726971975835
[ "MIT" ]
null
null
null
matriz = [[0, 0, 0], [0, 0, 0], [0, 0, 0]] soma = col3 = maior = 0 for l in range(0, 3): for c in range(0, 3): matriz[l][c] = int(input(f'[{l}][{c}]: ')) for l in range(0, 3): for c in range(0, 3): print(f'[{matriz[l][c]:^5}]', end='') if matriz[l][c] % 2 == 0: soma += matriz...
31
50
0.506912
0
0
0
0
0
0
0
0
158
0.24159
4c79ab828e049f734329ac9fd7817c526a06676d
6,777
py
Python
custom_components/tapo_control/utils.py
david-kalbermatten/HomeAssistant-Tapo-Control
3f9f8316cf7e176bb6f8d798d709f3c6d346a527
[ "Apache-2.0" ]
null
null
null
custom_components/tapo_control/utils.py
david-kalbermatten/HomeAssistant-Tapo-Control
3f9f8316cf7e176bb6f8d798d709f3c6d346a527
[ "Apache-2.0" ]
null
null
null
custom_components/tapo_control/utils.py
david-kalbermatten/HomeAssistant-Tapo-Control
3f9f8316cf7e176bb6f8d798d709f3c6d346a527
[ "Apache-2.0" ]
null
null
null
import onvif import os import asyncio import urllib.parse from onvif import ONVIFCamera from pytapo import Tapo from .const import ENABLE_MOTION_SENSOR, DOMAIN, LOGGER, CLOUD_PASSWORD from homeassistant.const import CONF_IP_ADDRESS, CONF_USERNAME, CONF_PASSWORD from homeassistant.components.onvif.event import EventMana...
34.93299
86
0.665044
0
0
0
0
0
0
6,235
0.920024
903
0.133245
4c79db5803090229f5cee46e595e5f692bd63c32
1,652
py
Python
camd3/infrastructure/component/tests/test_uidattr.py
mamrhein/CAmD3
d20f62295771a297c3fbb314beef314e5ec7a2b5
[ "BSD-2-Clause" ]
null
null
null
camd3/infrastructure/component/tests/test_uidattr.py
mamrhein/CAmD3
d20f62295771a297c3fbb314beef314e5ec7a2b5
[ "BSD-2-Clause" ]
null
null
null
camd3/infrastructure/component/tests/test_uidattr.py
mamrhein/CAmD3
d20f62295771a297c3fbb314beef314e5ec7a2b5
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ---------------------------------------------------------------------------- # Name: test_uidattr # Purpose: Test driver for module 'uidattr' # # Author: Michael Amrhein ([email protected]) # # Copyright: (c) 2018 Michael Amrhein # -------------------...
23.6
78
0.578087
735
0.444915
114
0.069007
0
0
0
0
487
0.294794
4c7a9873c160d856f0a448855b2b79215e8191fc
883
py
Python
s.py
tn012604409/HW3_chatRobot
97762e53bfccd8b30c6b263792919c679e53b404
[ "MIT" ]
null
null
null
s.py
tn012604409/HW3_chatRobot
97762e53bfccd8b30c6b263792919c679e53b404
[ "MIT" ]
null
null
null
s.py
tn012604409/HW3_chatRobot
97762e53bfccd8b30c6b263792919c679e53b404
[ "MIT" ]
null
null
null
import requests import time from bs4 import BeautifulSoup def get_web_page(url): resp = requests.get( url=url, ) if resp.status_code != 200: print('Invalid url:', resp.url) return None else: return resp.text def get_articles(dom): soup = BeautifulSoup(dom, 'html.p...
22.641026
76
0.551529
0
0
0
0
0
0
0
0
182
0.206116
4c7abb53711251283db1d2b1869388b7608f3858
21,493
py
Python
awstin/dynamodb/orm.py
k2bd/awstin
7360cc20d3c72a6aa87de57146b9c5f4247c58d5
[ "MIT" ]
1
2020-12-29T20:49:27.000Z
2020-12-29T20:49:27.000Z
awstin/dynamodb/orm.py
k2bd/awstin
7360cc20d3c72a6aa87de57146b9c5f4247c58d5
[ "MIT" ]
69
2020-11-16T21:16:44.000Z
2021-04-14T17:16:33.000Z
awstin/dynamodb/orm.py
k2bd/awstin
7360cc20d3c72a6aa87de57146b9c5f4247c58d5
[ "MIT" ]
null
null
null
import uuid from abc import ABC, abstractmethod from collections import defaultdict from typing import Union from boto3.dynamodb.conditions import Attr as BotoAttr from boto3.dynamodb.conditions import Key as BotoKey from awstin.dynamodb.utils import from_decimal, to_decimal class NotSet: """ A value of an ...
27.912987
88
0.579258
18,878
0.878332
0
0
1,584
0.073698
0
0
7,566
0.352022
d5b22ea34f0bbc299fab73839184251258eecd69
310
py
Python
Losses/__init__.py
SimonTheVillain/ActiveStereoNet
708bddce844998b366be1a1ec8a72a31ccd26f8c
[ "MIT" ]
17
2019-08-23T04:00:32.000Z
2022-02-06T13:37:02.000Z
Losses/__init__.py
SimonTheVillain/ActiveStereoNet
708bddce844998b366be1a1ec8a72a31ccd26f8c
[ "MIT" ]
null
null
null
Losses/__init__.py
SimonTheVillain/ActiveStereoNet
708bddce844998b366be1a1ec8a72a31ccd26f8c
[ "MIT" ]
7
2019-12-20T07:46:41.000Z
2021-11-01T04:18:19.000Z
from .supervise import * def get_losses(name, **kwargs): name = name.lower() if name == 'rhloss': loss = RHLoss(**kwargs) elif name == 'xtloss': loss = XTLoss(**kwargs) else: raise NotImplementedError('Loss [{:s}] is not supported.'.format(name)) return loss
22.142857
79
0.580645
0
0
0
0
0
0
0
0
47
0.151613
d5b25fcda4db3927e0504a3caa222468f8e2eb7c
6,766
py
Python
model/src/recurrent.py
qkaren/converse_reading_cmr
d06d981be12930cff8458e2b1b81be4f5df3a329
[ "MIT" ]
87
2019-06-07T18:16:30.000Z
2021-11-27T08:18:45.000Z
model/src/recurrent.py
qkaren/converse_reading_cmr
d06d981be12930cff8458e2b1b81be4f5df3a329
[ "MIT" ]
11
2019-06-19T20:53:27.000Z
2021-05-07T01:05:01.000Z
model/src/recurrent.py
qkaren/converse_reading_cmr
d06d981be12930cff8458e2b1b81be4f5df3a329
[ "MIT" ]
17
2019-06-08T01:50:23.000Z
2022-02-16T07:12:15.000Z
import torch import torch.nn as nn from torch.nn.parameter import Parameter from torch.nn.utils.rnn import pad_packed_sequence as unpack from torch.nn.utils.rnn import pack_padded_sequence as pack from .my_optim import weight_norm as WN # TODO: use system func to bind ~ RNN_MAP = {'lstm': nn.LSTM, 'gru': nn.GR...
45.716216
134
0.619125
6,228
0.920485
0
0
0
0
0
0
484
0.071534
d5b27d5f6e6878759cb3ab473c4702b3507a5b67
2,810
py
Python
kmcsim/sim/events_old.py
vlcekl/kmcpy
b55a23f64d4b6d2871671f4a16346cc897c4a2a5
[ "MIT" ]
null
null
null
kmcsim/sim/events_old.py
vlcekl/kmcpy
b55a23f64d4b6d2871671f4a16346cc897c4a2a5
[ "MIT" ]
null
null
null
kmcsim/sim/events_old.py
vlcekl/kmcpy
b55a23f64d4b6d2871671f4a16346cc897c4a2a5
[ "MIT" ]
null
null
null
#!//anaconda/envs/py36/bin/python # # File name: kmc_pld.py # Date: 2018/08/03 09:07 # Author: Lukas Vlcek # # Description: # import numpy as np from collections import Counter class EventTree: """ Class maintaining a binary tree for random event type lookup and arrays for choosing specific...
26.509434
82
0.56548
2,614
0.930249
0
0
0
0
0
0
916
0.325979
d5b2899060598acf5361fb2c9db968e61435c9da
2,181
py
Python
env/lib/python3.6/site-packages/odf/meta.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
env/lib/python3.6/site-packages/odf/meta.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
env/lib/python3.6/site-packages/odf/meta.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2006-2007 Søren Roug, European Environment Agency # # This library 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 Software Foundation; either # version 2.1 of the License, or (at you...
32.073529
80
0.707474
0
0
0
0
0
0
0
0
1,054
0.483043
d5b2a5e3c1f4caec8e1b4e760aef349c24f989cf
7,293
py
Python
scripts/my_inference.py
Mr-TalhaIlyas/Scaled-YOLOv4
2b0326a6bc1eba386eb1a78b56727dcf29c77bac
[ "MIT" ]
null
null
null
scripts/my_inference.py
Mr-TalhaIlyas/Scaled-YOLOv4
2b0326a6bc1eba386eb1a78b56727dcf29c77bac
[ "MIT" ]
null
null
null
scripts/my_inference.py
Mr-TalhaIlyas/Scaled-YOLOv4
2b0326a6bc1eba386eb1a78b56727dcf29c77bac
[ "MIT" ]
null
null
null
import os os.environ['CUDA_VISIBLE_DEVICES'] = '2' import torch torch.rand(10) import torch.nn as nn import torch.nn.functional as F import glob from tqdm import tqdm, trange print(torch.cuda.is_available()) print(torch.cuda.get_device_name()) print(torch.cuda.current_device()) device = torch.device('cuda' if torch.cu...
36.833333
135
0.680927
0
0
0
0
0
0
0
0
1,786
0.244892
d5b2ddd3598b303bcb8230980f8ef5b2b4388ef0
5,712
py
Python
src/tests/unit/fixtures/endpoint_standard/mock_recommendation.py
fslds/carbon-black-cloud-sdk-python
248a3c63d6b36d6fcdbcb3f51fb7751f062ed372
[ "MIT" ]
24
2020-10-16T22:07:38.000Z
2022-03-24T14:58:03.000Z
src/tests/unit/fixtures/endpoint_standard/mock_recommendation.py
fslds/carbon-black-cloud-sdk-python
248a3c63d6b36d6fcdbcb3f51fb7751f062ed372
[ "MIT" ]
63
2020-10-26T18:26:15.000Z
2022-03-31T17:31:02.000Z
src/tests/unit/fixtures/endpoint_standard/mock_recommendation.py
fslds/carbon-black-cloud-sdk-python
248a3c63d6b36d6fcdbcb3f51fb7751f062ed372
[ "MIT" ]
10
2020-11-09T11:54:23.000Z
2022-03-24T20:44:00.000Z
"""Mock responses for recommendations.""" SEARCH_REQ = { "criteria": { "policy_type": ['reputation_override'], "status": ['NEW', 'REJECTED', 'ACCEPTED'], "hashes": ['111', '222'] }, "rows": 50, "sort": [ { "field": "impact_score", "order": "DESC" ...
31.043478
98
0.500525
0
0
0
0
0
0
0
0
3,275
0.573354
d5b36222e5f117b24edaf10265aa3e6b8fc6c46c
7,351
py
Python
monasca/microservice/notification_engine.py
TeamZenith/python-monasca
badc86fbe2c4424deb15b84eabd3248e899ef4ee
[ "Apache-2.0" ]
null
null
null
monasca/microservice/notification_engine.py
TeamZenith/python-monasca
badc86fbe2c4424deb15b84eabd3248e899ef4ee
[ "Apache-2.0" ]
null
null
null
monasca/microservice/notification_engine.py
TeamZenith/python-monasca
badc86fbe2c4424deb15b84eabd3248e899ef4ee
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Carnegie Mellon University # # Author: Han Chen <[email protected]> # # 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 # # ...
39.951087
119
0.522786
5,217
0.709699
0
0
0
0
0
0
3,040
0.413549