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
edd948bb9ec9eb83072bfce6e93f8f8d37219a11
3,077
py
Python
DQM/Physics/test/ewkElecDQM_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DQM/Physics/test/ewkElecDQM_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DQM/Physics/test/ewkElecDQM_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("EwkDQM") process.load("DQM.Physics.ewkElecDQM_cfi") process.load("DQMServices.Core.DQM_cfg") process.load("DQMServices.Components.DQMEnvironment_cfi") process.DQM.collectorHost = '' #keep the logging output to a nice level process.load("FWCore.Message...
40.486842
123
0.753331
362
3,077
6.350829
0.458564
0.093954
0.051762
0.089169
0.250979
0.209656
0.1592
0.118312
0.073945
0.073945
0
0.092279
0.116022
3,077
75
124
41.026667
0.752941
0.375366
0
0
0
0
0.250263
0.202318
0
0
0
0
0
1
0
false
0
0.025
0
0.025
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
eddafd9744249b5f6384f3044c4d9c5bb3848404
4,809
py
Python
indStudyA.py
rafaelorozco/cloudsimbuck
5b6bc4f24343bb171bc44522244647fcdaff7bf5
[ "MIT" ]
null
null
null
indStudyA.py
rafaelorozco/cloudsimbuck
5b6bc4f24343bb171bc44522244647fcdaff7bf5
[ "MIT" ]
null
null
null
indStudyA.py
rafaelorozco/cloudsimbuck
5b6bc4f24343bb171bc44522244647fcdaff7bf5
[ "MIT" ]
null
null
null
#version 1 # # #Setup data structure #Made timer that includes fps from pyqtgraph.Qt import QtCore, QtGui import pyqtgraph.opengl as gl import pyqtgraph as pg import numpy as np import random #import time from pyqtgraph.ptime import time import functools app = QtGui.QApplication([]) w = gl.GLViewWidget() w.show() ...
25.854839
120
0.602412
927
4,809
3.102481
0.166127
0.027816
0.038248
0.041725
0.438804
0.42733
0.39395
0.380042
0.370654
0.331015
0
0.075097
0.194219
4,809
185
121
25.994595
0.667097
0.140362
0
0.20339
0
0
0.004153
0
0
0
0
0
0
1
0.050847
false
0
0.067797
0.008475
0.127119
0.008475
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
eddc970d0bca10b6c7c843c88343bba235218464
433
py
Python
example.py
dib-lab/pybbhash
08a1f71fc5b1f52d450ba1f33b168241423c9047
[ "MIT" ]
16
2018-01-18T06:00:42.000Z
2021-03-03T08:50:42.000Z
example.py
dib-lab/pybbhash
08a1f71fc5b1f52d450ba1f33b168241423c9047
[ "MIT" ]
17
2018-01-21T22:38:37.000Z
2021-01-01T16:26:49.000Z
example.py
dib-lab/pybbhash
08a1f71fc5b1f52d450ba1f33b168241423c9047
[ "MIT" ]
3
2018-07-04T20:38:36.000Z
2021-11-11T12:49:01.000Z
import bbhash # some collection of 64-bit (or smaller) hashes uint_hashes = [10, 20, 50, 80] num_threads = 1 # hopefully self-explanatory :) gamma = 1.0 # internal gamma parameter for BBHash mph = bbhash.PyMPHF(uint_hashes, len(uint_hashes), num_threads, gamma) for val in uint_hashes: print('{} now hashes t...
28.866667
75
0.709007
67
433
4.477612
0.656716
0.133333
0
0
0
0
0
0
0
0
0
0.035813
0.161663
433
14
76
30.928571
0.790634
0.427252
0
0
0
0
0.078189
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.142857
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
edddf9cd795da9fd0a04623dab549ea31d356178
1,618
py
Python
setup.py
creativechain/crea-python-graphenelib
14b0de84c47c21c8ad2f03a9ace7816135345681
[ "MIT" ]
null
null
null
setup.py
creativechain/crea-python-graphenelib
14b0de84c47c21c8ad2f03a9ace7816135345681
[ "MIT" ]
null
null
null
setup.py
creativechain/crea-python-graphenelib
14b0de84c47c21c8ad2f03a9ace7816135345681
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup # Work around mbcs bug in distutils. # http://bugs.python.org/issue10945 import codecs try: codecs.lookup('mbcs') except LookupError: ascii = codecs.lookup('ascii') codecs.register(lambda name, enc=ascii: {True: enc}.get(name == 'mbcs')) VERSION = '0.1.3...
30.528302
95
0.585909
150
1,618
6.26
0.66
0.025559
0.046858
0.055378
0.091587
0.091587
0
0
0
0
0
0.012017
0.279975
1,618
52
96
31.115385
0.793991
0.055006
0
0.088889
0
0
0.389908
0.028834
0
0
0
0
0
1
0
false
0
0.044444
0
0.044444
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
ede0d5ebf66b21e6e1508ac010484457df91425a
531
py
Python
Kickstart/diwali-lightings.py
tushar-1728/Coding
2df9da02cf3e5d4af5b47faf02a07ba54b3297cb
[ "MIT" ]
null
null
null
Kickstart/diwali-lightings.py
tushar-1728/Coding
2df9da02cf3e5d4af5b47faf02a07ba54b3297cb
[ "MIT" ]
null
null
null
Kickstart/diwali-lightings.py
tushar-1728/Coding
2df9da02cf3e5d4af5b47faf02a07ba54b3297cb
[ "MIT" ]
null
null
null
t = int(input()) for i in range(t): pattern = input() lindex, rindex = map(int, input().split()) d = len(pattern) a_list = [] r_count = 0 l_count = 0 flag = 0 for j in range(d): if pattern[j] == "B": a_list.append(j +1) for j in a_list: temp = (rindex - j)...
25.285714
64
0.45951
81
531
2.901235
0.37037
0.06383
0.051064
0
0
0
0
0
0
0
0
0.027027
0.372881
531
20
65
26.55
0.678679
0
0
0
0
0
0.016949
0
0
0
0
0
0
1
0
false
0
0
0
0
0.05
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
ede0d8d35a9f0d6e5afc0c244d8363190ccf8288
1,121
py
Python
oteltrace/contrib/grpc/utils.py
ocelotl/opentelemetry-auto-instr-python-1
f5c47bd1ee492ffde298794f283031c22891f60b
[ "BSD-3-Clause" ]
2
2020-03-04T17:33:22.000Z
2021-01-20T14:20:10.000Z
oteltrace/contrib/grpc/utils.py
ocelotl/opentelemetry-auto-instr-python-1
f5c47bd1ee492ffde298794f283031c22891f60b
[ "BSD-3-Clause" ]
4
2019-11-25T00:11:16.000Z
2021-05-13T20:43:50.000Z
oteltrace/contrib/grpc/utils.py
ocelotl/opentelemetry-auto-instr-python-1
f5c47bd1ee492ffde298794f283031c22891f60b
[ "BSD-3-Clause" ]
3
2020-02-05T14:54:25.000Z
2020-03-23T02:51:27.000Z
# Copyright 2019, OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
40.035714
77
0.729706
157
1,121
5.121019
0.56051
0.156716
0.074627
0.039801
0
0
0
0
0
0
0
0.015119
0.173952
1,121
27
78
41.518519
0.853132
0.668153
0
0
0
0
0.008571
0
0
0
0
0
0
1
0.166667
false
0
0
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
ede10dafbf743c6151c9253bd80b7dd3f59da855
3,852
py
Python
datasetparser.py
moloned/volumetric_accelerator_toolkit
8f5cf226a7d788e4dd4215c181db49d9568c6240
[ "Apache-2.0" ]
6
2019-02-11T14:32:23.000Z
2021-12-07T09:49:41.000Z
datasetparser.py
moloned/volumetric_accelerator_toolkit
8f5cf226a7d788e4dd4215c181db49d9568c6240
[ "Apache-2.0" ]
null
null
null
datasetparser.py
moloned/volumetric_accelerator_toolkit
8f5cf226a7d788e4dd4215c181db49d9568c6240
[ "Apache-2.0" ]
2
2018-10-11T17:29:37.000Z
2021-09-08T12:01:40.000Z
#!/usr/bin/env python3 """Reads all the headers in a folder and creates a vola index. @author Jonathan Byrne @copyright 2018 Intel Ltd (see LICENSE file). """ from __future__ import print_function import argparse import glob import os import struct import json def main(): """Read the headers, calc the centroids a...
33.495652
76
0.537383
471
3,852
4.356688
0.295117
0.081871
0.050682
0.054581
0.157407
0.157407
0.134016
0.056043
0
0
0
0.014942
0.287643
3,852
114
77
33.789474
0.732872
0.051661
0
0.021277
0
0
0.131832
0
0
0
0
0
0
1
0.010638
false
0
0.06383
0
0.074468
0.053191
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
ede193cbc7f6dd6ed49b143d3a053602c1a03e2e
6,324
py
Python
chart-generator/main.py
ShironCat/covid-19-fernandopolis
f7767ed604368c27732de0b3300967bf1019e6e6
[ "CC0-1.0" ]
3
2020-06-10T02:51:38.000Z
2021-05-14T14:37:09.000Z
chart-generator/main.py
ShironCat/covid-19-fernandopolis
f7767ed604368c27732de0b3300967bf1019e6e6
[ "CC0-1.0" ]
1
2022-03-12T01:08:07.000Z
2022-03-12T01:08:07.000Z
chart-generator/main.py
ShironCat/covid-19-fernandopolis
f7767ed604368c27732de0b3300967bf1019e6e6
[ "CC0-1.0" ]
1
2020-06-18T21:50:11.000Z
2020-06-18T21:50:11.000Z
from datetime import datetime, timedelta import matplotlib.dates as mdates import matplotlib.pyplot as plt import numpy as np import pandas as pd import scipy.optimize as opt def area_chart(ds, dateFmt): # create a subplot fig, ax = plt.subplots() # set figure size and dpi fig.set_size_inches(10, 5) ...
29.277778
79
0.553131
817
6,324
4.226438
0.22399
0.034752
0.059079
0.039965
0.631625
0.551984
0.537793
0.518679
0.511729
0.50362
0
0.041189
0.2821
6,324
215
80
29.413953
0.719383
0.112587
0
0.486842
0
0
0.189862
0.017912
0
0
0
0
0
1
0.032895
false
0
0.039474
0
0.078947
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
ede3596e0f595cefcd0e9bb3ee971620608011db
5,297
py
Python
carrier/classification/src/eda/eda.py
talk2sunil83/UpgradLearning
70c4f993c68ce5030e9df0edd15004bbb9fc71e7
[ "Apache-2.0" ]
null
null
null
carrier/classification/src/eda/eda.py
talk2sunil83/UpgradLearning
70c4f993c68ce5030e9df0edd15004bbb9fc71e7
[ "Apache-2.0" ]
null
null
null
carrier/classification/src/eda/eda.py
talk2sunil83/UpgradLearning
70c4f993c68ce5030e9df0edd15004bbb9fc71e7
[ "Apache-2.0" ]
null
null
null
# %% [markdown] ''' # Calculate suspect score for manufacturing claims ''' # %% [markdown] ''' # Problem statement ''' # %% [markdown] ''' **Author** : Sunil Yadav || yadav.sunil83@gmail.com || +91 96206 38383 || ''' # %% [markdown] ''' # Solution Approach - Check if we can correctly segregate suspected claims -...
23.542222
111
0.600906
590
5,297
5.116949
0.372881
0.059622
0.095396
0.041736
0.186154
0.127526
0.108976
0.07519
0.040411
0.040411
0
0.011887
0.25354
5,297
224
112
23.647321
0.751644
0.11516
0
0.030303
0
0
0.133457
0.018763
0
0
0
0.004464
0
1
0
false
0
0.257576
0
0.257576
0.030303
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
ede87d5f9bacdbbf74448b95d151644f8502d5f0
5,532
py
Python
vlnce_baselines/common/ddppo_alg.py
Felix2048/VLN-CE
4ea21f2af0d869ae65dd6677a53e788233f93761
[ "MIT" ]
106
2020-05-11T00:47:23.000Z
2022-03-31T13:15:18.000Z
vlnce_baselines/common/ddppo_alg.py
Felix2048/VLN-CE
4ea21f2af0d869ae65dd6677a53e788233f93761
[ "MIT" ]
30
2020-08-01T02:43:32.000Z
2022-03-31T21:20:30.000Z
vlnce_baselines/common/ddppo_alg.py
Felix2048/VLN-CE
4ea21f2af0d869ae65dd6677a53e788233f93761
[ "MIT" ]
36
2020-06-16T01:18:20.000Z
2022-03-09T17:15:48.000Z
from typing import Tuple import torch from habitat_baselines.rl.ddppo.algo.ddppo import DDPPO from torch.functional import Tensor from torch.nn.functional import l1_loss class WDDPPO(DDPPO): """Differences with DD-PPO: - expands entropy calculation and tracking to three variables - adds a regularization ...
36.88
78
0.525669
549
5,532
4.947177
0.238616
0.052651
0.015464
0.018778
0.086892
0.025037
0
0
0
0
0
0.012983
0.401302
5,532
149
79
37.127517
0.807065
0.041576
0
0.081301
0
0
0.010223
0
0
0
0
0
0
1
0.02439
false
0
0.04065
0
0.097561
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
edea2cfe56a56fb79fd1fce518faeebadbd65eee
1,791
py
Python
main.py
Jackson-Kang/Speech-dataset-generator
7d73ea59f2fb0420cfcbd66afe9352a4eecbac9d
[ "MIT" ]
4
2020-11-19T09:28:40.000Z
2020-12-10T10:56:38.000Z
main.py
Jackson-Kang/Speech-dataset-generator
7d73ea59f2fb0420cfcbd66afe9352a4eecbac9d
[ "MIT" ]
null
null
null
main.py
Jackson-Kang/Speech-dataset-generator
7d73ea59f2fb0420cfcbd66afe9352a4eecbac9d
[ "MIT" ]
null
null
null
import sys import configs as cfg from video2wav import Video2Wav_Converter from segment_speech import Segment_Speech from transcribe_speech import Transcribe_Speech from utils import create_dir def convert_video_to_wav(): create_dir(cfg.preprocessed_wav_savepath) create_dir(cfg.extracted_wav_savepath) v2w = Vi...
27.553846
79
0.757119
249
1,791
5.004016
0.305221
0.070626
0.038523
0.043339
0.144462
0.12199
0.075441
0.075441
0.075441
0
0
0.018
0.162479
1,791
64
80
27.984375
0.812667
0
0
0.044444
0
0
0.024009
0
0
0
0
0
0.022222
1
0.066667
false
0
0.133333
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
edeef0d9d796972bf70b21cd812c5bf7a74c376d
216
py
Python
cgh_practical_ml/b_pandas.py
bm2-lab/MLClass
50e12d58aa56c25feefaa18af2351148052c4c22
[ "Apache-2.0" ]
2
2017-05-18T08:01:10.000Z
2017-06-07T06:23:11.000Z
cgh_practical_ml/b_pandas.py
bm2-lab/MLClass
50e12d58aa56c25feefaa18af2351148052c4c22
[ "Apache-2.0" ]
null
null
null
cgh_practical_ml/b_pandas.py
bm2-lab/MLClass
50e12d58aa56c25feefaa18af2351148052c4c22
[ "Apache-2.0" ]
null
null
null
import pandas as pd dfm = pd.read_csv('h3.bed', sep='\t', header=None, index_col=None) dfm.columns = ['chrom', 'start', 'end'] dfm['length'] = dfm['end'] - dfm['start'] dfm.to_csv('h3.tsv', sep='\t', index=None)
21.6
66
0.62037
37
216
3.540541
0.594595
0.076336
0
0
0
0
0
0
0
0
0
0.010582
0.125
216
10
67
21.6
0.68254
0
0
0
0
0
0.198157
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
edef28264d82bcd62dedd4c32a8425656c175820
7,762
py
Python
scripts/cros_oobe_autoconfig.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
null
null
null
scripts/cros_oobe_autoconfig.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
2
2021-03-26T00:29:32.000Z
2021-04-30T21:29:33.000Z
scripts/cros_oobe_autoconfig.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Provision a recovery image for OOBE autoconfiguration. This script populates the OOBE autoconfiguration data (/stateful/unencr...
33.747826
80
0.676887
988
7,762
5.213563
0.315789
0.013978
0.026403
0.024461
0.114735
0.072607
0.048923
0.048923
0.035721
0.017861
0
0.002799
0.21747
7,762
229
81
33.895197
0.845242
0.289616
0
0.046512
0
0
0.295049
0
0
0
0
0
0.015504
1
0.03876
false
0
0.085271
0
0.147287
0.015504
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
edf065b3b9d813bd45d5a9f2000c563da0552f93
524
py
Python
delivrable.py
minidfx/Cloud-Python-
c9e4741c4c4f7de77f439e2786cca7f03f70cad9
[ "MIT" ]
null
null
null
delivrable.py
minidfx/Cloud-Python-
c9e4741c4c4f7de77f439e2786cca7f03f70cad9
[ "MIT" ]
null
null
null
delivrable.py
minidfx/Cloud-Python-
c9e4741c4c4f7de77f439e2786cca7f03f70cad9
[ "MIT" ]
null
null
null
import os import sys from Amazon import Amazon from OpenStack import OpenStack if sys.version_info.major < 2 and sys.version_info.minor < 7: raise Exception("Python version 2.7 minimum is required for running this script.") clouds = [OpenStack(), Amazon()] for cloud in clouds: cloud.create() print('Press \...
20.153846
86
0.717557
76
524
4.921053
0.565789
0.053476
0.074866
0.085562
0.219251
0
0
0
0
0
0
0.018433
0.171756
524
25
87
20.96
0.843318
0
0
0.25
0
0
0.234733
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
edf0710ec6bce13e2d9a52d1a1948bbc1d362eb2
11,466
py
Python
tests/test_algebra_meta_onnx.py
adrinjalali/sklearn-onnx
160200eb19880b4ded0acdd0c1e1a5ecd45c7b74
[ "MIT" ]
null
null
null
tests/test_algebra_meta_onnx.py
adrinjalali/sklearn-onnx
160200eb19880b4ded0acdd0c1e1a5ecd45c7b74
[ "MIT" ]
null
null
null
tests/test_algebra_meta_onnx.py
adrinjalali/sklearn-onnx
160200eb19880b4ded0acdd0c1e1a5ecd45c7b74
[ "MIT" ]
null
null
null
import os import unittest from distutils.version import StrictVersion from io import StringIO import contextlib import numpy from numpy.testing import assert_almost_equal import onnx import onnxruntime from onnx import numpy_helper, helper from skl2onnx.algebra.onnx_ops import dynamic_class_creation from skl2onnx.algeb...
41.846715
79
0.513257
1,252
11,466
4.555911
0.191693
0.031557
0.043829
0.025245
0.380084
0.318724
0.294004
0.286466
0.245792
0.229313
0
0.012133
0.381825
11,466
273
80
42
0.792607
0.045788
0
0.3361
0
0
0.112689
0.006047
0
0
0
0
0.033195
1
0.029046
false
0.008299
0.062241
0
0.145228
0.004149
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
edf26090d854080fb9b45549474f48ba0c37c05d
7,526
py
Python
moztrap/model/environments/api.py
mbeko/moztrap
db75e1f8756ef2c0c39652a66302b19c8afa0256
[ "BSD-2-Clause" ]
null
null
null
moztrap/model/environments/api.py
mbeko/moztrap
db75e1f8756ef2c0c39652a66302b19c8afa0256
[ "BSD-2-Clause" ]
null
null
null
moztrap/model/environments/api.py
mbeko/moztrap
db75e1f8756ef2c0c39652a66302b19c8afa0256
[ "BSD-2-Clause" ]
null
null
null
from tastypie import fields from tastypie import http from tastypie.resources import ModelResource, ALL, ALL_WITH_RELATIONS from tastypie.exceptions import ImmediateHttpResponse from ..mtapi import MTResource, MTAuthorization from .models import Profile, Environment, Element, Category import logging logger = logging....
34.209091
83
0.59806
774
7,526
5.715762
0.284238
0.016275
0.018083
0.0217
0.292722
0.259268
0.22717
0.22717
0.193264
0.175633
0
0.000387
0.313978
7,526
219
84
34.365297
0.856479
0.1924
0
0.304348
0
0
0.087052
0.013134
0
0
0
0
0
1
0.057971
false
0.007246
0.072464
0
0.282609
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
edf492afe84acc1713a2081782233e25be267de7
890
py
Python
examples/failbot/failbot/writer_options.py
Tallisado/DbBot
cfdea98a5770d86e886205fb2c8b9198c2d6be20
[ "Apache-2.0" ]
1
2021-11-22T14:35:22.000Z
2021-11-22T14:35:22.000Z
examples/failbot/failbot/writer_options.py
Tallisado/DbBot
cfdea98a5770d86e886205fb2c8b9198c2d6be20
[ "Apache-2.0" ]
null
null
null
examples/failbot/failbot/writer_options.py
Tallisado/DbBot
cfdea98a5770d86e886205fb2c8b9198c2d6be20
[ "Apache-2.0" ]
null
null
null
from os.path import exists from sys import argv from dbbot import CommandLineOptions class WriterOptions(CommandLineOptions): @property def output_file_path(self): return self._options.output_file_path def _add_parser_options(self): super(WriterOptions, self)._add_parser_options() ...
30.689655
79
0.668539
110
890
5.118182
0.4
0.085258
0.099467
0.063943
0.159858
0.092362
0
0
0
0
0
0.001486
0.24382
890
28
80
31.785714
0.835067
0
0
0
0
0
0.124719
0
0
0
0
0
0
1
0.136364
false
0
0.136364
0.045455
0.409091
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
edf4bcfd3616b9eb20798b538246c06d4982fdb4
223
py
Python
Solving_Problems/max_common_divisor.py
mingzhangyang/learning_pandas
6ec0ef09839d87a28dbf3beaa7c61e89f4346a36
[ "Apache-2.0" ]
null
null
null
Solving_Problems/max_common_divisor.py
mingzhangyang/learning_pandas
6ec0ef09839d87a28dbf3beaa7c61e89f4346a36
[ "Apache-2.0" ]
null
null
null
Solving_Problems/max_common_divisor.py
mingzhangyang/learning_pandas
6ec0ef09839d87a28dbf3beaa7c61e89f4346a36
[ "Apache-2.0" ]
1
2017-10-10T15:09:38.000Z
2017-10-10T15:09:38.000Z
#!usr/bin/python #coding:utf8 #mcd:max_common_divisor def mcd(a, b):#a and b are natural numbers. if a == b: return a t = min(a, b) cd = [i for i in range(1, t+1) if a % i == 0 and b % i == 0] m = max(cd) return m
17.153846
61
0.587444
50
223
2.58
0.56
0.046512
0
0
0
0
0
0
0
0
0
0.029762
0.246637
223
13
62
17.153846
0.738095
0.340807
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.428571
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
edf5ff589947e9a4cdd842f130ed6198e9f67912
1,129
py
Python
Tarefas RNAs/rna_mpl.py
Jovioluiz/IA
35247c782747a972e73a723608e71faa70cb6916
[ "MIT" ]
null
null
null
Tarefas RNAs/rna_mpl.py
Jovioluiz/IA
35247c782747a972e73a723608e71faa70cb6916
[ "MIT" ]
null
null
null
Tarefas RNAs/rna_mpl.py
Jovioluiz/IA
35247c782747a972e73a723608e71faa70cb6916
[ "MIT" ]
null
null
null
#tarefa 4 #Jóvio L. Giacomolli import numpy as np #função sigmoide def sigmoid(x): return 1/(1 + np.exp(-x)) #arquitetura da MPL n_input = 3 n_hidden = 4 n_output = 2 #vetor dos valores de entrada(aleatoria) x = np.array([1, 2, 3]) #pesos camada oculta weights_in_hidden = np.array([[0.2, 0.1,...
25.659091
63
0.591674
174
1,129
3.683908
0.425287
0.074883
0.046802
0.071763
0
0
0
0
0
0
0
0.07472
0.288751
1,129
44
64
25.659091
0.723537
0.282551
0
0
0
0
0.03183
0
0
0
0
0
0
1
0.052632
false
0
0.052632
0.052632
0.157895
0.052632
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
edf8b9d24eb17e49b5ccc0a21211628f48bd98dd
3,273
py
Python
codestosort/CloudComputing/reports/hw3/src/run.py
jimmy-academia/Deeper-Learnings
ac363efe5450dd2751c0c1bea0ee7af457f7ac24
[ "MIT" ]
2
2019-09-30T04:57:11.000Z
2020-04-06T04:27:46.000Z
codestosort/CloudComputing/reports/hw3/src/run.py
jimmy-academia/Deeper-Learnings
ac363efe5450dd2751c0c1bea0ee7af457f7ac24
[ "MIT" ]
null
null
null
codestosort/CloudComputing/reports/hw3/src/run.py
jimmy-academia/Deeper-Learnings
ac363efe5450dd2751c0c1bea0ee7af457f7ac24
[ "MIT" ]
null
null
null
from thrift.transport import TSocket,TTransport from thrift.protocol import TBinaryProtocol from hbase import Hbase from hbase.ttypes import ColumnDescriptor from hbase.ttypes import Mutation import csv import os import time import logging from tqdm import tqdm # table: station, column: attr, row: date def main(): ...
36.775281
114
0.534983
377
3,273
4.562334
0.416446
0.057558
0.017442
0.024419
0.052326
0
0
0
0
0
0
0.04367
0.307363
3,273
89
115
36.775281
0.715042
0.094409
0
0.03125
0
0
0.132273
0.014885
0
0
0
0
0
1
0.015625
false
0
0.15625
0
0.171875
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
edfad664d6522de1e57decf992ec9921d32421ab
873
py
Python
tests/functional/create_key.py
maxwolfe/autocsr
6c8295c0796f597c8780658de1570f9951b3d846
[ "MIT" ]
null
null
null
tests/functional/create_key.py
maxwolfe/autocsr
6c8295c0796f597c8780658de1570f9951b3d846
[ "MIT" ]
null
null
null
tests/functional/create_key.py
maxwolfe/autocsr
6c8295c0796f597c8780658de1570f9951b3d846
[ "MIT" ]
null
null
null
"""Create PKCS11 Key.""" import pkcs11 from pkcs11.util.ec import encode_named_curve_parameters if __name__ == "__main__": lib = pkcs11.lib("/usr/lib/softhsm/libsofthsm2.so") token = lib.get_token(token_label="token") with token.open(rw=True, user_pin="1234") as session: session.generate_keypair(...
33.576923
87
0.662085
107
873
5.121495
0.439252
0.109489
0.120438
0.153285
0.257299
0.257299
0.182482
0.182482
0.182482
0
0
0.057185
0.218786
873
25
88
34.92
0.746334
0.020619
0
0.105263
0
0
0.110718
0.036514
0
0
0
0
0
1
0
false
0
0.105263
0
0.105263
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
edfc9ce9d519343ae32bf3b714e11e2e15706541
2,353
py
Python
model/losses.py
TomHacker/faster-rcnn
313e51f76814cfceb5c2f24fed6d596bebcbd13f
[ "Apache-2.0" ]
1
2019-06-10T00:47:53.000Z
2019-06-10T00:47:53.000Z
model/losses.py
TomHacker/faster-rcnn
313e51f76814cfceb5c2f24fed6d596bebcbd13f
[ "Apache-2.0" ]
null
null
null
model/losses.py
TomHacker/faster-rcnn
313e51f76814cfceb5c2f24fed6d596bebcbd13f
[ "Apache-2.0" ]
null
null
null
from keras import backend as K from keras.objectives import categorical_crossentropy import tensorflow as tf lambda_rpn_regr=1.0 lambda_rpn_class=1.0 lambda_cls_regr=1.0 lambda_cls_class=1.0 epsilon=1e-4 def rpn_loss_regr(num_anchors): def rpn_loss_regr_fixed_num(y_true,y_pred): x=y_true[:,:,:,4*num_anch...
48.020408
122
0.486188
301
2,353
3.431894
0.156146
0.082285
0.03485
0.052275
0.655373
0.478219
0.460794
0.42788
0.42788
0.42788
0
0.02481
0.38334
2,353
48
123
49.020833
0.687112
0
0
0.047619
0
0
0.003825
0
0
0
0
0
0
1
0.166667
false
0
0.071429
0.02381
0.428571
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
edfd77060965954e9fe35eddd7f4bb0c750e7c30
4,597
py
Python
visualization.py
johnrickman/UnpairedImageTranslation
d1d5e1386babacceabb4fe45841592bc7b6c3baa
[ "MIT" ]
null
null
null
visualization.py
johnrickman/UnpairedImageTranslation
d1d5e1386babacceabb4fe45841592bc7b6c3baa
[ "MIT" ]
null
null
null
visualization.py
johnrickman/UnpairedImageTranslation
d1d5e1386babacceabb4fe45841592bc7b6c3baa
[ "MIT" ]
null
null
null
import os import chainer import matplotlib.gridspec as gridspec import matplotlib.pyplot as plt from chainer import Variable,cuda import numpy as np import chainer.functions as F import losses from chainer.training import extensions import warnings # assume [0,1] input def postprocess(var): img = var.data.get() ...
39.290598
99
0.530998
636
4,597
3.630503
0.238994
0.019922
0.015591
0.010394
0.486358
0.438718
0.426159
0.408835
0.388913
0.320052
0
0.015489
0.325865
4,597
116
100
39.62931
0.72959
0.080052
0
0.326316
0
0
0.042766
0
0
0
0
0
0
1
0.052632
false
0
0.105263
0
0.210526
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
6101e8e012fece4c920c8244350e3a04fbec14a7
4,469
py
Python
perfkitbenchmarker/linux_packages/memcached_server.py
pierre-emmanuelJ/PerfKitBenchmarker
3ef6acfd54d4e3d1f074ef40b3fc5b3a3f855f69
[ "Apache-2.0" ]
1
2016-12-07T19:49:58.000Z
2016-12-07T19:49:58.000Z
perfkitbenchmarker/linux_packages/memcached_server.py
pierre-emmanuelJ/PerfKitBenchmarker
3ef6acfd54d4e3d1f074ef40b3fc5b3a3f855f69
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/linux_packages/memcached_server.py
pierre-emmanuelJ/PerfKitBenchmarker
3ef6acfd54d4e3d1f074ef40b3fc5b3a3f855f69
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 PerfKitBenchmarker Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
33.601504
80
0.707765
601
4,469
5.179701
0.382696
0.043367
0.021844
0.017347
0.101189
0.083842
0.069386
0.069386
0.069386
0.028269
0
0.009655
0.188857
4,469
132
81
33.856061
0.849103
0.358022
0
0.095238
0
0
0.258516
0
0
0
0
0
0
1
0.126984
false
0
0.079365
0
0.222222
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
6101fbe36a07e3eb66e44044a1570bf0f15fcbb4
582
py
Python
tests/test_test_framework.py
mvaleev/asyncpgsa
19b6b9f49cd8a6e63c79695fcb995a59964f694e
[ "Apache-2.0" ]
419
2016-07-22T20:08:05.000Z
2022-03-03T14:39:28.000Z
tests/test_test_framework.py
mvaleev/asyncpgsa
19b6b9f49cd8a6e63c79695fcb995a59964f694e
[ "Apache-2.0" ]
89
2016-09-16T17:28:14.000Z
2021-04-30T08:16:47.000Z
tests/test_test_framework.py
mvaleev/asyncpgsa
19b6b9f49cd8a6e63c79695fcb995a59964f694e
[ "Apache-2.0" ]
63
2016-08-05T15:46:24.000Z
2022-03-31T13:33:54.000Z
# Testing our tests!! from asyncpgsa.testing import MockPG async def test_use_fetchrow(): pg = MockPG() pg.set_database_results({'sqrt': 3}) result = await pg.fetchrow('SELECT * FROM sqrt(16);') assert result['sqrt'] == 3 async def test_use_fetchval(): pg = MockPG() pg.set_database_results(3)...
25.304348
57
0.646048
82
582
4.439024
0.317073
0.054945
0.098901
0.123626
0.648352
0.56044
0.252747
0.252747
0.252747
0.252747
0
0.027957
0.201031
582
22
58
26.454545
0.754839
0.032646
0
0.1875
0
0
0.151515
0
0
0
0
0
0.1875
1
0
false
0
0.0625
0
0.0625
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
610352de23c24c1211593fc045bfabda52ab33ba
3,784
py
Python
tests.py
dantheta/norm
0048dc66686e24d08ae3d01fda8d719abc09f276
[ "BSD-3-Clause" ]
null
null
null
tests.py
dantheta/norm
0048dc66686e24d08ae3d01fda8d719abc09f276
[ "BSD-3-Clause" ]
null
null
null
tests.py
dantheta/norm
0048dc66686e24d08ae3d01fda8d719abc09f276
[ "BSD-3-Clause" ]
null
null
null
import NORM import NORM.utils import psycopg2 import unittest import logging logging.basicConfig(level = logging.WARN) class Person(NORM.DBObject): TABLE = 'people' FIELDS = ['firstname','surname','age'] class FakeCursor(object): def __init__(self, conn): self.conn = conn def execute(self, sql, args = []): ...
24.101911
69
0.656184
490
3,784
5.026531
0.195918
0.074706
0.08039
0.053999
0.481527
0.394641
0.2838
0.213561
0.213561
0.213561
0
0.018886
0.160412
3,784
156
70
24.25641
0.756374
0.012421
0
0.235294
0
0
0.15743
0
0
0
0
0
0.252101
1
0.142857
false
0.008403
0.042017
0.008403
0.277311
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
61037aee09d2dd1ca60025b574f0aaaa3bfd465f
4,012
py
Python
logger/tensorboard_logger.py
system123/SOMatch
6f10cf28f506998a5e430ccd3faab3076fe350d5
[ "MIT" ]
22
2020-09-25T05:10:57.000Z
2022-03-16T08:16:00.000Z
logger/tensorboard_logger.py
system123/SOMatch
6f10cf28f506998a5e430ccd3faab3076fe350d5
[ "MIT" ]
14
2020-10-09T14:12:08.000Z
2021-05-18T12:55:18.000Z
logger/tensorboard_logger.py
system123/SOMatch
6f10cf28f506998a5e430ccd3faab3076fe350d5
[ "MIT" ]
15
2020-11-02T02:01:58.000Z
2022-03-30T08:00:17.000Z
import os import torch import numpy as np import torchvision.utils as vutils from tensorboardX import SummaryWriter from datetime import datetime from utils.helpers import get_learning_rate class TensorboardLogger: def __init__(self, log_every=10, log_params=False, log_dir=None, log_images=False, log_grads=False, ...
38.951456
115
0.720588
593
4,012
4.671164
0.241147
0.06065
0.067509
0.030325
0.189531
0.144765
0.110469
0.068592
0.039711
0.039711
0
0.007184
0.132602
4,012
103
116
38.951456
0.788793
0.068046
0
0.084507
0
0
0.069954
0.012061
0
0
0
0
0
1
0.169014
false
0
0.098592
0
0.295775
0.014085
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
6103dca99223e2064971d08bcfcec2f45746107b
870
py
Python
challenges/week_1/bus_fare_challenge.py
sling254/python
c49c2c63a5fe92f07d24bbb28c3a176d516816da
[ "MIT" ]
null
null
null
challenges/week_1/bus_fare_challenge.py
sling254/python
c49c2c63a5fe92f07d24bbb28c3a176d516816da
[ "MIT" ]
null
null
null
challenges/week_1/bus_fare_challenge.py
sling254/python
c49c2c63a5fe92f07d24bbb28c3a176d516816da
[ "MIT" ]
null
null
null
# WRITE YOUR CODE SOLUTION HERE from datetime import datetime, timedelta, date #Get todays date and store it in a variable 'date' date = datetime.now() """ # Use todays date to get the name on the day of the week written in a short # form with the first letter capitalized (e.g) 'Fri' if today were Friday and # as...
20.714286
80
0.636782
136
870
4.073529
0.544118
0.057762
0
0
0
0
0
0
0
0
0
0.037707
0.237931
870
41
81
21.219512
0.797888
0.089655
0
0
0
0
0.096317
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
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
6103de3de6f757d0d0039c05b3e7ed32ecf1a76c
572
py
Python
TaskManager/forms.py
farahaulita/pbp-tk
fabf8e07ed0e1270d3e98a3d1bdd46267a1a4d6c
[ "Unlicense" ]
null
null
null
TaskManager/forms.py
farahaulita/pbp-tk
fabf8e07ed0e1270d3e98a3d1bdd46267a1a4d6c
[ "Unlicense" ]
null
null
null
TaskManager/forms.py
farahaulita/pbp-tk
fabf8e07ed0e1270d3e98a3d1bdd46267a1a4d6c
[ "Unlicense" ]
null
null
null
from django.db.models.base import Model from django.forms import ModelForm, widgets from django import forms from login.models import User, Task, Submissions, Subject class DateTimeInput(forms.DateTimeInput): input_type = 'datetime-local' input_value = "" class AddTaskForm(ModelForm): class Meta: ...
26
58
0.655594
59
572
6.322034
0.525424
0.080429
0.096515
0.123324
0
0
0
0
0
0
0
0
0.243007
572
22
59
26
0.861432
0
0
0.111111
0
0
0.099476
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.611111
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
61044666403f7fed0ad63dd4accb5ea22bf27e14
12,740
py
Python
spira/yevon/geometry/nets/net.py
qedalab/spira
32e4d2096e298b9fcc5952abd654312dc232a259
[ "MIT" ]
10
2018-07-13T09:46:21.000Z
2021-06-22T13:34:50.000Z
spira/yevon/geometry/nets/net.py
qedalab/spira
32e4d2096e298b9fcc5952abd654312dc232a259
[ "MIT" ]
8
2018-09-09T11:32:40.000Z
2019-10-08T07:47:31.000Z
spira/yevon/geometry/nets/net.py
qedalab/spira
32e4d2096e298b9fcc5952abd654312dc232a259
[ "MIT" ]
7
2019-01-17T18:50:17.000Z
2022-01-13T20:27:52.000Z
import numpy as np import networkx as nx from copy import deepcopy from spira.core.parameters.variables import GraphParameter, StringParameter from spira.core.parameters.descriptor import Parameter, RestrictedParameter from spira.yevon.geometry.coord import Coord from spira.yevon.vmodel.geometry import GeometryParamet...
35.388889
111
0.557614
1,581
12,740
4.329538
0.150538
0.030679
0.030241
0.030679
0.443974
0.39065
0.351497
0.332067
0.269832
0.207597
0
0.011103
0.328414
12,740
359
112
35.487465
0.78892
0.141758
0
0.267544
0
0
0.081076
0.004357
0
0
0
0.002786
0
1
0.118421
false
0.004386
0.087719
0.013158
0.337719
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
6106d1e77ba2c189d3335415eaec9708cfc5663a
337
py
Python
main.py
vsalvino/pyinstaller-demo
0abfd197bb5aaafc894d3f48848d2c919ad62792
[ "Unlicense" ]
null
null
null
main.py
vsalvino/pyinstaller-demo
0abfd197bb5aaafc894d3f48848d2c919ad62792
[ "Unlicense" ]
null
null
null
main.py
vsalvino/pyinstaller-demo
0abfd197bb5aaafc894d3f48848d2c919ad62792
[ "Unlicense" ]
null
null
null
""" Runs list_files on the current directory (".") """ from util import list_files def main() -> None: path = "." files = list_files(path) for f in files: print( "d" if f.isdir else "f", f" {f.human_readable_bytes:<12}", f.path ) if __name__ == "__mai...
16.047619
46
0.51632
43
337
3.744186
0.627907
0.167702
0
0
0
0
0
0
0
0
0
0.009009
0.341246
337
20
47
16.85
0.716216
0.136499
0
0
0
0
0.141343
0.09894
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.166667
0.083333
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
6107e1c219772ea1245d3f4b2f2a7463443f4c29
11,846
py
Python
bin/NormalizeReadCounts.py
DSchreyer/crisprquant
ffebb979064fed2d4f65ce6dc1c703b829ff23e7
[ "MIT" ]
1
2021-03-19T09:50:48.000Z
2021-03-19T09:50:48.000Z
bin/NormalizeReadCounts.py
DSchreyer/crisprquant
ffebb979064fed2d4f65ce6dc1c703b829ff23e7
[ "MIT" ]
2
2021-03-19T09:43:20.000Z
2021-06-23T07:22:43.000Z
bin/NormalizeReadCounts.py
DSchreyer/crisprquant
ffebb979064fed2d4f65ce6dc1c703b829ff23e7
[ "MIT" ]
3
2021-03-18T15:03:18.000Z
2021-06-26T19:09:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Created on Mon Feb 13 09:23:51 2017 @author: philipp """ # Analyze count distribution # ======================================================================= # Imports from __future__ import division # floating point division by default import sys import yaml import ...
46.637795
123
0.516968
1,125
11,846
5.356444
0.168889
0.023233
0.027879
0.025556
0.652838
0.625788
0.615831
0.609359
0.606372
0.579489
0
0.016597
0.29301
11,846
253
124
46.822134
0.702925
0.140132
0
0.553299
0
0
0.121547
0.009471
0
0
0
0
0
1
0.005076
false
0
0.045685
0
0.050761
0.091371
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
610dcc6aa683bc18e852da17456d9fb2df99e847
8,761
py
Python
main.py
francescofraternali/CityLearn
0338dcd81a856638a163bbc88401fa93543b1e05
[ "MIT" ]
1
2020-07-21T22:30:54.000Z
2020-07-21T22:30:54.000Z
main.py
francescofraternali/CityLearn
0338dcd81a856638a163bbc88401fa93543b1e05
[ "MIT" ]
null
null
null
main.py
francescofraternali/CityLearn
0338dcd81a856638a163bbc88401fa93543b1e05
[ "MIT" ]
null
null
null
from citylearn import CityLearn, building_loader, auto_size from energy_models import HeatPump, EnergyStorage, Building import matplotlib.pyplot as plt import torch import torch.optim as optim import torch.nn as nn import torch.nn.functional as F import collections import gym from gym.utils import seeding from gym im...
38.091304
201
0.629266
1,240
8,761
4.194355
0.220968
0.021534
0.013843
0.019612
0.271679
0.185157
0.13632
0.104211
0.062296
0.042684
0
0.028924
0.242324
8,761
229
202
38.257642
0.754595
0.12179
0
0.101266
0
0
0.00862
0.006138
0
0
0
0
0
1
0.037975
false
0
0.126582
0.006329
0.202532
0.018987
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
610ddbb5e092cf2175ef5db86499670928275f5e
2,041
py
Python
main.py
ErikBavenstrand/Neural-Network-Implementation
01652abd972139367c45ce991d228f2a1c125c07
[ "MIT" ]
null
null
null
main.py
ErikBavenstrand/Neural-Network-Implementation
01652abd972139367c45ce991d228f2a1c125c07
[ "MIT" ]
5
2019-11-20T13:29:21.000Z
2022-03-12T00:05:57.000Z
main.py
ErikBavenstrand/Neural-Network-Implementation
01652abd972139367c45ce991d228f2a1c125c07
[ "MIT" ]
null
null
null
import pickle import sys from mnist import MNIST from NeuralNetwork import * import numpy as np from PIL import Image def vectorizeResult(x): e = np.zeros((10, 1)) e[x] = 1.0 return e def getImageArray(fileName): ls = [] for p in np.invert(Image.open(fileName).convert('L')).ravel(): ls.ap...
31.4
100
0.610975
241
2,041
5.13278
0.414938
0.022635
0.014551
0.025869
0.090542
0.038804
0.038804
0.038804
0.038804
0
0
0.022442
0.257717
2,041
64
101
31.890625
0.794059
0
0
0.038462
0
0
0.068594
0
0
0
0
0
0
1
0.057692
false
0
0.115385
0
0.211538
0.076923
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
610f4efe5e37318e7fc086def5a33639b6de24e4
1,286
py
Python
JM_exerc/dao/Back_dao.py
matheusschuetz/TrabalhoPython
953957898de633f8f2776681a45a1a15b68e80b9
[ "MIT" ]
1
2020-01-21T11:43:12.000Z
2020-01-21T11:43:12.000Z
JM_exerc/dao/Back_dao.py
matheusschuetz/TrabalhoPython
953957898de633f8f2776681a45a1a15b68e80b9
[ "MIT" ]
null
null
null
JM_exerc/dao/Back_dao.py
matheusschuetz/TrabalhoPython
953957898de633f8f2776681a45a1a15b68e80b9
[ "MIT" ]
null
null
null
import MySQLdb import sys sys.path.append('C:/Users/900152/Documents/Dados/TrabalhoPython/JM_exerc') from model.Back_model import BackEnd class BackDb: def select_all(self): comand = 'SELECT * FROM topskills01.02_JM_BackEnd;' selectcomand = self.cursor.execute(comand) return selectcomand ...
31.365854
155
0.608087
146
1,286
5.253425
0.335616
0.084746
0.097784
0.143416
0.349413
0.140808
0.091265
0.091265
0
0
0
0.028261
0.284603
1,286
40
156
32.15
0.805435
0
0
0
0
0.029412
0.437792
0.140747
0
0
0
0
0
1
0.147059
false
0
0.088235
0
0.382353
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
611288649e75ce5d1bb3366ed4efae6440380a9d
1,079
py
Python
code/dataSource.py
youkaisteve/Population
bfda0b4b8dc510726911f5e5dd7ef6c7863634b1
[ "MIT" ]
null
null
null
code/dataSource.py
youkaisteve/Population
bfda0b4b8dc510726911f5e5dd7ef6c7863634b1
[ "MIT" ]
null
null
null
code/dataSource.py
youkaisteve/Population
bfda0b4b8dc510726911f5e5dd7ef6c7863634b1
[ "MIT" ]
null
null
null
import re import xlrd DATA_BASE_PATH = '../data/population-migration-all/' def get_files(file_path): """get files. Keyword arguments: file_path -- file path """ result = [] work_book = xlrd.open_workbook(file_path) first_table = work_book.sheet_by_index(0) cols = first_table.ncols ...
22.957447
61
0.653383
164
1,079
4.030488
0.341463
0.108926
0.1059
0.068079
0.175492
0.175492
0.175492
0
0
0
0
0.015476
0.221501
1,079
46
62
23.456522
0.771429
0.048193
0
0.074074
0
0
0.05754
0.032738
0
0
0
0
0
1
0.111111
false
0
0.074074
0.037037
0.296296
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
61155cc8647d3a04287a744c3fe45ab20382fb37
3,635
py
Python
rest-server/bin/engines.py
soft-super/harness
540f7648fd0702c1b71f0f1c41b71a870c9420fe
[ "Apache-2.0" ]
1
2020-12-17T11:22:42.000Z
2020-12-17T11:22:42.000Z
rest-server/bin/engines.py
soft-super/harness
540f7648fd0702c1b71f0f1c41b71a870c9420fe
[ "Apache-2.0" ]
null
null
null
rest-server/bin/engines.py
soft-super/harness
540f7648fd0702c1b71f0f1c41b71a870c9420fe
[ "Apache-2.0" ]
1
2019-03-26T20:43:23.000Z
2019-03-26T20:43:23.000Z
#!/usr/bin/env python3 from harness import EnginesClient, HttpError from common import * engine_client = EnginesClient( url=url, user_id=client_user_id, user_secret=client_user_secret ) if args.action == 'create': with open(args.config) as data_file: config = json.load(data_file) tr...
37.864583
121
0.646217
480
3,635
4.697917
0.164583
0.141907
0.059867
0.059867
0.655432
0.597783
0.550776
0.511308
0.471397
0.453215
0
0.000356
0.22696
3,635
95
122
38.263158
0.802135
0.282806
0
0.285714
0
0
0.16699
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
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
61185f9554e6fdad4742b175bf8931b9e3aa29a8
1,817
py
Python
protlearn/dimreduction/pca.py
tadorfer/ProtClass
da1a01ea9abd3c367b3389dfed683c6a9dfa6afd
[ "MIT" ]
24
2020-09-17T10:35:44.000Z
2022-03-09T19:19:01.000Z
protlearn/dimreduction/pca.py
tadorfer/ProtClass
da1a01ea9abd3c367b3389dfed683c6a9dfa6afd
[ "MIT" ]
14
2020-08-09T18:23:01.000Z
2020-11-19T05:48:14.000Z
protlearn/dimreduction/pca.py
tadorfer/ProtClass
da1a01ea9abd3c367b3389dfed683c6a9dfa6afd
[ "MIT" ]
3
2021-03-07T23:41:17.000Z
2022-02-25T18:48:37.000Z
# Author: Thomas Dorfer <thomas.a.dorfer@gmail.com> import warnings import numpy as np from sklearn.decomposition import PCA def pca(X, *, thres=.9, whiten=False): """Principal component analysis. PCA is defined as an orthogonal linear transformation that transforms the data to a new coordinate system s...
28.390625
80
0.636214
239
1,817
4.786611
0.476987
0.031469
0.038462
0.026224
0.167832
0.078671
0.054196
0
0
0
0
0.017306
0.268575
1,817
64
81
28.390625
0.843491
0.58448
0
0
0
0
0.184543
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
611baf35e81592e930584d66af2ff718199af1d7
600
py
Python
base/lib/pythonbin/urwid/tests/test_doctests.py
threefoldtech/sandbox_osx
e2a5ea812c3789dea40113719dbad6d6ee7cd720
[ "Apache-2.0" ]
4
2021-10-14T21:22:25.000Z
2022-03-12T19:58:48.000Z
base/lib/pythonbin/urwid/tests/test_doctests.py
threefoldtech/sandbox_osx
e2a5ea812c3789dea40113719dbad6d6ee7cd720
[ "Apache-2.0" ]
3
2020-06-05T18:53:36.000Z
2021-06-10T20:47:05.000Z
base/lib/pythonbin/urwid/tests/test_doctests.py
threefoldtech/sandbox_osx
e2a5ea812c3789dea40113719dbad6d6ee7cd720
[ "Apache-2.0" ]
1
2022-03-15T22:52:53.000Z
2022-03-15T22:52:53.000Z
import unittest import doctest import urwid def load_tests(loader, tests, ignore): module_doctests = [ urwid.widget, urwid.wimp, urwid.decoration, urwid.display_common, urwid.main_loop, urwid.monitored_list, urwid.raw_display, 'urwid.split_repr', # o...
25
76
0.64
65
600
5.753846
0.630769
0.074866
0
0
0
0
0
0
0
0
0
0
0.285
600
23
77
26.086957
0.871795
0.053333
0
0
0
0
0.028269
0
0
0
0
0
0
1
0.047619
false
0
0.142857
0
0.238095
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
611e0ce498d0d6daa68a1e298efb23c3efe69b01
425
py
Python
authentication/urls.py
NoMariusz/Praeteritum
c32fa017e23de7255224fcf72cd04abdfc3ebff4
[ "MIT" ]
3
2021-03-07T21:43:55.000Z
2021-09-21T08:24:26.000Z
authentication/urls.py
NoMariusz/Praeteritum
c32fa017e23de7255224fcf72cd04abdfc3ebff4
[ "MIT" ]
null
null
null
authentication/urls.py
NoMariusz/Praeteritum
c32fa017e23de7255224fcf72cd04abdfc3ebff4
[ "MIT" ]
null
null
null
from django.urls import path from django.views.decorators.csrf import csrf_exempt from .views import UserView, RegisterUser, LoginUser, LogoutUser, \ CheckAuthenticated urlpatterns = [ path('', UserView.as_view()), path('register', csrf_exempt(RegisterUser.as_view())), path('login', LoginUser.as_view()...
32.692308
67
0.729412
48
425
6.3125
0.4375
0.09901
0.132013
0
0
0
0
0
0
0
0
0
0.131765
425
12
68
35.416667
0.821138
0
0
0
0
0
0.08
0
0
0
0
0
0
1
0
false
0
0.272727
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
6122f59b015b8f42249ec2c010138d836ac0f35e
1,541
py
Python
research/develop/2016-12-08-irio-invalid-cnpj-or-cpf.py
SuccessionEcologicalServices/serenata-de-amor
718a74e031ea0a4b020bf42801e1d23353e6bc34
[ "MIT" ]
59
2018-10-03T18:46:31.000Z
2022-01-05T22:39:17.000Z
research/develop/2016-12-08-irio-invalid-cnpj-or-cpf.py
SuccessionEcologicalServices/serenata-de-amor
718a74e031ea0a4b020bf42801e1d23353e6bc34
[ "MIT" ]
16
2018-10-03T21:36:50.000Z
2021-04-12T22:10:16.000Z
research/develop/2016-12-08-irio-invalid-cnpj-or-cpf.py
SuccessionEcologicalServices/serenata-de-amor
718a74e031ea0a4b020bf42801e1d23353e6bc34
[ "MIT" ]
20
2018-10-03T19:14:57.000Z
2021-04-12T20:50:44.000Z
# coding: utf-8 # # Invalid CNPJ or CPF # # `cnpj_cpf` is the column identifying the company or individual who received the payment made by the congressperson. Having this value empty should mean that it's an expense made outside Brazil, with a company (or person) without a Brazilian ID. # In[1]: import numpy as n...
28.018182
265
0.659961
216
1,541
4.550926
0.532407
0.078332
0.036623
0.02645
0.032553
0
0
0
0
0
0
0.019591
0.238157
1,541
54
266
28.537037
0.817717
0.401038
0
0
0
0
0.238148
0.039691
0
0
0
0
0
1
0.045455
false
0
0.136364
0.045455
0.227273
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
6123c525e5a5da797d3ca93718ec18aa3078da5c
5,170
py
Python
examples/convolutional_vae.py
twiecki/edward
1ac2eeb7f5163915848afd3b027c714255459de3
[ "Apache-2.0" ]
4
2016-05-09T18:48:21.000Z
2018-03-01T22:50:42.000Z
examples/convolutional_vae.py
twiecki/edward
1ac2eeb7f5163915848afd3b027c714255459de3
[ "Apache-2.0" ]
null
null
null
examples/convolutional_vae.py
twiecki/edward
1ac2eeb7f5163915848afd3b027c714255459de3
[ "Apache-2.0" ]
3
2016-07-05T14:19:08.000Z
2019-09-04T13:48:59.000Z
#!/usr/bin/env python """ Convolutional variational auto-encoder for MNIST data. The model is written in TensorFlow, with neural networks using Pretty Tensor. Probability model Prior: Normal Likelihood: Bernoulli parameterized by convolutional NN Variational model Likelihood: Mean-field Normal parameterize...
33.571429
81
0.624758
698
5,170
4.467049
0.312321
0.024695
0.019243
0.016677
0.115459
0.09814
0.084028
0.084028
0.084028
0.084028
0
0.026199
0.261702
5,170
153
82
33.79085
0.790673
0.160155
0
0.103093
0
0
0.072309
0
0
0
0
0.006536
0
1
0.082474
false
0
0.103093
0
0.268041
0.020619
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
61244fae3cb1d570e8f892707e02d30830b9dab4
4,998
py
Python
cadnano/views/outlinerview/cnoutlineritem.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
1
2022-03-27T14:37:32.000Z
2022-03-27T14:37:32.000Z
cadnano/views/outlinerview/cnoutlineritem.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
null
null
null
cadnano/views/outlinerview/cnoutlineritem.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
1
2021-01-22T02:29:38.000Z
2021-01-22T02:29:38.000Z
from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QTreeWidgetItem from cadnano.gui.palette import getBrushObj from . import outlinerstyles as styles NAME_COL = 0 LOCKED_COL = 1 VISIBLE_COL = 2 COLOR_COL = 3 LEAF_FLAGS = (Qt.ItemIsSelectable | Qt.ItemIsEditable | Qt.ItemIsDragEnabled | ...
35.7
107
0.622449
593
4,998
5.037099
0.227656
0.04687
0.052226
0.024104
0.325075
0.295949
0.214931
0.152662
0.125879
0.098427
0
0.003893
0.280512
4,998
139
108
35.956835
0.826752
0.146259
0
0.197802
0
0
0.034064
0
0
0
0
0
0
1
0.153846
false
0.010989
0.043956
0.054945
0.318681
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
612569303782cf9c7b7179cfa384ea54e28fb8c1
13,579
py
Python
data/dedupe.py
mcguinlu/COVID_suicide_living
81ac106065b1113706f2df26051e0d73efe382aa
[ "MIT" ]
1
2020-11-29T18:42:53.000Z
2020-11-29T18:42:53.000Z
data/dedupe.py
L-ENA/SR_automation_LSR
c9b5d3a121e4e141485b4ad0f2e3975217861a3b
[ "MIT" ]
1
2020-06-24T18:48:56.000Z
2020-06-24T18:48:56.000Z
data/dedupe.py
L-ENA/SR_automation_LSR
c9b5d3a121e4e141485b4ad0f2e3975217861a3b
[ "MIT" ]
3
2020-03-30T13:55:38.000Z
2020-10-27T20:38:49.000Z
import pandas as pd import re from fuzzywuzzy import fuzz from tqdm import tqdm from datetime import date import os #os.chdir("C:\\Users\\lm16564\\OneDrive - University of Bristol\\Documents\\rrr\\COVID_suicide_living") def fuzzymatch(a, b, min_match): if fuzz.ratio(a, b) > min_match: # matching ore than specifi...
45.414716
354
0.590839
1,731
13,579
4.508377
0.198729
0.012814
0.014352
0.007688
0.319708
0.280369
0.241671
0.216684
0.197207
0.139928
0
0.010002
0.285809
13,579
298
355
45.567114
0.7947
0.287061
0
0.301676
0
0.01676
0.185034
0.033918
0
0
0
0
0
1
0.03352
false
0
0.03352
0
0.117318
0.072626
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
6128d52040ae15c763ac67cfd1eb887cfac11cae
10,920
py
Python
transforms/detection/functional.py
qixuxiang/Pytorch_Lightweight_Network
25fd3148b7c635cb6cbe6dc184dbed04d6f96282
[ "MIT" ]
82
2019-06-17T06:00:09.000Z
2021-11-24T09:27:23.000Z
transforms/detection/functional.py
qixuxiang/Pytorch_Lightweight_Network
25fd3148b7c635cb6cbe6dc184dbed04d6f96282
[ "MIT" ]
4
2019-06-20T11:29:19.000Z
2021-07-28T03:31:20.000Z
transforms/detection/functional.py
qixuxiang/Pytorch_Lightweight_Network
25fd3148b7c635cb6cbe6dc184dbed04d6f96282
[ "MIT" ]
17
2019-06-20T11:22:34.000Z
2021-03-16T12:37:41.000Z
from typing import List, Dict, Sequence, Union, Tuple from numbers import Number import random import numpy as np from toolz import curry from toolz.curried import get from common import _tuple __all__ = [ "resize", "resized_crop", "center_crop", "drop_boundary_bboxes", "to_absolute_coords", "to_percent_coor...
26.962963
104
0.542582
1,508
10,920
3.854111
0.122679
0.010668
0.01755
0.011012
0.512732
0.46903
0.443909
0.43393
0.42808
0.421714
0
0.014192
0.316026
10,920
404
105
27.029703
0.763958
0.396795
0
0.38835
0
0
0.03566
0
0
0
0
0
0
1
0.067961
false
0
0.033981
0
0.179612
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
612de04c96f064f94c0f251d285bdc28a27f4be1
1,310
py
Python
src/robust_laplacian/core.py
nmwsharp/robust-laplacians-py
b1c0f8bcf94571d1c54ba1a79e6bc49c08c65562
[ "MIT" ]
123
2020-08-05T18:16:11.000Z
2022-03-28T01:59:55.000Z
src/robust_laplacian/core.py
nmwsharp/robust-laplacians-py
b1c0f8bcf94571d1c54ba1a79e6bc49c08c65562
[ "MIT" ]
6
2020-08-28T02:42:57.000Z
2022-02-01T21:32:34.000Z
src/robust_laplacian/core.py
nmwsharp/robust-laplacians-py
b1c0f8bcf94571d1c54ba1a79e6bc49c08c65562
[ "MIT" ]
12
2020-08-14T12:14:56.000Z
2022-02-25T11:03:39.000Z
import numpy as np import robust_laplacian_bindings as rlb def mesh_laplacian(verts, faces, mollify_factor=1e-5): ## Validate input if type(verts) is not np.ndarray: raise ValueError("`verts` should be a numpy array") if (len(verts.shape) != 2) or (verts.shape[1] != 3): raise ValueError("...
35.405405
91
0.658779
192
1,310
4.4375
0.291667
0.105634
0.024648
0.049296
0.487089
0.409624
0.253521
0.169014
0.105634
0.105634
0
0.017595
0.219084
1,310
36
92
36.388889
0.815249
0.11374
0
0.1
0
0
0.192509
0
0
0
0
0
0
1
0.1
false
0
0.1
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
b616788026b220ba10bb555db6739d8f4ae8230d
5,161
py
Python
sparkdq/models/dbscan/DBSCAN.py
PasaLab/SparkDQ
16d50210747ef7de03cf36d689ce26ff7445f63a
[ "Apache-2.0" ]
1
2021-02-08T07:49:54.000Z
2021-02-08T07:49:54.000Z
sparkdq/models/dbscan/DBSCAN.py
PasaLab/SparkDQ
16d50210747ef7de03cf36d689ce26ff7445f63a
[ "Apache-2.0" ]
null
null
null
sparkdq/models/dbscan/DBSCAN.py
PasaLab/SparkDQ
16d50210747ef7de03cf36d689ce26ff7445f63a
[ "Apache-2.0" ]
null
null
null
from operator import add import numpy as np from pyspark.sql.types import StructField, StructType, IntegerType from scipy.spatial.distance import euclidean import sklearn.cluster as skc from sparkdq.conf.Context import Context from sparkdq.models.CommonUtils import DEFAULT_CLUSTER_COL, DEFAULT_INDEX_COL from sparkdq....
35.840278
120
0.606665
664
5,161
4.51506
0.268072
0.039026
0.010007
0.013342
0.167445
0.136758
0.124083
0.124083
0.124083
0.124083
0
0.0367
0.255571
5,161
143
121
36.090909
0.743623
0.200543
0
0.144578
0
0
0.021156
0
0
0
0
0
0
1
0.060241
false
0.012048
0.108434
0
0.216867
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
b618d3e757516d28daaaf4e251eeb45623d8f192
1,398
py
Python
hycu-demo/hycu-centos-8.py
halsayed/calm
46c93ac2b02227663f0184d149f62d142b2638cc
[ "MIT" ]
null
null
null
hycu-demo/hycu-centos-8.py
halsayed/calm
46c93ac2b02227663f0184d149f62d142b2638cc
[ "MIT" ]
null
null
null
hycu-demo/hycu-centos-8.py
halsayed/calm
46c93ac2b02227663f0184d149f62d142b2638cc
[ "MIT" ]
1
2021-11-16T10:28:42.000Z
2021-11-16T10:28:42.000Z
from calm.dsl.builtins import basic_cred, CalmTask, action from calm.dsl.builtins import SimpleDeployment, SimpleBlueprint from calm.dsl.builtins import read_provider_spec from calm.dsl.builtins import CalmVariable from calm.dsl.store import Secret CENTOS = basic_cred('nutanix', 'nutanix/4u', name='CENTOS', default=Tr...
36.789474
90
0.73176
185
1,398
5.313514
0.443243
0.040692
0.055951
0.077314
0.225839
0.07528
0.07528
0
0
0
0
0.017544
0.143777
1,398
38
91
36.789474
0.803676
0.097997
0
0.076923
0
0
0.139793
0.019857
0
0
0
0
0
1
0.115385
false
0
0.192308
0
0.653846
0.115385
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
b619e86dde26d288681bc5bbb637fb6786e9878f
2,695
py
Python
lc/0101_SymmetricTree.py
xiangshiyin/coding-challenge
a75a644b96dec1b6c7146b952ca4333263f0a461
[ "Apache-2.0" ]
null
null
null
lc/0101_SymmetricTree.py
xiangshiyin/coding-challenge
a75a644b96dec1b6c7146b952ca4333263f0a461
[ "Apache-2.0" ]
null
null
null
lc/0101_SymmetricTree.py
xiangshiyin/coding-challenge
a75a644b96dec1b6c7146b952ca4333263f0a461
[ "Apache-2.0" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right # class Solution: # def isSymmetric(self, root: TreeNode) -> bool: # ''' # long, iterative solution # ...
29.615385
95
0.440074
294
2,695
4.020408
0.187075
0.055838
0.05753
0.064298
0.357868
0.334179
0.273266
0.273266
0.111675
0
0
0.057355
0.450093
2,695
91
96
29.615385
0.740216
0.696475
0
0.2
0
0
0
0
0
0
0
0
0
1
0.05
false
0
0.05
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
b61b1f4f777fb497c659daccaa184cb2e2a702f6
920
py
Python
checkboxes2.py
PiyushKumar186/programming
4dc17488a2d197ccdb6acd6f80732da81147bb1b
[ "MIT" ]
null
null
null
checkboxes2.py
PiyushKumar186/programming
4dc17488a2d197ccdb6acd6f80732da81147bb1b
[ "MIT" ]
null
null
null
checkboxes2.py
PiyushKumar186/programming
4dc17488a2d197ccdb6acd6f80732da81147bb1b
[ "MIT" ]
null
null
null
#!/usr/bin/python2 from Tkinter import * class Checkbar(Frame): def __init__(self,parent=None,picks=[],side=LEFT,anchor=W): Frame.__init__(self,parent) self.vars = [] for pick in picks: var = IntVar() chk = Checkbutton(self,text=pick,variable=var) chk.pac...
34.074074
64
0.615217
124
920
4.435484
0.548387
0.072727
0.050909
0
0
0
0
0
0
0
0
0.00274
0.206522
920
27
65
34.074074
0.750685
0.018478
0
0
0
0
0.050941
0
0
0
0
0
0
1
0.125
false
0
0.041667
0.041667
0.25
0.041667
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
b61c54672fad12557646d3ef16c482952b01520a
2,572
py
Python
code/Experiments/Lasagne_examples/modelzoo/cifar10_nin.py
matthijsvk/convNets
7e65db7857a4e6abfbcab264953eb7741319de6c
[ "Apache-2.0" ]
1,034
2015-05-21T12:47:50.000Z
2022-03-17T19:27:29.000Z
modelzoo/cifar10_nin.py
nestyme/Recipes
553f5cf671f164da71152e33253cd7ed737dd2ac
[ "MIT" ]
111
2015-07-04T11:38:59.000Z
2022-03-04T01:12:11.000Z
modelzoo/cifar10_nin.py
nestyme/Recipes
553f5cf671f164da71152e33253cd7ed737dd2ac
[ "MIT" ]
528
2015-07-03T22:15:02.000Z
2022-03-27T10:01:21.000Z
# Network in Network CIFAR10 Model # Original source: https://gist.github.com/mavenlin/e56253735ef32c3c296d # License: unknown # Download pretrained weights from: # https://s3.amazonaws.com/lasagne/recipes/pretrained/cifar10/model.pkl from lasagne.layers import InputLayer, DropoutLayer, FlattenLayer from lasagne.laye...
41.483871
73
0.515552
264
2,572
4.878788
0.310606
0.074534
0.111801
0.132764
0.361801
0.328416
0.300466
0.23059
0.173137
0.173137
0
0.061162
0.364308
2,572
61
74
42.163934
0.726606
0.087092
0
0.372549
0
0
0.0807
0
0
0
0
0
0
1
0.019608
false
0
0.058824
0
0.098039
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
b61d0a638f24888cb68e4936a01c7b39a707cb01
2,969
py
Python
src/backend/models/placeModel.py
oasis-art-project/oasis-server
63e8093ebafa76c90393eec7828221e255100252
[ "Artistic-2.0" ]
3
2022-03-07T23:40:29.000Z
2022-03-07T23:40:35.000Z
src/backend/models/placeModel.py
oasis-art-project/oasis-server
63e8093ebafa76c90393eec7828221e255100252
[ "Artistic-2.0" ]
null
null
null
src/backend/models/placeModel.py
oasis-art-project/oasis-server
63e8093ebafa76c90393eec7828221e255100252
[ "Artistic-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Part of the OASIS ART PROJECT - https://github.com/orgs/oasis-art-project Copyright (c) 2019-22 TEAM OASIS License Artistic-2.0 """ from marshmallow import fields, validate, post_dump from sqlalchemy.types import ARRAY from src.backend.extensions import db from src.backend.models.model im...
43.661765
175
0.689795
393
2,969
5.127226
0.363868
0.043672
0.054591
0.063524
0.26799
0.26799
0.204467
0.17469
0.095285
0.048635
0
0.020698
0.170091
2,969
67
176
44.313433
0.797078
0.117885
0
0
0
0
0.064825
0
0
0
0
0
0
1
0.042553
false
0
0.12766
0
0.744681
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
b61ebeb23f8d54ceaf64080f94bfcc879df1a83f
8,509
py
Python
torcharc/module/perceiver_io/preprocessor.py
kengz/torcharc
e17043391c718a161956b4da98f9a7810efe62a2
[ "MIT" ]
1
2020-06-12T09:55:25.000Z
2020-06-12T09:55:25.000Z
torcharc/module/perceiver_io/preprocessor.py
kengz/torcharc
e17043391c718a161956b4da98f9a7810efe62a2
[ "MIT" ]
5
2021-06-26T18:25:39.000Z
2021-12-31T22:43:22.000Z
torcharc/module/perceiver_io/preprocessor.py
kengz/torcharc
e17043391c718a161956b4da98f9a7810efe62a2
[ "MIT" ]
null
null
null
from einops import repeat, rearrange from torch import nn from torcharc import net_util import math import pydash as ps import sys import torch def build_learned_pos_encoding(max_seq_len: int, embed_dim: int): '''Build learned positional encoding with Deepmind's init''' # learned position encoding pos_enc...
54.197452
269
0.678106
1,276
8,509
4.323668
0.198276
0.059815
0.026101
0.008157
0.12253
0.085735
0.039514
0.027914
0.027914
0.0087
0
0.009245
0.211893
8,509
156
270
54.544872
0.813451
0.401222
0
0.091954
0
0.011494
0.052859
0.004319
0
0
0
0
0.022989
1
0.137931
false
0
0.08046
0.011494
0.356322
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
b61f00da589e3e40dcc6ece3e1151abf782ac6ad
3,027
py
Python
utils/datafields.py
edgeless634/bilibili_spider
589bbd029d3db3e9382d2e825250fe21b12edc39
[ "MIT" ]
null
null
null
utils/datafields.py
edgeless634/bilibili_spider
589bbd029d3db3e9382d2e825250fe21b12edc39
[ "MIT" ]
null
null
null
utils/datafields.py
edgeless634/bilibili_spider
589bbd029d3db3e9382d2e825250fe21b12edc39
[ "MIT" ]
null
null
null
import os import random import logging import threading base_path = os.path.dirname(os.path.dirname(__file__)) base_path = os.path.join(base_path, "datafield") if not os.path.exists(base_path): os.mkdir(base_path) def get_path(fieldname): return os.path.join(base_path, fieldname) class DataField: ''' ...
29.105769
126
0.561612
364
3,027
4.475275
0.255495
0.077348
0.077348
0.098834
0.309392
0.2345
0.162063
0.162063
0.058932
0.058932
0
0.001946
0.32078
3,027
104
127
29.105769
0.79037
0.045259
0
0.104478
0
0
0.026691
0.008044
0
0
0
0
0
1
0.104478
false
0
0.059701
0.014925
0.253731
0.059701
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
b61f12f0a57f2ac17e29150643fd1a3a0801bb75
1,468
py
Python
0.mccntt/domain-wide/gmail_quickstart.py
mccntt/googleworkspace-python-samples
c1a24d4e06f2b14af4b494db55ebad04fbf6cf89
[ "Apache-2.0" ]
null
null
null
0.mccntt/domain-wide/gmail_quickstart.py
mccntt/googleworkspace-python-samples
c1a24d4e06f2b14af4b494db55ebad04fbf6cf89
[ "Apache-2.0" ]
null
null
null
0.mccntt/domain-wide/gmail_quickstart.py
mccntt/googleworkspace-python-samples
c1a24d4e06f2b14af4b494db55ebad04fbf6cf89
[ "Apache-2.0" ]
null
null
null
# https://docs.microsoft.com/en-us/windows/python/beginners # https://developers.google.com/identity/protocols/oauth2/service-account#python from __future__ import print_function from pathlib import Path from googleapiclient.discovery import build from google.oauth2 import service_account SCOPES = ['https://www.go...
28.784314
130
0.706403
180
1,468
5.605556
0.505556
0.111001
0.053518
0.035679
0.178394
0.075322
0.075322
0.075322
0.075322
0
0
0.009016
0.168937
1,468
50
131
29.36
0.818033
0.372616
0
0.111111
0
0
0.151885
0.079823
0
0
0
0
0
1
0.055556
false
0
0.222222
0
0.277778
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
b61fa6e0d30b3d5f87bf0ee960be776cf48333dc
5,575
py
Python
code/dpp/distributions/logistic_mixture.py
bsouhaib/qf-tpp
a5adf3f7203b920528c1c397329c4afd9039c3b4
[ "MIT" ]
null
null
null
code/dpp/distributions/logistic_mixture.py
bsouhaib/qf-tpp
a5adf3f7203b920528c1c397329c4afd9039c3b4
[ "MIT" ]
null
null
null
code/dpp/distributions/logistic_mixture.py
bsouhaib/qf-tpp
a5adf3f7203b920528c1c397329c4afd9039c3b4
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.distributions as td from torch.distributions import constraints from dpp.nn import BaseModule, Hypernet from dpp.utils import clamp_preserve_gradients def inverse_sigmoid(x): # Clamp tiny values (<1e-38 for float3...
38.986014
103
0.636233
741
5,575
4.561404
0.240216
0.069231
0.049704
0.050592
0.277515
0.243787
0.230769
0.20355
0.17574
0.17574
0
0.008049
0.264574
5,575
142
104
39.260563
0.816341
0.210583
0
0.125
0
0
0.009161
0
0
0
0
0
0
1
0.125
false
0
0.090909
0
0.340909
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
b61fd88f4b3a01a3aa6ca746cfeb284296cf724d
15,173
py
Python
register/urls.py
LucasHiago/pede_ja
62609a32d045b167a96be79cc93113d32dcfe917
[ "MIT" ]
null
null
null
register/urls.py
LucasHiago/pede_ja
62609a32d045b167a96be79cc93113d32dcfe917
[ "MIT" ]
null
null
null
register/urls.py
LucasHiago/pede_ja
62609a32d045b167a96be79cc93113d32dcfe917
[ "MIT" ]
null
null
null
from django.urls import path from django.conf import settings from django.conf.urls.static import static from .views import * urlpatterns = [ # Urls for authentication on noruh web path('change_password/', RecoverPasswordByApi.as_view(), name='change_password'), path('reset_passowrd/complete/', Recove...
55.375912
126
0.701114
1,690
15,173
6.02426
0.149112
0.067184
0.111973
0.047441
0.254199
0.087418
0.049209
0.020332
0.009626
0
0
0
0.148685
15,173
273
127
55.578755
0.788186
0.037699
0
0
0
0
0.464815
0.394719
0
0
0
0
0
1
0
false
0.008811
0.017621
0
0.017621
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
b61fdd250445e3eab4d4df963d8cfba91ce0bd48
6,220
py
Python
model/utils/config_helper.py
aashiqmuhamed/transformer-gan
1ccc9f251c1b1d054c1acc8be36c1da7bf8cf11c
[ "Apache-2.0" ]
32
2021-06-11T02:03:03.000Z
2022-03-23T16:12:49.000Z
model/utils/config_helper.py
aashiqmuhamed/transformer-gan
1ccc9f251c1b1d054c1acc8be36c1da7bf8cf11c
[ "Apache-2.0" ]
3
2021-11-11T06:08:37.000Z
2022-02-20T14:09:30.000Z
model/utils/config_helper.py
aashiqmuhamed/transformer-gan
1ccc9f251c1b1d054c1acc8be36c1da7bf8cf11c
[ "Apache-2.0" ]
7
2021-06-11T01:19:56.000Z
2022-02-17T03:52:15.000Z
from yacs.config import CfgNode as CN def model(cfg): # For model cfg.MODEL = CN() cfg.MODEL.num_layers = 6 cfg.MODEL.num_heads = 10 cfg.MODEL.units = 500 cfg.MODEL.inner_size = 1000 cfg.MODEL.dropout = 0.1 cfg.MODEL.tie_embedding = True cfg.MODEL.tie_proj = False cfg.MODEL.atte...
37.926829
133
0.694855
906
6,220
4.625828
0.257174
0.190885
0.047721
0.00859
0.161059
0.093295
0.060129
0.043904
0.024338
0.024338
0
0.040677
0.201608
6,220
163
134
38.159509
0.803262
0.213826
0
0.044444
0
0
0.029703
0.010726
0
0
0
0.006135
0
1
0.044444
false
0
0.007407
0
0.096296
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
b62114fe26c6e23da2c727e699637285d222ecc8
832
py
Python
examples/yaml/main.py
pseeth/argbind
1b953e370065d9f3c91dee5c93cc6447b72e3744
[ "MIT" ]
19
2020-10-14T00:00:13.000Z
2022-02-20T23:21:18.000Z
examples/yaml/main.py
pseeth/argbind
1b953e370065d9f3c91dee5c93cc6447b72e3744
[ "MIT" ]
3
2021-03-30T15:56:55.000Z
2022-03-21T20:52:56.000Z
examples/yaml/main.py
pseeth/argbind
1b953e370065d9f3c91dee5c93cc6447b72e3744
[ "MIT" ]
1
2021-04-13T18:51:29.000Z
2021-04-13T18:51:29.000Z
import argbind import typing @argbind.bind() def func( arg1 : str = 'default', arg2 : str = 'default', arg3 : str = 'default', arg4 : str = 'default', arg5 : typing.List[str] = ['default'], ): """Dummy function for binding. Parameters ---------- arg1 : str, optional Argumen...
22.486486
42
0.550481
99
832
4.535354
0.373737
0.111359
0.169265
0
0
0
0
0
0
0
0
0.039792
0.305288
832
36
43
23.111111
0.737024
0.338942
0
0
0
0
0.282565
0
0
0
0
0
0
1
0.047619
false
0
0.095238
0
0.142857
0.047619
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
b6215c1441983e96ac508f482bf4dc70d993cca3
2,585
py
Python
handlers/article.py
armaaar/Multi-Users-Blog
8b28b2816337d8f023bc6c1741e91c86d3127874
[ "MIT" ]
null
null
null
handlers/article.py
armaaar/Multi-Users-Blog
8b28b2816337d8f023bc6c1741e91c86d3127874
[ "MIT" ]
null
null
null
handlers/article.py
armaaar/Multi-Users-Blog
8b28b2816337d8f023bc6c1741e91c86d3127874
[ "MIT" ]
null
null
null
from handlers import tables, helper, Handler import time class ArticleHandler(Handler): def __init__(self, *args, **kwargs): super(ArticleHandler, self).__init__(*args, **kwargs) self.body_class = 'article-page' def get(self, article_id): if not article_id.isdigit(): self....
41.693548
74
0.56441
276
2,585
5.09058
0.177536
0.102491
0.079715
0.074733
0.464769
0.323843
0.276868
0.276868
0.22847
0
0
0
0.324565
2,585
61
75
42.377049
0.804696
0
0
0.288462
0
0
0.081238
0.024371
0
0
0
0
0
1
0.057692
false
0
0.038462
0
0.115385
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
b621e93761f39072896a2d33479068491b0d86fd
428
py
Python
Alignment/MuonAlignmentAlgorithms/python/MuonAlignmentPreFilter_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Alignment/MuonAlignmentAlgorithms/python/MuonAlignmentPreFilter_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Alignment/MuonAlignmentAlgorithms/python/MuonAlignmentPreFilter_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms MuonAlignmentPreFilter = cms.EDFilter("MuonAlignmentPreFilter", tracksTag = cms.InputTag("ALCARECOMuAlCalIsolatedMu:GlobalMuon"), minTrackPt = cms.double(20.), minTrackP = cms.double(0.), minTrackerHits = cms.int32(10), minDTHits = cms.int32(6), minCSCHits = cms.int...
28.533333
67
0.728972
49
428
6.367347
0.612245
0.115385
0.064103
0.070513
0
0
0
0
0
0
0
0.045576
0.128505
428
14
68
30.571429
0.790885
0
0
0
0
0
0.135831
0.135831
0
0
0
0
0
1
0
false
0
0.083333
0
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
b6239675b28fbe08cb92d202a432a29c5c6dfd60
13,299
py
Python
widgets/KeyEvents.py
iubica/wx-portfolio
12101986db72bcaffd9b744d514d6f9f651ad5a1
[ "MIT" ]
3
2018-03-19T07:57:10.000Z
2021-07-05T08:55:14.000Z
widgets/KeyEvents.py
iubica/wx-portfolio
12101986db72bcaffd9b744d514d6f9f651ad5a1
[ "MIT" ]
6
2020-03-24T15:40:18.000Z
2021-12-13T19:46:09.000Z
widgets/KeyEvents.py
iubica/wx-portfolio
12101986db72bcaffd9b744d514d6f9f651ad5a1
[ "MIT" ]
4
2018-03-29T21:59:55.000Z
2019-12-16T14:56:38.000Z
#!/usr/bin/env python import wx import wx.lib.mixins.listctrl as listmix from six import unichr #---------------------------------------------------------------------- keyMap = { wx.WXK_BACK : "WXK_BACK", wx.WXK_TAB : "WXK_TAB", wx.WXK_RETURN : "WXK_RETURN", wx.WXK_ESCAPE : "WXK_ESCAPE", wx.WXK_S...
31
79
0.577788
1,672
13,299
4.356459
0.221292
0.08855
0.040774
0.023202
0.110242
0.086079
0.046266
0.035008
0.021691
0.021691
0
0.024121
0.264306
13,299
428
80
31.07243
0.72036
0.050756
0
0.075075
0
0
0.158775
0.005076
0
0
0
0
0
1
0.072072
false
0
0.015015
0
0.102102
0.003003
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
b624ed925fddaa73c150d0b98d5fda740868dd65
4,071
py
Python
app/movies/tests/test_view.py
NicolefAvella/ApiMovie
4860b312f62dee73de6015c3029e75a6045f79a1
[ "MIT" ]
null
null
null
app/movies/tests/test_view.py
NicolefAvella/ApiMovie
4860b312f62dee73de6015c3029e75a6045f79a1
[ "MIT" ]
null
null
null
app/movies/tests/test_view.py
NicolefAvella/ApiMovie
4860b312f62dee73de6015c3029e75a6045f79a1
[ "MIT" ]
null
null
null
from django.urls import reverse from rest_framework.test import APITestCase, APIClient from rest_framework.views import status from movies.models import Movies from movies.serializers import MoviesSerializer from user.models import User import json class BaseViewTest(APITestCase): client = APIClient() def c...
33.368852
123
0.590273
455
4,071
5.151648
0.287912
0.029863
0.058874
0.03413
0.325939
0.264505
0.226536
0.156997
0.156997
0.075939
0
0.011383
0.28789
4,071
121
124
33.644628
0.797171
0.07099
0
0.2
0
0
0.102695
0
0
0
0
0
0.077778
1
0.077778
false
0.022222
0.077778
0.022222
0.266667
0.011111
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
b625420fbcf257af05779c352e7795a2abfb2733
5,426
py
Python
examples/ConsumptionSaving/example_TractableBufferStockModel.py
HsinYiHung/HARK_HY
086c46af5bd037fe1ced6906c6ea917ed58b134f
[ "Apache-2.0" ]
null
null
null
examples/ConsumptionSaving/example_TractableBufferStockModel.py
HsinYiHung/HARK_HY
086c46af5bd037fe1ced6906c6ea917ed58b134f
[ "Apache-2.0" ]
null
null
null
examples/ConsumptionSaving/example_TractableBufferStockModel.py
HsinYiHung/HARK_HY
086c46af5bd037fe1ced6906c6ea917ed58b134f
[ "Apache-2.0" ]
null
null
null
# %% import numpy as np # numeric Python from HARK.utilities import plotFuncs # basic plotting tools from HARK.ConsumptionSaving.ConsMarkovModel import ( MarkovConsumerType, ) # An alternative, much longer way to solve the TBS model from time import process_time # timing utility from HARK.ConsumptionSaving.Trac...
41.419847
116
0.71397
685
5,426
5.578102
0.354745
0.005758
0.031405
0.039257
0.200995
0.145512
0.132426
0.075373
0.075373
0.035069
0
0.021525
0.178032
5,426
130
117
41.738462
0.835202
0.441946
0
0.126214
0
0
0.181174
0
0
0
0
0
0
1
0
false
0
0.048544
0
0.048544
0.029126
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
b625948601304a37edf120d20921eb82fe58c66b
3,299
py
Python
util/utils.py
tanghaotommy/Self-supervised-Fewshot-Medical-Image-Segmentation
9ff8cd2421ee2f7c038d8eec15b0296b365e0c46
[ "MIT" ]
176
2020-09-10T16:32:16.000Z
2022-03-30T12:06:02.000Z
util/utils.py
tanghaotommy/Self-supervised-Fewshot-Medical-Image-Segmentation
9ff8cd2421ee2f7c038d8eec15b0296b365e0c46
[ "MIT" ]
14
2020-09-18T02:56:53.000Z
2022-03-16T00:31:12.000Z
util/utils.py
tanghaotommy/Self-supervised-Fewshot-Medical-Image-Segmentation
9ff8cd2421ee2f7c038d8eec15b0296b365e0c46
[ "MIT" ]
29
2020-09-13T20:00:00.000Z
2022-02-11T00:40:00.000Z
"""Util functions Extended from original PANet code TODO: move part of dataset configurations to data_utils """ import random import torch import numpy as np import operator def set_seed(seed): """ Set the random seed """ random.seed(seed) torch.manual_seed(seed) torch.cuda.manual_seed_all(seed...
27.722689
102
0.585935
501
3,299
3.668663
0.309381
0.038085
0.026115
0.006529
0.129489
0.100109
0.080522
0.025027
0.025027
0.025027
0
0.040316
0.270688
3,299
118
103
27.957627
0.723608
0.173992
0
0.0625
0
0
0.04084
0
0
0
0
0.008475
0
1
0.0875
false
0
0.05
0
0.2625
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
b626f7b18fa5d92ee89efc8f742da215c496b617
663
py
Python
src/my_project/medium_problems/from1to50/final_prices_with_special_discount_shop.py
ivan1016017/LeetCodeAlgorithmProblems
454284b76634cc34ed41f7fa30d857403cedf1bf
[ "MIT" ]
null
null
null
src/my_project/medium_problems/from1to50/final_prices_with_special_discount_shop.py
ivan1016017/LeetCodeAlgorithmProblems
454284b76634cc34ed41f7fa30d857403cedf1bf
[ "MIT" ]
1
2021-09-22T12:26:14.000Z
2021-09-22T12:26:14.000Z
src/my_project/medium_problems/from1to50/final_prices_with_special_discount_shop.py
ivan1016017/LeetCodeAlgorithmProblems
454284b76634cc34ed41f7fa30d857403cedf1bf
[ "MIT" ]
null
null
null
from typing import List class Solution: def finalPrices(self, prices: List[int]) -> List[int]: # initialize variables solution = list() len_prices = len(prices) flag = -1 for i in range(len_prices): flag = -1 for j in range(i+1, len_prices): ...
26.52
58
0.503771
76
663
4.355263
0.421053
0.108761
0.07855
0.084592
0.102719
0
0
0
0
0
0
0.02457
0.386124
663
25
59
26.52
0.788698
0.030166
0
0.105263
0
0
0
0
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.210526
0.052632
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
b627c5785e80c08378e3b966c7612558816085f7
23,226
py
Python
gammapy/estimators/ts_map.py
vikasj78/gammapy
46deb872bbcbf36748df71e659dc3fa592f6dc27
[ "BSD-3-Clause" ]
null
null
null
gammapy/estimators/ts_map.py
vikasj78/gammapy
46deb872bbcbf36748df71e659dc3fa592f6dc27
[ "BSD-3-Clause" ]
null
null
null
gammapy/estimators/ts_map.py
vikasj78/gammapy
46deb872bbcbf36748df71e659dc3fa592f6dc27
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """Functions to compute TS images.""" import functools import logging import warnings import numpy as np import scipy.optimize from astropy.coordinates import Angle from gammapy.datasets.map import MapEvaluator from gammapy.maps import Map, WcsGeom from ga...
31.514247
94
0.592267
2,749
23,226
4.858858
0.157512
0.027551
0.034589
0.020214
0.30995
0.264356
0.22243
0.199221
0.161189
0.161189
0
0.008213
0.308017
23,226
736
95
31.557065
0.82286
0.331654
0
0.201681
0
0
0.060615
0
0
0
0
0.001359
0
1
0.047619
false
0
0.033613
0.005602
0.151261
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
b62a7fea18f8f4556139383b37d4d565e04f0ab2
2,195
py
Python
reporter/factories/slack.py
itsdkey/workreporter
daea921a03f4798c9acd689fc9bc6010e72cf886
[ "MIT" ]
null
null
null
reporter/factories/slack.py
itsdkey/workreporter
daea921a03f4798c9acd689fc9bc6010e72cf886
[ "MIT" ]
21
2020-04-04T11:08:20.000Z
2021-01-29T07:58:40.000Z
reporter/factories/slack.py
itsdkey/workreporter
daea921a03f4798c9acd689fc9bc6010e72cf886
[ "MIT" ]
null
null
null
import string from factory import Dict, DictFactory, Faker, List from factory.fuzzy import FuzzyChoice, FuzzyText from reporter.apps import __version__ class SectionButtonFactory(DictFactory): """A factory for a section with a button.""" type = 'section' accessory = Dict({ 'text': { ...
24.662921
83
0.569021
208
2,195
5.947115
0.375
0.051738
0.092158
0.10671
0.224737
0.150364
0.101859
0.101859
0.101859
0.101859
0
0.001263
0.278815
2,195
88
84
24.943182
0.780164
0.153531
0
0.403509
0
0
0.175623
0
0
0
0
0
0
1
0
false
0
0.070175
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
b62c3785b8faee0ef4f6c5a2aca7da2f7a1f610d
4,040
py
Python
pybrain/inspect_ops.py
Kevinfu510/TridentFrame
9766b3642ad065662ca428212bfe3f3dca25139d
[ "MIT" ]
null
null
null
pybrain/inspect_ops.py
Kevinfu510/TridentFrame
9766b3642ad065662ca428212bfe3f3dca25139d
[ "MIT" ]
null
null
null
pybrain/inspect_ops.py
Kevinfu510/TridentFrame
9766b3642ad065662ca428212bfe3f3dca25139d
[ "MIT" ]
null
null
null
import os import string import math from random import choices from pprint import pprint from urllib.parse import urlparse from PIL import Image from apng import APNG from colorama import init, deinit from hurry.filesize import size, alternative from .config import IMG_EXTS, STATIC_IMG_EXTS, ANIMATED_IMG_EXTS def _...
35.752212
107
0.630446
572
4,040
4.298951
0.225524
0.0366
0.0122
0.02928
0.181781
0.125661
0.125661
0.102481
0.102481
0.102481
0
0.012317
0.256436
4,040
112
108
36.071429
0.806258
0.114851
0
0.113636
0
0
0.136709
0
0
0
0
0
0
1
0.022727
false
0
0.125
0
0.170455
0.034091
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
b62dc7b9f4a6677f9a7cc3ff035bfd06aa2b42eb
468
py
Python
mlrun/data_types/__init__.py
yanburman/mlrun
f6d2bb1d99d163ab47774f15b86008bfd76f6ba1
[ "Apache-2.0" ]
null
null
null
mlrun/data_types/__init__.py
yanburman/mlrun
f6d2bb1d99d163ab47774f15b86008bfd76f6ba1
[ "Apache-2.0" ]
null
null
null
mlrun/data_types/__init__.py
yanburman/mlrun
f6d2bb1d99d163ab47774f15b86008bfd76f6ba1
[ "Apache-2.0" ]
null
null
null
# flake8: noqa - this is until we take care of the F401 violations with respect to __all__ & sphinx from .data_types import ValueType, pd_schema_to_value_type, InferOptions from .infer import DFDataInfer class BaseDataInfer: infer_schema = None get_preview = None get_stats = None def get_infer_interfa...
24.631579
100
0.737179
61
468
5.42623
0.721311
0.042296
0
0
0
0
0
0
0
0
0
0.01084
0.211538
468
18
101
26
0.886179
0.209402
0
0
0
0
0.008152
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.909091
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
b62e64b939d1bd9c03a4b5b970f6b1625a5fffd7
7,942
py
Python
sanity_test.py
C2SM/clim-sanity-checker
3d5d610b16ca7e87c841ef7ad06a94d0399b4773
[ "MIT" ]
null
null
null
sanity_test.py
C2SM/clim-sanity-checker
3d5d610b16ca7e87c841ef7ad06a94d0399b4773
[ "MIT" ]
3
2021-07-29T11:26:20.000Z
2021-07-29T16:01:54.000Z
sanity_test.py
C2SM/clim-sanity-checker
3d5d610b16ca7e87c841ef7ad06a94d0399b4773
[ "MIT" ]
null
null
null
# standard modules import argparse import os # aliased standard modules import pandas as pd # modules of sanity checker import add_exp_to_ref import lib.paths as paths import lib.utils as utils import perform_test import process_data import lib.logger_config as logger_config import lib.test_config as test_config # a...
33.510549
78
0.559179
936
7,942
4.470085
0.251068
0.031788
0.02175
0.037285
0.131692
0.094407
0.039436
0.024857
0
0
0
0.001733
0.346134
7,942
236
79
33.652542
0.803967
0.05515
0
0.187879
0
0
0.179425
0.003005
0
0
0
0
0
1
0.006061
false
0
0.072727
0
0.078788
0.006061
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
b6353c0bdb47d9dde56dcc48c5df873e0f1636bc
1,278
py
Python
api/rqst_getter.py
Maziar110/api_client_test
52e5a2ffb0b46be71f34452132b13e5e941ae327
[ "MIT" ]
null
null
null
api/rqst_getter.py
Maziar110/api_client_test
52e5a2ffb0b46be71f34452132b13e5e941ae327
[ "MIT" ]
null
null
null
api/rqst_getter.py
Maziar110/api_client_test
52e5a2ffb0b46be71f34452132b13e5e941ae327
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from flask import Flask, request from datetime import datetime from flask_opentracing import FlaskTracing from jaeger_client import Config app = Flask(__name__) config = Config(config= { 'sampler': {'type': 'const', 'param': 1}, 'local_agent': {'reporting_host': '172.2.1.5'} }, ...
22.034483
57
0.618153
171
1,278
4.444444
0.473684
0.082895
0.055263
0.034211
0
0
0
0
0
0
0
0.013065
0.22144
1,278
57
58
22.421053
0.750754
0.016432
0
0.046512
0
0
0.144338
0
0
0
0
0
0
1
0.046512
false
0
0.093023
0
0.186047
0.093023
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
b636dd98793502ba5f717594cef6b13dafcec083
799
py
Python
packages/core/minos-microservice-common/tests/test_common/test_model/test_abc.py
sorasful/minos-python
1189330eebf6444627a2af6b29f347670f95a4dd
[ "MIT" ]
247
2022-01-24T14:55:30.000Z
2022-03-25T12:06:17.000Z
packages/core/minos-microservice-common/tests/test_common/test_model/test_abc.py
sorasful/minos-python
1189330eebf6444627a2af6b29f347670f95a4dd
[ "MIT" ]
400
2021-04-03T08:51:40.000Z
2022-01-28T11:51:22.000Z
packages/core/minos-microservice-common/tests/test_common/test_model/test_abc.py
sorasful/minos-python
1189330eebf6444627a2af6b29f347670f95a4dd
[ "MIT" ]
21
2022-02-06T17:25:58.000Z
2022-03-27T04:50:29.000Z
import unittest from collections.abc import ( Mapping, ) from uuid import ( UUID, uuid4, ) from minos.common import ( DeclarativeModel, Field, Model, ) from tests.model_classes import ( FooBar, ) class TestModel(unittest.TestCase): def test_base(self): self.assertTrue(issubcla...
19.487805
87
0.628285
85
799
5.670588
0.435294
0.043568
0
0
0
0
0
0
0
0
0
0.006711
0.254068
799
40
88
19.975
0.802013
0
0
0
0
0
0.035044
0
0
0
0
0
0.129032
1
0.129032
false
0
0.16129
0.032258
0.387097
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
b63706705437012c6dcf007e355dcfa0951e03d3
7,197
py
Python
twitterBattleGame/twitterbattlegame.py
ferrithemaker/makertrends-twitter
6055a2437cf567f14aa513a906615488f7c35549
[ "MIT" ]
null
null
null
twitterBattleGame/twitterbattlegame.py
ferrithemaker/makertrends-twitter
6055a2437cf567f14aa513a906615488f7c35549
[ "MIT" ]
null
null
null
twitterBattleGame/twitterbattlegame.py
ferrithemaker/makertrends-twitter
6055a2437cf567f14aa513a906615488f7c35549
[ "MIT" ]
null
null
null
from tweepy.streaming import StreamListener from tweepy import OAuthHandler from tweepy import Stream import json import threading import sys import pygame import os if len(sys.argv) == 3: search_strings = [sys.argv[1],sys.argv[2]] else: print("Usage: twitterbattlegame.py [TREND1_STRING] [TREND2_STRING]") sys.exit...
25.888489
87
0.725163
923
7,197
5.605634
0.266522
0.023193
0.017395
0.024353
0.263433
0.232315
0.209123
0.192888
0.192888
0.153073
0
0.042928
0.155204
7,197
277
88
25.981949
0.808059
0.096707
0
0.247312
0
0
0.057368
0.024432
0
0
0
0
0
1
0.026882
false
0
0.043011
0.010753
0.096774
0.005376
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
b63aa4a552b83a7cbc88ec12fcd658dfebd4cd02
9,346
py
Python
reachyAudio/reachyAudioAnswering.py
sizingservers/ReachyAudio
af91ed57015d693cc942620495541b482728a513
[ "MIT" ]
3
2021-04-28T15:16:50.000Z
2021-11-01T17:36:09.000Z
reachyAudio/reachyAudioAnswering.py
sizingservers/Reachy.Audio
7e515459b72f2bdc05ee73f159d6bcaaabaef6f5
[ "MIT" ]
null
null
null
reachyAudio/reachyAudioAnswering.py
sizingservers/Reachy.Audio
7e515459b72f2bdc05ee73f159d6bcaaabaef6f5
[ "MIT" ]
2
2021-11-22T13:43:37.000Z
2022-03-03T09:44:16.000Z
"""This module defines the ReachyAudioAnswering class.""" import nltk import json import torch import random import pickle from nltk.stem.lancaster import LancasterStemmer stemmer = LancasterStemmer() CONFIDENCE_THRESHOLD = 0.7 class ReachyAudioAnswering(): """ReachyAudioAnswering class. Th...
39.770213
80
0.581639
1,123
9,346
4.75512
0.247551
0.023408
0.01573
0.01573
0.148127
0.113858
0.09176
0.064794
0.035955
0.018727
0
0.00462
0.351594
9,346
234
81
39.940171
0.876568
0.398673
0
0.038462
0
0
0.048153
0
0
0
0
0
0
1
0.048077
false
0
0.057692
0
0.153846
0.028846
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
b63abdbbcdf468494ec4d6e1649a366257180326
4,937
py
Python
mlp/mlp.py
sovrasov/mlp_sample
c27aa4893960e3531fb3135148a26fdf75a2f1d2
[ "MIT" ]
null
null
null
mlp/mlp.py
sovrasov/mlp_sample
c27aa4893960e3531fb3135148a26fdf75a2f1d2
[ "MIT" ]
null
null
null
mlp/mlp.py
sovrasov/mlp_sample
c27aa4893960e3531fb3135148a26fdf75a2f1d2
[ "MIT" ]
null
null
null
import numpy as np def softmax(x): ex = np.exp(-x) return ex / np.sum(ex) def relu(x): return x * (x > 0.) def relu_der(x): return np.ones_like(x) * (x > 0.) class MLP: def __init__(self, lr, bs, momentum, verbose, max_iters, eps=0., hidden_dims=[10]): self.layers = [] self.label...
38.570313
133
0.567956
652
4,937
4.075153
0.162577
0.103877
0.031615
0.028604
0.288671
0.24012
0.228453
0.164848
0.136244
0.072262
0
0.010715
0.300587
4,937
127
134
38.874016
0.758761
0.004254
0
0.075472
0
0
0.0407
0
0
0
0
0
0.056604
1
0.122642
false
0
0.009434
0.028302
0.207547
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
b63d8c3c7c6fd356106b5b059b25964eee3e6080
4,858
py
Python
cap/path.py
ArashLab/CAP
9e6d413e000ebfcade3020985fdedd9aa703d68a
[ "MIT" ]
null
null
null
cap/path.py
ArashLab/CAP
9e6d413e000ebfcade3020985fdedd9aa703d68a
[ "MIT" ]
8
2021-06-24T06:08:27.000Z
2021-07-22T03:47:11.000Z
cap/path.py
ArashLab/CAP
9e6d413e000ebfcade3020985fdedd9aa703d68a
[ "MIT" ]
null
null
null
import os import subprocess from munch import Munch from .logutil import * from .decorators import * if __name__ == '__main__': print('This module is not executable.') exit(0) FileSystems = [ 'file', 'hdfs', 's3', 'gs', 'mysql', 'http', 'https' ] # If a path could match more th...
27.446328
132
0.550638
535
4,858
4.872897
0.257944
0.033755
0.026851
0.03529
0.084388
0.084388
0.084388
0.084388
0.062908
0.037591
0
0.002959
0.304446
4,858
176
133
27.602273
0.768571
0.087485
0
0.183099
0
0
0.140501
0.004744
0
0
0
0
0
1
0.126761
false
0
0.035211
0.049296
0.274648
0.007042
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
b640cb56865053f7246a487959ec18a980db1340
1,823
py
Python
main.py
Vivektp/Image-UploadBot-1
01d70d4425d082639e46d954d0b900d478ad29c9
[ "MIT" ]
null
null
null
main.py
Vivektp/Image-UploadBot-1
01d70d4425d082639e46d954d0b900d478ad29c9
[ "MIT" ]
null
null
null
main.py
Vivektp/Image-UploadBot-1
01d70d4425d082639e46d954d0b900d478ad29c9
[ "MIT" ]
1
2021-01-07T02:26:26.000Z
2021-01-07T02:26:26.000Z
from pyrogram import Client, filters import os, shutil from creds import my from telegraph import upload_file import logging logging.basicConfig(level=logging.INFO) TGraph = Client( "Image upload bot", bot_token = my.BOT_TOKEN, api_id = my.API_ID, api_hash = my.API_HASH ) @TGraph.o...
37.204082
302
0.64893
281
1,823
4.170819
0.459075
0.008532
0.038396
0.056314
0.199659
0.139932
0.061433
0.061433
0
0
0
0.002116
0.222161
1,823
48
303
37.979167
0.815938
0
0
0
0
0.052632
0.345352
0.017465
0
0
0
0
0
1
0
false
0
0.131579
0
0.157895
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
b64465faae2a9d77dbcd14ac084106824ac896e5
1,237
py
Python
action-server/covidflow/utils/geocoding.py
nuecho/covidflow
050665c629ea46bfebc0920ba1dba841c2268d08
[ "MIT" ]
7
2020-05-23T07:07:26.000Z
2021-11-29T05:58:51.000Z
action-server/covidflow/utils/geocoding.py
dialoguemd/covidflow
b159b76dc68462f272614db4cbf716844872ebca
[ "MIT" ]
210
2020-04-13T17:21:55.000Z
2021-04-20T15:46:26.000Z
action-server/covidflow/utils/geocoding.py
dialoguemd/covidflow
b159b76dc68462f272614db4cbf716844872ebca
[ "MIT" ]
3
2020-04-09T14:38:09.000Z
2020-07-29T15:06:11.000Z
import os from typing import Any, Dict, Optional import googlemaps import structlog from geopy.point import Point logger = structlog.get_logger() DEFAULT_COUNTRY = "CA" GOOGLE_API_KEY_ENV = "GOOGLE_GEOCODING_API_KEY" GEOMETRY = "geometry" LOCATION = "location" LATITUDE = "lat" LONGITUDE = "lng" class Geocoding: ...
26.319149
82
0.669361
149
1,237
5.33557
0.328859
0.050314
0.030189
0.037736
0.083019
0.083019
0.083019
0
0
0
0
0.002077
0.221504
1,237
46
83
26.891304
0.823468
0
0
0.125
0
0
0.067098
0.019402
0
0
0
0
0
1
0.125
false
0
0.15625
0
0.46875
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
b646b8cf155b631e43329c320bbdd520d22b745c
5,319
py
Python
calculadora.py
WelberthyGustavo/Calculadora
2d01dba2db06796c8d237302f3ad024c8be359ea
[ "MIT" ]
4
2020-04-21T01:42:30.000Z
2020-10-26T01:59:33.000Z
calculadora.py
WelberthyGustavo/Calculadora
2d01dba2db06796c8d237302f3ad024c8be359ea
[ "MIT" ]
null
null
null
calculadora.py
WelberthyGustavo/Calculadora
2d01dba2db06796c8d237302f3ad024c8be359ea
[ "MIT" ]
null
null
null
from functools import partial from tkinter import * #program by~ Welberthy Gustavo Developer def calc(btn): if btn['text'].isdigit() or btn['text'] == '.': lbl['text'] += btn['text'] def soma(): global sinal sinal = 'soma' global valor1 valor1 = lbl['text'] lb...
29.065574
121
0.588644
764
5,319
4.102094
0.175393
0.080408
0.108488
0.114869
0.457243
0.438098
0.438098
0.395341
0.328334
0.328334
0
0.078087
0.217522
5,319
183
122
29.065574
0.674195
0.020493
0
0.280822
0
0
0.131396
0.005176
0.006849
0
0
0
0
1
0.068493
false
0
0.013699
0
0.082192
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
b6473eeb720250834546c75004a0f9e6557be8db
1,928
py
Python
fastfood/exc.py
enterstudio/fastfood
6e18500b2d08698f6fa8d9d54daee6aa78f9efd0
[ "Apache-2.0" ]
null
null
null
fastfood/exc.py
enterstudio/fastfood
6e18500b2d08698f6fa8d9d54daee6aa78f9efd0
[ "Apache-2.0" ]
null
null
null
fastfood/exc.py
enterstudio/fastfood
6e18500b2d08698f6fa8d9d54daee6aa78f9efd0
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Rackspace US, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
26.054054
76
0.708506
240
1,928
5.616667
0.554167
0.04451
0.019288
0.023739
0
0
0
0
0
0
0
0.008393
0.196577
1,928
73
77
26.410959
0.861846
0.528008
0
0.08
0
0
0.024706
0
0
0
0
0
0
1
0.04
false
0
0.04
0
0.32
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
b6476924d1d5ed2df7e1b8fbabacbac62cb195f4
2,320
py
Python
script.py
Freakwill/nb-combination
716227ba22f6c0c404898a00c18362a41ae3c701
[ "MIT" ]
null
null
null
script.py
Freakwill/nb-combination
716227ba22f6c0c404898a00c18362a41ae3c701
[ "MIT" ]
null
null
null
script.py
Freakwill/nb-combination
716227ba22f6c0c404898a00c18362a41ae3c701
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from nb_comb import * from sklearn.naive_bayes import * from sklearn.tree import * from sklearn.neural_network import * from sklearn.model_selection import * import pandas as pd data = pd.read_csv('dataset.csv', index_col=0) X, Y = data.iloc[:, :-1], data.iloc[:, -1].va...
31.351351
152
0.64181
284
2,320
5.137324
0.482394
0.06854
0.046607
0.024674
0.145305
0.145305
0.117889
0.117889
0
0
0
0.027055
0.171552
2,320
73
153
31.780822
0.73205
0.018534
0
0.04
0
0
0.194897
0
0
0
0
0
0
1
0
false
0
0.16
0
0.16
0.02
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
b64a9935e9810f6c5f1a61a7b125688afb12a906
3,073
py
Python
corehq/blobs/tests/test_export.py
roboton/commcare-hq
3ccbe59508d98dd1963ca87cf249dd2df8af8ecc
[ "BSD-3-Clause" ]
null
null
null
corehq/blobs/tests/test_export.py
roboton/commcare-hq
3ccbe59508d98dd1963ca87cf249dd2df8af8ecc
[ "BSD-3-Clause" ]
1
2021-06-02T04:45:16.000Z
2021-06-02T04:45:16.000Z
corehq/blobs/tests/test_export.py
roboton/commcare-hq
3ccbe59508d98dd1963ca87cf249dd2df8af8ecc
[ "BSD-3-Clause" ]
null
null
null
import os import uuid from io import BytesIO from tempfile import NamedTemporaryFile from zipfile import ZipFile from django.test import TestCase from corehq.apps.hqmedia.models import CommCareAudio, CommCareVideo, CommCareImage from corehq.blobs import CODES, get_blob_db from corehq.blobs.export import EXPORTERS fro...
37.024096
99
0.617312
379
3,073
4.860158
0.324538
0.043431
0.045603
0.017372
0.248643
0.228013
0.153094
0.153094
0.115092
0.115092
0
0.00449
0.275301
3,073
82
100
37.47561
0.822631
0
0
0.144928
0
0
0.052392
0
0
0
0
0
0.057971
1
0.057971
false
0
0.144928
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
b64f13ebbb17fadf2e674f33e8566118f8aa3dfa
922
py
Python
telescope/utils/annotation.py
froy0212/telescope
05f6f058d8106c86cb4eb62239800ab2261eaaad
[ "MIT" ]
25
2019-05-31T23:27:56.000Z
2022-03-11T07:43:59.000Z
telescope/utils/annotation.py
jianguozhouzunyimedicaluniversity/telescope
6cd55256c6016feffdbfe10346bfecfcb1e30965
[ "MIT" ]
24
2018-12-10T16:44:59.000Z
2022-03-20T19:58:37.000Z
telescope/utils/annotation.py
jianguozhouzunyimedicaluniversity/telescope
6cd55256c6016feffdbfe10346bfecfcb1e30965
[ "MIT" ]
8
2019-09-04T13:45:08.000Z
2022-03-15T15:57:22.000Z
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import absolute_import __author__ = 'Matthew L. Bendall' __copyright__ = "Copyright (C) 2019 Matthew L. Bendall" def get_annotation_class(annotation_class_name): """ Get Annotation class matching provided name Args: annotat...
34.148148
75
0.719089
96
922
6.53125
0.53125
0.191388
0.121212
0
0
0
0
0
0
0
0
0.006849
0.208243
922
26
76
35.461538
0.852055
0.321041
0
0
0
0
0.22973
0
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.416667
0.083333
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
b64f934d0ea49d49f24b9f5e245749b3e6460dfb
6,012
py
Python
web/frontend/views/config.py
tcsvn/activity-assistant
eeb0ef72a046a8a781ff31b384edec8243dd22a7
[ "MIT" ]
45
2020-11-06T20:31:13.000Z
2022-03-24T06:14:18.000Z
web/frontend/views/config.py
tcsvn/activity-assistant
eeb0ef72a046a8a781ff31b384edec8243dd22a7
[ "MIT" ]
10
2020-12-14T00:17:11.000Z
2022-02-06T19:39:01.000Z
web/frontend/views/config.py
tcsvn/activity-assistant
eeb0ef72a046a8a781ff31b384edec8243dd22a7
[ "MIT" ]
3
2020-12-15T22:50:09.000Z
2022-03-13T21:12:28.000Z
from backend.models import * from django.views.generic import TemplateView from django.shortcuts import render, redirect import os import hass_api.rest as hass_rest from frontend.util import get_server, refresh_hass_token, \ get_device_names, get_activity_names, get_person_hass_names, \ get_person_names, input...
33.966102
83
0.614604
740
6,012
4.747297
0.178378
0.046968
0.031882
0.035867
0.356106
0.299744
0.281526
0.266154
0.221178
0.2078
0
0.002989
0.276447
6,012
176
84
34.159091
0.804598
0.03177
0
0.304054
0
0
0.088778
0.009654
0
0
0
0
0.027027
1
0.074324
false
0.006757
0.060811
0.006757
0.243243
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
b650cf8f96e44c66b3acac463da66cefb0635f96
1,843
py
Python
File System/main.py
IRIDIUM-SUB/Sys_Course_Design
52ec96378e9f9c8d7dc366efcba154df3f1cbc67
[ "MIT" ]
null
null
null
File System/main.py
IRIDIUM-SUB/Sys_Course_Design
52ec96378e9f9c8d7dc366efcba154df3f1cbc67
[ "MIT" ]
null
null
null
File System/main.py
IRIDIUM-SUB/Sys_Course_Design
52ec96378e9f9c8d7dc366efcba154df3f1cbc67
[ "MIT" ]
null
null
null
import os from toolbox import * import pickle import logging import commandresolve def console(data:dict,logger): ''' Main console program ''' consoleobj=commandresolve.commandresolve(data,logger) flag=True# to mark if it is time to exit while (flag): rawcommand=input(">") flag=c...
26.710145
79
0.62344
203
1,843
5.62069
0.472906
0.052585
0.039439
0.031551
0.168273
0.168273
0.168273
0.168273
0.168273
0.168273
0
0.005908
0.265328
1,843
68
80
27.102941
0.83678
0.098209
0
0.186047
0
0
0.202989
0
0
0
0
0
0
1
0.023256
false
0
0.116279
0
0.162791
0.023256
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
b6511db93d9ed485759c7b0e96ca84109e977890
1,428
py
Python
benchmarks/evaluate.py
benetech/Winnow2.0
bc428d7f74bd7db71b6d70ab15dc7a5c37786c46
[ "MIT" ]
26
2019-12-16T21:22:14.000Z
2022-03-25T16:05:32.000Z
benchmarks/evaluate.py
benetech/Winnow2.0
bc428d7f74bd7db71b6d70ab15dc7a5c37786c46
[ "MIT" ]
325
2019-10-28T16:24:45.000Z
2022-03-31T13:12:15.000Z
benchmarks/evaluate.py
benetech/Winnow2.0
bc428d7f74bd7db71b6d70ab15dc7a5c37786c46
[ "MIT" ]
9
2019-10-09T16:20:38.000Z
2021-12-22T18:44:45.000Z
import pandas as pd from glob import glob from utils import evaluate_augmented_dataset, evaluate_landmarks, evaluate_scene_detection import os from winnow.utils.config import resolve_config import click import numpy as np import json pd.options.mode.chained_assignment = None @click.command() @click.option("--benchma...
26.444444
106
0.72549
179
1,428
5.592179
0.435754
0.077922
0.087912
0.111888
0.215784
0.13986
0.101898
0.101898
0
0
0
0
0.171569
1,428
53
107
26.943396
0.846154
0
0
0.157895
0
0
0.278711
0.015406
0
0
0
0
0
1
0.026316
false
0
0.210526
0
0.236842
0.026316
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
b653a28ba11c9bc2e835fdedaf5686ad56584df6
909
py
Python
Symmetric/Stream-Cipher/LFSR/script.py
killua4564/Symmetric
183ea2ec1d1342e9124e710a2de0fcad8b399f3d
[ "MIT" ]
1
2021-05-05T14:03:10.000Z
2021-05-05T14:03:10.000Z
Symmetric/Stream-Cipher/LFSR/script.py
killua4564/Symmetric
183ea2ec1d1342e9124e710a2de0fcad8b399f3d
[ "MIT" ]
null
null
null
Symmetric/Stream-Cipher/LFSR/script.py
killua4564/Symmetric
183ea2ec1d1342e9124e710a2de0fcad8b399f3d
[ "MIT" ]
null
null
null
from itertools import combinations class LFSR: def __init__(self, register, taps): self.register = register self.taps = taps def next(self): new = 0 ret = self.register[0] for i in self.taps: new ^= self.register[i] self.register = self.register[1:]...
24.567568
86
0.583058
130
909
4
0.338462
0.138462
0.023077
0.069231
0
0
0
0
0
0
0
0.023916
0.264026
909
36
87
25.25
0.753363
0
0
0
0
0
0.035204
0
0
0
0
0
0
1
0.068966
false
0
0.034483
0
0.172414
0.103448
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
b65951eb0ef82ffdc947697f22310dd635865642
4,122
py
Python
src/mapping/cartographer.py
ThomasRanvier/map_maker
e36ddcc7d5959957d83fae778d8ef715c79712e7
[ "MIT" ]
null
null
null
src/mapping/cartographer.py
ThomasRanvier/map_maker
e36ddcc7d5959957d83fae778d8ef715c79712e7
[ "MIT" ]
null
null
null
src/mapping/cartographer.py
ThomasRanvier/map_maker
e36ddcc7d5959957d83fae778d8ef715c79712e7
[ "MIT" ]
null
null
null
from utils.utils import bresenham_line from math import hypot, cos, sin from utils.position import Position class Cartographer: """ Class that implements a Cartographer, used to update the map of the environment using the lasers echoes. """ def __init__(self, lasers_distance = 0.15, min_increment ...
56.465753
161
0.63246
551
4,122
4.408348
0.170599
0.05599
0.065871
0.039522
0.361054
0.333059
0.272952
0.272952
0.272952
0.251544
0
0.009266
0.293062
4,122
72
162
57.25
0.824297
0.2705
0
0
0
0
0
0
0
0
0
0
0
1
0.05
false
0
0.075
0
0.175
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
b659d814fb65cdd70ff97f52711483193c63f987
5,106
py
Python
demosys/opengl/texture.py
Contraz/demosys-py
0479e0f3b0a3901f601bffd2d11e155f97b47555
[ "0BSD" ]
70
2017-03-31T12:01:41.000Z
2022-01-05T06:30:57.000Z
demosys/opengl/texture.py
Contraz/demosys-py
0479e0f3b0a3901f601bffd2d11e155f97b47555
[ "0BSD" ]
69
2017-06-18T22:37:46.000Z
2020-01-23T04:02:22.000Z
demosys/opengl/texture.py
Contraz/demosys-py
0479e0f3b0a3901f601bffd2d11e155f97b47555
[ "0BSD" ]
9
2017-05-13T21:13:02.000Z
2020-10-01T18:09:49.000Z
""" Draw methods for textures and depth textures """ import moderngl from demosys import context, geometry class TextureHelper: """Draw methods for textures and depth textures""" _quad = None _texture2d_shader = None # Type: moderngl.Program _texture2d_sampler = None # Type: moderngl.Sa...
32.316456
102
0.526244
560
5,106
4.633929
0.1875
0.01079
0.009249
0.006166
0.601156
0.506358
0.506358
0.455491
0.426204
0.383815
0
0.034266
0.377007
5,106
157
103
32.522293
0.781515
0.159812
0
0.480769
0
0.028846
0.385503
0
0
0
0
0
0
1
0.067308
false
0
0.028846
0.019231
0.173077
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
b65c498fb47fab313371a80e39143108433be373
1,136
py
Python
avancado/POO/metaclasses.py
Nataliaartini/cursoPython
01dc9cafd5cef1252ca84503e7a9011bd709ef46
[ "MIT" ]
null
null
null
avancado/POO/metaclasses.py
Nataliaartini/cursoPython
01dc9cafd5cef1252ca84503e7a9011bd709ef46
[ "MIT" ]
null
null
null
avancado/POO/metaclasses.py
Nataliaartini/cursoPython
01dc9cafd5cef1252ca84503e7a9011bd709ef46
[ "MIT" ]
null
null
null
class Meta(type): def __new__(mcs, name, bases, namespace): print(name) if name == "A": return type.__new__(mcs, name, bases, namespace) if "attr_classe" in namespace: print(f"{name} tentou sobrescrever o atributo attr_classe") del namespace["attr_classe"...
25.818182
102
0.601232
164
1,136
4.006098
0.365854
0.106545
0.045662
0.068493
0.14003
0.103501
0.103501
0
0
0
0
0
0.277289
1,136
43
103
26.418605
0.800244
0.141725
0
0.066667
0
0
0.218557
0
0
0
0
0
0
1
0.1
false
0
0
0
0.333333
0.3
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
b65c6b66aba642829f6360c17136a6c5c24bf822
1,787
py
Python
local_telegramListener/main.py
pratijayguha/AutomatedLightingControl
0ce3b275b2734deb1695a28e43417784184dde84
[ "MIT" ]
null
null
null
local_telegramListener/main.py
pratijayguha/AutomatedLightingControl
0ce3b275b2734deb1695a28e43417784184dde84
[ "MIT" ]
null
null
null
local_telegramListener/main.py
pratijayguha/AutomatedLightingControl
0ce3b275b2734deb1695a28e43417784184dde84
[ "MIT" ]
null
null
null
from utils import * from bot import telegram_chatbot from bulb import * bot = telegram_chatbot(CONFIG_LOCATION) print('Initialized Bot') bulb = bulb(IP_RANGE) print('Connected to bulb. IP address: {}'.format(bulb.address)) while True: updates = bot.get_updates(offset=update_id) updates = updates["r...
36.469388
113
0.476777
175
1,787
4.771429
0.405714
0.052695
0.035928
0.045509
0.179641
0.064671
0.064671
0
0
0
0
0.000986
0.432569
1,787
48
114
37.229167
0.822485
0.029099
0
0.125
0
0
0.213436
0
0
0
0
0
0
1
0
false
0
0.075
0
0.075
0.075
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
b65c74d6a744f8c2e4b55ae69055df5a4d973d76
5,365
py
Python
engines/email_engine.py
dho-IOD/futu_algo
f4bdf5edcc261efbd252e9e9c53a89563b0ed68f
[ "Apache-2.0" ]
66
2020-12-29T15:03:21.000Z
2022-03-29T01:24:59.000Z
engines/email_engine.py
dho-IOD/futu_algo
f4bdf5edcc261efbd252e9e9c53a89563b0ed68f
[ "Apache-2.0" ]
22
2020-12-29T16:57:03.000Z
2022-03-01T08:23:37.000Z
engines/email_engine.py
dho-IOD/futu_algo
f4bdf5edcc261efbd252e9e9c53a89563b0ed68f
[ "Apache-2.0" ]
30
2021-01-07T07:33:22.000Z
2022-03-17T11:37:02.000Z
# Futu Algo: Algorithmic High-Frequency Trading Framework # # 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 appli...
33.742138
115
0.569618
614
5,365
4.938111
0.423453
0.03562
0.026385
0.029683
0.047493
0.031003
0.031003
0.031003
0.031003
0.031003
0
0.016816
0.312768
5,365
158
116
33.955696
0.805533
0.192917
0
0.0625
0
0.008929
0.578037
0.085047
0
0
0
0
0
1
0.017857
false
0.026786
0.071429
0
0.098214
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
b65ddb5d9166291914db0e277ccb00ba1af84adc
502
py
Python
ex03/ex03.py
cheng10/PythonExerciseBook
11250020995c29e819540de787e91845b1bbbd99
[ "MIT" ]
null
null
null
ex03/ex03.py
cheng10/PythonExerciseBook
11250020995c29e819540de787e91845b1bbbd99
[ "MIT" ]
null
null
null
ex03/ex03.py
cheng10/PythonExerciseBook
11250020995c29e819540de787e91845b1bbbd99
[ "MIT" ]
null
null
null
import string import random import redis alpha = string.ascii_uppercase l = [] while len(l) < 100: res = '' for i in range(16): a = random.choice(alpha) n = str(random.randrange(10)) rand = random.choice([a, n]) res += rand if res not in l: l.append(res) # ...
16.733333
56
0.589641
77
502
3.831169
0.558442
0.027119
0
0
0
0
0
0
0
0
0
0.03252
0.26494
502
29
57
17.310345
0.766938
0.01992
0
0
0
0
0.067347
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.190476
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
b65e15ab134dbca7c02ad041522ed4d0b673d08e
355
py
Python
setup.py
hoogamaphone/world-manager
8d4515b93d303cf91626f69257e7cf00e200807a
[ "MIT" ]
null
null
null
setup.py
hoogamaphone/world-manager
8d4515b93d303cf91626f69257e7cf00e200807a
[ "MIT" ]
null
null
null
setup.py
hoogamaphone/world-manager
8d4515b93d303cf91626f69257e7cf00e200807a
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open('requirements.txt') as f: requirements = f.read() setup( name='World-Manager-CLI', version='0.1.0', packages=find_packages(), include_package_data=True, install_requires=requirements, entry_points=""" [console_scripts] w...
22.1875
43
0.664789
43
355
5.325581
0.697674
0.104803
0.131004
0
0
0
0
0
0
0
0
0.010601
0.202817
355
16
44
22.1875
0.798587
0
0
0
0
0
0.289326
0.070225
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
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
b65f74632dad7cb7cddacb4494d3a9d432840a4d
1,886
py
Python
main.py
Jelloeater/8266_web-relay
ac61a21bdfb1d6ff88be095f95059061f273c7b8
[ "MIT" ]
null
null
null
main.py
Jelloeater/8266_web-relay
ac61a21bdfb1d6ff88be095f95059061f273c7b8
[ "MIT" ]
null
null
null
main.py
Jelloeater/8266_web-relay
ac61a21bdfb1d6ff88be095f95059061f273c7b8
[ "MIT" ]
null
null
null
import socket import ure as re import time import machine def run(): # Standard socket stuff: host = '' port = 80 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.bind((host, port)) sock.listen(1) # don't queue up any requests while True: csock, caddr = sock.accept() ...
25.486486
108
0.544539
255
1,886
3.972549
0.364706
0.053307
0.035538
0.075025
0.347483
0.306022
0.256663
0.256663
0.16387
0.082922
0
0.026966
0.292153
1,886
73
109
25.835616
0.731835
0.039767
0
0.190476
0
0
0.39845
0.061981
0
0
0
0
0
1
0.047619
false
0
0.079365
0
0.142857
0.095238
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
b6621346c805c1e140f63c6f56323e6a373a58b0
1,744
py
Python
src_para/params.py
david-yoon/detecting-incongruity
2e121fdba0da3a6a0c63df0c46a101a789fe7565
[ "MIT" ]
36
2018-11-25T21:43:10.000Z
2022-03-13T10:47:50.000Z
src_para/params.py
david-yoon/detecting-incongruity
2e121fdba0da3a6a0c63df0c46a101a789fe7565
[ "MIT" ]
1
2019-06-16T07:45:47.000Z
2019-10-14T06:00:29.000Z
src_para/params.py
david-yoon/detecting-incongruity
2e121fdba0da3a6a0c63df0c46a101a789fe7565
[ "MIT" ]
5
2018-12-09T06:40:19.000Z
2019-10-17T22:07:58.000Z
class Params: ################################ # dataset ################################ DATA_DIR = '../data/' DATA_TRAIN_TITLE = 'train/train_title.npy' DATA_TRAIN_BODY = 'train/train_body.npy' DATA_TRAIN_LABEL = 'train/train_label.npy' DATA_DEV_TITLE = 'dev/dev_title.n...
26.830769
60
0.469037
193
1,744
3.818653
0.373057
0.066486
0.048847
0
0
0
0
0
0
0
0
0.02385
0.326835
1,744
64
61
27.25
0.603918
0.053899
0
0
0
0
0.15736
0.065265
0
0
0
0
0
1
0
false
0
0
0
1
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
b66267420e208edbe695e88c08255da8fc98c717
1,011
py
Python
baselayer/services/webpack.py
yaowenxi/cesium
b87c8bcafc8a7707877f8b9e9b111a2a99b5aeee
[ "BSD-3-Clause" ]
null
null
null
baselayer/services/webpack.py
yaowenxi/cesium
b87c8bcafc8a7707877f8b9e9b111a2a99b5aeee
[ "BSD-3-Clause" ]
6
2020-07-17T08:50:22.000Z
2022-02-26T11:56:52.000Z
baselayer/services/webpack.py
yaowenxi/cesium
b87c8bcafc8a7707877f8b9e9b111a2a99b5aeee
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 from baselayer.app.env import load_env import subprocess import sys import time import os from pathlib import Path env, cfg = load_env() bundle = Path(os.path.dirname(__file__))/'../../static/build/bundle.js' def run(cmd): print("开始了") p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stde...
25.923077
78
0.672601
144
1,011
4.659722
0.534722
0.083458
0.084948
0.044709
0.154993
0.074516
0
0
0
0
0
0.004813
0.178042
1,011
38
79
26.605263
0.802647
0.088032
0
0.071429
0
0
0.314815
0.089325
0
0
0
0
0
1
0.035714
false
0
0.214286
0
0.285714
0.178571
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
b662cf2d0ef7d2f3d75fe691f2648a210b3ef79c
2,911
py
Python
tests/test_interfaces/test_to_binary.py
softwareunderground/subsurface
ad5a6d2d24e710ce7a78ec99b2075ddbb9dfeb7d
[ "Apache-2.0" ]
55
2019-05-09T12:26:28.000Z
2021-11-05T07:35:15.000Z
tests/test_interfaces/test_to_binary.py
softwareunderground/subsurface
ad5a6d2d24e710ce7a78ec99b2075ddbb9dfeb7d
[ "Apache-2.0" ]
33
2019-05-09T16:28:19.000Z
2022-03-30T13:40:21.000Z
tests/test_interfaces/test_to_binary.py
softwareunderground/subsurface
ad5a6d2d24e710ce7a78ec99b2075ddbb9dfeb7d
[ "Apache-2.0" ]
14
2019-05-09T12:26:33.000Z
2021-09-01T11:31:27.000Z
import imageio import pytest from subsurface.reader.read_netcdf import read_unstruct import json try: import geopandas as gpd GEOPANDAS_IMPORTED = True except ImportError: GEOPANDAS_IMPORTED = False import pytest import numpy as np from subsurface import UnstructuredData, TriSurf, StructuredData from subs...
30.010309
98
0.671591
401
2,911
4.643392
0.254364
0.058002
0.064447
0.067669
0.336735
0.2116
0.093448
0.061224
0.061224
0.061224
0
0.010748
0.200962
2,911
96
99
30.322917
0.789768
0
0
0.166667
0
0
0.109584
0.017863
0
0
0
0
0
1
0.055556
false
0
0.222222
0
0.319444
0.013889
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
b666f9a2122d3e6d0251d1209907ba2b321af8c4
7,243
py
Python
ticketsplease/ticketsplease/modules/adfs/envelope/sct.py
secureworks/whiskeysamlandfriends
9334d0959aef64c06a716a5ed2e4f5582ab44a26
[ "Apache-2.0" ]
30
2021-11-10T16:28:34.000Z
2022-03-03T19:46:21.000Z
ticketsplease/ticketsplease/modules/adfs/envelope/sct.py
secureworks/whiskeysamlandfriends
9334d0959aef64c06a716a5ed2e4f5582ab44a26
[ "Apache-2.0" ]
null
null
null
ticketsplease/ticketsplease/modules/adfs/envelope/sct.py
secureworks/whiskeysamlandfriends
9334d0959aef64c06a716a5ed2e4f5582ab44a26
[ "Apache-2.0" ]
4
2021-11-11T19:29:11.000Z
2021-11-15T15:56:57.000Z
# Copyright 2021 Secureworks # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
35.856436
477
0.620875
818
7,243
5.438875
0.304401
0.046977
0.02922
0.034615
0.205664
0.194426
0.152619
0.12677
0.080917
0.080917
0
0.030217
0.268949
7,243
201
478
36.034826
0.810009
0.312992
0
0.190909
0
0.009091
0.290131
0.097628
0
0
0
0
0
1
0.027273
false
0
0.063636
0
0.127273
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