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
65d1935d60c24b3adbd4cfdad6ba81b04f4d1399
9,501
py
Python
pyspi/SPILike.py
grburgess/pyspi
084884c3fd06a09ef3a850cd19e7b751d7929e59
[ "BSD-3-Clause" ]
null
null
null
pyspi/SPILike.py
grburgess/pyspi
084884c3fd06a09ef3a850cd19e7b751d7929e59
[ "BSD-3-Clause" ]
null
null
null
pyspi/SPILike.py
grburgess/pyspi
084884c3fd06a09ef3a850cd19e7b751d7929e59
[ "BSD-3-Clause" ]
3
2018-06-05T12:57:29.000Z
2019-01-09T17:12:31.000Z
import collections from typing import Optional import numpy as np from astromodels import Parameter, Model from astromodels.functions.priors import Cosine_Prior, Uniform_prior from threeML import PluginPrototype from threeML.io.file_utils import sanitize_filename from threeML.plugins.DispersionSpectrumLike import Dis...
30.549839
83
0.592674
8,978
0.944953
0
0
1,238
0.130302
0
0
2,828
0.297653
65d2ce3a02d1d452763725cfe14c593fd3bb7cbb
1,881
py
Python
dianna/visualization/image.py
cffbots/dianna
21e272dce2862747a5109341b622798f667d9248
[ "Apache-2.0" ]
null
null
null
dianna/visualization/image.py
cffbots/dianna
21e272dce2862747a5109341b622798f667d9248
[ "Apache-2.0" ]
null
null
null
dianna/visualization/image.py
cffbots/dianna
21e272dce2862747a5109341b622798f667d9248
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt def _determine_vmax(max_data_value): vmax = 1 if max_data_value > 255: vmax = None elif max_data_value > 1: vmax = 255 return vmax def plot_image(heatmap, original_data=None, heatmap_cmap=None, data_cmap=None, show_plot=True, output_filename=None): # ...
34.833333
155
0.642212
0
0
0
0
0
0
0
0
1,100
0.584795
65d4480d133aa88d0ea4335e0f5e5f6c3cb17894
4,680
py
Python
models/lenet.py
davidstutz/random-bit-error-robustness
59d8533c8db87ba1b220a64032cf929e5d67fbfa
[ "Unlicense" ]
null
null
null
models/lenet.py
davidstutz/random-bit-error-robustness
59d8533c8db87ba1b220a64032cf929e5d67fbfa
[ "Unlicense" ]
null
null
null
models/lenet.py
davidstutz/random-bit-error-robustness
59d8533c8db87ba1b220a64032cf929e5d67fbfa
[ "Unlicense" ]
null
null
null
import torch import common.torch from .classifier import Classifier from .utils import get_normalization2d, get_activation class LeNet(Classifier): """ LeNet classifier. """ def __init__(self, N_class, resolution=(1, 32, 32), channels=64, activation='relu', normalization='bn', linear=1024, dropout=Fa...
37.142857
146
0.59594
4,555
0.973291
0
0
0
0
0
0
1,111
0.237393
65d4761a181f8a12d33c2a0e4fbbb20be034782f
309
py
Python
project/server/main/modules/__init__.py
ardikabs/dnsmanager
4d2f302ea9f54fd4d5416328dc46a1c47b573e5b
[ "MIT" ]
1
2019-01-15T10:33:04.000Z
2019-01-15T10:33:04.000Z
project/server/main/modules/__init__.py
ardikabs/dnsmanager
4d2f302ea9f54fd4d5416328dc46a1c47b573e5b
[ "MIT" ]
null
null
null
project/server/main/modules/__init__.py
ardikabs/dnsmanager
4d2f302ea9f54fd4d5416328dc46a1c47b573e5b
[ "MIT" ]
null
null
null
""" All Available Module on Server Belong to Here """ AVAILABLE_MODULES = ( "api", ) def init_app(app, **kwargs): from importlib import import_module for module in AVAILABLE_MODULES: import_module( f".{module}", package=__name__ ).init_app(app, **kwargs)
23.769231
53
0.614887
0
0
0
0
0
0
0
0
70
0.226537
65d585b3c927a0a65da4783e776cd19589017f27
2,154
py
Python
slixmpp/plugins/xep_0380/eme.py
cnngimenez/slixmpp
bb61f0f39dfba205282dab50c0f3a47b26145c74
[ "BSD-3-Clause" ]
null
null
null
slixmpp/plugins/xep_0380/eme.py
cnngimenez/slixmpp
bb61f0f39dfba205282dab50c0f3a47b26145c74
[ "BSD-3-Clause" ]
null
null
null
slixmpp/plugins/xep_0380/eme.py
cnngimenez/slixmpp
bb61f0f39dfba205282dab50c0f3a47b26145c74
[ "BSD-3-Clause" ]
null
null
null
""" Slixmpp: The Slick XMPP Library Copyright (C) 2016 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> This file is part of Slixmpp. See the file LICENSE for copying permission. """ import logging import slixmpp from slixmpp.stanza import Message from slixmpp.xmlstream.handler import Callback from slixm...
29.916667
90
0.659703
1,591
0.738626
0
0
0
0
0
0
684
0.317549
65d5f60d4b7acc40612bcf45d7c9efe894269057
1,050
py
Python
JSS Users Cleanup/setup.py
killahquam/JAMF
77b003a72375b9b01bdb961cb466b7519c859116
[ "MIT" ]
34
2015-06-11T16:37:54.000Z
2021-06-02T20:42:55.000Z
JSS Users Cleanup/setup.py
killahquam/JAMF
77b003a72375b9b01bdb961cb466b7519c859116
[ "MIT" ]
1
2016-01-03T04:05:30.000Z
2016-09-26T20:25:51.000Z
JSS Users Cleanup/setup.py
killahquam/JAMF
77b003a72375b9b01bdb961cb466b7519c859116
[ "MIT" ]
6
2015-12-29T20:39:56.000Z
2020-06-30T19:33:23.000Z
#!/usr/bin/python #Quam Sodji 2015 #Setup script to install the needed python modules #Installs kn/Slack and python-jss modules #We assume you have Git installed....... import subprocess import os import sys import shutil clone_jss = subprocess.check_output(['git','clone','git://github.com/sheagcraig/python-jss.git'])...
33.870968
97
0.75619
0
0
0
0
0
0
0
0
524
0.499048
65da9cfd0758b74606005cccaa574f86bf734619
969
py
Python
sharpy/linear/utils/sselements.py
ACea15/sharpy
c89ecb74be3cb9e37b23ac8a282c73b9b55dd792
[ "BSD-3-Clause" ]
80
2018-08-30T13:01:52.000Z
2022-03-24T15:02:48.000Z
sharpy/linear/utils/sselements.py
ACea15/sharpy
c89ecb74be3cb9e37b23ac8a282c73b9b55dd792
[ "BSD-3-Clause" ]
88
2018-05-17T16:18:58.000Z
2022-03-11T21:05:48.000Z
sharpy/linear/utils/sselements.py
ACea15/sharpy
c89ecb74be3cb9e37b23ac8a282c73b9b55dd792
[ "BSD-3-Clause" ]
44
2018-01-02T14:27:28.000Z
2022-03-12T13:49:36.000Z
""" Linear State Space Element Class """ class Element(object): """ State space member """ def __init__(self): self.sys_id = str() # A string with the name of the element self.sys = None # The actual object self.ss = None # The state space object self.settings = ...
28.5
119
0.643963
926
0.955624
0
0
0
0
0
0
585
0.603715
65db9046fcabc0fdacbff5217e489cc008a5a30b
4,819
py
Python
pt_mesh_renderer/RasterizeTriangles.py
FuxiCV/pt_mesh_renderer
15153fbbe73d7c4c59d8f0b2bce7320173b3d396
[ "Apache-2.0" ]
61
2020-08-06T06:39:15.000Z
2022-03-25T03:48:02.000Z
pt_mesh_renderer/RasterizeTriangles.py
shty32/pt_mesh_renderer
15153fbbe73d7c4c59d8f0b2bce7320173b3d396
[ "Apache-2.0" ]
6
2020-09-08T10:30:56.000Z
2021-07-10T14:24:23.000Z
pt_mesh_renderer/RasterizeTriangles.py
shty32/pt_mesh_renderer
15153fbbe73d7c4c59d8f0b2bce7320173b3d396
[ "Apache-2.0" ]
9
2020-08-25T08:46:08.000Z
2021-07-25T04:43:41.000Z
# Copyright 2017 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
50.197917
110
0.708861
3,728
0.773604
0
0
3,682
0.764059
0
0
3,033
0.629384
65db99db18c44b4e940ff60964e5dae8b718ca83
3,988
py
Python
datamining_assignments/datamining_assiment_3/nmf.py
xuerenlv/PaperWork
f096b57a80e8d771f080a02b925a22edbbee722a
[ "Apache-2.0" ]
1
2015-10-15T12:26:07.000Z
2015-10-15T12:26:07.000Z
datamining_assignments/datamining_assiment_3/nmf.py
xuerenlv/PaperWork
f096b57a80e8d771f080a02b925a22edbbee722a
[ "Apache-2.0" ]
null
null
null
datamining_assignments/datamining_assiment_3/nmf.py
xuerenlv/PaperWork
f096b57a80e8d771f080a02b925a22edbbee722a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on Oct 27, 2015 @author: nlp ''' import numpy as np import math # nmf 聚类主体 def nmf(file_list, k): X = np.array(file_list).transpose() m_x, n_x = X.shape # 随机生成初始矩阵 U = np.random.rand(m_x, k) V = np.random.rand(n_x, k) is_convergence = False count =...
31.15625
89
0.570963
0
0
0
0
0
0
0
0
572
0.138902
65dca40840f63106b93a09800755e3aaddd6d379
3,834
py
Python
heat2d.py
atk91/heat-batman
ce76fa25ba56e65b842575a99a029379be54e687
[ "BSD-2-Clause" ]
null
null
null
heat2d.py
atk91/heat-batman
ce76fa25ba56e65b842575a99a029379be54e687
[ "BSD-2-Clause" ]
null
null
null
heat2d.py
atk91/heat-batman
ce76fa25ba56e65b842575a99a029379be54e687
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import numpy as np import scipy.linalg as la import matplotlib.pyplot as plt from scipy.sparse.linalg import cgs from scipy.sparse import csr_matrix fig = plt.figure() t_min = 0.0 t_max = 10.0 x_min = -10.0 x_max = 10.0 y_min = -10.0 y_max = 10.0 a = 1.0 c = 5.0 m = 400 n = 100 def ind(i, j):...
28.61194
114
0.490871
0
0
0
0
0
0
0
0
188
0.049035
65dceda09e2e4a4ab6cb1d2b5780ccbfb1f4f6c7
2,667
py
Python
DQN DDQN Dueling/network.py
eayvali/DeepRL
4722af0f75487dd3167faafd4eabe8f01aea4305
[ "MIT" ]
2
2020-01-29T20:49:29.000Z
2020-03-27T21:45:12.000Z
DQN DDQN Dueling/network.py
eayvali/DeepRL
4722af0f75487dd3167faafd4eabe8f01aea4305
[ "MIT" ]
null
null
null
DQN DDQN Dueling/network.py
eayvali/DeepRL
4722af0f75487dd3167faafd4eabe8f01aea4305
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Jan 19 23:19:43 2020 @author: elif.ayvali """ import torch import torch.nn as nn import torch.nn.functional as F from collections import OrderedDict class deep_Q_net(nn.Module): """Actor (Policy) Model.""" def __init__(self, state_size, action_size, seed): ...
31.011628
81
0.544432
2,466
0.924634
0
0
0
0
0
0
921
0.345332
65dd2821be3445190af71c053c0a5fe0757716d8
3,352
py
Python
bin/meyer.py
leipzig/meripseqpipe
b16139dfa0805827fec54a33c2a3583d99780591
[ "MIT" ]
13
2020-06-09T05:45:11.000Z
2022-02-17T09:44:34.000Z
bin/meyer.py
leipzig/meripseqpipe
b16139dfa0805827fec54a33c2a3583d99780591
[ "MIT" ]
2
2021-04-02T21:22:19.000Z
2021-09-28T15:48:50.000Z
bin/meyer.py
leipzig/meripseqpipe
b16139dfa0805827fec54a33c2a3583d99780591
[ "MIT" ]
12
2020-06-09T05:55:51.000Z
2022-02-09T03:07:20.000Z
# -*- coding: utf-8 -*- """ Created on Tue Apr 23 18:53:30 2019 @author: zky """ from sys import argv from math import log from scipy import stats input_bin25_file = argv[1] ip_bin25_file = argv[2] input_total_reads_count = int(argv[3]) ip_total_reads_count = int(argv[4]) peak_windows_number = int(argv[5]) output_ip_f...
41.9
149
0.672136
0
0
0
0
0
0
0
0
464
0.138425
65ddc57bb1b73bd27f58c41a027c88ec873b6740
2,541
py
Python
setup.py
jimbydamonk/jenkins-job-builder-addons
172672e25089992ed94dc223c7e30f29c46719b0
[ "Apache-2.0" ]
8
2015-08-21T15:53:22.000Z
2019-04-09T20:42:58.000Z
setup.py
jimbydamonk/jenkins-job-builder-addons
172672e25089992ed94dc223c7e30f29c46719b0
[ "Apache-2.0" ]
5
2016-03-23T17:46:16.000Z
2018-03-05T13:56:17.000Z
setup.py
jimbydamonk/jenkins-job-builder-addons
172672e25089992ed94dc223c7e30f29c46719b0
[ "Apache-2.0" ]
11
2015-10-05T21:58:33.000Z
2019-04-14T04:50:48.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools.command.test import test as TestCommand try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: h...
28.550562
75
0.637151
583
0.229437
0
0
0
0
0
0
1,077
0.423849
65de85c428d2e16780398c226cf7243329f834fa
1,895
py
Python
arrp/utils/sanitize.py
LucaCappelletti94/arrp_dataset
bcea455a504e8ff718458ce12623c63e0314badb
[ "MIT" ]
null
null
null
arrp/utils/sanitize.py
LucaCappelletti94/arrp_dataset
bcea455a504e8ff718458ce12623c63e0314badb
[ "MIT" ]
null
null
null
arrp/utils/sanitize.py
LucaCappelletti94/arrp_dataset
bcea455a504e8ff718458ce12623c63e0314badb
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from typing import Tuple, Dict from .load_csv import load_raw_classes, load_raw_epigenomic_data, load_raw_nucleotides_sequences from .store_csv import store_raw_classes, store_raw_epigenomic_data, store_raw_nucleotides_sequences from auto_tqdm import tqdm def drop_unknown_datapoi...
67.678571
213
0.803694
0
0
0
0
0
0
0
0
89
0.046966
65ded556650f5e35ee3489143d332a0dbd1e324c
7,857
py
Python
plugin.video.plexodus/resources/lib/indexers/fanarttv.py
MR-Unknown-Cm/addons
8df1ebe58c95620bb02a05dbae7bf37954915cbd
[ "Apache-2.0" ]
1
2020-03-03T10:01:21.000Z
2020-03-03T10:01:21.000Z
plugin.video.plexodus/resources/lib/indexers/fanarttv.py
MR-Unknown-Cm/addons
8df1ebe58c95620bb02a05dbae7bf37954915cbd
[ "Apache-2.0" ]
null
null
null
plugin.video.plexodus/resources/lib/indexers/fanarttv.py
MR-Unknown-Cm/addons
8df1ebe58c95620bb02a05dbae7bf37954915cbd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' plexOdus Add-on ''' import json from resources.lib.modules import client from resources.lib.modules import control user = control.setting('fanart.tv.user') if user == '' or user is None: user = 'cf0ebcc2f7b824bd04cf3a318f15c17d' headers = {'api-key': '3eb5ed2c401a206391ea8d1a031...
38.704433
187
0.54881
0
0
0
0
0
0
0
0
1,343
0.17093
65df761ba100f14026cfc9d900fd8f340f52bd34
3,599
py
Python
nuqql/conversation/helper.py
hwipl/nuqql
410ea5bd42e455d656b1b34612c3b0d5a0b433ef
[ "MIT" ]
3
2019-04-15T18:33:36.000Z
2019-04-21T19:18:10.000Z
nuqql/conversation/helper.py
hwipl/nuqql
410ea5bd42e455d656b1b34612c3b0d5a0b433ef
[ "MIT" ]
15
2019-04-15T18:35:56.000Z
2019-09-14T08:24:32.000Z
nuqql/conversation/helper.py
hwipl/nuqql
410ea5bd42e455d656b1b34612c3b0d5a0b433ef
[ "MIT" ]
1
2019-06-16T12:00:30.000Z
2019-06-16T12:00:30.000Z
""" nuqql conversation helpers """ import datetime import logging from typing import TYPE_CHECKING import nuqql.win from .conversation import CONVERSATIONS from .logmessage import LogMessage if TYPE_CHECKING: # imports for typing # pylint: disable=cyclic-import from nuqql.backend import Backend # noqa ...
29.260163
74
0.624618
0
0
0
0
0
0
0
0
821
0.228119
65df788e5e4510c44fcdee2981d1538a1d6e2abd
801
py
Python
tests/gcs_test.py
rishi1111/vaex
b3516201d04e9277b8918dadab9df33a7c83c01a
[ "MIT" ]
1
2020-08-31T17:53:01.000Z
2020-08-31T17:53:01.000Z
tests/gcs_test.py
rishi1111/vaex
b3516201d04e9277b8918dadab9df33a7c83c01a
[ "MIT" ]
null
null
null
tests/gcs_test.py
rishi1111/vaex
b3516201d04e9277b8918dadab9df33a7c83c01a
[ "MIT" ]
null
null
null
import vaex import pytest @pytest.mark.skipif(vaex.utils.devmode, reason='runs too slow when developing') def test_gcs(): df = vaex.open('gs://vaex-data/testing/xys.hdf5?cache=false&token=anon') assert df.x.tolist() == [1, 2] assert df.y.tolist() == [3, 4] assert df.s.tolist() == ['5', '6'] df = ...
33.375
83
0.627965
0
0
0
0
769
0.96005
0
0
251
0.313358
65dfc680b069d19bcf150f9f7a0bdfd6384fb313
388
py
Python
arcutils/const.py
zhuitrec/django-arcutils
4079ef641f43baab4cda4681b1f76e320f12eb38
[ "MIT" ]
null
null
null
arcutils/const.py
zhuitrec/django-arcutils
4079ef641f43baab4cda4681b1f76e320f12eb38
[ "MIT" ]
null
null
null
arcutils/const.py
zhuitrec/django-arcutils
4079ef641f43baab4cda4681b1f76e320f12eb38
[ "MIT" ]
null
null
null
"""Constants.""" # A ``None``-ish constant for use where ``None`` may be a valid value. NOT_SET = type('NOT_SET', (), { '__bool__': (lambda self: False), '__str__': (lambda self: 'NOT_SET'), '__repr__': (lambda self: 'NOT_SET'), '__copy__': (lambda self: self), })() # An alias for NOT_SET that may be...
25.866667
70
0.639175
0
0
0
0
0
0
0
0
231
0.595361
65e0bbe0d695a274843f413dfb11aa1bde11659d
340
py
Python
students/K33422/Elizaveta_Makhotina/labs/lab1/3/server_html.py
agentofknowledge/ITMO_ICT_WebDevelopment_2020-2021
7d5eab0d68af378083f21473cbbd5e5def6aa60a
[ "MIT" ]
4
2020-09-03T15:41:42.000Z
2021-12-24T15:28:20.000Z
students/K33422/Elizaveta_Makhotina/labs/lab1/3/server_html.py
agentofknowledge/ITMO_ICT_WebDevelopment_2020-2021
7d5eab0d68af378083f21473cbbd5e5def6aa60a
[ "MIT" ]
48
2020-09-13T20:22:42.000Z
2021-04-30T11:13:30.000Z
students/K33422/Elizaveta_Makhotina/labs/lab1/3/server_html.py
agentofknowledge/ITMO_ICT_WebDevelopment_2020-2021
7d5eab0d68af378083f21473cbbd5e5def6aa60a
[ "MIT" ]
69
2020-09-06T10:32:37.000Z
2021-11-28T18:13:17.000Z
import socket print("Waiting for connections...") sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.bind(('', 9090)) sock.listen() n_sock, addr = sock.accept() print("Client connected! Sending HTTP-message") conn.send( b"HTTP/1.0 200 OK\nContent-Type: text/html\n\n" + open("index.html", "rb").read...
18.888889
85
0.694118
0
0
0
0
0
0
0
0
133
0.391176
65e1870d1694528b9c38bfaea11b991273afa141
2,998
py
Python
tests/test_private_storage.py
glasslion/django-qiniu-storage
b046ec0b67ebcf8cd9eb09c60f7db4a7e4fab7ad
[ "MIT" ]
209
2015-01-04T09:24:42.000Z
2022-03-20T12:29:05.000Z
tests/test_private_storage.py
manlan2/django-qiniu-storage
b046ec0b67ebcf8cd9eb09c60f7db4a7e4fab7ad
[ "MIT" ]
39
2015-04-10T05:38:07.000Z
2021-09-09T02:26:54.000Z
tests/test_private_storage.py
manlan2/django-qiniu-storage
b046ec0b67ebcf8cd9eb09c60f7db4a7e4fab7ad
[ "MIT" ]
69
2015-03-03T14:31:20.000Z
2021-10-11T08:31:25.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals, print_function from datetime import datetime import os from os.path import dirname, join import sys import time import unittest import uuid import logging LOGGING_FORMAT = '\n%(levelname)s %(asctime)s %(message)s' logging.basicConfig(lev...
29.106796
82
0.645097
1,933
0.640915
0
0
859
0.284814
0
0
489
0.162135
65e1926c2e3ccf0ad609aeee24520c09fc7d1f0b
1,227
py
Python
inference_sagemaker_simple.py
benayas1/MNIST-deployment
36eab6589816ca6598a42d637755ad1432cb8b1c
[ "MIT" ]
null
null
null
inference_sagemaker_simple.py
benayas1/MNIST-deployment
36eab6589816ca6598a42d637755ad1432cb8b1c
[ "MIT" ]
null
null
null
inference_sagemaker_simple.py
benayas1/MNIST-deployment
36eab6589816ca6598a42d637755ad1432cb8b1c
[ "MIT" ]
null
null
null
# This file implements functions model_fn, input_fn, predict_fn and output_fn. # Function model_fn is mandatory. The other functions can be omitted so the standard sagemaker function will be used. # An alternative to the last 3 functions is to use function transform_fn(model, data, input_content_type, output_content_ty...
37.181818
126
0.740016
0
0
0
0
0
0
0
0
748
0.609617
65e1ff2eb00e84049f3aabe94179a02fc82570ba
802
py
Python
hw/scripts/__main__.py
jonasblixt/mongoose
4f392353f42d9c9245cdb5d9511348ec40bd936f
[ "BSD-3-Clause" ]
4
2019-07-31T17:59:14.000Z
2019-10-06T11:46:28.000Z
hw/scripts/__main__.py
jonasblixt/mongoose
4f392353f42d9c9245cdb5d9511348ec40bd936f
[ "BSD-3-Clause" ]
null
null
null
hw/scripts/__main__.py
jonasblixt/mongoose
4f392353f42d9c9245cdb5d9511348ec40bd936f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import kicad import model from stackups import JLCPCB6Layers #from dram import lp4 # IMX8MM # Diff pairs should be matched within 1ps # CK_t/CK_c max 200 ps # CA[5:0] # CS[1:0] min: CK_t - 25ps, max: CK_t + 25ps # CKE[1:0] # DQS0_t/DQS0_c min: CK_t - 85ps, max CK_t + 85ps # DQ[7:0]...
21.675676
68
0.627182
0
0
0
0
0
0
0
0
510
0.63591
65e2a0c64857964a543fdd7ce72cd8eee8d2cbac
165
py
Python
farms2face/subscriptions/views.py
dev1farms2face/f2f
54e58187a68574bf2bd0dfb7e58a2b416336106a
[ "MIT" ]
null
null
null
farms2face/subscriptions/views.py
dev1farms2face/f2f
54e58187a68574bf2bd0dfb7e58a2b416336106a
[ "MIT" ]
null
null
null
farms2face/subscriptions/views.py
dev1farms2face/f2f
54e58187a68574bf2bd0dfb7e58a2b416336106a
[ "MIT" ]
2
2018-06-19T12:12:08.000Z
2018-06-25T18:45:36.000Z
from django.shortcuts import render # Create your views here. def subscribe(request): return render(request, "subscribe.html", {'data': {}})
20.625
44
0.636364
0
0
0
0
0
0
0
0
47
0.284848
65e2db02f151a8da25b3c6a7203333c4f0b917f2
4,795
py
Python
scripts/runOptimizer.py
sschulz365/PhC_Optimization
9a4add4eb638d797647cabbdf0f96b29b78114f2
[ "Naumen", "Condor-1.1", "MS-PL" ]
2
2017-05-13T05:33:06.000Z
2021-02-26T14:39:44.000Z
scripts/runOptimizer.py
sschulz365/PhC_Optimization
9a4add4eb638d797647cabbdf0f96b29b78114f2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
scripts/runOptimizer.py
sschulz365/PhC_Optimization
9a4add4eb638d797647cabbdf0f96b29b78114f2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
#Sean Billings, 2015 import random import numpy import subprocess import constraints from experiment import Experiment from objectiveFunctions import WeightedSumObjectiveFunction, IdealDifferentialObjectiveFunction from waveGuideMPBOptimizer import differentialEvolution, createPopulation, gradientDescentAlgorithm impor...
33.531469
104
0.737018
0
0
0
0
0
0
0
0
2,447
0.510323
65e30ee0c4097461b20374e7d55ddbfdf3a3908e
2,781
py
Python
packages/w3af/w3af/core/data/url/handlers/cookie_handler.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
3
2019-04-09T22:59:33.000Z
2019-06-14T09:23:24.000Z
tools/w3af/w3af/core/data/url/handlers/cookie_handler.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
tools/w3af/w3af/core/data/url/handlers/cookie_handler.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
""" cookie_handler.py Copyright 2006 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af 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 version 2 of the License. w3af is distributed in the hope t...
30.56044
78
0.678533
1,987
0.714491
0
0
0
0
0
0
1,201
0.431859
65e31c331679c439236e3ccff96fa39b9166d6f4
435
py
Python
setup.py
jigyasudhingra/music-recommendation-system
09c66c4f207002b200d6394cf72e853741e44b6e
[ "MIT" ]
2
2021-12-04T08:47:41.000Z
2021-12-06T16:54:36.000Z
setup.py
jigyasudhingra/music-recommendation-system
09c66c4f207002b200d6394cf72e853741e44b6e
[ "MIT" ]
null
null
null
setup.py
jigyasudhingra/music-recommendation-system
09c66c4f207002b200d6394cf72e853741e44b6e
[ "MIT" ]
1
2020-12-12T15:55:20.000Z
2020-12-12T15:55:20.000Z
import os import urllib.request from zipfile import ZipFile HOME_DIRECTORY = os.path.join('datasets','raw') ROOT_URL = 'https://os.unil.cloud.switch.ch/fma/fma_metadata.zip' if not os.path.isdir(HOME_DIRECTORY): os.makedirs(HOME_DIRECTORY) zip_path = os.path.join(HOME_DIRECTORY, 'data.zip') urllib.request.urlretr...
29
65
0.758621
0
0
0
0
0
0
0
0
89
0.204598
65e488ce45eec9f35c2f059eb9cb3c3452d611ab
2,601
py
Python
src/thesis/parsers/utils.py
emanuelevivoli/2021-Master-Thesis-UNIFI
e702795f71ecf0e09fca64e72780f4f6367558c9
[ "MIT" ]
1
2022-02-14T00:06:21.000Z
2022-02-14T00:06:21.000Z
src/thesis/parsers/utils.py
emanuelevivoli/2021-Master-Thesis-UNIFI
e702795f71ecf0e09fca64e72780f4f6367558c9
[ "MIT" ]
null
null
null
src/thesis/parsers/utils.py
emanuelevivoli/2021-Master-Thesis-UNIFI
e702795f71ecf0e09fca64e72780f4f6367558c9
[ "MIT" ]
1
2022-02-14T00:06:14.000Z
2022-02-14T00:06:14.000Z
from thesis.parsers.classes import Args def split_args(args: Args): dataset_args = args.datatrain training_args = args.training model_args = args.model embedding_args = args.embedds visual_args = args.visual run_args = args.runs log_args = args.logs return dataset_args, training_args...
35.148649
107
0.662438
0
0
0
0
0
0
0
0
1,222
0.469819
65e524699bbb4c1ad2b8a3703eba4df80c4f8ec4
6,625
py
Python
tensorflow_examples/lite/model_maker/core/task/custom_model.py
Abhi1code/FaceMaskDetection
689abda8243665c218193384aa655c11d555c4e9
[ "Apache-2.0" ]
1
2022-01-08T16:02:18.000Z
2022-01-08T16:02:18.000Z
tensorflow_examples/lite/model_maker/core/task/custom_model.py
Abhi1code/MaskDetection
689abda8243665c218193384aa655c11d555c4e9
[ "Apache-2.0" ]
4
2021-06-08T21:30:20.000Z
2022-03-12T00:28:38.000Z
tensorflow_examples/lite/model_maker/core/task/custom_model.py
Abhi1code/MaskDetection
689abda8243665c218193384aa655c11d555c4e9
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.401099
83
0.683321
5,422
0.818415
252
0.038038
221
0.033358
0
0
2,819
0.425509
65e60e80d09e1199bb195a86c8a1614239235c24
3,479
py
Python
src/architectures/nmp/stacked_nmp/stacked_fixed_nmp.py
isaachenrion/jets
59aeba81788d0741af448192d9dfb764fb97cf8d
[ "BSD-3-Clause" ]
9
2017-10-09T17:01:52.000Z
2018-06-12T18:06:05.000Z
src/architectures/nmp/stacked_nmp/stacked_fixed_nmp.py
isaachenrion/jets
59aeba81788d0741af448192d9dfb764fb97cf8d
[ "BSD-3-Clause" ]
31
2017-11-01T14:39:02.000Z
2018-04-18T15:34:24.000Z
src/architectures/nmp/stacked_nmp/stacked_fixed_nmp.py
isaachenrion/jets
59aeba81788d0741af448192d9dfb764fb97cf8d
[ "BSD-3-Clause" ]
10
2017-10-17T19:23:14.000Z
2020-07-05T04:44:45.000Z
import os import logging import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from src.architectures.readout import READOUTS from src.architectures.embedding import EMBEDDINGS from .attention_pooling import POOLING_LAYERS from ..message_passing import MP_LAYERS from .....
31.627273
111
0.540673
3,037
0.872952
0
0
0
0
0
0
233
0.066973
65e7b3e3e21dcd54310f063dfef34f4349a1bdff
533
py
Python
slixmpp/plugins/xep_0122/data_validation.py
anirudhrata/slixmpp
1fcee0e80a212eeb274d2f560e69099d8a61bf7f
[ "BSD-3-Clause" ]
86
2016-07-04T13:26:02.000Z
2022-02-19T10:26:21.000Z
slixmpp/plugins/xep_0122/data_validation.py
anirudhrata/slixmpp
1fcee0e80a212eeb274d2f560e69099d8a61bf7f
[ "BSD-3-Clause" ]
10
2016-09-30T18:55:41.000Z
2020-05-01T14:22:47.000Z
slixmpp/plugins/xep_0122/data_validation.py
anirudhrata/slixmpp
1fcee0e80a212eeb274d2f560e69099d8a61bf7f
[ "BSD-3-Clause" ]
45
2016-09-30T18:48:41.000Z
2022-03-18T21:39:33.000Z
from slixmpp.xmlstream import register_stanza_plugin from slixmpp.plugins import BasePlugin from slixmpp.plugins.xep_0004 import stanza from slixmpp.plugins.xep_0004.stanza import FormField from slixmpp.plugins.xep_0122.stanza import FormValidation class XEP_0122(BasePlugin): """ XEP-0122: Data Forms """ ...
26.65
58
0.754221
281
0.527205
0
0
0
0
0
0
89
0.166979
65e86aaff0a0cc5f5a6394f9f3fd03cd47bf0ab3
497
py
Python
q037.py
sjf/project_euler
8514710e2018136ba8a087ae58cba35370700f6f
[ "MIT" ]
null
null
null
q037.py
sjf/project_euler
8514710e2018136ba8a087ae58cba35370700f6f
[ "MIT" ]
null
null
null
q037.py
sjf/project_euler
8514710e2018136ba8a087ae58cba35370700f6f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import lib N=1000000 sieve = lib.get_prime_sieve(N) primes = lib.primes(N, sieve) primes = primes[4:] def is_truncatable(n): num = n c = 0 while num: if not sieve[num]: return False num = int(num / 10) c += 1 while c: num = n % 10**c if not sieve[num]: r...
15.53125
30
0.581489
0
0
0
0
0
0
0
0
22
0.044266
65e8c2b06a56311edf49d920f21df0bd1cab027c
708
py
Python
StationeersSaveFileDebugTools.py
lostinplace/StationeersSaveFileDebugTools
372a2fc86a9fc3af25044a56131271b577d4d97b
[ "MIT" ]
null
null
null
StationeersSaveFileDebugTools.py
lostinplace/StationeersSaveFileDebugTools
372a2fc86a9fc3af25044a56131271b577d4d97b
[ "MIT" ]
1
2021-01-10T21:12:41.000Z
2021-01-10T21:14:49.000Z
StationeersSaveFileDebugTools.py
lostinplace/StationeersSaveFileDebugTools
372a2fc86a9fc3af25044a56131271b577d4d97b
[ "MIT" ]
null
null
null
import click @click.group() def cli(): pass @cli.command("restore_atmo") @click.argument('currentFile') @click.argument('backupFile') @click.argument('newFilePath') def restore_atmo(current_file, backup_file, new_file_path): from Utils.AtmoFileProcessing.RestoreAtmo import create_restored_world_file cre...
26.222222
108
0.79661
0
0
0
0
648
0.915254
0
0
95
0.134181
65e9978ee2200931e2a3bf2760b84a179ae2b472
3,610
py
Python
RL/get_depthmaps.py
RECON-Labs-Inc/svox2
2946c1573fc4c8c8f378bf8154c29ba8d62af927
[ "BSD-2-Clause" ]
null
null
null
RL/get_depthmaps.py
RECON-Labs-Inc/svox2
2946c1573fc4c8c8f378bf8154c29ba8d62af927
[ "BSD-2-Clause" ]
null
null
null
RL/get_depthmaps.py
RECON-Labs-Inc/svox2
2946c1573fc4c8c8f378bf8154c29ba8d62af927
[ "BSD-2-Clause" ]
null
null
null
import sys from pathlib import Path from datetime import datetime import argparse import json import torch from torchvision.utils import save_image import torchvision import numpy as np import matplotlib.pyplot as plt from sklearn.cluster import KMeans from sklearn.metrics import pairwise_distances_argmin from sklea...
30.59322
95
0.645983
0
0
0
0
0
0
0
0
692
0.19169
65e9a81560bd3bd5d8fd30d98016ea9c330e4eba
6,350
py
Python
monty/exts/info/global_source.py
onerandomusername/monty-python
fcd8b2827eb9bbb2a05d28f80ac9e215589f03f7
[ "MIT" ]
20
2021-12-31T10:17:20.000Z
2022-03-31T04:16:17.000Z
monty/exts/info/global_source.py
onerandomusername/monty-bot
b1c769e44b56bc45f37fc809064571d59c80db27
[ "MIT" ]
1
2022-03-13T22:34:33.000Z
2022-03-13T22:34:52.000Z
monty/exts/info/global_source.py
onerandomusername/monty-bot
b1c769e44b56bc45f37fc809064571d59c80db27
[ "MIT" ]
3
2022-01-02T15:21:46.000Z
2022-03-05T09:37:54.000Z
from __future__ import annotations import os from typing import TYPE_CHECKING, Final, List from urllib.parse import urldefrag import disnake from disnake.ext import commands, tasks from monty.log import get_logger from monty.utils.helpers import encode_github_link from monty.utils.messages import DeleteButton if T...
37.352941
120
0.601732
5,724
0.901417
0
0
5,340
0.840945
4,896
0.771024
1,775
0.279528
65edc49e48e5587c1006c65ecaf10e38136be5e1
18,608
py
Python
grr/core/grr_response_core/lib/rdfvalue_test.py
khanhgithead/grr
8ad8a4d2c5a93c92729206b7771af19d92d4f915
[ "Apache-2.0" ]
4,238
2015-01-01T15:34:50.000Z
2022-03-31T08:18:05.000Z
grr/core/grr_response_core/lib/rdfvalue_test.py
khanhgithead/grr
8ad8a4d2c5a93c92729206b7771af19d92d4f915
[ "Apache-2.0" ]
787
2015-01-02T21:34:24.000Z
2022-03-02T13:26:38.000Z
grr/core/grr_response_core/lib/rdfvalue_test.py
khanhgithead/grr
8ad8a4d2c5a93c92729206b7771af19d92d4f915
[ "Apache-2.0" ]
856
2015-01-02T02:50:11.000Z
2022-03-31T11:11:53.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- """Tests for utility classes.""" import datetime import sys import unittest from absl import app from absl.testing import absltest from grr_response_core.lib import rdfvalue from grr.test_lib import test_lib long_string = ( "迎欢迎\n" "Lorem ipsum dolor sit amet...
39.591489
80
0.690294
17,527
0.940391
0
0
256
0.013735
0
0
2,032
0.109025
028ccbb703922e522d9de79fd431e21d9aeac192
909
py
Python
src/main/python/server/test.py
areichmann-tgm/client_travis
c00163e6d7630ff4efaf28605b134e356e02a9d1
[ "MIT" ]
null
null
null
src/main/python/server/test.py
areichmann-tgm/client_travis
c00163e6d7630ff4efaf28605b134e356e02a9d1
[ "MIT" ]
null
null
null
src/main/python/server/test.py
areichmann-tgm/client_travis
c00163e6d7630ff4efaf28605b134e356e02a9d1
[ "MIT" ]
null
null
null
import pytest from server import rest @pytest.fixture def client(): rest.app.testing = True #rest.app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///server.MyStudents' client = rest.app.test_client() yield client def test_get(client): res = client.get('/schueler') assert res.status_code ==...
25.971429
133
0.667767
0
0
175
0.192519
191
0.210121
0
0
342
0.376238
028dbb898943de5745b9b0587b4aecb405f08834
3,143
py
Python
helper-scripts/instrnocombine.py
felixaestheticus/realcode-validation
c599cc41797fc074bd2b71d205d6b2b904e1d64b
[ "BSD-3-Clause" ]
null
null
null
helper-scripts/instrnocombine.py
felixaestheticus/realcode-validation
c599cc41797fc074bd2b71d205d6b2b904e1d64b
[ "BSD-3-Clause" ]
null
null
null
helper-scripts/instrnocombine.py
felixaestheticus/realcode-validation
c599cc41797fc074bd2b71d205d6b2b904e1d64b
[ "BSD-3-Clause" ]
null
null
null
#combine.py, combines available dictionaries into one, and generates csv file for latex #f = open('dict_random') mem_ops = 'MOVS','MOV','LDR','LDRH','LDRB','LDRSH','LDRSB','LDM','STR','STRH','STRB','STM' ari_ops = 'ADDS','ADD','ADC','ADCS','ADR','SUBS','SUB','SBCS','RSBS','MULS','MUL','RSB','SBC' com_ops = 'CMP','CM...
25.144
119
0.602291
0
0
0
0
0
0
0
0
1,240
0.394528
028e69371236efe13bb824f07b81ce319b9462f0
4,102
py
Python
ip_client.py
HuiiBuh/checkers-master
112eb1df1d8b0d691edd82978945ea5527b75fab
[ "MIT" ]
1
2021-09-04T05:34:51.000Z
2021-09-04T05:34:51.000Z
ip_client.py
HuiiBuh/checkers-master
112eb1df1d8b0d691edd82978945ea5527b75fab
[ "MIT" ]
null
null
null
ip_client.py
HuiiBuh/checkers-master
112eb1df1d8b0d691edd82978945ea5527b75fab
[ "MIT" ]
null
null
null
#from src.piclient import PiClient from src.streamclient import StreamClient import math options = { "boarddetector": { "prepare": { "resize": [512, 512] }, "corners": { "maxcorners": 500, "qualitylevel": 0.01, "mindistance": 20 }, ...
25.165644
105
0.455144
0
0
0
0
0
0
0
0
1,062
0.258898
028e7466100505ca2d031073edf99db35fd3966b
2,773
py
Python
registration_eval/different_days/dd_compute_dense_transformation_error.py
mirestrepo/voxels-at-lems
df47d031653d2ad877a97b3c1ea574b924b7d4c2
[ "BSD-2-Clause" ]
2
2015-09-18T00:17:16.000Z
2019-02-06T04:41:29.000Z
registration_eval/different_days/dd_compute_dense_transformation_error.py
mirestrepo/voxels-at-lems
df47d031653d2ad877a97b3c1ea574b924b7d4c2
[ "BSD-2-Clause" ]
null
null
null
registration_eval/different_days/dd_compute_dense_transformation_error.py
mirestrepo/voxels-at-lems
df47d031653d2ad877a97b3c1ea574b924b7d4c2
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ compute_transformation_error.py Created by Maria Isabel Restrepo on 2012-09-24. Copyright (c) 2012 . All rights reserved. This script computes the distances betweeen an estimated similarity transformation and its ground trutrransformation is used to transform a "source" coor...
48.649123
200
0.695636
0
0
0
0
0
0
0
0
2,397
0.864407
028f14718283c8b1eabad98e17db6f0ca1dee6eb
16,301
py
Python
migrations/versions/be21086640ad_country_added.py
anjinkristou/assistor
02d9b826b9d8844d475c11c33db48cf278282183
[ "MIT" ]
1
2022-01-29T14:00:32.000Z
2022-01-29T14:00:32.000Z
migrations/versions/be21086640ad_country_added.py
anjinkristou/assistor
02d9b826b9d8844d475c11c33db48cf278282183
[ "MIT" ]
null
null
null
migrations/versions/be21086640ad_country_added.py
anjinkristou/assistor
02d9b826b9d8844d475c11c33db48cf278282183
[ "MIT" ]
null
null
null
"""Country added Revision ID: be21086640ad Revises: 153f720f966f Create Date: 2021-11-09 15:34:04.306218 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'be21086640ad' down_revision = '153f720f966f' branch_labels = None depends_on = None naming_convention = { ...
55.070946
123
0.587081
0
0
0
0
0
0
0
0
15,208
0.932949
0290a912952dfd6fc7b4ea5458b073ea88cdb834
26,718
py
Python
pyxrd/scripts/generate_default_phases.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
27
2018-06-15T15:28:18.000Z
2022-03-10T12:23:50.000Z
pyxrd/scripts/generate_default_phases.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
22
2018-06-14T08:29:16.000Z
2021-07-05T13:33:44.000Z
pyxrd/scripts/generate_default_phases.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
8
2019-04-13T13:03:51.000Z
2021-06-19T09:29:11.000Z
#!/usr/bin/python # coding=UTF-8 # ex:ts=4:sw=4:et=on # Copyright (c) 2013, Mathijs Dumon # All rights reserved. # Complete license can be found in the LICENSE file. import os from pyxrd.data import settings from pyxrd.project.models import Project from pyxrd.phases.models import Component, Phase def generate_expan...
38.777939
165
0.606183
0
0
0
0
0
0
0
0
7,969
0.298252
0291301e96c8737d3d86596ed9a5bcb7c2fdd30e
1,322
py
Python
data/kaggle_python/interview_prac/FizzBuzz.py
MohanKrishna-RC/Python-Necessities
c63fbac717a9bf7edd48ec20337c16de55f5b535
[ "FTL" ]
null
null
null
data/kaggle_python/interview_prac/FizzBuzz.py
MohanKrishna-RC/Python-Necessities
c63fbac717a9bf7edd48ec20337c16de55f5b535
[ "FTL" ]
8
2019-11-27T12:05:09.000Z
2019-11-27T12:05:18.000Z
data/kaggle_python/interview_prac/FizzBuzz.py
MohanKrishna-RC/Python-Necessities
c63fbac717a9bf7edd48ec20337c16de55f5b535
[ "FTL" ]
null
null
null
import sys """ Example : Input: 2 (Test cases) 3 (Size of array) 0 1 1 (input) 3 0 1 2 """ # To store no of test cases here (2). # To store input here (0 1 1) and (0 1 2). t = int(sys.stdin.readline()) # print(t) l = [] while t: #To store the size of array here (3). n = int(sys.stdin.readline()) ...
22.793103
98
0.519667
0
0
0
0
0
0
0
0
1,026
0.776097
029137d82ad6128135f8644310a7387974e99f16
3,660
py
Python
wikipediabase/persistentkv.py
fakedrake/WikipediaBase
ab5aa92786bddcd7942ad3e3f1f4e433575ba3fb
[ "Apache-2.0" ]
1
2017-11-26T17:57:59.000Z
2017-11-26T17:57:59.000Z
wikipediabase/persistentkv.py
fakedrake/WikipediaBase
ab5aa92786bddcd7942ad3e3f1f4e433575ba3fb
[ "Apache-2.0" ]
34
2015-03-23T10:28:59.000Z
2021-12-13T20:16:48.000Z
wikipediabase/persistentkv.py
fakedrake/WikipediaBase
ab5aa92786bddcd7942ad3e3f1f4e433575ba3fb
[ "Apache-2.0" ]
2
2015-05-17T00:56:45.000Z
2015-06-27T22:10:59.000Z
""" Some persistent maps (gdbm) require special encoding of keys and/or values. This is an abstraction for these kinds of quirks. """ from itertools import imap import collections import gdbm as dbm import json from sqlitedict import SqliteDict import os class EncodedDict(collections.MutableMapping): """ Sub...
24.72973
76
0.650546
2,374
0.648634
0
0
0
0
0
0
1,346
0.36776
0291c411c4fb519a999596fb62a5c1bf748ff844
1,672
py
Python
SlidingWindows/Leetcode132.py
Rylie-W/LeetRecord
623c4efe88b3af54b8a65f6ec23db850b8c6f46f
[ "Apache-2.0" ]
null
null
null
SlidingWindows/Leetcode132.py
Rylie-W/LeetRecord
623c4efe88b3af54b8a65f6ec23db850b8c6f46f
[ "Apache-2.0" ]
null
null
null
SlidingWindows/Leetcode132.py
Rylie-W/LeetRecord
623c4efe88b3af54b8a65f6ec23db850b8c6f46f
[ "Apache-2.0" ]
null
null
null
class Solution: def minCut(self, s: str) -> int: dp=self.isPal(s) return self.bfs(s,dp) def isPal(self,s): dp=[[False for i in s] for i in s] for i in range(len(s)): dp[i][i]=True if i+1<len(s): dp[i][i+1]=True if s[i]==s[i+1] else False ...
30.962963
108
0.423445
1,459
0.872608
0
0
0
0
0
0
252
0.150718
0292b6686b64612233e83af31cfc31f88384ed05
3,708
py
Python
widgets/component.py
peskaf/ramAIn
8eb1418007c925ac618e3bddd7de2c0520f5977a
[ "MIT" ]
null
null
null
widgets/component.py
peskaf/ramAIn
8eb1418007c925ac618e3bddd7de2c0520f5977a
[ "MIT" ]
null
null
null
widgets/component.py
peskaf/ramAIn
8eb1418007c925ac618e3bddd7de2c0520f5977a
[ "MIT" ]
null
null
null
from PySide6.QtGui import QColor from PySide6.QtWidgets import QFrame, QHBoxLayout, QWidget from PySide6.QtCore import Qt, QSettings, QEvent from utils import colors import pyqtgraph as pg import numpy as np class ScrollablePlotWidget(pg.PlotWidget): """ Subclass of `pg.PlotWidget` that overrides `wheelEven...
32.243478
102
0.650755
3,484
0.93959
0
0
0
0
0
0
1,338
0.360841
029490250183cbdb90fa4664ca45b602bbeae6f3
9,124
py
Python
Step 4 - Implement the tflite for raspberry pi/godlike_tflite_cam_script.py
monacotime/4.IoT-project-sem-5
ef14dfba33d308cb5307bbb07d2950fd9a34cfda
[ "MIT" ]
null
null
null
Step 4 - Implement the tflite for raspberry pi/godlike_tflite_cam_script.py
monacotime/4.IoT-project-sem-5
ef14dfba33d308cb5307bbb07d2950fd9a34cfda
[ "MIT" ]
null
null
null
Step 4 - Implement the tflite for raspberry pi/godlike_tflite_cam_script.py
monacotime/4.IoT-project-sem-5
ef14dfba33d308cb5307bbb07d2950fd9a34cfda
[ "MIT" ]
null
null
null
### IT WORKS BOIISSS WE DID IT!!!!### #------------------------------------------------------------- #Imports #------------------------------------------------------------- import tensorflow as tf import numpy as np from PIL import Image import cv2 import colorsys import random import time from googleapiclient.http i...
42.635514
130
0.551732
0
0
0
0
0
0
0
0
2,275
0.249342
0295359e838ee62284e6df9935d33336b1756495
2,790
py
Python
maskrcnn_benchmark/modeling/backbone/res2net_builder.py
koseimori/Res2Net-maskrcnn
e205ff67855b52375f340ca70a08995069424e5c
[ "MIT" ]
31
2020-02-02T15:12:13.000Z
2022-03-18T08:09:17.000Z
maskrcnn_benchmark/modeling/backbone/res2net_builder.py
koseimori/Res2Net-maskrcnn
e205ff67855b52375f340ca70a08995069424e5c
[ "MIT" ]
4
2020-03-08T08:26:12.000Z
2021-03-08T11:30:52.000Z
maskrcnn_benchmark/modeling/backbone/res2net_builder.py
koseimori/Res2Net-maskrcnn
e205ff67855b52375f340ca70a08995069424e5c
[ "MIT" ]
17
2020-02-20T12:04:04.000Z
2021-06-06T07:26:23.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from collections import OrderedDict from torch import nn from maskrcnn_benchmark.modeling import registry from maskrcnn_benchmark.modeling.make_layers import conv_with_kaiming_uniform from . import fpn as fpn_module from . import res2net @regis...
34.875
83
0.699283
0
0
0
0
2,167
0.776703
0
0
513
0.183871
029644afd069012e2e180cddce470b4c75d102b6
608
py
Python
code/tmp_rtrip/test/memory_watchdog.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
24
2018-01-23T05:28:40.000Z
2021-04-13T20:52:59.000Z
code/tmp_rtrip/test/memory_watchdog.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
17
2017-12-21T18:32:31.000Z
2018-12-18T17:09:50.000Z
code/tmp_rtrip/test/memory_watchdog.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
null
null
null
"""Memory watchdog: periodically read the memory usage of the main test process and print it out, until terminated.""" import os import sys import time try: page_size = os.sysconf('SC_PAGESIZE') except (ValueError, AttributeError): try: page_size = os.sysconf('SC_PAGE_SIZE') except (ValueError, Attr...
28.952381
79
0.662829
0
0
0
0
0
0
0
0
184
0.302632
02967401719aa2d8549023548710f426054a51b3
371
py
Python
tests/conftest.py
charles-cooper/crvfunder
63b4041ff06ff6ea943a7d69ae233719c4411bbd
[ "MIT" ]
6
2022-03-17T21:10:41.000Z
2022-03-27T04:38:53.000Z
tests/conftest.py
charles-cooper/crvfunder
63b4041ff06ff6ea943a7d69ae233719c4411bbd
[ "MIT" ]
null
null
null
tests/conftest.py
charles-cooper/crvfunder
63b4041ff06ff6ea943a7d69ae233719c4411bbd
[ "MIT" ]
2
2022-03-26T03:37:40.000Z
2022-03-28T22:01:20.000Z
import pytest pytest_plugins = ["fixtures.accounts", "fixtures.deployments"] def pytest_sessionfinish(session, exitstatus): if exitstatus == pytest.ExitCode.NO_TESTS_COLLECTED: # we treat "no tests collected" as passing session.exitstatus = pytest.ExitCode.OK @pytest.fixture(autouse=True) def i...
24.733333
62
0.749326
0
0
0
0
85
0.229111
0
0
83
0.22372
0297324475a0f71073a283c42e8668872ade345c
38,375
py
Python
sdk/python/pulumi_databricks/permissions.py
pulumi/pulumi-databricks
43580d4adbd04b72558f368ff0eef3d03432ebc1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_databricks/permissions.py
pulumi/pulumi-databricks
43580d4adbd04b72558f368ff0eef3d03432ebc1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_databricks/permissions.py
pulumi/pulumi-databricks
43580d4adbd04b72558f368ff0eef3d03432ebc1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
41.802832
279
0.645368
37,906
0.987779
0
0
33,780
0.880261
0
0
11,641
0.303349
02974a7f2e55a4545889ad1727cb810be5d621b5
1,254
py
Python
file/txt2bin.py
QPointNotebook/PythonSample
53c2a54da2bf9a61449ed1c7d2864c5c0eedc5e0
[ "MIT" ]
null
null
null
file/txt2bin.py
QPointNotebook/PythonSample
53c2a54da2bf9a61449ed1c7d2864c5c0eedc5e0
[ "MIT" ]
null
null
null
file/txt2bin.py
QPointNotebook/PythonSample
53c2a54da2bf9a61449ed1c7d2864c5c0eedc5e0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from file.file import file class txt2bin( file ): def read( self, file ): datas = [] with open( file, 'r', encoding='utf-8' ) as f: lines = f.readlines() for line in lines: data = line....
31.35
77
0.369219
1,178
0.939394
0
0
0
0
0
0
194
0.154705
02982b64a64f41b7dc43e4d28a9770dcfad2d139
2,105
py
Python
PGPs_tensorflow/Examples/Airline.py
maziarraissi/ParametricGP
d5974c9e41a2cd761c0cfaff138c5b1722c006db
[ "MIT" ]
43
2017-04-12T10:43:21.000Z
2022-02-28T05:16:02.000Z
PGPs_tensorflow/Examples/Airline.py
arita37/ParametricGP
9c04f3166c22e787a92290fe4353ba4f918ed598
[ "MIT" ]
1
2018-05-25T00:26:10.000Z
2018-05-29T05:26:15.000Z
PGPs_tensorflow/Examples/Airline.py
arita37/ParametricGP
9c04f3166c22e787a92290fe4353ba4f918ed598
[ "MIT" ]
22
2017-04-12T02:22:08.000Z
2021-04-10T23:19:52.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: Maziar Raissi """ import sys sys.path.insert(0, '../PGP/') import numpy as np import matplotlib.pyplot as plt import pandas as pd from parametric_GP import PGP if __name__ == "__main__": # Import the data data = pd.read_pickle('airline.pick...
25.059524
106
0.566271
0
0
0
0
0
0
0
0
555
0.263658
029864a3d0017b3744cbc0ce2c0fdf1a9dd81484
2,081
py
Python
django_project/proj/settings/local.py
robabram/Quickstart-Secure-Django-Template
22f304e864f8f6ce972f44bce6fe9b885341201a
[ "MIT" ]
9
2018-10-03T00:30:57.000Z
2021-12-29T07:48:08.000Z
django_project/proj/settings/local.py
robabram/Quickstart-Secure-Django-Template
22f304e864f8f6ce972f44bce6fe9b885341201a
[ "MIT" ]
9
2020-02-10T17:08:01.000Z
2021-11-19T17:21:18.000Z
django_project/proj/settings/local.py
robabram/Quickstart-Secure-Django-Template
22f304e864f8f6ce972f44bce6fe9b885341201a
[ "MIT" ]
null
null
null
# # Author: Robert Abram <rabram991@gmail.com> # # This file is subject to the terms and conditions defined in the # file 'LICENSE', which is part of this source code package. # import os from proj.settings.base import * # # Logging # LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'formatter...
27.381579
86
0.475252
0
0
0
0
0
0
0
0
1,159
0.556944
0298d15f0c2dd54fb30dc11d08603cd497ca28b4
3,426
py
Python
pyfos/utils/system_security/seccertmgmt_show.py
madhavinaiduprathap/pyfosbrocade
ec100e77c441761c3e688f1d8e5d18ad38cc83f4
[ "Apache-2.0" ]
44
2017-11-17T12:03:11.000Z
2022-02-03T20:57:56.000Z
pyfos/utils/system_security/seccertmgmt_show.py
madhavinaiduprathap/pyfosbrocade
ec100e77c441761c3e688f1d8e5d18ad38cc83f4
[ "Apache-2.0" ]
13
2018-10-09T15:34:15.000Z
2022-02-24T20:03:17.000Z
pyfos/utils/system_security/seccertmgmt_show.py
madhavinaiduprathap/pyfosbrocade
ec100e77c441761c3e688f1d8e5d18ad38cc83f4
[ "Apache-2.0" ]
23
2017-12-14T18:08:33.000Z
2022-02-03T15:33:40.000Z
#!/usr/bin/env python3 # Copyright 2018 Brocade Communications Systems LLC. 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 also obtain a copy of the License at # http://www.apache.org/licenses/LICENS...
30.864865
83
0.694104
0
0
0
0
0
0
0
0
2,563
0.748103
029a249ed3ef3d36cbd9d5a8a3e1445f10e3e29d
2,345
py
Python
tests/base.py
Suhail6inkling/bot
95ae05c773e753699e6899255783c1d7df936024
[ "MIT" ]
1
2022-01-01T17:33:48.000Z
2022-01-01T17:33:48.000Z
tests/base.py
Suhail6inkling/bot
95ae05c773e753699e6899255783c1d7df936024
[ "MIT" ]
null
null
null
tests/base.py
Suhail6inkling/bot
95ae05c773e753699e6899255783c1d7df936024
[ "MIT" ]
1
2020-11-01T19:57:00.000Z
2020-11-01T19:57:00.000Z
import logging import unittest from contextlib import contextmanager class _CaptureLogHandler(logging.Handler): """ A logging handler capturing all (raw and formatted) logging output. """ def __init__(self): super().__init__() self.records = [] def emit(self, record): sel...
34.485294
104
0.639659
2,270
0.968017
1,862
0.79403
1,882
0.802559
0
0
796
0.339446
029b069d68471e7fbe34c10e131ca57fcd80d3f5
892
py
Python
blog/app/admin/views.py
web-user/flask-blog
130f5dbcdb18b8f325c7aa8dd3d71cbc7190485a
[ "MIT" ]
null
null
null
blog/app/admin/views.py
web-user/flask-blog
130f5dbcdb18b8f325c7aa8dd3d71cbc7190485a
[ "MIT" ]
null
null
null
blog/app/admin/views.py
web-user/flask-blog
130f5dbcdb18b8f325c7aa8dd3d71cbc7190485a
[ "MIT" ]
null
null
null
from flask import Flask, render_template, session, redirect, url_for, request, flash, abort, current_app, make_response from flask_login import login_user, logout_user, login_required, current_user from . import admin from .. import db from ..models import User, Post from ..form import PostForm from functools import wr...
34.307692
119
0.690583
0
0
0
0
516
0.578475
0
0
105
0.117713
029c0dd5be38ab97f221e4b0ca039e07bafa37e8
2,561
py
Python
examples/get-set-params/robot.py
Tyler-Duckworth/robotpy-rev
d03829a4f8e47526e753f0edeafc1df888880775
[ "Apache-2.0" ]
1
2019-01-28T18:16:55.000Z
2019-01-28T18:16:55.000Z
examples/get-set-params/robot.py
Tyler-Duckworth/robotpy-rev
d03829a4f8e47526e753f0edeafc1df888880775
[ "Apache-2.0" ]
18
2019-01-09T08:35:48.000Z
2022-01-15T02:17:23.000Z
examples/get-set-params/robot.py
Tyler-Duckworth/robotpy-rev
d03829a4f8e47526e753f0edeafc1df888880775
[ "Apache-2.0" ]
9
2019-01-11T03:14:19.000Z
2022-01-13T00:51:48.000Z
# ---------------------------------------------------------------------------- # Copyright (c) 2017-2018 FIRST. All Rights Reserved. # Open Source Software - may be modified and shared by FRC teams. The code # must be accompanied by the FIRST BSD license file in the root directory of # the project. # ------------------...
40.015625
88
0.632956
2,102
0.820773
0
0
0
0
0
0
1,284
0.501367
029cefa854d393945ca4f9769661f617a4a0cbfe
39,324
py
Python
pyclustering/nnet/som.py
JosephChataignon/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
1,013
2015-01-26T19:50:14.000Z
2022-03-31T07:38:48.000Z
pyclustering/nnet/som.py
peterlau0626/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
542
2015-01-20T16:44:32.000Z
2022-01-29T14:57:20.000Z
pyclustering/nnet/som.py
peterlau0626/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
262
2015-03-19T07:28:12.000Z
2022-03-30T07:28:24.000Z
"""! @brief Neural Network: Self-Organized Feature Map @details Implementation based on paper @cite article::nnet::som::1, @cite article::nnet::som::2. @authors Andrei Novikov (pyclustering@yandex.ru) @date 2014-2020 @copyright BSD-3-Clause """ import math import random import matplotlib.pyplot as pl...
39.402806
203
0.576416
38,726
0.984793
0
0
1,936
0.049232
0
0
13,775
0.350295
029d25002fe312ac4b1cd506fc070aee02af1ff6
2,265
py
Python
ros/src/tl_detector/light_classification/tl_classifier.py
trajkd/Programming-a-Real-Self-Driving-Car
536377815a8dd907c59979f4a07d25b6d157dbaa
[ "MIT" ]
1
2021-08-17T11:19:34.000Z
2021-08-17T11:19:34.000Z
ros/src/tl_detector/light_classification/tl_classifier.py
trajkd/Programming-a-Real-Self-Driving-Car
536377815a8dd907c59979f4a07d25b6d157dbaa
[ "MIT" ]
7
2020-09-26T01:07:12.000Z
2022-03-12T00:31:00.000Z
ros/src/tl_detector/light_classification/tl_classifier.py
trajkd/Programming-a-Real-Self-Driving-Car
536377815a8dd907c59979f4a07d25b6d157dbaa
[ "MIT" ]
1
2021-08-06T17:24:26.000Z
2021-08-06T17:24:26.000Z
import rospy from styx_msgs.msg import TrafficLight import numpy as np from keras.models import Model from keras import applications from keras.models import load_model from keras.preprocessing import image as img_preprocessing import cv2 # load the trained model from keras.utils.generic_utils import CustomObjectScop...
36.532258
132
0.680795
1,866
0.823841
0
0
0
0
0
0
1,012
0.446799
029d60e7a021da261de9331901e5b18fe50fb799
2,080
py
Python
sktime/clustering/evaluation/_plot_clustering.py
marcio55afr/sktime
25ba2f470f037366ca6b0e529137d3d0a6191e2e
[ "BSD-3-Clause" ]
5,349
2019-03-21T14:56:50.000Z
2022-03-31T11:25:30.000Z
sktime/clustering/evaluation/_plot_clustering.py
marcio55afr/sktime
25ba2f470f037366ca6b0e529137d3d0a6191e2e
[ "BSD-3-Clause" ]
1,803
2019-03-26T13:33:53.000Z
2022-03-31T23:58:10.000Z
sktime/clustering/evaluation/_plot_clustering.py
marcio55afr/sktime
25ba2f470f037366ca6b0e529137d3d0a6191e2e
[ "BSD-3-Clause" ]
911
2019-03-25T01:21:30.000Z
2022-03-31T04:45:51.000Z
# -*- coding: utf-8 -*- """Cluster plotting tools""" __author__ = ["Christopher Holder", "Tony Bagnall"] __all__ = ["plot_cluster_algorithm"] import pandas as pd from sktime.clustering.base._typing import NumpyOrDF from sktime.clustering.base.base import BaseClusterer from sktime.clustering.partitioning._lloyds_parti...
30.144928
88
0.703846
0
0
0
0
0
0
0
0
502
0.241346
029ed725f1f2d111375bab605c9d49677c361f7c
2,858
py
Python
src/tests/crud/test_user.py
Behnam-sn/neat-backend
ba6e6356ee092eba27179f72fd2a15e25c68d1b8
[ "MIT" ]
1
2022-03-07T22:16:48.000Z
2022-03-07T22:16:48.000Z
src/tests/crud/test_user.py
Behnam-sn/neat-backend
ba6e6356ee092eba27179f72fd2a15e25c68d1b8
[ "MIT" ]
null
null
null
src/tests/crud/test_user.py
Behnam-sn/neat-backend
ba6e6356ee092eba27179f72fd2a15e25c68d1b8
[ "MIT" ]
1
2022-03-07T22:16:49.000Z
2022-03-07T22:16:49.000Z
from sqlalchemy.orm import Session from src import crud from src.core.security import verify_password from src.schemas.user import UserCreate, UserUpdate from src.tests.utils.user import create_random_user_by_api from src.tests.utils.utils import random_lower_string def test_create_user(db: Session): username = ...
26.220183
74
0.747726
0
0
0
0
0
0
0
0
17
0.005948
02a1f0d97978ae4cf6f1fe28ed7cbca384a07bc2
1,062
py
Python
src/transductor/tests/test_forms.py
fga-gpp-mds/2016.2-Time07
44d78ce4f36b7cb535b9c775027b8a93972ba5e3
[ "MIT" ]
null
null
null
src/transductor/tests/test_forms.py
fga-gpp-mds/2016.2-Time07
44d78ce4f36b7cb535b9c775027b8a93972ba5e3
[ "MIT" ]
null
null
null
src/transductor/tests/test_forms.py
fga-gpp-mds/2016.2-Time07
44d78ce4f36b7cb535b9c775027b8a93972ba5e3
[ "MIT" ]
null
null
null
from django.test import TestCase from transductor.forms import EnergyForm from transductor.models import TransductorModel class EnergyTransductorForm(TestCase): def setUp(self): t_model = TransductorModel() t_model.name = "TR 4020" t_model.transport_protocol = "UDP" t_model.serial_...
25.902439
56
0.579096
937
0.882298
0
0
0
0
0
0
173
0.1629
02a2b904bf7cbd57601e581a0ffde8c156b2a583
3,729
py
Python
src/models/base.py
zhengzangw/pytorch-classification
3a6d95e3810015fa71c950492585c11dfe0b8b64
[ "MIT" ]
null
null
null
src/models/base.py
zhengzangw/pytorch-classification
3a6d95e3810015fa71c950492585c11dfe0b8b64
[ "MIT" ]
null
null
null
src/models/base.py
zhengzangw/pytorch-classification
3a6d95e3810015fa71c950492585c11dfe0b8b64
[ "MIT" ]
null
null
null
from typing import Any, List, Optional import hydra import torch import torchmetrics from omegaconf import DictConfig from pytorch_lightning import LightningModule from ..optimizer.scheduler import create_scheduler from ..utils import utils from ..utils.misc import mixup_data log = utils.get_logger(__name__) class...
31.601695
98
0.604452
3,413
0.915259
0
0
0
0
0
0
728
0.195227
02a48025dd5fe8b32b133893735d857d8b3b537a
11,122
py
Python
tea/balance.py
pcubillos/TEA
e3e4844de4cacef89b9f4a8b1673545726bfc42e
[ "BSD-4-Clause-UC" ]
25
2016-06-20T23:21:46.000Z
2022-02-06T18:57:33.000Z
tea/balance.py
pcubillos/TEA
e3e4844de4cacef89b9f4a8b1673545726bfc42e
[ "BSD-4-Clause-UC" ]
3
2015-06-04T16:56:26.000Z
2018-04-03T03:33:31.000Z
tea/balance.py
dzesmin/TEA
0ec66410f274d9deea7764d53d6363f9aaad3355
[ "BSD-4-Clause-UC" ]
19
2015-05-27T17:46:41.000Z
2021-08-05T10:54:59.000Z
#! /usr/bin/env python ############################# BEGIN FRONTMATTER ################################ # # # TEA - calculates Thermochemical Equilibrium Abundances of chemical species # # ...
45.958678
85
0.538482
0
0
0
0
0
0
0
0
8,282
0.74465
02a4beb0015cd6725cf78ab2fb76439c197ecfc1
2,073
py
Python
sims/s251/calc-err.py
ammarhakim/ammar-simjournal
85b64ddc9556f01a4fab37977864a7d878eac637
[ "MIT", "Unlicense" ]
1
2019-12-19T16:21:13.000Z
2019-12-19T16:21:13.000Z
sims/s251/calc-err.py
ammarhakim/ammar-simjournal
85b64ddc9556f01a4fab37977864a7d878eac637
[ "MIT", "Unlicense" ]
null
null
null
sims/s251/calc-err.py
ammarhakim/ammar-simjournal
85b64ddc9556f01a4fab37977864a7d878eac637
[ "MIT", "Unlicense" ]
2
2020-01-08T06:23:33.000Z
2020-01-08T07:06:50.000Z
from pylab import * import tables def exactSol(X, Y, t): return exp(-2*t)*sin(X)*cos(Y) fh = tables.openFile("s251-dg-diffuse-2d_q_1.h5") q = fh.root.StructGridField nx, ny, nc = q.shape dx = 2*pi/nx Xf = linspace(0, 2*pi-dx, nx) dy = 2*pi/ny Yf = linspace(0, 2*pi-dy, ny) XX, YY = meshgrid(Xf, Yf) Xhr = linspace...
21.371134
65
0.578389
0
0
0
0
0
0
0
0
179
0.086348
02a600c96645d56c182f0a175380bb6948a7e4b5
973
py
Python
PyCharm/Exercicios/Aula12/ex041.py
fabiodarice/Python
15ec1c7428f138be875111ac98ba38cf2eec1a93
[ "MIT" ]
null
null
null
PyCharm/Exercicios/Aula12/ex041.py
fabiodarice/Python
15ec1c7428f138be875111ac98ba38cf2eec1a93
[ "MIT" ]
null
null
null
PyCharm/Exercicios/Aula12/ex041.py
fabiodarice/Python
15ec1c7428f138be875111ac98ba38cf2eec1a93
[ "MIT" ]
null
null
null
# Importação de bibliotecas from datetime import date # Título do programa print('\033[1;34;40mCLASSIFICAÇÃO DE CATEGORIAS PARA NATAÇÃO\033[m') # Objetos nascimento = int(input('\033[30mDigite o ano do seu nascimento:\033[m ')) idade = date.today().year - nascimento mirim = 9 infantil = 14 junior = 19 senior = 20 # ...
38.92
109
0.693731
0
0
0
0
0
0
0
0
601
0.605847
02a632349d6da6f348ea1c189802c694c33a0241
1,681
py
Python
github-bot/harvester_github_bot/config.py
futuretea/bot
5f1f1a08e0fca6519e0126ff8f0b87fec23a38e3
[ "Apache-2.0" ]
null
null
null
github-bot/harvester_github_bot/config.py
futuretea/bot
5f1f1a08e0fca6519e0126ff8f0b87fec23a38e3
[ "Apache-2.0" ]
null
null
null
github-bot/harvester_github_bot/config.py
futuretea/bot
5f1f1a08e0fca6519e0126ff8f0b87fec23a38e3
[ "Apache-2.0" ]
null
null
null
from everett.component import RequiredConfigMixin, ConfigOptions from everett.manager import ConfigManager, ConfigOSEnv class BotConfig(RequiredConfigMixin): required_config = ConfigOptions() required_config.add_option('flask_loglevel', parser=str, default='info', doc='Set the log level for Flask.') requi...
64.653846
121
0.606782
1,423
0.84652
0
0
0
0
0
0
543
0.323022
02a66be9396c06d98dcd1e2835505651b29dc2d8
618
py
Python
scripts/MCA/1combine.py
jumphone/scRef
7308d8571c3e46f481c9432857de84fd13955166
[ "MIT" ]
10
2018-11-27T09:32:53.000Z
2022-03-21T02:42:54.000Z
scripts/MCA/1combine.py
jumphone/scRef
7308d8571c3e46f481c9432857de84fd13955166
[ "MIT" ]
null
null
null
scripts/MCA/1combine.py
jumphone/scRef
7308d8571c3e46f481c9432857de84fd13955166
[ "MIT" ]
2
2018-12-13T18:45:26.000Z
2020-06-20T07:18:19.000Z
import sys output=sys.argv[1] input_list=(sys.argv[2:]) EXP={} header=[] for input_file in input_list: fi=open(input_file) header=header+fi.readline().replace('"','').rstrip().split() for line in fi: seq=line.replace('"','').rstrip().split() if seq[0] in EXP: EXP[s...
16.263158
65
0.509709
0
0
0
0
0
0
0
0
33
0.053398
02a7fe68590060c7734febb66561d5e0b21091e7
1,152
py
Python
apps/portalbase/macros/wiki/graph/1_main.py
jumpscale7/jumpscale_portal
8c99265e48f85643f8a52bc40a23f5266fb09231
[ "Apache-2.0" ]
2
2016-04-14T14:05:01.000Z
2016-04-21T07:20:36.000Z
apps/portalbase/macros/wiki/graph/1_main.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
13
2016-03-07T12:07:15.000Z
2018-02-28T13:11:59.000Z
apps/portalbase/macros/wiki/graph/1_main.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
5
2016-03-08T07:49:51.000Z
2018-10-19T13:57:04.000Z
def main(j, args, params, tags, tasklet): params.merge(args) doc = params.doc tags = params.tags out = "" cmdstr = params.macrostr.split(":", 1)[1].replace("}}", "").strip() md5 = j.base.byteprocessor.hashMd5(cmdstr) j.system.fs.createDir(j.system.fs.joinPaths(j.core.portal.active.filesro...
27.428571
87
0.539063
0
0
0
0
0
0
0
0
209
0.181424
02a84eeec97777f61185766e05077d7532adafbc
232
py
Python
pyramda/logic/any_pass.py
sergiors/pyramda
5bf200888809b1bc946e813e29460f204bccd13e
[ "MIT" ]
124
2015-07-30T21:34:25.000Z
2022-02-19T08:45:50.000Z
pyramda/logic/any_pass.py
sergiors/pyramda
5bf200888809b1bc946e813e29460f204bccd13e
[ "MIT" ]
37
2015-08-31T23:02:20.000Z
2022-02-04T04:45:28.000Z
pyramda/logic/any_pass.py
sergiors/pyramda
5bf200888809b1bc946e813e29460f204bccd13e
[ "MIT" ]
20
2015-08-04T18:59:09.000Z
2021-12-13T08:08:59.000Z
from pyramda.function.curry import curry from pyramda.function.always import always from pyramda.iterable.reduce import reduce from .either import either @curry def any_pass(ps, v): return reduce(either, always(False), ps)(v)
23.2
47
0.784483
0
0
0
0
75
0.323276
0
0
0
0
02ab52b832209102ceb109d8aa07a587d3c2d55e
817
py
Python
bio/scheduler/views.py
ZuluPro/bio-directory
4cdd3967e97363f59795d7b0fdb85998029370ff
[ "BSD-2-Clause" ]
null
null
null
bio/scheduler/views.py
ZuluPro/bio-directory
4cdd3967e97363f59795d7b0fdb85998029370ff
[ "BSD-2-Clause" ]
null
null
null
bio/scheduler/views.py
ZuluPro/bio-directory
4cdd3967e97363f59795d7b0fdb85998029370ff
[ "BSD-2-Clause" ]
null
null
null
from django.shortcuts import render, get_object_or_404 from django.utils.timezone import now from schedule.models import Calendar from schedule.periods import Day from bio.scheduler import models def actions(request): actions = models.Action.objects.order_by('-created_on') period = Day(actions, now()) # X...
31.423077
74
0.684211
0
0
0
0
0
0
0
0
124
0.151775
02ac373e21b06fce0640079ee711d2d820229c82
1,759
py
Python
src/undefined/1/try.py
ytyaru0/Python.Sqlite.framework.think.20180305101210
babb8f55183776a9cbed486613c4a1a7caa6daf2
[ "CC0-1.0" ]
null
null
null
src/undefined/1/try.py
ytyaru0/Python.Sqlite.framework.think.20180305101210
babb8f55183776a9cbed486613c4a1a7caa6daf2
[ "CC0-1.0" ]
null
null
null
src/undefined/1/try.py
ytyaru0/Python.Sqlite.framework.think.20180305101210
babb8f55183776a9cbed486613c4a1a7caa6daf2
[ "CC0-1.0" ]
null
null
null
try: import MyTable except NameError as e: print(e) import importlib importlib.import_module('Constraints') # 現在 locals() にある module に Constraints.py モジュールを加える。 # (MyTableにConstraintsを加える。`from Constraints import PK,UK,FK,NN,D,C`する) # トレースバックで例外発生モジュールを補足 import sys, traceback exc_t...
29.316667
75
0.665151
0
0
0
0
0
0
0
0
1,091
0.537703
02aedbb634ecb4773466e66e6c16d7f09a8368bc
22,797
py
Python
trac/wiki/tests/admin.py
rjollos/trac
2bc0edd96b0eace18aaa8a2fe3cbeebdf1a88214
[ "BSD-3-Clause" ]
null
null
null
trac/wiki/tests/admin.py
rjollos/trac
2bc0edd96b0eace18aaa8a2fe3cbeebdf1a88214
[ "BSD-3-Clause" ]
null
null
null
trac/wiki/tests/admin.py
rjollos/trac
2bc0edd96b0eace18aaa8a2fe3cbeebdf1a88214
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2018-2020 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at https://trac.edgewall.org/wiki/TracLicense. # # This software cons...
37.128664
79
0.605343
21,560
0.945738
0
0
0
0
0
0
2,064
0.090538
02aee1a4ed761847d16082b08939ec1e2b7eae92
2,646
py
Python
cli/cli.py
kandrio/toy-chord
c35b02f1e7d7ba44e14a86e1944acc8cee3cd5da
[ "Apache-2.0" ]
null
null
null
cli/cli.py
kandrio/toy-chord
c35b02f1e7d7ba44e14a86e1944acc8cee3cd5da
[ "Apache-2.0" ]
null
null
null
cli/cli.py
kandrio/toy-chord
c35b02f1e7d7ba44e14a86e1944acc8cee3cd5da
[ "Apache-2.0" ]
null
null
null
import click, requests, sys bootstrap_ip = '192.168.0.2' bootstrap_port = '8000' base_url = 'http://' + bootstrap_ip + ':' + bootstrap_port @click.group() def toychord(): """CLI client for toy-chord.""" pass @toychord.command() @click.option('--key', required=True, type=str) @click.option('--value', requir...
25.941176
77
0.628118
0
0
0
0
2,443
0.92328
0
0
1,025
0.387377
02b0025b6adb156b789fef5aff0bf34cd7804353
87
py
Python
sportstrackeranalyzer/plugin_handler/__init__.py
XeBoris/SportsTrackerAnalyzer
f211a9120b9ba91bb04b9742c80d0de7b4143f78
[ "MIT" ]
1
2021-02-12T08:00:34.000Z
2021-02-12T08:00:34.000Z
sportstrackeranalyzer/plugin_handler/__init__.py
XeBoris/SportsTrackerAnalyzer
f211a9120b9ba91bb04b9742c80d0de7b4143f78
[ "MIT" ]
null
null
null
sportstrackeranalyzer/plugin_handler/__init__.py
XeBoris/SportsTrackerAnalyzer
f211a9120b9ba91bb04b9742c80d0de7b4143f78
[ "MIT" ]
null
null
null
from sportstrackeranalyzer.plugins.plugin_simple_distances import Plugin_SimpleDistance
87
87
0.942529
0
0
0
0
0
0
0
0
0
0
02b0d90057314fc93b4b1b7ec332876605dcadca
2,598
py
Python
migrations/versions/a12e86de073c_.py
ravenscroftj/harri_gttool
11e8e6b5e8c4bbfc62dc15c7d8b099d4a4fa1a5e
[ "MIT" ]
null
null
null
migrations/versions/a12e86de073c_.py
ravenscroftj/harri_gttool
11e8e6b5e8c4bbfc62dc15c7d8b099d4a4fa1a5e
[ "MIT" ]
4
2020-06-18T14:38:26.000Z
2021-12-13T19:54:55.000Z
migrations/versions/a12e86de073c_.py
ravenscroftj/harri_gttool
11e8e6b5e8c4bbfc62dc15c7d8b099d4a4fa1a5e
[ "MIT" ]
null
null
null
"""Initial creation of schema Revision ID: a12e86de073c Revises: Create Date: 2018-01-05 13:42:18.768932 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'a12e86de073c' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### comma...
36.591549
90
0.681678
0
0
0
0
0
0
0
0
856
0.329484
02b1a17a92fa82b80990e63f3f0d4e50c1738b1c
5,106
py
Python
takedown/__init__.py
zsxing99/Takedown-script
fcd0533ab71a1198651a6e53cd1d58039d4fa7fd
[ "MIT" ]
1
2021-01-06T00:23:03.000Z
2021-01-06T00:23:03.000Z
takedown/__init__.py
zsxing99/Takedown-script
fcd0533ab71a1198651a6e53cd1d58039d4fa7fd
[ "MIT" ]
4
2020-11-09T06:01:25.000Z
2020-12-17T06:39:30.000Z
takedown/__init__.py
zsxing99/Takedown-script
fcd0533ab71a1198651a6e53cd1d58039d4fa7fd
[ "MIT" ]
null
null
null
""" TakeDown v0.0.1 =============== author: Zesheng Xing email: zsxing@ucdavis.edu This Python project is to help people search on some client hosting contents that potential violate the their copyright. """ VERSION = "0.1.0" DESCRIPTION = "A python script that allows users to search potential copyright violated info...
60.785714
120
0.665883
0
0
0
0
0
0
0
0
5,133
0.985032
02b1f2bbe7cd1537f8a13eba37e53d713c062a3c
977
py
Python
test/test_data.py
xoriath/py-cab
ab02faeaf69578bb9a0874632c610b27a9dd582f
[ "MIT" ]
null
null
null
test/test_data.py
xoriath/py-cab
ab02faeaf69578bb9a0874632c610b27a9dd582f
[ "MIT" ]
null
null
null
test/test_data.py
xoriath/py-cab
ab02faeaf69578bb9a0874632c610b27a9dd582f
[ "MIT" ]
null
null
null
import os.path CABEXTRACT_TEST_DIR = os.path.join(os.path.dirname(__file__), 'test-data', 'cabextract', 'cabs') CABEXTRACT_BUGS_DIR = os.path.join(os.path.dirname(__file__), 'test-data', 'cabextract', 'bugs') LIBMSPACK_TEST_DIR = os.path.join(os.path.dirname(__file__), 'test-data', 'libmspack') def read_cabextract_...
36.185185
107
0.732856
0
0
0
0
0
0
0
0
110
0.11259
02b2af84d188c97a9d4469b8353aba7b18703383
141
py
Python
utils/exception.py
Lolik-Bolik/Hashing_Algorithms
d3ba488cf575fc685d5ea603b1915de4d5fed713
[ "MIT" ]
2
2020-12-15T20:26:29.000Z
2020-12-15T20:27:26.000Z
utils/exception.py
Lolik-Bolik/Hashing_Algorithms
d3ba488cf575fc685d5ea603b1915de4d5fed713
[ "MIT" ]
null
null
null
utils/exception.py
Lolik-Bolik/Hashing_Algorithms
d3ba488cf575fc685d5ea603b1915de4d5fed713
[ "MIT" ]
null
null
null
""" Exceptions module """ class CuckooHashMapFullException(Exception): """ Exception raised when filter is full. """ pass
11.75
44
0.64539
112
0.794326
0
0
0
0
0
0
78
0.553191
02b2cd966c362b3581d56d85cfd72c1cf6dfa614
1,212
py
Python
finetwork/plotter/_centrality_metrics.py
annakuchko/FinNetwork
4566ff96b33fb5668f9b28f41a94791d1cf9249c
[ "MIT" ]
5
2021-12-07T22:14:10.000Z
2022-03-30T14:09:15.000Z
finetwork/plotter/_centrality_metrics.py
annakuchko/FinNetwork
4566ff96b33fb5668f9b28f41a94791d1cf9249c
[ "MIT" ]
null
null
null
finetwork/plotter/_centrality_metrics.py
annakuchko/FinNetwork
4566ff96b33fb5668f9b28f41a94791d1cf9249c
[ "MIT" ]
null
null
null
import networkx as nx class _CentralityMetrics: def __init__(self, G, metrics): self.G = G self.metrics = metrics def _compute_metrics(self): metrics = self.metrics if metrics == 'degree_centrality': c = self.degree_centrality() elif...
32.756757
72
0.615512
1,185
0.977723
0
0
0
0
0
0
121
0.099835
02b429e1598512b88fa03213426e6cd52e56ec98
3,558
py
Python
filters/incoming_filters.py
juhokokkala/podoco_juhokokkala
57709c539168b6aaddfc187b3a3610bef63bd68a
[ "MIT" ]
null
null
null
filters/incoming_filters.py
juhokokkala/podoco_juhokokkala
57709c539168b6aaddfc187b3a3610bef63bd68a
[ "MIT" ]
null
null
null
filters/incoming_filters.py
juhokokkala/podoco_juhokokkala
57709c539168b6aaddfc187b3a3610bef63bd68a
[ "MIT" ]
null
null
null
############################################################################### # Copyright (C) 2016 Juho Kokkala # This is part of Juho Kokkala's PoDoCo project. # # This file is licensed under the MIT License. ############################################################################### """ Particle filters for tra...
29.163934
79
0.559303
0
0
0
0
0
0
0
0
1,399
0.393198
02b49f51a158d139c9f2c3154c3099e5edf9d8c5
2,610
py
Python
model/semantic_gcn.py
AndersonStra/Mucko
f630712ea5be5f3ce995958c050cd7b5398d31e0
[ "MIT" ]
2
2022-02-23T02:14:49.000Z
2022-03-23T13:27:44.000Z
model/semantic_gcn.py
AndersonStra/Mucko
f630712ea5be5f3ce995958c050cd7b5398d31e0
[ "MIT" ]
null
null
null
model/semantic_gcn.py
AndersonStra/Mucko
f630712ea5be5f3ce995958c050cd7b5398d31e0
[ "MIT" ]
1
2022-03-23T13:27:49.000Z
2022-03-23T13:27:49.000Z
import torch import torch.nn.functional as F from torch import nn import dgl import networkx as nx class SemanticGCN(nn.Module): def __init__(self, config, in_dim, out_dim, rel_dim): super(SemanticGCN, self).__init__() self.config = config self.gcn1 = SemanticGCNLayer(in_dim, out_dim, rel...
31.071429
93
0.576245
2,502
0.958621
0
0
0
0
0
0
317
0.121456
02b57da73d7345d506383c6f3f8675776637aa80
3,808
py
Python
negentropy/scriptparser.py
shewitt-au/negentropy
40841e3f7d95f9124f4b59b0d591bf16e57ef312
[ "MIT" ]
4
2021-07-07T09:49:05.000Z
2021-11-14T04:17:11.000Z
negentropy/scriptparser.py
shewitt-au/negentropy
40841e3f7d95f9124f4b59b0d591bf16e57ef312
[ "MIT" ]
null
null
null
negentropy/scriptparser.py
shewitt-au/negentropy
40841e3f7d95f9124f4b59b0d591bf16e57ef312
[ "MIT" ]
1
2020-05-29T18:11:04.000Z
2020-05-29T18:11:04.000Z
from inspect import cleandoc from textwrap import indent from lark import Lark, Transformer from lark.exceptions import LarkError from .interval import Interval from . import errors def parse(ctx, fname): with open(fname, "r") as f: t = f.read() try: l = Lark(open(ctx.implfile("s...
31.471074
99
0.541754
3,212
0.843487
0
0
0
0
0
0
210
0.055147
02b58fbea2e6f02fd5c603a709c877e0fd2cae0b
567
py
Python
Ex25.py
CarlosDouradoPGR/PythonBR-EstruturasDecs
727ab33f44c48e2d7026ea85d54791d1885c0bdc
[ "MIT" ]
null
null
null
Ex25.py
CarlosDouradoPGR/PythonBR-EstruturasDecs
727ab33f44c48e2d7026ea85d54791d1885c0bdc
[ "MIT" ]
null
null
null
Ex25.py
CarlosDouradoPGR/PythonBR-EstruturasDecs
727ab33f44c48e2d7026ea85d54791d1885c0bdc
[ "MIT" ]
null
null
null
print('Interrogando um suspeito: ') pg1 = str(input("Telefonou para a vítma?(S/N)\n").upper().strip()) pg2 = str(input('Esteve no local do crime?(S/N)\n').upper().strip()) pg3 = str(input('Mora perto da vítma?(S/N)\n').upper().strip()) pg4 = str(input('Devia para a vítma?(S/N)\n').upper().strip()) pg5 = str(input('Já t...
31.5
68
0.611993
0
0
0
0
0
0
0
0
234
0.408377
02b6186616262617c89a1e33d1bf620cc853ca2d
334
py
Python
28. Implement strStr()/solution.py
alexwhyy/leetcode
41664aa48137677d2f98817b9c512d76f13c525f
[ "MIT" ]
null
null
null
28. Implement strStr()/solution.py
alexwhyy/leetcode
41664aa48137677d2f98817b9c512d76f13c525f
[ "MIT" ]
null
null
null
28. Implement strStr()/solution.py
alexwhyy/leetcode
41664aa48137677d2f98817b9c512d76f13c525f
[ "MIT" ]
null
null
null
class Solution: def strStr(self, haystack: str, needle: str) -> int: if needle == "": return 0 for i in range(0, len(haystack) - len(needle) + 1): print(haystack[i : i + len(needle)], needle) if haystack[i : i + len(needle)] == needle: return i ...
37.111111
59
0.502994
334
1
0
0
0
0
0
0
2
0.005988
02b6a5972aef51ad1a07e6ff7ba0827ae6cad8a4
2,235
py
Python
t/text_test.py
gsnedders/Template-Python
4081e4d820c1be0c0448a8dcb79e0703066da099
[ "Artistic-2.0" ]
null
null
null
t/text_test.py
gsnedders/Template-Python
4081e4d820c1be0c0448a8dcb79e0703066da099
[ "Artistic-2.0" ]
6
2015-10-13T13:46:10.000Z
2019-06-17T09:39:57.000Z
t/text_test.py
gsnedders/Template-Python
4081e4d820c1be0c0448a8dcb79e0703066da099
[ "Artistic-2.0" ]
3
2018-12-03T13:15:21.000Z
2019-03-13T09:12:09.000Z
from template import Template from template.test import TestCase, main class Stringy: def __init__(self, text): self.text = text def asString(self): return self.text __str__ = asString class TextTest(TestCase): def testText(self): tt = (("basic", Template()), ("interp", Template({ "I...
14.607843
71
0.503803
486
0.21745
0
0
0
0
0
0
1,723
0.770917
02b974ddbd9b73968df839c1e4fdda0cbb8567db
761
py
Python
research/destroyer.py
carrino/FrisPy
db9e59f465ee25d1c037d580c37da8f35b930b50
[ "MIT" ]
null
null
null
research/destroyer.py
carrino/FrisPy
db9e59f465ee25d1c037d580c37da8f35b930b50
[ "MIT" ]
null
null
null
research/destroyer.py
carrino/FrisPy
db9e59f465ee25d1c037d580c37da8f35b930b50
[ "MIT" ]
null
null
null
# Copyright (c) 2021 John Carrino import math from pprint import pprint import matplotlib.pyplot as plt from frispy import Disc from frispy import Discs model = Discs.destroyer mph_to_mps = 0.44704 v = 70 * mph_to_mps rot = -v / model.diameter * 1.2 x0 = [6, -3, 25] a, nose_up, hyzer = x0 disc = Disc(model, {"vx": ...
22.382353
112
0.638633
0
0
0
0
0
0
0
0
134
0.176084
02b9d9f46387318db8e53a0fa38e85fa6e870ae5
6,200
py
Python
litex/soc/cores/clock/xilinx_common.py
suarezvictor/litex
d37ef60e70bd0ce8d28079143b6859d8b928395e
[ "ADSL" ]
1
2021-12-25T13:49:55.000Z
2021-12-25T13:49:55.000Z
litex/soc/cores/clock/xilinx_common.py
suarezvictor/litex
d37ef60e70bd0ce8d28079143b6859d8b928395e
[ "ADSL" ]
1
2022-02-11T14:39:50.000Z
2022-02-11T22:25:57.000Z
litex/soc/cores/clock/xilinx_common.py
suarezvictor/litex
d37ef60e70bd0ce8d28079143b6859d8b928395e
[ "ADSL" ]
1
2021-12-25T13:49:57.000Z
2021-12-25T13:49:57.000Z
# # This file is part of LiteX. # # Copyright (c) 2018-2020 Florent Kermarrec <florent@enjoy-digital.fr> # SPDX-License-Identifier: BSD-2-Clause from migen import * from migen.genlib.resetsync import AsyncResetSynchronizer from litex.build.io import DifferentialInput from litex.soc.interconnect.csr import * from li...
40.25974
105
0.528226
5,740
0.925806
0
0
0
0
0
0
633
0.102097
02ba8cd0ea54e5520bfcd504cff7483bc433ed10
3,044
py
Python
my_des/my_des.py
ipid/my-des
13340481c03113a23263ef824c119b3374028fe2
[ "MIT" ]
null
null
null
my_des/my_des.py
ipid/my-des
13340481c03113a23263ef824c119b3374028fe2
[ "MIT" ]
null
null
null
my_des/my_des.py
ipid/my-des
13340481c03113a23263ef824c119b3374028fe2
[ "MIT" ]
null
null
null
__all__ = ( 'des_encrypt', 'des_decrypt', ) from typing import List, Any from ._tools import * from ._constant import * from rich import print from rich.text import Text from rich.panel import Panel def keygen(key: bytes) -> List[List[int]]: res = [] key = bytes_to_binlist(key) key = permute_wit...
30.138614
88
0.610053
0
0
0
0
0
0
0
0
1,048
0.343832
02baf30e1ca8e8d64e8718657b516c4805fddd84
1,080
py
Python
Chromebook/setup.py
mahtuag/DistroSetup
8fb2b7351ea12163602a9a4c5a7b63fc87f326e2
[ "Apache-2.0" ]
3
2020-01-12T11:21:47.000Z
2021-09-16T06:43:22.000Z
Chromebook/setup.py
mahtuag/DistroSetup
8fb2b7351ea12163602a9a4c5a7b63fc87f326e2
[ "Apache-2.0" ]
2
2020-07-01T20:46:31.000Z
2020-07-01T21:10:09.000Z
Chromebook/setup.py
wingedrhino/DistroSetup
65edfda7dbded113bf5f3e6f53b331fc8aeaf1c5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import subprocess import apt import sys cache = apt.cache.Cache() cache.update() cache.open() packages = [ 'git', 'curl', 'wget', 'software-properties-common', 'build-essential', 'automake', 'libtool', 'autoconf', 'pkg-config'...
18.305085
62
0.466667
0
0
0
0
0
0
0
0
465
0.430556
02bb2ad5f8635de13653c1ed22f4978ec39fcfc6
377
py
Python
performance_test.py
alan-augustine/python_singly_linkedlist
f227a4154b22de8a273d319ecdd6329035d5d258
[ "MIT" ]
null
null
null
performance_test.py
alan-augustine/python_singly_linkedlist
f227a4154b22de8a273d319ecdd6329035d5d258
[ "MIT" ]
null
null
null
performance_test.py
alan-augustine/python_singly_linkedlist
f227a4154b22de8a273d319ecdd6329035d5d258
[ "MIT" ]
null
null
null
from time import time import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), 'src')) from singly_linkedlist.singly_linkedlist import SinglyLinkedList start = time() linked_list = SinglyLinkedList() for i in range(100000): linked_list.insert_head(111111111111) end = time() print("Took {0} sec...
23.5625
64
0.774536
0
0
0
0
0
0
0
0
53
0.140584
02bdc143ddedce60ffc59109acab68856a9f8737
561
py
Python
python/leetcode/0001.py
bluewaitor/playground
330266ce28212dc5e32b0276c896f9ceffd35bf5
[ "MIT" ]
null
null
null
python/leetcode/0001.py
bluewaitor/playground
330266ce28212dc5e32b0276c896f9ceffd35bf5
[ "MIT" ]
null
null
null
python/leetcode/0001.py
bluewaitor/playground
330266ce28212dc5e32b0276c896f9ceffd35bf5
[ "MIT" ]
null
null
null
# 1. 两数之和 from typing import List, Optional class Solution: def twoSum(self, nums: List[int], target: int) -> Optional[List[int]]: index_map = {} for index, value in enumerate(nums): index_map[value] = index for index, value in enumerate(nums): remain = target - val...
28.05
74
0.593583
413
0.725835
0
0
0
0
0
0
27
0.047452
02bea4753652cd78237dd184ed6e67ea923d42ea
454
py
Python
dataprocess/print_msg.py
lifelong-robotic-vision/openloris-scene-tools
ce6a4839f618bf036d3f3dbae14561bfc7413641
[ "MIT" ]
13
2021-03-27T15:49:21.000Z
2022-03-19T13:26:30.000Z
dataprocess/print_msg.py
lifelong-robotic-vision/openloris-scene-tools
ce6a4839f618bf036d3f3dbae14561bfc7413641
[ "MIT" ]
4
2021-03-30T10:40:43.000Z
2022-03-28T01:36:57.000Z
dataprocess/print_msg.py
lifelong-robotic-vision/openloris-scene-tools
ce6a4839f618bf036d3f3dbae14561bfc7413641
[ "MIT" ]
1
2022-02-16T13:42:32.000Z
2022-02-16T13:42:32.000Z
#!/usr/bin/env python2 import rosbag import sys filename = sys.argv[1] topics = sys.argv[2:] with rosbag.Bag(filename) as bag: for topic, msg, t in bag.read_messages(topics): print('%s @%.7f ----------------------------' % (topic, t.to_sec())) print(msg) print('Press ENTER to continue') ...
25.222222
76
0.497797
0
0
0
0
0
0
0
0
86
0.189427
02beda4568a4663c141bf81401d0595971779e3a
1,011
py
Python
alegra/resources/invoice.py
okchaty/alegra
6c423b23a24650c9121da5f165f6f03669b98468
[ "MIT" ]
1
2022-03-31T03:44:50.000Z
2022-03-31T03:44:50.000Z
alegra/resources/invoice.py
okchaty/alegra
6c423b23a24650c9121da5f165f6f03669b98468
[ "MIT" ]
4
2020-03-24T17:54:03.000Z
2021-06-02T00:48:50.000Z
alegra/resources/invoice.py
okchaty/alegra
6c423b23a24650c9121da5f165f6f03669b98468
[ "MIT" ]
null
null
null
from alegra.api_requestor import APIRequestor from alegra.resources.abstract import CreateableAPIResource from alegra.resources.abstract import EmailableAPIResource from alegra.resources.abstract import ListableAPIResource from alegra.resources.abstract import UpdateableAPIResource from alegra.resources.abstract impor...
29.735294
68
0.681503
666
0.658754
0
0
484
0.478734
0
0
24
0.023739
02bf002db0ba833a4cef03b49b9c37dba336934d
244
py
Python
dask_ml/model_selection.py
lesteve/dask-ml
0aca19c545be5c27bedcfbab5554b4ba39a6d754
[ "BSD-3-Clause" ]
1
2020-12-01T13:20:05.000Z
2020-12-01T13:20:05.000Z
dask_ml/model_selection.py
lesteve/dask-ml
0aca19c545be5c27bedcfbab5554b4ba39a6d754
[ "BSD-3-Clause" ]
null
null
null
dask_ml/model_selection.py
lesteve/dask-ml
0aca19c545be5c27bedcfbab5554b4ba39a6d754
[ "BSD-3-Clause" ]
null
null
null
"""Utilities for hyperparameter optimization. These estimators will operate in parallel. Their scalability depends on the underlying estimators being used. """ from dask_searchcv.model_selection import GridSearchCV, RandomizedSearchCV # noqa
34.857143
82
0.831967
0
0
0
0
0
0
0
0
166
0.680328
02c06f0c429f92d5e5a68c4d5f561cf2b85e43c8
23
py
Python
code/sample_2-1-9.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
1
2022-03-29T13:50:12.000Z
2022-03-29T13:50:12.000Z
code/sample_2-1-9.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
null
null
null
code/sample_2-1-9.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
null
null
null
x = 5 y = 6 print(x*y)
5.75
10
0.478261
0
0
0
0
0
0
0
0
0
0
02c10165e05312844fa4ea1cd0be76da5bd780bb
2,521
py
Python
whatrecord/tests/test_stcmd.py
ZLLentz/whatrecord
9f15da79e3063a64dbe6bb9678dbf52ebad46680
[ "BSD-3-Clause-LBNL" ]
2
2021-09-15T20:32:04.000Z
2021-12-17T16:46:10.000Z
whatrecord/tests/test_stcmd.py
ZLLentz/whatrecord
9f15da79e3063a64dbe6bb9678dbf52ebad46680
[ "BSD-3-Clause-LBNL" ]
92
2021-04-02T16:42:24.000Z
2022-03-31T22:24:52.000Z
whatrecord/tests/test_stcmd.py
ZLLentz/whatrecord
9f15da79e3063a64dbe6bb9678dbf52ebad46680
[ "BSD-3-Clause-LBNL" ]
2
2021-04-01T20:48:42.000Z
2021-09-08T18:51:34.000Z
import pytest from ..iocsh import IocshRedirect, IocshSplit, split_words @pytest.mark.parametrize( "line, expected", [ pytest.param( """dbLoadRecords(a, "b", "c")""", ["dbLoadRecords", "a", "b", "c"], id="basic_paren" ), pytest.param( "...
28.977011
77
0.410948
0
0
0
0
2,444
0.969457
0
0
511
0.202697
02c18f6d2d3ebb8100e01a783419de97602121b6
1,723
py
Python
code/generateElevationFile.py
etcluvic/sme.altm
ffdb51d380a6b8cd8073d5ef3bd6fd15fa0779ea
[ "CC-BY-4.0" ]
null
null
null
code/generateElevationFile.py
etcluvic/sme.altm
ffdb51d380a6b8cd8073d5ef3bd6fd15fa0779ea
[ "CC-BY-4.0" ]
null
null
null
code/generateElevationFile.py
etcluvic/sme.altm
ffdb51d380a6b8cd8073d5ef3bd6fd15fa0779ea
[ "CC-BY-4.0" ]
null
null
null
from bs4 import BeautifulSoup from datetime import datetime from lxml import etree import time import codecs import pickle import os def printSeparator(character, times): print(character * times) if __name__ == '__main__': doiPrefix = '10.7202' #erudit's doi prefix myTime = datetime.now().strftime('%Y-%m-%d_...
22.671053
89
0.663958
0
0
0
0
0
0
0
0
453
0.262914
02c1ec959e5357766a542721519334ad6dee8666
49,071
py
Python
MilightWifiBridge/MilightWifiBridge.py
K-Stefan/Milight-Wifi-Bridge-3.0-Python-Library
bcaf1e3a67ed56d9cedc3370d4b4d688f5d4b4fb
[ "MIT" ]
null
null
null
MilightWifiBridge/MilightWifiBridge.py
K-Stefan/Milight-Wifi-Bridge-3.0-Python-Library
bcaf1e3a67ed56d9cedc3370d4b4d688f5d4b4fb
[ "MIT" ]
null
null
null
MilightWifiBridge/MilightWifiBridge.py
K-Stefan/Milight-Wifi-Bridge-3.0-Python-Library
bcaf1e3a67ed56d9cedc3370d4b4d688f5d4b4fb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Milight 3.0 (LimitlessLED Wifi Bridge v6.0) library: Control wireless lights (Milight 3.0) with Wifi Note that this library was tested with Milight Wifi iBox v1 and RGBW lights. It should work with any other lights and bridge using Milight 3.0 / LimitlessLED v6....
37.090703
163
0.610646
24,806
0.505512
0
0
4,706
0.095902
0
0
23,467
0.478225
02c2fced0a87e7a137014b222d4278f9278017f9
2,602
py
Python
Homework/HW5/Test.py
zhufyaxel/ML_SaltyFish
84b839fa236c471e1fa8600093f0096ff79e4097
[ "MIT" ]
null
null
null
Homework/HW5/Test.py
zhufyaxel/ML_SaltyFish
84b839fa236c471e1fa8600093f0096ff79e4097
[ "MIT" ]
null
null
null
Homework/HW5/Test.py
zhufyaxel/ML_SaltyFish
84b839fa236c471e1fa8600093f0096ff79e4097
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd from Base import Train, Predict def getTest(boolNormalize, boolDeep, boolBias, strProjectFolder): if boolNormalize: if boolDeep: strOutputPath = "02-Output/" + "Deep" + "Normal" else: if boolBias: strOutputPa...
35.643836
104
0.65834
0
0
0
0
0
0
0
0
301
0.11568