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
79181888e71b95f21231a74673bce1df5f5dad06
1,058
py
Python
jburt/mask.py
jbburt/jburt
7745491214ef2b665ca8d1fc526bc802a36985ff
[ "MIT" ]
null
null
null
jburt/mask.py
jbburt/jburt
7745491214ef2b665ca8d1fc526bc802a36985ff
[ "MIT" ]
null
null
null
jburt/mask.py
jbburt/jburt
7745491214ef2b665ca8d1fc526bc802a36985ff
[ "MIT" ]
null
null
null
from typing import List import numpy as np def mask_nan(arrays: List[np.ndarray]) -> List[np.ndarray]: """ Drop indices from equal-sized arrays if the element at that index is NaN in any of the input arrays. Parameters ---------- arrays : List[np.ndarray] list of ndarrays containing ...
27.128205
79
0.581285
169
1,058
3.621302
0.426036
0.039216
0.084967
0.062092
0.075163
0
0
0
0
0
0
0.027097
0.267486
1,058
38
80
27.842105
0.762581
0.587902
0
0
0
0
0
0
0
0
0
0
0.111111
1
0.111111
false
0
0.222222
0
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
791a179ef2265637a66974e7b35a3ad2c3c5a16a
10,666
py
Python
src/pythonModules/fourgp_rv/fourgp_rv/templates_resample.py
dcf21/4most-4gp
0421d76791315aa3ca8ff9e4bd2e37ad36c0141f
[ "MIT" ]
null
null
null
src/pythonModules/fourgp_rv/fourgp_rv/templates_resample.py
dcf21/4most-4gp
0421d76791315aa3ca8ff9e4bd2e37ad36c0141f
[ "MIT" ]
null
null
null
src/pythonModules/fourgp_rv/fourgp_rv/templates_resample.py
dcf21/4most-4gp
0421d76791315aa3ca8ff9e4bd2e37ad36c0141f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Code to take template spectra, used for RV fitting, and pass them through 4FS to resample them to 4MOST's resolution. It then further resamples each arm onto a fixed logarithmic stride. """ import argparse import hashlib import logging import numpy as np import os from os import path as os...
45.387234
127
0.603975
1,183
10,666
5.269653
0.255283
0.034649
0.021174
0.013474
0.143247
0.104107
0.064806
0.033365
0.019891
0.019891
0
0.006698
0.328146
10,666
234
128
45.581197
0.863243
0.301519
0
0.077586
0
0
0.121938
0.011285
0
0
0
0
0.008621
1
0.025862
false
0.008621
0.086207
0
0.12931
0.008621
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79206dc12be47bbbc702eacb1b5f27bdf824bf1f
2,993
py
Python
fastapi_cloudauth/firebase.py
jleclanche/fastapi-cloudauth
9c098f91f46d9d927e1f10b82b80340951d0b1f2
[ "MIT" ]
null
null
null
fastapi_cloudauth/firebase.py
jleclanche/fastapi-cloudauth
9c098f91f46d9d927e1f10b82b80340951d0b1f2
[ "MIT" ]
null
null
null
fastapi_cloudauth/firebase.py
jleclanche/fastapi-cloudauth
9c098f91f46d9d927e1f10b82b80340951d0b1f2
[ "MIT" ]
null
null
null
from calendar import timegm from datetime import datetime from typing import Any, Dict from fastapi import HTTPException from pydantic import BaseModel, Field from starlette import status from .base import UserInfoAuth from .messages import NOT_VERIFIED from .verification import JWKS, ExtraVerifier class FirebaseCl...
36.060241
114
0.636151
373
2,993
4.924933
0.434316
0.034295
0.030484
0.043549
0.090365
0.063146
0.038106
0
0
0
0
0.003783
0.293351
2,993
82
115
36.5
0.864775
0.252255
0
0.083333
0
0.020833
0.072917
0
0
0
0
0
0
1
0.0625
false
0
0.1875
0
0.4375
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
7923c47de0831caf8141bfde82615c01392124f5
1,197
py
Python
voltagemetricspublisher/services/extractionService.py
SumudithaR/svc.voltage-metrics-publisher
4e0418c855920d3e984acf097681e2fc8c8ec081
[ "Apache-2.0" ]
null
null
null
voltagemetricspublisher/services/extractionService.py
SumudithaR/svc.voltage-metrics-publisher
4e0418c855920d3e984acf097681e2fc8c8ec081
[ "Apache-2.0" ]
null
null
null
voltagemetricspublisher/services/extractionService.py
SumudithaR/svc.voltage-metrics-publisher
4e0418c855920d3e984acf097681e2fc8c8ec081
[ "Apache-2.0" ]
null
null
null
from time import sleep from gpiozero import MCP3008 # Installed in GAM 13/09/2019. import time import gpiozero from ..models.rawMetricDto import RawMetricDto class ExtractionService(): def __init__(self): self.vref = 3.3 def getGpioValues(self): print("Getting GPIO Values."...
32.351351
71
0.622389
150
1,197
4.94
0.446667
0.097166
0.048583
0.059379
0
0
0
0
0
0
0
0.105263
0.269841
1,197
37
72
32.351351
0.742563
0.071846
0
0
0
0
0.018149
0
0
0
0
0
0
1
0.068966
false
0
0.172414
0
0.310345
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
79273775aa326888e7143a25472099fb24c7a2cc
548
py
Python
ALDS/ALDS1_10_A.py
yu8ikmnbgt6y/MyAOJ
474b21a2a0c25e1c1f3d6d66d2a2ea52aecaa39b
[ "Unlicense" ]
1
2020-01-08T16:33:46.000Z
2020-01-08T16:33:46.000Z
ALDS/ALDS1_10_A.py
yu8ikmnbgt6y/MyAOJ
474b21a2a0c25e1c1f3d6d66d2a2ea52aecaa39b
[ "Unlicense" ]
null
null
null
ALDS/ALDS1_10_A.py
yu8ikmnbgt6y/MyAOJ
474b21a2a0c25e1c1f3d6d66d2a2ea52aecaa39b
[ "Unlicense" ]
null
null
null
import sys import io input_txt = """ 44 """ sys.stdin = io.StringIO(input_txt) tmp = input() # copy the below part and paste to the submission form. # ---------function------------ def fibonacci(n): if n <= 1: return 1 fib_array = [1] * 45 for i in range(2, n+1): fib_ar...
17.125
56
0.509124
76
548
3.526316
0.473684
0.149254
0.100746
0.074627
0
0
0
0
0
0
0
0.02799
0.282847
548
31
57
17.677419
0.653944
0.206204
0
0
0
0
0.01
0
0
0
0
0
0
1
0.095238
false
0
0.095238
0
0.333333
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
792bbfea31e2c47d9dc8a86be0bf40d5cfa67a78
7,381
py
Python
spectrl/util/io.py
luigiberducci/dirl
5f7997aea20dfb7347ebdee66de9bea4e6cd3c62
[ "MIT" ]
null
null
null
spectrl/util/io.py
luigiberducci/dirl
5f7997aea20dfb7347ebdee66de9bea4e6cd3c62
[ "MIT" ]
null
null
null
spectrl/util/io.py
luigiberducci/dirl
5f7997aea20dfb7347ebdee66de9bea4e6cd3c62
[ "MIT" ]
null
null
null
import argparse import os import pathlib import cv2 import pickle import numpy as np from matplotlib import pyplot as plt from PIL import Image from numpy import genfromtxt def parse_command_line_options(print_options=False): parser = argparse.ArgumentParser() parser.add_argument("-n", type=int, default=-1)...
28.608527
98
0.605067
1,006
7,381
4.293241
0.248509
0.02269
0.031257
0.016671
0.146099
0.107895
0.084279
0.043066
0.027321
0.027321
0
0.01276
0.25674
7,381
257
99
28.719844
0.774517
0.155534
0
0.062893
0
0
0.061503
0
0
0
0
0
0
1
0.09434
false
0
0.056604
0
0.220126
0.025157
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
792d78778cc9f57f44aeb718a24a94af2accc6bf
4,337
py
Python
raytracing.py
avigael/raytracing-example
e1e9448fdf371c401e9ada642fd0ca8ed2702609
[ "MIT" ]
null
null
null
raytracing.py
avigael/raytracing-example
e1e9448fdf371c401e9ada642fd0ca8ed2702609
[ "MIT" ]
null
null
null
raytracing.py
avigael/raytracing-example
e1e9448fdf371c401e9ada642fd0ca8ed2702609
[ "MIT" ]
null
null
null
'''2D Raytracing Example using Pygame''' import sys from math import pi, cos, sin import pygame # Constants SIZE = (600, 600) BORDERS = [[0, 0, SIZE[0], 0], [0, 0, 0, SIZE[1]], [0, SIZE[1], SIZE[0], SIZE[1]], [SIZE[0], 0, SIZE[0], SIZE[1]]] WHITE = (255, 255, 255) BLACK = (0, 0, 0) GREEN = (0, 255, 0) cla...
32.125926
78
0.512797
705
4,337
2.990071
0.158865
0.06167
0.051233
0.043169
0.402751
0.379032
0.304554
0.275142
0.260911
0.260911
0
0.082559
0.329721
4,337
134
79
32.365672
0.642587
0.094997
0
0.22449
0
0
0.004643
0
0
0
0
0
0
1
0.071429
false
0
0.030612
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
792f0b4ef299a46239013a5b5a1e30079b053c00
1,854
py
Python
python/test/experimental/test_tb_graph_writer.py
daniel-falk/nnabla
3fe132ea52dc10521cc029a5d6ba8f565cf65ccf
[ "Apache-2.0" ]
2,792
2017-06-26T13:05:44.000Z
2022-03-28T07:55:26.000Z
python/test/experimental/test_tb_graph_writer.py
daniel-falk/nnabla
3fe132ea52dc10521cc029a5d6ba8f565cf65ccf
[ "Apache-2.0" ]
138
2017-06-27T07:04:44.000Z
2022-02-28T01:37:15.000Z
python/test/experimental/test_tb_graph_writer.py
daniel-falk/nnabla
3fe132ea52dc10521cc029a5d6ba8f565cf65ccf
[ "Apache-2.0" ]
380
2017-06-26T13:23:52.000Z
2022-03-25T16:51:30.000Z
# Copyright 2021 Sony Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
30.9
74
0.662891
270
1,854
4.459259
0.481481
0.049834
0.021595
0.026578
0.287375
0.259136
0.259136
0.259136
0.204319
0.204319
0
0.023471
0.24164
1,854
59
75
31.423729
0.832859
0.298813
0
0.333333
0
0
0.122862
0
0
0
0
0
0
1
0.055556
false
0
0.194444
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
792f6c2ed852cae02d142182deaf73d1e0349382
1,328
py
Python
pokeman/coatings/resolver_attribute_methods/selective_consumer.py
wmarcuse/pokeman
5d654c227c456a065b2fea6a0d5827bff424c703
[ "BSD-3-Clause" ]
null
null
null
pokeman/coatings/resolver_attribute_methods/selective_consumer.py
wmarcuse/pokeman
5d654c227c456a065b2fea6a0d5827bff424c703
[ "BSD-3-Clause" ]
null
null
null
pokeman/coatings/resolver_attribute_methods/selective_consumer.py
wmarcuse/pokeman
5d654c227c456a065b2fea6a0d5827bff424c703
[ "BSD-3-Clause" ]
null
null
null
import json import logging LOGGER = logging.getLogger(__name__) def start(self): self.start_consuming() def on_message(self, channel, method, properties, body): """ Invoked by pika when a message is delivered from the AMQP broker. The channel is passed for convenience. The basic_deliver object tha...
31.619048
73
0.707831
165
1,328
5.6
0.424242
0.04329
0.049784
0
0
0
0
0
0
0
0
0
0.220633
1,328
42
74
31.619048
0.892754
0.48494
0
0
0
0
0.106969
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.25
0.1875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7934eac98ca8ffa62c49d783f06b030e9d1fdffb
902
py
Python
test_tflite_model.py
jh88/fbnet
5bd12ab8c7f6befc61efd8619d71e710db794c2b
[ "MIT" ]
6
2020-01-16T14:38:10.000Z
2021-01-24T15:49:11.000Z
test_tflite_model.py
jh88/fbnet
5bd12ab8c7f6befc61efd8619d71e710db794c2b
[ "MIT" ]
null
null
null
test_tflite_model.py
jh88/fbnet
5bd12ab8c7f6befc61efd8619d71e710db794c2b
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from time import perf_counter as timer def main(): x = np.load('data/cifar_test_x.npy') y = np.load('data/cifar_test_y.npy').flatten() interpreter = tf.lite.Interpreter(model_path='data/fbnet.tflite') interpreter.allocate_tensors() input_details = inter...
25.771429
80
0.649667
126
902
4.428571
0.492063
0.064516
0.035842
0.053763
0.0681
0
0
0
0
0
0
0.015131
0.194013
902
34
81
26.529412
0.752407
0
0
0
0
0
0.144124
0.046563
0
0
0
0
0
1
0.043478
false
0
0.130435
0
0.217391
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79371535785d9b4c1a14c7350dbe3a0fef48e07d
3,669
py
Python
src/pymor/playground/progressbar.py
JuliaBru/pymor
46343b527267213f4279ea36f208b542ab291c4e
[ "Unlicense" ]
null
null
null
src/pymor/playground/progressbar.py
JuliaBru/pymor
46343b527267213f4279ea36f208b542ab291c4e
[ "Unlicense" ]
null
null
null
src/pymor/playground/progressbar.py
JuliaBru/pymor
46343b527267213f4279ea36f208b542ab291c4e
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # This file is part of the pyMOR project (http://www.pymor.org). # Copyright 2013-2016 pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) import sys ############################################################ # #...
35.970588
80
0.562006
434
3,669
4.698157
0.407834
0.048553
0.027464
0.014713
0.025503
0
0
0
0
0
0
0.021451
0.301172
3,669
101
81
36.326733
0.773791
0.347234
0
0
0
0
0.017584
0
0
0
0
0
0
1
0.111111
false
0
0.037037
0.037037
0.203704
0.018519
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79372371d63d8554463e6ea69f517b712b741c97
8,184
py
Python
toontown/minigame/TwoDBattleMgr.py
SuperM0use24/TT-CL-Edition
fdad8394f0656ae122b687d603f72afafd220c65
[ "MIT" ]
1
2021-02-13T22:40:50.000Z
2021-02-13T22:40:50.000Z
toontown/minigame/TwoDBattleMgr.py
SuperM0use24/TT-CL-Edition
fdad8394f0656ae122b687d603f72afafd220c65
[ "MIT" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
toontown/minigame/TwoDBattleMgr.py
SuperM0use24/TT-CL-Edition
fdad8394f0656ae122b687d603f72afafd220c65
[ "MIT" ]
3
2021-06-03T05:36:36.000Z
2021-06-22T15:07:31.000Z
from panda3d.core import * from direct.showbase.DirectObject import DirectObject from toontown.toonbase.ToonBaseGlobal import * from direct.directnotify import DirectNotifyGlobal from direct.interval.IntervalGlobal import * from toontown.battle.BattleProps import * from toontown.battle import MovieUtil import math cla...
43.301587
454
0.660191
821
8,184
6.520097
0.276492
0.022417
0.030824
0.014945
0.232393
0.146647
0.126658
0.126658
0.109845
0.109845
0
0.017783
0.237292
8,184
188
455
43.531915
0.839795
0
0
0.198795
0
0
0.028104
0
0
0
0
0
0
1
0.114458
false
0.012048
0.048193
0
0.222892
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
793b2e2631986fe445d59015d41bd730fa29fbfa
352
py
Python
qt/__init__.py
popupcad/popupcad
d3da448260cd5cb9e05417b0a723d7f73ae4e06e
[ "MIT" ]
19
2015-08-01T22:13:39.000Z
2020-03-07T03:55:46.000Z
qt/__init__.py
CadQuery/popupcad
b0c7b406d4b288c7cb375340323bba0252aedbfb
[ "MIT" ]
106
2015-07-23T19:58:01.000Z
2019-05-14T03:46:08.000Z
qt/__init__.py
CadQuery/popupcad
b0c7b406d4b288c7cb375340323bba0252aedbfb
[ "MIT" ]
9
2015-10-04T23:38:41.000Z
2020-07-16T03:50:34.000Z
# -*- coding: utf-8 -*- """ Written by Daniel M. Aukes and CONTRIBUTORS Email: danaukes<at>asu.edu. Please see LICENSE for full license. """ import sys argv = [item.lower() for item in sys.argv] if 'qt4' in argv: loaded = 'PyQt4' elif 'qt5' in argv: loaded = 'PyQt5' elif 'pyside' in argv: loaded = 'PySi...
16
43
0.636364
52
352
4.307692
0.673077
0.080357
0.160714
0
0
0
0
0
0
0
0
0.021818
0.21875
352
21
44
16.761905
0.792727
0.372159
0
0.2
0
0
0.15493
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
793db8fe0005397f1d556c93efea7bcd3624a441
3,941
py
Python
fast_carpenter/__main__.py
lgray/fast-carpenter
c33b83d16031e5ac4b857ac1a644433b6132bb05
[ "Apache-2.0" ]
null
null
null
fast_carpenter/__main__.py
lgray/fast-carpenter
c33b83d16031e5ac4b857ac1a644433b6132bb05
[ "Apache-2.0" ]
null
null
null
fast_carpenter/__main__.py
lgray/fast-carpenter
c33b83d16031e5ac4b857ac1a644433b6132bb05
[ "Apache-2.0" ]
null
null
null
""" Chop up those trees into nice little tables and dataframes """ from __future__ import print_function import sys from .help import help_stages import fast_flow.v1 as fast_flow import fast_curator import logging import atuproot.atuproot_main as atup from .event_builder import EventBuilder from atsge.build_parallel im...
39.019802
112
0.632073
461
3,941
5.182213
0.314534
0.048974
0.092507
0.028464
0.181247
0.108414
0.082461
0.071159
0.071159
0
0
0.005172
0.264146
3,941
100
113
39.41
0.818621
0.014717
0
0
0
0
0.173677
0.005419
0
0
0
0
0
1
0.064103
false
0.012821
0.153846
0
0.282051
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
793e098cac69c0e739d368a1fa2b5c6d69bbe98f
4,519
py
Python
pyperform/tools.py
timgates42/pyperform
97d87e8b9ddb35bd8f2a6782965fd7735ab0349f
[ "MIT" ]
250
2015-01-03T10:15:26.000Z
2022-03-31T19:43:37.000Z
pyperform/tools.py
timgates42/pyperform
97d87e8b9ddb35bd8f2a6782965fd7735ab0349f
[ "MIT" ]
4
2015-01-23T00:19:45.000Z
2015-10-29T17:17:46.000Z
pyperform/tools.py
timgates42/pyperform
97d87e8b9ddb35bd8f2a6782965fd7735ab0349f
[ "MIT" ]
14
2015-01-17T16:23:04.000Z
2021-07-15T10:59:53.000Z
__author__ = 'calvin' import re import sys from math import log10 if sys.version[0] == '3': pass else: range = xrange classdef_regex = re.compile(r"\S*def .*#!|class .*#!") tagged_line_regex = re.compile(r".*#!") def convert_time_units(t): """ Convert time in seconds into reasonable time units. """ ...
30.741497
107
0.548351
543
4,519
4.381215
0.290976
0.033628
0.028583
0.020177
0.18243
0.103405
0.074821
0.074821
0.039512
0.039512
0
0.015873
0.344767
4,519
147
108
30.741497
0.787572
0.139854
0
0.25
0
0
0.027048
0
0
0
0
0
0
1
0.053571
false
0.008929
0.107143
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
793e3ac3dcb05f0d0810a86209b05739d4ea782a
7,522
py
Python
dictify.py
Dharma-Sagar/dictify
c76713feaf45670b245ed7e7feb894c12dffb9cd
[ "Apache-2.0" ]
null
null
null
dictify.py
Dharma-Sagar/dictify
c76713feaf45670b245ed7e7feb894c12dffb9cd
[ "Apache-2.0" ]
null
null
null
dictify.py
Dharma-Sagar/dictify
c76713feaf45670b245ed7e7feb894c12dffb9cd
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict from pathlib import Path import re import yaml import json from botok import Text import pyewts conv = pyewts.pyewts() def dictify_text(string, is_split=False, selection_yaml='data/dictionaries/dict_cats.yaml', expandable=True, mode='en_bo'): """ takes segmented text and...
37.237624
123
0.534964
961
7,522
4.083247
0.19667
0.030581
0.025229
0.022936
0.415647
0.33945
0.329766
0.309378
0.297146
0.261978
0
0.032476
0.312284
7,522
201
124
37.422886
0.724725
0.08309
0
0.35625
0
0.0125
0.119586
0.033251
0
0
0
0
0
1
0.03125
false
0
0.04375
0
0.1375
0.01875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7013f89ddf7249cb8c21753c974a4e817c0eaa2
45,183
py
Python
archetypal/schedule.py
brunomarct/archetypal
ce8daf4e18ef3ec92967e5d6837b392199caf83b
[ "MIT" ]
null
null
null
archetypal/schedule.py
brunomarct/archetypal
ce8daf4e18ef3ec92967e5d6837b392199caf83b
[ "MIT" ]
null
null
null
archetypal/schedule.py
brunomarct/archetypal
ce8daf4e18ef3ec92967e5d6837b392199caf83b
[ "MIT" ]
null
null
null
################################################################################ # Module: schedule.py # Description: Functions for handling conversion of EnergyPlus schedule objects # License: MIT, see full license in LICENSE.txt # Web: https://github.com/samuelduchesne/archetypal #####################################...
39.808811
100
0.535799
5,004
45,183
4.648281
0.107914
0.022872
0.013929
0.010834
0.404729
0.322141
0.278504
0.250301
0.208641
0.195873
0
0.00898
0.364164
45,183
1,134
101
39.843915
0.800654
0.136954
0
0.30413
0
0
0.065605
0.007126
0.002503
0
0
0
0
1
0.051314
false
0.002503
0.020025
0.005006
0.163955
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
f704431757b191fd6a6405e1724d23679ca1b2f0
1,173
py
Python
script/app/agg.py
Intelligent-Systems-Lab/ISL-BCFL
42ceb86708a76e28b31c22b33c15ee9a6a745ec7
[ "Apache-2.0" ]
null
null
null
script/app/agg.py
Intelligent-Systems-Lab/ISL-BCFL
42ceb86708a76e28b31c22b33c15ee9a6a745ec7
[ "Apache-2.0" ]
null
null
null
script/app/agg.py
Intelligent-Systems-Lab/ISL-BCFL
42ceb86708a76e28b31c22b33c15ee9a6a745ec7
[ "Apache-2.0" ]
null
null
null
import os # import torch import argparse import base64 import sys import io import torch import torch.nn as nn from torchvision import transforms from torch.utils.data import DataLoader from torch.utils.data.sampler import SubsetRandomSampler def fullmodel2base64(model): buffer = io.BytesIO() torch.save(mode...
19.55
56
0.734868
171
1,173
4.877193
0.368421
0.076739
0.077938
0.043165
0
0
0
0
0
0
0
0.030488
0.161125
1,173
59
57
19.881356
0.817073
0.053708
0
0
0
0
0.001808
0
0
0
0
0
0
1
0.052632
false
0
0.263158
0
0.368421
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f704c0f9b4488488f3aae9f679bb84275d8e52d4
11,405
py
Python
src/core/src/core_logic/PackageFilter.py
Azure/LinuxPatchExtension
6af622afb4298805bdf47328d6bc66a785f7166b
[ "Apache-2.0" ]
4
2020-06-01T14:36:30.000Z
2021-08-24T16:55:50.000Z
src/core/src/core_logic/PackageFilter.py
Azure/LinuxPatchExtension
6af622afb4298805bdf47328d6bc66a785f7166b
[ "Apache-2.0" ]
34
2020-09-11T17:20:42.000Z
2022-03-28T14:08:44.000Z
src/core/src/core_logic/PackageFilter.py
Azure/LinuxPatchExtension
6af622afb4298805bdf47328d6bc66a785f7166b
[ "Apache-2.0" ]
1
2020-12-28T10:13:20.000Z
2020-12-28T10:13:20.000Z
# Copyright 2020 Microsoft Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
65.924855
216
0.728979
1,360
11,405
5.826471
0.180882
0.068652
0.078748
0.088592
0.428319
0.363958
0.21315
0.162923
0.140333
0.103231
0
0.003834
0.199474
11,405
172
217
66.30814
0.864074
0.199825
0
0.137255
0
0.009804
0.082558
0
0
0
0
0
0
1
0.147059
false
0
0.019608
0.029412
0.372549
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
f70920a45d8b352e57cdd5c4ba4ed7a956b3f421
4,150
py
Python
pyesgf/util.py
ggarcias/esgf-pyclient-cmip6
9e7975d2e676ed2c4001edb4e25c9c20cc16b7af
[ "BSD-3-Clause" ]
17
2016-09-07T02:55:30.000Z
2022-03-10T15:34:53.000Z
pyesgf/util.py
ggarcias/esgf-pyclient-cmip6
9e7975d2e676ed2c4001edb4e25c9c20cc16b7af
[ "BSD-3-Clause" ]
61
2015-05-27T08:10:46.000Z
2022-03-17T12:36:45.000Z
pyesgf/util.py
ggarcias/esgf-pyclient-cmip6
9e7975d2e676ed2c4001edb4e25c9c20cc16b7af
[ "BSD-3-Clause" ]
22
2015-10-27T11:21:05.000Z
2022-01-12T08:26:16.000Z
""" Utility functions using the pyesgf package. """ import sys from urllib.parse import quote_plus def ats_url(base_url): """ Return the URL for the ESGF SAML AttributeService """ # Strip '/' from url as necessary base_url = base_url.rstrip('/') return '/'.join([base_url, ...
30.291971
78
0.576867
527
4,150
4.487666
0.373814
0.022833
0.015222
0.013953
0.055814
0.049894
0.016068
0
0
0
0
0.001091
0.337349
4,150
136
79
30.514706
0.858909
0.360482
0
0.176471
0
0
0.089511
0.018139
0
0
0
0
0
1
0.073529
false
0
0.044118
0
0.176471
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
f709b6ad81d25a0c074deaa1308cf04158654f02
1,373
py
Python
tests/book/ch05/classify_name.py
TITC/pyhanlp
ad062f358805da5bf97f78d9f37f441c06ae4d19
[ "Apache-2.0" ]
null
null
null
tests/book/ch05/classify_name.py
TITC/pyhanlp
ad062f358805da5bf97f78d9f37f441c06ae4d19
[ "Apache-2.0" ]
null
null
null
tests/book/ch05/classify_name.py
TITC/pyhanlp
ad062f358805da5bf97f78d9f37f441c06ae4d19
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Author:hankcs # Date: 2018-06-21 19:46 # 《自然语言处理入门》5.3 基于感知机的人名性别分类 # 配套书籍:http://nlp.hankcs.com/book.php # 讨论答疑:https://bbs.hankcs.com/ import sys,os# environment, adjust the priority sys.path.insert(0,os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))...
38.138889
112
0.718864
174
1,373
5.528736
0.522989
0.043659
0.054054
0.06237
0.099792
0.060291
0.060291
0.060291
0.060291
0.060291
0
0.015651
0.115805
1,373
35
113
39.228571
0.776771
0.210488
0
0
0
0
0.187151
0.05959
0
0
0
0
0
1
0.047619
false
0
0.142857
0
0.190476
0.238095
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f70b82a64651b669501101e2383b4a201ac4b9ba
5,305
py
Python
tests/test_content_download.py
easydo-cn/edo_client
775f185c54f2eeda6a7dd6482de8228ca9ad89b0
[ "Apache-2.0" ]
null
null
null
tests/test_content_download.py
easydo-cn/edo_client
775f185c54f2eeda6a7dd6482de8228ca9ad89b0
[ "Apache-2.0" ]
null
null
null
tests/test_content_download.py
easydo-cn/edo_client
775f185c54f2eeda6a7dd6482de8228ca9ad89b0
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import io import os import shutil import tempfile import unittest from edo_client import WoClient class ContentApi_DownloadTestCase(unittest.TestCase): ''' - Basically this is to ensure all the facilities related to HTTP range headers are working properly; ''' @classmethod ...
32.746914
106
0.590575
651
5,305
4.631336
0.256528
0.062023
0.0733
0.065672
0.452073
0.400995
0.383416
0.383416
0.362852
0.317413
0
0.031442
0.292554
5,305
161
107
32.950311
0.771916
0.076155
0
0.327869
0
0
0.119784
0
0
0
0
0
0.114754
1
0.122951
false
0
0.04918
0
0.180328
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
f70ec64b9e31daafd1fb2f1ca0a900fb5ba86171
3,473
py
Python
pyexcel_xls/xlsw.py
pyexcel/pyexcel-xls
995cfd273d5360947a528ff3a1ed3f9e52a429ad
[ "BSD-3-Clause" ]
40
2016-05-18T20:09:39.000Z
2022-02-09T06:39:41.000Z
pyexcel_xls/xlsw.py
wenxuefeng3930/pyexcel-xls
995cfd273d5360947a528ff3a1ed3f9e52a429ad
[ "BSD-3-Clause" ]
46
2016-02-01T22:12:31.000Z
2021-10-07T18:57:05.000Z
pyexcel_xls/xlsw.py
wenxuefeng3930/pyexcel-xls
995cfd273d5360947a528ff3a1ed3f9e52a429ad
[ "BSD-3-Clause" ]
24
2016-01-29T12:26:27.000Z
2021-10-31T15:37:15.000Z
""" pyexcel_xlsw ~~~~~~~~~~~~~~~~~~~ The lower level xls file format handler using xlwt :copyright: (c) 2016-2021 by Onni Software Ltd :license: New BSD License """ import datetime import xlrd from xlwt import XFStyle, Workbook from pyexcel_io import constants from pyexcel_io.plugin_api import IW...
31.008929
78
0.589692
397
3,473
4.879093
0.304786
0.028911
0.024781
0.041301
0.328343
0.223542
0.223542
0.186371
0.186371
0.109448
0
0.007676
0.324791
3,473
111
79
31.288288
0.818337
0.076303
0
0.103896
0
0
0.02674
0
0
0
0
0
0
1
0.090909
false
0.012987
0.064935
0.012987
0.194805
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
f70fbb21c94acb9d07d8e2e1ca75454e92d0eaf5
28,076
py
Python
game_client.py
wenlianglaw/Tetris-in-Python
d4f0a22c4827e7eeb44c55def3f024e0c6932ebe
[ "MIT" ]
1
2021-06-25T20:43:19.000Z
2021-06-25T20:43:19.000Z
game_client.py
wenlianglaw/Tetris-in-Python
d4f0a22c4827e7eeb44c55def3f024e0c6932ebe
[ "MIT" ]
null
null
null
game_client.py
wenlianglaw/Tetris-in-Python
d4f0a22c4827e7eeb44c55def3f024e0c6932ebe
[ "MIT" ]
null
null
null
# This file defines the back end of the Tetris game # # GameState is the base class of GameClient. # # GameClient.Run() will start two threads: # - _ProcessActions: Process the action list every x seconds # - _AutoDrop: Auto drops the current piece. # # GameClient: # - current piece # - held piece # - piece list...
32.799065
123
0.63036
4,075
28,076
4.169816
0.135706
0.00871
0.007415
0.004944
0.371822
0.274482
0.209216
0.18291
0.155132
0.1506
0
0.051512
0.241487
28,076
855
124
32.837427
0.746384
0.21538
0
0.285959
0
0
0.023542
0.001016
0
0
0
0.00117
0.001712
1
0.07363
false
0
0.015411
0.001712
0.145548
0.017123
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f712616c7f9dabddbf70b11e2c6cc653c11f9e33
1,931
py
Python
cas9/score.py
cangtu/cot
2ecbe83fe7bb3538f80692fc4412830f6c976558
[ "MIT" ]
1
2018-07-11T06:12:51.000Z
2018-07-11T06:12:51.000Z
cas9/score.py
cangtu/cot
2ecbe83fe7bb3538f80692fc4412830f6c976558
[ "MIT" ]
null
null
null
cas9/score.py
cangtu/cot
2ecbe83fe7bb3538f80692fc4412830f6c976558
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright @ 0x6c78. # # 16-10-20 下午1:27 0x6c78@gmail.com # # Distributed under terms of the MIT License from operator import mul from itertools import combinations class Score(object): def __init__(self): """ 张峰实验室通过实验获得的每个位置错配的特异性,具体参考网页: http://crispr.mit.edu/...
26.094595
88
0.518384
242
1,931
4.033058
0.458678
0.010246
0.027664
0.036885
0.04918
0.04918
0
0
0
0
0
0.103886
0.34697
1,931
73
89
26.452055
0.670103
0.22579
0
0.111111
0
0
0.000755
0
0
0
0
0
0
1
0.166667
false
0
0.055556
0
0.472222
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
f714e5ccca4b369e0fbd09fb0a4e6218788b9ed7
3,513
py
Python
google_or_tools/coloring_ip_sat.py
tias/hakank
87b7f180c9393afce440864eb9e5fb119bdec1a4
[ "MIT" ]
279
2015-01-10T09:55:35.000Z
2022-03-28T02:34:03.000Z
google_or_tools/coloring_ip_sat.py
tias/hakank
87b7f180c9393afce440864eb9e5fb119bdec1a4
[ "MIT" ]
10
2017-10-05T15:48:50.000Z
2021-09-20T12:06:52.000Z
google_or_tools/coloring_ip_sat.py
tias/hakank
87b7f180c9393afce440864eb9e5fb119bdec1a4
[ "MIT" ]
83
2015-01-20T03:44:00.000Z
2022-03-13T23:53:06.000Z
# Copyright 2021 Hakan Kjellerstrand hakank@gmail.com # # 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 ...
27.232558
78
0.63507
588
3,513
3.751701
0.369048
0.022212
0.024479
0.010879
0.067543
0.012693
0
0
0
0
0
0.029834
0.227156
3,513
128
79
27.445313
0.782689
0.545403
0
0.162791
0
0
0.06917
0
0
0
0
0
0
1
0.023256
false
0
0.069767
0
0.093023
0.255814
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f715d5acbe3a069259390dee428b7666dca26c08
9,706
py
Python
src/intermediate_representation/sem_utils.py
ckosten/ValueNet4SPARQL
de320a2f0e1a4c5a6c0e5cc79057dda9901046e8
[ "Apache-2.0" ]
null
null
null
src/intermediate_representation/sem_utils.py
ckosten/ValueNet4SPARQL
de320a2f0e1a4c5a6c0e5cc79057dda9901046e8
[ "Apache-2.0" ]
null
null
null
src/intermediate_representation/sem_utils.py
ckosten/ValueNet4SPARQL
de320a2f0e1a4c5a6c0e5cc79057dda9901046e8
[ "Apache-2.0" ]
1
2021-09-23T13:02:45.000Z
2021-09-23T13:02:45.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. # -*- coding: utf-8 -*- """ # @Time : 2019/5/27 # @Author : Jiaqi&Zecheng # @File : sem_utils.py # @Software: PyCharm """ import os import json import re as regex import spacy from nltk.stem import WordNetLemmatizer wordnet_lemmatizer =...
46.888889
117
0.474861
1,111
9,706
3.909091
0.138614
0.108911
0.058715
0.037301
0.594059
0.545475
0.516694
0.506102
0.482155
0.465577
0
0.010776
0.426334
9,706
206
118
47.116505
0.769217
0.062023
0
0.419753
0
0
0.065843
0
0
0
0
0
0
1
0.037037
false
0.024691
0.030864
0
0.141975
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
f71a808666b13ce290442e22bb59d1788d36b370
1,950
py
Python
tools/find_run_binary.py
pospx/external_skia
7a135275c9fc2a4b3cbdcf9a96e7102724752234
[ "BSD-3-Clause" ]
6,304
2015-01-05T23:45:12.000Z
2022-03-31T09:48:13.000Z
third_party/skia/tools/find_run_binary.py
w4454962/miniblink49
b294b6eacb3333659bf7b94d670d96edeeba14c0
[ "Apache-2.0" ]
459
2016-09-29T00:51:38.000Z
2022-03-07T14:37:46.000Z
third_party/skia/tools/find_run_binary.py
w4454962/miniblink49
b294b6eacb3333659bf7b94d670d96edeeba14c0
[ "Apache-2.0" ]
1,231
2015-01-05T03:17:39.000Z
2022-03-31T22:54:58.000Z
#!/usr/bin/python # Copyright (c) 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Module that finds and runs a binary by looking in the likely locations.""" import os import subprocess import sys def run_comman...
31.451613
77
0.615385
259
1,950
4.555985
0.405405
0.040678
0.042373
0.050847
0.118644
0.118644
0.118644
0.118644
0
0
0
0.004295
0.28359
1,950
61
78
31.967213
0.840372
0.398462
0
0
0
0
0.108831
0
0
0
0
0
0
1
0.08
false
0
0.12
0
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f71c77d1c0f627d4c0d8120689ae89c7e1a43d86
2,577
py
Python
agogosml_cli/cli/templates/{{cookiecutter.PROJECT_NAME_SLUG}}/e2e/testgen/main.py
cicorias/agogosml
60e0b52c2fc721bdd965aadaf8c1afd1ddb9b7d1
[ "MIT" ]
13
2018-12-07T21:02:20.000Z
2019-02-22T14:36:31.000Z
agogosml_cli/cli/templates/{{cookiecutter.PROJECT_NAME_SLUG}}/e2e/testgen/main.py
cicorias/agogosml
60e0b52c2fc721bdd965aadaf8c1afd1ddb9b7d1
[ "MIT" ]
43
2018-11-30T11:31:43.000Z
2019-04-03T16:09:06.000Z
agogosml_cli/cli/templates/{{cookiecutter.PROJECT_NAME_SLUG}}/e2e/testgen/main.py
cicorias/agogosml
60e0b52c2fc721bdd965aadaf8c1afd1ddb9b7d1
[ "MIT" ]
13
2018-11-29T00:31:29.000Z
2019-02-22T18:50:28.000Z
import json import os import sys import time from agogosml.common.abstract_streaming_client import find_streaming_clients from agogosml.tools.sender import send from agogosml.tools.receiver import receive eh_base_config = { "EVENT_HUB_NAMESPACE": os.getenv("EVENT_HUB_NAMESPACE"), "EVENT_HUB_NAME": os.getenv("...
28.955056
109
0.73962
355
2,577
4.915493
0.264789
0.077937
0.037249
0.045845
0.27106
0.225788
0.169628
0.05043
0
0
0
0.003618
0.142026
2,577
88
110
29.284091
0.785617
0.033372
0
0.0625
0
0
0.279341
0.111736
0
0
0
0
0
1
0.046875
false
0
0.109375
0
0.171875
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f71c9a76519602baf175d90363655dc76c65ea28
512
py
Python
MobileRevelator/python/postbank_finanzassistent_decrypt.py
ohunecker/MR
b0c93436c7964d87a0b8154f8b7662b1731124b9
[ "MIT" ]
98
2019-02-03T22:50:24.000Z
2022-03-17T12:50:56.000Z
MobileRevelator/python/postbank_finanzassistent_decrypt.py
cewatkins/MR
5ba553fd0eb4c1d80842074a553119486f005822
[ "MIT" ]
10
2019-03-14T20:12:10.000Z
2020-05-23T10:37:54.000Z
MobileRevelator/python/postbank_finanzassistent_decrypt.py
cewatkins/MR
5ba553fd0eb4c1d80842074a553119486f005822
[ "MIT" ]
30
2019-02-03T22:50:27.000Z
2022-03-30T12:37:30.000Z
#Filename="finanzassistent" #Type=Prerun import os def main(): ctx.gui_setMainLabel("Postbank Finanzassistent: Extracting key"); error="" dbkey="73839EC3A528910B235859947CC8424543D7B686" ctx.gui_setMainLabel("Postbank: Key extracted: " + dbkey) if not (ctx.fs_sqlcipher_decrypt(filename, ...
34.133333
78
0.6875
51
512
6.823529
0.607843
0.034483
0.103448
0.149425
0
0
0
0
0
0
0
0.07767
0.195313
512
15
79
34.133333
0.76699
0.072266
0
0
0
0
0.436957
0.086957
0
0
0
0
0
1
0.090909
false
0
0.090909
0
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
f71d87a97f28b6912c291299e2155b00941ed654
1,615
py
Python
imcsdk/__init__.py
kenrusse/imcsdk
c35ec5d41072c3ea82c64b1b66e0650d1d873657
[ "Apache-2.0" ]
null
null
null
imcsdk/__init__.py
kenrusse/imcsdk
c35ec5d41072c3ea82c64b1b66e0650d1d873657
[ "Apache-2.0" ]
null
null
null
imcsdk/__init__.py
kenrusse/imcsdk
c35ec5d41072c3ea82c64b1b66e0650d1d873657
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Cisco Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
26.47541
92
0.721981
220
1,615
5.177273
0.545455
0.052678
0.03863
0.028095
0
0
0
0
0
0
0
0.017385
0.180805
1,615
60
93
26.916667
0.843537
0.491022
0
0
0
0
0.158585
0
0
0
0
0
0
1
0.090909
false
0
0.136364
0
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f71d9c7d4d1edc3d1f3f51bfea2e872d5c549f44
1,047
py
Python
64-minimum-path-sum/64-minimum-path-sum.py
jurayev/data-structures-algorithms-solutions
7103294bafb60117fc77efe4913edcffbeb1ac7a
[ "MIT" ]
null
null
null
64-minimum-path-sum/64-minimum-path-sum.py
jurayev/data-structures-algorithms-solutions
7103294bafb60117fc77efe4913edcffbeb1ac7a
[ "MIT" ]
null
null
null
64-minimum-path-sum/64-minimum-path-sum.py
jurayev/data-structures-algorithms-solutions
7103294bafb60117fc77efe4913edcffbeb1ac7a
[ "MIT" ]
null
null
null
class Solution: def minPathSum(self, grid: List[List[int]]) -> int: """ [1,3,1] [1,5,1] [4,2,1] time O (nm) space O(nm) state -> sums[r][c] = min path sum till r, c position initial state -> sums[0][0…cols] = inf -> sums...
31.727273
84
0.455587
169
1,047
2.846154
0.284024
0.033264
0.049896
0.037422
0.033264
0
0
0
0
0
0
0.053272
0.372493
1,047
32
85
32.71875
0.660578
0.284623
0
0
0
0
0.004658
0
0
0
0
0
0
1
0.133333
false
0
0
0
0.4
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
f71f18898c8292f215084d67a0492fc48f5a9d6c
8,974
py
Python
main.py
PabloEmidio/Know-Weather-GTK
797f25cbd0c8e1a2f124a5328d9decf2f3829252
[ "MIT" ]
4
2021-05-06T02:07:02.000Z
2021-05-06T17:48:08.000Z
main.py
PabloEmidio/Know-Weather-GTK
797f25cbd0c8e1a2f124a5328d9decf2f3829252
[ "MIT" ]
null
null
null
main.py
PabloEmidio/Know-Weather-GTK
797f25cbd0c8e1a2f124a5328d9decf2f3829252
[ "MIT" ]
null
null
null
import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk from datetime import datetime from api_request import Weather builder = Gtk.Builder() builder.add_from_file('./glade/main.glade') class Handler: def __init__(self, *args, **kwargs): super(Handler, self).__init__(*args, **kwargs...
53.736527
131
0.622131
1,223
8,974
4.176615
0.098937
0.078309
0.119029
0.078309
0.656421
0.516445
0.38332
0.306382
0.28289
0.238841
0
0.021789
0.222643
8,974
167
132
53.736527
0.710292
0.008803
0
0.069231
0
0
0.165167
0.031097
0
0
0
0
0
1
0.030769
false
0
0.038462
0.007692
0.084615
0.007692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f71f497fb7582513c2d45b7633de0c7c9d7f7303
3,186
py
Python
talk_lib/tests/testtalk.py
allankellynet/mimas
10025d43bba9e84f502a266760786842e7158a05
[ "MIT" ]
null
null
null
talk_lib/tests/testtalk.py
allankellynet/mimas
10025d43bba9e84f502a266760786842e7158a05
[ "MIT" ]
1
2020-02-05T13:00:29.000Z
2020-02-05T13:00:29.000Z
talk_lib/tests/testtalk.py
allankellynet/mimas
10025d43bba9e84f502a266760786842e7158a05
[ "MIT" ]
null
null
null
#----------------------------------------------------- # Mimas: conference submission and review system # (c) Allan Kelly 2016-2020 http://www.allankelly.net # Licensed under MIT License, see LICENSE file # ----------------------------------------------------- import unittest from google.appengine.ext import testbed ...
29.775701
73
0.605775
402
3,186
4.606965
0.243781
0.103672
0.071814
0.059395
0.62959
0.589633
0.571274
0.545896
0.507559
0.507559
0
0.032753
0.242938
3,186
106
74
30.056604
0.735075
0.078782
0
0.576923
0
0
0.060068
0
0
0
0
0
0.192308
1
0.102564
false
0
0.051282
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
f725220f95e7ed6a18489ee1563dd48ce5f224d6
2,985
py
Python
solutions/day18.py
nitekat1124/advent-of-code-2021
74501b84f0a08b33f48b4e5a2d66b8293c854150
[ "WTFPL" ]
3
2021-12-22T17:44:39.000Z
2022-01-14T17:18:15.000Z
solutions/day18.py
nitekat1124/advent-of-code-2021
74501b84f0a08b33f48b4e5a2d66b8293c854150
[ "WTFPL" ]
null
null
null
solutions/day18.py
nitekat1124/advent-of-code-2021
74501b84f0a08b33f48b4e5a2d66b8293c854150
[ "WTFPL" ]
null
null
null
import re from itertools import combinations from utils.solution_base import SolutionBase class Solution(SolutionBase): def solve(self, part_num: int): self.test_runner(part_num) func = getattr(self, f"part{part_num}") result = func(self.data) return result def test_runner(s...
34.310345
114
0.524958
402
2,985
3.728856
0.221393
0.028019
0.012008
0.022015
0.116077
0.066711
0.066711
0
0
0
0
0.014199
0.339363
2,985
86
115
34.709302
0.745943
0.004355
0
0.058824
0
0
0.055237
0.008757
0
0
0
0
0
1
0.102941
false
0.029412
0.044118
0.014706
0.264706
0.073529
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f725e0913b22178375a220d288839fa6706545f3
520
py
Python
backend/utils/management/commands/generate_dummy_skills.py
NumanIbnMazid/numanibnmazid.com
905e3afab285316d88bafa30dc080dfbb0611731
[ "MIT" ]
1
2022-01-28T18:20:19.000Z
2022-01-28T18:20:19.000Z
backend/utils/management/commands/generate_dummy_skills.py
NumanIbnMazid/numanibnmazid.com
905e3afab285316d88bafa30dc080dfbb0611731
[ "MIT" ]
null
null
null
backend/utils/management/commands/generate_dummy_skills.py
NumanIbnMazid/numanibnmazid.com
905e3afab285316d88bafa30dc080dfbb0611731
[ "MIT" ]
null
null
null
from portfolios.factories.skill_factory import create_skills_with_factory from django.db import transaction from django.core.management.base import BaseCommand class Command(BaseCommand): help = "Generates dummy data" def _generate_dummy_data(self): # Create dummy data create_skills_with_fact...
26
73
0.698077
62
520
5.580645
0.564516
0.104046
0.092486
0.132948
0
0
0
0
0
0
0
0.002513
0.234615
520
19
74
27.368421
0.866834
0.059615
0
0
0
0
0.041152
0
0
0
0
0
0
1
0.153846
false
0
0.230769
0
0.538462
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
f728ea2eb644fbcc81d1cbb2f7e623c7f87f0380
834
py
Python
src/bokeh_app/graph_view.py
avbatchelor/insight-articles-project
852b338b786cb5b9c281fcec2e378aed8d3dc617
[ "MIT" ]
null
null
null
src/bokeh_app/graph_view.py
avbatchelor/insight-articles-project
852b338b786cb5b9c281fcec2e378aed8d3dc617
[ "MIT" ]
null
null
null
src/bokeh_app/graph_view.py
avbatchelor/insight-articles-project
852b338b786cb5b9c281fcec2e378aed8d3dc617
[ "MIT" ]
null
null
null
import networkx as nx import pickle from bokeh.io import show, output_file from bokeh.plotting import figure from bokeh.models.graphs import from_networkx processed_data_folder = 'C:\\Users\\Alex\\Documents\\GitHub\\insight-articles-project\\data\\processed\\' filename = processed_data_folder + 'graph_and_labels' wi...
29.785714
105
0.758993
136
834
4.455882
0.507353
0.013201
0.062706
0.026403
0.029703
0
0
0
0
0
0
0.017356
0.101918
834
28
106
29.785714
0.791722
0
0
0
0
0
0.159281
0.094611
0
0
0
0
0
1
0
false
0
0.25
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
f72b30581d8ef30df8d3b88fde755c65a6390087
15,737
py
Python
dssm/data_input.py
nlpming/tensorflow-DSMM
dc982cc49bf03f474da2895e4dd4fb37061c0271
[ "MIT" ]
null
null
null
dssm/data_input.py
nlpming/tensorflow-DSMM
dc982cc49bf03f474da2895e4dd4fb37061c0271
[ "MIT" ]
null
null
null
dssm/data_input.py
nlpming/tensorflow-DSMM
dc982cc49bf03f474da2895e4dd4fb37061c0271
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding=utf-8 from inspect import getblock import json import os from os import read from numpy.core.fromnumeric import mean import numpy as np import paddlehub as hub import six import math import random import sys from util import read_file from config import Config # 配置文件 conf = Config() c...
37.20331
129
0.599797
2,252
15,737
3.920959
0.12167
0.016988
0.015855
0.020612
0.584258
0.524236
0.450849
0.416535
0.397848
0.338052
0
0.028885
0.282837
15,737
422
130
37.291469
0.7535
0.093665
0
0.443114
0
0
0.035267
0.005191
0
0
0
0
0
1
0.077844
false
0.01497
0.038922
0.002994
0.200599
0.023952
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f72d8677c20fa3e3a54169d4eb48cb7ca7458055
11,575
py
Python
OneSpanAnalysis_Mdl.py
Ivanfdezr/CentralSoftware
8681fedd4814dc60deb527a370411350b40c994c
[ "MIT" ]
null
null
null
OneSpanAnalysis_Mdl.py
Ivanfdezr/CentralSoftware
8681fedd4814dc60deb527a370411350b40c994c
[ "MIT" ]
44
2021-02-10T23:58:28.000Z
2021-12-14T02:38:21.000Z
OneSpanAnalysis_Mdl.py
Ivanfdezr/CentralSoftware
8681fedd4814dc60deb527a370411350b40c994c
[ "MIT" ]
null
null
null
import numpy as np import numpy.linalg as la from MdlUtilities import Field, FieldList import MdlUtilities as mdl def get_osaCasing_fields(): OD = Field(2030) ID = Field(2031) Weight = Field(2032) Density = Field(2039) E = Field(2040) osaCasing_fields = FieldList() osaCasing_...
35.506135
149
0.723629
1,560
11,575
5.237821
0.18141
0.078326
0.058744
0.028638
0.163016
0.101212
0.05238
0.040632
0.040632
0.040632
0
0.032703
0.154644
11,575
325
150
35.615385
0.802351
0.070929
0
0.044
0
0
0.076975
0
0
0
0
0
0
1
0.024
false
0
0.016
0
0.064
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
f7300289bf48754135726dad8a8c684a9ab7d495
14,855
py
Python
queryable_properties/managers.py
W1ldPo1nter/django-queryable-properties
9bb4ecb4fbdd7a9e0f610f937c8101a643027fb1
[ "BSD-3-Clause" ]
36
2019-10-22T11:44:37.000Z
2022-03-15T21:27:03.000Z
queryable_properties/managers.py
W1ldPo1nter/django-queryable-properties
9bb4ecb4fbdd7a9e0f610f937c8101a643027fb1
[ "BSD-3-Clause" ]
6
2020-10-03T15:13:26.000Z
2021-09-25T14:05:50.000Z
queryable_properties/managers.py
W1ldPo1nter/django-queryable-properties
9bb4ecb4fbdd7a9e0f610f937c8101a643027fb1
[ "BSD-3-Clause" ]
3
2021-04-26T08:30:46.000Z
2021-08-18T09:04:49.000Z
# encoding: utf-8 from __future__ import unicode_literals import six from django.db.models import Manager from django.db.models.query import QuerySet from .compat import (ANNOTATION_SELECT_CACHE_NAME, ANNOTATION_TO_AGGREGATE_ATTRIBUTES_MAP, chain_query, chain_queryset, ModelIterable, ValuesQuery...
51.401384
120
0.671289
1,708
14,855
5.693794
0.20726
0.041028
0.008638
0.004936
0.085758
0.042159
0.042159
0.034756
0.027764
0.027764
0
0.000093
0.276675
14,855
288
121
51.579861
0.904979
0.441468
0
0.065574
0
0
0.052652
0
0
0
0
0
0
1
0.106557
false
0.016393
0.07377
0.016393
0.303279
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
f730db018b5a100d3b9690cd2c3518425836dcfb
2,353
py
Python
setup.py
wdv4758h/rsglob
342f950c240b5d84c629ecf4fec348401975d2ba
[ "BSD-2-Clause" ]
null
null
null
setup.py
wdv4758h/rsglob
342f950c240b5d84c629ecf4fec348401975d2ba
[ "BSD-2-Clause" ]
null
null
null
setup.py
wdv4758h/rsglob
342f950c240b5d84c629ecf4fec348401975d2ba
[ "BSD-2-Clause" ]
null
null
null
import os import sys from setuptools import find_packages, setup, Extension try: # for pip >= 10 from pip._internal.req import parse_requirements except ImportError: from pip.req import parse_requirements try: from setuptools_rust import RustExtension except ImportError: import subprocess errno...
30.960526
83
0.677008
263
2,353
5.908745
0.463878
0.085586
0.112613
0.066924
0.087516
0.039897
0
0
0
0
0
0.015426
0.20102
2,353
75
84
31.373333
0.81117
0.106247
0
0.101695
0
0
0.27958
0.020515
0
0
0
0
0
1
0.016949
false
0
0.186441
0
0.220339
0.016949
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f73176b9df2d9d3e6551836091e9a8f8bdc64a68
9,041
py
Python
src/pyrobot/habitat/base.py
cihuang123/pyrobot
fe620097e31d11453b5ea7ac15e40f5f5721b29a
[ "MIT" ]
2,150
2019-06-12T20:55:41.000Z
2022-03-21T07:14:51.000Z
src/pyrobot/habitat/base.py
cihuang123/pyrobot
fe620097e31d11453b5ea7ac15e40f5f5721b29a
[ "MIT" ]
124
2019-06-22T17:12:27.000Z
2022-02-26T11:43:13.000Z
src/pyrobot/habitat/base.py
cihuang123/pyrobot
fe620097e31d11453b5ea7ac15e40f5f5721b29a
[ "MIT" ]
329
2019-06-13T03:03:54.000Z
2022-03-30T07:04:55.000Z
import numpy as np import math import pyrobot.utils.util as prutil import rospy import habitat_sim.agent as habAgent import habitat_sim.utils as habUtils from habitat_sim.agent.controls import ActuationSpec import habitat_sim.errors import quaternion from tf.transformations import euler_from_quaternion, euler_from_mat...
36.603239
93
0.623825
1,223
9,041
4.433361
0.204415
0.025821
0.009959
0.014386
0.440428
0.421985
0.385835
0.380302
0.328108
0.328108
0
0.008788
0.295211
9,041
246
94
36.752033
0.842122
0.321978
0
0.346154
0
0
0.112653
0
0
0
0
0
0.007692
1
0.092308
false
0
0.076923
0.015385
0.276923
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
f7356fdd90f419efa0300e27fdfd55d90e10cc07
2,897
py
Python
nanpy/bmp180.py
AFTC-1/Arduino-rpi
c46079f937d7e07cc0a930cc7ae278036f50a47d
[ "MIT" ]
178
2015-01-03T11:56:49.000Z
2021-12-23T14:47:55.000Z
nanpy/bmp180.py
AFTC-1/Arduino-rpi
c46079f937d7e07cc0a930cc7ae278036f50a47d
[ "MIT" ]
88
2015-01-23T09:06:43.000Z
2021-12-26T19:58:51.000Z
nanpy/bmp180.py
AFTC-1/Arduino-rpi
c46079f937d7e07cc0a930cc7ae278036f50a47d
[ "MIT" ]
77
2015-02-18T17:26:11.000Z
2021-09-28T02:47:25.000Z
from __future__ import division import logging from nanpy.i2c import I2C_Master from nanpy.memo import memoized import time log = logging.getLogger(__name__) def to_s16(n): return (n + 2 ** 15) % 2 ** 16 - 2 ** 15 class Bmp180(object): """Control of BMP180 Digital pressure sensor (I2C) calculation i...
24.550847
67
0.491543
377
2,897
3.67374
0.31565
0.047653
0.038989
0.021661
0.103971
0.103971
0
0
0
0
0
0.113166
0.365551
2,897
117
68
24.760684
0.64037
0.05523
0
0.02439
0
0
0
0
0
0
0.015666
0
0
1
0.134146
false
0
0.060976
0.04878
0.317073
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
f738260086ccd3653bc2367e7b8083819a301d9b
1,807
py
Python
preprocessing/metadata.py
skincare-deep-learning/Skincare-backend
80ed6b7a735291848be9248035231fbd55c93990
[ "Apache-2.0" ]
1
2019-11-27T20:56:27.000Z
2019-11-27T20:56:27.000Z
preprocessing/metadata.py
skincare-deep-learning/Skincare-backend
80ed6b7a735291848be9248035231fbd55c93990
[ "Apache-2.0" ]
10
2021-04-02T19:47:15.000Z
2022-01-13T01:52:53.000Z
preprocessing/metadata.py
skincare-deep-learning/Skincare-backend
80ed6b7a735291848be9248035231fbd55c93990
[ "Apache-2.0" ]
null
null
null
import json import csv import pandas as pd from isic_api import ISICApi from pandas.io.json import json_normalize # Initialize the API; no login is necessary for public data api = ISICApi(username="SkinCare", password="unbdeeplearning") outputFileName = 'imagedata' imageList = api.getJson('image?limit=25000&offset=0&...
30.627119
110
0.672939
205
1,807
5.868293
0.429268
0.0399
0.042394
0.032419
0.119701
0.071488
0.071488
0.071488
0.071488
0
0
0.008312
0.134477
1,807
59
111
30.627119
0.76087
0.15772
0
0
0
0
0.187556
0.032
0
0
0
0
0
1
0
false
0.033333
0.166667
0
0.166667
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f73a4d22041854c5326afaffc36927b22884b07a
5,370
py
Python
workers/test/test_exportactionlogsworker.py
kwestpharedhat/quay
a0df895005bcd3e53847046f69f6a7add87c88fd
[ "Apache-2.0" ]
null
null
null
workers/test/test_exportactionlogsworker.py
kwestpharedhat/quay
a0df895005bcd3e53847046f69f6a7add87c88fd
[ "Apache-2.0" ]
null
null
null
workers/test/test_exportactionlogsworker.py
kwestpharedhat/quay
a0df895005bcd3e53847046f69f6a7add87c88fd
[ "Apache-2.0" ]
null
null
null
import json import os import pytest from datetime import datetime, timedelta import boto3 from httmock import urlmatch, HTTMock from moto import mock_s3 from app import storage as test_storage from data import model, database from data.logs_model import logs_model from storage import S3Storage, StorageContext, Dist...
30.338983
97
0.58324
570
5,370
5.294737
0.284211
0.020875
0.025845
0.022531
0.4334
0.422797
0.410205
0.410205
0.373757
0.373757
0
0.015819
0.293669
5,370
176
98
30.511364
0.779858
0.024953
0
0.395683
0
0
0.174536
0
0
0
0
0
0.064748
1
0.05036
false
0.014388
0.093525
0.014388
0.172662
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
f73c025048313646ffa657c41d4c35ef79bc7325
6,699
py
Python
pageplot/plotmodel.py
JBorrow/pageplot
8abad574fda476d26a59fc8b7d36da2838f2c11e
[ "MIT" ]
null
null
null
pageplot/plotmodel.py
JBorrow/pageplot
8abad574fda476d26a59fc8b7d36da2838f2c11e
[ "MIT" ]
null
null
null
pageplot/plotmodel.py
JBorrow/pageplot
8abad574fda476d26a59fc8b7d36da2838f2c11e
[ "MIT" ]
null
null
null
""" The base top-level plot model class. From this all data and plotting flow. """ from pageplot.exceptions import PagePlotParserError from pathlib import Path from typing import Any, Optional, Dict, List, Union from pageplot.extensionmodel import PlotExtension from pageplot.extensions import built_in_extensions fro...
29.641593
86
0.618749
821
6,699
4.980512
0.285018
0.015407
0.027391
0.01663
0.095622
0.076547
0.057471
0.050868
0
0
0
0.001915
0.298403
6,699
225
87
29.773333
0.868085
0.403792
0
0.05618
0
0
0.022605
0
0
0
0
0
0
1
0.078652
false
0
0.134831
0
0.438202
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
f73d133f1804d0833d771530b775e1da1e558e30
853
py
Python
src.py
duldiev/Assignment-2-Scrapping
a9dbb4bb14b7fe0a1c5ec6eba73491008ff8da52
[ "MIT" ]
null
null
null
src.py
duldiev/Assignment-2-Scrapping
a9dbb4bb14b7fe0a1c5ec6eba73491008ff8da52
[ "MIT" ]
null
null
null
src.py
duldiev/Assignment-2-Scrapping
a9dbb4bb14b7fe0a1c5ec6eba73491008ff8da52
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup as soup from selenium import webdriver class Scrapper: def getArticles(self, cryptoName): url = 'https://coinmarketcap.com/currencies/' + cryptoName + '/news/' driver = webdriver.Firefox() driver.get(url) page = driver.page_source page_soup = ...
38.772727
110
0.588511
100
853
4.98
0.57
0.048193
0.060241
0.044177
0
0
0
0
0
0
0
0.019787
0.229777
853
22
111
38.772727
0.738204
0
0
0.117647
0
0
0.188525
0
0
0
0
0
0
1
0.058824
false
0
0.117647
0
0.235294
0.294118
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f73dddf470763349a7f01540ff083d75743566dd
19,409
py
Python
qsubm.py
mark-caprio/mcscript
7a5a69667857f27b8f2d2f9387b90301bc321df2
[ "MIT" ]
1
2017-05-30T20:45:24.000Z
2017-05-30T20:45:24.000Z
qsubm.py
mark-caprio/mcscript
7a5a69667857f27b8f2d2f9387b90301bc321df2
[ "MIT" ]
3
2020-06-15T16:10:23.000Z
2020-10-15T02:47:21.000Z
qsubm.py
mark-caprio/mcscript
7a5a69667857f27b8f2d2f9387b90301bc321df2
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """qsubm -- generic queue submission for task-oriented batch scripts Environment variables: MCSCRIPT_DIR should specify the directory in which the mcscript package is installed, i.e., the directory where the file qsubm.py is found. (Note that qsubm uses this information to locate c...
40.77521
305
0.679273
2,551
19,409
5.039984
0.21521
0.026523
0.019911
0.0133
0.216302
0.127401
0.114879
0.083845
0.037645
0.037645
0
0.010232
0.15905
19,409
475
306
40.861053
0.777478
0.368489
0
0.157205
0
0.004367
0.303442
0.061281
0
0
0
0.002105
0
1
0
false
0.0131
0.034935
0
0.034935
0.126638
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f73eadae4fdc856f5258f55231ef39bc6666f5e3
2,657
py
Python
qf_lib/backtesting/order/order.py
webclinic017/qf-lib
96463876719bba8a76c8269cef76addf3a2d836d
[ "Apache-2.0" ]
198
2019-08-16T15:09:23.000Z
2022-03-30T12:44:00.000Z
qf_lib/backtesting/order/order.py
webclinic017/qf-lib
96463876719bba8a76c8269cef76addf3a2d836d
[ "Apache-2.0" ]
13
2021-01-07T10:15:19.000Z
2022-03-29T13:01:47.000Z
qf_lib/backtesting/order/order.py
webclinic017/qf-lib
96463876719bba8a76c8269cef76addf3a2d836d
[ "Apache-2.0" ]
29
2019-08-16T15:21:28.000Z
2022-02-23T09:53:49.000Z
# Copyright 2016-present CERN – European Organization for Nuclear Research # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2...
39.073529
113
0.640572
333
2,657
4.954955
0.414414
0.067879
0.053333
0.036364
0.176364
0.106667
0.089091
0.069091
0.069091
0.069091
0
0.00413
0.270982
2,657
67
114
39.656716
0.847186
0.351148
0
0.117647
0
0
0.061825
0
0
0
0
0
0
1
0.117647
false
0
0.088235
0.058824
0.441176
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
f73f780a7a7ee00c38db35dff1b7df923b5843be
3,789
py
Python
webdriver/tests/actions/mouse_dblclick.py
shs96c/web-platform-tests
61acad6dd9bb99d32340eb41f5146de64f542359
[ "BSD-3-Clause" ]
null
null
null
webdriver/tests/actions/mouse_dblclick.py
shs96c/web-platform-tests
61acad6dd9bb99d32340eb41f5146de64f542359
[ "BSD-3-Clause" ]
null
null
null
webdriver/tests/actions/mouse_dblclick.py
shs96c/web-platform-tests
61acad6dd9bb99d32340eb41f5146de64f542359
[ "BSD-3-Clause" ]
null
null
null
import pytest from tests.actions.support.mouse import assert_move_to_coordinates, get_center from tests.actions.support.refine import get_events, filter_dict _DBLCLICK_INTERVAL = 640 # Using local fixtures because we want to start a new session between # each test, otherwise the clicks in each test interfere with ...
34.761468
92
0.594088
422
3,789
5.135071
0.253555
0.064605
0.086294
0.055376
0.49054
0.483618
0.483618
0.461929
0.461929
0.461929
0
0.015963
0.256004
3,789
108
93
35.083333
0.752749
0.064661
0
0.625
0
0
0.13874
0.016106
0
0
0
0
0.090909
1
0.068182
false
0
0.034091
0.011364
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
f741f9a134a29cde4417d89a622f8515e0c9db99
2,842
py
Python
actions.py
ratnasankeerthanreddy/Chatbot-for-Personal-assisatance
6c584601af4c98a3bebedf7073e0ccf2ad8ecf76
[ "MIT" ]
1
2020-10-28T15:57:44.000Z
2020-10-28T15:57:44.000Z
actions.py
ratnasankeerthanreddy/Chatbot-for-Personal-assisatance
6c584601af4c98a3bebedf7073e0ccf2ad8ecf76
[ "MIT" ]
null
null
null
actions.py
ratnasankeerthanreddy/Chatbot-for-Personal-assisatance
6c584601af4c98a3bebedf7073e0ccf2ad8ecf76
[ "MIT" ]
null
null
null
from typing import Any, Text, Dict, List from rasa_sdk import Action, Tracker from rasa_sdk.executor import CollectingDispatcher from utils import convert_timestamp from rasa_sdk.events import AllSlotsReset import datetime from datetime import timedelta, date import dateutil.parser import boto3 from boto3.dynamodb.cond...
35.974684
363
0.678044
360
2,842
5.233333
0.386111
0.018577
0.058386
0.069002
0.173036
0.173036
0.173036
0.138004
0.138004
0.138004
0
0.005
0.155524
2,842
78
364
36.435897
0.78
0.453554
0
0.205128
0
0
0.195138
0.014455
0
0
0
0
0
1
0.076923
false
0
0.25641
0.025641
0.435897
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
f7421c61dc4a9f2905083616a76cf5c9a110855b
4,688
py
Python
main.py
Davidswinkels/DownloadWalkingRoutes
9ceaee0b96507149086aef7081790a09ab6b3653
[ "Apache-2.0" ]
null
null
null
main.py
Davidswinkels/DownloadWalkingRoutes
9ceaee0b96507149086aef7081790a09ab6b3653
[ "Apache-2.0" ]
null
null
null
main.py
Davidswinkels/DownloadWalkingRoutes
9ceaee0b96507149086aef7081790a09ab6b3653
[ "Apache-2.0" ]
null
null
null
from scripts.downloader import * import fiona from shapely.geometry import shape import geopandas as gpd import matplotlib.pyplot as plt from pprint import pprint import requests import json import time import os # Constant variables input_min_lat = 50.751797561 input_min_lon = 5.726110232 input_max_lat = 50.938216069...
53.272727
133
0.588097
553
4,688
4.837251
0.392405
0.032897
0.023925
0.028411
0.114766
0.106168
0.106168
0.078505
0.078505
0.078505
0
0.071388
0.25
4,688
87
134
53.885057
0.68942
0.326579
0
0.1
0
0.083333
0.414619
0.150974
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
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
f7441602c73a268dd40291e6397b91ed0f1027f6
3,185
py
Python
seq2seq-chatbot/chat_web.py
rohitkujur1997/chatbot
76cd460b09f75532a7259d783114d8cf3dda246f
[ "MIT" ]
104
2018-03-28T20:30:25.000Z
2022-02-18T19:43:21.000Z
seq2seq-chatbot/chat_web.py
rohitkujur1997/chatbot
76cd460b09f75532a7259d783114d8cf3dda246f
[ "MIT" ]
37
2018-04-16T15:39:17.000Z
2021-05-29T11:28:26.000Z
seq2seq-chatbot/chat_web.py
rohitkujur1997/chatbot
76cd460b09f75532a7259d783114d8cf3dda246f
[ "MIT" ]
63
2018-05-18T09:52:20.000Z
2021-07-26T08:11:17.000Z
""" Script for serving a trained chatbot model over http """ import datetime import click from os import path from flask import Flask, request, send_from_directory from flask_cors import CORS from flask_restful import Resource, Api import general_utils import chat_command_handler from chat_settings import ChatSettings...
37.916667
141
0.661538
367
3,185
5.493188
0.3297
0.027778
0.035714
0.041667
0.111607
0.099702
0.058036
0
0
0
0
0.000422
0.255573
3,185
84
142
37.916667
0.849852
0.081633
0
0.081967
0
0
0.079986
0.007896
0
0
0
0
0
1
0.04918
false
0
0.180328
0.016393
0.295082
0.114754
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7451e04b5509a3b3a1ecacc27d8ca29e4bae31f
657
py
Python
4.py
Andrey543/Prack_10
263cae3204ed624b68d5797bd8d8833dd88e4682
[ "PSF-2.0" ]
null
null
null
4.py
Andrey543/Prack_10
263cae3204ed624b68d5797bd8d8833dd88e4682
[ "PSF-2.0" ]
null
null
null
4.py
Andrey543/Prack_10
263cae3204ed624b68d5797bd8d8833dd88e4682
[ "PSF-2.0" ]
null
null
null
enru=open('en-ru.txt','r') input=open('input.txt','r') output=open('output.txt','w') s=enru.read() x='' prov={'q','w','e','r','t','y','u','i','o','p','a','s','d','f','g','h','j','k','l','z','x','c','v','b','n','m'} slovar={} s=s.replace('\t-\t',' ') while len(s)>0: slovar[s[:s.index(' ')]]=s[s.index(' '):s.index('\...
22.655172
110
0.438356
120
657
2.4
0.425
0.048611
0.072917
0.069444
0.125
0.125
0
0
0
0
0
0.00969
0.214612
657
28
111
23.464286
0.54845
0
0
0.24
0
0
0.105023
0
0
0
0
0
0
1
0
false
0
0
0
0
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
f74545257d4ee21af8ad7aae2149ad290991f512
2,485
py
Python
examples/siamese_mnist.py
DmitryUlyanov/deeppy
c9644d348e22b78d32ea049fb0ac14bf3b750941
[ "MIT" ]
1
2015-09-16T08:01:21.000Z
2015-09-16T08:01:21.000Z
examples/siamese_mnist.py
rajat1994/deeppy
79cc7cb552f30bc70eeea9ee7ff4976b0899ea66
[ "MIT" ]
null
null
null
examples/siamese_mnist.py
rajat1994/deeppy
79cc7cb552f30bc70eeea9ee7ff4976b0899ea66
[ "MIT" ]
2
2020-04-05T21:41:14.000Z
2021-09-28T18:05:49.000Z
#!/usr/bin/env python """ Siamese networks ================ """ import random import numpy as np import matplotlib.pyplot as plt from matplotlib import offsetbox import deeppy as dp # Fetch MNIST data dataset = dp.dataset.MNIST() x_train, y_train, x_test, y_test = dataset.data(flat=True, dp_dtypes=True) # Normaliz...
24.60396
78
0.639437
381
2,485
4.015748
0.393701
0.022876
0.033333
0.039216
0.169281
0.169281
0.143137
0.120261
0.120261
0.120261
0
0.033231
0.212877
2,485
100
79
24.85
0.748978
0.090946
0
0.186667
0
0
0.019625
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
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
f7455caca893431c335911322deda0eadbce921b
1,580
py
Python
py/tests/tests_integ_yarn.py
My-Technical-Architect/sparkling-water
b1381891baefd63fd15f8dc2a73b049828a919bc
[ "Apache-2.0" ]
null
null
null
py/tests/tests_integ_yarn.py
My-Technical-Architect/sparkling-water
b1381891baefd63fd15f8dc2a73b049828a919bc
[ "Apache-2.0" ]
null
null
null
py/tests/tests_integ_yarn.py
My-Technical-Architect/sparkling-water
b1381891baefd63fd15f8dc2a73b049828a919bc
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
39.5
97
0.725316
217
1,580
5.184332
0.557604
0.053333
0.057778
0.028444
0
0
0
0
0
0
0
0.010929
0.189241
1,580
39
98
40.512821
0.867291
0.556329
0
0
0
0
0.301775
0.239645
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.307692
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
f747016ef477946806c1d818d38cadb8c27e681e
12,988
py
Python
exchanges/virtualExchangeService.py
AshWorkshop/Trandash
a96b523fbd171ba2d43a6720ef2e2a496a0cf75a
[ "MIT" ]
1
2018-07-25T03:43:35.000Z
2018-07-25T03:43:35.000Z
exchanges/virtualExchangeService.py
AshWorkshop/Trandash
a96b523fbd171ba2d43a6720ef2e2a496a0cf75a
[ "MIT" ]
null
null
null
exchanges/virtualExchangeService.py
AshWorkshop/Trandash
a96b523fbd171ba2d43a6720ef2e2a496a0cf75a
[ "MIT" ]
null
null
null
from twisted.internet import defer, task from twisted.python.failure import Failure from exchanges.base import ExchangeService from exchange import calcVirtualOrderBooks import copy import time def defaultErrHandler(failure): print(failure.getBriefTraceback()) return failure def handleMultipleErr(data): ...
34.542553
97
0.495303
1,251
12,988
5.107114
0.160671
0.029739
0.015652
0.029739
0.608546
0.566912
0.548756
0.522147
0.493974
0.457036
0
0.004178
0.410225
12,988
376
98
34.542553
0.829896
0.032877
0
0.558528
0
0
0.082395
0
0
0
0
0.00266
0
1
0.09699
false
0.006689
0.023411
0.016722
0.207358
0.056856
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7479f1a05ace202d6234fbd90b428551eb021a1
7,989
py
Python
testplan/testing/cpp/cppunit.py
Morgan-Stanley/Testplan
9374d6e0da6ae9aa7a1b5e08b42cd21993485837
[ "Apache-2.0" ]
null
null
null
testplan/testing/cpp/cppunit.py
Morgan-Stanley/Testplan
9374d6e0da6ae9aa7a1b5e08b42cd21993485837
[ "Apache-2.0" ]
null
null
null
testplan/testing/cpp/cppunit.py
Morgan-Stanley/Testplan
9374d6e0da6ae9aa7a1b5e08b42cd21993485837
[ "Apache-2.0" ]
null
null
null
import os from schema import Or from testplan.common.config import ConfigOption from ..base import ProcessRunnerTest, ProcessRunnerTestConfig from ...importers.cppunit import CPPUnitResultImporter, CPPUnitImportedResult class CppunitConfig(ProcessRunnerTestConfig): """ Configuration object for :py:class:`~...
35.506667
80
0.620729
929
7,989
5.196986
0.247578
0.024648
0.031897
0.017606
0.257457
0.157415
0.110191
0.102734
0.102734
0.102734
0
0.001225
0.285017
7,989
224
81
35.665179
0.844013
0.401802
0
0.125
0
0
0.056968
0
0
0
0
0
0
1
0.105769
false
0
0.076923
0.009615
0.326923
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
f747a38fbb26a5157c21b6d60ed98e858e4c0dcd
8,191
py
Python
commands/song.py
Princ3x/ddmbot
088eb6b46447a1ec184b1bc7fea493b66ee35284
[ "MIT" ]
8
2016-12-13T17:52:51.000Z
2019-06-23T22:11:42.000Z
commands/song.py
Princ3x/ddmbot
088eb6b46447a1ec184b1bc7fea493b66ee35284
[ "MIT" ]
13
2016-12-13T17:35:09.000Z
2017-07-08T10:53:51.000Z
commands/song.py
Princ3x/ddmbot
088eb6b46447a1ec184b1bc7fea493b66ee35284
[ "MIT" ]
4
2016-12-13T17:52:53.000Z
2019-01-01T17:43:33.000Z
import discord.ext.commands as dec import database.song from commands.common import * class Song: """Song insertion, querying and manipulation""" def __init__(self, bot): self._bot = bot self._db = database.song.SongInterface(bot.loop) _help_messages = { 'group': 'Song informatio...
56.881944
120
0.652545
1,118
8,191
4.684258
0.22093
0.021768
0.030552
0.029406
0.366622
0.325568
0.279358
0.259882
0.238877
0.214245
0
0.001279
0.236357
8,191
143
121
57.27972
0.835971
0.005005
0
0.161017
0
0.067797
0.518664
0.008104
0
0
0
0
0
1
0.008475
false
0
0.025424
0
0.067797
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
f74835f3182443e8b2003e77b093fbfc09c67fcf
7,153
py
Python
src/anu/constants/amino_acid.py
ankitskvmdam/anu
699598fb60dcc23f6cccd5abb30a03b294d21598
[ "MIT" ]
null
null
null
src/anu/constants/amino_acid.py
ankitskvmdam/anu
699598fb60dcc23f6cccd5abb30a03b294d21598
[ "MIT" ]
null
null
null
src/anu/constants/amino_acid.py
ankitskvmdam/anu
699598fb60dcc23f6cccd5abb30a03b294d21598
[ "MIT" ]
null
null
null
"""Enum for amino acid.""" from enum import Enum from typing import Dict, TypedDict class AcidityBasicity(Enum): """Enum for acidity and basicity.""" U = 3 # Neutral A = 1 # Acid B = 2 # Base class Charge(Enum): """Enum for charge.""" U = 3 # Neutral P = 1 # Positive N = 2 #...
28.612
57
0.533622
744
7,153
5.044355
0.193548
0.159872
0.133227
0.123901
0.473488
0.473488
0.396216
0.268319
0.094857
0.094857
0
0.046667
0.287012
7,153
249
58
28.726908
0.689216
0.062072
0
0.302222
0
0
0.237143
0
0
0
0
0
0
1
0
false
0
0.008889
0
0.191111
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
f74bfae14ea8e361bfd9a147cec9f55e5eecb5a2
5,197
py
Python
characterise_inauthentic_tweets.py
weberdc/socmed_repeatability
85da18cbffa53f18279844117b2aed226104ce11
[ "Apache-2.0" ]
2
2021-06-30T07:29:10.000Z
2022-01-20T15:17:26.000Z
characterise_inauthentic_tweets.py
weberdc/socmed_repeatability
85da18cbffa53f18279844117b2aed226104ce11
[ "Apache-2.0" ]
null
null
null
characterise_inauthentic_tweets.py
weberdc/socmed_repeatability
85da18cbffa53f18279844117b2aed226104ce11
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from __future__ import print_function import gzip import json import re import sys # import time from argparse import ArgumentParser # from datetime import datetime class Options: def __init__(self): self.usage = 'characterise_inauthentic_tweets.py -i <file of tweets> [-v|--verbos...
31.307229
110
0.583414
684
5,197
4.233918
0.266082
0.033149
0.041436
0.03971
0.273481
0.211671
0.18163
0.168508
0.133633
0.112569
0
0.011752
0.279584
5,197
165
111
31.49697
0.761752
0.181066
0
0.134615
0
0.019231
0.185053
0.071174
0
0
0
0
0
1
0.096154
false
0
0.057692
0.028846
0.25
0.086538
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f74ca0e4b20b83d509bc3a77fa6331062c311e10
3,577
py
Python
localshop/apps/packages/utils.py
rcoup/localshop
b7d0803afd9335862accfc79dee047a6b0e67ad6
[ "BSD-3-Clause" ]
null
null
null
localshop/apps/packages/utils.py
rcoup/localshop
b7d0803afd9335862accfc79dee047a6b0e67ad6
[ "BSD-3-Clause" ]
null
null
null
localshop/apps/packages/utils.py
rcoup/localshop
b7d0803afd9335862accfc79dee047a6b0e67ad6
[ "BSD-3-Clause" ]
null
null
null
import inspect import hashlib import logging import os from django.core.files.uploadedfile import TemporaryUploadedFile from django.db.models import FieldDoesNotExist from django.db.models.fields.files import FileField from django.http import QueryDict from django.utils.datastructures import MultiValueDict logger = l...
29.808333
78
0.559966
368
3,577
5.355978
0.421196
0.025368
0.012177
0.018265
0
0
0
0
0
0
0
0.007228
0.342466
3,577
119
79
30.058824
0.830782
0.092256
0
0.174419
0
0
0.048152
0
0
0
0
0
0
1
0.046512
false
0.011628
0.104651
0
0.209302
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
f74d7b65bf1d537a02c073dba7f2c762c4daaaf9
4,228
py
Python
bika/lims/browser/worksheet/views/analyses_transposed.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
bika/lims/browser/worksheet/views/analyses_transposed.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
bika/lims/browser/worksheet/views/analyses_transposed.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
# coding=utf-8 from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile from bika.lims.browser.bika_listing import BikaListingTable from bika.lims.browser.worksheet.views.analyses import AnalysesView class AnalysesTransposedView(AnalysesView): """ The view for displaying the table of manage_results...
41.45098
82
0.585856
450
4,228
5.384444
0.34
0.026001
0.040446
0.01981
0.026414
0.026414
0.026414
0
0
0
0
0.001725
0.314333
4,228
101
83
41.861386
0.834081
0.21807
0
0.060606
0
0
0.100441
0.023615
0
0
0
0
0
1
0.075758
false
0
0.045455
0.015152
0.242424
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
f756ddf67db85cf74cd46b5e90ed19ef6fd17367
32,091
py
Python
gazoo_device/fire_manager.py
isabella232/gazoo-device
0e1e276d72333e713b47152815708b9c74c45409
[ "Apache-2.0" ]
null
null
null
gazoo_device/fire_manager.py
isabella232/gazoo-device
0e1e276d72333e713b47152815708b9c74c45409
[ "Apache-2.0" ]
1
2021-06-24T19:20:50.000Z
2021-06-24T19:20:50.000Z
gazoo_device/fire_manager.py
isabella232/gazoo-device
0e1e276d72333e713b47152815708b9c74c45409
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
38.249106
109
0.675361
3,880
32,091
5.371392
0.151031
0.015834
0.010604
0.008157
0.302241
0.243558
0.190922
0.153016
0.129792
0.111943
0
0.004315
0.241781
32,091
838
110
38.294749
0.852211
0.285407
0
0.191837
0
0
0.247059
0.022575
0
0
0
0
0
1
0.044898
false
0.008163
0.044898
0
0.144898
0.002041
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7583f3c89da3d4e9ea5d5c4fffa4b29559b7e57
4,814
py
Python
py/desispec/scripts/humidity_corrected_fiberflat.py
echaussidon/desispec
8a8bd59653861509dd630ffc8e1cd6c67f6cdd51
[ "BSD-3-Clause" ]
null
null
null
py/desispec/scripts/humidity_corrected_fiberflat.py
echaussidon/desispec
8a8bd59653861509dd630ffc8e1cd6c67f6cdd51
[ "BSD-3-Clause" ]
null
null
null
py/desispec/scripts/humidity_corrected_fiberflat.py
echaussidon/desispec
8a8bd59653861509dd630ffc8e1cd6c67f6cdd51
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division import os import fitsio import argparse import numpy as np from desiutil.log import get_logger from desispec.io import read_fiberflat,write_fiberflat,findfile,read_frame from desispec.io.fiberflat_vs_humidity import get_humidity,read_fiberflat_vs_humidity from desisp...
42.60177
162
0.706689
622
4,814
5.302251
0.286174
0.047301
0.046089
0.016374
0.094603
0.079442
0.057611
0.038811
0.038811
0.026683
0
0.003888
0.198587
4,814
112
163
42.982143
0.850959
0.085791
0
0.061728
0
0
0.185194
0
0
0
0
0
0.012346
1
0.024691
false
0
0.123457
0
0.185185
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
f759437ada91a66b6fb489d96b3bf88ad2d186f2
1,856
py
Python
config.py
jfernan2/PRInspector
c09aad3b49263d3c679fd6cfd307de404425f924
[ "MIT" ]
null
null
null
config.py
jfernan2/PRInspector
c09aad3b49263d3c679fd6cfd307de404425f924
[ "MIT" ]
null
null
null
config.py
jfernan2/PRInspector
c09aad3b49263d3c679fd6cfd307de404425f924
[ "MIT" ]
null
null
null
IS_TEST = True REPOSITORY = 'cms-sw/cmssw' def get_repo_url(): return 'https://github.com/' + REPOSITORY + '/' CERN_SSO_CERT_FILE = 'private/cert.pem' CERN_SSO_KEY_FILE = 'private/cert.key' CERN_SSO_COOKIES_LOCATION = 'private/' TWIKI_CONTACTS_URL = 'https://ppdcontacts.web.cern.ch/PPDContacts/ppd_contacts' TWI...
27.294118
98
0.581358
202
1,856
4.950495
0.480198
0.144
0.084
0.034
0.192
0.192
0.132
0.078
0
0
0
0.006065
0.289332
1,856
67
99
27.701493
0.752085
0
0
0
0
0.035088
0.299569
0.03125
0
0
0
0
0
1
0.070175
false
0
0
0.035088
0.140351
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
f75aab6d4d19a6e9c9dca13b0cb77061bc6e8325
5,748
py
Python
trainer/ml/utils.py
Telcrome/ai-trainer
54bca3252e194c054bdd3af2b94d6dde940a2a86
[ "MIT" ]
1
2021-05-05T12:57:42.000Z
2021-05-05T12:57:42.000Z
trainer/ml/utils.py
Telcrome/ai-trainer
54bca3252e194c054bdd3af2b94d6dde940a2a86
[ "MIT" ]
null
null
null
trainer/ml/utils.py
Telcrome/ai-trainer
54bca3252e194c054bdd3af2b94d6dde940a2a86
[ "MIT" ]
null
null
null
from enum import Enum from typing import Generator, Tuple, Iterable, Dict, List import cv2 import matplotlib.pyplot as plt import numpy as np import seaborn as sns from scipy.ndimage import label, generate_binary_structure from scipy.ndimage.morphology import distance_transform_edt as dist_trans import trainer.lib as...
35.04878
117
0.636047
936
5,748
3.779915
0.251068
0.066139
0.02035
0.02035
0.111362
0.080837
0.041832
0.022612
0.022612
0.015263
0
0.038019
0.212944
5,748
163
118
35.263804
0.744032
0.224078
0
0.086957
0
0
0.02233
0
0
0
0
0
0.032609
1
0.108696
false
0
0.108696
0
0.336957
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
f75b61928d5ab139ffa7aac0fa8d2448bbd25e2c
7,613
py
Python
widgets/ImageDetailArea.py
JaySon-Huang/SecertPhotos
e741cc26c19a5b249d45cc70959ac6817196cb8a
[ "MIT" ]
null
null
null
widgets/ImageDetailArea.py
JaySon-Huang/SecertPhotos
e741cc26c19a5b249d45cc70959ac6817196cb8a
[ "MIT" ]
3
2015-05-19T08:43:46.000Z
2015-06-10T17:55:28.000Z
widgets/ImageDetailArea.py
JaySon-Huang/SecertPhotos
e741cc26c19a5b249d45cc70959ac6817196cb8a
[ "MIT" ]
null
null
null
from PyQt5.QtCore import Qt, pyqtSignal, QSize from PyQt5.QtWidgets import ( QLabel, QWidget, QTreeWidgetItem, QHeaderView, QVBoxLayout, QHBoxLayout, ) from .ImageLabel import ImageLabel from .AdaptiveTreeWidget import AdaptiveTreeWidget class ImageDetailArea(QWidget): # signal imageLoaded = pyqtSig...
38.64467
73
0.620255
734
7,613
6.273842
0.144414
0.048208
0.067752
0.053855
0.4443
0.320955
0.267535
0.181107
0.162866
0.049077
0
0.006844
0.270721
7,613
196
74
38.841837
0.822586
0.018784
0
0.194286
0
0
0.080451
0.002816
0
0
0
0
0
1
0.022857
false
0
0.022857
0
0.068571
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
f75bd46e6e679f347d07fe04e940962382046dd8
3,005
py
Python
predict.py
zhyq/cws_lstm
326980e0971482fc712602d3a79069e69a11c8fc
[ "Apache-2.0" ]
7
2018-04-28T02:32:51.000Z
2020-02-11T07:14:51.000Z
predict.py
zhyq/cws_lstm
326980e0971482fc712602d3a79069e69a11c8fc
[ "Apache-2.0" ]
null
null
null
predict.py
zhyq/cws_lstm
326980e0971482fc712602d3a79069e69a11c8fc
[ "Apache-2.0" ]
null
null
null
import argparse import data_helper from sklearn.model_selection import train_test_split import re import lstm from lstm import * import time from viterbi import Viterbi xrange = range def simple_cut(text,dh,lm,viterbi): """对一个片段text(标点符号把句子划分为多个片段)进行预测。""" if text: #print("text: %s" %text) te...
33.388889
125
0.628619
401
3,005
4.571072
0.341646
0.017458
0.048009
0.02946
0.134206
0.065466
0
0
0
0
0
0.00556
0.221963
3,005
89
126
33.764045
0.778443
0.068885
0
0.057143
0
0
0.140288
0.044604
0
0
0
0
0
1
0.057143
false
0
0.114286
0
0.214286
0.014286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f75c6aa4c0bc9e6a0583632570a241f0d5700804
2,945
py
Python
2021/day09/part01/smoke_basin.py
fpmosley/advent-of-code
507bd89795ff6a0824284c3c8d2123cf19a932a3
[ "MIT" ]
null
null
null
2021/day09/part01/smoke_basin.py
fpmosley/advent-of-code
507bd89795ff6a0824284c3c8d2123cf19a932a3
[ "MIT" ]
null
null
null
2021/day09/part01/smoke_basin.py
fpmosley/advent-of-code
507bd89795ff6a0824284c3c8d2123cf19a932a3
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' Advent of Code 2021 - Day 9: Smoke Basin (Part 1) https://adventofcode.com/2021/day/9 ''' import numpy as np class HeightMap(): def __init__(self) -> None: self._grid = np.array([]) def add_row(self, row): np_row = np.array(row) if self._grid.size != 0: ...
27.523364
94
0.55382
371
2,945
4.22372
0.296496
0.091895
0.025526
0.058711
0.150606
0.150606
0.141672
0.093172
0.040842
0
0
0.011868
0.341935
2,945
106
95
27.783019
0.796698
0.096435
0
0.030769
0
0
0.11678
0.008692
0
0
0
0
0
1
0.107692
false
0
0.015385
0.015385
0.2
0.107692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f75d3544ffa19cc489ce532ee8d14ab4f09c6953
3,830
py
Python
datar/base/trig_hb.py
stjordanis/datar
4e2b5db026ad35918954576badef9951928c0cb1
[ "MIT" ]
110
2021-03-09T04:10:40.000Z
2022-03-13T10:28:20.000Z
datar/base/trig_hb.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
54
2021-06-20T18:53:44.000Z
2022-03-29T22:13:07.000Z
datar/base/trig_hb.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
11
2021-06-18T03:03:14.000Z
2022-02-25T11:48:26.000Z
"""Trigonometric and Hyperbolic Functions""" from typing import Callable import numpy from pipda import register_func from ..core.contexts import Context from ..core.types import FloatOrIter from .constants import pi def _register_trig_hb_func(name: str, np_name: str, doc: str) -> Callable: """Register trigono...
16.228814
76
0.636031
536
3,830
4.395522
0.164179
0.081494
0.095076
0.122241
0.540747
0.487267
0.409168
0.409168
0.409168
0.409168
0
0.002077
0.245692
3,830
235
77
16.297872
0.81343
0.079634
0
0.556213
0
0
0.518657
0
0
0
0
0
0
1
0.011834
false
0
0.035503
0
0.059172
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
f75e1e987d9f182ed96fa5d1a87db15f1d90fda6
1,463
py
Python
randomised_selection.py
neerajp99/algorithms
1d6885d2a895821ac511fa8a46913d34db2511ca
[ "MIT" ]
1
2021-06-17T07:59:42.000Z
2021-06-17T07:59:42.000Z
randomised_selection.py
neerajp99/algorithms
1d6885d2a895821ac511fa8a46913d34db2511ca
[ "MIT" ]
null
null
null
randomised_selection.py
neerajp99/algorithms
1d6885d2a895821ac511fa8a46913d34db2511ca
[ "MIT" ]
1
2022-01-13T08:42:31.000Z
2022-01-13T08:42:31.000Z
# Implementation of Randomised Selection """ Naive Approach --------- Parameters --------- An arry with n distinct numbers --------- Returns --------- i(th) order statistic, i.e: i(th) smallest element of the input array --------- Time Complexity --------- O(n.log...
26.6
141
0.601504
177
1,463
4.666667
0.367232
0.121065
0.108959
0.11138
0.291768
0.22155
0.22155
0.181598
0.181598
0.181598
0
0.022305
0.264525
1,463
54
142
27.092593
0.745353
0.337662
0
0
0
0
0.00904
0
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.333333
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7610420f3cae75b3b9d0169cdf9f686ba220b80
4,769
py
Python
neural-navigation-with-lstm/MARCO/plastk/examples/gngsom.py
ronaldahmed/SLAM-for-ugv
52e3241b8b737a0cfe5682c0aa87ec8c27d6a33d
[ "MIT" ]
14
2016-04-03T19:25:13.000Z
2022-01-05T07:03:07.000Z
neural-navigation-with-lstm/MARCO/plastk/examples/gngsom.py
ronaldahmed/SLAM-for-ugv
52e3241b8b737a0cfe5682c0aa87ec8c27d6a33d
[ "MIT" ]
null
null
null
neural-navigation-with-lstm/MARCO/plastk/examples/gngsom.py
ronaldahmed/SLAM-for-ugv
52e3241b8b737a0cfe5682c0aa87ec8c27d6a33d
[ "MIT" ]
5
2018-06-21T12:58:58.000Z
2020-02-15T05:33:39.000Z
""" GNG vs SOM comparison example for PLASTK. This script shows how to: - Train PLASTK vector quantizers (SOM and GNG) - Set default parameters - Create a simple agent and environment. - Run an interaction between the agent and the environment with a GUI. $Id: gngsom.py,v 1.3 2006/02/17 19:40:09 jp Exp $ ...
29.257669
79
0.662403
640
4,769
4.85625
0.371875
0.018018
0.024453
0.017375
0.082368
0.05148
0.031532
0.031532
0
0
0
0.023382
0.228769
4,769
162
80
29.438272
0.821642
0.515202
0
0.039216
0
0
0.008867
0
0
0
0
0
0
1
0.098039
false
0
0.078431
0
0.294118
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f762be92cbd4d0af01d0dd42ecc1fb37b29c7ade
3,745
py
Python
gratipay/models/exchange_route.py
stefb965/gratipay.com
5f3b5922d6b3a7ff64f51574a1087bab2378cbd8
[ "CC0-1.0" ]
null
null
null
gratipay/models/exchange_route.py
stefb965/gratipay.com
5f3b5922d6b3a7ff64f51574a1087bab2378cbd8
[ "CC0-1.0" ]
null
null
null
gratipay/models/exchange_route.py
stefb965/gratipay.com
5f3b5922d6b3a7ff64f51574a1087bab2378cbd8
[ "CC0-1.0" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals import braintree from postgres.orm import Model class ExchangeRoute(Model): typname = "exchange_routes" def __bool__(self): return self.error != 'invalidated' __nonzero__ = __bool__ @classmethod def fro...
34.357798
94
0.594393
423
3,745
5.101655
0.281324
0.07785
0.014829
0.046339
0.408712
0.316033
0.221501
0.201576
0.201576
0.201576
0
0
0.306275
3,745
108
95
34.675926
0.830639
0.125768
0
0.52439
0
0.012195
0.319951
0.017469
0
0
0
0
0
1
0.085366
false
0
0.060976
0.012195
0.280488
0.012195
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f763746331e345f22b7c5a33a4edda7eac385dea
805
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/video_pipeline/forms.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/video_pipeline/forms.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/video_pipeline/forms.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
""" Defines a form to provide validations for course-specific configuration. """ from django import forms from openedx.core.djangoapps.video_config.forms import CourseSpecificFlagAdminBaseForm from openedx.core.djangoapps.video_pipeline.models import ( CourseVideoUploadsEnabledByDefault, VEMPipelineIntegration...
26.833333
86
0.756522
69
805
8.681159
0.565217
0.03005
0.056761
0.083472
0.100167
0
0
0
0
0
0
0
0.178882
805
29
87
27.758621
0.906203
0.238509
0
0.285714
0
0
0.024348
0
0
0
0
0
0
1
0
false
0
0.214286
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
f76393b04c4eca590f51e2e26126536b11d54d6f
1,779
py
Python
tests/integration/test_create_from_full_info.py
superannotateai/superannotate-python-sdk
e2ce848b61efed608265fa64f3781fd5a17c929b
[ "MIT" ]
26
2020-09-25T06:25:06.000Z
2022-01-30T16:44:07.000Z
tests/integration/test_create_from_full_info.py
superannotateai/superannotate-python-sdk
e2ce848b61efed608265fa64f3781fd5a17c929b
[ "MIT" ]
12
2020-12-21T19:59:48.000Z
2022-01-21T10:32:07.000Z
tests/integration/test_create_from_full_info.py
superannotateai/superannotate-python-sdk
e2ce848b61efed608265fa64f3781fd5a17c929b
[ "MIT" ]
11
2020-09-17T13:39:19.000Z
2022-03-02T18:12:29.000Z
import os from os.path import dirname from unittest import TestCase import src.superannotate as sa class TestCloneProject(TestCase): PROJECT_NAME_1 = "test create from full info1" PROJECT_NAME_2 = "test create from full info2" PROJECT_DESCRIPTION = "desc" PROJECT_TYPE = "Vector" TEST_FOLDER_PATH...
37.0625
109
0.720067
221
1,779
5.434389
0.289593
0.100749
0.099917
0.09159
0.235637
0.133222
0.083264
0.083264
0.083264
0
0
0.011111
0.190556
1,779
48
110
37.0625
0.822917
0
0
0.052632
0
0
0.11573
0.038764
0
0
0
0
0.052632
1
0.131579
false
0
0.105263
0.052632
0.447368
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
f767fc179ce62571eb82287782f1d69c78d494fd
1,028
py
Python
415-add-strings/add_strings.py
cnluocj/leetcode
5b870a63ba1aab3db1e05421c91f404a9aabc489
[ "MIT" ]
null
null
null
415-add-strings/add_strings.py
cnluocj/leetcode
5b870a63ba1aab3db1e05421c91f404a9aabc489
[ "MIT" ]
null
null
null
415-add-strings/add_strings.py
cnluocj/leetcode
5b870a63ba1aab3db1e05421c91f404a9aabc489
[ "MIT" ]
null
null
null
""" 59.40% 其实是大数相加 """ class Solution(object): def addStrings(self, num1, num2): """ :type num1: str :type num2: str :rtype: str """ num1_index = len(num1) - 1 num2_index = len(num2) - 1 if num1_index < 0: return num2 if num2_inde...
23.906977
73
0.430934
118
1,028
3.635593
0.288136
0.146853
0.06993
0.06993
0.240093
0.107226
0.107226
0
0
0
0
0.086331
0.459144
1,028
42
74
24.47619
0.685252
0.057393
0
0
0
0
0
0
0
0
0
0
0
1
0.035714
false
0
0
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
f769f929849f6994908fa8a9ca653f7ebe8e0e87
2,770
py
Python
plugins/qdb.py
x89/raziel-irc-bot
122a5de858a84e018549e0a7fd0be11bb33f2eb3
[ "MIT" ]
null
null
null
plugins/qdb.py
x89/raziel-irc-bot
122a5de858a84e018549e0a7fd0be11bb33f2eb3
[ "MIT" ]
null
null
null
plugins/qdb.py
x89/raziel-irc-bot
122a5de858a84e018549e0a7fd0be11bb33f2eb3
[ "MIT" ]
null
null
null
import logging log = logging.getLogger(__name__) import json import requests import requests.exceptions import botologist.plugin BASE_URL = 'https://qdb.lutro.me' def _get_quote_url(quote): return BASE_URL + '/' + str(quote['id']) def _get_qdb_data(url, query_params): response = requests.get(url, query_params, ...
23.277311
83
0.636462
381
2,770
4.493438
0.288714
0.028622
0.029206
0.026285
0.092874
0.060748
0.03271
0
0
0
0
0.01626
0.200722
2,770
118
84
23.474576
0.757001
0.03213
0
0.242105
0
0
0.10824
0
0
0
0
0
0
1
0.052632
false
0
0.052632
0.010526
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
f76e35161b8285ae39943d6522c5085c519cc9cf
22,791
py
Python
wwt_api_client/communities.py
WorldWideTelescope/wwt_api_client
cfc42728eb2428f17e711f7527fd97150e629296
[ "BSD-3-Clause" ]
null
null
null
wwt_api_client/communities.py
WorldWideTelescope/wwt_api_client
cfc42728eb2428f17e711f7527fd97150e629296
[ "BSD-3-Clause" ]
8
2019-04-28T17:27:44.000Z
2020-11-05T20:24:21.000Z
wwt_api_client/communities.py
WorldWideTelescope/wwt_api_client
cfc42728eb2428f17e711f7527fd97150e629296
[ "BSD-3-Clause" ]
1
2019-04-28T17:25:06.000Z
2019-04-28T17:25:06.000Z
# Copyright 2019-2020 the .NET Foundation # Distributed under the terms of the revised (3-clause) BSD license. """Interacting with the WWT Communities APIs.""" import json import os.path import requests import sys from urllib.parse import parse_qs, urlparse from . import APIRequest, Client, enums __all__ = ''' Comm...
30.966033
125
0.5833
2,391
22,791
5.390213
0.22501
0.017846
0.015208
0.014742
0.380043
0.31766
0.26032
0.242396
0.217101
0.201738
0
0.013183
0.317713
22,791
735
126
31.008163
0.815627
0.344039
0
0.4
0
0.006349
0.192714
0.044414
0
0
0
0.001361
0
1
0.098413
false
0.006349
0.031746
0.04127
0.311111
0.038095
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7704b3dce5cd94981cb7391a19b755c0df22b68
304
py
Python
test/socket_client.py
suxb201/Socks5_DNS_Test
a1cb8b5d8d998c6a029dc0b329418ecbb9a2fc72
[ "MIT" ]
1
2020-11-09T02:08:04.000Z
2020-11-09T02:08:04.000Z
test/socket_client.py
suxb201/Socks5_DNS_Test
a1cb8b5d8d998c6a029dc0b329418ecbb9a2fc72
[ "MIT" ]
null
null
null
test/socket_client.py
suxb201/Socks5_DNS_Test
a1cb8b5d8d998c6a029dc0b329418ecbb9a2fc72
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import socket HOST = '127.0.0.1' # 服务器的主机名或者 IP 地址 PORT = 10009 # 服务器使用的端口 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: print(s) s.connect((HOST, PORT)) s.sendall(b'Hello, world') print(s) data = s.recv(1024) print('Received', repr(data))
19
60
0.651316
49
304
4
0.693878
0.122449
0
0
0
0
0
0
0
0
0
0.065041
0.190789
304
15
61
20.266667
0.731707
0.151316
0
0.2
0
0
0.113725
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.3
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f770883d6109ebd548cc44852ed0b4db7874c963
752
py
Python
util/statuschanger.py
MarkThe/Mark-Tools
c755d2b2e095b9f83fcbaba3ac74ec927bcddf26
[ "MIT" ]
1
2022-01-04T18:09:50.000Z
2022-01-04T18:09:50.000Z
util/statuschanger.py
MarkThe/Mark-Tools
c755d2b2e095b9f83fcbaba3ac74ec927bcddf26
[ "MIT" ]
null
null
null
util/statuschanger.py
MarkThe/Mark-Tools
c755d2b2e095b9f83fcbaba3ac74ec927bcddf26
[ "MIT" ]
null
null
null
import requests import Mark from colorama import Fore from util.plugins.common import print_slow, getheaders, proxy def StatusChanger(token, Status): #change status CustomStatus = {"custom_status": {"text": Status}} #{"text": Status, "emoji_name": "☢"} if you want to add an emoji to the status try: ...
44.235294
152
0.676862
105
752
4.819048
0.628571
0.035573
0.063241
0
0
0
0
0
0
0
0
0.0016
0.168883
752
17
153
44.235294
0.8064
0.121011
0
0
0
0.071429
0.362121
0.095455
0
0
0
0
0
1
0.071429
false
0
0.285714
0
0.357143
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f77168d5a15a1187d94edfc593ed43416e3d8946
1,979
py
Python
recipes/recipe_modules/cloudbuildhelper/test_api.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
recipes/recipe_modules/cloudbuildhelper/test_api.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
recipes/recipe_modules/cloudbuildhelper/test_api.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from hashlib import sha256 from recipe_engine import recipe_test_api class CloudBuildHelperTestApi(recipe_test_api.RecipeTestApi): def build_success_out...
30.921875
80
0.632137
253
1,979
4.841897
0.347826
0.040816
0.044898
0.061224
0.232653
0.198367
0.171429
0.063673
0.063673
0
0
0.020143
0.222335
1,979
63
81
31.412698
0.775828
0.078322
0
0.12
0
0
0.192308
0.043407
0
0
0
0
0
1
0.1
false
0
0.04
0.06
0.26
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
f7716d154c4129f506d04590e1524fcb8b2888bb
7,011
py
Python
tabbi/gmm.py
Yu-AnChen/tabbi
bf4655905d0f3fc5b7dd49a1cd12c69cb83e5bb5
[ "MIT" ]
null
null
null
tabbi/gmm.py
Yu-AnChen/tabbi
bf4655905d0f3fc5b7dd49a1cd12c69cb83e5bb5
[ "MIT" ]
null
null
null
tabbi/gmm.py
Yu-AnChen/tabbi
bf4655905d0f3fc5b7dd49a1cd12c69cb83e5bb5
[ "MIT" ]
null
null
null
import sklearn.mixture import matplotlib.pyplot as plt import numpy as np from matplotlib import ticker import matplotlib.patheffects as mpatheffects def get_gmm_and_pos_label( array, n_components=2, n_steps=5000 ): gmm = sklearn.mixture.GaussianMixture( n_components=n_components, covarianc...
31.581081
97
0.601341
935
7,011
4.297326
0.241711
0.032852
0.017919
0.021901
0.206073
0.201842
0.160528
0.145097
0.145097
0.145097
0
0.02131
0.270432
7,011
221
98
31.723982
0.764223
0.024533
0
0.154286
0
0
0.024803
0.003932
0
0
0
0
0
1
0.045714
false
0
0.028571
0.005714
0.125714
0.005714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7745a348fc7e9affea625ab9bda06298308eebf
4,627
py
Python
openGaussBase/testcase/SQL/DML/upsert/Opengauss_Function_DML_Upsert_Case0131.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SQL/DML/upsert/Opengauss_Function_DML_Upsert_Case0131.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SQL/DML/upsert/Opengauss_Function_DML_Upsert_Case0131.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 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 IS PROVIDED ON AN "AS IS" BASIS, W...
39.211864
84
0.653555
602
4,627
4.913621
0.317276
0.047329
0.070656
0.030426
0.206558
0.154496
0.118661
0.049358
0.018932
0
0
0.046648
0.226281
4,627
117
85
39.547009
0.779609
0.10979
0
0.027027
0
0.013514
0.320228
0.103704
0
0
0
0
0.081081
1
0.040541
false
0
0.081081
0
0.135135
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
f7746001d5f89f7418b92bab28a281a421e0564a
6,892
py
Python
multi_traductor.py
Jalagarto/translator
d35cde0934c4ab94204d6dfdf4e7d6c0bcd6291b
[ "Apache-2.0" ]
null
null
null
multi_traductor.py
Jalagarto/translator
d35cde0934c4ab94204d6dfdf4e7d6c0bcd6291b
[ "Apache-2.0" ]
null
null
null
multi_traductor.py
Jalagarto/translator
d35cde0934c4ab94204d6dfdf4e7d6c0bcd6291b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import tkinter as tk from tkinter import messagebox as msg from tkinter.ttk import Notebook from tkinter import ttk import tkinter.font as font import requests class LanguageTab(tk.Frame): def __init__(self, master, lang_name, lang_code): super().__init__(master) # fonts for ...
43.075
130
0.642339
893
6,892
4.788354
0.213886
0.033442
0.030402
0.028064
0.356174
0.319691
0.250702
0.206735
0.138447
0.107109
0
0.012467
0.220255
6,892
160
131
43.075
0.783215
0.097069
0
0.12069
0
0.008621
0.134665
0
0
0
0
0
0
1
0.068966
false
0.008621
0.051724
0
0.155172
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
f775c9f689bfc087dae8bdb25d1cd48072e78520
1,138
py
Python
root/settings/__init__.py
daniel-waruo/e-commerse-api
6b080039398fb4099a34335317d649dd67783f63
[ "Apache-2.0" ]
6
2019-11-21T10:09:49.000Z
2021-06-19T09:52:59.000Z
root/settings/__init__.py
daniel-waruo/e-commerse-api
6b080039398fb4099a34335317d649dd67783f63
[ "Apache-2.0" ]
null
null
null
root/settings/__init__.py
daniel-waruo/e-commerse-api
6b080039398fb4099a34335317d649dd67783f63
[ "Apache-2.0" ]
null
null
null
""" This is a django-split-settings main file. For more information read this: https://github.com/sobolevn/django-split-settings Default environment is `development`. To change settings file: `DJANGO_ENV=production python manage.py runserver` """ import django_heroku from split_settings.tools import include base_set...
30.756757
62
0.745167
130
1,138
6.446154
0.446154
0.193317
0.045346
0.073986
0.152745
0.152745
0.152745
0.152745
0.152745
0
0
0
0.1529
1,138
36
63
31.611111
0.869295
0.472759
0
0.105263
0
0
0.519862
0.388601
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
f776be33a00e9a7a7de35e919a22d945de72c2c3
688
py
Python
testapp/urls.py
danigosa/django-simple-seo
17610e50148c6672cb34e96654df1d3515b0444f
[ "BSD-3-Clause" ]
11
2015-01-02T15:44:31.000Z
2021-07-27T06:54:35.000Z
testapp/urls.py
danigosa/django-simple-seo
17610e50148c6672cb34e96654df1d3515b0444f
[ "BSD-3-Clause" ]
8
2016-02-03T07:07:04.000Z
2022-01-13T00:42:32.000Z
testapp/urls.py
danigosa/django-simple-seo
17610e50148c6672cb34e96654df1d3515b0444f
[ "BSD-3-Clause" ]
8
2015-02-20T13:51:51.000Z
2021-06-24T19:11:30.000Z
from django.conf.urls import patterns, url, include from django.contrib import admin from django.conf import settings from django.contrib.staticfiles.urls import staticfiles_urlpatterns from .views import template_test urlpatterns = patterns( '', url(r'^test/', template_test, name='template_test'), url(r...
23.724138
85
0.713663
82
688
5.829268
0.365854
0.083682
0.138075
0.144351
0
0
0
0
0
0
0
0.001718
0.15407
688
28
86
24.571429
0.819588
0
0
0.190476
0
0
0.101744
0
0
0
0
0
0
1
0
false
0
0.285714
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
f7796a989bdd258bec7902dd5290b418ab45666b
1,645
py
Python
continual_learning/scenarios/utils.py
jaryP/ContinualAI
7d9b7614066d219ebd72049692da23ad6ec132b0
[ "MIT" ]
null
null
null
continual_learning/scenarios/utils.py
jaryP/ContinualAI
7d9b7614066d219ebd72049692da23ad6ec132b0
[ "MIT" ]
null
null
null
continual_learning/scenarios/utils.py
jaryP/ContinualAI
7d9b7614066d219ebd72049692da23ad6ec132b0
[ "MIT" ]
null
null
null
from typing import Sequence, Union import numpy as np from scipy.ndimage.interpolation import rotate as np_rotate from PIL.Image import Image from torch import Tensor, tensor from torchvision.transforms.functional import rotate class ImageRotation(object): def __init__(self, degree): self.degree = degree...
33.571429
73
0.612766
194
1,645
5.092784
0.268041
0.078947
0.068826
0.04251
0.577935
0.476721
0.42004
0.42004
0.42004
0.378543
0
0.002527
0.278419
1,645
48
74
34.270833
0.829823
0
0
0.5
0
0
0.073037
0
0
0
0
0
0
1
0.105263
false
0
0.157895
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f77bd48d7ad8370a1142d05db86188aea9cfe2af
14,355
py
Python
d_graph.py
MohamedAl-Hussein/pyGraphs
43346b1f25332dd7ab80cdd9656b3ed7af21d4d2
[ "MIT" ]
null
null
null
d_graph.py
MohamedAl-Hussein/pyGraphs
43346b1f25332dd7ab80cdd9656b3ed7af21d4d2
[ "MIT" ]
null
null
null
d_graph.py
MohamedAl-Hussein/pyGraphs
43346b1f25332dd7ab80cdd9656b3ed7af21d4d2
[ "MIT" ]
null
null
null
# Course: CS261 - Data Structures # Author: Mohamed Al-Hussein # Assignment: 06 # Description: Directed graph implementation. from collections import deque import heapq class DirectedGraph: """ Class to implement directed weighted graph - duplicate edges not allowed - loops not allowed - only pos...
33.618267
117
0.585023
1,908
14,355
4.303459
0.153564
0.018877
0.032883
0.013153
0.342589
0.278772
0.208501
0.157228
0.138473
0.125929
0
0.004934
0.336468
14,355
426
118
33.697183
0.857113
0.377917
0
0.342105
0
0
0.011493
0
0
0
0
0
0
1
0.110526
false
0
0.010526
0
0.273684
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
f77befa83cf2914313d51ff9e7931425c66499dd
6,847
py
Python
src/code_submission/2_pasanju/preprocessing/prepredict.py
NehzUx/AutoGraph-KDDCup2020
d2fc228f4ccc5785db3129cca0445a80b6fef11d
[ "MIT" ]
1
2021-12-06T14:59:55.000Z
2021-12-06T14:59:55.000Z
src/code_submission/2_pasanju/preprocessing/prepredict.py
NehzUx/AutoGraph-Benchmark
d2fc228f4ccc5785db3129cca0445a80b6fef11d
[ "MIT" ]
null
null
null
src/code_submission/2_pasanju/preprocessing/prepredict.py
NehzUx/AutoGraph-Benchmark
d2fc228f4ccc5785db3129cca0445a80b6fef11d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time: 2020/5/14 20:41 # @Author: Mecthew import time import numpy as np import pandas as pd import scipy from sklearn.svm import LinearSVC from sklearn.linear_model import logistic from sklearn.calibration import CalibratedClassifierCV from sklearn.metrics import ac...
43.062893
117
0.676355
1,024
6,847
4.242188
0.183594
0.069061
0.031077
0.016575
0.436464
0.389733
0.305479
0.266344
0.252072
0.191298
0
0.015282
0.187673
6,847
158
118
43.335443
0.765732
0.030378
0
0.257813
0
0
0.071482
0
0
0
0
0
0
1
0.070313
false
0
0.085938
0.015625
0.21875
0.015625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f77cba016c9db38a8357e9b79839c267bbbde362
4,754
py
Python
disaster_data/sources/noaa_coast/spider.py
cognition-gis/cognition-disaster-data
5441bd282d36b2d998d1d366d714d38fc5b92c8f
[ "Apache-2.0" ]
null
null
null
disaster_data/sources/noaa_coast/spider.py
cognition-gis/cognition-disaster-data
5441bd282d36b2d998d1d366d714d38fc5b92c8f
[ "Apache-2.0" ]
1
2022-03-02T14:58:21.000Z
2022-03-02T14:58:21.000Z
disaster_data/sources/noaa_coast/spider.py
cognition-gis/cognition-disaster-data
5441bd282d36b2d998d1d366d714d38fc5b92c8f
[ "Apache-2.0" ]
null
null
null
import os import scrapy from scrapy.crawler import CrawlerProcess import requests from disaster_data.sources.noaa_coast.utils import get_geoinfo, get_fgdcinfo class NoaaImageryCollections(scrapy.Spider): name = 'noaa-coast-imagery-collections' start_urls = [ 'https://coast.noaa.gov/htdata/raster2/...
34.955882
121
0.446782
409
4,754
5.08802
0.371638
0.049976
0.045651
0.033638
0.024988
0.024988
0.024988
0
0
0
0
0.007236
0.418595
4,754
136
122
34.955882
0.745658
0.040177
0
0.203704
0
0
0.169753
0.02403
0
0
0
0
0
1
0.027778
false
0
0.046296
0
0.12037
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
f77db444ca4d359ed2a89460019181e2cac7a2bd
1,285
py
Python
src/setup_mac.py
dittert/pyprobe
1b0d0e403645ed204332c70c8a89e094f860023a
[ "Apache-2.0" ]
null
null
null
src/setup_mac.py
dittert/pyprobe
1b0d0e403645ed204332c70c8a89e094f860023a
[ "Apache-2.0" ]
null
null
null
src/setup_mac.py
dittert/pyprobe
1b0d0e403645ed204332c70c8a89e094f860023a
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 Dirk Dittert # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
27.340426
74
0.649805
151
1,285
5.496689
0.721854
0.072289
0.031325
0.038554
0
0
0
0
0
0
0
0.011305
0.242802
1,285
46
75
27.934783
0.841727
0.493385
0
0
0
0
0.211356
0
0
0
0
0
0
1
0
false
0
0.043478
0
0.043478
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
f77db8b6066d045b501403f79c57e6ba8e7db030
6,432
py
Python
src/gui/view_menu/layer_list.py
jeremiahws/DLAE
5005d1c275279cc283c59f226732f073cf340a52
[ "Apache-2.0" ]
2
2021-05-25T12:23:23.000Z
2021-06-20T11:40:40.000Z
src/gui/view_menu/layer_list.py
jeremiahws/DLAE
5005d1c275279cc283c59f226732f073cf340a52
[ "Apache-2.0" ]
null
null
null
src/gui/view_menu/layer_list.py
jeremiahws/DLAE
5005d1c275279cc283c59f226732f073cf340a52
[ "Apache-2.0" ]
4
2019-10-16T07:52:41.000Z
2021-11-20T17:28:25.000Z
# Copyright 2019 Jeremiah Sanders. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
50.25
211
0.704291
1,029
6,432
4.168124
0.156463
0.100256
0.109116
0.145488
0.641641
0.591979
0.562136
0.538121
0.458848
0.357892
0
0.014162
0.176617
6,432
127
212
50.645669
0.795695
0.091418
0
0.258427
0
0
0.038277
0
0
0
0
0
0
1
0.134831
false
0.011236
0.011236
0
0.157303
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
f77e315e6c8b0a904e3ca8fb92860fcdc824f09d
977
py
Python
preprocessing.py
Prakhar-Bhartiya/SentimentAnalysis
8fa2664a57b01e7303ef26d1226a81c0e25be4b7
[ "MIT" ]
null
null
null
preprocessing.py
Prakhar-Bhartiya/SentimentAnalysis
8fa2664a57b01e7303ef26d1226a81c0e25be4b7
[ "MIT" ]
null
null
null
preprocessing.py
Prakhar-Bhartiya/SentimentAnalysis
8fa2664a57b01e7303ef26d1226a81c0e25be4b7
[ "MIT" ]
null
null
null
""" DATA DESCRIPTION sentiment140 dataset. It contains 1,600,000 tweets extracted using the twitter api . The tweets have been annotated (0 = negative, 4 = positive) and they can be used to detect sentiment . It contains the following 6 fields: target: the polarity of the tweet (0 = negative, 2 = neutral, 4 = positi...
32.566667
187
0.721597
158
977
4.443038
0.632911
0.02849
0.05698
0
0
0
0
0
0
0
0
0.058323
0.157625
977
29
188
33.689655
0.794654
0.653019
0
0
0
0
0.301829
0.125
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f77f2fcfbb893554c9dac95eda0dc9991fd25b40
1,803
py
Python
indico/modules/events/static/controllers.py
tobiashuste/indico
c1e6ec0c8c84745988e38c9b1768142a6feb9e0e
[ "MIT" ]
null
null
null
indico/modules/events/static/controllers.py
tobiashuste/indico
c1e6ec0c8c84745988e38c9b1768142a6feb9e0e
[ "MIT" ]
null
null
null
indico/modules/events/static/controllers.py
tobiashuste/indico
c1e6ec0c8c84745988e38c9b1768142a6feb9e0e
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import unicode_literals from flask import redirect, request, session from werkzeug.except...
31.631579
104
0.742651
225
1,803
5.782222
0.462222
0.069178
0.053805
0.070715
0.066872
0
0
0
0
0
0
0.005376
0.174709
1,803
56
105
32.196429
0.868952
0.110926
0
0.083333
0
0
0.02005
0
0
0
0
0
0
1
0.111111
false
0.027778
0.25
0
0.611111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7809285eb96f9645d677756834951e018513264
7,612
py
Python
test_autolens/simulators/imaging/instrument_util.py
agarwalutkarsh554/PyAutoLens
72d2f5c39834446e72879fd119b591e52b36cac4
[ "MIT" ]
null
null
null
test_autolens/simulators/imaging/instrument_util.py
agarwalutkarsh554/PyAutoLens
72d2f5c39834446e72879fd119b591e52b36cac4
[ "MIT" ]
null
null
null
test_autolens/simulators/imaging/instrument_util.py
agarwalutkarsh554/PyAutoLens
72d2f5c39834446e72879fd119b591e52b36cac4
[ "MIT" ]
null
null
null
from os import path import autolens as al import autolens.plot as aplt from test_autogalaxy.simulators.imaging import instrument_util test_path = path.join("{}".format(path.dirname(path.realpath(__file__))), "..", "..") def pixel_scale_from_instrument(instrument): """ Returns the pixel scale from...
33.982143
110
0.633605
935
7,612
5.002139
0.167914
0.051315
0.054736
0.032499
0.707077
0.629677
0.591619
0.534958
0.516357
0.516357
0
0.028617
0.265502
7,612
223
111
34.134529
0.807906
0.210194
0
0.506944
0
0
0.06023
0
0
0
0
0
0
1
0.041667
false
0
0.027778
0
0.215278
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
f782e665db7375deff9d1e85d757a68033315dd2
1,727
py
Python
ca_bc_abbotsford/people.py
djac/scrapers-ca
2e16a85ff8a05ea49031a11ede66fa452631f8da
[ "MIT" ]
null
null
null
ca_bc_abbotsford/people.py
djac/scrapers-ca
2e16a85ff8a05ea49031a11ede66fa452631f8da
[ "MIT" ]
null
null
null
ca_bc_abbotsford/people.py
djac/scrapers-ca
2e16a85ff8a05ea49031a11ede66fa452631f8da
[ "MIT" ]
null
null
null
from utils import CanadianScraper, CanadianPerson as Person COUNCIL_PAGE = 'http://www.abbotsford.ca/city_hall/mayor_and_council/city_council.htm' CONTACT_PAGE = 'http://www.abbotsford.ca/contact_us.htm' class AbbotsfordPersonScraper(CanadianScraper): def scrape(self): councillor_seat_number = 1 ...
43.175
130
0.609728
195
1,727
5.241026
0.415385
0.053816
0.058708
0.041096
0.099804
0
0
0
0
0
0
0.009281
0.251303
1,727
39
131
44.282051
0.781129
0
0
0
0
0.03125
0.225825
0.057904
0
0
0
0
0.0625
1
0.03125
false
0
0.03125
0
0.09375
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
f783bb5a51fe8b1b4c8ff1d1556d8997b3dd57bd
944
py
Python
numsgraph.py
FNut/PyDev
f591aa6ace1b9032e4a9159c03478571c75a38b1
[ "MIT" ]
2
2021-01-21T12:54:50.000Z
2021-12-26T13:45:19.000Z
numsgraph.py
FNut/PyDev
f591aa6ace1b9032e4a9159c03478571c75a38b1
[ "MIT" ]
12
2021-01-21T14:12:02.000Z
2021-02-07T06:12:44.000Z
numsgraph.py
FNut/PyDev
f591aa6ace1b9032e4a9159c03478571c75a38b1
[ "MIT" ]
null
null
null
import pygame import math pygame.init() pi = ('Pi = ' + str(math.pi)) e = ('E = ' + str(math.e)) f = ('F = 0,1,1,2,3,5,8,13...') p = ('P = 1,2,5,12,29...') l = ('L = 2,1,3,4,7,11,18,29...') pl = ('P-L = 2,6,14,34,82...') display = pygame.display.set_mode((800,600)) pygame.display.set_caption('Nums') font = p...
29.5
45
0.559322
169
944
3.112426
0.384615
0.026616
0.057034
0.068441
0
0
0
0
0
0
0
0.1313
0.201271
944
31
46
30.451613
0.566313
0
0
0
0
0
0.11391
0.023001
0
0
0
0
0
1
0
false
0
0.064516
0
0.064516
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
f783f229f95c2d9280dddc95def69a100dcd1954
5,980
py
Python
scoap3/modules/tools/tasks.py
Lilykos/scoap3-next
b779b8c32504e09b2c5330aa6a18e1e1c9affd33
[ "CC-BY-4.0" ]
1
2021-08-04T09:48:38.000Z
2021-08-04T09:48:38.000Z
scoap3/modules/tools/tasks.py
Lilykos/scoap3-next
b779b8c32504e09b2c5330aa6a18e1e1c9affd33
[ "CC-BY-4.0" ]
158
2018-09-10T07:31:14.000Z
2022-03-30T07:18:51.000Z
scoap3/modules/tools/tasks.py
Lilykos/scoap3-next
b779b8c32504e09b2c5330aa6a18e1e1c9affd33
[ "CC-BY-4.0" ]
9
2015-04-28T11:55:04.000Z
2021-09-28T12:14:53.000Z
import io import csv import logging from StringIO import StringIO from datetime import datetime from gzip import GzipFile import boto3 from celery import shared_task from flask import current_app from flask_mail import Attachment from invenio_mail.api import TemplatedMessage logger = logging.getLogger(__name__) def...
37.610063
112
0.678595
787
5,980
4.989835
0.268107
0.050929
0.028521
0.033868
0.270945
0.230201
0.197606
0.15508
0.147186
0.147186
0
0.00342
0.217726
5,980
158
113
37.848101
0.836041
0.343144
0
0.128205
0
0
0.20154
0.022039
0
0
0
0
0
1
0.064103
false
0
0.141026
0
0.269231
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
f78676da21ba7106ed5e99f74d32df70174e47d8
756
py
Python
telegram_bot/handlers/commands/detailed_mode.py
ProgrammingLanguageLeader/MathematicianBot
a4627962a6c8bfac76013d80780997ab4b0f7952
[ "MIT" ]
null
null
null
telegram_bot/handlers/commands/detailed_mode.py
ProgrammingLanguageLeader/MathematicianBot
a4627962a6c8bfac76013d80780997ab4b0f7952
[ "MIT" ]
16
2018-03-05T14:25:16.000Z
2022-03-11T23:46:56.000Z
telegram_bot/handlers/commands/detailed_mode.py
ProgrammingLanguageLeader/MathematicianBot
a4627962a6c8bfac76013d80780997ab4b0f7952
[ "MIT" ]
null
null
null
from system.db import db from telegram_bot.handlers.utils.decorators import remember_new_user, \ send_typing, write_logs from telegram_bot.handlers.utils.menu_entries import MenuEntry from telegram_bot.handlers.utils.reply_markup import create_main_reply_markup from telegram_bot.models import User @write_logs @se...
30.24
77
0.756614
106
756
5.09434
0.443396
0.088889
0.111111
0.127778
0.155556
0
0
0
0
0
0
0
0.161376
756
24
78
31.5
0.851735
0
0
0
0
0
0.047619
0
0
0
0
0
0
1
0.045455
false
0
0.227273
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0