hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
e517fa480acd67dfee5f3aaa95a82cf7997e2c8a
6,551
py
Python
layers/modules/precision_loss.py
laycoding/ssd.pytorch
6b9263d9d59e348398335dc91d59af658f2e8d35
[ "MIT" ]
null
null
null
layers/modules/precision_loss.py
laycoding/ssd.pytorch
6b9263d9d59e348398335dc91d59af658f2e8d35
[ "MIT" ]
null
null
null
layers/modules/precision_loss.py
laycoding/ssd.pytorch
6b9263d9d59e348398335dc91d59af658f2e8d35
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from data import coco as cfg from ..box_utils import match, log_sum_exp, decode, nms class PrecisionLoss(nn.Module): """SSD Weighted Loss Function Compute Targets: 1) Produce ...
47.471014
133
0.615479
909
6,551
4.226623
0.247525
0.042166
0.031234
0.024727
0.112441
0.089276
0.077564
0.019781
0.019781
0
0
0.012343
0.282705
6,551
137
134
47.817518
0.805278
0.412914
0
0
0
0
0.011778
0
0
0
0
0
0
1
0.028571
false
0
0.085714
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e51b72feb934b5d22f70cc68b5686a57177d55f4
18,195
py
Python
umbrella-sampling_1D_reweight_bs.py
cbatton/umbrella_sampling_pymbar
9133c0079afe916da5f11051052828b67288efb3
[ "MIT" ]
null
null
null
umbrella-sampling_1D_reweight_bs.py
cbatton/umbrella_sampling_pymbar
9133c0079afe916da5f11051052828b67288efb3
[ "MIT" ]
null
null
null
umbrella-sampling_1D_reweight_bs.py
cbatton/umbrella_sampling_pymbar
9133c0079afe916da5f11051052828b67288efb3
[ "MIT" ]
null
null
null
# Example illustrating the application of MBAR to compute a 1D PMF from an umbrella sampling simulation. # # The data represents an umbrella sampling simulation for the magnetization of the Ising model # Adapted from one of the pymbar example scripts for 1D PMFs import numpy as np # numerical array library import pymb...
42.912736
149
0.62061
3,040
18,195
3.468092
0.129605
0.026558
0.020582
0.01878
0.447975
0.399886
0.355971
0.319738
0.288058
0.257043
0
0.032523
0.242924
18,195
423
150
43.014184
0.732849
0.216928
0
0.277228
0
0
0.0947
0.001484
0
0
0
0
0
1
0.006601
false
0
0.033003
0
0.046205
0.211221
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e51e71629e6870db5d4127796afc6d44a91db669
1,511
py
Python
module1-introduction-to-sql/321_assignment_notes.py
Edudeiko/DS-Unit-3-Sprint-2-SQL-and-Databases
e164db12684286e50a9e585da475ca34692c55d7
[ "MIT" ]
null
null
null
module1-introduction-to-sql/321_assignment_notes.py
Edudeiko/DS-Unit-3-Sprint-2-SQL-and-Databases
e164db12684286e50a9e585da475ca34692c55d7
[ "MIT" ]
null
null
null
module1-introduction-to-sql/321_assignment_notes.py
Edudeiko/DS-Unit-3-Sprint-2-SQL-and-Databases
e164db12684286e50a9e585da475ca34692c55d7
[ "MIT" ]
null
null
null
import os import pandas as pd import sqlite3 CSV_FILEPATH = os.path.join(os.path.dirname(__file__), "..", "data", "buddymove_holidayiq.csv") DB_FILEPATH = os.path.join(os.path.dirname(__file__), "..", "data", "buddymove_holidayiq.db") connection = sqlite3.connect(DB_FILEPATH) table_name = "reviews2" df = pd.read_cs...
30.836735
95
0.698213
206
1,511
5.004854
0.432039
0.023278
0.046557
0.069835
0.331717
0.28322
0.199806
0.199806
0.110572
0.110572
0
0.009063
0.123759
1,511
48
96
31.479167
0.769637
0.291198
0
0
0
0
0.280718
0.068053
0
0
0
0
0
1
0
false
0
0.12
0
0.12
0.12
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e51e8a5a943efe4c5fabe22a092353ca252b4062
971
py
Python
eyesore/decision_graph/compacting/_1_similar_actions_compacter.py
twizmwazin/hacrs
3c9386b0fa5f5ea6b93b2bc8b3c4eed6abceec6a
[ "BSD-2-Clause" ]
2
2019-11-07T02:55:40.000Z
2021-12-30T01:37:43.000Z
eyesore/decision_graph/compacting/_1_similar_actions_compacter.py
twizmwazin/hacrs
3c9386b0fa5f5ea6b93b2bc8b3c4eed6abceec6a
[ "BSD-2-Clause" ]
null
null
null
eyesore/decision_graph/compacting/_1_similar_actions_compacter.py
twizmwazin/hacrs
3c9386b0fa5f5ea6b93b2bc8b3c4eed6abceec6a
[ "BSD-2-Clause" ]
2
2019-09-27T12:01:50.000Z
2019-10-09T21:39:52.000Z
from .. import ActionsNode from ..visitor import Visitor class SimilarActionsCompacter(Visitor): def _visit_actions_node(self, node, replacements): """ :param node: :type node: ActionsNode :return: """ compact_successors = replacements[node.successor] #impo...
37.346154
122
0.642636
99
971
6.090909
0.464646
0.159204
0.043118
0.056385
0
0
0
0
0
0
0
0.002837
0.273944
971
25
123
38.84
0.852482
0.07518
0
0
0
0
0.109813
0
0
0
0
0
0.071429
1
0.071429
false
0
0.142857
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e520edd0d04c2e5662e9df5187c8127d43b40f48
7,416
py
Python
boost-hic.py
CellFateNucOrg/Boost-HiC
637299b0ba41f6511015a6249efb150cf5991804
[ "MIT" ]
null
null
null
boost-hic.py
CellFateNucOrg/Boost-HiC
637299b0ba41f6511015a6249efb150cf5991804
[ "MIT" ]
null
null
null
boost-hic.py
CellFateNucOrg/Boost-HiC
637299b0ba41f6511015a6249efb150cf5991804
[ "MIT" ]
null
null
null
#!/usr/bin/python3 -u import argparse import logging import os import h5py import numpy as np import pandas as pd import sys # my own toolkit import HiCutils import convert import utils DEFAULT_OUTPUT_FOLDER = './boosted/' logging.basicConfig(level=logging.DEBUG) logging.getLogger("").setLevel(logging.INFO) logge...
42.136364
129
0.663026
934
7,416
5.130621
0.284797
0.035058
0.022538
0.020451
0.14399
0.116027
0.097245
0.078047
0.078047
0.070952
0
0.018051
0.215615
7,416
175
130
42.377143
0.805742
0.050432
0
0.137681
0
0.014493
0.242023
0.040598
0
0
0
0
0
1
0.014493
false
0
0.072464
0
0.094203
0.014493
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e52143225da56c9f67ad6d80e159ab308dbbde12
5,560
py
Python
tests/test_agents.py
fkamrani/adversarial-policies
53e129c2083f6557ddc18dbb39e4e633a2d7ab9b
[ "MIT" ]
211
2019-02-22T08:07:25.000Z
2022-03-14T10:44:20.000Z
tests/test_agents.py
fkamrani/adversarial-policies
53e129c2083f6557ddc18dbb39e4e633a2d7ab9b
[ "MIT" ]
51
2019-02-08T01:39:49.000Z
2022-02-15T21:21:46.000Z
tests/test_agents.py
fkamrani/adversarial-policies
53e129c2083f6557ddc18dbb39e4e633a2d7ab9b
[ "MIT" ]
41
2019-04-23T05:01:49.000Z
2022-03-16T06:51:19.000Z
import gym from ilqr import iLQR import numpy as np import pytest from aprl.agents.monte_carlo import ( MonteCarloParallel, MonteCarloSingle, MujocoResettableWrapper, receding_horizon, ) from aprl.agents.mujoco_lqr import ( MujocoFiniteDiffCost, MujocoFiniteDiffDynamicsBasic, MujocoFiniteDi...
34.534161
95
0.658453
747
5,560
4.697456
0.262383
0.023938
0.023938
0.018239
0.128242
0.112283
0.080365
0.039327
0.027358
0.027358
0
0.02524
0.230396
5,560
160
96
34.75
0.794812
0.107194
0
0.063492
0
0
0.081612
0.008708
0
0
0
0
0.111111
1
0.047619
false
0
0.047619
0
0.119048
0.007937
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e52d87ade902887855b10cfb23d4264c5e93b1d3
7,190
py
Python
scripts/msh_process.py
mou3adb/spread_the_particle
6cc666fded62f07380ed1e3ed52969c436295906
[ "MIT" ]
4
2020-08-18T18:33:05.000Z
2021-05-18T23:55:56.000Z
scripts/msh_process.py
mou3adb/spread_the_particle
6cc666fded62f07380ed1e3ed52969c436295906
[ "MIT" ]
null
null
null
scripts/msh_process.py
mou3adb/spread_the_particle
6cc666fded62f07380ed1e3ed52969c436295906
[ "MIT" ]
2
2021-03-03T18:57:06.000Z
2021-05-18T20:43:44.000Z
""" Gmsh format 2.2 """ import numpy as np from flow import Flow from element import Element from element_search import find_neighbors from text.text_flow import write_flow from text.text_elements import write_elements from text.text_geometries import write_geometries #======================================...
28.085938
95
0.577886
1,111
7,190
3.576958
0.139514
0.057373
0.051334
0.030196
0.526422
0.509562
0.501007
0.4615
0.423251
0.376447
0
0.030044
0.268567
7,190
255
96
28.196078
0.725613
0.180807
0
0.434783
0
0
0.030724
0.003605
0
0
0
0
0
1
0.043478
false
0
0.050725
0.014493
0.115942
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5318d57c5b94068601a78c0c8bed490f74a1be5
1,394
py
Python
custard/tests/settings.py
kunitoki/django-custard
3cf3aa5acf84de2f653e96469e2f9c42813df50a
[ "MIT" ]
6
2015-06-15T07:40:26.000Z
2016-06-27T08:01:34.000Z
custard/tests/settings.py
kunitoki/django-custard
3cf3aa5acf84de2f653e96469e2f9c42813df50a
[ "MIT" ]
3
2015-03-11T22:43:01.000Z
2015-06-07T21:50:36.000Z
custard/tests/settings.py
kunitoki/django-custard
3cf3aa5acf84de2f653e96469e2f9c42813df50a
[ "MIT" ]
6
2015-03-11T22:19:57.000Z
2021-03-10T15:40:52.000Z
# Django settings for testproject project. import os DIRNAME = os.path.dirname(__file__) DEBUG = True TEMPLATE_DEBUG = DEBUG DEBUG_PROPAGATE_EXCEPTIONS = True ADMINS = () MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(DIRNAME, 'db.sqlite...
22.483871
65
0.705165
161
1,394
5.944099
0.546584
0.122257
0.020899
0.029258
0.043887
0
0
0
0
0
0
0.013502
0.149928
1,394
61
66
22.852459
0.794093
0.028694
0
0
0
0.021277
0.504811
0.377498
0
0
0
0
0
1
0
false
0
0.021277
0
0.021277
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5320220c6e0bdc466d30a55af8b5a6073894184
2,753
py
Python
home/utils.py
ryankicks/collection-pipeline
2f4b6f154baba90aad39d490fd1dc170ba7ae4e4
[ "MIT" ]
null
null
null
home/utils.py
ryankicks/collection-pipeline
2f4b6f154baba90aad39d490fd1dc170ba7ae4e4
[ "MIT" ]
null
null
null
home/utils.py
ryankicks/collection-pipeline
2f4b6f154baba90aad39d490fd1dc170ba7ae4e4
[ "MIT" ]
null
null
null
from inspect import stack import logging from time import mktime import pytz from datetime import * from calendar import timegm # from django.http import HttpResponse, HttpResponseRedirect, HttpResponseRedirectBase from django.conf import settings from django.utils import timezone from social.apps.django_app.default...
28.677083
89
0.661097
336
2,753
5.166667
0.285714
0.126728
0.058756
0.034562
0.288594
0.193548
0.193548
0.154378
0.096774
0.096774
0
0.004
0.27352
2,753
95
90
28.978947
0.864
0.091537
0
0.25
0
0
0.048878
0
0
0
0
0
0
1
0.09375
false
0
0.1875
0
0.390625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e533e0071445be02c8ad1c3692ec2dd70b4b8806
2,193
py
Python
test/python/transpiler/test_preset_passmanagers.py
chowington/qiskit-terra
a782c64c736fedd6a541bb45dbf89737a52b7c39
[ "Apache-2.0" ]
null
null
null
test/python/transpiler/test_preset_passmanagers.py
chowington/qiskit-terra
a782c64c736fedd6a541bb45dbf89737a52b7c39
[ "Apache-2.0" ]
null
null
null
test/python/transpiler/test_preset_passmanagers.py
chowington/qiskit-terra
a782c64c736fedd6a541bb45dbf89737a52b7c39
[ "Apache-2.0" ]
1
2019-06-13T08:07:26.000Z
2019-06-13T08:07:26.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
35.95082
89
0.653443
260
2,193
5.45
0.488462
0.059986
0.014114
0.06916
0
0
0
0
0
0
0
0.018856
0.250342
2,193
60
90
36.55
0.843066
0.320109
0
0
0
0
0.00619
0
0
0
0
0
0.064516
1
0.096774
false
0.032258
0.129032
0
0.290323
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5342b8791c68216bf30896c7274b41364db27db
4,291
py
Python
scripts/sptk/visualize_spectrogram.py
funcwj/kaldi_enhan
50e4da07c4e7fce7439da9be2b0bb1a0079491c3
[ "Apache-2.0" ]
35
2018-04-02T06:09:26.000Z
2019-02-19T08:27:10.000Z
scripts/sptk/visualize_spectrogram.py
funcwj/kaldi_enhan
50e4da07c4e7fce7439da9be2b0bb1a0079491c3
[ "Apache-2.0" ]
3
2018-11-08T10:21:34.000Z
2019-01-24T02:49:47.000Z
scripts/sptk/visualize_spectrogram.py
funcwj/kaldi_enhan
50e4da07c4e7fce7439da9be2b0bb1a0079491c3
[ "Apache-2.0" ]
17
2018-03-08T06:59:31.000Z
2019-02-19T08:27:41.000Z
#!/usr/bin/env python # coding=utf-8 # wujian@2020 import argparse from pathlib import Path import matplotlib.pyplot as plt import numpy as np from libs.data_handler import SpectrogramReader from libs.opts import StftParser from libs.utils import get_logger default_font = "Times New Roman" default_font_size = 10 de...
33.523438
78
0.519226
507
4,291
4.242604
0.372781
0.018596
0.04742
0.034868
0.051139
0.023245
0.023245
0.023245
0.023245
0.023245
0
0.017078
0.358658
4,291
127
79
33.787402
0.764535
0.022372
0
0.093458
0
0
0.118295
0.005508
0
0
0
0
0
1
0.028037
false
0
0.065421
0
0.093458
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e535e6dd0129597b74bb4ecff114f37663cccbbf
9,246
py
Python
pyocni/adapters/httpResponse_Formater.py
MarouenMechtri/CNG-Manager
9535b721e7b832d72fd7bba6d2a29e76a0d4bdb7
[ "Apache-2.0" ]
1
2015-02-28T21:26:07.000Z
2015-02-28T21:26:07.000Z
pyocni/adapters/httpResponse_Formater.py
MarouenMechtri/CNG-Manager
9535b721e7b832d72fd7bba6d2a29e76a0d4bdb7
[ "Apache-2.0" ]
null
null
null
pyocni/adapters/httpResponse_Formater.py
MarouenMechtri/CNG-Manager
9535b721e7b832d72fd7bba6d2a29e76a0d4bdb7
[ "Apache-2.0" ]
null
null
null
# Copyright 2010-2012 Institut Mines-Telecom # # 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 agre...
29.259494
92
0.561865
1,075
9,246
4.693953
0.156279
0.020809
0.026754
0.021799
0.608205
0.530321
0.510107
0.491677
0.480182
0.44134
0
0.004698
0.33236
9,246
315
93
29.352381
0.812733
0.228856
0
0.559524
0
0
0.093403
0.007196
0
0
0
0
0
1
0.071429
false
0.005952
0.029762
0
0.184524
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5377b6da443630c0d016aff8eb0fc9c6d8663e8
3,358
py
Python
venv/lib/python3.6/site-packages/ansible_collections/community/hashi_vault/tests/unit/plugins/module_utils/authentication/test_auth_approle.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/hashi_vault/tests/unit/plugins/module_utils/authentication/test_auth_approle.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/hashi_vault/tests/unit/plugins/module_utils/authentication/test_auth_approle.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2021 Brian Scholer (@briantist) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type import pytest from ansible_collections.community.hashi_vault.tes...
33.919192
144
0.712627
405
3,358
5.575309
0.311111
0.068202
0.070859
0.031887
0.251107
0.193534
0.139947
0.139947
0.052259
0
0
0.00327
0.180465
3,358
98
145
34.265306
0.817224
0.047052
0
0.132353
0
0
0.125782
0.008448
0
0
0
0
0.073529
1
0.147059
false
0
0.073529
0.073529
0.323529
0.014706
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e53b8de7cefb3da0c77b80958c4124a1178847f8
905
py
Python
ST_DM/KDD2022-DuMapper/DME/arch/utils/ll_2_mc.py
zhangyimi/Research
866f91d9774a38d205d6e9a3b1ee6293748261b3
[ "Apache-2.0" ]
1
2022-03-18T08:32:37.000Z
2022-03-18T08:32:37.000Z
ST_DM/KDD2022-DuMapper/DME/arch/utils/ll_2_mc.py
green9989/Research
94519a72e7936c77f62a31709634b72c09aabf74
[ "Apache-2.0" ]
null
null
null
ST_DM/KDD2022-DuMapper/DME/arch/utils/ll_2_mc.py
green9989/Research
94519a72e7936c77f62a31709634b72c09aabf74
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 """ Copyright (c) 2020 Baidu.com, Inc. All Rights Reserved File: ll_2_mc.py func: 墨卡托与经纬度间相互转换 Author: yuwei09(yuwei09@baidu.com) Date: 2021/07/21 """ import math SCALE_S = 20037508.34 def lonLat2Mercator(x, y): """Convert longitude/latitude to Mercator coordinate""" mx = ...
23.205128
85
0.612155
141
905
3.808511
0.510638
0.055866
0.067039
0.037244
0.040968
0
0
0
0
0
0
0.123741
0.232044
905
38
86
23.815789
0.648921
0.362431
0
0
0
0
0.014388
0
0
0
0
0
0
1
0.125
false
0
0.0625
0
0.3125
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5435081eee984010a042f8f54a44d659b9e9dc8
1,978
py
Python
pypret/io/tests/test_io.py
liam-clink/pypret
c84e954efc12137c6b5ade4fae920d60a15d4875
[ "MIT" ]
36
2019-03-16T18:38:10.000Z
2022-02-15T14:25:30.000Z
pypret/io/tests/test_io.py
liam-clink/pypret
c84e954efc12137c6b5ade4fae920d60a15d4875
[ "MIT" ]
1
2019-06-24T21:32:14.000Z
2019-07-03T12:46:28.000Z
pypret/io/tests/test_io.py
liam-clink/pypret
c84e954efc12137c6b5ade4fae920d60a15d4875
[ "MIT" ]
12
2019-07-23T22:03:55.000Z
2022-01-06T08:50:52.000Z
""" This module tests the io subpackage implementation. Author: Nils Geib, nils.geib@uni-jena.de """ import numpy as np from pypret import io from pprint import pformat from os import remove class IO1(io.IO): x = 1 def squared(self): return self.x * self.x def __repr__(self): ...
26.026316
79
0.577351
285
1,978
3.838596
0.417544
0.051188
0.019196
0.031079
0.082267
0
0
0
0
0
0
0.060345
0.296259
1,978
75
80
26.373333
0.725575
0.280586
0
0.046512
0
0
0.070336
0
0
0
0
0
0.186047
1
0.162791
false
0
0.093023
0.069767
0.418605
0.069767
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e543a1470c327269bc5d0fa3125cb8ab3fe77488
14,682
py
Python
src/main/python/main.py
wong-justin/quick-bible
035db43eca2c811792e32b123fa81f679ac5f168
[ "MIT" ]
null
null
null
src/main/python/main.py
wong-justin/quick-bible
035db43eca2c811792e32b123fa81f679ac5f168
[ "MIT" ]
null
null
null
src/main/python/main.py
wong-justin/quick-bible
035db43eca2c811792e32b123fa81f679ac5f168
[ "MIT" ]
null
null
null
from utils import * from shared import * from updating import MyAppContext from threading import Thread import re import sys import os class BooksPage(Page, FilterableList): '''Lists books from Gen->Rev and connects to next chapters page. First page of application.''' def __init__(self): Page.__...
36.431762
136
0.63697
1,783
14,682
5.102075
0.261357
0.012312
0.022425
0.016159
0.217874
0.196548
0.141365
0.122348
0.092888
0.062218
0
0.003364
0.271216
14,682
402
137
36.522388
0.846822
0.288721
0
0.266094
0
0
0.012614
0
0
0
0
0
0
1
0.107296
false
0
0.030043
0.008584
0.193133
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e54612725dff063fe507222226db0fb8875e240a
4,100
py
Python
synapse/tools/cryo/cat.py
vertexmc/synapse
bd1f8ab1abcbaac20dc9afb9ad385cf831278ada
[ "Apache-2.0" ]
null
null
null
synapse/tools/cryo/cat.py
vertexmc/synapse
bd1f8ab1abcbaac20dc9afb9ad385cf831278ada
[ "Apache-2.0" ]
4
2017-10-03T21:50:40.000Z
2017-11-20T15:49:38.000Z
synapse/tools/cryo/cat.py
vertexmc/synapse
bd1f8ab1abcbaac20dc9afb9ad385cf831278ada
[ "Apache-2.0" ]
null
null
null
import sys import json import pprint import argparse import logging import synapse.common as s_common import synapse.cryotank as s_cryotank import synapse.lib.cell as s_cell import synapse.lib.output as s_output import synapse.lib.msgpack as s_msgpack logger = logging.getLogger(__name__) def _except_wrap(it, error...
38.679245
119
0.628537
557
4,100
4.509874
0.332136
0.048169
0.053742
0.045382
0.094745
0.078822
0.029459
0.029459
0
0
0
0.005552
0.253171
4,100
105
120
39.047619
0.814827
0.020976
0
0.084337
0
0
0.224857
0.006988
0
0
0
0
0
1
0.024096
false
0
0.120482
0
0.204819
0.048193
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e546ebdb04dff83307e0ea85b193a4c434f9cc11
3,905
py
Python
bdd100k/eval/lane_test.py
bdd100k/bdd100k
c8b54044038d2a03dcb10dcc6d9aef361639ffec
[ "BSD-3-Clause" ]
193
2020-09-22T09:48:17.000Z
2022-03-31T20:49:24.000Z
bdd100k/eval/lane_test.py
bdd100k/bdd100k
c8b54044038d2a03dcb10dcc6d9aef361639ffec
[ "BSD-3-Clause" ]
60
2020-09-28T15:44:40.000Z
2022-03-31T07:58:58.000Z
bdd100k/eval/lane_test.py
bdd100k/bdd100k
c8b54044038d2a03dcb10dcc6d9aef361639ffec
[ "BSD-3-Clause" ]
41
2020-09-27T02:52:20.000Z
2022-02-21T03:33:39.000Z
"""Test cases for lane.py.""" import os import unittest import numpy as np from ..common.utils import list_files from .lane import ( eval_lane_per_threshold, evaluate_lane_marking, get_foreground, get_lane_class, sub_task_funcs, ) class TestGetLaneClass(unittest.TestCase): """Test cases for ...
35.5
78
0.568246
522
3,905
4.070881
0.270115
0.054588
0.059294
0.067765
0.494118
0.475294
0.381647
0.340235
0.234824
0.188235
0
0.136248
0.297055
3,905
109
79
35.825688
0.637887
0.100896
0
0.216867
0
0
0.024784
0.012104
0
0
0
0
0.168675
1
0.048193
false
0
0.060241
0
0.144578
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e548c969786feae43c81dceea46b23eaaf132846
2,991
py
Python
user_program/old/firmware_tester.py
dekuNukem/USB4VC
66c4f0b4a4acd7cec6654ea0dd4da026edf5d24c
[ "MIT" ]
78
2022-02-07T16:48:11.000Z
2022-03-31T12:25:35.000Z
user_program/old/firmware_tester.py
dekuNukem/USB4VC
66c4f0b4a4acd7cec6654ea0dd4da026edf5d24c
[ "MIT" ]
1
2022-02-26T20:16:08.000Z
2022-02-26T20:24:04.000Z
user_program/old/firmware_tester.py
dekuNukem/USB4VC
66c4f0b4a4acd7cec6654ea0dd4da026edf5d24c
[ "MIT" ]
1
2022-02-24T03:34:15.000Z
2022-02-24T03:34:15.000Z
import os import sys import time import spidev import RPi.GPIO as GPIO PBOARD_RESET_PIN = 25 PBOARD_BOOT0_PIN = 12 SLAVE_REQ_PIN = 16 GPIO.setmode(GPIO.BCM) GPIO.setup(PBOARD_RESET_PIN, GPIO.IN) GPIO.setup(PBOARD_BOOT0_PIN, GPIO.IN) GPIO.setup(SLAVE_REQ_PIN, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) is_dfu = False def e...
27.694444
102
0.638248
482
2,991
3.721992
0.261411
0.046823
0.06243
0.070234
0.438127
0.371795
0.256968
0.133779
0.133779
0.133779
0
0.037866
0.17887
2,991
108
103
27.694444
0.69259
0.064527
0
0.317073
0
0
0.170129
0.008596
0
0
0.002865
0
0
1
0.036585
false
0
0.060976
0
0.097561
0.109756
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e54bb2a421e7b64f44e6913ef7732630a953e801
8,394
py
Python
dataset/text.py
scfrank/deep-generative-lm
70067fcda82aa035bba805ce6c2709097166a7a4
[ "MIT" ]
null
null
null
dataset/text.py
scfrank/deep-generative-lm
70067fcda82aa035bba805ce6c2709097166a7a4
[ "MIT" ]
null
null
null
dataset/text.py
scfrank/deep-generative-lm
70067fcda82aa035bba805ce6c2709097166a7a4
[ "MIT" ]
null
null
null
""" Text datatset iterators, as an extension of the PyTorch Dataset class. class SimpleTextData(): reads a text file line by line up to a specified sequence length. class SimpleTextDataSplit(): extends SimpleTextData() by splitting the data in train and val sets. class TextDataPadded(): extends SimpleTextData() by pad...
38.861111
122
0.65928
1,220
8,394
4.382787
0.186066
0.025809
0.014962
0.012717
0.594352
0.535814
0.465682
0.429026
0.41743
0.403217
0
0.008381
0.246605
8,394
215
123
39.04186
0.837128
0.481296
0
0.212121
0
0.010101
0.047827
0
0
0
0
0
0
1
0.10101
false
0
0.060606
0.040404
0.262626
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e54c9a30192e6b4af7abb9251e624d83d9672e92
2,938
py
Python
object_detection/pytorch/demo/webcam.py
lamyiowce/training
da4c959b5a7b65091b850872cdd4014d768c087c
[ "Apache-2.0" ]
567
2018-09-13T05:07:49.000Z
2020-11-23T11:52:11.000Z
object_detection/pytorch/demo/webcam.py
lamyiowce/training
da4c959b5a7b65091b850872cdd4014d768c087c
[ "Apache-2.0" ]
222
2018-09-14T10:15:39.000Z
2020-11-20T22:21:09.000Z
object_detection/pytorch/demo/webcam.py
ltechkorea/mlperf-training
498b945dd914573bdbf7a871eaeebd9388b60b76
[ "Apache-2.0" ]
279
2018-09-16T12:40:29.000Z
2020-11-17T14:22:52.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. 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 applic...
31.255319
88
0.663036
387
2,938
4.896641
0.509044
0.031662
0.053826
0.016887
0
0
0
0
0
0
0
0.014831
0.242682
2,938
93
89
31.591398
0.836854
0.26855
0
0.119403
0
0
0.266542
0.036133
0
0
0
0
0
1
0.014925
false
0
0.074627
0
0.089552
0.014925
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e55136ee5d85881c01e65dc049c23752a163d827
8,328
py
Python
changes/api/build_details.py
bowlofstew/changes
ebd393520e0fdb07c240a8d4e8747281b6186e28
[ "Apache-2.0" ]
null
null
null
changes/api/build_details.py
bowlofstew/changes
ebd393520e0fdb07c240a8d4e8747281b6186e28
[ "Apache-2.0" ]
null
null
null
changes/api/build_details.py
bowlofstew/changes
ebd393520e0fdb07c240a8d4e8747281b6186e28
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from collections import defaultdict from flask_restful.reqparse import RequestParser from itertools import groupby from sqlalchemy.orm import contains_eager, joinedload, subqueryload_all from uuid import UUID from changes.api.base import APIView from changes.api.serializer.model...
31.074627
79
0.587416
975
8,328
4.809231
0.213333
0.022393
0.017914
0.014929
0.259117
0.204948
0.178076
0.178076
0.143741
0.121135
0
0.002604
0.308237
8,328
267
80
31.191011
0.811317
0.040226
0
0.266055
0
0
0.099587
0.006138
0
0
0
0
0
1
0.022936
false
0
0.059633
0
0.137615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e55245ae534826a12c1057928c01b0d967155c85
633
py
Python
test/test_one_or_greater.py
kant/stream-daemon
729bc576b74dcd9f1e2021a2433d176d33c413c9
[ "MIT" ]
2
2016-06-06T22:50:21.000Z
2018-01-17T16:14:05.000Z
test/test_one_or_greater.py
kant/stream-daemon
729bc576b74dcd9f1e2021a2433d176d33c413c9
[ "MIT" ]
null
null
null
test/test_one_or_greater.py
kant/stream-daemon
729bc576b74dcd9f1e2021a2433d176d33c413c9
[ "MIT" ]
1
2018-08-27T19:57:03.000Z
2018-08-27T19:57:03.000Z
import unittest from Monitor import five_or_greater class MockProject(object): def __init__(self, message_count, keyword_counts): self.message_count = message_count self.keyword_counts = keyword_counts class TestOneOrGreater(unittest.TestCase): def test_some_above_some_below(self): to...
30.142857
81
0.616114
67
633
5.522388
0.567164
0.097297
0.07027
0
0
0
0
0
0
0
0
0.052863
0.28278
633
21
81
30.142857
0.762115
0
0
0
0
0
0.059937
0
0
0
0
0
0.055556
1
0.111111
false
0
0.111111
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e55aa2f041ab96556aa76a0a7df9e2eb922247e5
1,570
py
Python
row.py
txt/se4dm
c38c742039eaa7a15730eb655c4eed067c8a5409
[ "Unlicense" ]
null
null
null
row.py
txt/se4dm
c38c742039eaa7a15730eb655c4eed067c8a5409
[ "Unlicense" ]
9
2015-10-30T12:46:53.000Z
2015-11-25T03:27:49.000Z
row.py
txt/se4dm
c38c742039eaa7a15730eb655c4eed067c8a5409
[ "Unlicense" ]
2
2018-06-22T15:23:44.000Z
2020-11-05T01:47:54.000Z
from __future__ import print_function, division import sys sys.dont_write_bytecode = True """ # Rows """ from lib import * class Row: n = -1 def __init__(i,t): Row.n = i.n = Row.n + 1 i.t, i.dists = t,{} def dist(j,k): if j.n == k.n : return 0 if j.n > k.n : return k.dist(j) key = (j.n, k...
22.112676
50
0.499363
302
1,570
2.559603
0.235099
0.023286
0.020699
0.015524
0.093144
0.072445
0
0
0
0
0
0.028999
0.319108
1,570
70
51
22.428571
0.694107
0.005732
0
0.081967
0
0
0.003886
0
0
0
0
0
0
1
0.131148
false
0
0.04918
0.016393
0.311475
0.016393
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e55cd024add940dff887d317c65342a61070e10c
306
py
Python
hyperparams.py
nce3xin/spam
908421d5cf2dd103e2a7044bf1c8586aaf5f2ada
[ "MIT" ]
1
2019-03-13T10:49:25.000Z
2019-03-13T10:49:25.000Z
hyperparams.py
nce3xin/spam
908421d5cf2dd103e2a7044bf1c8586aaf5f2ada
[ "MIT" ]
null
null
null
hyperparams.py
nce3xin/spam
908421d5cf2dd103e2a7044bf1c8586aaf5f2ada
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Jul 9 11:17:24 2018 @author: nce3xin """ seed_num=1 learning_rate=1e-3 #epochs=109 #epochs=90 epochs=20 batch_size=16 log_interval=1 no_cuda=False MODEL='LSTM' cnn_out_dims=25 CNN_mapping=False normalization=False standard_scale=False min_max_scaler=False
11.769231
35
0.754902
54
306
4.074074
0.851852
0
0
0
0
0
0
0
0
0
0
0.104089
0.120915
306
26
36
11.769231
0.713755
0.310458
0
0
0
0
0.019802
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e560f9f2e17600df62f3bea76144c341a81a3cc7
7,581
py
Python
source/02_ssd_large/lib/model.py
toshi-k/kaggle-3d-object-detection-for-autonomous-vehicles
af2e0db16281fb997a9bd5149c478095128a627e
[ "MIT" ]
24
2019-11-28T05:54:58.000Z
2021-06-14T07:38:30.000Z
source/03_ssd_small/lib/model.py
toshi-k/kaggle-3d-object-detection-for-autonomous-vehicles
af2e0db16281fb997a9bd5149c478095128a627e
[ "MIT" ]
null
null
null
source/03_ssd_small/lib/model.py
toshi-k/kaggle-3d-object-detection-for-autonomous-vehicles
af2e0db16281fb997a9bd5149c478095128a627e
[ "MIT" ]
5
2019-12-06T05:59:32.000Z
2021-09-16T13:30:29.000Z
import math from pathlib import Path import numpy as np import torch from torch import nn import torch.nn.functional as F from torch.autograd import Variable from torchvision import models from PIL import Image from lib.default_box import dbox_params from lib.visualize import Visualizer from common import numpy2pil ...
34.616438
118
0.61298
1,092
7,581
4.044872
0.165751
0.012225
0.020602
0.021734
0.396423
0.35952
0.347295
0.313335
0.238397
0.221417
0
0.065341
0.25709
7,581
218
119
34.775229
0.718928
0.086136
0
0.115108
0
0
0.022993
0
0
0
0
0
0
1
0.043165
false
0
0.086331
0
0.165468
0.028777
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5616dbad551125f0ff82bbdd7078f807585a1f9
2,560
py
Python
tests/datastructures_tests/physical_data_tests.py
czbiohub/reconstruct-order
e729ae3871aea0a5ec2d42744a9448c7f0a93037
[ "Unlicense" ]
6
2019-10-30T23:00:01.000Z
2021-03-02T19:09:07.000Z
tests/datastructures_tests/physical_data_tests.py
czbiohub/ReconstructOrder
e729ae3871aea0a5ec2d42744a9448c7f0a93037
[ "Unlicense" ]
14
2019-07-08T22:51:29.000Z
2019-07-13T15:44:01.000Z
tests/datastructures_tests/physical_data_tests.py
mehta-lab/reconstruct-order
e729ae3871aea0a5ec2d42744a9448c7f0a93037
[ "Unlicense" ]
2
2020-05-02T23:28:36.000Z
2020-07-16T23:46:46.000Z
import numpy as np import pytest, os from numpy.testing import assert_array_equal from ReconstructOrder.datastructures.physical_data import PhysicalData def test_basic_constructor_nparray(): """ test assignment using numpy arrays """ phys = PhysicalData() phys.I_trans = np.ones((512, 512)) p...
28.444444
70
0.679688
344
2,560
4.851744
0.209302
0.098862
0.143799
0.100659
0.525464
0.47154
0.37867
0.191132
0.070102
0
0
0.058077
0.199609
2,560
90
71
28.444444
0.756467
0.091406
0
0.109091
0
0
0
0
0
0
0
0
0.345455
1
0.090909
false
0
0.072727
0
0.163636
0.036364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5620e85ec34ab2ff5817e8825c91c57685d44ba
6,349
py
Python
2019/14.py
IsaacG/Advent-of-Code
1e970c6a4abc4a2025f7c70323e70aee64d0bc21
[ "MIT" ]
3
2020-12-19T09:01:03.000Z
2021-12-16T13:05:03.000Z
2019/14.py
IsaacG/Advent-of-Code
1e970c6a4abc4a2025f7c70323e70aee64d0bc21
[ "MIT" ]
null
null
null
2019/14.py
IsaacG/Advent-of-Code
1e970c6a4abc4a2025f7c70323e70aee64d0bc21
[ "MIT" ]
null
null
null
#!/bin/python """Day 14: Space Stoichiometry. Handle chemical reactions, converting ORE to FUEL. """ import collections import math import typer from typing import Dict, List, Set, Tuple import data from lib import aoc SAMPLE = data.D14 TRILLION = int(1e12) class Reaction: """Wrapper around a single reaction.""...
35.668539
96
0.642778
877
6,349
4.602052
0.279361
0.013875
0.029485
0.039891
0.1167
0.087711
0
0
0
0
0
0.020088
0.247283
6,349
177
97
35.870057
0.82444
0.335486
0
0.059406
0
0
0.010968
0
0
0
0
0
0
1
0.108911
false
0
0.059406
0
0.326733
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5636f16a4be081479c9bb8479ea7b652ed01784
530
py
Python
src/pynauty/tests/test_autgrp.py
sammorley-short/pynauty-1
852ee738174179c242913ff2afa8b47715d0947b
[ "Apache-2.0" ]
16
2021-02-05T10:15:57.000Z
2022-03-07T21:51:09.000Z
src/pynauty/tests/test_autgrp.py
sammorley-short/pynauty-1
852ee738174179c242913ff2afa8b47715d0947b
[ "Apache-2.0" ]
20
2021-01-31T11:48:56.000Z
2022-01-25T15:16:05.000Z
src/pynauty/tests/test_autgrp.py
sammorley-short/pynauty-1
852ee738174179c242913ff2afa8b47715d0947b
[ "Apache-2.0" ]
6
2021-02-18T11:55:17.000Z
2021-08-21T03:24:58.000Z
#!/usr/bin/env python import sys from pynauty import autgrp, Version import pytest # List of graphs for testing # # Structure: # [[name, Graph, numorbit, grpsize, generators]] # # numorbit, grpsize, generators was calculated by dreadnut # def test_autgrp(graph): gname, g, numorbit, grpsize, gens = graph pr...
24.090909
75
0.683019
68
530
5.279412
0.632353
0.125348
0.139276
0
0
0
0
0
0
0
0
0.006993
0.190566
530
21
76
25.238095
0.829837
0.309434
0
0
0
0
0.027933
0
0
0
0
0
0.1
1
0.1
false
0
0.3
0
0.4
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e565c470b23648889679a52fd97863eab35ec86e
3,496
py
Python
Game/images.py
mrElnekave/Hallow-Valley
6c3ba0dc3932839941a00362da0212850b2b20a6
[ "MIT" ]
null
null
null
Game/images.py
mrElnekave/Hallow-Valley
6c3ba0dc3932839941a00362da0212850b2b20a6
[ "MIT" ]
null
null
null
Game/images.py
mrElnekave/Hallow-Valley
6c3ba0dc3932839941a00362da0212850b2b20a6
[ "MIT" ]
null
null
null
import pygame, constants, copy # pygame.init() pygame.display.set_mode(constants.default_size) current_path = constants.current_path + "Pixel Images\\" def load_img(path, colorkey=(255,255,255)): img = pygame.image.load(current_path + path).convert() img.set_colorkey(colorkey) return img def create_path(...
36.041237
136
0.735984
564
3,496
4.324468
0.207447
0.121361
0.083641
0.078721
0.472325
0.266913
0.147191
0.115211
0.03854
0
0
0.066065
0.112414
3,496
96
137
36.416667
0.719948
0.05492
0
0.028986
0
0
0.073476
0
0
0
0
0
0
1
0.072464
false
0.014493
0.014493
0
0.130435
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e566f80f2af89ff3cebc3584e47b99d358ead339
481
py
Python
example/get_concurrent.py
sojin-project/scrape-academy
5a18f5b497a6b3b85049ec1a4451b6a333e84353
[ "MIT" ]
null
null
null
example/get_concurrent.py
sojin-project/scrape-academy
5a18f5b497a6b3b85049ec1a4451b6a333e84353
[ "MIT" ]
null
null
null
example/get_concurrent.py
sojin-project/scrape-academy
5a18f5b497a6b3b85049ec1a4451b6a333e84353
[ "MIT" ]
null
null
null
# type: ignore import asyncio from scrapeacademy import context, run async def get_concurrent(url): # Get a same page 10 times simultaneously tasks = [context.get(url) for _ in range(10)] n = 1 while tasks: done, tasks = await asyncio.wait(tasks, return_when=asyncio.FIRST_COMPLETED) ...
20.913043
84
0.632017
66
481
4.530303
0.606061
0.086957
0.026756
0
0
0
0
0
0
0
0
0.022099
0.247401
481
22
85
21.863636
0.803867
0.108108
0
0
0
0
0.08216
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e569a5dbd4c731524441ab30a896814a5ca98109
22,303
py
Python
cogs/device.py
quiprr/AutoTSS
8d78db17ed5a7f6200955689bfb7580b7eba7183
[ "MIT" ]
null
null
null
cogs/device.py
quiprr/AutoTSS
8d78db17ed5a7f6200955689bfb7580b7eba7183
[ "MIT" ]
null
null
null
cogs/device.py
quiprr/AutoTSS
8d78db17ed5a7f6200955689bfb7580b7eba7183
[ "MIT" ]
null
null
null
from aioify import aioify from discord.ext import commands import aiofiles import aiohttp import aiosqlite import asyncio import discord import json import shutil class Device(commands.Cog): def __init__(self, bot): self.bot = bot self.shutil = aioify(shutil, name='shutil') self.utils = self.bot.get_cog('Utils...
40.922936
183
0.706407
3,143
22,303
4.916322
0.106586
0.043101
0.044525
0.058439
0.736992
0.696026
0.666192
0.639658
0.622314
0.591639
0
0.005824
0.160875
22,303
544
184
40.998162
0.819824
0.027978
0
0.602353
0
0.042353
0.227478
0.02949
0
0
0
0.001838
0
1
0.004706
false
0.021176
0.021176
0
0.096471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e56a51d213bf7149b8e6be6f0bd4f017978c2a3f
1,365
py
Python
fraktal_kocha_obiektowy.py
dkosztowniak/krzywaKocha
1ece53d0fda51565eedd7e5427a82e72e019a21d
[ "MIT" ]
null
null
null
fraktal_kocha_obiektowy.py
dkosztowniak/krzywaKocha
1ece53d0fda51565eedd7e5427a82e72e019a21d
[ "MIT" ]
null
null
null
fraktal_kocha_obiektowy.py
dkosztowniak/krzywaKocha
1ece53d0fda51565eedd7e5427a82e72e019a21d
[ "MIT" ]
null
null
null
import turtle class fraktalKocha(turtle.Turtle): def __init__(self): super().__init__(shape='classic', visible=False) def krzywaKocha(self, d, n): self.pendown() if n == 0: self.forward(d) else: self.krzywaKocha(d/3, n-1) self.left(60) ...
24.375
69
0.556044
199
1,365
3.763819
0.371859
0.100134
0.106809
0.090788
0.416555
0.3498
0.316422
0.316422
0.316422
0.316422
0
0.091535
0.255678
1,365
56
70
24.375
0.645669
0.021245
0
0.318182
0
0
0.065967
0
0
0
0
0
0
1
0.068182
false
0
0.022727
0
0.113636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e56e6882dba09fa5e87e1ace9bbb92be2582bd23
7,228
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_ble_radio.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_ble_radio.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_ble_radio.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2019 Nicholas H. Tollervey for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_ble_radio` ================================================================================ Simple byte and string based inter-device communication via BLE. * Author(s): Nicholas H.Tollervey f...
35.258537
87
0.606253
844
7,228
5.07346
0.325829
0.013078
0.012844
0.014012
0.113965
0.101822
0.083606
0.067258
0.046707
0.046707
0
0.01587
0.302573
7,228
204
88
35.431373
0.833565
0.417128
0
0.022727
0
0
0.045595
0
0
0
0.005152
0.004902
0
1
0.102273
false
0
0.068182
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e56f6d2a048e2089110b635b9fc2860c2724c363
13,775
py
Python
layers/MultiWaveletCorrelation.py
MAZiqing/FEDformer
7914d39df829494a8172afb9676982c3789d491d
[ "MIT" ]
7
2022-02-20T13:03:25.000Z
2022-03-30T09:27:38.000Z
layers/MultiWaveletCorrelation.py
MAZiqing/FEDformer
7914d39df829494a8172afb9676982c3789d491d
[ "MIT" ]
null
null
null
layers/MultiWaveletCorrelation.py
MAZiqing/FEDformer
7914d39df829494a8172afb9676982c3789d491d
[ "MIT" ]
4
2022-03-05T09:09:28.000Z
2022-03-21T08:46:23.000Z
import torch import numpy as np import torch.nn as nn import torch.nn.functional as F from torch import Tensor from typing import List, Tuple import math from functools import partial from einops import rearrange, reduce, repeat from torch import nn, einsum, diagonal from math import log2, ceil import pdb from utils.m...
36.345646
116
0.503739
2,008
13,775
3.323705
0.118028
0.01798
0.031316
0.014984
0.550195
0.488762
0.422835
0.401858
0.394966
0.35421
0
0.03286
0.335027
13,775
379
117
36.345646
0.695742
0.039637
0
0.419672
0
0
0.016315
0
0
0
0
0
0.006557
1
0.04918
false
0
0.045902
0.003279
0.144262
0.009836
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e56f87f0384ecbf57f48e8eac0641bcfd48082b7
5,636
py
Python
perrec/cbr.py
Tbabm/PerRec
1f711d70df8354156b37857719db0559876be08c
[ "MIT" ]
3
2019-07-24T12:03:24.000Z
2019-08-28T14:42:51.000Z
perrec/cbr.py
Tbabm/PerRec
1f711d70df8354156b37857719db0559876be08c
[ "MIT" ]
null
null
null
perrec/cbr.py
Tbabm/PerRec
1f711d70df8354156b37857719db0559876be08c
[ "MIT" ]
null
null
null
# encoding=utf-8 import os import fire import numpy as np from scipy.sparse.csr import csr_matrix from sklearn.base import BaseEstimator from sklearn.model_selection import cross_validate from sklearn.preprocessing import normalize from sklearn.feature_extraction.text import CountVectorizer, TfidfTransformer from .co...
36.836601
98
0.649929
703
5,636
4.958748
0.271693
0.036145
0.025244
0.008032
0.104131
0.057946
0.057946
0.057946
0.057946
0.057946
0
0.004802
0.261001
5,636
152
99
37.078947
0.832173
0.225515
0
0.023256
0
0
0.022228
0
0
0
0
0
0
1
0.127907
false
0
0.139535
0.034884
0.372093
0.011628
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e570191797fda76257f543ceca066c63d6087a58
1,410
py
Python
examples/tournament/tournament.py
gavento/orco
07e90bf87246f4577c8e3653b34474a69cc5338e
[ "MIT" ]
null
null
null
examples/tournament/tournament.py
gavento/orco
07e90bf87246f4577c8e3653b34474a69cc5338e
[ "MIT" ]
null
null
null
examples/tournament/tournament.py
gavento/orco
07e90bf87246f4577c8e3653b34474a69cc5338e
[ "MIT" ]
null
null
null
import itertools import random import orco # Function that trains "players" @orco.builder() def train_player(config): # We will simulate trained players by a dictionary with a "strength" key return {"strength": random.randint(0, 10)} # Build function for "games" @orco.builder() def play_game(config): p...
26.603774
79
0.664539
188
1,410
4.946809
0.388298
0.035484
0.045161
0.03871
0
0
0
0
0
0
0
0.030247
0.226241
1,410
52
80
27.115385
0.822181
0.313475
0
0.16129
0
0
0.083507
0
0
0
0
0
0
1
0.096774
false
0
0.096774
0.032258
0.290323
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e57024f83b49dd4e2de2007ee984d24ae347e3b1
2,546
py
Python
scripts/injection_ROI_visualization.py
karimi-ali/brainrender
04be6a05fdfdd22424c4c499f4563943436faf6f
[ "BSD-3-Clause" ]
null
null
null
scripts/injection_ROI_visualization.py
karimi-ali/brainrender
04be6a05fdfdd22424c4c499f4563943436faf6f
[ "BSD-3-Clause" ]
null
null
null
scripts/injection_ROI_visualization.py
karimi-ali/brainrender
04be6a05fdfdd22424c4c499f4563943436faf6f
[ "BSD-3-Clause" ]
null
null
null
import os from pathlib import Path import brainrender from brainrender import Scene, actor, Animation from rich import color, print from myterial import orange from vedo import Volume, io, load, show import numpy as np import pandas as pd import util # path names and roi names paths = util.get_paths() roi_names = ut...
36.371429
98
0.688138
376
2,546
4.460106
0.364362
0.028623
0.023852
0.026834
0.082886
0.029815
0
0
0
0
0
0.025892
0.195994
2,546
70
99
36.371429
0.793356
0.193637
0
0
0
0
0.131992
0.045142
0
0
0
0
0
1
0
false
0
0.217391
0
0.217391
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e57240c96406c5bb3b032eec708032b091e297a7
7,664
py
Python
scripts/wk/exe.py
2Shirt/WizardK
82a2e7f85c80a52f892c1553e7a45ec0174e7bc6
[ "MIT" ]
null
null
null
scripts/wk/exe.py
2Shirt/WizardK
82a2e7f85c80a52f892c1553e7a45ec0174e7bc6
[ "MIT" ]
178
2017-11-17T19:14:31.000Z
2021-12-15T07:43:29.000Z
scripts/wk/exe.py
2Shirt/WizardK
82a2e7f85c80a52f892c1553e7a45ec0174e7bc6
[ "MIT" ]
1
2017-11-17T19:32:36.000Z
2017-11-17T19:32:36.000Z
"""WizardKit: Execution functions""" #vim: sts=2 sw=2 ts=2 import json import logging import os import re import subprocess import time from threading import Thread from queue import Queue, Empty import psutil # STATIC VARIABLES LOG = logging.getLogger(__name__) # Classes class NonBlockingStreamReader(): """Cl...
26.797203
78
0.662578
1,059
7,664
4.716714
0.245515
0.034234
0.016817
0.013614
0.226026
0.191391
0.153554
0.126326
0.11031
0.11031
0
0.006956
0.212161
7,664
285
79
26.891228
0.820305
0.255219
0
0.261628
0
0.005814
0.125022
0
0
0
0
0
0
1
0.081395
false
0
0.052326
0
0.186047
0.005814
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5738670ee63aa457dda6f798c0a759c27cefdc5
7,815
py
Python
src/libnbnotify/plugins/bus.py
webnull/nbnotify
54f7d0db0656053680466537aeba35f348147830
[ "Python-2.0", "OLDAP-2.7" ]
1
2015-12-03T06:41:23.000Z
2015-12-03T06:41:23.000Z
src/libnbnotify/plugins/bus.py
webnull/nbnotify
54f7d0db0656053680466537aeba35f348147830
[ "Python-2.0", "OLDAP-2.7" ]
2
2019-03-02T08:02:34.000Z
2019-03-02T08:02:47.000Z
src/libnbnotify/plugins/bus.py
webnull/nbnotify
54f7d0db0656053680466537aeba35f348147830
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
#-*- coding: utf-8 -*- import libnbnotify import socket import ssl import json import asyncore import re import sys from threading import Thread import string import random import os import BaseHTTPServer, SimpleHTTPServer PluginInfo = {'Requirements' : { 'OS' : 'All'}, 'API': 2, 'Authors': 'webnull', 'domain': '', 't...
29.490566
183
0.572105
863
7,815
5.144844
0.290846
0.044144
0.038063
0.022523
0.179279
0.136036
0.12973
0.09009
0.056757
0.056757
0
0.010277
0.302751
7,815
264
184
29.602273
0.804551
0.209853
0
0.191176
0
0
0.134382
0.003761
0
0
0
0
0
1
0.169118
false
0
0.088235
0.022059
0.492647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e574327e0656040a8425a4febb6293a932d17cd0
3,738
py
Python
main.py
Sujay-Paul/Clara-Music-Bot-Telegram
deb4623185e2b6d09f55e65c4e738c49e22ee1dc
[ "MIT" ]
1
2022-01-11T16:43:57.000Z
2022-01-11T16:43:57.000Z
main.py
Sujay-Paul/Clara-Music-Bot-Telegram
deb4623185e2b6d09f55e65c4e738c49e22ee1dc
[ "MIT" ]
1
2021-10-01T17:01:48.000Z
2021-10-01T17:01:48.000Z
main.py
Sujay-Paul/Clara-Music-Bot-Telegram
deb4623185e2b6d09f55e65c4e738c49e22ee1dc
[ "MIT" ]
1
2021-10-01T16:59:49.000Z
2021-10-01T16:59:49.000Z
from pyrogram import Client, filters from pyrogram.types import ( InlineKeyboardButton, InlineKeyboardMarkup ) import youtube_dl from youtube_search import YoutubeSearch import requests import json import os with open('./config.json', 'r') as config: data = json.load(config) bot_token = data['token'] ...
31.948718
169
0.581594
480
3,738
4.44375
0.391667
0.022504
0.03188
0.033755
0.108767
0.084388
0.040319
0.040319
0.040319
0
0
0.014667
0.288657
3,738
116
170
32.224138
0.783377
0.069288
0
0.142857
0
0
0.15985
0.024482
0
0
0
0
0
1
0.030612
false
0
0.071429
0
0.142857
0.05102
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e575ae4d7ce1c8acba084bc5319b860ff622e79d
12,371
py
Python
main.py
dzinghan/Bouncing-Ball-Simulation
b476af0df40cdd76a9d1256d95de1393748e9edc
[ "MIT" ]
null
null
null
main.py
dzinghan/Bouncing-Ball-Simulation
b476af0df40cdd76a9d1256d95de1393748e9edc
[ "MIT" ]
null
null
null
main.py
dzinghan/Bouncing-Ball-Simulation
b476af0df40cdd76a9d1256d95de1393748e9edc
[ "MIT" ]
null
null
null
''' Bouncing Ball Simulation This is an implementation of a bouncing ball simulation using mainly the Tkinter library in Python. It includes physics and mechanics-related concepts such as gravity, air resistance, and collision. Before the start of the simulation, the program prompts the user to enter a value for gravit...
38.780564
120
0.547167
1,660
12,371
4.019277
0.219277
0.052608
0.074041
0.067146
0.384742
0.346673
0.293615
0.279227
0.235911
0.218525
0
0.045098
0.351144
12,371
318
121
38.902516
0.786097
0.325681
0
0.209877
0
0
0.035906
0
0
0
0
0
0
1
0.067901
false
0
0.030864
0
0.17284
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e575dbc2852de3f51f4fc99d4e2297f4d5034e48
1,935
py
Python
examples/validation/core/06_vuetify_components.py
Kitware/trame
41c4d62e7a6f5dba41fd9305b314c87fa8ed7b6f
[ "Apache-2.0" ]
42
2021-09-24T22:10:32.000Z
2022-03-30T19:39:25.000Z
examples/validation/core/06_vuetify_components.py
Kitware/trame
41c4d62e7a6f5dba41fd9305b314c87fa8ed7b6f
[ "Apache-2.0" ]
31
2021-10-01T21:19:56.000Z
2022-03-04T00:14:28.000Z
examples/validation/core/06_vuetify_components.py
Kitware/trame
41c4d62e7a6f5dba41fd9305b314c87fa8ed7b6f
[ "Apache-2.0" ]
7
2021-11-17T16:12:06.000Z
2022-03-26T21:08:40.000Z
from trame.app import get_server from trame.widgets import vtk, trame, vuetify from trame.ui.vuetify import SinglePageLayout # ----------------------------------------------------------------------------- # Trame setup # ----------------------------------------------------------------------------- server = get_server...
29.769231
79
0.447028
155
1,935
5.451613
0.509677
0.031953
0.035503
0.03787
0.049704
0
0
0
0
0
0
0.006702
0.228941
1,935
64
80
30.234375
0.559651
0.277003
0
0.051282
0
0
0.086518
0
0
0
0
0
0
1
0.025641
false
0
0.076923
0
0.102564
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5770a81b9b82cc0a7f14946858d355e97381b6c
752
py
Python
migrations/versions/4d998c6ec630_nobadges.py
Togohogo1/tag-dh
e6903a87b8e491d84d3dcee02912238e6a3cabbe
[ "MIT" ]
4
2020-05-05T01:36:54.000Z
2021-03-13T21:05:47.000Z
migrations/versions/4d998c6ec630_nobadges.py
Togohogo1/tag-dh
e6903a87b8e491d84d3dcee02912238e6a3cabbe
[ "MIT" ]
1
2020-05-23T05:48:18.000Z
2020-05-23T05:48:18.000Z
migrations/versions/4d998c6ec630_nobadges.py
Togohogo1/tag-dh
e6903a87b8e491d84d3dcee02912238e6a3cabbe
[ "MIT" ]
1
2020-05-23T05:41:24.000Z
2020-05-23T05:41:24.000Z
"""nobadges Revision ID: 4d998c6ec630 Revises: 7950a35f5dbd Create Date: 2020-05-04 11:55:22.475532 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '4d998c6ec630' down_revision = '7950a35f5dbd' branch_labels = None depends_on = None def upgrade(): # ### c...
24.258065
74
0.695479
97
752
5.257732
0.536082
0.054902
0.082353
0.090196
0.337255
0.337255
0.337255
0.337255
0.337255
0.337255
0
0.081037
0.179521
752
30
75
25.066667
0.745543
0.385638
0
0.166667
0
0
0.117647
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e579720eabdbde95c5e282c52355449ab7cbf297
325
bzl
Python
library.bzl
tintor/mono
396edd39e45f536cac91b1fa6524f019244e4549
[ "Apache-2.0" ]
1
2020-09-27T05:07:20.000Z
2020-09-27T05:07:20.000Z
library.bzl
tintor/mono
396edd39e45f536cac91b1fa6524f019244e4549
[ "Apache-2.0" ]
null
null
null
library.bzl
tintor/mono
396edd39e45f536cac91b1fa6524f019244e4549
[ "Apache-2.0" ]
null
null
null
def library(name, hdrs=[], srcs=[], deps=[], test_deps=[]): native.cc_library( name = name, hdrs = [name + ".h"] + hdrs, srcs = srcs, deps = deps, ) native.cc_test( name = name + "_test", srcs = [name + "_test.cc"], deps = test_deps + [":" + name, "//:catch"], args = ["-d=yes"],...
21.666667
59
0.489231
39
325
3.923077
0.358974
0.143791
0.156863
0
0
0
0
0
0
0
0
0
0.276923
325
14
60
23.214286
0.651064
0
0
0
0
0
0.092308
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e58014cfc6228afdc63430dc2ea3095af62a76a8
760
py
Python
Dataset/Leetcode/test/53/155.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/53/155.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/53/155.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution(object): def XXX(self, nums): """ :type nums: List[int] :rtype: int """ def maxSub(arr,lo,hi): if lo == hi:return arr[lo] mid = (lo+hi) // 2 # 左最大 left = maxSub(arr,lo,mid) # 右最大 right = maxSub...
28.148148
56
0.455263
95
760
3.642105
0.4
0.078035
0.063584
0.063584
0.080925
0
0
0
0
0
0
0.022124
0.405263
760
26
57
29.230769
0.743363
0.061842
0
0
0
0
0.011799
0
0
0
0
0
0
1
0.117647
false
0
0
0
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e58484894c5f43692fe7341a176dcb84807da1d8
467
py
Python
asab/proactor/__init__.py
TeskaLabs/asab
f28894b62bad192d8d30df01a8ad1b842ee2a2fb
[ "BSD-3-Clause" ]
23
2018-03-07T18:58:13.000Z
2022-03-29T17:11:47.000Z
asab/proactor/__init__.py
TeskaLabs/asab
f28894b62bad192d8d30df01a8ad1b842ee2a2fb
[ "BSD-3-Clause" ]
87
2018-04-04T19:44:13.000Z
2022-03-31T11:18:00.000Z
asab/proactor/__init__.py
TeskaLabs/asab
f28894b62bad192d8d30df01a8ad1b842ee2a2fb
[ "BSD-3-Clause" ]
10
2018-04-30T16:40:25.000Z
2022-03-09T10:55:24.000Z
import logging import asab from .service import ProactorService # L = logging.getLogger(__name__) # asab.Config.add_defaults( { 'asab:proactor': { 'max_workers': '0', 'default_executor': True, } } ) class Module(asab.Module): ''' Proactor pattern based on loop.run_in_executor() https://en.wikiped...
14.59375
61
0.704497
56
467
5.553571
0.660714
0.096463
0
0
0
0
0
0
0
0
0
0.002532
0.154176
467
31
62
15.064516
0.78481
0.205567
0
0
0
0
0.170391
0
0
0
0
0
0
1
0.0625
false
0
0.1875
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5851888f1c433217aef830313dc07ac613ce867
13,266
py
Python
mywebsite/shop/views.py
Zadigo/ecommerce_template
a4572c3faeaeb9cd399351c0fd1f19a4ef94de27
[ "MIT" ]
16
2020-07-01T03:42:40.000Z
2022-02-21T21:02:27.000Z
mywebsite/shop/views.py
Zadigo/ecommerce_template
a4572c3faeaeb9cd399351c0fd1f19a4ef94de27
[ "MIT" ]
14
2020-11-19T18:55:28.000Z
2022-02-01T22:08:23.000Z
mywebsite/shop/views.py
Zadigo/ecommerce_template
a4572c3faeaeb9cd399351c0fd1f19a4ef94de27
[ "MIT" ]
7
2020-06-30T23:55:36.000Z
2021-11-12T00:06:40.000Z
""" Conversion Tunnel ------ checkout > shipment > payment > success Payment process ------- 1. On submitting the form, an AJAX request is done using Stripe in order to get the token 2. An intermediate view is used afterwards to process the payment ofn ...
34.546875
99
0.635761
1,509
13,266
5.45063
0.224652
0.017021
0.017021
0.01459
0.349787
0.304681
0.230881
0.210456
0.190517
0.169362
0
0.005388
0.25848
13,266
383
100
34.637076
0.830741
0.144957
0
0.332046
0
0
0.095558
0.011284
0
0
0
0.005222
0
1
0.065637
false
0
0.069498
0.003861
0.351351
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e585e2842a0d58243451c36eb2f3bb53a795288e
245
py
Python
docker/dataset/stock_analysis/run.py
jojees/operations
bb1a242efbbf56c9afbe4b9e4b5aa14218720e2b
[ "MIT" ]
null
null
null
docker/dataset/stock_analysis/run.py
jojees/operations
bb1a242efbbf56c9afbe4b9e4b5aa14218720e2b
[ "MIT" ]
2
2019-09-22T11:24:19.000Z
2019-09-22T11:38:49.000Z
docker/dataset/stock_analysis/run.py
jojees/operations
bb1a242efbbf56c9afbe4b9e4b5aa14218720e2b
[ "MIT" ]
null
null
null
"""Application entry point.""" from webapp import init_app app = init_app() # Using a development configuration app.config.from_object('config.DevConfig') # print(app.config) if __name__ == "__main__": app.run(host="0.0.0.0", debug=False)
22.272727
42
0.722449
36
245
4.611111
0.666667
0.036145
0.036145
0
0
0
0
0
0
0
0
0.018605
0.122449
245
11
43
22.272727
0.753488
0.314286
0
0
0
0
0.191358
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e585fd72caa5f846d1fe6076b952b19c250c6439
19,169
py
Python
utils/yolo_utils.py
Dishoungh/martrec
74d0cffa3c046509017e1fd121a474ee5b50a194
[ "MIT" ]
null
null
null
utils/yolo_utils.py
Dishoungh/martrec
74d0cffa3c046509017e1fd121a474ee5b50a194
[ "MIT" ]
1
2021-01-28T16:57:41.000Z
2021-01-28T18:13:34.000Z
utils/yolo_utils.py
Dishoungh/martrec
74d0cffa3c046509017e1fd121a474ee5b50a194
[ "MIT" ]
null
null
null
import numpy as np import cv2 as cv import time import os import sys import multiprocessing def init(labelfile, config, weights): # Get the labels labels = open(labelfile).read().strip().split('\n') # Initializing colors to represent each label uniquely colors = np.random.randint(0, 255, size=(len(lab...
42.787946
194
0.440816
1,807
19,169
4.559491
0.210293
0.025246
0.032043
0.012137
0.220658
0.181818
0.154995
0.125865
0.125865
0.116883
0
0.009754
0.475873
19,169
447
195
42.883669
0.810292
0.098284
0
0.271566
0
0
0.05883
0.001276
0
0
0.000232
0.002237
0
1
0.035144
false
0
0.019169
0
0.073482
0.067093
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5882538b7bda731c247750333cac651bac62825
775
py
Python
python_pyxel/pyxel1.py
Perceu/tiktok
c3da4d0a6300867737c1574a552100bdf5eed10f
[ "MIT" ]
null
null
null
python_pyxel/pyxel1.py
Perceu/tiktok
c3da4d0a6300867737c1574a552100bdf5eed10f
[ "MIT" ]
null
null
null
python_pyxel/pyxel1.py
Perceu/tiktok
c3da4d0a6300867737c1574a552100bdf5eed10f
[ "MIT" ]
null
null
null
from turtle import width import pyxel from random import randint class App: def __init__(self): width, height = 720, 1280 pyxel.init(width, height) self.raio = 10 self.color = 1 self.position_x = int(width/2) self.position_y = int(height/2) pyxel.run(self.up...
23.484848
76
0.575484
106
775
4.103774
0.367925
0.165517
0.068966
0.064368
0
0
0
0
0
0
0
0.061682
0.309677
775
33
77
23.484848
0.751402
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.291667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5893301e5d8b6496d1b088428d496d181d86dbc
2,386
py
Python
get_apis.py
Pemacope/Assessment_3
37591a8c2245b0d64dcb1b75326a7a82de45480f
[ "Unlicense" ]
null
null
null
get_apis.py
Pemacope/Assessment_3
37591a8c2245b0d64dcb1b75326a7a82de45480f
[ "Unlicense" ]
null
null
null
get_apis.py
Pemacope/Assessment_3
37591a8c2245b0d64dcb1b75326a7a82de45480f
[ "Unlicense" ]
null
null
null
from uk_covid19 import Cov19API import geocoder import logging import requests import json logging.basicConfig(filename = "sys.log", encoding = 'utf-8') #get_location function def get_location(): """This function gets the location of the user""" current_location_data = geocoder.ip('me') retu...
28.404762
74
0.602263
291
2,386
4.769759
0.316151
0.028818
0.030259
0.041066
0.262248
0.201729
0.201729
0.201729
0.201729
0.201729
0
0.011608
0.277871
2,386
83
75
28.746988
0.793964
0.126991
0
0.170213
0
0
0.174442
0.034483
0
0
0
0
0
1
0.085106
false
0
0.106383
0
0.212766
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e58ccf5e4c1a6de4e6e01e0244878e63b72d84c5
5,522
py
Python
benchmark/how_lineage_benchmark.py
ZhuofanXie/DataTracer
718f58ca87f297e7541c910a53ca8dde8ed7b66e
[ "MIT" ]
null
null
null
benchmark/how_lineage_benchmark.py
ZhuofanXie/DataTracer
718f58ca87f297e7541c910a53ca8dde8ed7b66e
[ "MIT" ]
null
null
null
benchmark/how_lineage_benchmark.py
ZhuofanXie/DataTracer
718f58ca87f297e7541c910a53ca8dde8ed7b66e
[ "MIT" ]
null
null
null
import time from time import time import dask import pandas as pd from dask.diagnostics import ProgressBar import datatracer def transform_single_column(tables, column_info): aggregation = column_info['aggregation'] column_name = column_info['source_col']['col_name'] fk = column_info['row_map'] if a...
33.877301
121
0.641434
672
5,522
5.06994
0.227679
0.032286
0.02671
0.017611
0.154975
0.127972
0.066921
0.066921
0.040505
0.040505
0
0.005854
0.257515
5,522
162
122
34.08642
0.825122
0.143064
0
0.155172
0
0
0.086788
0.0116
0
0
0
0
0
1
0.060345
false
0
0.051724
0
0.232759
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e58f4679796a04818a079751cf89d2d05f6670ee
2,132
py
Python
admin.py
dikshith/allcode
b5563f9d9f1839c50396a2d4de70aac5bceb318f
[ "MIT" ]
null
null
null
admin.py
dikshith/allcode
b5563f9d9f1839c50396a2d4de70aac5bceb318f
[ "MIT" ]
null
null
null
admin.py
dikshith/allcode
b5563f9d9f1839c50396a2d4de70aac5bceb318f
[ "MIT" ]
null
null
null
# save this as app.py from __main__ import app, ALLOWED_EXTENSIONS, UPLOAD_FOLDER from flask import Flask, request, jsonify, abort, render_template, Flask, flash, redirect, url_for from werkzeug.utils import secure_filename import os import io import csv from models import * def allowed_file(filename): return '.'...
37.403509
344
0.615385
271
2,132
4.730627
0.409594
0.037442
0.049142
0.056162
0.060842
0.060842
0.060842
0.060842
0
0
0
0.007477
0.247186
2,132
56
345
38.071429
0.791277
0.070826
0
0.128205
0
0
0.115949
0
0
0
0
0
0
1
0.076923
false
0
0.179487
0.051282
0.410256
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e58f86674bdf77a8b5f16bc946bf19c653623803
2,057
py
Python
BSSN_SF/BSSN_ID_function_string.py
kazewong/nrpytutorial
cc511325f37f01284b2b83584beb2a452556b3fb
[ "BSD-2-Clause" ]
null
null
null
BSSN_SF/BSSN_ID_function_string.py
kazewong/nrpytutorial
cc511325f37f01284b2b83584beb2a452556b3fb
[ "BSD-2-Clause" ]
null
null
null
BSSN_SF/BSSN_ID_function_string.py
kazewong/nrpytutorial
cc511325f37f01284b2b83584beb2a452556b3fb
[ "BSD-2-Clause" ]
null
null
null
# This module sets up an initial data function meant to # be called in a pointwise manner at all gridpoints. # Author: Zachariah B. Etienne # zachetie **at** gmail **dot* com from outputC import * def BSSN_ID_function_string(cf,hDD,lambdaU,aDD,trK,alpha,vetU,betU): returnstring = "void BSSN_ID(REAL xx0,R...
55.594595
115
0.500243
229
2,057
4.471616
0.401747
0.101563
0.123047
0
0
0
0
0
0
0
0
0.076812
0.32912
2,057
36
116
57.138889
0.665217
0.109869
0
0
0
0.107143
0.336623
0.024671
0
0
0
0
0
1
0.035714
false
0
0.035714
0
0.107143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5919a61e375fbb9499ebd4f58ee76df900f51b5
8,163
py
Python
CollectData/instagram_downloader_public.py
erik1110/face-transformation
e9afab85340522c8e19d73b08cedced187d8ada0
[ "MIT" ]
1
2020-10-04T07:39:50.000Z
2020-10-04T07:39:50.000Z
CollectData/instagram_downloader_public.py
erik1110/face-transformation
e9afab85340522c8e19d73b08cedced187d8ada0
[ "MIT" ]
null
null
null
CollectData/instagram_downloader_public.py
erik1110/face-transformation
e9afab85340522c8e19d73b08cedced187d8ada0
[ "MIT" ]
null
null
null
#!/usr/bin/python # coding:utf-8 """ Instagram Downloader """ import os import logging import time import requests from datetime import datetime import tkinter as tk from tkinter import ttk from tkinter import messagebox from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager from bs4 i...
32.521912
111
0.565356
1,003
8,163
4.465603
0.267198
0.028578
0.021433
0.045323
0.231525
0.192677
0.145791
0.062291
0.016968
0
0
0.016074
0.3141
8,163
251
112
32.521912
0.78389
0.097513
0
0.104575
0
0.006536
0.125822
0.043807
0
0
0
0
0
1
0.058824
false
0.006536
0.071895
0
0.169935
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e59820d95011ac7776cfe69371f262bf5dfa9d62
3,475
py
Python
src/preview_item.py
viraelin/yame
2cd2bfa6143c3578ecede602dd1c05236122c1cf
[ "MIT" ]
null
null
null
src/preview_item.py
viraelin/yame
2cd2bfa6143c3578ecede602dd1c05236122c1cf
[ "MIT" ]
null
null
null
src/preview_item.py
viraelin/yame
2cd2bfa6143c3578ecede602dd1c05236122c1cf
[ "MIT" ]
null
null
null
# Copyright (C) 2022 viraelin # License: MIT from PyQt6.QtCore import * from PyQt6.QtWidgets import * from PyQt6.QtGui import * import system from layer_type_menu import LayerType class PreviewTile(QGraphicsRectItem): # def __init__(self, item: QStandardItem) -> None: def __init__(self) -> None: su...
29.201681
98
0.61295
396
3,475
5.292929
0.285354
0.030057
0.042939
0.069179
0.566794
0.566794
0.549141
0.474714
0.474714
0.41937
0
0.014578
0.26964
3,475
118
99
29.449153
0.811269
0.086906
0
0.506024
0
0
0.002213
0
0
0
0
0.008475
0
1
0.084337
false
0
0.060241
0
0.180723
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e59e35b470fb03223bde0bdc8a8066d61bc5a26b
1,522
py
Python
snippets/python/pipe_functional_programming/pipe_example.py
jerabaul29/config_scripts_snippets
c192f50c7cf90088862fd1f4d5678e0936cc375c
[ "MIT" ]
null
null
null
snippets/python/pipe_functional_programming/pipe_example.py
jerabaul29/config_scripts_snippets
c192f50c7cf90088862fd1f4d5678e0936cc375c
[ "MIT" ]
6
2021-10-12T12:27:27.000Z
2022-03-11T19:45:35.000Z
snippets/python/pipe_functional_programming/pipe_example.py
jerabaul29/config_scripts_snippets
c192f50c7cf90088862fd1f4d5678e0936cc375c
[ "MIT" ]
null
null
null
from pipe import Pipe from pipe import select as pmap from pipe import where as filter from pipe import take import functools from icecream import ic ic.configureOutput(prefix="", outputFunction=print) """ For my part, I like to stick to the usual functional programming terminology: take map filter reduce """ # ...
21.742857
85
0.631406
212
1,522
4.45283
0.358491
0.051907
0.108051
0.047669
0.273305
0.222458
0.131356
0.074153
0.074153
0
0
0.024561
0.250986
1,522
69
86
22.057971
0.803509
0.011827
0
0
0
0
0.210476
0
0
0
0
0
0
1
0.071429
false
0
0.214286
0.035714
0.357143
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5a27f53e59e6bdb43b79f5ce55cc60189760583
5,790
py
Python
lcrequest.py
nigelboid/lc-investor
65f5de5c7a4c082fa3e090e4479a78d7432edfdb
[ "MIT" ]
2
2015-10-13T02:54:49.000Z
2015-11-12T21:59:34.000Z
lcrequest.py
nigelboid/lc-investor
65f5de5c7a4c082fa3e090e4479a78d7432edfdb
[ "MIT" ]
null
null
null
lcrequest.py
nigelboid/lc-investor
65f5de5c7a4c082fa3e090e4479a78d7432edfdb
[ "MIT" ]
null
null
null
# # Import all necessary libraries # import requests # # Define some global constants # VERSION= '1.0.0' # API request building blocks API_VERSION= 'v1' REQUEST_ROOT= 'https://api.lendingclub.com/api/investor/{}/'.format(API_VERSION) REQUEST_LOANS= 'loans/listing?showAll=true' REQUEST_ACCOUNTS= 'accounts/{}/' REQU...
35.304878
215
0.721934
726
5,790
5.61157
0.15427
0.105547
0.082474
0.064801
0.623711
0.582474
0.566274
0.552037
0.552037
0.5162
0
0.00146
0.171848
5,790
163
216
35.521472
0.848175
0.063212
0
0.428571
0
0
0.202628
0.004811
0
0
0
0
0
1
0.071429
false
0
0.008929
0
0.151786
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5a3174fd3725503784105163c310d47e1598ce0
8,317
py
Python
exegis/analysis.py
gruel/AphorismToTEI
6d33a353c4b4f159af62e061618ff03a1f09fb7f
[ "BSD-3-Clause" ]
null
null
null
exegis/analysis.py
gruel/AphorismToTEI
6d33a353c4b4f159af62e061618ff03a1f09fb7f
[ "BSD-3-Clause" ]
null
null
null
exegis/analysis.py
gruel/AphorismToTEI
6d33a353c4b4f159af62e061618ff03a1f09fb7f
[ "BSD-3-Clause" ]
null
null
null
"""Module which contains the function to analyse aphorism and commentaries line There are two functions which are treating the references ``[W1 W2]`` and the footnotes *XXX*. The ``references`` function has to be used before the ``footnotes``. :Authors: Jonathan Boyle, Nicolas Gruel <nicolas.gruel@manchester.ac.uk> ...
35.391489
79
0.597451
1,032
8,317
4.718023
0.236434
0.024646
0.012939
0.014377
0.204354
0.176422
0.167386
0.114397
0.079482
0.054631
0
0.002332
0.329686
8,317
234
80
35.542735
0.871031
0.504028
0
0.395062
0
0
0.103842
0
0
0
0
0
0
1
0.024691
false
0.012346
0.037037
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5a7b8b0481012f5ade5147dd6e2ed6513934354
1,695
py
Python
update_damage_sheet.py
faith-grins/RS-RS-DamageRankings
667387bb8971ea57d8ff669efb62ea7c2ef61f8e
[ "Apache-2.0" ]
null
null
null
update_damage_sheet.py
faith-grins/RS-RS-DamageRankings
667387bb8971ea57d8ff669efb62ea7c2ef61f8e
[ "Apache-2.0" ]
null
null
null
update_damage_sheet.py
faith-grins/RS-RS-DamageRankings
667387bb8971ea57d8ff669efb62ea7c2ef61f8e
[ "Apache-2.0" ]
null
null
null
import gspread # If modifying these scopes, delete the file token.json. SCOPES = ['https://www.googleapis.com/auth/spreadsheets'] CLIENT_SECRET_FILE = '.secrets/PythonSheetsApiSecret.json' CREDENTIALS_TOKEN = '.secrets/token.json' # The ID and range of a sample spreadsheet. SPREADSHEET_ID = '1oc5TC_nGzLXk4sP3zhlyFeYt...
30.818182
118
0.756342
231
1,695
5.186147
0.445887
0.066778
0.042571
0.03005
0.118531
0.118531
0.0601
0.0601
0
0
0
0.014384
0.138643
1,695
54
119
31.388889
0.806164
0.056637
0
0.051282
0
0
0.18985
0.049499
0
0
0
0
0
1
0.076923
false
0
0.025641
0.025641
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5a938e5e2ec369977b37c0a78e456d48e469534
350
py
Python
Intermediate/json-data.py
abhishek8075374519/python-for-beginners
a3c0334751001c6468819af7c8ae7ec0993a48c3
[ "MIT" ]
null
null
null
Intermediate/json-data.py
abhishek8075374519/python-for-beginners
a3c0334751001c6468819af7c8ae7ec0993a48c3
[ "MIT" ]
null
null
null
Intermediate/json-data.py
abhishek8075374519/python-for-beginners
a3c0334751001c6468819af7c8ae7ec0993a48c3
[ "MIT" ]
null
null
null
import json as j # CONVERTING TO JSON data = { "Name": "John Doe", "Age": "22" } y = j.dumps(data) print(y) # A LIST IS CONVERTED INTO JSON EQUIVALENT ARRAY data = [1, 2, 3, 4, 5] i = j.dumps(data) print(i) # READING FROM JSON x = '{ "name":"John", "age":30, "city":"New York"}' y = j.loads(x...
16.666667
52
0.554286
59
350
3.288136
0.610169
0.092784
0.103093
0.154639
0
0
0
0
0
0
0
0.034351
0.251429
350
20
53
17.5
0.706107
0.237143
0
0.142857
0
0
0.26749
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5ac46d95f62c31e2cdcf0a830026f35e4bd572a
620
py
Python
code/python/echomesh/output/Registry.py
rec/echomesh
be668971a687b141660fd2e5635d2fd598992a01
[ "MIT" ]
30
2015-02-18T14:07:00.000Z
2021-12-11T15:19:01.000Z
code/python/echomesh/output/Registry.py
rec/echomesh
be668971a687b141660fd2e5635d2fd598992a01
[ "MIT" ]
16
2015-01-01T23:17:24.000Z
2015-04-18T23:49:27.000Z
code/python/echomesh/output/Registry.py
rec/echomesh
be668971a687b141660fd2e5635d2fd598992a01
[ "MIT" ]
31
2015-03-11T20:04:07.000Z
2020-11-02T13:56:59.000Z
from __future__ import absolute_import, division, print_function, unicode_literals from echomesh.util.registry.Module import register from echomesh.output.OutputCache import OutputCache REGISTRY = register( __name__, 'Bidirectional', 'Offset', 'Output', 'Map', 'Spi', 'Test', 'Visualizer', ) OUTPUT_CA...
22.142857
82
0.73871
72
620
6.069444
0.527778
0.08238
0.08238
0
0
0
0
0
0
0
0
0
0.162903
620
27
83
22.962963
0.842004
0
0
0
0
0
0.082258
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.363636
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5aecff027dc26da16498680b52ebce4340235d7
12,433
py
Python
migrations/versions/bdeeeacbec4d_initial_schema.py
Innopoints/backend
723565ba3f63914a7dab03346696d89e28060d64
[ "MIT" ]
1
2020-11-30T17:41:36.000Z
2020-11-30T17:41:36.000Z
migrations/versions/bdeeeacbec4d_initial_schema.py
Innopoints/backend
723565ba3f63914a7dab03346696d89e28060d64
[ "MIT" ]
34
2020-04-18T19:31:27.000Z
2021-03-19T13:56:56.000Z
migrations/versions/bdeeeacbec4d_initial_schema.py
Innopoints/backend
723565ba3f63914a7dab03346696d89e28060d64
[ "MIT" ]
null
null
null
"""Initial schema Revision ID: bdeeeacbec4d Revises: Create Date: 2020-04-11 11:20:18.814141 """ import json from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = 'bdeeeacbec4d' down_revision = None branch_labels = None depends_...
50.54065
332
0.696292
1,490
12,433
5.681208
0.14094
0.086001
0.122268
0.133963
0.632605
0.606734
0.524631
0.47218
0.382044
0.270644
0
0.010424
0.120405
12,433
245
333
50.746939
0.763625
0.022762
0
0.257778
0
0
0.259969
0.013952
0
0
0
0
0
1
0.008889
false
0
0.017778
0
0.026667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5b00d7e128695512faf3dee89d09b98e4ae7a89
636
py
Python
build/lib/DateTimeTools/DayNotoDate.py
pshustov/DateTimeTools
e542fd3f0e3c5290faad09b7cf8a2751132d4dd3
[ "MIT" ]
null
null
null
build/lib/DateTimeTools/DayNotoDate.py
pshustov/DateTimeTools
e542fd3f0e3c5290faad09b7cf8a2751132d4dd3
[ "MIT" ]
null
null
null
build/lib/DateTimeTools/DayNotoDate.py
pshustov/DateTimeTools
e542fd3f0e3c5290faad09b7cf8a2751132d4dd3
[ "MIT" ]
null
null
null
import numpy as np from ._CFunctions import _CDayNotoDate from ._CTConv import _CTConv def DayNotoDate(Year,Doy): ''' Converts year and day numbers to a date of the format yyyymmdd. Inputs ====== Year : int32 Array or scalar of years Doy : int32 Array or scalar of day numbers Returns ======= Date : i...
19.272727
64
0.698113
98
636
4.295918
0.479592
0.049881
0.092637
0.106888
0.095012
0
0
0
0
0
0
0.011696
0.193396
636
32
65
19.875
0.808967
0.522013
0
0
0
0
0.088889
0
0
0
0
0
0
1
0.1
false
0
0.3
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5b241b8fb352b546133a594008c04d79660503c
4,996
py
Python
BigDataArchitecture/application_pod/application.py
Brebeck-Jan/AlphaBigDataTech
df7b63056e7067e366e72193ec8260dbc59b53bb
[ "MIT" ]
null
null
null
BigDataArchitecture/application_pod/application.py
Brebeck-Jan/AlphaBigDataTech
df7b63056e7067e366e72193ec8260dbc59b53bb
[ "MIT" ]
null
null
null
BigDataArchitecture/application_pod/application.py
Brebeck-Jan/AlphaBigDataTech
df7b63056e7067e366e72193ec8260dbc59b53bb
[ "MIT" ]
null
null
null
########################################################################################## ########################################################################################## # BigData - Application # #################################################################...
37.007407
90
0.45036
423
4,996
5.264775
0.420804
0.044005
0.066008
0.04176
0.127077
0.110912
0.074091
0.074091
0.074091
0.074091
0
0.006508
0.169536
4,996
135
91
37.007407
0.530007
0.232186
0
0
0
0
0.08044
0.013548
0
0
0
0
0
1
0.071429
false
0
0.128571
0
0.257143
0.014286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5bc642c6a81db7a4fc50c2b2445c823d9de303f
12,795
py
Python
alterations.py
AlexysAlves/Simulacao_de_trafego
8193b8a47d284c1b84f2903d286d222f3984bbf1
[ "MIT" ]
null
null
null
alterations.py
AlexysAlves/Simulacao_de_trafego
8193b8a47d284c1b84f2903d286d222f3984bbf1
[ "MIT" ]
null
null
null
alterations.py
AlexysAlves/Simulacao_de_trafego
8193b8a47d284c1b84f2903d286d222f3984bbf1
[ "MIT" ]
null
null
null
import random import time import threading import pygame import sys # Default values of signal timers defaultGreen = {0: 10, 1: 10, 2: 10, 3: 10} defaultRed = 150 defaultYellow = 5 signals = [] noOfSignals = 4 currentGreen = 0 # Indicates which signal is green currently nextGreen = (currentGreen + 1) % noOfSignals ...
41.407767
220
0.590074
1,522
12,795
4.931012
0.167543
0.023984
0.025583
0.027981
0.300333
0.243038
0.223584
0.192538
0.167089
0.132445
0
0.046994
0.279875
12,795
309
221
41.407767
0.767528
0.138335
0
0.195122
0
0
0.031136
0.008558
0
0
0
0
0
1
0.036585
false
0
0.020325
0
0.130081
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5bc9bb9de777c853bd717ee97128cd3e2825f2c
6,327
py
Python
pylbm/mpi_topology.py
Mopolino8/pylbm
b457ccdf1e7a1009807bd1136a276886f81a9e7d
[ "BSD-3-Clause" ]
106
2016-09-13T07:19:17.000Z
2022-03-19T13:41:55.000Z
pylbm/mpi_topology.py
Mopolino8/pylbm
b457ccdf1e7a1009807bd1136a276886f81a9e7d
[ "BSD-3-Clause" ]
53
2017-09-18T04:51:19.000Z
2022-01-19T21:36:23.000Z
pylbm/mpi_topology.py
gouarin/pylbm
fd4419933e05b85be364232fddedfcb4f7275e1f
[ "BSD-3-Clause" ]
33
2016-06-17T13:21:17.000Z
2021-11-11T16:57:46.000Z
# Authors: # Loic Gouarin <loic.gouarin@polytechnique.edu> # Benjamin Graille <benjamin.graille@math.u-psud.fr> # # License: BSD 3 clause """ Module which implements a Cartesian MPI topology """ import numpy as np import mpi4py.MPI as mpi from .options import options class MpiTopology: """ Interface...
26.472803
89
0.5633
793
6,327
4.417402
0.211854
0.074222
0.031402
0.031973
0.475592
0.439052
0.39509
0.343134
0.329717
0.2495
0
0.018792
0.335546
6,327
238
90
26.584034
0.814462
0.460408
0
0.066667
0
0
0
0
0
0
0
0
0
1
0.116667
false
0
0.05
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5bd1c8d864738a7eee90d8736eddcad096e5f3d
10,060
py
Python
exact.py
jesgadiaz/ckc
717e7289fff530ea5be4d6db94dc2936e355ed8c
[ "Apache-2.0" ]
1
2020-02-20T10:01:03.000Z
2020-02-20T10:01:03.000Z
exact.py
jesgadiaz/ckc
717e7289fff530ea5be4d6db94dc2936e355ed8c
[ "Apache-2.0" ]
null
null
null
exact.py
jesgadiaz/ckc
717e7289fff530ea5be4d6db94dc2936e355ed8c
[ "Apache-2.0" ]
1
2019-12-05T05:30:50.000Z
2019-12-05T05:30:50.000Z
from gurobipy import * import math import numpy as np import heapq def heap_sort(items): heapq.heapify(items) items[:] = [heapq.heappop(items) for i in range(len(items))] return items def createGraph(input_file, instance_format): global n, m , k, matrix, ordered_sizes if instance_forma...
37.677903
193
0.41004
1,152
10,060
3.488715
0.235243
0.057477
0.032844
0.057477
0.36427
0.329933
0.276437
0.233143
0.185369
0.185369
0
0.061296
0.375646
10,060
266
194
37.819549
0.57857
0.199006
0
0.348259
0
0
0.042515
0
0
0
0
0
0
1
0.019901
false
0
0.019901
0
0.044776
0.074627
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5c851fb9a85bd589c9d3056d5470e792ff6484e
2,551
py
Python
war3structs/objects.py
sides/war3structs
171c91240346e610e22cf10bab0c6d526996f855
[ "MIT" ]
10
2019-12-07T12:10:13.000Z
2022-02-24T12:45:32.000Z
war3structs/objects.py
warlockbrawl/war3structs
171c91240346e610e22cf10bab0c6d526996f855
[ "MIT" ]
null
null
null
war3structs/objects.py
warlockbrawl/war3structs
171c91240346e610e22cf10bab0c6d526996f855
[ "MIT" ]
3
2020-02-28T12:43:26.000Z
2020-06-08T23:31:29.000Z
from construct import * from .common import * """ Formats: w3u, w3t, w3b, w3h, w3d, w3a, w3q Version: 1 The objects file contains data that the object editor would typically manipulate. If dealing with abilities, doodads or upgrades, the ObjectsWithVariationsFile is used instead of the ObjectsFile. Option...
30.369048
86
0.73579
287
2,551
6.390244
0.428571
0.034896
0.030534
0.028353
0.430752
0.430752
0.387132
0.387132
0.387132
0.329335
0
0.014365
0.154057
2,551
83
87
30.73494
0.835496
0
0
0.466667
0
0
0.214391
0.021537
0
0
0
0
0
1
0.016667
false
0
0.033333
0.016667
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5c8fc169ab19e9767386e1463980ba6e2c72681
3,078
py
Python
lexicon.py
adamlek/swedish-lexical-blends
5189bcc1680fda5ac32637dd63b895c091b56997
[ "MIT" ]
null
null
null
lexicon.py
adamlek/swedish-lexical-blends
5189bcc1680fda5ac32637dd63b895c091b56997
[ "MIT" ]
null
null
null
lexicon.py
adamlek/swedish-lexical-blends
5189bcc1680fda5ac32637dd63b895c091b56997
[ "MIT" ]
null
null
null
import pickle from collections import defaultdict from helper_functions import format_lemma, get_blends_csv from os import listdir import networkx as nx def saldo_obj(filename): saldo = defaultdict(int) with open(filename) as f: for line in f: if line.startswith('#'): contin...
29.596154
109
0.556855
414
3,078
3.987923
0.277778
0.033919
0.051484
0.072683
0.312538
0.264082
0.190188
0.17868
0.17868
0.152029
0
0.022263
0.299545
3,078
103
110
29.883495
0.743506
0.27258
0
0.033898
0
0
0.12291
0.095346
0
0
0
0
0
1
0.050847
false
0
0.084746
0
0.186441
0.067797
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5cc7b20cfa963b9093b9d8a0f7b606c9c72c66a
1,737
py
Python
app.py
macloo/flask-form-exercise
e487c84cfe6fb995aa1615c2c6e3c6f1cef5a537
[ "MIT" ]
null
null
null
app.py
macloo/flask-form-exercise
e487c84cfe6fb995aa1615c2c6e3c6f1cef5a537
[ "MIT" ]
null
null
null
app.py
macloo/flask-form-exercise
e487c84cfe6fb995aa1615c2c6e3c6f1cef5a537
[ "MIT" ]
null
null
null
from flask import Flask, render_template, redirect, url_for from flask_bootstrap import Bootstrap from flask_wtf import FlaskForm from wtforms import StringField, SubmitField from wtforms.validators import Required import csv app = Flask(__name__) app.config['DEBUG'] = True # Flask-WTF requires an enryption key - the...
31.017857
77
0.65688
213
1,737
5.220657
0.497653
0.024281
0.026978
0
0
0
0
0
0
0
0
0.004087
0.154865
1,737
55
78
31.581818
0.753406
0.408751
0
0
0
0
0.129703
0.031683
0
0
0
0
0
1
0.071429
false
0
0.214286
0
0.464286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5cd738342d6d3e6c1d28d3273ebe5ae8755466f
8,015
py
Python
core_scripts/data_io/io_tools.py
tyanz/project-NN-Pytorch-scripts
7e90df0f90b04088613d6efb667e147a366273fb
[ "BSD-3-Clause" ]
null
null
null
core_scripts/data_io/io_tools.py
tyanz/project-NN-Pytorch-scripts
7e90df0f90b04088613d6efb667e147a366273fb
[ "BSD-3-Clause" ]
null
null
null
core_scripts/data_io/io_tools.py
tyanz/project-NN-Pytorch-scripts
7e90df0f90b04088613d6efb667e147a366273fb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ io_tools Functions to load data """ from __future__ import absolute_import import os import sys import json import numpy as np __author__ = "Xin Wang" __email__ = "wangxin@nii.ac.jp" __copyright__ = "Copyright 2020, Xin Wang" def f_read_raw_mat(filename, col, data_format='f4', end='l'): ...
29.251825
86
0.572302
1,044
8,015
4.211686
0.177203
0.152377
0.076416
0.081874
0.622697
0.605413
0.538776
0.509666
0.46327
0.443712
0
0.019724
0.30418
8,015
273
87
29.358974
0.768693
0.283843
0
0.655844
0
0
0.073123
0
0
0
0
0
0
1
0.058442
false
0
0.032468
0
0.168831
0.032468
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5cf36edc22c7f7e4d4a27e2cc587f5fe4069278
3,000
py
Python
envs/flatland/utils/env_generators.py
BkyuChoi/HpicFlatland
bdbba7ce451eb72dc760993b96cec4772a08983c
[ "MIT" ]
4
2021-01-15T10:49:33.000Z
2021-12-31T08:11:35.000Z
envs/flatland/utils/env_generators.py
BkyuChoi/HpicFlatland
bdbba7ce451eb72dc760993b96cec4772a08983c
[ "MIT" ]
null
null
null
envs/flatland/utils/env_generators.py
BkyuChoi/HpicFlatland
bdbba7ce451eb72dc760993b96cec4772a08983c
[ "MIT" ]
null
null
null
import logging import random from typing import NamedTuple from flatland.envs.malfunction_generators import malfunction_from_params # from flatland.envs.rail_env import RailEnv from envs.flatland.utils.gym_env_wrappers import FlatlandRenderWrapper as RailEnv from flatland.envs.rail_generators import sparse_rail_genera...
50.847458
149
0.687
374
3,000
5.200535
0.262032
0.041131
0.057584
0.053985
0.167095
0.167095
0.128535
0.112596
0.05964
0.05964
0
0.025214
0.22
3,000
58
150
51.724138
0.805983
0.065
0
0
0
0.022727
0.128571
0.023929
0
0
0
0
0
1
0.022727
false
0
0.159091
0
0.227273
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5cfab6e94dd6a1313e2d99802b5e11a6af2b20d
616
py
Python
api/permissions.py
andela-jmuli/wishlist
39650f7545606aedfe0b32f39bcc883d9b38985c
[ "MIT" ]
2
2017-10-07T09:26:46.000Z
2019-01-20T01:34:13.000Z
api/permissions.py
mrmuli/wishlist
39650f7545606aedfe0b32f39bcc883d9b38985c
[ "MIT" ]
null
null
null
api/permissions.py
mrmuli/wishlist
39650f7545606aedfe0b32f39bcc883d9b38985c
[ "MIT" ]
null
null
null
from rest_framework import permissions from models import Bucketlist class IsOwnerOrReadOnly(permissions.BasePermission): """ Object-level permission to only allow owners of an object to edit it. """ def has_object_permission(self, request, view, obj): """ Read permissions are allowed...
29.333333
73
0.652597
73
616
5.438356
0.712329
0.04534
0
0
0
0
0
0
0
0
0
0
0.282468
616
20
74
30.8
0.89819
0.271104
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5d01d592715818cd44140b5a297b191c7be3b94
1,438
py
Python
mvp/presets.py
danbradham/mvp
7471af9964ff789897792b23d59c597055d566f5
[ "MIT" ]
19
2016-02-26T18:43:31.000Z
2021-04-10T18:29:29.000Z
mvp/presets.py
danbradham/mvp
7471af9964ff789897792b23d59c597055d566f5
[ "MIT" ]
null
null
null
mvp/presets.py
danbradham/mvp
7471af9964ff789897792b23d59c597055d566f5
[ "MIT" ]
8
2015-12-14T15:10:09.000Z
2021-06-12T04:20:36.000Z
# -*- coding: utf-8 -*- import json import glob import os from . import config def get_presets(): '''Get a generator yielding preset name, data pairs''' for path in config.PRESETS_PATH: for f in glob.glob(os.path.join(path, '*.json')): base = os.path.basename(f) name = os.pa...
21.787879
70
0.596662
205
1,438
4.102439
0.331707
0.049941
0.060642
0.035672
0.061831
0.061831
0
0
0
0
0
0.00385
0.277469
1,438
65
71
22.123077
0.805582
0.244089
0
0.066667
0
0
0.048216
0
0
0
0
0
0
1
0.166667
false
0
0.133333
0
0.366667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5d3f1aaa2a4db3d649462b9a4b2872c64304957
911
py
Python
wsdeval/formats/wordnet.py
frankier/finn-wsd-eval
11671a7d87e16a9b45f5bea8a5db3d2f25f31d40
[ "Apache-2.0" ]
null
null
null
wsdeval/formats/wordnet.py
frankier/finn-wsd-eval
11671a7d87e16a9b45f5bea8a5db3d2f25f31d40
[ "Apache-2.0" ]
2
2018-09-22T08:38:23.000Z
2019-03-22T13:11:34.000Z
wsdeval/formats/wordnet.py
frankier/finn-wsd-eval
11671a7d87e16a9b45f5bea8a5db3d2f25f31d40
[ "Apache-2.0" ]
null
null
null
import sys from stiff.data.constants import UNI_POS_WN_MAP from finntk.wordnet.reader import get_en_fi_maps from finntk.wordnet.utils import pre_id_to_post, ss2pre def lemmas_from_instance(wn, instance): word = instance.attrib["lemma"] pos = UNI_POS_WN_MAP[instance.attrib["pos"]] lemmas = wn.lemmas(word, ...
30.366667
62
0.626784
128
911
4.1875
0.40625
0.089552
0.104478
0.119403
0
0
0
0
0
0
0
0.010526
0.270033
911
29
63
31.413793
0.795489
0
0
0.16
0
0
0.058178
0
0
0
0
0
0
1
0.08
false
0
0.16
0
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5d7325ca98374479c7e719100f4da872f071b99
5,653
py
Python
pdfs/Commands/WWW.py
tmearnest/sbd
92e59ed6286ff7b6a036688db086e47951f07cdd
[ "MIT" ]
null
null
null
pdfs/Commands/WWW.py
tmearnest/sbd
92e59ed6286ff7b6a036688db086e47951f07cdd
[ "MIT" ]
null
null
null
pdfs/Commands/WWW.py
tmearnest/sbd
92e59ed6286ff7b6a036688db086e47951f07cdd
[ "MIT" ]
null
null
null
from .Command import Command class WWW(Command): command = 'www' help = "Spin up http server" def set_args(self, subparser): subparser.add_argument("--port","-P", help="Port number to listen on", type=int, default=5000) def run(self, args): import logging import mimetypes ...
36.707792
109
0.5268
607
5,653
4.864909
0.29654
0.030816
0.032171
0.038943
0.211311
0.150356
0.12699
0.0447
0.0447
0.024382
0
0.003232
0.343181
5,653
153
110
36.947712
0.792082
0
0
0.137097
0
0
0.095348
0.016628
0
0
0
0
0
1
0.112903
false
0
0.080645
0.040323
0.314516
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5da928182393c5f5c747b08972d2fb8f2ff9446
8,775
py
Python
rss_temple/api/views/feed.py
murrple-1/rss_temple
289197923b1e7d1213f1673d164337df17d7269b
[ "MIT" ]
null
null
null
rss_temple/api/views/feed.py
murrple-1/rss_temple
289197923b1e7d1213f1673d164337df17d7269b
[ "MIT" ]
8
2019-12-04T21:58:35.000Z
2021-12-15T02:29:49.000Z
rss_temple/api/views/feed.py
murrple-1/rss_temple
289197923b1e7d1213f1673d164337df17d7269b
[ "MIT" ]
null
null
null
from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseNotFound, HttpResponseNotAllowed from django.db import transaction import requests import ujson from url_normalize import url_normalize from api import models, query_utils, feed_handler, rss_requests, archived_feed_entry_util from api.excepti...
30.681818
154
0.692877
1,063
8,775
5.480715
0.132643
0.055613
0.033471
0.039478
0.527291
0.479231
0.442499
0.427738
0.410917
0.396842
0
0.004099
0.221538
8,775
285
155
30.789474
0.848778
0.028946
0
0.455882
0
0
0.043269
0
0
0
0
0
0
1
0.044118
false
0
0.039216
0
0.259804
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5de3b649cde237814d8eb0d0baa2f698e762515
7,959
py
Python
fempagno/modules/motoremesh.py
giovap95/metis-fem
f8a67698d1531a862e541f79229c0e4486edde6c
[ "MIT" ]
null
null
null
fempagno/modules/motoremesh.py
giovap95/metis-fem
f8a67698d1531a862e541f79229c0e4486edde6c
[ "MIT" ]
2
2020-05-08T21:51:44.000Z
2020-05-13T13:41:41.000Z
fempagno/modules/motoremesh.py
giovap95/metis-fem
f8a67698d1531a862e541f79229c0e4486edde6c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Mar 27 18:54:01 2020 @author: giova """ import numpy as np import sys import meshio # Creates a mesh class class Mesh: def __init__(self): self.el_def = None self.material = None self.conn_table = None self.cds_table = Non...
33.1625
107
0.489257
819
7,959
4.678877
0.274725
0.016701
0.025052
0.025052
0.306628
0.29358
0.253653
0.211378
0.190501
0.169102
0
0.008058
0.407463
7,959
239
108
33.301255
0.804495
0.280437
0
0.191304
0
0
0.138163
0.007597
0
0
0
0.004184
0
1
0.06087
false
0.026087
0.026087
0
0.147826
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5e256e472aa9a2645b2b2a6d05bcb536688a4a9
1,116
py
Python
pygame/key-event- get-changed-states/main-using-get_pressed.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
140
2017-02-21T22:49:04.000Z
2022-03-22T17:51:58.000Z
pygame/key-event- get-changed-states/main-using-get_pressed.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
5
2017-12-02T19:55:00.000Z
2021-09-22T23:18:39.000Z
pygame/key-event- get-changed-states/main-using-get_pressed.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
79
2017-01-25T10:53:33.000Z
2022-03-11T16:13:57.000Z
#!/usr/bin/env python3 # # https://stackoverflow.com/a/48034477/1832058 # import pygame pygame.init() screen = pygame.display.set_mode((300, 200)) pressed = pygame.key.get_pressed() clock = pygame.time.Clock() is_running = True while is_running: for event in pygame.event.get(): if event.type == py...
21.461538
87
0.612007
150
1,116
4.466667
0.373333
0.08209
0.080597
0.056716
0.222388
0.077612
0.077612
0
0
0
0
0.028812
0.253584
1,116
51
88
21.882353
0.77551
0.135305
0
0.32
0
0
0
0
0
0
0
0
0
1
0
false
0
0.04
0
0.04
0.16
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5e25a60a68dadc256cd1d15a2436325f5c9ecdb
828
py
Python
epsagon/modules/sqlalchemy.py
Dryja/epsagon-python
505b09268820593903afdce26e1bab7f64adc23b
[ "MIT" ]
55
2018-09-30T11:46:01.000Z
2022-03-15T13:37:26.000Z
epsagon/modules/sqlalchemy.py
Dryja/epsagon-python
505b09268820593903afdce26e1bab7f64adc23b
[ "MIT" ]
323
2018-10-04T15:42:08.000Z
2022-02-20T11:26:40.000Z
epsagon/modules/sqlalchemy.py
Dryja/epsagon-python
505b09268820593903afdce26e1bab7f64adc23b
[ "MIT" ]
20
2018-10-11T14:47:16.000Z
2022-01-20T11:07:29.000Z
""" sqlalchemy patcher module """ from __future__ import absolute_import from epsagon.modules.general_wrapper import wrapper from ..events.sqlalchemy import SqlAlchemyEventFactory from ..utils import patch_once def _wrapper(wrapped, instance, args, kwargs): """ General wrapper for sqlalchemy instrumentation....
21.230769
75
0.665459
87
828
6.149425
0.367816
0.04486
0.071028
0.093458
0.134579
0.134579
0
0
0
0
0
0
0.237923
828
38
76
21.789474
0.847861
0.286232
0
0.352941
0
0
0.137996
0.083176
0
0
0
0
0
1
0.117647
false
0
0.235294
0
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5e7f6b3dfe5867d1dd051b77e4c526e95d5eaf6
5,100
py
Python
hg2git.py
LukasPersonal/hg-fast-export
77a770c2b856a49f0d58a035cd9e300c8c0203ac
[ "MIT" ]
null
null
null
hg2git.py
LukasPersonal/hg-fast-export
77a770c2b856a49f0d58a035cd9e300c8c0203ac
[ "MIT" ]
1
2021-09-30T17:11:13.000Z
2021-09-30T17:11:13.000Z
hg2git.py
LukasPersonal/hg-fast-export
77a770c2b856a49f0d58a035cd9e300c8c0203ac
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # pylint: disable=E1101.E0602 # Copyright (c) 2007, 2008 Rocco Rutte <pdmef@gmx.net> and others. # License: MIT <http://www.opensource.org/licenses/mit-license.php> import os import re import subprocess import sys from mercurial import error as hgerror from mercurial import hg, templatefilters,...
30.909091
88
0.612941
708
5,100
4.365819
0.372881
0.022646
0.011647
0.012941
0.016176
0
0
0
0
0
0
0.018533
0.259412
5,100
164
89
31.097561
0.799841
0.218627
0
0.095652
0
0
0.07049
0.005811
0
0
0
0
0
1
0.086957
false
0
0.069565
0.008696
0.252174
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5e873bb87ab31b611a9db0a4399b14d3a1da37d
331
py
Python
l1-l100/7.py
ZucchiniY/Leetcode-cn
c26d080b7f8115a2edfc135742c1cad0105eccfc
[ "MIT" ]
null
null
null
l1-l100/7.py
ZucchiniY/Leetcode-cn
c26d080b7f8115a2edfc135742c1cad0105eccfc
[ "MIT" ]
null
null
null
l1-l100/7.py
ZucchiniY/Leetcode-cn
c26d080b7f8115a2edfc135742c1cad0105eccfc
[ "MIT" ]
null
null
null
""" 最终的结果要考虑 Python 的int 类型会比一般语言的长,所以要考虑 32位这个范围。 """ class Solution: def reverse(self, x: int) -> int: y = x if x < 0: y = -1 * x y = str(y)[::-1] if x < 0: r = -1 * int(y) else: r = int(y) return r if -2147483648 < r < 2147483...
18.388889
55
0.432024
45
331
3.177778
0.511111
0.083916
0.055944
0
0
0
0
0
0
0
0
0.149733
0.435045
331
17
56
19.470588
0.614973
0.138973
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5ede57f6e5a4c4f286e2ced6355288e52909591
1,947
py
Python
binding/python/test_cobra_perf.py
Picovoice/cobra
2684f7e873930b66fa5cd114ee06434a63760160
[ "Apache-2.0" ]
26
2021-09-17T20:11:52.000Z
2022-03-13T01:33:22.000Z
binding/python/test_cobra_perf.py
Picovoice/cobra
2684f7e873930b66fa5cd114ee06434a63760160
[ "Apache-2.0" ]
4
2021-09-29T20:39:25.000Z
2022-01-19T18:24:56.000Z
binding/python/test_cobra_perf.py
Picovoice/cobra
2684f7e873930b66fa5cd114ee06434a63760160
[ "Apache-2.0" ]
3
2021-11-08T05:19:24.000Z
2022-03-07T03:08:24.000Z
# # Copyright 2022 Picovoice Inc. # # You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE" # file accompanying this source. # # Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on # an "AS IS" B...
33
117
0.663585
262
1,947
4.729008
0.465649
0.048426
0.01937
0.025827
0.027441
0
0
0
0
0
0
0.009434
0.237802
1,947
58
118
33.568966
0.825472
0.247047
0
0
0
0
0.104467
0.051546
0
0
0
0
0.028571
1
0.028571
false
0
0.171429
0
0.314286
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5edfa705d3471d7a0761238dd4b5b4398bf2f00
4,034
py
Python
neurons/boltzmann/main.py
unconst/SimpleWord2Vec
d1af6993c1d6bca273a0c8d147132ee9867f5543
[ "MIT" ]
9
2019-12-18T10:20:15.000Z
2021-03-18T00:07:28.000Z
neurons/boltzmann/main.py
unconst/SimpleWord2Vec
d1af6993c1d6bca273a0c8d147132ee9867f5543
[ "MIT" ]
5
2020-02-12T02:21:15.000Z
2022-02-10T00:25:28.000Z
neurons/boltzmann/main.py
unconst/BitTensor
d1af6993c1d6bca273a0c8d147132ee9867f5543
[ "MIT" ]
null
null
null
import bittensor from config import Config from metagraph import Metagraph from dendrite import Dendrite from nucleus import Nucleus from neuron import Neuron from Crypto.Hash import SHA256 from datetime import timedelta import grpc from loguru import logger import pickle import numpy as np import random import time ...
28.609929
83
0.589737
428
4,034
5.446262
0.306075
0.030888
0.022308
0.037752
0.424281
0.346203
0.333762
0.246246
0.1716
0.1716
0
0.014931
0.302677
4,034
140
84
28.814286
0.813722
0.463312
0
0.035088
0
0
0.074905
0
0
0
0
0
0
1
0.105263
false
0
0.263158
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5ee0a1b58d18c70bdda71d41120500488aa7c66
897
py
Python
miplearn/tests/__init__.py
GregorCH/MIPLearn
28e2ba7c0133602fb361f8690bc7424869f68b43
[ "BSD-3-Clause" ]
null
null
null
miplearn/tests/__init__.py
GregorCH/MIPLearn
28e2ba7c0133602fb361f8690bc7424869f68b43
[ "BSD-3-Clause" ]
null
null
null
miplearn/tests/__init__.py
GregorCH/MIPLearn
28e2ba7c0133602fb361f8690bc7424869f68b43
[ "BSD-3-Clause" ]
null
null
null
# MIPLearn: Extensible Framework for Learning-Enhanced Mixed-Integer Optimization # Copyright (C) 2020, UChicago Argonne, LLC. All rights reserved. # Released under the modified BSD license. See COPYING.md for more details. from miplearn import LearningSolver from miplearn.problems.knapsack import KnapsackInstance ...
34.5
82
0.634337
115
897
4.913043
0.626087
0.042478
0.014159
0.035398
0
0
0
0
0
0
0
0.098361
0.251951
897
25
83
35.88
0.743666
0.244147
0
0.2
0
0
0
0
0
0
0
0
0
1
0.05
false
0
0.1
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5ee4943aac68235054c17ff1e0039fbf33c5e05
3,394
py
Python
RPi/PBUtils.py
lefake/RPi-Arduino-PB-Communication
8f827a4b8eaa331cd47d9a3f5bfa0414ec8c264f
[ "MIT" ]
null
null
null
RPi/PBUtils.py
lefake/RPi-Arduino-PB-Communication
8f827a4b8eaa331cd47d9a3f5bfa0414ec8c264f
[ "MIT" ]
null
null
null
RPi/PBUtils.py
lefake/RPi-Arduino-PB-Communication
8f827a4b8eaa331cd47d9a3f5bfa0414ec8c264f
[ "MIT" ]
null
null
null
from binascii import unhexlify import threading import time # Serialization utils class PBSerializationHandler: def __init__(self, msg_obj): self._msg_obj = msg_obj def encode_msgs(self, ids, msgs): msg = "<" for id_msg, pb_msg in zip(ids, msgs): msg += str(id_msg) + "|" ...
27.819672
113
0.57749
389
3,394
4.784062
0.285347
0.041376
0.032241
0.013971
0.017195
0
0
0
0
0
0
0.004316
0.317325
3,394
121
114
28.049587
0.798878
0.051267
0
0.170455
0
0
0.012449
0
0
0
0
0
0
1
0.181818
false
0
0.034091
0.022727
0.295455
0.011364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5f0bb1e5a4c34450975dee81ee353ebb2c952b3
9,769
py
Python
Old_Files/QuickPool_Old.py
PV-Lab/stability
d18da803a399a7c338b225b0d6adbdfe1b427707
[ "MIT" ]
null
null
null
Old_Files/QuickPool_Old.py
PV-Lab/stability
d18da803a399a7c338b225b0d6adbdfe1b427707
[ "MIT" ]
null
null
null
Old_Files/QuickPool_Old.py
PV-Lab/stability
d18da803a399a7c338b225b0d6adbdfe1b427707
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Apr 4 18:07:03 2019 @author: NickT """ from pymatgen import MPRester import pandas as pd import matplotlib.pyplot as plt import csv import multiprocessing as mp import pickle import tqdm import time mat_api_key = '<ENTER API KEY>' mpr = MPRester(mat...
37.003788
131
0.604873
1,192
9,769
4.758389
0.234899
0.026798
0.044429
0.054302
0.234133
0.165903
0.130642
0.108075
0.050071
0.050071
0
0.026038
0.272699
9,769
263
132
37.144487
0.772273
0.193776
0
0.041667
0
0
0.21372
0.045472
0
0
0
0
0
1
0.013889
false
0
0.055556
0
0.083333
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5f19e16e2b08093649aea79bf01a6ebe7b3786c
1,638
py
Python
lhq_nn_lib/layers/loss.py
lhq1208/DL_lib
53c99157efcc36f2288a82eedad09cdecda579e5
[ "Apache-2.0" ]
null
null
null
lhq_nn_lib/layers/loss.py
lhq1208/DL_lib
53c99157efcc36f2288a82eedad09cdecda579e5
[ "Apache-2.0" ]
null
null
null
lhq_nn_lib/layers/loss.py
lhq1208/DL_lib
53c99157efcc36f2288a82eedad09cdecda579e5
[ "Apache-2.0" ]
null
null
null
import numpy as np from layers.activation_layer import * from layers.gradient_check import * def mean_square_error_loss(y_hat, y): """ MSE loss, loss=mean(y_hat-y)^2 :param y_hat: output of the network :param y: input labels :return: MSE loss """ loss = np.mean((y_hat - y) ** 2) num_ou...
27.762712
87
0.632479
276
1,638
3.557971
0.304348
0.040733
0.025458
0.039715
0.14664
0.089613
0.089613
0.089613
0.089613
0.089613
0
0.020586
0.228938
1,638
58
88
28.241379
0.756928
0.218559
0
0.060606
0
0
0.03843
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.272727
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5f2b2946d7fb399e25a69e9d6f0ee5cf294595b
2,518
py
Python
clearmash/prep_entities_for_search.py
Beit-Hatfutsot/mojp-dbs-pipelines
7bac0da9c1777351f40f422c664a7168b52e218a
[ "MIT" ]
1
2017-06-21T11:36:01.000Z
2017-06-21T11:36:01.000Z
clearmash/prep_entities_for_search.py
Beit-Hatfutsot/mojp-dbs-pipelines
7bac0da9c1777351f40f422c664a7168b52e218a
[ "MIT" ]
66
2017-05-09T11:48:50.000Z
2018-01-02T11:57:26.000Z
clearmash/prep_entities_for_search.py
Beit-Hatfutsot/mojp-dbs-pipelines
7bac0da9c1777351f40f422c664a7168b52e218a
[ "MIT" ]
2
2017-04-25T09:07:15.000Z
2017-06-15T10:35:36.000Z
from datapackage_pipelines.wrapper import ingest, spew from datapackage_pipelines.utilities.resources import PROP_STREAMING from bs4 import BeautifulSoup parameters, datapackage, resources = ingest() def get_resource(): for resource in resources: for row in resource: if row["collection"] == ...
61.414634
120
0.470612
221
2,518
5.126697
0.285068
0.079435
0.052957
0.075022
0.303619
0.213592
0.144748
0.086496
0.086496
0.086496
0
0.00189
0.369738
2,518
40
121
62.95
0.712035
0
0
0
0
0
0.26251
0.037331
0
0
0
0
0
1
0.030303
false
0
0.090909
0
0.121212
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5f5488490016c728274b70ed9f953908256998b
1,788
py
Python
reanalysis/mt_to_vcf.py
populationgenomics/automated-interpretation-pipeline
64afbf396dcc2f4f2330cdfd0414238560910e93
[ "MIT" ]
null
null
null
reanalysis/mt_to_vcf.py
populationgenomics/automated-interpretation-pipeline
64afbf396dcc2f4f2330cdfd0414238560910e93
[ "MIT" ]
4
2022-03-28T06:28:01.000Z
2022-03-31T00:16:02.000Z
reanalysis/mt_to_vcf.py
populationgenomics/automated-interpretation-pipeline
64afbf396dcc2f4f2330cdfd0414238560910e93
[ "MIT" ]
null
null
null
""" Takes an input MT, and extracts a VCF-format representation. This is currently required as the end-to-end CPG pipeline doesn't currently store intermediate files. To simulate workflows running on VCF files, we have to regenerate a VCF representation from a MT. Optional argument allows the specification of an 'add...
28.380952
83
0.69519
247
1,788
4.890688
0.404858
0.10596
0.042219
0.023179
0.056291
0
0
0
0
0
0
0
0.229306
1,788
62
84
28.83871
0.876633
0.414989
0
0.117647
0
0
0.138034
0
0
0
0
0
0
1
0.029412
false
0
0.117647
0
0.147059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5f5c14f40a001a742cdc89ea72f7c6f1ffa6230
3,787
py
Python
asrtoolkit/wer.py
kaleko/greenkey-asrtoolkit
a729e25ae9c1c65b3c9f25438eb67dba8d03a730
[ "Apache-2.0" ]
null
null
null
asrtoolkit/wer.py
kaleko/greenkey-asrtoolkit
a729e25ae9c1c65b3c9f25438eb67dba8d03a730
[ "Apache-2.0" ]
1
2020-02-07T19:20:07.000Z
2020-02-07T19:27:19.000Z
asrtoolkit/wer.py
kaleko/greenkey-asrtoolkit
a729e25ae9c1c65b3c9f25438eb67dba8d03a730
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Python function for computing word error rates metric for Automatic Speech Recognition files """ import argparse import re import editdistance from asrtoolkit.clean_formatting import clean_up from asrtoolkit.data_structures.time_aligned_text import time_aligned_text from asrtoolkit.file_uti...
25.587838
111
0.639028
491
3,787
4.749491
0.321792
0.04717
0.064322
0.037736
0.282161
0.201544
0.175815
0.175815
0.175815
0.145798
0
0.006298
0.245313
3,787
147
112
25.761905
0.809657
0.19831
0
0.288889
0
0
0.185724
0
0
0
0
0
0
1
0.044444
false
0
0.066667
0
0.144444
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5f7fd3c0fafa269562c91d637943b7de22fa323
808
py
Python
src/DeepNovelARG/fasta2kmers.py
gaarangoa/deeparg2.0
e7777dbc71fa3c527b8b198c79ab8b42fb597d8f
[ "BSD-2-Clause" ]
2
2020-10-29T04:28:45.000Z
2021-03-20T09:49:26.000Z
src/DeepNovelARG/fasta2kmers.py
gaarangoa/deeparg2.0
e7777dbc71fa3c527b8b198c79ab8b42fb597d8f
[ "BSD-2-Clause" ]
4
2021-03-07T04:57:16.000Z
2022-03-13T21:13:59.000Z
src/DeepNovelARG/fasta2kmers.py
gaarangoa/deeparg2.0
e7777dbc71fa3c527b8b198c79ab8b42fb597d8f
[ "BSD-2-Clause" ]
3
2020-12-01T09:21:20.000Z
2021-02-24T15:05:02.000Z
import sys from Bio import SeqIO import re import numpy as np def split_genome(genome="ATCGATATACCA", k=3): return re.findall('.'*k, genome) def genearte_one_genome(genome='ATCGATATACCA', k=3): _genome = genome _sentence = split_genome(genome=_genome, k=k) return _sentence def fasta2kmers(fasta_...
23.085714
73
0.647277
110
808
4.6
0.454545
0.166008
0.067194
0.098814
0.102767
0
0
0
0
0
0
0.007862
0.212871
808
34
74
23.764706
0.787736
0.087871
0
0
0
0
0.079277
0
0
0
0
0
0
1
0.166667
false
0
0.222222
0.055556
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5fde087ff89b55704670fe7d181d26045924a03
9,762
py
Python
src/reader/transformer_wrapper.py
isspek/Cross-Lingual-Cyberbullying
710c136b9233f0be87af72e43e25722e73158c52
[ "MIT" ]
1
2022-01-12T15:36:30.000Z
2022-01-12T15:36:30.000Z
src/reader/transformer_wrapper.py
isspek/Cross-Lingual-Cyberbullying
710c136b9233f0be87af72e43e25722e73158c52
[ "MIT" ]
null
null
null
src/reader/transformer_wrapper.py
isspek/Cross-Lingual-Cyberbullying
710c136b9233f0be87af72e43e25722e73158c52
[ "MIT" ]
null
null
null
from transformers import AutoTokenizer from pathlib import Path import torch from src.reader.pan_hatespeech import AUTHOR_SEP, AUTHOR_ID import numpy as np from sklearn.model_selection import StratifiedKFold from src.utils import RANDOM_SEED from pathlib import Path import xml.etree.ElementTree as ET from transformers ...
41.896996
119
0.521205
959
9,762
5.062565
0.17414
0.045314
0.046344
0.01483
0.509784
0.464882
0.439135
0.383522
0.355922
0.355922
0
0.001336
0.386806
9,762
232
120
42.077586
0.809723
0.032166
0
0.418848
0
0
0.054678
0.007947
0
0
0
0.00431
0
1
0.031414
false
0.005236
0.062827
0.005236
0.151832
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e5fe149f57cd02f1ac0914d38105b287b42a97c0
6,585
py
Python
data/download.py
molokhovdmitry/placeholder
cc0a983af91fcbea3dcd7b9a16db471b000b5ff5
[ "MIT" ]
null
null
null
data/download.py
molokhovdmitry/placeholder
cc0a983af91fcbea3dcd7b9a16db471b000b5ff5
[ "MIT" ]
null
null
null
data/download.py
molokhovdmitry/placeholder
cc0a983af91fcbea3dcd7b9a16db471b000b5ff5
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2021 molokhovdmitry Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
30.771028
79
0.639028
852
6,585
4.782864
0.265258
0.028712
0.023558
0.026503
0.149202
0.083436
0.07681
0.066748
0.048098
0.027975
0
0.0093
0.281549
6,585
213
80
30.915493
0.85204
0.288079
0
0.192308
0
0
0.105112
0
0
0
0
0
0
1
0.057692
false
0
0.105769
0
0.173077
0.163462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f900890adc7949963a4aa7f524446cd1c7206958
385
py
Python
Selenium_WebDriver/Find_Element_by_Css_Selector.py
w2k31984/Selenium_WebDriver_Python
73e509813c6a5e508677920fa76c8cc56371134b
[ "MIT", "MIT-0" ]
null
null
null
Selenium_WebDriver/Find_Element_by_Css_Selector.py
w2k31984/Selenium_WebDriver_Python
73e509813c6a5e508677920fa76c8cc56371134b
[ "MIT", "MIT-0" ]
null
null
null
Selenium_WebDriver/Find_Element_by_Css_Selector.py
w2k31984/Selenium_WebDriver_Python
73e509813c6a5e508677920fa76c8cc56371134b
[ "MIT", "MIT-0" ]
null
null
null
import time from selenium import webdriver def main(): driver = webdriver.Chrome(executable_path='chromedriver.exe') driver.get('https://www.w3schools.com/') #input() time.sleep(5) driver.find_element_by_css_selector('#w3loginbtn').click() #Conseguiremos copiando del objeto el selector del objeto. ...
27.5
121
0.711688
49
385
5.326531
0.734694
0.068966
0
0
0
0
0
0
0
0
0
0.01227
0.153247
385
14
122
27.5
0.788344
0.2
0
0
0
0
0.199346
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f90152bc71aae7d837d6a1c5e96b7dfa9cb2abc6
1,158
py
Python
time_test.py
zhfeing/graduation-project
e9020a4d7916874ad9d4bf0c9f7f1f82dcfea663
[ "MIT" ]
null
null
null
time_test.py
zhfeing/graduation-project
e9020a4d7916874ad9d4bf0c9f7f1f82dcfea663
[ "MIT" ]
1
2019-04-12T06:25:36.000Z
2019-04-12T06:26:06.000Z
time_test.py
zhfeing/graduation-project
e9020a4d7916874ad9d4bf0c9f7f1f82dcfea663
[ "MIT" ]
null
null
null
import time from model_zoo import load_model, resnet, googLeNet import ensembel_model import utils import cv2 import numpy as np import torch from torch import nn import os os.environ["CUDA_VISIBLE_DEVICES"] = "{}".format(1) # test resnet version = 'resnet-tiny-n7' new_model = resnet.my_resnet mean = np.array([[[[1...
24.125
77
0.665803
175
1,158
4.222857
0.457143
0.064953
0.037889
0
0
0
0
0
0
0
0
0.064619
0.184801
1,158
47
78
24.638298
0.71822
0.145941
0
0
0
0
0.064286
0.027551
0
0
0
0
0
1
0
false
0
0.290323
0
0.290323
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f9098f375c9a6e85e1d5127cd965e29b7cdfa5a4
1,315
py
Python
infra/bots/assets/skimage/create_and_upload.py
travisleithead/skia
2092340a0edc25e9082ce9717643d12d901c3971
[ "BSD-3-Clause" ]
6,304
2015-01-05T23:45:12.000Z
2022-03-31T09:48:13.000Z
infra/bots/assets/skimage/create_and_upload.py
travisleithead/skia
2092340a0edc25e9082ce9717643d12d901c3971
[ "BSD-3-Clause" ]
67
2016-04-18T13:30:02.000Z
2022-03-31T23:06:55.000Z
infra/bots/assets/skimage/create_and_upload.py
travisleithead/skia
2092340a0edc25e9082ce9717643d12d901c3971
[ "BSD-3-Clause" ]
1,231
2015-01-05T03:17:39.000Z
2022-03-31T22:54:58.000Z
#!/usr/bin/env python # # Copyright 2016 Google Inc. # # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Create the asset and upload it.""" import os import subprocess import sys import tempfile FILE_DIR = os.path.dirname(os.path.abspath(__file__)) ASSET = os...
29.222222
80
0.670722
201
1,315
4.278607
0.517413
0.048837
0.034884
0.055814
0.144186
0.104651
0
0
0
0
0
0.003824
0.204563
1,315
44
81
29.886364
0.818356
0.255513
0
0
0
0
0.255959
0
0
0
0
0
0
1
0.043478
false
0
0.173913
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f90ab2849b2e284d4af9d06d042c800ea64ec2f7
1,487
py
Python
chapter/chapter5/multi-channels/basic.py
nealguo/gluon-study
5a1bf7de8f6cc1a376ad85758bc24cf9488f17a1
[ "Apache-2.0" ]
1
2019-06-13T14:21:48.000Z
2019-06-13T14:21:48.000Z
chapter/chapter5/multi-channels/basic.py
nealguo/gluon-study
5a1bf7de8f6cc1a376ad85758bc24cf9488f17a1
[ "Apache-2.0" ]
null
null
null
chapter/chapter5/multi-channels/basic.py
nealguo/gluon-study
5a1bf7de8f6cc1a376ad85758bc24cf9488f17a1
[ "Apache-2.0" ]
null
null
null
from mxnet import nd # 二维互相关 def corr2d(X, K): h, w = K.shape Y = nd.zeros((X.shape[0] - h + 1, X.shape[1] - w + 1)) for i in range(Y.shape[0]): for j in range(Y.shape[1]): Y[i, j] = (X[i:i + h, j:j + w] * K).sum() return Y # 对多通道输入的二维互相关 def corr2d_multi_in(X, K): # 首先沿着X和K的...
26.087719
59
0.566241
271
1,487
2.944649
0.287823
0.030075
0.146617
0.120301
0.22807
0.16416
0.072682
0.02005
0
0
0
0.069519
0.245461
1,487
56
60
26.553571
0.639929
0.184264
0
0
0
0
0.006667
0
0
0
0
0
0
1
0.125
false
0
0.03125
0.0625
0.28125
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0