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
efaec9e129260471f4d26372fd487df99a205a00
4,887
py
Python
utils.py
loc-trinh/GrandmasterZero
58365890fe2b0145344f17be5fb59e08c8f1993a
[ "MIT" ]
null
null
null
utils.py
loc-trinh/GrandmasterZero
58365890fe2b0145344f17be5fb59e08c8f1993a
[ "MIT" ]
null
null
null
utils.py
loc-trinh/GrandmasterZero
58365890fe2b0145344f17be5fb59e08c8f1993a
[ "MIT" ]
null
null
null
import pprint import time import chess.pgn import IPython.display as display import ipywidgets as widgets def who(player): return 'White' if player == chess.WHITE else 'Black' def get_last_move_san_from_board(board): if len(board.move_stack) == 0: return chess.Move.null() else: last_mov...
32.58
79
0.575609
563
4,887
4.801066
0.207815
0.057714
0.031077
0.044025
0.353681
0.333703
0.290418
0.27044
0.244543
0.217906
0
0.004479
0.314713
4,887
149
80
32.798658
0.802628
0
0
0.346457
0
0
0.067935
0
0
0
0
0
0
1
0.07874
false
0
0.03937
0.007874
0.19685
0.07874
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
efb0224997c2a73db24a06482baa1e76838ea1f0
2,904
py
Python
query.py
urmi-21/COVID-biorxiv
6dfe713c2634197b6c9983eb2aa3fa6676f7d045
[ "MIT" ]
2
2020-06-29T16:55:17.000Z
2020-09-21T14:00:16.000Z
query.py
urmi-21/COVID-biorxiv
6dfe713c2634197b6c9983eb2aa3fa6676f7d045
[ "MIT" ]
null
null
null
query.py
urmi-21/COVID-biorxiv
6dfe713c2634197b6c9983eb2aa3fa6676f7d045
[ "MIT" ]
1
2020-09-21T14:00:23.000Z
2020-09-21T14:00:23.000Z
import sys import json import requests import subprocess from datetime import datetime #dict storing data collection={} def execute_commandRealtime(cmd): """Execute shell command and print stdout in realtime. Function taken from pyrpipe Singh et.al. 2020 usage: for output in execute_commandRealtime(['...
25.034483
82
0.64084
376
2,904
4.87234
0.393617
0.010917
0.019651
0.021288
0.077511
0.065502
0.065502
0.065502
0.065502
0.065502
0
0.008877
0.224174
2,904
115
83
25.252174
0.804261
0.212121
0
0.086957
0
0
0.123922
0
0
0
0
0
0
1
0.115942
false
0
0.072464
0
0.26087
0.15942
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
efb3562ab2f0bc0a7a96ac315758b6464fb9c4ea
1,336
py
Python
core/server/wx_handler.py
Maru-zhang/FilmHub-Tornado
870da52cec65920565439d2d5bb1424ae614665d
[ "Apache-2.0" ]
2
2017-07-19T01:24:05.000Z
2017-07-19T09:12:46.000Z
core/server/wx_handler.py
Maru-zhang/FilmHub-Tornado
870da52cec65920565439d2d5bb1424ae614665d
[ "Apache-2.0" ]
null
null
null
core/server/wx_handler.py
Maru-zhang/FilmHub-Tornado
870da52cec65920565439d2d5bb1424ae614665d
[ "Apache-2.0" ]
1
2017-07-28T09:31:42.000Z
2017-07-28T09:31:42.000Z
import tornado.web from core.logger_helper import logger from core.server.wxauthorize import WxConfig from core.server.wxauthorize import WxAuthorServer from core.cache.tokencache import TokenCache class WxHandler(tornado.web.RequestHandler): """ 微信handler处理类 """ '''微信配置文件''' wx_config = WxConfig...
32.585366
91
0.569611
128
1,336
5.773438
0.414063
0.043302
0.069012
0.067659
0.083897
0
0
0
0
0
0
0
0.312126
1,336
40
92
33.4
0.804135
0.051647
0
0
0
0
0.107293
0.071249
0
0
0
0
0
1
0.041667
false
0
0.208333
0
0.416667
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
efb4030a249dafcb2be0137ce898a4f573bed62c
2,771
py
Python
Recipes/Convert_Files_Into_JSON_And_CSV/Mapping_JsonToCsvConverter.py
Lotame/DataStream_Cookbook
3ec7ded6bd1e3a59fa4d06bb76e81be9da9c97a6
[ "MIT" ]
1
2022-02-28T10:40:53.000Z
2022-02-28T10:40:53.000Z
Recipes/Convert_Files_Into_JSON_And_CSV/Mapping_JsonToCsvConverter.py
Lotame/DataStream_Cookbook
3ec7ded6bd1e3a59fa4d06bb76e81be9da9c97a6
[ "MIT" ]
2
2021-01-08T17:51:10.000Z
2021-03-29T11:36:07.000Z
Recipes/Convert_Files_Into_JSON_And_CSV/Mapping_JsonToCsvConverter.py
Lotame/DataStream_Cookbook
3ec7ded6bd1e3a59fa4d06bb76e81be9da9c97a6
[ "MIT" ]
3
2020-01-26T23:31:23.000Z
2022-02-18T19:29:30.000Z
#!/usr/bin/python # # Write in Python3.6 # Filename: # # Mapping_JsonToCsvExtractor.py # # # Basic Usage: # # python Mapping_JsonToCsvExtractor.py /directory/containing/datastream/mapping/json/files # # Utilities import sys import os import json import argparse def writeCsvHeader(delimiter, csv_file, *args):...
35.987013
125
0.631902
373
2,771
4.552279
0.289544
0.035336
0.025913
0.037691
0.143698
0.053004
0.053004
0.053004
0.053004
0
0
0.003846
0.249368
2,771
76
126
36.460526
0.8125
0.114399
0
0.08
0
0
0.221083
0
0
0
0
0
0
1
0.06
false
0
0.08
0
0.14
0.06
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
efb55216c30cf2837e4576480260417e73138279
4,088
py
Python
main.py
DayvsonAlmeida/Programa-o-Gen-tica
6edaceab99c61f55f4157e81fcf7cbad580f81d1
[ "MIT" ]
null
null
null
main.py
DayvsonAlmeida/Programa-o-Gen-tica
6edaceab99c61f55f4157e81fcf7cbad580f81d1
[ "MIT" ]
null
null
null
main.py
DayvsonAlmeida/Programa-o-Gen-tica
6edaceab99c61f55f4157e81fcf7cbad580f81d1
[ "MIT" ]
null
null
null
from utils import initialize from pandas import DataFrame from genetic import GA import numpy as np import argparse import random import time import sys sys.setrecursionlimit(2000) random.seed(time.time()) parser = argparse.ArgumentParser() parser.add_argument('--mr', help='Mutation Rate') parser.add_argu...
40.88
107
0.634785
638
4,088
3.965517
0.211599
0.066403
0.042688
0.047431
0.267589
0.25415
0.251383
0.204743
0.192095
0.192095
0
0.06556
0.130626
4,088
99
108
41.292929
0.646314
0.128669
0
0
0
0
0.146674
0
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
efc4891e8e505e8dc24f5447323153c9667f9326
1,220
py
Python
file-convertors/pdf-to-image/pdf_to_image.py
fraserlove/python-productivity-scripts
4a667446250042b01e307c7e4be53defc905207e
[ "MIT" ]
null
null
null
file-convertors/pdf-to-image/pdf_to_image.py
fraserlove/python-productivity-scripts
4a667446250042b01e307c7e4be53defc905207e
[ "MIT" ]
null
null
null
file-convertors/pdf-to-image/pdf_to_image.py
fraserlove/python-productivity-scripts
4a667446250042b01e307c7e4be53defc905207e
[ "MIT" ]
null
null
null
''' PDF to Image Converter Author: Fraser Love, me@fraser.love Created: 2020-06-13 Latest Release: v1.0.1, 2020-06-21 Python: v3.6.9 Dependancies: pdf2image Converts multiple pdf's to images (JPEG format) and stores them in a logical folder structure under the desired image directory. Usage: Update the pdf_dir and img...
36.969697
128
0.694262
195
1,220
4.2
0.446154
0.076923
0.04884
0.054945
0.086691
0.063492
0.063492
0
0
0
0
0.027136
0.184426
1,220
33
129
36.969697
0.79598
0.439344
0
0
0
0
0.088757
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
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
efc5229f2a8966dc64e04e1c67caf2f4bee4df93
4,217
py
Python
tests/test/search/test_references_searcher_string.py
watermelonwolverine/fvttmv
8689d47d1f904dd2bf0a083de515fda65713c460
[ "MIT" ]
1
2022-03-30T19:12:14.000Z
2022-03-30T19:12:14.000Z
tests/test/search/test_references_searcher_string.py
watermelonwolverine/fvttmv
8689d47d1f904dd2bf0a083de515fda65713c460
[ "MIT" ]
null
null
null
tests/test/search/test_references_searcher_string.py
watermelonwolverine/fvttmv
8689d47d1f904dd2bf0a083de515fda65713c460
[ "MIT" ]
null
null
null
from fvttmv.exceptions import FvttmvException from fvttmv.reference_tools import ReferenceTools from fvttmv.search.__references_searcher_string import ReferencesSearcherString from test.common import TestCase class ReferencesSearcherStringTest(TestCase): json_base_str = "\"img\":\"{0}\"" html_base_str = "<img...
40.548077
96
0.591653
381
4,217
6.183727
0.136483
0.102716
0.066214
0.093379
0.771222
0.546689
0.546689
0.48472
0.48472
0.370119
0
0.007894
0.339104
4,217
103
97
40.941748
0.83746
0
0
0.418919
0
0
0.114774
0.082286
0
0
0
0
0.148649
1
0.162162
false
0.013514
0.054054
0
0.297297
0.162162
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
efc64b0b3d469f8a4e23675a9039dc1fed37be48
4,999
py
Python
vtk.py
becklabs/geotag-gui
c8b1c3a0c6ca0c3eed09fab69d9dbb8b974b1b03
[ "MIT" ]
null
null
null
vtk.py
becklabs/geotag-gui
c8b1c3a0c6ca0c3eed09fab69d9dbb8b974b1b03
[ "MIT" ]
null
null
null
vtk.py
becklabs/geotag-gui
c8b1c3a0c6ca0c3eed09fab69d9dbb8b974b1b03
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Aug 19 19:50:43 2020 @author: beck """ import cv2 import datetime import dateparser import os import sys import pandas as pd import pytz from hachoir.parser import createParser from hachoir.metadata import extractMetadata from PIL import Image import numpy as...
35.707143
102
0.619324
609
4,999
4.990148
0.333333
0.026324
0.009872
0.026324
0.102994
0.052978
0.036196
0
0
0
0
0.02043
0.255851
4,999
140
103
35.707143
0.796505
0.035207
0
0.035714
0
0
0.044521
0.005993
0
0
0
0
0
1
0.080357
false
0
0.142857
0
0.294643
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
efc6952d49bfc96baa0e1e3a017cc887fba50c18
4,237
py
Python
ROS_fall_detection/src/detector.py
SeanChen0220/Posefall
f27eedc0a624cc2875d14ffa276cf96cdfc1b410
[ "MIT" ]
15
2021-08-08T08:41:54.000Z
2022-03-30T10:12:49.000Z
ROS_fall_detection/src/detector.py
SeanChen0220/Posefall
f27eedc0a624cc2875d14ffa276cf96cdfc1b410
[ "MIT" ]
1
2021-11-24T16:51:51.000Z
2021-12-03T06:20:11.000Z
ROS_fall_detection/src/detector.py
SeanChen0220/Posefall
f27eedc0a624cc2875d14ffa276cf96cdfc1b410
[ "MIT" ]
3
2021-08-08T08:41:55.000Z
2022-03-15T07:28:53.000Z
#! /home/seanchen/anaconda3/bin/python from __future__ import absolute_import from __future__ import division from __future__ import print_function #import sys import rospy from std_msgs.msg import String import torch import torch.nn.parallel import torch.nn.functional as F import numpy as np import cv2 from LPN impor...
35.605042
99
0.630399
597
4,237
4.246231
0.319933
0.06075
0.017357
0.022091
0.136095
0.126627
0.090335
0.090335
0.074951
0.074951
0
0.029611
0.234836
4,237
118
100
35.90678
0.752313
0.203446
0
0.0375
0
0
0.058032
0.031708
0
0
0
0
0
1
0.0125
false
0.0125
0.225
0
0.2375
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
efc705c5b7dd44b358486c8f4931ee3c4faede41
3,696
py
Python
tensorflow1.x/sound_conv.py
wikeex/tensorflow-learning
a6ab7c99455711e9f3c015e0abb04fa58342e0cb
[ "MIT" ]
null
null
null
tensorflow1.x/sound_conv.py
wikeex/tensorflow-learning
a6ab7c99455711e9f3c015e0abb04fa58342e0cb
[ "MIT" ]
null
null
null
tensorflow1.x/sound_conv.py
wikeex/tensorflow-learning
a6ab7c99455711e9f3c015e0abb04fa58342e0cb
[ "MIT" ]
null
null
null
import tensorflow as tf from sound_lstm_test import data batch_size = 10 x = tf.placeholder(tf.float32, [batch_size, 512, 80]) y_ = tf.placeholder(tf.float32, [batch_size, 59]) w_conv1 = tf.Variable(tf.truncated_normal([16, 2, 1, 64], stddev=0.1), name='conv1_w') b_conv1 = tf.Variable(tf.constant(0.1, shape=[64]), n...
44.53012
116
0.717532
639
3,696
3.890454
0.189358
0.014481
0.038616
0.058327
0.497989
0.343926
0.216412
0.172969
0.119871
0.092518
0
0.073661
0.125812
3,696
82
117
45.073171
0.69576
0
0
0
0
0
0.02868
0
0
0
0
0
0
1
0
false
0
0.033333
0
0.033333
0.016667
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
efc7a9d58bb127091a58a8679f3c1f9062aeca6a
3,123
py
Python
src/ensae_projects/datainc/data_medical.py
sdpython/ensae_projects
9647751da053c09fa35402527b294e02a4e6e2ad
[ "MIT" ]
1
2020-11-22T10:24:54.000Z
2020-11-22T10:24:54.000Z
src/ensae_projects/datainc/data_medical.py
sdpython/ensae_projects
9647751da053c09fa35402527b294e02a4e6e2ad
[ "MIT" ]
13
2017-11-20T00:20:45.000Z
2021-01-05T14:13:51.000Z
src/ensae_projects/datainc/data_medical.py
sdpython/ensae_projects
9647751da053c09fa35402527b294e02a4e6e2ad
[ "MIT" ]
null
null
null
""" @file @brief Functions to handle data coming from :epkg:`Cancer Imaging Archive`. """ import os import pydicom import pandas import cv2 from pyquickhelper.filehelper.synchelper import explore_folder_iterfile # pylint: disable=C0411 def _recurse_fill(obs, dataset, parent=""): for data_element in dataset: ...
33.945652
96
0.565802
376
3,123
4.566489
0.340426
0.027956
0.0629
0.025626
0.09668
0.076878
0.076878
0.076878
0
0
0
0.012015
0.307077
3,123
91
97
34.318681
0.781423
0.148255
0
0.15873
0
0
0.116564
0
0
0
0
0
0
1
0.031746
false
0
0.079365
0
0.126984
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
efcb531829013e0d275069585a78eef303453aa5
851
py
Python
dfirtrack_api/serializers.py
0xflotus/dfirtrack
632ebe582c2b40a4ac4b9fb12b7a118c2c49ede5
[ "MIT" ]
4
2020-03-06T17:37:09.000Z
2020-03-17T07:50:55.000Z
dfirtrack_api/serializers.py
0xflotus/dfirtrack
632ebe582c2b40a4ac4b9fb12b7a118c2c49ede5
[ "MIT" ]
null
null
null
dfirtrack_api/serializers.py
0xflotus/dfirtrack
632ebe582c2b40a4ac4b9fb12b7a118c2c49ede5
[ "MIT" ]
1
2020-03-06T20:54:52.000Z
2020-03-06T20:54:52.000Z
from rest_framework import serializers from dfirtrack_main.models import System, Systemtype class SystemtypeSerializer(serializers.ModelSerializer): """ create serializer for systemtype (needed because of foreignkey relationsship) """ class Meta: model = Systemtype # attributes made available...
27.451613
89
0.654524
78
851
7.051282
0.487179
0.070909
0.116364
0.152727
0.489091
0.349091
0.221818
0.221818
0
0
0
0
0.274971
851
30
90
28.366667
0.89141
0.296122
0
0.222222
0
0
0.09589
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.388889
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
efd02e3f34305859967db711ac4399efc0f26e99
7,489
py
Python
corrct/utils_proc.py
cicwi/PyCorrectedEmissionCT
424449e1879a03cdbb8910c806417962e5b9faff
[ "BSD-3-Clause" ]
3
2020-12-08T17:09:08.000Z
2022-01-21T22:46:56.000Z
corrct/utils_proc.py
cicwi/PyCorrectedEmissionCT
424449e1879a03cdbb8910c806417962e5b9faff
[ "BSD-3-Clause" ]
11
2021-03-19T11:34:34.000Z
2022-03-31T13:22:02.000Z
corrct/utils_proc.py
cicwi/PyCorrectedEmissionCT
424449e1879a03cdbb8910c806417962e5b9faff
[ "BSD-3-Clause" ]
1
2021-03-11T18:27:48.000Z
2021-03-11T18:27:48.000Z
# -*- coding: utf-8 -*- """ Created on Tue Mar 24 15:25:14 2020 @author: Nicola VIGANÒ, Computational Imaging group, CWI, The Netherlands, and ESRF - The European Synchrotron, Grenoble, France """ import numpy as np from . import operators from . import solvers def get_circular_mask(vol_shape, radius_offset=0, coo...
37.633166
120
0.667646
1,055
7,489
4.582938
0.225592
0.028956
0.040538
0.019648
0.210341
0.18242
0.136298
0.136298
0.113961
0.113961
0
0.016388
0.217786
7,489
198
121
37.823232
0.808979
0.409
0
0.190476
0
0.011905
0.034558
0
0
0
0
0
0
1
0.083333
false
0
0.035714
0
0.214286
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
efd1c5307f2a5343f619264248d49a40d7ec14ee
675
py
Python
84.py
gdmanandamohon/leetcode
a691a4e37ee1fdad69c710e3710c5faf8b0a7d76
[ "MIT" ]
null
null
null
84.py
gdmanandamohon/leetcode
a691a4e37ee1fdad69c710e3710c5faf8b0a7d76
[ "MIT" ]
null
null
null
84.py
gdmanandamohon/leetcode
a691a4e37ee1fdad69c710e3710c5faf8b0a7d76
[ "MIT" ]
null
null
null
''' @author: l4zyc0d3r People who are happy makes other happy. I am gonna finish it slowly but definitely.cdt ''' class Solution: def largestRectangleArea(self, H: List[int]) -> int: st, mx, i = [], 0, 0 while i<len(H): if len(st)==0 or H[st[-1]]<=H[i]: st.append(i) ...
29.347826
86
0.422222
100
675
2.85
0.4
0.070175
0.073684
0.049123
0.259649
0.259649
0.259649
0.259649
0.259649
0.259649
0
0.036176
0.426667
675
22
87
30.681818
0.700258
0.157037
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.055556
false
0
0
0
0.166667
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
efd28e21b75921adf9dd8a8cb27c1319019eacfc
402
py
Python
delete_event.py
garymcwilliams/py-google-calendar
546b412f0ffc1bdc9a81868bddf4de18a0c20899
[ "Apache-2.0" ]
null
null
null
delete_event.py
garymcwilliams/py-google-calendar
546b412f0ffc1bdc9a81868bddf4de18a0c20899
[ "Apache-2.0" ]
1
2021-04-30T20:59:15.000Z
2021-04-30T20:59:15.000Z
delete_event.py
garymcwilliams/py-google-calendar
546b412f0ffc1bdc9a81868bddf4de18a0c20899
[ "Apache-2.0" ]
null
null
null
from cal_setup import get_calendar_service def main(): # Delete the event service = get_calendar_service() try: service.events().delete( calendarId='primary', eventId='njdev79d574rdmkv0180t7t7lo', ).execute() except googleapiclient.errors.HttpError: print("Failed ...
23.647059
48
0.659204
41
402
6.146341
0.707317
0.087302
0.142857
0
0
0
0
0
0
0
0
0.035714
0.233831
402
17
49
23.647059
0.782468
0.039801
0
0
0
0
0.197403
0.067532
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.153846
0.153846
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
efd30ee41ca03d2e23b35a990fdeba3358b3d6c7
15,351
py
Python
pycdp/asyncio.py
HMaker/python-chrome-devtools-protocol
a9646a1c4e172ce458c15e2fcb3860ca8c9b4599
[ "MIT" ]
null
null
null
pycdp/asyncio.py
HMaker/python-chrome-devtools-protocol
a9646a1c4e172ce458c15e2fcb3860ca8c9b4599
[ "MIT" ]
null
null
null
pycdp/asyncio.py
HMaker/python-chrome-devtools-protocol
a9646a1c4e172ce458c15e2fcb3860ca8c9b4599
[ "MIT" ]
null
null
null
from __future__ import annotations import json import asyncio import itertools import typing as t from collections import defaultdict from contextlib import asynccontextmanager from aiohttp import ClientSession from aiohttp.client import ClientWebSocketResponse from aiohttp.http_websocket import WSMsgType, WSCloseCode ...
35.7
123
0.614162
1,779
15,351
5.093311
0.205734
0.023838
0.014899
0.010484
0.181547
0.13387
0.111246
0.077033
0.077033
0.059817
0
0.003712
0.297961
15,351
429
124
35.783217
0.83706
0.109048
0
0.214789
0
0.003521
0.055221
0.010962
0
0
0
0
0
1
0.080986
false
0.014085
0.045775
0.021127
0.221831
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
efd3aea1c3cf0426d8d1f43ef851162a882e6a5f
7,680
py
Python
src/manager/om/script/gspylib/inspection/items/cluster/CheckSpecialFile.py
wotchin/openGauss-server
ebd92e92b0cfd76b121d98e4c57a22d334573159
[ "MulanPSL-1.0" ]
1
2020-06-30T15:00:50.000Z
2020-06-30T15:00:50.000Z
src/manager/om/script/gspylib/inspection/items/cluster/CheckSpecialFile.py
wotchin/openGauss-server
ebd92e92b0cfd76b121d98e4c57a22d334573159
[ "MulanPSL-1.0" ]
null
null
null
src/manager/om/script/gspylib/inspection/items/cluster/CheckSpecialFile.py
wotchin/openGauss-server
ebd92e92b0cfd76b121d98e4c57a22d334573159
[ "MulanPSL-1.0" ]
null
null
null
# -*- coding:utf-8 -*- # Copyright (c) 2020 Huawei Technologies Co.,Ltd. # # openGauss is licensed under Mulan PSL v2. # You can use this software according to the terms # and conditions of the Mulan PSL v2. # You may obtain a copy of Mulan PSL v2 at: # # http://license.coscl.org.cn/MulanPSL2 # # THIS SOFTWARE...
37.101449
78
0.552344
745
7,680
5.656376
0.303356
0.011391
0.009492
0.019934
0.232795
0.164689
0.130517
0.106312
0.055055
0.017561
0
0.005995
0.326693
7,680
206
79
37.281553
0.808934
0.132422
0
0.357143
0
0
0.057707
0.007561
0
0
0
0
0
1
0.051948
false
0
0.045455
0
0.175325
0.006494
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
efd3f9d1de68654dbc76d3fbfef70bcad64b263b
585
py
Python
main/methods/analysis.py
hannxiao/autotrade2
8e6f3d463334b6ea8a18074de58e25c0dab93f39
[ "MIT" ]
null
null
null
main/methods/analysis.py
hannxiao/autotrade2
8e6f3d463334b6ea8a18074de58e25c0dab93f39
[ "MIT" ]
6
2020-06-06T01:05:02.000Z
2021-12-13T20:42:16.000Z
main/methods/analysis.py
hannxiao/autotrade
8e6f3d463334b6ea8a18074de58e25c0dab93f39
[ "MIT" ]
null
null
null
from . import toolFuncs def DefineTrend(data, K): ''' Filter all the trend whose range less than K% ''' pairs = list(zip(data['Date'], data['Close'])) is_extreme = toolFuncs.extreme_point(data['Close'], K, recognition_method='height') output = [pairs[i] for i...
32.5
98
0.529915
64
585
4.765625
0.6875
0.088525
0
0
0
0
0
0
0
0
0
0.002463
0.305983
585
17
99
34.411765
0.748768
0.076923
0
0
0
0
0.179732
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
efd40da6f7f764459934c721ccc5ec880311c2e3
607
py
Python
FaceClassify/losses/TripletMarginLoss.py
CharlesPikachu/CharlesFace
90bfe38c58068228d0069dce43b55b2570acaa16
[ "MIT" ]
13
2018-05-23T07:07:28.000Z
2021-05-28T07:37:30.000Z
FaceClassify/losses/TripletMarginLoss.py
CharlesPikachu/CharlesFace
90bfe38c58068228d0069dce43b55b2570acaa16
[ "MIT" ]
null
null
null
FaceClassify/losses/TripletMarginLoss.py
CharlesPikachu/CharlesFace
90bfe38c58068228d0069dce43b55b2570acaa16
[ "MIT" ]
null
null
null
# Author: # Charles # Function: # Triplet loss function. import torch from torch.autograd import Function import sys sys.path.append('../') from utils.utils import * class TripletMarginLoss(Function): def __init__(self, margin): super(TripletMarginLoss, self).__init__() self.margin = margin # norm 2 self.p...
26.391304
66
0.744646
82
607
5.341463
0.463415
0.068493
0.063927
0.100457
0
0
0
0
0
0
0
0.007648
0.138386
607
23
67
26.391304
0.829828
0.093904
0
0
0
0
0.005505
0
0
0
0
0
0
1
0.125
false
0
0.25
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
efd461c9230c324e2c8e6e92be4631dc26caa578
768
py
Python
DailyProgrammer/20120316A.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
2
2020-12-23T18:59:22.000Z
2021-04-14T13:16:09.000Z
DailyProgrammer/20120316A.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
DailyProgrammer/20120316A.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
""" you have a string "ddaaiillyypprrooggrraammeerr". We want to remove all the consecutive duplicates and put them in a separate string, which yields two separate instances of the string "dailyprogramer". use this list for testing: input: "balloons" expected output: "balons" "lo" input: "ddaaiillyypprrooggrraammeerr"...
25.6
116
0.69401
98
768
5.438776
0.571429
0.105066
0.030019
0
0
0
0
0
0
0
0
0
0.173177
768
30
117
25.6
0.83937
0.63151
0
0
0
0
0.213768
0.101449
0
0
0
0
0
1
0
false
0
0
0
0
0.230769
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
efd60ec0f5dfed774930cf3e30f7572bed405c2b
6,485
py
Python
src/preppipe/enginesupport/enginesupport.py
PrepPipe/preppipe-python
6fc547a539737ec37a7528eb97ce92e56d4f404a
[ "Apache-2.0" ]
1
2022-02-28T03:34:57.000Z
2022-02-28T03:34:57.000Z
src/preppipe/enginesupport/enginesupport.py
PrepPipe/preppipe-python
6fc547a539737ec37a7528eb97ce92e56d4f404a
[ "Apache-2.0" ]
null
null
null
src/preppipe/enginesupport/enginesupport.py
PrepPipe/preppipe-python
6fc547a539737ec37a7528eb97ce92e56d4f404a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import typing import PIL.Image from enum import Enum import re import preppipe.commontypes from preppipe.vnmodel import * class EngineSupport: """All engine support classes inherit this class, so that we can use reflection to query all supported engines""" pass # we define a...
32.918782
143
0.665998
876
6,485
4.726027
0.211187
0.04058
0.036232
0.019324
0.353865
0.299517
0.278019
0.250725
0.215942
0.215942
0
0.003808
0.230686
6,485
197
144
32.918782
0.826017
0.212799
0
0.297521
0
0
0.016529
0
0
0
0
0
0.033058
1
0.140496
false
0.008264
0.049587
0.041322
0.363636
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
efd8cec6101a750931dee27419124950274496b7
3,422
py
Python
upload.py
woodlords/nftmaker-pro-scripts
86e1eef0d297bf9589d56272b1edea9bb3e18612
[ "Apache-2.0" ]
2
2022-02-09T17:48:33.000Z
2022-02-12T08:18:42.000Z
upload.py
woodlords/nftmaker-pro-scripts
86e1eef0d297bf9589d56272b1edea9bb3e18612
[ "Apache-2.0" ]
null
null
null
upload.py
woodlords/nftmaker-pro-scripts
86e1eef0d297bf9589d56272b1edea9bb3e18612
[ "Apache-2.0" ]
null
null
null
from pprint import pprint import requests import base64 import json import argparse import sys p = argparse.ArgumentParser(description="New") p.add_argument('-f','--folder-name', required=True, help='Folder name of the images/metadata files') p.add_argument('-s','--start', required=False, help='Start ID to upload') p...
30.553571
136
0.648159
453
3,422
4.743929
0.362031
0.02792
0.022336
0.037692
0.094928
0.026989
0
0
0
0
0
0.018738
0.235827
3,422
111
137
30.828829
0.803059
0.09848
0
0.046512
0
0
0.176911
0.014959
0
0
0
0
0
1
0.069767
false
0
0.069767
0
0.174419
0.05814
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
efdf05259aeb476a54f281ec506c8577fe42f662
17,015
py
Python
app/common/helper.py
lguobin/KB_API
f7180cf430cb8de2eac8fa78e3937666da950c7a
[ "Apache-2.0" ]
null
null
null
app/common/helper.py
lguobin/KB_API
f7180cf430cb8de2eac8fa78e3937666da950c7a
[ "Apache-2.0" ]
null
null
null
app/common/helper.py
lguobin/KB_API
f7180cf430cb8de2eac8fa78e3937666da950c7a
[ "Apache-2.0" ]
null
null
null
# from app.common.utils import * from sqlalchemy import desc from settings import Config from app.models import * from app.extensions import db from app.models.base import _BaseModel from app.common.message import DBError # 获取分页数据 def Pages(_request, _TABLE, _filter=None): page = get_page_value(_request) per...
33.759921
132
0.53253
1,753
17,015
4.885339
0.127211
0.052546
0.019617
0.024404
0.488907
0.450257
0.414176
0.399813
0.359995
0.326483
0
0.009443
0.352689
17,015
504
133
33.759921
0.768113
0.017455
0
0.457921
0
0
0.085783
0.001676
0
0
0
0
0
1
0.071782
false
0.004951
0.024752
0.007426
0.207921
0.004951
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
efe1e27548d4a791c0325857f9e7735c777989c1
2,635
py
Python
decisive/__init__.py
decisive/api-demo-python
58cd14e9e1f6373a3cd927536fd29f5f286940a0
[ "MIT" ]
null
null
null
decisive/__init__.py
decisive/api-demo-python
58cd14e9e1f6373a3cd927536fd29f5f286940a0
[ "MIT" ]
null
null
null
decisive/__init__.py
decisive/api-demo-python
58cd14e9e1f6373a3cd927536fd29f5f286940a0
[ "MIT" ]
null
null
null
import requests import requests.exceptions import datetime import ujson as json import logging class DecisiveApiClient(object): HOST = 'https://ads.decisive.is'.strip('/') def __init__(self, api_key, host=None): self.session = requests.Session() self.session.auth = (api_key,'') s...
38.188406
88
0.603036
323
2,635
4.758514
0.334365
0.042941
0.023422
0.03123
0.16851
0.15745
0.106701
0.053351
0.053351
0
0
0
0.274383
2,635
68
89
38.75
0.80387
0.045541
0
0.111111
0
0
0.044206
0
0
0
0
0
0
1
0.166667
false
0
0.092593
0.018519
0.444444
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
efe41b6dc8f659359b1e12cb86ef509b2e8e51a8
38,284
py
Python
app/main/views/service_settings.py
karlchillmaid/notifications-admin
9ef6da4ef9e2fa97b7debb4b573cb035a5cb8880
[ "MIT" ]
null
null
null
app/main/views/service_settings.py
karlchillmaid/notifications-admin
9ef6da4ef9e2fa97b7debb4b573cb035a5cb8880
[ "MIT" ]
null
null
null
app/main/views/service_settings.py
karlchillmaid/notifications-admin
9ef6da4ef9e2fa97b7debb4b573cb035a5cb8880
[ "MIT" ]
null
null
null
from flask import ( abort, current_app, flash, redirect, render_template, request, session, url_for, ) from flask_login import current_user, login_required from notifications_python_client.errors import HTTPError from notifications_utils.field import Field from notifications_utils.format...
37.132881
119
0.709252
4,709
38,284
5.398598
0.063708
0.087798
0.054756
0.044371
0.702226
0.633506
0.586264
0.543191
0.495044
0.428881
0
0.000925
0.180754
38,284
1,030
120
37.168932
0.809623
0.009116
0
0.389412
0
0.025882
0.212276
0.121417
0.001176
0
0
0.000971
0
1
0.062353
false
0.004706
0.010588
0.010588
0.168235
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
efe457cbb3f9ed9d770c24aeb1ca7014a5e1296d
3,094
py
Python
doctools/spelling.py
Sketch98/oil
2d5c51432b9699e48178236da2e5b3bf1a33d79f
[ "Apache-2.0" ]
null
null
null
doctools/spelling.py
Sketch98/oil
2d5c51432b9699e48178236da2e5b3bf1a33d79f
[ "Apache-2.0" ]
null
null
null
doctools/spelling.py
Sketch98/oil
2d5c51432b9699e48178236da2e5b3bf1a33d79f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 """ spelling.py Filter the output of 'lynx -dump' into a list of words to spell check. """ from __future__ import print_function from collections import Counter import optparse import re import sys def log(msg, *args): if args: msg = msg % args print(msg, file=sys.stderr) def SplitW...
21.636364
80
0.591791
440
3,094
4.090909
0.402273
0.033333
0.013333
0.014444
0.121111
0.067778
0.067778
0.067778
0.067778
0.067778
0
0.007545
0.271816
3,094
142
81
21.788732
0.791389
0.184874
0
0.209302
0
0
0.164796
0.017642
0
0
0
0
0
1
0.05814
false
0
0.05814
0
0.127907
0.22093
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
efe4b76066b7fc615a3d5cb419d39e72b57d7593
20,659
py
Python
train_deep_ls.py
Kamysek/DeepLocalShapes
24ee92889381d40acbb5ad1c7c8abb512a8c26b5
[ "MIT" ]
4
2021-09-23T11:36:30.000Z
2022-02-23T20:10:46.000Z
train_deep_ls.py
Kamysek/DeepLocalShapes
24ee92889381d40acbb5ad1c7c8abb512a8c26b5
[ "MIT" ]
null
null
null
train_deep_ls.py
Kamysek/DeepLocalShapes
24ee92889381d40acbb5ad1c7c8abb512a8c26b5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Based on: https://github.com/facebookresearch/DeepSDF using MIT LICENSE (https://github.com/facebookresearch/DeepSDF/blob/master/LICENSE) # Copyright 2021-present Philipp Friedrich, Josef Kamysek. All Rights Reserved. import functools import json import logging import math import os import sig...
32.330203
182
0.628588
2,467
20,659
4.978111
0.19092
0.04796
0.015227
0.016122
0.261624
0.163342
0.137122
0.108786
0.084358
0.060419
0
0.00666
0.27315
20,659
638
183
32.380878
0.811201
0.070236
0
0.121896
0
0
0.111042
0.001251
0
0
0
0.001567
0
1
0.056433
false
0.002257
0.040632
0.006772
0.137698
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
efe8537711357e13e0aa907bd882c404ad86cc4e
988
py
Python
interface.py
robotafm/motor
1c0838db12514304b930aec976d7adcbc51b7c92
[ "MIT" ]
null
null
null
interface.py
robotafm/motor
1c0838db12514304b930aec976d7adcbc51b7c92
[ "MIT" ]
null
null
null
interface.py
robotafm/motor
1c0838db12514304b930aec976d7adcbc51b7c92
[ "MIT" ]
null
null
null
# /robotafm/motor/interface.py # Main web interface, contains basic # information display # imports: import xml.dom.minidom from flask import Flask, render_template # constants: LANG = "./lang/rus.xml" # XML: load text strings from language file dom = xml.dom.minidom.parse(LANG) main_title = dom.getElem...
29.058824
87
0.709514
117
988
5.837607
0.384615
0.168375
0.087848
0.153734
0
0
0
0
0
0
0
0.01218
0.169028
988
33
88
29.939394
0.819732
0.175101
0
0
0
0
0.09715
0
0
0
0
0
0
1
0.052632
false
0
0.105263
0.052632
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
efed594b93f7036fd9e0fbb23d74fff628cd47d4
922
py
Python
CountingValleys/ValleyCounter.py
monemonesi/TDD_Katas_Python
f21a4f3516b75d7618dcd044453e25be015b4251
[ "MIT" ]
null
null
null
CountingValleys/ValleyCounter.py
monemonesi/TDD_Katas_Python
f21a4f3516b75d7618dcd044453e25be015b4251
[ "MIT" ]
null
null
null
CountingValleys/ValleyCounter.py
monemonesi/TDD_Katas_Python
f21a4f3516b75d7618dcd044453e25be015b4251
[ "MIT" ]
null
null
null
UP = "U" DOWN = "D" ALLOWED_PATH_I = [UP, DOWN] def update_high_for_step(high: int, step: str) -> int: """Update the current high given a step""" if step == UP: high += 1 elif step == DOWN: high -= 1 return high def update_valley_count(valleys_count: int, high: int, pre...
27.117647
83
0.611714
129
922
4.209302
0.333333
0.110497
0.047882
0.062615
0.077348
0
0
0
0
0
0
0.012214
0.289588
922
33
84
27.939394
0.816794
0.117137
0
0
0
0
0.045455
0
0
0
0
0
0
1
0.125
false
0
0
0
0.25
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
efee15be03037d97374bea9c4059f5490403f268
682
py
Python
Tree/Leetcode 226. Invert Binary Tree.py
kaizhengny/LeetCode
67d64536ab80f4966699fe7460d165f2a98d6a82
[ "MIT" ]
31
2020-06-23T00:40:04.000Z
2022-01-08T11:06:24.000Z
Tree/Leetcode 226. Invert Binary Tree.py
kaizhengny/LeetCode
67d64536ab80f4966699fe7460d165f2a98d6a82
[ "MIT" ]
null
null
null
Tree/Leetcode 226. Invert Binary Tree.py
kaizhengny/LeetCode
67d64536ab80f4966699fe7460d165f2a98d6a82
[ "MIT" ]
7
2020-04-30T08:46:03.000Z
2021-08-28T16:25:54.000Z
class Solution: def invertTree(self, root: TreeNode) -> TreeNode: if not root: return root root.left, root.right = root.right, root.left self.invertTree(root.left) self.invertTree(root.right) return root class Solution: def invertTree(self, root: TreeNode) -> TreeNode: ...
29.652174
56
0.541056
79
682
4.670886
0.253165
0.086721
0.086721
0.140921
0.482385
0.352304
0.352304
0.352304
0.352304
0.352304
0
0
0.365103
682
23
57
29.652174
0.852194
0
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.095238
false
0
0
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
efee470e855ae2a217e0a35720dd990d8a0f3c8b
333
py
Python
Ex044.py
JeanPauloGarcia/Python-Exercicios
faff4670806c423680ee00a88d3c4c49b437e72e
[ "MIT" ]
null
null
null
Ex044.py
JeanPauloGarcia/Python-Exercicios
faff4670806c423680ee00a88d3c4c49b437e72e
[ "MIT" ]
null
null
null
Ex044.py
JeanPauloGarcia/Python-Exercicios
faff4670806c423680ee00a88d3c4c49b437e72e
[ "MIT" ]
null
null
null
preço = float(input('Preço: ')) print('''Preencha a forma de pagamento com: 1 - p/ À VISTA 2 - p/ CARTÃO 1x 3 - p/ CARTÃO 2x 4 - p/ CARTÃO 3x ou mais ''') pagto = str(input('Pagamento: ')).strip() if pagto == '1': preço = preço*0.9 elif pagto == '2': preço = preço*0.95 elif pagto == '4': preço = preço*1.2 p...
19.588235
43
0.597598
57
333
3.491228
0.54386
0.105528
0.110553
0
0
0
0
0
0
0
0
0.065134
0.216216
333
16
44
20.8125
0.697318
0
0
0
0
0
0.391566
0
0
0
0
0
0
1
0
false
0
0
0
0
0.133333
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
eff27556e4f9b47dbc9ed41d42898d35ce432f5c
1,264
py
Python
scorebee/main.py
mikeboers/ScoreBee
e8c3476b6401808a61b495b9c42e8cbe752906b4
[ "BSD-3-Clause" ]
null
null
null
scorebee/main.py
mikeboers/ScoreBee
e8c3476b6401808a61b495b9c42e8cbe752906b4
[ "BSD-3-Clause" ]
null
null
null
scorebee/main.py
mikeboers/ScoreBee
e8c3476b6401808a61b495b9c42e8cbe752906b4
[ "BSD-3-Clause" ]
null
null
null
import logging import sys from .application import Application from .document import Document, Track, Event if __name__ == '__main__': logging.basicConfig(level=logging.DEBUG) app = Application(sys.argv) if '--debug' in sys.argv: # # Load a document. # # We absolutely MUST have ...
28.088889
84
0.511076
136
1,264
4.669118
0.551471
0.051969
0.051969
0.075591
0.195276
0
0
0
0
0
0
0.065081
0.36788
1,264
45
85
28.088889
0.729662
0.313291
0
0.32
0
0
0.117925
0.042453
0
0
0
0
0
1
0
false
0
0.16
0
0.16
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
eff28154f7d481027598302c0ee3f1c65be8e270
45,609
py
Python
ceci/stage.py
eacharles/ceci
e52e956c9e373c9a632ad0c312770f32ceab0c8b
[ "BSD-3-Clause" ]
null
null
null
ceci/stage.py
eacharles/ceci
e52e956c9e373c9a632ad0c312770f32ceab0c8b
[ "BSD-3-Clause" ]
1
2022-01-05T22:04:57.000Z
2022-01-05T22:04:57.000Z
ceci/stage.py
eacharles/ceci
e52e956c9e373c9a632ad0c312770f32ceab0c8b
[ "BSD-3-Clause" ]
null
null
null
"""Module with core functionality for a single pipeline stage """ import pathlib import os import sys from textwrap import dedent import shutil import cProfile from abc import abstractmethod from . import errors from .monitor import MemoryMonitor from .config import StageConfig, cast_to_streamable SERIAL = "serial" ...
35.912598
118
0.568967
5,561
45,609
4.566445
0.146736
0.010396
0.016894
0.005671
0.240175
0.18847
0.15862
0.123691
0.103371
0.092069
0
0.002534
0.342476
45,609
1,269
119
35.940898
0.844243
0.341161
0
0.269592
0
0.003135
0.134274
0.005551
0
0
0
0.000788
0
1
0.073668
false
0
0.03605
0
0.178683
0.020376
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
eff99e10986bd9b8e0f53017db77d82913562ddf
1,102
py
Python
topology.py
Patatone/ryu-static-load-balancing
7f3508ff8b135736150ad5c38b544d6e6ba90509
[ "Apache-2.0" ]
null
null
null
topology.py
Patatone/ryu-static-load-balancing
7f3508ff8b135736150ad5c38b544d6e6ba90509
[ "Apache-2.0" ]
null
null
null
topology.py
Patatone/ryu-static-load-balancing
7f3508ff8b135736150ad5c38b544d6e6ba90509
[ "Apache-2.0" ]
null
null
null
from mininet.topo import Topo from mininet.link import TCLink class Topology(Topo): def build(self): # Hosts and switches host1 = self.addHost('H1') host2 = self.addHost('H2') host3 = self.addHost('H3') host4 = self.addHost('H4') host5 = self.addHost('H5') ...
39.357143
81
0.607985
156
1,102
4.294872
0.339744
0.114925
0.114925
0.156716
0.432836
0.432836
0.432836
0.346269
0.244776
0
0
0.121951
0.218693
1,102
27
82
40.814815
0.656214
0.021779
0
0
0
0
0.096744
0
0
0
0
0
0
1
0.05
false
0
0.1
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eff9cec3835ce08f6cdd64396a53993ba845ce23
5,155
py
Python
JFJB.py
stevevai/JFJB-crawler
182c8930e5e979ea9176452764e9494a17574b1f
[ "Apache-2.0" ]
1
2019-04-14T16:28:28.000Z
2019-04-14T16:28:28.000Z
JFJB.py
stevevai/JFJB-crawler
182c8930e5e979ea9176452764e9494a17574b1f
[ "Apache-2.0" ]
null
null
null
JFJB.py
stevevai/JFJB-crawler
182c8930e5e979ea9176452764e9494a17574b1f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Apr 12 23:00:28 2018 @author: wangshuai """ import urllib import urllib.request as urllib2 import http.cookiejar as cookielib import io import re import gzip from selenium import webdriver import datetime def get_Time(): begin = datetime.date(2016,1,1) end = datetime.d...
31.625767
156
0.49098
582
5,155
4.249141
0.314433
0.04448
0.020218
0.01941
0.125354
0.114032
0.077234
0.06389
0.06389
0.06389
0
0.029132
0.36741
5,155
162
157
31.820988
0.729224
0.098157
0
0.213675
0
0.008547
0.109001
0.005828
0
0
0
0
0
1
0.059829
false
0
0.068376
0
0.213675
0.068376
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
effded4514a6e107993718820a8e681baef231bd
4,743
py
Python
spinup/examples/pg_math/1_simple_pg.py
MengTianjian/spinningup-pytorch
6b9b87ed7a8140a52f3c86cc88f61428a9fd1176
[ "MIT" ]
1
2019-04-23T04:32:35.000Z
2019-04-23T04:32:35.000Z
spinup/examples/pg_math/1_simple_pg.py
MengTianjian/spinningup-pytorch
6b9b87ed7a8140a52f3c86cc88f61428a9fd1176
[ "MIT" ]
null
null
null
spinup/examples/pg_math/1_simple_pg.py
MengTianjian/spinningup-pytorch
6b9b87ed7a8140a52f3c86cc88f61428a9fd1176
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.distributions import Categorical import numpy as np import gym from gym.spaces import Discrete, Box class MLP(nn.Module): def __init__(self, obs_dim, sizes, activation=nn.Tanh, output_activation=None): super(MLP, self).__init__()...
37.346457
83
0.609741
604
4,743
4.619205
0.344371
0.012545
0.011828
0.027957
0.107527
0.044444
0.022222
0
0
0
0
0.007452
0.292642
4,743
126
84
37.642857
0.824143
0.185958
0
0
0
0.011905
0.077244
0
0
0
0
0
0.02381
1
0.047619
false
0
0.095238
0
0.178571
0.02381
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
56027f5cae2f8100bbcabdb3f59b412acf2181e4
6,402
py
Python
client/python/thegame/entity.py
afq984/thegame
3769fffa281b7d5e8d1336d57e73c8e8d4d2289a
[ "MIT" ]
3
2017-08-18T00:32:54.000Z
2017-11-18T02:25:51.000Z
client/python/thegame/entity.py
afq984/thegame
3769fffa281b7d5e8d1336d57e73c8e8d4d2289a
[ "MIT" ]
3
2017-08-15T09:59:25.000Z
2018-08-22T17:28:13.000Z
client/python/thegame/entity.py
afq984/thegame
3769fffa281b7d5e8d1336d57e73c8e8d4d2289a
[ "MIT" ]
1
2018-08-07T12:38:48.000Z
2018-08-07T12:38:48.000Z
import collections from thegame.abilities import Ability Vector = collections.namedtuple('Vector', ('x', 'y')) Vector.__doc__ = ''' A 2D vector. Used to represent a point and velocity in thegame ''' class _EntityAttribute: def __init__(self, doc=None): self.__doc__ = doc def __set_name__(self, kla...
25.710843
76
0.592002
745
6,402
4.871141
0.252349
0.015156
0.018187
0.01984
0.303114
0.283825
0.262882
0.262882
0.262882
0.250758
0
0.00113
0.308654
6,402
248
77
25.814516
0.818798
0.097001
0
0.335821
0
0
0.16112
0.049372
0
0
0
0
0
1
0.171642
false
0
0.014925
0.014925
0.477612
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
4bc69e662f7af10d0c2438ee8ea0f1bb00d372e9
3,456
py
Python
services/web/project/__init__.py
shekharRavi/croationa_topic_api
a68bc69a69c5a6898b74ee0f3adf83b23d29b40b
[ "MIT" ]
null
null
null
services/web/project/__init__.py
shekharRavi/croationa_topic_api
a68bc69a69c5a6898b74ee0f3adf83b23d29b40b
[ "MIT" ]
null
null
null
services/web/project/__init__.py
shekharRavi/croationa_topic_api
a68bc69a69c5a6898b74ee0f3adf83b23d29b40b
[ "MIT" ]
null
null
null
import os import json # import wget from flask import ( Flask, jsonify, send_from_directory, request, redirect, url_for ) from flask_sqlalchemy import SQLAlchemy import werkzeug werkzeug.cached_property = werkzeug.utils.cached_property from werkzeug.utils import secure_filename from werkzeug.mi...
35.628866
109
0.739005
427
3,456
5.796253
0.259953
0.052525
0.064646
0.077576
0.416162
0.416162
0.360808
0.342626
0.310303
0.310303
0
0.000673
0.139757
3,456
96
110
36
0.83182
0.047743
0
0.246575
0
0
0.242996
0.025883
0
0
0
0
0
1
0.054795
false
0
0.164384
0.027397
0.30137
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
4bc9a28e7931530bacfb9f635e9e8859c38140a3
1,460
py
Python
scripts/inspect_docker.py
lijing1996/DockerMonitor
b1105e120d9079a0d24a90ef401221dfceeed7b6
[ "Apache-2.0" ]
1
2021-04-12T09:35:08.000Z
2021-04-12T09:35:08.000Z
scripts/inspect_docker.py
lijing1996/DockerMonitor
b1105e120d9079a0d24a90ef401221dfceeed7b6
[ "Apache-2.0" ]
null
null
null
scripts/inspect_docker.py
lijing1996/DockerMonitor
b1105e120d9079a0d24a90ef401221dfceeed7b6
[ "Apache-2.0" ]
null
null
null
import argparse import sys import subprocess import psutil def insepect_process(pid): """Determine 1. is the process running in the container 2. if it's true, ourput the container id and the user :return: """ assert psutil.pid_exists(pid), "The process doesn't exist" try: result = ...
33.181818
113
0.678767
207
1,460
4.594203
0.410628
0.104101
0.068349
0.059937
0.18612
0.136698
0.136698
0
0
0
0
0.010274
0.2
1,460
44
114
33.181818
0.803938
0.116438
0
0
0
0
0.22573
0
0
0
0
0
0.034483
1
0.034483
false
0
0.137931
0
0.206897
0.137931
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
4bcbbf9c4a02cc75f67572b9d3e876126fc65c10
313
py
Python
bin/bucrm.py
aelzenaar/bucephalus
49cc084a5444ffbde2f850fc1f7b230d3bb8dfbc
[ "MIT" ]
null
null
null
bin/bucrm.py
aelzenaar/bucephalus
49cc084a5444ffbde2f850fc1f7b230d3bb8dfbc
[ "MIT" ]
12
2018-11-09T03:00:28.000Z
2019-01-02T05:39:55.000Z
bin/bucrm.py
aelzenaar/bucephalus
49cc084a5444ffbde2f850fc1f7b230d3bb8dfbc
[ "MIT" ]
null
null
null
import sys import dbops from pathlib import Path if len(sys.argv) < 2: print("Bucephalus Remove File Script") print("Usage: " + sys.argv[0] + " <identifier>") sys.exit() sys.argv.pop(0) ident = sys.argv.pop(0) if dbops.remove_record_by_id(ident) == None: print("*** Error: failed to remove record.")
18.411765
50
0.677316
49
313
4.265306
0.571429
0.133971
0.095694
0.105263
0
0
0
0
0
0
0
0.015267
0.162939
313
16
51
19.5625
0.782443
0
0
0
0
0
0.269231
0
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
0.272727
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
4bcc388c3974bdfcd63888beb8ed71bb0fa61380
5,133
py
Python
GUI/GUI_windows/TranslationLanguageWindow.py
Chenger1/stellaris-trpack
5d85bbbc7374975b5da729899b5691ea77c16ea2
[ "MIT" ]
3
2020-07-23T00:32:06.000Z
2020-10-09T18:05:56.000Z
GUI/GUI_windows/TranslationLanguageWindow.py
Chenger1/stellaris-trpack
5d85bbbc7374975b5da729899b5691ea77c16ea2
[ "MIT" ]
105
2020-07-16T12:23:57.000Z
2021-01-18T18:11:40.000Z
GUI/GUI_windows/TranslationLanguageWindow.py
Letiso/Stellaris-True-Machine-Translation-Tool
b80431c1c9b49c2482cb9aefa02eb0de62d7cc56
[ "MIT" ]
1
2020-07-15T13:30:57.000Z
2020-07-15T13:30:57.000Z
""" ↓ Инициализация данных ↓ """ from PyQt5 import QtWidgets, QtCore from GUI.GUI_windows_source import TranslationLanguage from json import load, dump from functools import partial import copy from scripts.stylesheets import choosen_lang_style, not_chosen_lang_style class TranslationLa...
37.742647
109
0.601403
543
5,133
5.574586
0.373849
0.03634
0.029732
0.029072
0.164519
0.113644
0.084242
0.084242
0.084242
0.058474
0
0.004861
0.27859
5,133
135
110
38.022222
0.810964
0.022794
0
0.183673
0
0
0.118743
0.004817
0
0
0
0
0
1
0.102041
false
0
0.061224
0
0.204082
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
4bcdc5c2dfab2675a93de75f43fee73049b1f7fb
1,347
py
Python
demosauruswebapp/demosaurus/subject_headings.py
KBNLresearch/Demosaurus
9235e315d9eef9d8d64f94a90ab4fc8220670ef2
[ "Apache-2.0" ]
1
2020-06-25T16:39:35.000Z
2020-06-25T16:39:35.000Z
demosauruswebapp/demosaurus/subject_headings.py
KBNLresearch/Demosaurus
9235e315d9eef9d8d64f94a90ab4fc8220670ef2
[ "Apache-2.0" ]
6
2020-03-06T12:31:38.000Z
2021-09-20T15:08:17.000Z
demosauruswebapp/demosaurus/subject_headings.py
KBNLresearch/Demosaurus
9235e315d9eef9d8d64f94a90ab4fc8220670ef2
[ "Apache-2.0" ]
null
null
null
from flask import ( Blueprint, request)#, flash, g, redirect, render_template, get_template_attribute, url_for, jsonify # ) # from werkzeug.exceptions import abort import requests # from demosaurus.db import get_db # import pandas as pd # from nltk.metrics import distance # import re # import numpy as np bp = B...
32.071429
104
0.697105
171
1,347
5.356725
0.461988
0.056769
0.058952
0.043668
0.150655
0.150655
0.150655
0.150655
0.150655
0.150655
0
0.006428
0.191537
1,347
42
105
32.071429
0.834711
0.197476
0
0.222222
0
0
0.242311
0
0
0
0
0
0
1
0.074074
false
0
0.074074
0
0.222222
0.259259
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
4bd7fb5f5d36389c2c5a61d083613ef4ed377538
15,928
py
Python
moleculegen/estimation/model.py
sanjaradylov/moleculegen-ml
4acb77244909cf8cfe4fb75461d4bed9b77f29f1
[ "BSD-3-Clause" ]
3
2021-11-18T11:41:21.000Z
2022-02-08T22:01:20.000Z
moleculegen/estimation/model.py
sanjaradylov/moleculegen-ml
4acb77244909cf8cfe4fb75461d4bed9b77f29f1
[ "BSD-3-Clause" ]
20
2019-12-12T11:47:32.000Z
2021-06-02T07:55:18.000Z
moleculegen/estimation/model.py
sanjaradylov/moleculegen-ml
4acb77244909cf8cfe4fb75461d4bed9b77f29f1
[ "BSD-3-Clause" ]
2
2019-12-23T08:17:01.000Z
2022-02-08T22:01:21.000Z
""" Generative language models. Classes ------- SMILESEncoderDecoder A generative recurrent neural network to encode-decode SMILES strings. SMILESEncoderDecoderFineTuner The fine-tuner of SMILESEncoderDecoder model. """ __all__ = ( 'SMILESEncoderDecoder', 'SMILESEncoderDecoderFineTuner', ) import jso...
36.28246
89
0.597878
1,793
15,928
5.134412
0.123815
0.018249
0.011949
0.010428
0.516837
0.488051
0.47393
0.429503
0.42103
0.389746
0
0.004836
0.311966
15,928
438
90
36.365297
0.835204
0.338398
0
0.405172
0
0
0.121981
0.025771
0
0
0
0
0
1
0.043103
false
0
0.034483
0
0.12069
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
4be3c4c8872c7fe3765bcf529106a1cedf839f7c
7,008
py
Python
util/post_db.py
ReadMoa/web-service
f47c6cce471d97104074d403ab9ec39a08276213
[ "MIT" ]
null
null
null
util/post_db.py
ReadMoa/web-service
f47c6cce471d97104074d403ab9ec39a08276213
[ "MIT" ]
21
2020-08-19T05:05:45.000Z
2021-02-07T23:21:17.000Z
util/post_db.py
ReadMoa/web-service
f47c6cce471d97104074d403ab9ec39a08276213
[ "MIT" ]
1
2020-09-05T03:40:45.000Z
2020-09-05T03:40:45.000Z
"""PostDB class definition. PostDB encapsualte interactions (lookup, scan, insert) with the posts table. Typical usage example: from post import Post from post_db import PostDB post_db = PostDB(mode = "dev") post = Post( post_url = "https://www.example.com/", title = "Test", main_image...
36.884211
85
0.558219
841
7,008
4.413793
0.209275
0.028287
0.029095
0.036369
0.462284
0.412985
0.390894
0.356412
0.356412
0.333782
0
0.00996
0.355308
7,008
189
86
37.079365
0.811642
0.207192
0
0.227273
0
0
0.30577
0
0
0
0
0.005291
0
1
0.045455
false
0
0.036364
0
0.145455
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
4be4aa437d26726d4e8976afdb8dcefd45f45a42
9,491
py
Python
plugins/leading_bot_mention.py
YukiSinonome/guided_bot
3aff47c4192e9dae4ad4d95c1553a4752ce043cc
[ "MIT" ]
null
null
null
plugins/leading_bot_mention.py
YukiSinonome/guided_bot
3aff47c4192e9dae4ad4d95c1553a4752ce043cc
[ "MIT" ]
null
null
null
plugins/leading_bot_mention.py
YukiSinonome/guided_bot
3aff47c4192e9dae4ad4d95c1553a4752ce043cc
[ "MIT" ]
null
null
null
# coding: utf-8 from slackbot.bot import respond_to from slacker import Slacker import slackbot_settings # @respond_to("疲れた") # @respond_to("つかれた") # def cheer(message): # message.reply("ファイト!") import MeCab import random import ChatBotScript import SentenceGenerator import datetime import webbrowser import time...
38.425101
599
0.565272
1,085
9,491
4.852535
0.213825
0.193732
0.14359
0.0585
0.490218
0.459829
0.453941
0.409307
0.40057
0.376068
0
0.011006
0.310715
9,491
246
600
38.581301
0.793335
0.083658
0
0.391534
0
0
0.110059
0.026677
0
0
0
0
0
1
0.074074
false
0.005291
0.095238
0
0.169312
0.010582
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
4be5a05c40ee31ef9f187f13c41d25d878a65ca6
7,099
py
Python
Pix2Pix/Streamlit_Pix2Pix_Main.py
NB094/LHL_Final_Project
5df15d7bbf33d51840ea274629591cd938f58fce
[ "Apache-2.0" ]
2
2021-10-04T05:53:29.000Z
2022-01-21T12:53:43.000Z
Pix2Pix/Streamlit_Pix2Pix_Main.py
NB094/LHL_Final_Project
5df15d7bbf33d51840ea274629591cd938f58fce
[ "Apache-2.0" ]
null
null
null
Pix2Pix/Streamlit_Pix2Pix_Main.py
NB094/LHL_Final_Project
5df15d7bbf33d51840ea274629591cd938f58fce
[ "Apache-2.0" ]
1
2021-10-04T05:53:32.000Z
2021-10-04T05:53:32.000Z
from PIL import Image import streamlit as st from streamlit_drawable_canvas import st_canvas from Streamlit_Pix2Pix_Generator import Generator import numpy as np import urllib.request from keras.preprocessing.image import load_img from keras.models import load_model import requests # Page intro st.title('Pix2Pix – See...
41.273256
190
0.720947
1,022
7,099
4.900196
0.347358
0.007189
0.016773
0.006989
0.228834
0.171925
0.132388
0.120008
0.120008
0.120008
0
0.031649
0.172137
7,099
172
191
41.273256
0.820316
0.136357
0
0.196262
0
0.149533
0.250123
0.022977
0
0
0
0
0
1
0.018692
false
0.018692
0.084112
0
0.121495
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
4be8b0689a8d30b24d0eb351d73f642c1be6c5a9
4,584
py
Python
rbs/rbs.py
dexbiobot/SML-Cogs
e8d3d12e5bf1d760196006f86a6c16ed95e3c964
[ "MIT" ]
17
2017-05-30T13:21:18.000Z
2022-03-27T13:08:17.000Z
rbs/rbs.py
dexbiobot/SML-Cogs
e8d3d12e5bf1d760196006f86a6c16ed95e3c964
[ "MIT" ]
16
2017-06-11T12:55:06.000Z
2019-02-20T21:00:59.000Z
rbs/rbs.py
dexbiobot/SML-Cogs
e8d3d12e5bf1d760196006f86a6c16ed95e3c964
[ "MIT" ]
17
2017-05-03T16:09:46.000Z
2020-05-13T21:19:37.000Z
""" The MIT License (MIT) Copyright (c) 2017 SML Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
29.960784
75
0.648778
619
4,584
4.707593
0.365105
0.026424
0.028826
0.025738
0.106726
0.106726
0.096431
0.076527
0.076527
0.038435
0
0.00382
0.257635
4,584
152
76
30.157895
0.852483
0.272688
0
0.12987
0
0
0.119691
0
0
0
0
0
0
1
0.051948
false
0.038961
0.077922
0
0.155844
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
4beabadec3de979135423c3abb7be1e6a84c41ad
2,845
py
Python
tests/nutsflow/test_iterfunction.py
maet3608/nuts-flow
0d7b8eefc80cb45c079b155ff5062d1d93ff2caf
[ "Apache-2.0" ]
21
2017-05-01T10:15:41.000Z
2022-01-25T07:02:44.000Z
tests/nutsflow/test_iterfunction.py
maet3608/nuts-flow
0d7b8eefc80cb45c079b155ff5062d1d93ff2caf
[ "Apache-2.0" ]
7
2017-02-09T03:36:37.000Z
2017-08-22T11:23:03.000Z
tests/nutsflow/test_iterfunction.py
maet3608/nuts-flow
0d7b8eefc80cb45c079b155ff5062d1d93ff2caf
[ "Apache-2.0" ]
5
2017-05-30T01:56:31.000Z
2020-10-05T08:21:43.000Z
""" .. module:: test_iterfunction :synopsis: Unit tests for iterfunction module """ import time import nutsflow.iterfunction as itf from six.moves import range def test_length(): assert itf.length(range(10)) == 10 assert itf.length([]) == 0 def test_interleave(): it1 = [1, 2] it2 = 'abc' it...
23.319672
63
0.555712
422
2,845
3.687204
0.208531
0.122108
0.066838
0.012853
0.26928
0.154242
0.125964
0.09383
0.07455
0.07455
0
0.06215
0.247803
2,845
121
64
23.512397
0.664953
0.027417
0
0.121951
0
0
0.007617
0
0
0
0
0
0.341463
1
0.170732
false
0
0.04878
0
0.219512
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
4beb4afba8d4e82f6ec0587a4a66ce29bdfa1be9
6,591
py
Python
microcosm_flask/tests/conventions/test_upload.py
Sinon/microcosm-flask
c1404ebc94459c8156b04f5e04490a330117524c
[ "Apache-2.0" ]
11
2017-01-30T21:53:20.000Z
2020-05-29T22:39:19.000Z
microcosm_flask/tests/conventions/test_upload.py
Sinon/microcosm-flask
c1404ebc94459c8156b04f5e04490a330117524c
[ "Apache-2.0" ]
139
2016-03-09T19:09:59.000Z
2021-09-03T17:14:00.000Z
microcosm_flask/tests/conventions/test_upload.py
Sinon/microcosm-flask
c1404ebc94459c8156b04f5e04490a330117524c
[ "Apache-2.0" ]
10
2016-12-19T22:39:42.000Z
2021-03-09T19:23:15.000Z
""" Alias convention tests. """ from io import BytesIO from json import loads from uuid import uuid4 from hamcrest import ( all_of, anything, assert_that, contains, equal_to, has_entries, has_entry, has_item, has_key, is_, is_not, ) from marshmallow import Schema, fields fr...
29.823529
103
0.576847
708
6,591
5.141243
0.193503
0.052198
0.022253
0.018681
0.401374
0.308242
0.297253
0.297253
0.263736
0.231044
0
0.007679
0.308451
6,591
220
104
29.959091
0.790917
0.029586
0
0.405556
0
0
0.081441
0.012216
0
0
0
0
0.105556
1
0.066667
false
0
0.072222
0
0.177778
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
4bf119d7edb9acf18b1f1e428e435fcd728fc1f4
866
py
Python
tests/check-result.py
getupcloud/tiny-controllers
e896b2015a9e29eab421225cb5a5f0d488df9e37
[ "Apache-2.0" ]
null
null
null
tests/check-result.py
getupcloud/tiny-controllers
e896b2015a9e29eab421225cb5a5f0d488df9e37
[ "Apache-2.0" ]
null
null
null
tests/check-result.py
getupcloud/tiny-controllers
e896b2015a9e29eab421225cb5a5f0d488df9e37
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sys import json from flatten_dict import flatten as _flatten try: data = json.load(sys.stdin)['object'] except Exception as ex: print("Missing or invalid test data:", ex) sys.exit(1) try: results = json.load(open(sys.argv[1], "r"))['results'] except Exception as ex: p...
23.405405
88
0.590069
137
866
3.686131
0.430657
0.041584
0.067327
0.075248
0.174257
0.174257
0.174257
0.174257
0.174257
0
0
0.007825
0.262125
866
36
89
24.055556
0.782473
0.023095
0
0.285714
0
0
0.173965
0
0
0
0
0
0
1
0.035714
false
0
0.107143
0.035714
0.178571
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
4bf224e8c8f4fa354c35d1431a9957707b55eb9b
331
py
Python
thriftpy2_httpx_client/__init__.py
hans00/ThriftPy2-HTTPX-Client
e94944218915bcec6b2e0c00200f5d5e6f823053
[ "MIT" ]
null
null
null
thriftpy2_httpx_client/__init__.py
hans00/ThriftPy2-HTTPX-Client
e94944218915bcec6b2e0c00200f5d5e6f823053
[ "MIT" ]
5
2021-07-13T13:56:17.000Z
2022-03-02T02:43:46.000Z
thriftpy2_httpx_client/__init__.py
hans00/ThriftPy2-HTTPX-Client
e94944218915bcec6b2e0c00200f5d5e6f823053
[ "MIT" ]
2
2021-07-13T06:08:59.000Z
2022-03-16T22:15:57.000Z
__all__ = [ 'make_aio_client', 'make_sync_client', 'TAsyncHTTPXClient', 'THTTPXClient', ] from .aio import TAsyncHTTPXClient, make_client as make_aio_client from .sync import THTTPXClient, make_client as make_sync_client from ._version import get_versions __version__ = get_versions()['version'] del ge...
23.642857
66
0.770393
41
331
5.682927
0.341463
0.141631
0.111588
0.137339
0
0
0
0
0
0
0
0
0.148036
331
13
67
25.461538
0.826241
0
0
0
0
0
0.202417
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
4bf41bde14de2173375d4d1e4381757de1699557
3,553
py
Python
kalc/model/kinds/Node.py
KellyGriffin/kalc
9b78c4177ed9ffccbf1ecfbf9a7946286cd7c583
[ "Apache-2.0" ]
null
null
null
kalc/model/kinds/Node.py
KellyGriffin/kalc
9b78c4177ed9ffccbf1ecfbf9a7946286cd7c583
[ "Apache-2.0" ]
null
null
null
kalc/model/kinds/Node.py
KellyGriffin/kalc
9b78c4177ed9ffccbf1ecfbf9a7946286cd7c583
[ "Apache-2.0" ]
null
null
null
import sys import random from kalc.model.system.base import ModularKind from typing import Set from kalc.model.system.primitives import Label, StatusNode from kalc.model.system.base import HasLabel from kalc.misc.util import cpuConvertToAbstractProblem, memConvertToAbstractProblem from kalc.misc.const import STATUS_NOD...
33.838095
83
0.690684
386
3,553
6.170984
0.274611
0.020991
0.025189
0.031906
0.24937
0.201511
0.177162
0.177162
0.177162
0.177162
0
0.011632
0.225725
3,553
104
84
34.163462
0.854235
0.041092
0
0.204545
0
0
0.019712
0
0
0
0
0
0
1
0.090909
false
0.022727
0.102273
0
0.488636
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
4bf46aef0cec7975f957c42ac0e9212705e2eac4
6,154
py
Python
Betsy/Betsy/modules/summarize_fastqc_results.py
jefftc/changlab
11da8c415afefcba0b0216238387c75aeb3a56ac
[ "MIT" ]
9
2017-01-13T02:38:41.000Z
2021-04-08T00:44:39.000Z
Betsy/Betsy/modules/summarize_fastqc_results.py
jefftc/changlab
11da8c415afefcba0b0216238387c75aeb3a56ac
[ "MIT" ]
null
null
null
Betsy/Betsy/modules/summarize_fastqc_results.py
jefftc/changlab
11da8c415afefcba0b0216238387c75aeb3a56ac
[ "MIT" ]
4
2017-01-05T16:25:25.000Z
2019-12-12T20:07:38.000Z
from Module import AbstractModule class Module(AbstractModule): def __init__(self): AbstractModule.__init__(self) def run( self, network, in_data, out_attributes, user_options, num_cores, outfile): import os from genomicode import filelib from genomicode import ...
34.573034
76
0.614722
738
6,154
4.968835
0.218157
0.055631
0.014726
0.019089
0.1958
0.157349
0.115626
0.071993
0.042542
0.042542
0
0.011773
0.282255
6,154
177
77
34.768362
0.818429
0.128372
0
0.125984
0
0
0.09399
0
0
0
0
0
0.149606
1
0.055118
false
0
0.07874
0.007874
0.181102
0.007874
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
4bf674c2dd9e1aaac9f80a20682c800896278be3
792
py
Python
propnet/models/__init__.py
nile0316/propnet
3e1f1476c70a878c6eb43587c328d108b0e2a410
[ "BSD-3-Clause-LBNL" ]
57
2018-01-09T14:56:20.000Z
2022-02-24T11:44:42.000Z
propnet/models/__init__.py
ruriboshi/propnet
770703fb4fc344f785f89c02f26b31ea5733d2bd
[ "BSD-3-Clause-LBNL" ]
214
2017-09-26T23:31:09.000Z
2022-03-14T04:50:58.000Z
propnet/models/__init__.py
nile0316/propnet
3e1f1476c70a878c6eb43587c328d108b0e2a410
[ "BSD-3-Clause-LBNL" ]
26
2017-10-29T21:34:22.000Z
2022-01-12T05:59:12.000Z
# noinspection PyUnresolvedReferences import propnet.symbols from propnet.models import serialized, python, composite from propnet.core.registry import Registry # This is just to enable importing the model directly from this module for example code generation def _update_globals(): for name, model in Registry("mo...
33
98
0.792929
101
792
5.90099
0.376238
0.083893
0.107383
0.120805
0.300336
0.300336
0.300336
0.231544
0
0
0
0
0.141414
792
23
99
34.434783
0.876471
0.166667
0
0.133333
0
0
0.009132
0
0
0
0
0
0
1
0.133333
false
0
0.2
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4bf6a8cffebce41ae5095ad681541b2d2a477027
1,369
py
Python
python/clean_dataset.py
catarinaacsilva/user_mapping_twitter
7350ed35b465a7db6747c4035e7b119bff23131d
[ "MIT" ]
null
null
null
python/clean_dataset.py
catarinaacsilva/user_mapping_twitter
7350ed35b465a7db6747c4035e7b119bff23131d
[ "MIT" ]
null
null
null
python/clean_dataset.py
catarinaacsilva/user_mapping_twitter
7350ed35b465a7db6747c4035e7b119bff23131d
[ "MIT" ]
null
null
null
import csv import re regex = re.compile('[^a-zA-Z]') def f7(seq): seen = set() seen_add = seen.add return [x for x in seq if not (x in seen or seen_add(x))] def clean_dataset(screen_name, n_tweets=300): # open CSV file all_words = [] with open('%s_tweets.csv' % screen_name,...
30.422222
89
0.519357
178
1,369
3.842697
0.477528
0.046784
0.038012
0.040936
0.137427
0.078947
0
0
0
0
0
0.013544
0.352812
1,369
44
90
31.113636
0.758465
0.127831
0
0
0
0
0.116462
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.166667
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
4bf9bd37e91a5feca68c63420808cdbf5f96022e
6,736
py
Python
models/analysis_transform.py
LiuLei95/PyTorch-Learned-Image-Compression-with-GMM-and-Attention
484aced5bea25fbc1ba1380f4ab81bda9b099c1e
[ "Apache-2.0" ]
27
2021-07-28T01:33:02.000Z
2022-03-18T04:01:02.000Z
models/analysis_transform.py
LiuLei95/PyTorch-Learned-Image-Compression-with-GMM-and-Attention
484aced5bea25fbc1ba1380f4ab81bda9b099c1e
[ "Apache-2.0" ]
5
2021-11-13T05:58:51.000Z
2022-02-13T09:07:44.000Z
models/analysis_transform.py
LiuLei95/PyTorch-Learned-Image-Compression-with-GMM-and-Attention
484aced5bea25fbc1ba1380f4ab81bda9b099c1e
[ "Apache-2.0" ]
1
2021-08-21T13:14:28.000Z
2021-08-21T13:14:28.000Z
#!/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 import math import torch.nn as nn import torch from .GDN import GDN from .attention import Attention # class Analysis_transform(nn.Module): # def __init__(self, num_filters=128): # super(Analysis_transform, self).__init__() # self.co...
38.936416
96
0.55478
911
6,736
3.899012
0.103183
0.152027
0.061937
0.101351
0.712838
0.530687
0.51661
0.497748
0.475788
0.449887
0
0.079393
0.315618
6,736
172
97
39.162791
0.691106
0.428593
0
0
0
0
0.002133
0
0
0
0
0
0
1
0.024691
false
0
0.061728
0
0.111111
0.012346
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
4bfb4d961bec58ff15fe5b25777f51138ea3c5dc
1,516
py
Python
tests/dataset_balancer_test.py
MarinkoBa/Hate-Speech-Classification
72f6bbe93b823daefa138df4f81a3a4df5b34c4c
[ "MIT" ]
null
null
null
tests/dataset_balancer_test.py
MarinkoBa/Hate-Speech-Classification
72f6bbe93b823daefa138df4f81a3a4df5b34c4c
[ "MIT" ]
null
null
null
tests/dataset_balancer_test.py
MarinkoBa/Hate-Speech-Classification
72f6bbe93b823daefa138df4f81a3a4df5b34c4c
[ "MIT" ]
1
2020-12-14T13:56:50.000Z
2020-12-14T13:56:50.000Z
# -*- coding: utf-8 -*- from src.utils.get_data import load_data from src.utils.get_data import get_datasets from src.utils.get_data import concatenate_datasets from src.utils.dataset_balancer import balance_data import os import pandas as pd import unittest class TestDataBalancer(unittest.TestCase): def setUp(...
35.255814
110
0.550792
164
1,516
4.859756
0.347561
0.060226
0.060226
0.060226
0.397742
0.397742
0.223338
0.223338
0.186951
0.130489
0
0.008065
0.345646
1,516
42
111
36.095238
0.795363
0.013852
0
0.076923
0
0
0.089082
0.03081
0
0
0
0
0.115385
1
0.076923
false
0
0.269231
0
0.384615
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
4bfb89534390da200300df58f33c846fbb2cba39
12,695
py
Python
gptorch/models/sparse_gpr.py
cics-nd/gptorch
80c62a227c466bb7fa29e11263e94c41f96ff93f
[ "MIT" ]
28
2018-11-05T03:01:18.000Z
2021-04-02T18:11:05.000Z
gptorch/models/sparse_gpr.py
cics-nd/gptorch
80c62a227c466bb7fa29e11263e94c41f96ff93f
[ "MIT" ]
7
2019-06-04T21:43:40.000Z
2021-11-04T04:19:26.000Z
gptorch/models/sparse_gpr.py
cics-nd/gptorch
80c62a227c466bb7fa29e11263e94c41f96ff93f
[ "MIT" ]
8
2019-04-03T12:28:05.000Z
2021-12-23T10:15:34.000Z
# # Yinhao Zhu, May 01, 2017 # """ Sparse GP regression, including variational GP and others. """ from __future__ import absolute_import import torch import numpy as np from torch.utils.data import TensorDataset, DataLoader from torch.distributions.transforms import LowerCholeskyTransform from ..model import Param f...
33.232984
87
0.59228
1,653
12,695
4.421658
0.23533
0.04214
0.01505
0.025448
0.245451
0.189492
0.159256
0.154057
0.128882
0.128882
0
0.01253
0.308468
12,695
381
88
33.32021
0.820025
0.330209
0
0.270408
0
0
0.013033
0
0
0
0
0.005249
0.010204
1
0.056122
false
0.005102
0.061224
0
0.178571
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
ef0025261578f6f3b594dd1953fdfd38e1b064c9
10,015
py
Python
xyw_macro/notify.py
xue0228/keyboard
dcb0def1d87a9197676c0f405b980a67e128ab24
[ "MIT" ]
null
null
null
xyw_macro/notify.py
xue0228/keyboard
dcb0def1d87a9197676c0f405b980a67e128ab24
[ "MIT" ]
null
null
null
xyw_macro/notify.py
xue0228/keyboard
dcb0def1d87a9197676c0f405b980a67e128ab24
[ "MIT" ]
null
null
null
import tkinter as tk import tkinter.font as tf from tkinter import ttk from tkinter import messagebox from tkinter.filedialog import askopenfilename, askdirectory import time import threading from functools import wraps from xyw_macro.utils import SingletonType from xyw_macro.contants import SLEEP_TIME class Notifi...
30.348485
120
0.563155
1,177
10,015
4.62192
0.203059
0.028309
0.012868
0.016176
0.270772
0.239154
0.192096
0.182904
0.175368
0.152574
0
0.009987
0.310135
10,015
329
121
30.440729
0.777392
0.081877
0
0.209302
0
0
0.042174
0.006879
0
0
0
0
0
1
0.12093
false
0
0.046512
0
0.251163
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
ef0469d45705f95287d4ed042d4ea25304eabf8c
3,217
py
Python
tests/test_data/movies.py
jmolinski/traktpy
e6ff22acaf273b7b45070a4f8938c210fe4d63d7
[ "MIT" ]
null
null
null
tests/test_data/movies.py
jmolinski/traktpy
e6ff22acaf273b7b45070a4f8938c210fe4d63d7
[ "MIT" ]
1
2019-04-13T10:15:48.000Z
2019-04-13T10:15:48.000Z
tests/test_data/movies.py
jmolinski/traktpy
e6ff22acaf273b7b45070a4f8938c210fe4d63d7
[ "MIT" ]
null
null
null
MOVIE1 = { "title": "Guardians of the Galaxy", "year": 2014, "ids": { "trakt": 28, "slug": "guardians-of-the-galaxy-2014", "imdb": "tt2015381", "tmdb": 118340, }, } MOVIE2 = { "title": "Guardians of the Galaxy", "year": 2014, "ids": { "trakt": 28, ...
22.496503
269
0.520361
337
3,217
4.893175
0.540059
0.040024
0.03396
0.048514
0.213463
0.15282
0.114008
0.114008
0.114008
0.114008
0
0.135512
0.286602
3,217
142
270
22.65493
0.583007
0
0
0.19685
0
0.007874
0.416226
0.039167
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ef05389e99b6d9f3d5e451c4f3f4a586cd843bd5
7,580
py
Python
lib/FeatureSetUtils/Utils/AveExpressionMatrixBuilder.py
mclark58/FeatureSetUtils
2b84bc40d6a8f8aec878aa965ca567537c67267e
[ "MIT" ]
1
2020-01-13T19:38:50.000Z
2020-01-13T19:38:50.000Z
lib/FeatureSetUtils/Utils/AveExpressionMatrixBuilder.py
mclark58/FeatureSetUtils
2b84bc40d6a8f8aec878aa965ca567537c67267e
[ "MIT" ]
6
2017-09-19T17:46:03.000Z
2020-06-09T04:28:36.000Z
lib/FeatureSetUtils/Utils/AveExpressionMatrixBuilder.py
mclark58/FeatureSetUtils
2b84bc40d6a8f8aec878aa965ca567537c67267e
[ "MIT" ]
9
2017-06-30T16:01:48.000Z
2020-08-13T20:19:42.000Z
import json import time import uuid from installed_clients.DataFileUtilClient import DataFileUtil from installed_clients.KBaseReportClient import KBaseReport from installed_clients.WorkspaceClient import Workspace as Workspace def log(message, prefix_newline=False): """Logging function, provides a hook to suppre...
41.648352
98
0.61504
797
7,580
5.501882
0.2133
0.15325
0.060661
0.058381
0.123603
0.031471
0
0
0
0
0
0.003543
0.292612
7,580
181
99
41.878453
0.814248
0.120844
0
0.018018
0
0
0.141445
0.03567
0
0
0
0
0
1
0.054054
false
0
0.054054
0
0.144144
0.009009
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
ef071178a07b347765b3a959b7f835718f3934a3
588
py
Python
s3bro/pool_map.py
rsavordelli/s3bro
e5b1d41052fd2491c08589b8a2bffeb6aae7cf33
[ "MIT" ]
22
2018-03-13T18:46:33.000Z
2021-11-03T09:41:39.000Z
s3bro/pool_map.py
rsavordelli/s3bro
e5b1d41052fd2491c08589b8a2bffeb6aae7cf33
[ "MIT" ]
5
2018-06-26T21:39:06.000Z
2020-08-03T12:53:10.000Z
s3bro/pool_map.py
rsavordelli/s3bro
e5b1d41052fd2491c08589b8a2bffeb6aae7cf33
[ "MIT" ]
2
2019-09-04T06:40:09.000Z
2020-07-06T01:56:44.000Z
from multiprocessing import Pool import logging def multi_process(func, data, workers): logging.warning('Consuming list with %s workers' % workers) p = Pool(workers) try: # the timeout(.get(9999999) is a workaround for the KeyboardInterrupt. without that it just does not work. # Seem to be...
32.666667
114
0.690476
75
588
5.386667
0.706667
0.039604
0
0
0
0
0
0
0
0
0
0.030905
0.229592
588
17
115
34.588235
0.860927
0.284014
0
0
0
0
0.179856
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.25
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
ef07256f31589e2d434bffa64e958f93097dc4b3
11,290
py
Python
htmlmth/utils.py
ZwCreatePhoton/htmlmth
74d23ca2fa53e11b2587251d2f71c8f275548182
[ "MIT" ]
null
null
null
htmlmth/utils.py
ZwCreatePhoton/htmlmth
74d23ca2fa53e11b2587251d2f71c8f275548182
[ "MIT" ]
null
null
null
htmlmth/utils.py
ZwCreatePhoton/htmlmth
74d23ca2fa53e11b2587251d2f71c8f275548182
[ "MIT" ]
null
null
null
import os import yaml from HTMLScriptExtractor import HTMLScriptExtractor MIME_TYPE_MAP = { '.htm': 'text/html', '.html': 'text/html', '.js': 'text/javascript', '.vbs': 'text/vbscript', '.txt': 'text/plain', '.jpg': 'image/jpeg', '.jpeg': 'image/jpeg' } # input: # a function "mime_ty...
35.84127
184
0.615766
1,288
11,290
5.184783
0.162267
0.023959
0.037736
0.010482
0.300988
0.22941
0.221923
0.193471
0.193471
0.193471
0
0.001363
0.285297
11,290
314
185
35.955414
0.826249
0.132418
0
0.310484
0
0
0.043518
0
0
0
0
0.003185
0
1
0.129032
false
0.004032
0.012097
0.020161
0.298387
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
ef0a465c711275ee344dd982144bb689f29fa28c
4,409
py
Python
tests/test_models.py
rramaa/pynnotate
7cf983dd16726032d3d53340415a823c9e8bd76c
[ "MIT" ]
1
2019-07-24T12:56:16.000Z
2019-07-24T12:56:16.000Z
tests/test_models.py
rramaa/pynnotate
7cf983dd16726032d3d53340415a823c9e8bd76c
[ "MIT" ]
14
2019-03-12T08:49:34.000Z
2019-04-04T09:51:16.000Z
tests/test_models.py
rramaa/pynnotate
7cf983dd16726032d3d53340415a823c9e8bd76c
[ "MIT" ]
2
2019-10-13T14:45:11.000Z
2019-12-24T22:22:46.000Z
from annotatelib.models import ( models, class_from_filename, table_name_from_filename, _get_column_description_from_object, _get_indices_description_from_oject ) import sqlite3 from orator import DatabaseManager import os import sys sys.path.insert(0, os.path.abspath( os.path.join(os.path.dirname(__fil...
41.205607
148
0.577682
479
4,409
5.100209
0.227557
0.039296
0.074499
0.088825
0.557102
0.487106
0.460909
0.431437
0.431437
0.379042
0
0.011452
0.267181
4,409
106
149
41.59434
0.744661
0.01066
0
0.211765
0
0
0.344804
0.004818
0
0
0
0
0.070588
1
0.105882
false
0
0.058824
0
0.164706
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
ef0f95f25a14e3a1c31217d9a079a1f1c52c743d
541
py
Python
pps/message.py
SeungUkLee/preview-pipfile-script
d28d963f1feee9ed1621a04b25c02d34a0919829
[ "MIT" ]
null
null
null
pps/message.py
SeungUkLee/preview-pipfile-script
d28d963f1feee9ed1621a04b25c02d34a0919829
[ "MIT" ]
null
null
null
pps/message.py
SeungUkLee/preview-pipfile-script
d28d963f1feee9ed1621a04b25c02d34a0919829
[ "MIT" ]
null
null
null
""" messages """ from .color import ENDC, FAIL, OKBLUE, YELLOW EXE_SCRIPT_ERR_MSG = '{0}[!]{1} An error occurred while executing script in Pipfile'.format( FAIL, ENDC ) KEYWORD_NOT_FOUND_MSG = "{0}[!]{1} {2}Pipfile{1} in {3}[scripts]{1} keyword not found!".format( FAIL, ENDC, OKBLUE, YELLOW ) FILE_NOT_FOUND_MS...
31.823529
95
0.685767
82
541
4.378049
0.439024
0.05571
0.05571
0.066852
0.278552
0.278552
0.122563
0.122563
0
0
0
0.034261
0.136784
541
16
96
33.8125
0.734475
0.014787
0
0
0
0.083333
0.413333
0
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
ef1093497c62d32b5e459bb8bfbe26c27ca18a49
2,101
py
Python
lambdafunctions/LogEvent/LogEvent.py
rpetrina/slack-sentiment-bot
47969d8a8c476aa60939fab88f0af793a24a4acc
[ "MIT" ]
null
null
null
lambdafunctions/LogEvent/LogEvent.py
rpetrina/slack-sentiment-bot
47969d8a8c476aa60939fab88f0af793a24a4acc
[ "MIT" ]
null
null
null
lambdafunctions/LogEvent/LogEvent.py
rpetrina/slack-sentiment-bot
47969d8a8c476aa60939fab88f0af793a24a4acc
[ "MIT" ]
null
null
null
import sys import logging import pymysql import json import os #rds settings - Lambda role must have RDS access rds_host = os.environ['RDS_HOST'] # Set in Lambda Dashboard name = os.environ['DB_USERNAME'] password = os.environ['DB_PW'] db_name = os.environ['DB_NAME'] db_table = os.environ['DB_TABLE'] logger = loggin...
29.180556
107
0.619229
250
2,101
5.12
0.524
0.035156
0.034375
0.023438
0
0
0
0
0
0
0
0.007106
0.263208
2,101
71
108
29.591549
0.819767
0.174203
0
0.08
0
0
0.186827
0
0
0
0
0
0
1
0.06
false
0.04
0.1
0
0.2
0.04
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
ef12df78f36f2adabef28423fa54313ee1270534
1,707
py
Python
data/build_wd_elastic_index.py
flaneuse/reframedb-backend
863423fb9fad547aa8c2f826dc2d39939fe1b991
[ "MIT" ]
null
null
null
data/build_wd_elastic_index.py
flaneuse/reframedb-backend
863423fb9fad547aa8c2f826dc2d39939fe1b991
[ "MIT" ]
null
null
null
data/build_wd_elastic_index.py
flaneuse/reframedb-backend
863423fb9fad547aa8c2f826dc2d39939fe1b991
[ "MIT" ]
null
null
null
import requests from elasticsearch import Elasticsearch, client from elasticsearch.exceptions import RequestError es = Elasticsearch() # retrieve all QIDs from the populated reframe ES index body = { "_source": { "includes": ["qid"], }, "query": { "query_string": { "query": "...
21.884615
91
0.565319
200
1,707
4.785
0.445
0.081505
0.047022
0.039707
0.068966
0.068966
0.068966
0
0
0
0
0.012048
0.27065
1,707
77
92
22.168831
0.756627
0.088459
0
0.038462
0
0
0.193798
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0.038462
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
ef1825ce5af0c1bb4c24887ac8d1e612fd32ac97
5,383
py
Python
ena-dts/framework/rst.py
amzn/amzn-ec2-ena-utilities
99502ff5bb025dc71727d4991ea5e29a4e9388c6
[ "MIT-0" ]
7
2021-04-29T05:23:56.000Z
2022-03-23T02:26:55.000Z
ena-dts/framework/rst.py
amzn/amzn-ec2-ena-utilities
99502ff5bb025dc71727d4991ea5e29a4e9388c6
[ "MIT-0" ]
null
null
null
ena-dts/framework/rst.py
amzn/amzn-ec2-ena-utilities
99502ff5bb025dc71727d4991ea5e29a4e9388c6
[ "MIT-0" ]
4
2021-06-10T19:02:57.000Z
2021-12-06T01:31:06.000Z
# BSD LICENSE # # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copy...
33.228395
75
0.583132
668
5,383
4.646707
0.333832
0.020296
0.006443
0.008054
0.147874
0.105348
0.105348
0.105348
0.105348
0.06701
0
0.006107
0.30039
5,383
161
76
33.434783
0.818109
0.347576
0
0.22973
0
0
0.06638
0.008587
0
0
0
0
0
1
0.121622
false
0
0.054054
0
0.189189
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
ef19d273749fc5c7cda4c1d9c7f1b0e4fb378f5e
30,467
py
Python
mutation.py
nklapste/mutation
28eb3eaa3173f0a9cfcd22c2cabe6d0c87f50dfa
[ "MIT" ]
null
null
null
mutation.py
nklapste/mutation
28eb3eaa3173f0a9cfcd22c2cabe6d0c87f50dfa
[ "MIT" ]
null
null
null
mutation.py
nklapste/mutation
28eb3eaa3173f0a9cfcd22c2cabe6d0c87f50dfa
[ "MIT" ]
null
null
null
"""Mutation. Usage: mutation play [--verbose] [--exclude=<globs>] [--only-deadcode-detection] [--include=<globs>] [--sampling=<s>] [--randomly-seed=<n>] [--max-workers=<n>] [<file-or-directory> ...] [-- TEST-COMMAND ...] mutation replay [--verbose] [--max-workers=<n>] mutation list mutation show MUTATION mut...
28.961027
202
0.573046
3,612
30,467
4.764396
0.16113
0.018595
0.01046
0.007438
0.260096
0.224127
0.174908
0.157243
0.148004
0.12569
0
0.009253
0.301178
30,467
1,051
203
28.988582
0.798835
0.079397
0
0.280632
0
0
0.097855
0.004147
0
0
0
0.000951
0.001318
1
0.072464
false
0.011858
0.046113
0.01581
0.201581
0.002635
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
ef1a0f68bf7e4627785fe119d1363f10a767d348
1,058
py
Python
main.py
bijilap/ColorRecognition
a070645e5bda40c0d06d03db468f31c79b63d0bd
[ "Apache-2.0" ]
2
2018-03-29T12:15:04.000Z
2019-01-09T02:09:41.000Z
main.py
bijilap/ColorRecognition
a070645e5bda40c0d06d03db468f31c79b63d0bd
[ "Apache-2.0" ]
null
null
null
main.py
bijilap/ColorRecognition
a070645e5bda40c0d06d03db468f31c79b63d0bd
[ "Apache-2.0" ]
null
null
null
import argparse from ColorDetector import ColorDetector def main(): detector = ColorDetector() parser = argparse.ArgumentParser() # --k : number of clusters, --image: image path, --debug: debug level parser.add_argument("--k", nargs=1, type=int, help='maximum number of colors to be identified. Default:...
30.228571
111
0.660681
152
1,058
4.473684
0.361842
0.052941
0.1
0.057353
0.075
0
0
0
0
0
0
0.015495
0.206994
1,058
34
112
31.117647
0.794994
0.063327
0
0
0
0
0.211325
0
0
0
0
0
0
1
0.041667
false
0
0.083333
0
0.125
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
ef1beeeb227406f72c9053a339254f85199fda6b
2,062
py
Python
app/app.py
tigpt/docker-flask-postgres
ba0b192afe77e6946c8e49574def3533ea0f1181
[ "MIT" ]
null
null
null
app/app.py
tigpt/docker-flask-postgres
ba0b192afe77e6946c8e49574def3533ea0f1181
[ "MIT" ]
null
null
null
app/app.py
tigpt/docker-flask-postgres
ba0b192afe77e6946c8e49574def3533ea0f1181
[ "MIT" ]
null
null
null
from elasticapm.contrib.flask import ElasticAPM import os from flask import Flask, request, render_template from flask_migrate import Migrate from flask_sqlalchemy import SQLAlchemy APP = Flask(__name__) APP.config['ELASTIC_APM'] = { } apm = ElasticAPM(APP) APP.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False APP.co...
25.775
90
0.70805
264
2,062
5.359848
0.306818
0.079152
0.09894
0.070671
0.135689
0.135689
0.090459
0.090459
0.090459
0.090459
0
0.004585
0.153734
2,062
80
91
25.775
0.806304
0.083414
0
0.145455
0
0
0.175252
0.070101
0
0
0
0
0
1
0.127273
false
0.018182
0.109091
0.018182
0.363636
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
ef1e04b7ef6eaf43f6fa7d6f871605144e4d447e
8,836
py
Python
scrapers/meetings/fetch_meetings.py
spudmind/spud
86e44bca4efd3cd6358467e1511048698a45edbc
[ "MIT" ]
2
2015-04-11T12:22:41.000Z
2016-08-18T11:12:06.000Z
scrapers/meetings/fetch_meetings.py
spudmind/spud
86e44bca4efd3cd6358467e1511048698a45edbc
[ "MIT" ]
84
2015-01-22T14:33:49.000Z
2015-04-01T23:15:29.000Z
scrapers/meetings/fetch_meetings.py
spudmind/spud
86e44bca4efd3cd6358467e1511048698a45edbc
[ "MIT" ]
1
2015-04-16T03:10:39.000Z
2015-04-16T03:10:39.000Z
# -*- coding: utf-8 -*- from datetime import datetime import logging import os.path import requests import time import urllib from bs4 import BeautifulSoup from utils import mongo class FetchMeetings: def __init__(self, **kwargs): # fetch the logger self._logger = logging.getLogger("spud") ...
46.26178
175
0.563943
964
8,836
4.973029
0.201245
0.025031
0.031289
0.012516
0.20776
0.175845
0.116187
0.116187
0.109303
0.094285
0
0.003855
0.324808
8,836
190
176
46.505263
0.799698
0.078542
0
0.228758
0
0
0.132619
0.009358
0
0
0
0.005263
0
1
0.052288
false
0
0.052288
0
0.130719
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
ef21cfd36477df2859e374f71d6a0bbf86ff8519
561
py
Python
tests/settings.py
managedbyq/mbq.atomiq
23edd33e8b958cfd9257ea62a107d8bb793ff3b9
[ "Apache-2.0" ]
null
null
null
tests/settings.py
managedbyq/mbq.atomiq
23edd33e8b958cfd9257ea62a107d8bb793ff3b9
[ "Apache-2.0" ]
9
2018-09-17T20:50:43.000Z
2018-12-07T21:19:56.000Z
tests/settings.py
managedbyq/mbq.atomiq
23edd33e8b958cfd9257ea62a107d8bb793ff3b9
[ "Apache-2.0" ]
null
null
null
import os import boto3 import dj_database_url from mbq import env, metrics SECRET_KEY = 'fake-key' DEBUG = True ATOMIQ = { 'env': 'Test', 'service': 'test-service', } database_url = os.environ.get('DATABASE_URL', 'mysql://root:@mysql:3306/atomiqdb') DATABASES = { 'default': dj_database_url.parse(databa...
16.5
82
0.695187
79
561
4.721519
0.544304
0.147453
0.069705
0
0
0
0
0
0
0
0
0.014644
0.14795
561
33
83
17
0.76569
0
0
0
0
0
0.224599
0.058824
0
0
0
0
0
1
0
false
0
0.173913
0
0.173913
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
ef25471191ad1db593810b69150f45edb9dc331e
2,615
py
Python
WickContractions/ops/indexed.py
chrisculver/WickContractions
a36af32bdd049789faf42d24d168c4073fc45ed0
[ "MIT" ]
2
2021-08-03T17:32:09.000Z
2021-08-03T18:28:31.000Z
WickContractions/ops/indexed.py
chrisculver/WickContractions
a36af32bdd049789faf42d24d168c4073fc45ed0
[ "MIT" ]
null
null
null
WickContractions/ops/indexed.py
chrisculver/WickContractions
a36af32bdd049789faf42d24d168c4073fc45ed0
[ "MIT" ]
null
null
null
from collections import deque class IndexedObject: """Container for an object that has indices :param name: Name of the object :param indices: Indices attached to it """ def __init__(self,name,indices): """Constructor """ self.name = name self.indices = indic...
30.406977
111
0.549522
293
2,615
4.726962
0.211604
0.111191
0.06065
0.073646
0.612274
0.52491
0.52491
0.450542
0.450542
0.450542
0
0.002278
0.328489
2,615
86
112
30.406977
0.786446
0.213002
0
0.530612
0
0
0.005658
0
0
0
0
0
0
1
0.183673
false
0
0.020408
0
0.408163
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
ef29d7cb4df5849c15653808babb4473a2403757
874
py
Python
python/sagiri-bot/SAGIRIBOT/data_manage/update_data/update_setting.py
GG-yuki/bugs
aabd576e9e57012a3390007af890b7c6ab6cdda8
[ "MIT" ]
null
null
null
python/sagiri-bot/SAGIRIBOT/data_manage/update_data/update_setting.py
GG-yuki/bugs
aabd576e9e57012a3390007af890b7c6ab6cdda8
[ "MIT" ]
null
null
null
python/sagiri-bot/SAGIRIBOT/data_manage/update_data/update_setting.py
GG-yuki/bugs
aabd576e9e57012a3390007af890b7c6ab6cdda8
[ "MIT" ]
null
null
null
from SAGIRIBOT.basics.aio_mysql_excute import execute_sql async def update_setting(group_id, setting_name, new_setting_value) -> None: """ Update setting to database Args: group_id: Group id setting_name: Setting name new_setting_value: New setting value Examples: awa...
31.214286
105
0.662471
117
874
4.65812
0.393162
0.181651
0.137615
0.154128
0.341284
0.245872
0.245872
0.245872
0.245872
0.245872
0
0.014859
0.229977
874
27
106
32.37037
0.794948
0
0
0
0
0
0.21129
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
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
ef3678c7e21e6c165bc6c6b597bc9cfc9cfa52bc
10,380
py
Python
examples/tutorial/example4.py
sathiscode/trumania
bcf21c4f9e1ff0fe03fd9cbe2dc367f0df033fbc
[ "Apache-2.0" ]
97
2018-01-15T19:29:31.000Z
2022-03-11T00:27:34.000Z
examples/tutorial/example4.py
sathiscode/trumania
bcf21c4f9e1ff0fe03fd9cbe2dc367f0df033fbc
[ "Apache-2.0" ]
10
2018-01-15T22:44:55.000Z
2022-02-18T09:44:10.000Z
examples/tutorial/example4.py
sathiscode/trumania
bcf21c4f9e1ff0fe03fd9cbe2dc367f0df033fbc
[ "Apache-2.0" ]
33
2018-01-15T19:34:23.000Z
2022-03-05T22:39:33.000Z
from trumania.core import circus import trumania.core.population as population import trumania.core.random_generators as gen import trumania.core.operations as ops import trumania.core.story as story import trumania.components.time_patterns.profilers as profilers import trumania.core.util_functions as util_functions im...
34.832215
87
0.657225
1,251
10,380
5.213429
0.27498
0.019319
0.038332
0.042932
0.315547
0.25667
0.228458
0.205765
0.205765
0.205765
0
0.014798
0.257803
10,380
297
88
34.949495
0.831776
0.218593
0
0.245989
0
0
0.117749
0.002851
0
0
0
0
0
1
0.037433
false
0
0.048128
0.005348
0.101604
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
ef3d18dad9fb4f3ea7850ca0af729153b0fd6bb6
1,828
py
Python
hyperparameter_tuner/run_command_generator.py
chutien/zpp-mem
470dec89dda475f7272b876f191cef9f8266a6dc
[ "MIT" ]
1
2019-10-22T11:33:23.000Z
2019-10-22T11:33:23.000Z
hyperparameter_tuner/run_command_generator.py
chutien/zpp-mem
470dec89dda475f7272b876f191cef9f8266a6dc
[ "MIT" ]
null
null
null
hyperparameter_tuner/run_command_generator.py
chutien/zpp-mem
470dec89dda475f7272b876f191cef9f8266a6dc
[ "MIT" ]
null
null
null
from itertools import product from hyperparameter_tuner.single_parameter_generator import single_parameter_generator as sgen class run_command_generator(): def __init__(self, single_parameter_generator_list, command_prefix="python ../experiment.py", output_path="./results"): for gen in s...
46.871795
116
0.650438
213
1,828
5.211268
0.338028
0.09009
0.172973
0.151351
0.189189
0.073874
0.073874
0
0
0
0
0.027523
0.224836
1,828
38
117
48.105263
0.755822
0
0
0
0
0.068966
0.136214
0.036652
0
0
0
0
0.034483
1
0.103448
false
0
0.068966
0.034483
0.241379
0.034483
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
ef41254ab69ff27661576195222b554a1c94e4da
6,158
py
Python
src/inscriptis/model/canvas/__init__.py
rlskoeser/inscriptis
e23f79a4ad561f53943c3c6dd70a7d4981b0e0fb
[ "Apache-2.0" ]
90
2016-01-29T15:09:21.000Z
2022-03-08T15:08:57.000Z
src/inscriptis/model/canvas/__init__.py
rlskoeser/inscriptis
e23f79a4ad561f53943c3c6dd70a7d4981b0e0fb
[ "Apache-2.0" ]
27
2016-01-14T10:30:10.000Z
2022-03-24T08:00:31.000Z
src/inscriptis/model/canvas/__init__.py
rlskoeser/inscriptis
e23f79a4ad561f53943c3c6dd70a7d4981b0e0fb
[ "Apache-2.0" ]
20
2016-01-14T12:50:55.000Z
2022-03-04T07:26:30.000Z
#!/usr/bin/env python # encoding: utf-8 """Classes used for rendering (parts) of the canvas. Every parsed :class:`~inscriptis.model.html_element.HtmlElement` writes its textual content to the canvas which is managed by the following three classes: - :class:`Canvas` provides the drawing board on which the HTML page...
38.248447
79
0.636733
758
6,158
5.030343
0.228232
0.084972
0.092316
0.029898
0.278521
0.215578
0.169945
0.150538
0.140047
0.116968
0
0.002253
0.279149
6,158
160
80
38.4875
0.856724
0.37025
0
0.194805
0
0
0.016271
0
0
0
0
0
0
1
0.142857
false
0
0.064935
0
0.298701
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
ef44efdf1df1a7a380310f517a87f13a57e2f804
1,832
py
Python
server/app.py
Catsvilles/Lofi
f3a783a5ba3e80e6c8f958990f6f09767d25a48e
[ "Apache-2.0" ]
27
2021-07-14T17:12:29.000Z
2022-03-18T16:15:18.000Z
server/app.py
Catsvilles/Lofi
f3a783a5ba3e80e6c8f958990f6f09767d25a48e
[ "Apache-2.0" ]
3
2021-08-29T11:22:04.000Z
2022-02-16T23:20:04.000Z
server/app.py
Catsvilles/Lofi
f3a783a5ba3e80e6c8f958990f6f09767d25a48e
[ "Apache-2.0" ]
4
2021-07-25T09:55:09.000Z
2022-03-25T17:16:18.000Z
import json import torch from flask import Flask, request, jsonify from flask_limiter import Limiter from flask_limiter.util import get_remote_address from model.lofi2lofi_model import Decoder as Lofi2LofiDecoder from model.lyrics2lofi_model import Lyrics2LofiModel from server.lofi2lofi_generate import decode from se...
29.548387
90
0.771288
227
1,832
6.013216
0.321586
0.082051
0.023443
0.026374
0.250549
0.215385
0.175824
0.118681
0.118681
0.118681
0
0.017802
0.110808
1,832
61
91
30.032787
0.820135
0
0
0.166667
0
0
0.158843
0.088428
0
0
0
0
0
1
0.0625
false
0
0.1875
0.020833
0.3125
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
ef473c6a7f8ab89bcd75652de804e2198dfb2d97
1,153
py
Python
cw-bitcoin-price.py
buraktokman/Crypto-Exchange-Data-Fetcher
23e6ba542ff7a862af3247db2c04c2c10a5f3edf
[ "MIT" ]
1
2021-08-09T07:22:25.000Z
2021-08-09T07:22:25.000Z
cw-bitcoin-price.py
buraktokman/Crypto-Exchange-Data-Fetcher
23e6ba542ff7a862af3247db2c04c2c10a5f3edf
[ "MIT" ]
null
null
null
cw-bitcoin-price.py
buraktokman/Crypto-Exchange-Data-Fetcher
23e6ba542ff7a862af3247db2c04c2c10a5f3edf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' Cryptowat.ch API https://cryptowat.ch/docs/api https://api.cryptowat.ch/markets/prices ''' import urllib.request, json, datetime, time from urllib.request import urlopen from pathlib import Path csv_file_price = Path(__file__).parents[0] / 'data' / 'cryptowatch-bitcoin-price2.csv' def requ...
26.813953
86
0.633998
150
1,153
4.733333
0.446667
0.061972
0.080282
0.053521
0.090141
0.090141
0
0
0
0
0
0.006593
0.210755
1,153
42
87
27.452381
0.773626
0.180399
0
0.076923
0
0
0.115508
0.032086
0
0
0
0
0
1
0.076923
false
0
0.115385
0
0.230769
0.153846
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
ef488748bc20e35c68916d75dae55ef743e1069d
6,145
py
Python
python/orz/sta2json.py
ViewFaceCore/OpenRoleZoo
19cef3cdc5238374cedcf7068dc7a6ad8448c21b
[ "BSD-2-Clause" ]
null
null
null
python/orz/sta2json.py
ViewFaceCore/OpenRoleZoo
19cef3cdc5238374cedcf7068dc7a6ad8448c21b
[ "BSD-2-Clause" ]
null
null
null
python/orz/sta2json.py
ViewFaceCore/OpenRoleZoo
19cef3cdc5238374cedcf7068dc7a6ad8448c21b
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # coding: UTF-8 import os import struct from .sta import * import json import copy import base64 from collections import OrderedDict class Stream: def __init__(self, byte): self.byte = byte self.index = 0 def read(self, size=None): data = '' if size is N...
28.449074
73
0.593979
794
6,145
4.492443
0.157431
0.060555
0.024671
0.026913
0.508831
0.367816
0.359406
0.325764
0.325764
0.303897
0
0.014189
0.277461
6,145
215
74
28.581395
0.789189
0.172823
0
0.285714
0
0
0.075556
0
0
0
0
0
0
1
0.090226
false
0
0.052632
0.015038
0.293233
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
ef4888a9795dbbe5df0abc36429c88521fbd3e99
1,494
py
Python
872 Leaf-Similar Trees.py
krishna13052001/LeetCode
cd6ec626bea61f0bd9e8493622074f9e69a7a1c3
[ "MIT" ]
872
2015-06-15T12:02:41.000Z
2022-03-30T08:44:35.000Z
872 Leaf-Similar Trees.py
nadeemshaikh-github/LeetCode
3fb14aeea62a960442e47dfde9f964c7ffce32be
[ "MIT" ]
8
2015-06-21T15:11:59.000Z
2022-02-01T11:22:34.000Z
872 Leaf-Similar Trees.py
nadeemshaikh-github/LeetCode
3fb14aeea62a960442e47dfde9f964c7ffce32be
[ "MIT" ]
328
2015-06-28T03:10:35.000Z
2022-03-29T11:05:28.000Z
#!/usr/bin/python3 """ Consider all the leaves of a binary tree. From left to right order, the values of those leaves form a leaf value sequence. For example, in the given tree above, the leaf value sequence is (6, 7, 4, 9, 8). Two binary trees are considered leaf-similar if their leaf value sequence is the same. R...
25.758621
80
0.566934
213
1,494
3.957746
0.469484
0.032028
0.060498
0.045077
0
0
0
0
0
0
0
0.020877
0.358768
1,494
57
81
26.210526
0.859081
0.419009
0
0
0
0
0
0
0
0
0
0
0
1
0.107143
false
0
0
0
0.25
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
ef53ba7f982e4f61582b4dfc595af89608ab9da3
3,695
py
Python
third_party/graphy/graphy/common_test.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
third_party/graphy/graphy/common_test.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
4,640
2015-07-08T16:19:08.000Z
2019-12-02T15:01:27.000Z
third_party/graphy/graphy/common_test.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
698
2015-06-02T19:18:35.000Z
2022-03-29T16:57:15.000Z
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
33.899083
74
0.707984
481
3,695
5.380457
0.322245
0.048686
0.041731
0.053323
0.316461
0.316461
0.204791
0.188949
0.155719
0.078825
0
0.020541
0.169959
3,695
108
75
34.212963
0.82328
0.223545
0
0.144928
0
0
0.039112
0
0
0
0
0.009259
0.347826
1
0.130435
false
0
0.057971
0
0.202899
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
ef53e0e036cb078d36e154064142222b1dfe4d85
608
py
Python
projects/utils_func/fetch_data.py
blitty-codes/ml-proyects
97d41757cfb45209bbbb09e4c3b51e20c4328a30
[ "Apache-2.0" ]
null
null
null
projects/utils_func/fetch_data.py
blitty-codes/ml-proyects
97d41757cfb45209bbbb09e4c3b51e20c4328a30
[ "Apache-2.0" ]
null
null
null
projects/utils_func/fetch_data.py
blitty-codes/ml-proyects
97d41757cfb45209bbbb09e4c3b51e20c4328a30
[ "Apache-2.0" ]
null
null
null
# Download the data you import os import tarfile import requests def fetch_data(dataset_url): file_name = dataset_url.split('/')[-1] dataset_path = os.path.join("datasets", file_name.split('.')[0]) print(dataset_path) print(f"File name: {file_name.split('.')[0]}") os.makedirs(dataset_path, exist_o...
27.636364
68
0.692434
90
608
4.455556
0.4
0.099751
0.049875
0.069825
0
0
0
0
0
0
0
0.005906
0.164474
608
21
69
28.952381
0.783465
0.034539
0
0
0
0
0.100855
0.042735
0
0
0
0
0
1
0.0625
false
0
0.1875
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
ef54bb20c88dda93a302698251aa2e77667dc8a2
4,526
py
Python
xpython/builtins.py
pmp-p/x-python
e5bdc15af1bf9cf696b2d9a8e1a02a4863b1fb8a
[ "MIT" ]
null
null
null
xpython/builtins.py
pmp-p/x-python
e5bdc15af1bf9cf696b2d9a8e1a02a4863b1fb8a
[ "MIT" ]
null
null
null
xpython/builtins.py
pmp-p/x-python
e5bdc15af1bf9cf696b2d9a8e1a02a4863b1fb8a
[ "MIT" ]
null
null
null
""" A place to implement built-in functions. We use the bytecode for these when doing cross-version interpreting """ from xpython.pyobj import Function, Cell, make_cell from xdis import codeType2Portable, PYTHON_VERSION, IS_PYPY def func_code(func): if hasattr(func, "func_code"): return func.func_code ...
32.328571
84
0.650685
588
4,526
4.807823
0.363946
0.019809
0.018394
0.012027
0
0
0
0
0
0
0
0.011367
0.261379
4,526
139
85
32.561151
0.834281
0.455148
0
0.047619
0
0
0.092257
0
0
0
0
0
0.015873
1
0.047619
false
0.015873
0.047619
0
0.15873
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
ef58bac3885ae00f40f0903957d207828fe3e0c6
857
py
Python
config/object_detection_retinanet_config.py
kadirtereci/Keras-retinanet-Training-on-custom-datasets-for-Object-Detection--
5baacf4475f3679b96ea2001994a575ec0a72bf0
[ "Apache-2.0" ]
null
null
null
config/object_detection_retinanet_config.py
kadirtereci/Keras-retinanet-Training-on-custom-datasets-for-Object-Detection--
5baacf4475f3679b96ea2001994a575ec0a72bf0
[ "Apache-2.0" ]
null
null
null
config/object_detection_retinanet_config.py
kadirtereci/Keras-retinanet-Training-on-custom-datasets-for-Object-Detection--
5baacf4475f3679b96ea2001994a575ec0a72bf0
[ "Apache-2.0" ]
null
null
null
# import the necessary packages import os # Set the dataset base path here BASE_PATH = "/content/Keras-retinanet-Training-on-custom-datasets-for-Object-Detection--/dataset" # build the path to the annotations and input images ANNOT_PATH = os.path.sep.join([BASE_PATH, 'annotations']) IMAGES_PATH = os.path.sep.join([BA...
35.708333
97
0.757293
142
857
4.450704
0.34507
0.101266
0.085443
0.123418
0.371835
0.344937
0.275316
0
0
0
0
0.005355
0.128355
857
23
98
37.26087
0.840696
0.425904
0
0
0
0.111111
0.287785
0.171843
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ef59c84efb2830bb4da68800485a32f52a474ab9
14,738
py
Python
src/c4/cmany/cmake.py
biojppm/cmany
b20c24169d60077122ae29a0c09526913340fd5c
[ "MIT" ]
20
2017-05-17T18:43:08.000Z
2021-02-13T16:20:53.000Z
src/c4/cmany/cmake.py
biojppm/cmany
b20c24169d60077122ae29a0c09526913340fd5c
[ "MIT" ]
8
2017-06-04T17:01:06.000Z
2022-03-17T12:43:32.000Z
src/c4/cmany/cmake.py
biojppm/cmany
b20c24169d60077122ae29a0c09526913340fd5c
[ "MIT" ]
1
2017-06-04T13:09:19.000Z
2017-06-04T13:09:19.000Z
import re import os from collections import OrderedDict as odict from .conf import USER_DIR from .util import cacheattr, setcwd, runsyscmd, logdbg from . import util from . import err _cache_entry = r'^(.*?)(:.*?)=(.*)$' def hascache(builddir): c = os.path.join(builddir, 'CMakeCache.txt') if os.path.exists...
36.937343
125
0.519677
1,670
14,738
4.449102
0.181437
0.016151
0.014536
0.012113
0.259219
0.189233
0.134051
0.11467
0.068371
0.037147
0
0.003567
0.296105
14,738
398
126
37.030151
0.712647
0.210544
0
0.212454
0
0
0.113199
0.014161
0
0
0
0.002513
0
1
0.120879
false
0
0.040293
0.029304
0.311355
0.003663
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
ef5b7b88dd380eec142de24fd5621ee02381ea01
3,744
py
Python
RGB_extraction_maize_diversity.py
xiangjunli/Maize_Phenotype_Map
15765c1a9a58bdf5cfca5602e09e9cbe74d12b98
[ "BSD-3-Clause" ]
4
2018-02-06T21:15:31.000Z
2018-07-28T14:00:17.000Z
RGB_extraction_maize_diversity.py
xiangjunli/Maize_Phenotype_Map
15765c1a9a58bdf5cfca5602e09e9cbe74d12b98
[ "BSD-3-Clause" ]
null
null
null
RGB_extraction_maize_diversity.py
xiangjunli/Maize_Phenotype_Map
15765c1a9a58bdf5cfca5602e09e9cbe74d12b98
[ "BSD-3-Clause" ]
2
2020-02-07T18:26:09.000Z
2020-10-16T15:52:56.000Z
import numpy as np import cv2 import sys import os #######################RGB Image Data Analysis############################################################ ###Should follow the data structure of image data: Genotype --> Replicates (Plants) --> Different Views --> Image captured by each Day### # mfold defines the fol...
32
174
0.626603
610
3,744
3.82459
0.362295
0.033005
0.007715
0.024432
0.058294
0.032576
0
0
0
0
0
0.04514
0.18937
3,744
116
175
32.275862
0.723558
0.236111
0
0.058824
0
0
0.091534
0.008683
0
0
0
0
0
1
0.019608
false
0
0.039216
0
0.078431
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
ef5c0e5ff1790c1367e3395cb63ad1ddf91375ef
4,620
py
Python
cgtools/skinning.py
tneumann/cgtools
8f77b6a4642fe79ac85b8449ebd3f72ea0e56032
[ "MIT" ]
10
2019-05-02T14:08:32.000Z
2021-03-15T16:07:19.000Z
cgtools/skinning.py
tneumann/cgtools
8f77b6a4642fe79ac85b8449ebd3f72ea0e56032
[ "MIT" ]
null
null
null
cgtools/skinning.py
tneumann/cgtools
8f77b6a4642fe79ac85b8449ebd3f72ea0e56032
[ "MIT" ]
3
2019-05-02T14:08:33.000Z
2021-02-10T03:47:29.000Z
import numpy as np from . import vector as V def rbm_to_dualquat(rbm): import cgkit.cgtypes as cg q0 = cg.quat().fromMat(cg.mat3(rbm[:3,:3].T.tolist())) q0 = q0.normalize() q0 = np.array([q0.w, q0.x, q0.y, q0.z]) t = rbm[:3, 3] q1 = np.array([ -0.5*( t[0]*q0[1] + t[1]*q0[2] + t[2]*...
37.868852
104
0.515368
855
4,620
2.74269
0.181287
0.016205
0.010235
0.008529
0.219616
0.165458
0.165458
0.104904
0.0742
0.0742
0
0.092855
0.282035
4,620
121
105
38.181818
0.614109
0.146537
0
0.020408
0
0.102041
0.345562
0
0
0
0
0.008264
0
1
0.05102
false
0
0.040816
0
0.153061
0.010204
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
ef5cca29cfc460b593d8a2ef7fb0d7625f148237
2,214
py
Python
methods/self_attention.py
uyplayer/machine_learning_notice
9f6c4a9a5e278321611d9be1e8fa46bf9a1bd416
[ "Apache-2.0" ]
1
2019-12-10T12:27:33.000Z
2019-12-10T12:27:33.000Z
methods/self_attention.py
uyplayer/machine_learning_notice
9f6c4a9a5e278321611d9be1e8fa46bf9a1bd416
[ "Apache-2.0" ]
null
null
null
methods/self_attention.py
uyplayer/machine_learning_notice
9f6c4a9a5e278321611d9be1e8fa46bf9a1bd416
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Team : uyplayer team # Author: uyplayer # Date :2019/11/20 下午4:22 # Tool :PyCharm ''' https://blog.csdn.net/c9Yv2cf9I06K2A9E/article/details/79739287 https://msd.misuland.com/pd/13340603045208861 ''' class AttnDecoderRNN(nn.Module): def __init__(self, hidden_size, output_size, dr...
41.773585
88
0.653117
264
2,214
5.314394
0.359848
0.078403
0.099786
0.064148
0.112616
0.038489
0.038489
0
0
0
0
0.051795
0.232611
2,214
53
89
41.773585
0.773985
0.250678
0
0
0
0
0
0
0
0
0
0
0
1
0.103448
false
0
0
0.034483
0.206897
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
ef5e5867ee1d6b8b8d8f0bd5472d8f25ae61b5ab
497
py
Python
Aniyom Ebenezer/phase 1/python 2 basis/Day_21_Challenge_Solution/Question 6 Solution.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
6
2020-05-23T19:53:25.000Z
2021-05-08T20:21:30.000Z
Aniyom Ebenezer/phase 1/python 2 basis/Day_21_Challenge_Solution/Question 6 Solution.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
8
2020-05-14T18:53:12.000Z
2020-07-03T00:06:20.000Z
Aniyom Ebenezer/phase 1/python 2 basis/Day_21_Challenge_Solution/Question 6 Solution.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
39
2020-05-10T20:55:02.000Z
2020-09-12T17:40:59.000Z
""" Write a Python program that reads a date (from 2016/1/1 to 2016/12/31) and prints the day of the date. Jan. 1, 2016, is Friday. Note that 2016 is a leap year. """ from datetime import date print("Input month and date(separated by a single space): ") m, d = map(int, input().split()) weeks = {1: "Monday", 2: "Tuesda...
33.133333
106
0.668008
86
497
3.860465
0.651163
0.03012
0.054217
0
0
0
0
0
0
0
0
0.084337
0.16499
497
15
107
33.133333
0.715663
0.366197
0
0
0
0
0.386364
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.333333
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
ef5e8dee6b61a5247d6e4659a6ab926d4b74a1e7
347
py
Python
test15.py
cherytony/test1
506ce4cab6f641beff817c81d7a616db29a7131d
[ "Apache-2.0" ]
null
null
null
test15.py
cherytony/test1
506ce4cab6f641beff817c81d7a616db29a7131d
[ "Apache-2.0" ]
null
null
null
test15.py
cherytony/test1
506ce4cab6f641beff817c81d7a616db29a7131d
[ "Apache-2.0" ]
null
null
null
""" 题目描述 给定n个字符串,请对n个字符串按照字典序排列。 输入描述: 输入第一行为一个正整数n(1≤n≤1000),下面n行为n个字符串(字符串长度≤100),字符串中只含有大小写字母。 输出描述: 数据输出n行,输出结果为按照字典序排列的字符串。 示例1 输入 9 cap to cat card two too up boat boot 输出 boat boot cap card cat to too two up """ list = [] n = int(input()) for i in range(0, n): s = input() list.append(s) list.sort() f...
8.069767
58
0.674352
63
347
3.761905
0.650794
0.067511
0.050633
0
0
0
0
0
0
0
0
0.039286
0.193084
347
42
59
8.261905
0.796429
0.605187
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
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
ef5fbbee42c9df1a0ff003ab57c38b8bb1ccfe30
2,558
py
Python
0-EXP-TIRA-C10.py
webis-de/Luyckx2008
a7b2711a354a71ba326ddb1e495a8343091e4d8c
[ "Unlicense" ]
null
null
null
0-EXP-TIRA-C10.py
webis-de/Luyckx2008
a7b2711a354a71ba326ddb1e495a8343091e4d8c
[ "Unlicense" ]
null
null
null
0-EXP-TIRA-C10.py
webis-de/Luyckx2008
a7b2711a354a71ba326ddb1e495a8343091e4d8c
[ "Unlicense" ]
null
null
null
import jsonhandler from LuyckxFeatures import * import timblClassification as timbl import os import numpy as np from collections import Counter def parseC10(c10_path): jsonhandler.loadJson(c10_path) jsonhandler.loadTraining() candidates = jsonhandler.candidates unknowns = jsonhandler.unknowns f...
38.179104
86
0.670837
303
2,558
5.613861
0.277228
0.009406
0.005291
0.029982
0.260435
0.189888
0.095238
0.095238
0
0
0
0.014507
0.191556
2,558
66
87
38.757576
0.808027
0.015637
0
0.241379
0
0
0.051731
0
0
0
0
0
0
1
0.017241
false
0
0.103448
0
0.12069
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
ef6043c616af761fa9470ba29ff276fd15c95e0d
3,133
py
Python
bus.py
resc863/Kakao_Chatbot
fe4a038de323ad733cd49e69c7ceb283a36bef0c
[ "MIT" ]
1
2020-08-01T13:42:26.000Z
2020-08-01T13:42:26.000Z
bus.py
resc863/Kakao_Chatbot
fe4a038de323ad733cd49e69c7ceb283a36bef0c
[ "MIT" ]
null
null
null
bus.py
resc863/Kakao_Chatbot
fe4a038de323ad733cd49e69c7ceb283a36bef0c
[ "MIT" ]
1
2021-08-24T14:02:32.000Z
2021-08-24T14:02:32.000Z
from bs4 import BeautifulSoup from multiprocessing import Pool import requests def lineid(lineno): lineurl = "http://61.43.246.153/openapi-data/service/busanBIMS2/busInfo?lineno="+lineno+"&serviceKey=0XeO7nbthbiRoMUkYGGah20%2BfXizwc0A6BfjrkL6qhh2%2Fsl8j9PzfSLGKnqR%2F1v%2F%2B6AunxntpLfoB3Ryd3OInQ%3D%3D" lin...
27.243478
210
0.616981
363
3,133
5.30303
0.30303
0.043636
0.016623
0.022857
0.362597
0.362597
0.362597
0.362597
0.362597
0.20987
0
0.08144
0.255346
3,133
114
211
27.482456
0.743678
0
0
0.166667
0
0.047619
0.301309
0.072774
0
0
0
0
0
1
0.059524
false
0
0.035714
0
0.154762
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
ef60ce6fc063e157d7dfaad93f8114a633854b16
4,256
py
Python
model_training.py
PatriceC/MLProjectISDP2020
64e83824690ccde2714d915c70fb00b20aa66a42
[ "MIT" ]
1
2021-01-23T01:04:00.000Z
2021-01-23T01:04:00.000Z
model_training.py
cor3ntino/Time-Series-Prediction-with-Deep-Learning-for-Road-Trafic-Data
e8eefdf2e630a53e09f88550357b67732f2bccd0
[ "MIT" ]
null
null
null
model_training.py
cor3ntino/Time-Series-Prediction-with-Deep-Learning-for-Road-Trafic-Data
e8eefdf2e630a53e09f88550357b67732f2bccd0
[ "MIT" ]
1
2021-01-19T16:57:27.000Z
2021-01-19T16:57:27.000Z
# -*- coding: utf-8 -*- """ Created on Mon Nov 23 13:54:58 2020 @author: Patrice CHANOL & Corentin MORVAN--CHAUMEIL """ import numpy as np import torch import time import visualisation from datetime import datetime def main(model, criterion, optimizer, scheduler, data_train_loader, data_test_loader, num_epochs, inp...
34.322581
140
0.608083
493
4,256
5.06288
0.320487
0.072115
0.019231
0.027644
0.099359
0.030449
0.030449
0
0
0
0
0.012387
0.298167
4,256
123
141
34.601626
0.823234
0.294878
0
0.16
0
0
0.048438
0
0
0
0
0
0
1
0.02
false
0
0.1
0
0.14
0.12
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ef61b3b08001b19237e5f7463a25cc96b621c9fe
3,679
py
Python
process_data.py
johnnyp2587/fx-drqn
0ea8a4ad673a1883dd4630a69629c75c8f49148c
[ "MIT" ]
1
2021-01-30T11:50:54.000Z
2021-01-30T11:50:54.000Z
process_data.py
johnnyp2587/fx-drqn
0ea8a4ad673a1883dd4630a69629c75c8f49148c
[ "MIT" ]
null
null
null
process_data.py
johnnyp2587/fx-drqn
0ea8a4ad673a1883dd4630a69629c75c8f49148c
[ "MIT" ]
2
2021-01-30T11:50:57.000Z
2021-02-04T15:43:54.000Z
import numpy as np import pandas as pd import datetime def gen_cols(Pad, cur, lag): currency = list(np.sort(Pad['currency pair'].unique())) tmp = Pad[Pad['currency pair'] == cur].sort_values(by=['timestamp']) for i in range(1,lag+1): colname1 = 'bid_lag_' + str(i) colname2 = 'ask_lag_' + st...
37.927835
113
0.580864
559
3,679
3.588551
0.232558
0.071785
0.034895
0.044865
0.228315
0.081755
0.081755
0.065803
0.065803
0.033898
0
0.073726
0.247893
3,679
96
114
38.322917
0.651247
0
0
0.078652
0
0
0.120413
0
0
0
0
0
0
1
0.022472
false
0.011236
0.033708
0
0.067416
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
ef625fbf84f8e46aa31c085f3762960c2186790e
3,863
py
Python
benchmark.py
tgisaturday/minGPT
3ff862f7fac8adbc3dcdf0693d996468fd4c3f7b
[ "MIT" ]
null
null
null
benchmark.py
tgisaturday/minGPT
3ff862f7fac8adbc3dcdf0693d996468fd4c3f7b
[ "MIT" ]
null
null
null
benchmark.py
tgisaturday/minGPT
3ff862f7fac8adbc3dcdf0693d996468fd4c3f7b
[ "MIT" ]
null
null
null
import math import os from argparse import ArgumentParser import numpy as np import torch from pytorch_lightning import Trainer from pytorch_lightning import seed_everything from pytorch_lightning.utilities import rank_zero_info from pytorch_lightning.callbacks import XLAStatsMonitor from torch.utils.data import Datas...
36.443396
119
0.681077
535
3,863
4.700935
0.330841
0.053678
0.047316
0.031809
0.249304
0.17336
0.153479
0.089861
0.089861
0.089861
0
0.012426
0.208387
3,863
105
120
36.790476
0.810007
0.069635
0
0.073171
0
0.02439
0.093341
0
0
0
0
0
0
1
0.073171
false
0
0.158537
0.02439
0.292683
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
ef62a93780f5d22fd2c5c963cb04b78649fda229
2,059
py
Python
weather.py
corgiclub/CorgiBot_telegram
a63d91a74ee497b9a405e93bd3b303367ef95268
[ "MIT" ]
null
null
null
weather.py
corgiclub/CorgiBot_telegram
a63d91a74ee497b9a405e93bd3b303367ef95268
[ "MIT" ]
null
null
null
weather.py
corgiclub/CorgiBot_telegram
a63d91a74ee497b9a405e93bd3b303367ef95268
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -* import requests import json def get_weather(city: str) -> json: req = requests.get("https://free-api.heweather.net/s6/weather?location=" "{}&key=89d6bbc3861844d59a6313c16448d293".format(city)) json_data = json.loads(req.text, encoding="UTF8") return json_data ...
44.76087
112
0.594463
280
2,059
4.175
0.3
0.076989
0.076989
0.015398
0.109495
0.083832
0.083832
0.083832
0.083832
0.083832
0
0.026119
0.219038
2,059
45
113
45.755556
0.695896
0.032054
0
0
0
0.054054
0.270854
0.069347
0
0
0
0
0
1
0.054054
false
0
0.054054
0
0.162162
0.027027
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
ef63d9fcd4c7ced9c5506a721a486919e70bacc7
2,536
py
Python
paz/datasets/ferplus.py
niqbal996/paz
f27205907367415d5b21f90e1a1d1d1ce598e889
[ "MIT" ]
300
2020-10-29T08:02:05.000Z
2022-03-30T21:47:32.000Z
paz/datasets/ferplus.py
albertofernandezvillan/paz
9fbd50b993f37e1e807297a29c6044c09967c9cc
[ "MIT" ]
30
2020-10-29T12:40:32.000Z
2022-03-31T14:06:35.000Z
paz/datasets/ferplus.py
albertofernandezvillan/paz
9fbd50b993f37e1e807297a29c6044c09967c9cc
[ "MIT" ]
62
2020-10-29T12:34:13.000Z
2022-03-29T05:21:45.000Z
import os import numpy as np from .utils import get_class_names from ..abstract import Loader from ..backend.image import resize_image # IMAGES_PATH = '../datasets/fer2013/fer2013.csv' # LABELS_PATH = '../datasets/fer2013/fer2013new.csv' class FERPlus(Loader): """Class for loading FER2013 emotion classification...
39.015385
79
0.613565
318
2,536
4.764151
0.393082
0.052805
0.025743
0.033663
0.063366
0.063366
0
0
0
0
0
0.035827
0.251577
2,536
64
80
39.625
0.762381
0.300079
0
0
0
0
0.06188
0
0
0
0
0
0
1
0.055556
false
0
0.138889
0
0.25
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
ef651d134e566a45ca23483fc6b3987d980d24af
863
py
Python
code/array/container-with-most-water.py
windsuzu/leetcode-python
240ca747d58eb78b08dedf4d5a1fdc0fe0b0c6bf
[ "MIT" ]
1
2021-09-29T11:05:07.000Z
2021-09-29T11:05:07.000Z
code/array/container-with-most-water.py
windsuzu/leetcode-python
240ca747d58eb78b08dedf4d5a1fdc0fe0b0c6bf
[ "MIT" ]
null
null
null
code/array/container-with-most-water.py
windsuzu/leetcode-python
240ca747d58eb78b08dedf4d5a1fdc0fe0b0c6bf
[ "MIT" ]
1
2021-09-29T11:06:32.000Z
2021-09-29T11:06:32.000Z
from typing import List class Solution: def maxArea(self, height: List[int]) -> int: # We can create "left" and "right" pointers # the initial width between "l" and "r" is already the maximum l, r = 0, len(height) - 1 width = r - l # We can use greedy metho...
30.821429
74
0.468134
121
863
3.338843
0.46281
0.069307
0.128713
0.138614
0.168317
0.128713
0.128713
0.128713
0
0
0
0.016327
0.432213
863
28
75
30.821429
0.808163
0.391657
0
0
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.285714
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