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
f24ac29d015f11200dad8879234dd7ab9c174313
2,003
py
Python
N50.py
kstatebioinfo/stanford_swc
daa3f37bcbbe4a8a3cbe59a48b380603b9794634
[ "CC0-1.0" ]
null
null
null
N50.py
kstatebioinfo/stanford_swc
daa3f37bcbbe4a8a3cbe59a48b380603b9794634
[ "CC0-1.0" ]
null
null
null
N50.py
kstatebioinfo/stanford_swc
daa3f37bcbbe4a8a3cbe59a48b380603b9794634
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 ########################################################################## # USAGE: import N50 # help(N50) # N50.main(~/stanford_swc/fasta-o-matic/fasta/normal.fa) # DESCRIPTION: Function that calculates N50 for a FASTA file # Created by Jennifer M Shelton ################################...
34.534483
74
0.495756
211
2,003
4.601896
0.454976
0.025747
0.032956
0.035015
0.053553
0.053553
0
0
0
0
0
0.027721
0.261608
2,003
57
75
35.140351
0.628803
0.324513
0
0.2
0
0
0.013598
0
0
0
0
0
0
1
0.057143
false
0
0.057143
0
0.114286
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f24b0ee4bbb24e050ab403a0d1e6bf087f8143ee
34,017
py
Python
ColDoc/latex.py
mennucc/ColDoc_project
947a79592b689f57e59652b37868cc22e520f724
[ "BSD-3-Clause" ]
null
null
null
ColDoc/latex.py
mennucc/ColDoc_project
947a79592b689f57e59652b37868cc22e520f724
[ "BSD-3-Clause" ]
null
null
null
ColDoc/latex.py
mennucc/ColDoc_project
947a79592b689f57e59652b37868cc22e520f724
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 __all__ = ('main_by_args','latex_main','latex_uuid','latex_tree') cmd_help=""" Command help: blob compile the blob(s) with --uuid=UUID, tree compile all the blobs starting from --uuid=UUID main_public compile the whole document, for the general public ...
39.010321
135
0.587559
4,420
34,017
4.350226
0.118552
0.037861
0.020595
0.01165
0.402798
0.3342
0.29041
0.257437
0.213647
0.192532
0
0.003825
0.28524
34,017
871
136
39.055109
0.786995
0.07752
0
0.298422
0
0.002869
0.164914
0.016864
0
0
0
0.002296
0.012912
1
0.021521
false
0
0.021521
0
0.077475
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
f24c7bebfc50062402e4f3d020937fffe8042def
1,945
py
Python
kivyx/uix/aspectratio.py
gottadiveintopython/kivyx.uix.aspectratio
e8b049fe76c9350b8c167ff1fb32299b8feceba7
[ "MIT" ]
null
null
null
kivyx/uix/aspectratio.py
gottadiveintopython/kivyx.uix.aspectratio
e8b049fe76c9350b8c167ff1fb32299b8feceba7
[ "MIT" ]
null
null
null
kivyx/uix/aspectratio.py
gottadiveintopython/kivyx.uix.aspectratio
e8b049fe76c9350b8c167ff1fb32299b8feceba7
[ "MIT" ]
null
null
null
__all__ = ('KXAspectRatio', ) from kivy.uix.layout import Layout from kivy.properties import BoundedNumericProperty, OptionProperty HALIGN_TO_ATTR = { 'center': 'center_x', 'middle': 'center_x', 'left': 'x', 'right': 'right', } VALIGN_TO_ATTR = { 'center': 'center_y', 'middle': 'center_y', ...
29.469697
68
0.5491
239
1,945
4.251046
0.267782
0.086614
0.059055
0.038386
0.226378
0.122047
0.122047
0.122047
0.064961
0
0
0.006047
0.319794
1,945
65
69
29.923077
0.761905
0
0
0.107143
0
0
0.096708
0
0
0
0
0
0
1
0.053571
false
0
0.035714
0
0.196429
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
f24e4b499348b1e6839320b71759fce8e46d5cc8
4,006
py
Python
src/analyze_img.py
IW276/IW276SS21-P13
851e220c34d55caa91f0967e02dc86c34deee2fa
[ "MIT" ]
null
null
null
src/analyze_img.py
IW276/IW276SS21-P13
851e220c34d55caa91f0967e02dc86c34deee2fa
[ "MIT" ]
null
null
null
src/analyze_img.py
IW276/IW276SS21-P13
851e220c34d55caa91f0967e02dc86c34deee2fa
[ "MIT" ]
null
null
null
import cv2 import numpy as np from matplotlib import pyplot as plt brightness = {"DARK": 0, "NORMAL": 1, "LIGHT": 2} contrast = {"HIGH": 2, "NORMAL": 1, "LOW": 0} class ImageSetup: def __init__(self): self.brightness = None self.contrast = None...
30.120301
92
0.595856
488
4,006
4.778689
0.213115
0.108062
0.051458
0.041166
0.126501
0.045455
0
0
0
0
0
0.02982
0.28008
4,006
132
93
30.348485
0.778779
0.030205
0
0.066667
0
0
0.057231
0
0
0
0
0
0
1
0.12381
false
0
0.028571
0
0.219048
0.104762
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2503cce75279fee15a3fc46cd4a46df58314fef
3,799
py
Python
models/game/bots/RandoMaxBot.py
zachdj/ultimate-tic-tac-toe
b8e6128d9d19628f6f889a3958d30854527a8645
[ "MIT" ]
null
null
null
models/game/bots/RandoMaxBot.py
zachdj/ultimate-tic-tac-toe
b8e6128d9d19628f6f889a3958d30854527a8645
[ "MIT" ]
null
null
null
models/game/bots/RandoMaxBot.py
zachdj/ultimate-tic-tac-toe
b8e6128d9d19628f6f889a3958d30854527a8645
[ "MIT" ]
null
null
null
import random from models.game.bots.Bot import Bot from models.game.Board import Board class RandoMaxBot(Bot): """ Semi-random bot This is a minimax bot that scores moves randomly unless the end of the game is seen within a 2-ply lookahead """ def __init__(self, number, name=None): if name is...
36.528846
120
0.589102
498
3,799
4.351406
0.230924
0.046147
0.035994
0.040609
0.522381
0.522381
0.522381
0.49377
0.460545
0.460545
0
0.016594
0.333772
3,799
103
121
36.883495
0.839589
0.225059
0
0.591549
0
0
0.01153
0
0
0
0
0
0
1
0.084507
false
0.014085
0.042254
0.014085
0.366197
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
f25ce39acdbb3d945528b6cb2be68ac5895f77bb
1,241
py
Python
backend/server.py
mugeshk97/billing-api
3bf6899f62bee6db7870c3b6008a10c887eb3aa3
[ "MIT" ]
null
null
null
backend/server.py
mugeshk97/billing-api
3bf6899f62bee6db7870c3b6008a10c887eb3aa3
[ "MIT" ]
null
null
null
backend/server.py
mugeshk97/billing-api
3bf6899f62bee6db7870c3b6008a10c887eb3aa3
[ "MIT" ]
null
null
null
from flask import Flask, request, jsonify from connection import get_sql_connection from product import get_all_products, insert_product, delete_product import json from flask_cors import CORS app = Flask(__name__) CORS(app) cnx = get_sql_connection() @app.route('/getProducts', methods=['GET']) def get_products(): ...
29.547619
68
0.709106
157
1,241
5.343949
0.312102
0.064362
0.064362
0.085816
0.31466
0.31466
0.31466
0.224076
0.224076
0.224076
0
0.007612
0.153102
1,241
42
69
29.547619
0.790676
0
0
0.228571
0
0
0.1562
0.065217
0
0
0
0
0
1
0.085714
false
0
0.142857
0
0.314286
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f25fca280607b95bdb378b87fdab5966ef3e46d2
555
py
Python
api/restaurant_helper_functions.py
daniellespencer/stfu-and-eat
cb82b364ba226dd61f11547720a20a132c1562f6
[ "MIT" ]
1
2020-05-15T01:36:59.000Z
2020-05-15T01:36:59.000Z
api/restaurant_helper_functions.py
daniellespencer/stfu-and-eat
cb82b364ba226dd61f11547720a20a132c1562f6
[ "MIT" ]
null
null
null
api/restaurant_helper_functions.py
daniellespencer/stfu-and-eat
cb82b364ba226dd61f11547720a20a132c1562f6
[ "MIT" ]
2
2020-05-15T01:31:37.000Z
2020-05-20T00:04:41.000Z
import random from api.config import restaurant_collection as restaurants def organize_restaurant_output(): output = [] for q in restaurants.find(): output.append({ "id" : str(q['_id']), 'name' : q['name'], 'neighborhood' : q['neighborhood'], 'cuisine' :...
26.428571
59
0.567568
58
555
5.327586
0.551724
0.07767
0
0
0
0
0
0
0
0
0
0.005089
0.291892
555
21
60
26.428571
0.78117
0
0
0
0
0
0.142086
0
0
0
0
0
0
1
0.117647
false
0
0.117647
0
0.352941
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
f2647ec6e2d3b985a5cc52948c24f37ae5751457
3,973
py
Python
stimuli.py
lieke2020/workmate_match
803f4e3b1fa62280cc0d6a7cd61eb80929dae918
[ "MIT" ]
null
null
null
stimuli.py
lieke2020/workmate_match
803f4e3b1fa62280cc0d6a7cd61eb80929dae918
[ "MIT" ]
null
null
null
stimuli.py
lieke2020/workmate_match
803f4e3b1fa62280cc0d6a7cd61eb80929dae918
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Dec 1 13:21:44 2021 This file holds the stimuli that are used in the world to represent cues. obs_time --> Stimulus representing time match_cifar --> Natural scenes for phase 1 learning obs_cifar --> Natural scenes for phase 2 learning match_alp...
37.838095
100
0.683614
620
3,973
4.327419
0.377419
0.023854
0.013418
0.025345
0.115542
0.022363
0
0
0
0
0
0.031409
0.206645
3,973
104
101
38.201923
0.819797
0.532343
0
0
0
0
0.02426
0.01716
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2684fd08fdc8ebf74875458af9886f1554c5e7c
1,040
py
Python
meilisearch/tests/test_synonyms_meilisearch.py
jtmiclat/meilisearch-python
b6a48a62bb64ae58181550a0ddc793dcdc0a2b06
[ "MIT" ]
null
null
null
meilisearch/tests/test_synonyms_meilisearch.py
jtmiclat/meilisearch-python
b6a48a62bb64ae58181550a0ddc793dcdc0a2b06
[ "MIT" ]
null
null
null
meilisearch/tests/test_synonyms_meilisearch.py
jtmiclat/meilisearch-python
b6a48a62bb64ae58181550a0ddc793dcdc0a2b06
[ "MIT" ]
null
null
null
import time import meilisearch from meilisearch.tests import BASE_URL, MASTER_KEY class TestSynonyms: client = meilisearch.Client(BASE_URL, MASTER_KEY) index = None new_synonyms = { 'hp': ['harry potter'] } default_synonyms = {} def setup_class(self): self.index = self.client.c...
28.888889
64
0.674038
120
1,040
5.658333
0.333333
0.079529
0.100147
0.106038
0.430044
0.326951
0.182622
0.182622
0.182622
0
0
0.001259
0.236538
1,040
35
65
29.714286
0.853904
0
0
0.241379
0
0
0.036538
0
0
0
0
0
0.241379
1
0.172414
false
0
0.103448
0
0.448276
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
f26f15c108eabe8ae9328cc4ea34ff13c08d0947
950
py
Python
main.py
AbhigyanRanjan0505/dvigyuoixfhybiocthgnkfi
db1b5198f1a0902aff21c74c58578dcb1feda39d
[ "MIT" ]
null
null
null
main.py
AbhigyanRanjan0505/dvigyuoixfhybiocthgnkfi
db1b5198f1a0902aff21c74c58578dcb1feda39d
[ "MIT" ]
null
null
null
main.py
AbhigyanRanjan0505/dvigyuoixfhybiocthgnkfi
db1b5198f1a0902aff21c74c58578dcb1feda39d
[ "MIT" ]
null
null
null
import plotly.figure_factory as figure_factory import statistics import random import pandas df = pandas.read_csv("data.csv") data = df["reading_time"].tolist() population_mean = statistics.mean(data) print("Population mean :", population_mean) def show_fig(mean_list): df = mean_list fig = fig...
22.093023
52
0.648421
126
950
4.650794
0.365079
0.081911
0.09215
0.051195
0.040956
0
0
0
0
0
0
0.011127
0.243158
950
42
53
22.619048
0.803894
0
0
0
0
0
0.070485
0
0
0
0
0
0
1
0.1
false
0
0.133333
0
0.266667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2738d7e2edb6f5a98849ea7773345dc1a404833
1,409
py
Python
hseling_lib_diachrony_webvectors/hseling_lib_diachrony_webvectors/strings_reader.py
wadimiusz/hseling-repo-diachrony-webvectors
5488d74141df360a6a721637ae7c7577136172d7
[ "MIT" ]
null
null
null
hseling_lib_diachrony_webvectors/hseling_lib_diachrony_webvectors/strings_reader.py
wadimiusz/hseling-repo-diachrony-webvectors
5488d74141df360a6a721637ae7c7577136172d7
[ "MIT" ]
null
null
null
hseling_lib_diachrony_webvectors/hseling_lib_diachrony_webvectors/strings_reader.py
wadimiusz/hseling-repo-diachrony-webvectors
5488d74141df360a6a721637ae7c7577136172d7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding:utf8 """ this module reads strings.csv, which contains all the strings, and lets the main app use it """ import sys import csv import os from flask import Markup import configparser config = configparser.RawConfigParser() path = '../hseling_api_diachrony_webvectors/hseling_api_diachron...
32.022727
104
0.721079
187
1,409
5.315508
0.524064
0.065392
0.038229
0.05835
0.124748
0.06841
0.06841
0.06841
0.06841
0
0
0.010815
0.146913
1,409
43
105
32.767442
0.81614
0.220724
0
0
0
0
0.239852
0.140221
0
0
0
0
0.038462
1
0
false
0
0.192308
0
0.192308
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
f274273a939d4c8377fbaeb7efafd00e9604432e
1,077
py
Python
day 5&6/linked list.py
yogeshkhola/100daysofDSA
93f0d30d718795e4e3eb5d8e677b87baebd0df7c
[ "MIT" ]
3
2021-03-01T17:04:33.000Z
2021-03-01T17:44:23.000Z
day 5&6/linked list.py
yogeshkhola/100daysofDSA
93f0d30d718795e4e3eb5d8e677b87baebd0df7c
[ "MIT" ]
null
null
null
day 5&6/linked list.py
yogeshkhola/100daysofDSA
93f0d30d718795e4e3eb5d8e677b87baebd0df7c
[ "MIT" ]
null
null
null
class node: def __init__(self,data): self.data=data self.next=None class LinkedList: def __init__(self): self.start=None #(self/head) def viewList(self):#this function print the whole list if self.start==None: print("list is empty") else: temp...
21.54
58
0.571959
126
1,077
4.825397
0.285714
0.148026
0.085526
0.074013
0.215461
0.149671
0.092105
0
0
0
0
0.013587
0.31662
1,077
50
59
21.54
0.8125
0.056639
0
0.282051
0
0
0.033531
0
0
0
0
0
0
1
0.128205
false
0
0
0
0.179487
0.102564
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2765c1d1962f66a204431e4dc547e6e1d4a52be
40,603
py
Python
detex/getdata.py
d-chambers/Detex
46602eb8e05e080a23111c8f2716065a016613c2
[ "BSD-3-Clause" ]
39
2015-08-15T20:10:14.000Z
2022-03-17T00:41:57.000Z
detex/getdata.py
d-chambers/Detex
46602eb8e05e080a23111c8f2716065a016613c2
[ "BSD-3-Clause" ]
39
2015-09-28T23:50:59.000Z
2019-07-16T20:38:31.000Z
detex/getdata.py
d-chambers/Detex
46602eb8e05e080a23111c8f2716065a016613c2
[ "BSD-3-Clause" ]
8
2015-10-08T20:43:40.000Z
2020-08-05T22:47:45.000Z
# -*- coding: utf-8 -*- """ Created on Thu Nov 10 20:21:46 2015 @author: derrick """ from __future__ import print_function, absolute_import, unicode_literals, division import glob import itertools import json import os import random import numpy as np import obspy import pandas as pd from six import string_types im...
38.929051
102
0.582174
4,924
40,603
4.749594
0.152924
0.010604
0.015906
0.019883
0.263565
0.213537
0.177107
0.159661
0.13127
0.09672
0
0.009421
0.325493
40,603
1,042
103
38.966411
0.844525
0.292146
0
0.280788
0
0
0.078739
0
0
0
0
0
0
1
0.045977
false
0.001642
0.022989
0
0.131363
0.001642
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2766a9a2df58d6c9fe0fc41dab441157d2a7a7d
4,850
py
Python
HouseHunter/core.py
JGBMichalski/House-Hunter
7ad1e866907545b8e2302c1a775cadbd8f807ad9
[ "MIT" ]
null
null
null
HouseHunter/core.py
JGBMichalski/House-Hunter
7ad1e866907545b8e2302c1a775cadbd8f807ad9
[ "MIT" ]
null
null
null
HouseHunter/core.py
JGBMichalski/House-Hunter
7ad1e866907545b8e2302c1a775cadbd8f807ad9
[ "MIT" ]
null
null
null
from tarfile import SUPPORTED_TYPES import requests import re from bs4 import BeautifulSoup import json import HouseHunter.globals as Globals from HouseHunter.ad import * from pathlib import Path class Core(): def __init__(self, filename="ads.json"): self.filepath = Path().absolute().joinpath(filename) if...
34.15493
142
0.583711
639
4,850
4.283255
0.250391
0.04019
0.018268
0.021922
0.299963
0.267081
0.194008
0.174278
0.174278
0.174278
0
0.003361
0.325155
4,850
141
143
34.397163
0.832875
0.185979
0
0.168539
0
0
0.028775
0
0
0
0
0
0
1
0.101124
false
0
0.089888
0.011236
0.325843
0.011236
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f27acd0b94f784d85a24a1358e2c015c3198e304
4,138
py
Python
keras_med_io/utils/intensity_io.py
jchen42703/keras_med_io
2113de64a448c90b66993d6ed4fdbba7971f3417
[ "MIT" ]
null
null
null
keras_med_io/utils/intensity_io.py
jchen42703/keras_med_io
2113de64a448c90b66993d6ed4fdbba7971f3417
[ "MIT" ]
6
2019-03-24T02:39:43.000Z
2019-04-10T01:15:14.000Z
keras_med_io/utils/intensity_io.py
jchen42703/keras_med_io
2113de64a448c90b66993d6ed4fdbba7971f3417
[ "MIT" ]
null
null
null
# coding: utf-8 # funcions for quick testing import numpy as np # helper functions def normalization(arr, normalize_mode, norm_range = [0,1]): """ Helper function: Normalizes the image based on the specified mode and range Args: arr: numpy array normalize_mode: either "whiten", "normalize_cl...
39.037736
121
0.656597
557
4,138
4.764811
0.321364
0.047476
0.027129
0.025622
0.283723
0.229842
0.214017
0.186134
0.165034
0.125094
0
0.016703
0.233204
4,138
105
122
39.409524
0.819729
0.556307
0
0.060606
0
0
0.036923
0
0
0
0
0
0
1
0.151515
false
0
0.030303
0
0.424242
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
f27c23356c06fcdc25ca581c0cf5398df4251dbf
8,654
py
Python
source/notebooks/sagemaker_predictive_maintenance/autoencoder_entry_point/autoencoder_entry_point.py
brightsparc/predictive-maintenance-using-machine-learning
fae69698750185bb58a3fa67ff8887f435f46458
[ "Apache-2.0" ]
null
null
null
source/notebooks/sagemaker_predictive_maintenance/autoencoder_entry_point/autoencoder_entry_point.py
brightsparc/predictive-maintenance-using-machine-learning
fae69698750185bb58a3fa67ff8887f435f46458
[ "Apache-2.0" ]
null
null
null
source/notebooks/sagemaker_predictive_maintenance/autoencoder_entry_point/autoencoder_entry_point.py
brightsparc/predictive-maintenance-using-machine-learning
fae69698750185bb58a3fa67ff8887f435f46458
[ "Apache-2.0" ]
null
null
null
# Autoencoder based on: https://towardsdatascience.com/predictive-maintenance-of-turbofan-engine-64911e39c367 import argparse import pandas as pd import numpy as np import itertools import logging import random import os from scipy.spatial.distance import pdist, squareform from sklearn.metrics import confusion_matrix...
39.336364
159
0.686388
1,281
8,654
4.417642
0.234192
0.022265
0.027037
0.008835
0.238381
0.188373
0.171055
0.155151
0.131825
0.06821
0
0.026646
0.180379
8,654
220
160
39.336364
0.771183
0.152993
0
0.068027
0
0
0.084851
0.003311
0
0
0
0
0
1
0.061224
false
0
0.108844
0
0.22449
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
f27c2659a6f08c68bf5a68b6f0434f1302972e63
437
py
Python
util/dump_cmudict_json.py
raygard/readability-rg
3e0820ee5def6ffccfdc1114e511bdf137ff9b04
[ "MIT" ]
null
null
null
util/dump_cmudict_json.py
raygard/readability-rg
3e0820ee5def6ffccfdc1114e511bdf137ff9b04
[ "MIT" ]
null
null
null
util/dump_cmudict_json.py
raygard/readability-rg
3e0820ee5def6ffccfdc1114e511bdf137ff9b04
[ "MIT" ]
null
null
null
#! /usr/bin/env python # vim: set fileencoding=utf-8 import sys import json def main(): args = sys.argv[1:] fn = args[0] with open(fn) as fp: d = json.load(fp) # Using sorted() to get same results in Python 2 and 3. for k, v in sorted(d.items()): assert isinstance(v, list) ...
19.863636
62
0.533181
73
437
3.191781
0.671233
0.017167
0
0
0
0
0
0
0
0
0
0.029605
0.304348
437
21
63
20.809524
0.736842
0.263158
0
0
0
0
0.034591
0
0
0
0
0
0.166667
1
0.083333
false
0
0.166667
0
0.25
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f27e5faf956aa7b884e2d5afa37ca81bb25dcb92
1,328
py
Python
src/EvalShift.py
nekonyanneko/GA
328f37c421a8bd4857a0804b130c23bd7b98de19
[ "MIT" ]
null
null
null
src/EvalShift.py
nekonyanneko/GA
328f37c421a8bd4857a0804b130c23bd7b98de19
[ "MIT" ]
null
null
null
src/EvalShift.py
nekonyanneko/GA
328f37c421a8bd4857a0804b130c23bd7b98de19
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import Shift as shi import Enum as enu def evalShift(individual): """ This method is grobal method. This method is evaluation. If you need new evaluation method, you must define it as follows. RETURN: evaluation values """ shift = shi.Shift(individual) # Get indiviaual of ...
24.145455
83
0.652108
183
1,328
4.398907
0.404372
0.121739
0.040994
0.052174
0
0
0
0
0
0
0
0.019192
0.254518
1,328
54
84
24.592593
0.793939
0.267319
0
0
0
0
0
0
0
0
0
0
0
1
0.034483
false
0
0.068966
0
0.137931
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
f280852bfea33f9eda7c3cbe87f494f3dbe4c0a3
238
py
Python
Bot.py
pythonNoobas/Python228
7c266acad5bb5ae45df10ac3fdea209831399729
[ "MIT" ]
null
null
null
Bot.py
pythonNoobas/Python228
7c266acad5bb5ae45df10ac3fdea209831399729
[ "MIT" ]
null
null
null
Bot.py
pythonNoobas/Python228
7c266acad5bb5ae45df10ac3fdea209831399729
[ "MIT" ]
null
null
null
import telebot bot = telebot.TeleBot("879497357:AAHxUAZR2ZMy7q1dsC12NoFOmvBnKo9a3FA") @bot.message_handler(content_types=['text']) def echo_all(message): bot.send_message(message.chat.id, message.text) bot.polling( none_stop = True )
23.8
70
0.794118
30
238
6.133333
0.666667
0
0
0
0
0
0
0
0
0
0
0.073059
0.079832
238
10
71
23.8
0.767123
0
0
0
0
0
0.205021
0.188285
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2808bb95000137789190b399e2a920a24f1f97a
2,980
py
Python
generator/address.py
leg020/python-training
f595b8b836ff60c68bdff9d881ca50c026762457
[ "Apache-2.0" ]
null
null
null
generator/address.py
leg020/python-training
f595b8b836ff60c68bdff9d881ca50c026762457
[ "Apache-2.0" ]
null
null
null
generator/address.py
leg020/python-training
f595b8b836ff60c68bdff9d881ca50c026762457
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from model.address import Address import random import string import os.path import json import getopt import sys import jsonpickle try: opts, args = getopt.getopt(sys.argv[1:], 'n:f:', ['number of address', 'file']) except getopt.GetoptError as err: getopt.usage() sys.exit(2) n ...
33.483146
94
0.451342
283
2,980
4.64311
0.353357
0.191781
0.128615
0.148402
0.031963
0
0
0
0
0
0
0.041903
0.407383
2,980
89
95
33.483146
0.702152
0.007047
0
0
0
0
0.055105
0.007776
0
0
0
0
0
1
0.012821
false
0
0.102564
0
0.128205
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
f283d91585cbb97de4ca77780a488265da69f263
613
py
Python
scripts/test.py
darkmatter2222/Agar.AI
a757544581239a7b4c2b00bb7befa9b649d73f7f
[ "MIT" ]
1
2020-01-02T13:49:51.000Z
2020-01-02T13:49:51.000Z
scripts/test.py
darkmatter2222/Agar.AI
a757544581239a7b4c2b00bb7befa9b649d73f7f
[ "MIT" ]
null
null
null
scripts/test.py
darkmatter2222/Agar.AI
a757544581239a7b4c2b00bb7befa9b649d73f7f
[ "MIT" ]
1
2020-01-24T19:17:38.000Z
2020-01-24T19:17:38.000Z
import scripts.screen_interface as si import scripts.game_interface as gi import ctypes import os import keyboard import uuid GI = gi.GameInterface() # find center of screen user32 = ctypes.windll.user32 screenSize = user32.GetSystemMetrics(0), user32.GetSystemMetrics(1) centerPoint = tuple(i/2 for i in screenSize) p...
25.541667
67
0.761827
91
613
5.054945
0.483516
0.056522
0.073913
0.017391
0
0
0
0
0
0
0
0.028195
0.132137
613
24
68
25.541667
0.836466
0.034258
0
0.1
0
0
0.079526
0
0
0
0
0
0
1
0
false
0
0.3
0
0.3
0.15
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f284677f3d515ed6519b9b9782d95ab9e355ded5
4,052
py
Python
Controller/control/WorkerControl.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
null
null
null
Controller/control/WorkerControl.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
7
2020-07-19T03:29:21.000Z
2022-03-02T06:46:12.000Z
Controller/control/WorkerControl.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
null
null
null
import json import queue from control.WorkerQueue import WorkerQueue as WQ from data.StorageIO import StorageIO ''' The WorkerControl coordinates workers and assigns jobs. Worker register themself at startup. The controller queues workers as well as jobs in two seperate queues. As soon as a worker and a job are availa...
38.226415
112
0.607601
505
4,052
4.641584
0.261386
0.064846
0.075085
0.076792
0.255973
0.225683
0.145051
0.107509
0.074232
0.074232
0
0.001073
0.30997
4,052
105
113
38.590476
0.837268
0.034798
0
0.164557
0
0
0.096583
0
0
0
0
0
0
1
0.088608
false
0.012658
0.050633
0.012658
0.291139
0.113924
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f28467f33870630c6d980108ee2deecf6e265916
986
py
Python
spammer/groupdmspam.py
00-00-00-11/Raid-Toolbox
4d24841de5ef112dc15b858f62607e0d6b5277cd
[ "0BSD" ]
null
null
null
spammer/groupdmspam.py
00-00-00-11/Raid-Toolbox
4d24841de5ef112dc15b858f62607e0d6b5277cd
[ "0BSD" ]
null
null
null
spammer/groupdmspam.py
00-00-00-11/Raid-Toolbox
4d24841de5ef112dc15b858f62607e0d6b5277cd
[ "0BSD" ]
1
2021-05-15T11:32:24.000Z
2021-05-15T11:32:24.000Z
import discord import sys import random import aiohttp import logging token = sys.argv[1] group = sys.argv[2] tokenno = sys.argv[3] msgtxt = sys.argv[4] useproxies = sys.argv[5] logging.basicConfig(filename='RTB.log', filemode='w', format='Token {}'.format(str(tokenno))+' - %(levelname)s - %(message)s',le...
28.171429
150
0.649087
127
986
5
0.582677
0.055118
0.050394
0
0
0
0
0
0
0
0
0.006369
0.203854
986
34
151
29
0.802548
0
0
0.064516
0
0
0.10084
0
0
0
0
0
0
1
0
false
0.032258
0.16129
0
0.16129
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f28613b99f347cb3a0fc049c18db1898247d805e
522
py
Python
t2t_bert/distributed_encoder/gpt_encoder.py
yyht/bert
480c909e0835a455606e829310ff949c9dd23549
[ "Apache-2.0" ]
34
2018-12-19T01:00:57.000Z
2021-03-26T09:36:37.000Z
t2t_bert/distributed_encoder/gpt_encoder.py
yyht/bert
480c909e0835a455606e829310ff949c9dd23549
[ "Apache-2.0" ]
11
2018-12-25T03:37:59.000Z
2021-08-25T14:43:58.000Z
t2t_bert/distributed_encoder/gpt_encoder.py
yyht/bert
480c909e0835a455606e829310ff949c9dd23549
[ "Apache-2.0" ]
9
2018-12-27T08:00:44.000Z
2020-06-08T03:05:14.000Z
from model.gpt import gpt import tensorflow as tf import numpy as np def gpt_encoder(model_config, features, labels, mode, target, reuse=tf.AUTO_REUSE): input_ids = features["input_ids"] past = features.get('past', None) model = gpt.GPT(model_config) if model_config.get("scope", None): scope = model_config...
20.88
48
0.695402
75
522
4.68
0.4
0.188034
0.068376
0
0
0
0
0
0
0
0
0
0.189655
522
24
49
21.75
0.829787
0
0
0
0
0
0.06334
0
0
0
0
0
0
1
0.052632
false
0
0.157895
0
0.263158
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
f28ae939117634bfbb4da17376ebc5f47320b58f
879
py
Python
quick_sort.py
MichaelLenghel/Sorting-Algorithms
b0aba03a7e5d95b4ca4038e8b53a9d544adeefb1
[ "MIT" ]
null
null
null
quick_sort.py
MichaelLenghel/Sorting-Algorithms
b0aba03a7e5d95b4ca4038e8b53a9d544adeefb1
[ "MIT" ]
null
null
null
quick_sort.py
MichaelLenghel/Sorting-Algorithms
b0aba03a7e5d95b4ca4038e8b53a9d544adeefb1
[ "MIT" ]
null
null
null
def partition(a, start, end): pivot = a[start] left = start + 1 right = end met = False # Iterate until i reaches j in the middle while not met: while left <= right and a[left] <= pivot: left = left + 1 while right >= left and a[right] >= pivot: right = right - 1 ...
22.538462
49
0.531286
143
879
3.181818
0.447552
0.065934
0.061538
0.052747
0.057143
0
0
0
0
0
0
0.06689
0.319681
879
39
50
22.538462
0.69398
0.134243
0
0
0
0
0.05
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.115385
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f28b677805cf2bdfc02ec0d719ce0fad31f82786
5,787
py
Python
astacus/coordinator/plugins/clickhouse/parts.py
aiven/astacus
2d64e1f33e01d50a41127f41d9da3d1ab0ce0387
[ "Apache-2.0" ]
19
2020-06-22T12:17:59.000Z
2022-02-18T00:12:17.000Z
astacus/coordinator/plugins/clickhouse/parts.py
aiven/astacus
2d64e1f33e01d50a41127f41d9da3d1ab0ce0387
[ "Apache-2.0" ]
7
2020-06-24T05:16:20.000Z
2022-02-28T07:35:31.000Z
astacus/coordinator/plugins/clickhouse/parts.py
aiven/astacus
2d64e1f33e01d50a41127f41d9da3d1ab0ce0387
[ "Apache-2.0" ]
2
2020-09-05T21:23:08.000Z
2022-02-17T15:02:37.000Z
""" Copyright (c) 2021 Aiven Ltd See LICENSE for details Algorithms to help with redistributing parts across servers for tables using the Replicated family of table engines. This does not support shards, but this is the right place to add support for them. """ from astacus.common.ipc import SnapshotFile from astacus....
39.101351
111
0.697598
850
5,787
4.558824
0.248235
0.058839
0.024774
0.024774
0.056
0.018323
0.004903
0.004903
0.004903
0.004903
0
0.007061
0.216865
5,787
147
112
39.367347
0.84797
0.284258
0
0.085366
0
0.012195
0.11214
0.039299
0
0
0
0
0
1
0.060976
false
0
0.085366
0
0.329268
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
f28ccbdb8a0ea7d42a8a232e4a98e01aac77cc9d
1,301
py
Python
tests/test_init.py
mds2/Rocket
53313677768159d13e6c2b7c69ad69ca59bb8c79
[ "MIT" ]
16
2015-12-16T10:50:42.000Z
2020-06-04T10:39:20.000Z
tests/test_init.py
mds2/Rocket
53313677768159d13e6c2b7c69ad69ca59bb8c79
[ "MIT" ]
6
2017-11-01T14:51:52.000Z
2019-01-01T22:12:27.000Z
tests/test_init.py
mds2/Rocket
53313677768159d13e6c2b7c69ad69ca59bb8c79
[ "MIT" ]
13
2016-04-22T20:14:39.000Z
2021-12-21T22:52:02.000Z
# -*- coding: utf-8 -*- # This file is part of the Rocket Web Server # Copyright (c) 2012 Timothy Farrell # # See the included LICENSE.txt file for licensing details. # Import System Modules import sys import unittest # Import Custom Modules import rocket # Define Constants PY3K = sys.version_info[0] > 2 # Define T...
32.525
275
0.647963
170
1,301
4.811765
0.523529
0.07335
0.02445
0.03423
0.227384
0.158924
0.158924
0.158924
0.158924
0.158924
0
0.012683
0.212145
1,301
39
276
33.358974
0.785366
0.176787
0
0.181818
0
0
0.298775
0.044298
0
0
0
0
0.227273
1
0.136364
false
0
0.136364
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
f2925fa462ff21785df92756f554dc30e7733df7
1,450
py
Python
app/cipher_caesar.py
igorsilva3/cipher-of-caesar
2024dae7eb795f273785e9622d9e20a49cea089d
[ "MIT" ]
2
2020-09-30T00:04:59.000Z
2020-10-02T14:33:56.000Z
app/cipher_caesar.py
igorsilva3/cipher-of-caesar
2024dae7eb795f273785e9622d9e20a49cea089d
[ "MIT" ]
null
null
null
app/cipher_caesar.py
igorsilva3/cipher-of-caesar
2024dae7eb795f273785e9622d9e20a49cea089d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import string class Caesar(object): def __init__(self): self.ALPHABET = string.ascii_letters def character_type(self, character): """ Returns the alphabet box """ if character.isupper(): return string.ascii_uppercase ...
29
63
0.512414
142
1,450
5.105634
0.302817
0.082759
0.077241
0.033103
0.427586
0.427586
0.366897
0.366897
0.366897
0.366897
0
0.001157
0.404138
1,450
50
64
29
0.837963
0.085517
0
0.214286
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.035714
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f292e080e8bc6567932c91ed5f7d509146d3ac76
473
py
Python
programming-logic/teste.py
raulrosapacheco/python3-udemy
b84e6f82417aecd0e2a28c3fb3cb222e057a660b
[ "MIT" ]
null
null
null
programming-logic/teste.py
raulrosapacheco/python3-udemy
b84e6f82417aecd0e2a28c3fb3cb222e057a660b
[ "MIT" ]
null
null
null
programming-logic/teste.py
raulrosapacheco/python3-udemy
b84e6f82417aecd0e2a28c3fb3cb222e057a660b
[ "MIT" ]
null
null
null
""" Split: dividir string Join: juntar uma lista (str) Enumerate: enumerar elementos da lista (iteráveis) """ string ='O Brasil é o pais do futebol, o Brasil é penta.' lista_1 = string.split(' ') lista_2 = string.split(',') print(lista_1) print(lista_2) palavra = '' contagem = 0 for valor in lista_1: print(f'A pal...
23.65
73
0.69556
74
473
4.310811
0.527027
0.094044
0.050157
0.100313
0
0
0
0
0
0
0
0.020672
0.181818
473
20
74
23.65
0.803618
0.213531
0
0
0
0
0.29589
0.063014
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f296278ff7fbbd618f4bc706e8d6af3757d8034e
2,547
py
Python
grizzly_cli/argparse/__init__.py
mgor/grizzly-cli
00da1a5a822baefedf61497120fd52dbb5203f12
[ "MIT" ]
null
null
null
grizzly_cli/argparse/__init__.py
mgor/grizzly-cli
00da1a5a822baefedf61497120fd52dbb5203f12
[ "MIT" ]
null
null
null
grizzly_cli/argparse/__init__.py
mgor/grizzly-cli
00da1a5a822baefedf61497120fd52dbb5203f12
[ "MIT" ]
1
2021-11-02T09:36:21.000Z
2021-11-02T09:36:21.000Z
import sys import re from typing import Any, Optional, IO, Sequence from argparse import ArgumentParser as CoreArgumentParser, Namespace, _SubParsersAction from .markdown import MarkdownFormatter, MarkdownHelpAction from .bashcompletion import BashCompletionAction, hook as bashcompletion_hook ArgumentSubParser = _S...
38.014925
131
0.645465
292
2,547
5.489726
0.335616
0.065502
0.039925
0.024953
0.07985
0.052402
0.052402
0
0
0
0
0.001046
0.249313
2,547
66
132
38.590909
0.837343
0.110718
0
0.146341
0
0
0.042629
0.009769
0
0
0
0
0
1
0.097561
false
0
0.146341
0
0.317073
0.073171
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f29854376d62be05bf8d63dd4375c7cfd29ed77c
6,192
py
Python
ipa_util/validate.py
koolspin/vipa
f5b79a6ab4ce60975ff5ee6f173b97eebaf99b14
[ "MIT" ]
null
null
null
ipa_util/validate.py
koolspin/vipa
f5b79a6ab4ce60975ff5ee6f173b97eebaf99b14
[ "MIT" ]
null
null
null
ipa_util/validate.py
koolspin/vipa
f5b79a6ab4ce60975ff5ee6f173b97eebaf99b14
[ "MIT" ]
null
null
null
import plistlib from pathlib import Path from datetime import datetime, timezone, timedelta class Validate: """ Validate an unpacked .ipa file in various ways The following rules are enforced. All are treated as errors, except as noted: req-001: The root must contain a sub-directory called 'Payload' ...
41.837838
152
0.653424
805
6,192
4.782609
0.22236
0.035065
0.03039
0.038182
0.175065
0.088831
0.058701
0.038442
0.02026
0.02026
0
0.014346
0.268249
6,192
147
153
42.122449
0.835356
0.314599
0
0.144578
0
0
0.14664
0.023676
0
0
0
0
0
1
0.108434
false
0
0.036145
0.036145
0.216867
0.024096
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f29a992ba965f8e9cb047c742d3ca46176d0fa03
3,012
py
Python
netests/comparators/facts_compare.py
Netests/netests
1a48bda461761c4ec854d6fa0c38629049009a4a
[ "MIT" ]
14
2020-06-08T07:34:59.000Z
2022-03-14T08:52:03.000Z
netests/comparators/facts_compare.py
Netests/netests
1a48bda461761c4ec854d6fa0c38629049009a4a
[ "MIT" ]
null
null
null
netests/comparators/facts_compare.py
Netests/netests
1a48bda461761c4ec854d6fa0c38629049009a4a
[ "MIT" ]
3
2020-06-19T03:57:05.000Z
2020-06-22T22:46:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from nornir.core.task import Task from netests import log from netests.tools.file import open_file from netests.protocols.facts import Facts from netests.select_vars import select_host_vars from netests.comparators.log_compare import log_compare, log_no_yaml_data from net...
31.705263
75
0.60259
363
3,012
4.688705
0.217631
0.075206
0.106933
0.084606
0.220917
0.145711
0.078731
0
0
0
0
0.000958
0.306773
3,012
94
76
32.042553
0.814176
0.014276
0
0.134146
0
0
0.097742
0.011459
0
0
0
0
0
1
0.02439
false
0
0.097561
0
0.158537
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
f29b2579ee8dd83fbc2ef37d5767b8505b228c21
1,579
py
Python
graph.py
shinmura0/tkinter_kouza
1617a01591bf3cee808c4b3e62dc785cc76381f2
[ "MIT" ]
null
null
null
graph.py
shinmura0/tkinter_kouza
1617a01591bf3cee808c4b3e62dc785cc76381f2
[ "MIT" ]
null
null
null
graph.py
shinmura0/tkinter_kouza
1617a01591bf3cee808c4b3e62dc785cc76381f2
[ "MIT" ]
null
null
null
#おまじない from tkinter import Tk, Button, X, Frame, GROOVE, W, E, Label, Entry, END import numpy as np import os from matplotlib import pyplot as plt from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg # プロットする関数 def graph(data): # 大きさ(6,3)のグラフを生成する fig = plt.Figure(figsize=(6,3...
24.292308
82
0.60038
210
1,579
4.428571
0.480952
0.025806
0.048387
0.064516
0.109677
0.077419
0.077419
0.077419
0
0
0
0.04766
0.269158
1,579
65
83
24.292308
0.757366
0.151995
0
0
0
0
0.008
0
0
0
0
0
0
1
0.052632
false
0
0.131579
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2a0401693fdb2fa350f876989f4e1cc6a3ea3c3
698
py
Python
im3agents/tests/test_farmers.py
IMMM-SFA/im3agents
544e89803379a44108227e9cd83ce09f6974fe2d
[ "BSD-2-Clause" ]
null
null
null
im3agents/tests/test_farmers.py
IMMM-SFA/im3agents
544e89803379a44108227e9cd83ce09f6974fe2d
[ "BSD-2-Clause" ]
4
2020-05-27T18:50:29.000Z
2020-09-24T14:27:00.000Z
im3agents/tests/test_farmers.py
IMMM-SFA/im3agents
544e89803379a44108227e9cd83ce09f6974fe2d
[ "BSD-2-Clause" ]
null
null
null
"""Farmer class tests. :author: Someone :email: someone@pnnl.gov License: BSD 2-Clause, see LICENSE and DISCLAIMER files """ import unittest from im3agents import FarmerOne class TestFarmers(unittest.TestCase): def test_farmerone(self): error_min_age = FarmerOne(age=-1) error_max_age ...
19.388889
56
0.659026
85
698
5.211765
0.541176
0.081264
0.049661
0.13544
0.158014
0
0
0
0
0
0
0.019194
0.253582
698
35
57
19.942857
0.831094
0.270774
0
0.142857
0
0
0.016
0
0
0
0
0
0.214286
1
0.071429
false
0
0.142857
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
f2a1157fdb66b63890403106ad4f269358b5419e
1,744
py
Python
day-24/part-1/th-ch.py
evqna/adventofcode-2020
526bb9c87057d02bda4de9647932a0e25bdb3a5b
[ "MIT" ]
12
2020-11-30T19:22:18.000Z
2021-06-21T05:55:58.000Z
day-24/part-1/th-ch.py
evqna/adventofcode-2020
526bb9c87057d02bda4de9647932a0e25bdb3a5b
[ "MIT" ]
13
2020-11-30T17:27:22.000Z
2020-12-22T17:43:13.000Z
day-24/part-1/th-ch.py
evqna/adventofcode-2020
526bb9c87057d02bda4de9647932a0e25bdb3a5b
[ "MIT" ]
3
2020-12-01T08:49:40.000Z
2022-03-26T21:47:38.000Z
from tool.runners.python import SubmissionPy WHITE = 0 BLACK = 1 DIRECTIONS = { "e": (-1, 0), # (x, y) with axes right/bottom "se": (-0.5, 1), "sw": (0.5, 1), "w": (1, 0), "nw": (0.5, -1), "ne": (-0.5, -1), } class ThChSubmission(SubmissionPy): def run(self, s): flipped_tiles = {...
25.275362
78
0.614106
160
1,744
6.65625
0.55
0.007512
0.011268
0.028169
0
0
0
0
0
0
0
0.024623
0.278096
1,744
68
79
25.647059
0.821287
0.06078
0
0
0
0
0.014184
0
0
0
0
0
0.027778
1
0.055556
false
0
0.027778
0
0.138889
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
f2a14427a74c318066628e0e58bdecded62e08df
259
py
Python
Python/tais_formula.py
mimseyedi/Kattis
a99ea2112544e89cc466feb7d81ffe6eb017f7e2
[ "MIT" ]
null
null
null
Python/tais_formula.py
mimseyedi/Kattis
a99ea2112544e89cc466feb7d81ffe6eb017f7e2
[ "MIT" ]
null
null
null
Python/tais_formula.py
mimseyedi/Kattis
a99ea2112544e89cc466feb7d81ffe6eb017f7e2
[ "MIT" ]
null
null
null
n = int(input()) l1 = list() l2 = list() for _ in range(n): t, v = input().split() l1.append(int(t)) l2.append(float(v)) result = 0 for i in range(len(l1) - 1): result += ((l2[i] + l2[i + 1]) / 2) * (l1[i + 1] - l1[i]) print(result / 1000)
17.266667
61
0.505792
47
259
2.765957
0.468085
0.107692
0
0
0
0
0
0
0
0
0
0.092784
0.250965
259
14
62
18.5
0.57732
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2a1e765b746fab626eeae28ec0da8d5f9142f43
643
py
Python
modules/constant.py
aubravo/Clasificacion-de-actividad-volcanica
0f7be0d77509fa13948a0f714103ce6e6d8cb2ae
[ "MIT" ]
1
2021-10-20T02:42:20.000Z
2021-10-20T02:42:20.000Z
modules/constant.py
aubravo/ActividadVolcanica
0f7be0d77509fa13948a0f714103ce6e6d8cb2ae
[ "MIT" ]
null
null
null
modules/constant.py
aubravo/ActividadVolcanica
0f7be0d77509fa13948a0f714103ce6e6d8cb2ae
[ "MIT" ]
null
null
null
"""---------------------------------------------------------------------------- This is the core of the parsing stage: *re_find comments will search for everything between the $$ and EOL *re_findDataLabels will search for everything between the start of a tag (##) and the start of the next tag ignoring the...
45.928571
79
0.494557
79
643
3.962025
0.506329
0.031949
0.083067
0.146965
0.210863
0.210863
0
0
0
0
0
0
0.133748
643
13
80
49.461538
0.561939
0.724728
0
0
0
0
0.467836
0.362573
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2a3e15dbd9f5aecf7c8735a8a4cd1ee5164b116
5,879
py
Python
venv/lib/python3.6/site-packages/ansible_collections/f5networks/f5_modules/tests/unit/modules/network/f5/test_bigip_message_routing_transport_config.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/f5networks/f5_modules/tests/unit/modules/network/f5/test_bigip_message_routing_transport_config.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/f5networks/f5_modules/tests/unit/modules/network/f5/test_bigip_message_routing_transport_config.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright: (c) 2019, F5 Networks Inc. # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type import os import json import pytest import sys if sys.version_info < (2...
33.403409
136
0.628678
675
5,879
5.26963
0.272593
0.029519
0.037953
0.050604
0.57436
0.545122
0.494518
0.447287
0.403992
0.350576
0
0.019266
0.258377
5,879
175
137
33.594286
0.79656
0.042014
0
0.367647
0
0
0.159289
0.0544
0
0
0
0
0.176471
1
0.051471
false
0.022059
0.073529
0
0.154412
0.007353
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2a4c80d5b858823c4ef9a8432cc56f697eb6900
3,618
py
Python
tests/test_builder_path_parameter.py
tabebqena/flask-open-spec
ee1fd9cd349e46e1d8295fc2799898731392af6a
[ "MIT" ]
null
null
null
tests/test_builder_path_parameter.py
tabebqena/flask-open-spec
ee1fd9cd349e46e1d8295fc2799898731392af6a
[ "MIT" ]
null
null
null
tests/test_builder_path_parameter.py
tabebqena/flask-open-spec
ee1fd9cd349e46e1d8295fc2799898731392af6a
[ "MIT" ]
null
null
null
from ..open_oas.builder.builder import OasBuilder from unittest import TestCase from ..tests.schemas.schemas import PaginationSchema from ..open_oas.decorators import Deferred, path_parameter class TestPathParameter(TestCase): def run_tests(self, builder: OasBuilder): data = builder.get_data() par...
30.661017
68
0.369541
226
3,618
5.827434
0.265487
0.027335
0.053151
0.034169
0.558846
0.493546
0.426727
0.364465
0.364465
0.330296
0
0.003297
0.49696
3,618
117
69
30.923077
0.72033
0.042012
0
0.534653
0
0
0.133892
0.008965
0
0
0
0
0.029703
1
0.049505
false
0
0.039604
0
0.108911
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
f2a7f8c88dbf4887b1d166b409dc1bae27f7d5b9
815
py
Python
tests/test_templates.py
knipknap/django_searchable
6fd9f8aa766477e8648fdbed720e966af1b216b7
[ "MIT" ]
62
2018-11-05T09:06:39.000Z
2022-02-18T15:33:06.000Z
tests/test_templates.py
knipknap/django_searchable
6fd9f8aa766477e8648fdbed720e966af1b216b7
[ "MIT" ]
4
2018-11-05T07:57:27.000Z
2021-05-30T00:37:35.000Z
tests/test_templates.py
knipknap/django_searchable
6fd9f8aa766477e8648fdbed720e966af1b216b7
[ "MIT" ]
8
2018-11-08T16:10:04.000Z
2022-01-27T09:31:53.000Z
from django.test import TestCase from django.test.client import RequestFactory from django.template import Template, Context from django.template.loader import render_to_string from .models import Author, Book expected_headers = ''' <tr> <th>Name</th><th>The title</th><th>Comment</th><th>Stars</th><th>AuthorID</th> <...
32.6
78
0.69816
111
815
5.054054
0.495496
0.071301
0.049911
0
0
0
0
0
0
0
0
0.008798
0.16319
815
24
79
33.958333
0.813783
0
0
0
0
0.05
0.165848
0.099509
0
0
0
0
0.05
1
0.1
false
0
0.25
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
f2a86a4dc06766b095f7432edceef5b58b99f8ac
103,875
py
Python
diabolo_play/scripts/interactive_play.py
omron-sinicx/diabolo
a0258fdf634d27c7cf185b2e40c6b12699417d36
[ "BSD-3-Clause" ]
11
2021-10-15T15:51:24.000Z
2021-12-26T16:43:17.000Z
diabolo_play/scripts/interactive_play.py
omron-sinicx/diabolo
a0258fdf634d27c7cf185b2e40c6b12699417d36
[ "BSD-3-Clause" ]
null
null
null
diabolo_play/scripts/interactive_play.py
omron-sinicx/diabolo
a0258fdf634d27c7cf185b2e40c6b12699417d36
[ "BSD-3-Clause" ]
1
2022-02-01T01:58:37.000Z
2022-02-01T01:58:37.000Z
#!/usr/bin/env python import sys import copy import rospy import tf_conversions import tf.transformations as transform import tf from math import pi import math import thread import os import random import geometry_msgs.msg from geometry_msgs.msg import Pose, PoseArray from trajectory_msgs.msg import JointTrajectory, J...
44.014831
142
0.575779
12,726
103,875
4.394704
0.062156
0.009191
0.009602
0.00987
0.646056
0.582938
0.525203
0.485705
0.443113
0.403133
0
0.029829
0.329993
103,875
2,359
143
44.033489
0.773755
0.145463
0
0.447242
0
0.001607
0.097028
0.024876
0
0
0
0.00212
0
1
0.015533
false
0.000536
0.019282
0
0.042314
0.024638
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2a9847b819084a601442dc4d30086db0ba4a8ad
1,378
py
Python
genius.py
fedecalendino/alfred-lyrics-finder
771eb9ddcd1849b6095b2e7b16a2335d25c74f30
[ "MIT" ]
3
2020-09-14T01:07:11.000Z
2021-03-12T09:43:12.000Z
genius.py
fedecalendino/alfred-lyrics-finder
771eb9ddcd1849b6095b2e7b16a2335d25c74f30
[ "MIT" ]
null
null
null
genius.py
fedecalendino/alfred-lyrics-finder
771eb9ddcd1849b6095b2e7b16a2335d25c74f30
[ "MIT" ]
null
null
null
from workflow import web class APIException(Exception): def __init__(self, status, message, url): self.status = status self.message = message self.url = url super(APIException, self).__init__( "{status} > {message}".format( status=self.status, ...
26
85
0.564586
152
1,378
4.907895
0.342105
0.103217
0.060322
0
0
0
0
0
0
0
0
0.010526
0.310595
1,378
52
86
26.5
0.774737
0
0
0
0
0
0.115385
0
0
0
0
0
0.105263
1
0.105263
false
0
0.026316
0
0.263158
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
f2b2b69ac9c8d9c5d5b9c1cb7f1d8d0174255511
2,310
py
Python
utils/html_markup.py
carlboudreau007/BlockChain_Demo
fb90212e9a401aa3b757e49af7fd28d250bafbc4
[ "MIT" ]
null
null
null
utils/html_markup.py
carlboudreau007/BlockChain_Demo
fb90212e9a401aa3b757e49af7fd28d250bafbc4
[ "MIT" ]
null
null
null
utils/html_markup.py
carlboudreau007/BlockChain_Demo
fb90212e9a401aa3b757e49af7fd28d250bafbc4
[ "MIT" ]
null
null
null
import glob from flask import Markup SERVER_OPTIONS = [{'text': 'Local Host', 'value': '127.0.0.1'}, {'text': 'Test weved23962', 'value': '10.201.144.167'}, {'text': 'Stage weves31263', 'value': '10.50.8.130'}, {'text': 'Prod wevep31172', 'value': '10.48.164.198'} ...
32.535211
93
0.577056
269
2,310
4.806691
0.297398
0.032483
0.029389
0.024749
0.672854
0.521268
0.521268
0.521268
0.521268
0.521268
0
0.030534
0.262771
2,310
70
94
33
0.728714
0.155411
0
0.565217
0
0
0.211216
0.075996
0
0
0
0
0
1
0.065217
false
0
0.043478
0.021739
0.173913
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2b606f246e1cf267d985e5ff3efcca86aeda8cd
2,237
py
Python
streamlit_app.py
sebastiandres/xkcd_streamlit
68b1c01dd8eca34135126ebb33a2d539a0d25650
[ "MIT" ]
1
2021-07-21T03:20:52.000Z
2021-07-21T03:20:52.000Z
streamlit_app.py
sebastiandres/xkcd_streamlit
68b1c01dd8eca34135126ebb33a2d539a0d25650
[ "MIT" ]
null
null
null
streamlit_app.py
sebastiandres/xkcd_streamlit
68b1c01dd8eca34135126ebb33a2d539a0d25650
[ "MIT" ]
null
null
null
import streamlit as st from xkcd import xkcd_plot from shared import translate, LANGUAGE_DICT # Set page properties for the app st.set_page_config( page_title="Streamlit & XKCD", layout="wide", initial_sidebar_state="expanded", ) # Initialize the session states - f_list has functions and colors if 'f_list...
37.283333
93
0.644166
295
2,237
4.698305
0.355932
0.064935
0.10101
0.054113
0.192641
0.118326
0.047619
0.047619
0
0
0
0.011312
0.209656
2,237
60
94
37.283333
0.772624
0.0827
0
0.043478
0
0
0.16911
0
0
0
0
0
0
1
0
false
0
0.065217
0
0.065217
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
f2b7c2a6955082c094b447b57a5e843a6c763e15
4,693
py
Python
cyclegan/data/celeba/mask_face_region_with_avail_kpts.py
dingyanna/DepthNets
a13b05e315b0732b6a28594b1343a6940bbab229
[ "MIT" ]
114
2018-11-27T19:34:13.000Z
2022-03-26T19:39:00.000Z
cyclegan/data/celeba/mask_face_region_with_avail_kpts.py
dingyanna/DepthNets
a13b05e315b0732b6a28594b1343a6940bbab229
[ "MIT" ]
9
2018-12-11T09:05:22.000Z
2021-07-02T21:27:34.000Z
cyclegan/data/celeba/mask_face_region_with_avail_kpts.py
kdh4672/Face_Recognition_With_Augmentation
b0795b97c94bbba1a1e3310670d0868f3eacb479
[ "MIT" ]
32
2018-12-03T00:52:54.000Z
2021-08-30T01:45:31.000Z
""" This module masks faces using kpts already detected """ import numpy as np import argparse import cv2 #from RCN.preprocessing.tools import BGR2Gray from PIL import Image import h5py def get_parsed_keypoints(path): with open(path) as f: x = f.read() y=x.split('\n') z=[[int(i) for i in ...
32.818182
97
0.603665
707
4,693
3.739745
0.254597
0.029123
0.015129
0.012103
0.142965
0.07413
0.034039
0.034039
0.034039
0.034039
0
0.016507
0.264223
4,693
142
98
33.049296
0.749204
0.198381
0
0.025316
0
0
0.048392
0.006961
0
0
0
0
0
1
0.088608
false
0
0.063291
0
0.240506
0.037975
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2b7d3d40db3233a8eadd8a94f91fbf6d7c9b69b
589
py
Python
task1/task1.py
ZHN202/opencv_learning
f0725955e6e525d3918c1117763bf0aaa4299777
[ "MIT" ]
1
2021-11-04T03:41:04.000Z
2021-11-04T03:41:04.000Z
task1/task1.py
ZHN202/opencv_learning
f0725955e6e525d3918c1117763bf0aaa4299777
[ "MIT" ]
null
null
null
task1/task1.py
ZHN202/opencv_learning
f0725955e6e525d3918c1117763bf0aaa4299777
[ "MIT" ]
null
null
null
import cv2 as cv import numpy as np img = cv.imread('test.png') # 将图片大小改为1920*1080h,s,v = cv.split(hsvimg) img = cv.resize(img, dsize=(1920, 1080), fx=1, fy=1, interpolation=cv.INTER_NEAREST) # hsv图像 hsvimg = cv.cvtColor(img, cv.COLOR_BGR2HSV) lower_y = np.array([20, 43, 46]) upper_y = np.array([34, 255, 220]) mask ...
26.772727
84
0.665535
107
589
3.607477
0.570093
0.051813
0.041451
0.041451
0
0
0
0
0
0
0
0.122244
0.152801
589
21
85
28.047619
0.651303
0.089983
0
0
0
0
0.020677
0
0
0
0
0
0
1
0
false
0
0.142857
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
f2ba3f6c4a26d42ba28e90efe9fded89ad4b027a
385
py
Python
Importing_&_Managing_Financial_Data/Importing_financial_data_from_the_web/Visualize_a_stock_price_trend.py
RKiddle/python_finance
7c0ed2998c0f82a0998ba0cb06225453ba8ee3fe
[ "MIT" ]
1
2021-04-28T01:26:38.000Z
2021-04-28T01:26:38.000Z
Importing_&_Managing_Financial_Data/Importing_financial_data_from_the_web/Visualize_a_stock_price_trend.py
RKiddle/python_finance
7c0ed2998c0f82a0998ba0cb06225453ba8ee3fe
[ "MIT" ]
null
null
null
Importing_&_Managing_Financial_Data/Importing_financial_data_from_the_web/Visualize_a_stock_price_trend.py
RKiddle/python_finance
7c0ed2998c0f82a0998ba0cb06225453ba8ee3fe
[ "MIT" ]
null
null
null
# Import matplotlib.pyplot import matplotlib.pyplot as plt # Set start and end dates start = date(2016, 1, 1) end = date(2016, 12, 31) # Set the ticker and data_source ticker = 'FB' data_source = 'google' # Import the data using DataReader stock_prices = DataReader(ticker, data_source, start, end) # Plot Close stoc...
19.25
58
0.735065
60
385
4.633333
0.483333
0.107914
0.158273
0
0
0
0
0
0
0
0
0.04321
0.158442
385
19
59
20.263158
0.814815
0.355844
0
0
0
0
0.053942
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2bdc8d9084d26a302efcbe7ca92780a65ffbfe3
3,722
py
Python
src/resnet/resnetv2_3stage_gaussian.py
googleinterns/out-of-distribution
84a2d5af59462f0943f629f742090b485ed50e61
[ "Apache-2.0" ]
null
null
null
src/resnet/resnetv2_3stage_gaussian.py
googleinterns/out-of-distribution
84a2d5af59462f0943f629f742090b485ed50e61
[ "Apache-2.0" ]
null
null
null
src/resnet/resnetv2_3stage_gaussian.py
googleinterns/out-of-distribution
84a2d5af59462f0943f629f742090b485ed50e61
[ "Apache-2.0" ]
null
null
null
from typing import List, Union import torch from torch import nn from torch.nn import functional as F from src.modules.max_mahalanobis import MaxMahalanobis, GaussianResult from src.modules.normalize import Normalize from src.resnet.bottleneck_block_v2s3 import create_bottleneck_stage_v2s3 from src.resnet.shared impo...
35.113208
109
0.671682
503
3,722
4.755467
0.308151
0.050167
0.0301
0.047659
0.204013
0.204013
0.160117
0.156355
0.156355
0.156355
0
0.053155
0.21655
3,722
105
110
35.447619
0.767147
0.112037
0
0.056338
0
0
0.043438
0
0
0
0
0
0
1
0.112676
false
0
0.112676
0
0.450704
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
f2c0ef753b4cd8675d6db691f0d1c053e49d0236
504
py
Python
assignments/Exercise_Lecture73_Phumeth.P.py
ZnoKunG/PythonProject
388b5dfeb0161aee66094e7b2ecc2d6ed13588bd
[ "MIT" ]
null
null
null
assignments/Exercise_Lecture73_Phumeth.P.py
ZnoKunG/PythonProject
388b5dfeb0161aee66094e7b2ecc2d6ed13588bd
[ "MIT" ]
null
null
null
assignments/Exercise_Lecture73_Phumeth.P.py
ZnoKunG/PythonProject
388b5dfeb0161aee66094e7b2ecc2d6ed13588bd
[ "MIT" ]
null
null
null
systemMenu = {"ไก่ทอด": 35, "เป็ดทอด": 45, "ปลาทอด": 55, "ผักทอด": 20} menuList = [] def showBill(): print("---- My Food----") totalPrice = 0 for number in range(len(menuList)): print(menuList[number][0],menuList[number][1]) totalPrice += int(menuList[number][1]) print("Totalprice :", t...
28
70
0.613095
63
504
4.952381
0.68254
0.134615
0.096154
0
0
0
0
0
0
0
0
0.029484
0.19246
504
18
71
28
0.72973
0
0
0
0
0
0.150495
0
0
0
0
0
0
1
0.0625
false
0
0
0
0.0625
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
f2c15988d8527886dc69eb42d21e16810aed3ba2
2,229
py
Python
FetchTextFromRISE.py
RISE-MPIWG/hylg
7d49e7aed0623d9730d5c8933030954fa8f729b0
[ "MIT" ]
1
2020-05-30T02:29:36.000Z
2020-05-30T02:29:36.000Z
FetchTextFromRISE.py
RISE-MPIWG/hylg
7d49e7aed0623d9730d5c8933030954fa8f729b0
[ "MIT" ]
null
null
null
FetchTextFromRISE.py
RISE-MPIWG/hylg
7d49e7aed0623d9730d5c8933030954fa8f729b0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import requests import os # 6000 is a large number to make sure we get all the components of a collection. Please do note that RISE also has a pagination feature, # which can be implemented by clients if they wish. per_page = 6000 # getting the list of collections that the user has access to: ...
39.803571
139
0.682369
291
2,229
5.106529
0.323024
0.028264
0.037685
0.053836
0.168237
0.168237
0.168237
0.131898
0.131898
0.079408
0
0.009471
0.194706
2,229
56
140
39.803571
0.818384
0.224764
0
0
0
0.027778
0.232829
0.016298
0
0
0
0
0
1
0
false
0
0.055556
0
0.055556
0.194444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2c4872a061796a24a75f519586680551cd85468
348
py
Python
data.py
alantess/DDQN-BTC
0fff185200dd1c16088dc322cbb7790b848c1e6d
[ "MIT" ]
2
2021-01-12T08:59:54.000Z
2022-02-07T23:41:49.000Z
data.py
alantess/DDQN-BTC
0fff185200dd1c16088dc322cbb7790b848c1e6d
[ "MIT" ]
null
null
null
data.py
alantess/DDQN-BTC
0fff185200dd1c16088dc322cbb7790b848c1e6d
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt def retrieve_data(): train_data = 'data/Nov_btc.csv' test_data = 'data/btc_test_data.csv' df = pd.read_csv(test_data) df = df.drop(columns=['date', 'weighted','volume']) # Columns are set at close, high, low and open. df = df.dropna() data = ...
23.2
55
0.666667
55
348
4.072727
0.6
0.107143
0.098214
0
0
0
0
0
0
0
0
0
0.20977
348
14
56
24.857143
0.814545
0.12931
0
0
0
0
0.187291
0.073579
0
0
0
0
0
1
0.1
false
0
0.2
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
f2c664d27fab22d77e93ebebd90d26fccfda0d77
4,715
py
Python
main.py
lucaswerner90/upc_dl_project_2021
c02061da0e25a0b24a9b742074b87ac30f36586d
[ "MIT" ]
2
2021-07-15T12:30:43.000Z
2021-11-04T07:50:16.000Z
main.py
lucaswerner90/upc_dl_project_2021
c02061da0e25a0b24a9b742074b87ac30f36586d
[ "MIT" ]
30
2021-05-03T07:37:37.000Z
2021-07-01T18:53:23.000Z
main.py
lucaswerner90/upc_dl_project_2021
c02061da0e25a0b24a9b742074b87ac30f36586d
[ "MIT" ]
1
2021-06-21T11:12:32.000Z
2021-06-21T11:12:32.000Z
import argparse import os import torch import torch.nn as nn import torch.optim as optim import argparse from torch.utils.data import DataLoader from torchvision import transforms from dataset.main import Flickr8kDataset from dataset.caps_collate import CapsCollate from dataset.download import DownloadDataset from mode...
45.336538
196
0.759915
671
4,715
5.208644
0.304024
0.025751
0.048641
0.034335
0.25608
0.224034
0.198856
0.198856
0.198856
0.198856
0
0.029545
0.109862
4,715
103
197
45.776699
0.803193
0.074019
0
0.202532
0
0
0.241854
0.033502
0
0
0
0
0
1
0.012658
false
0
0.177215
0
0.189873
0.025316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2c78a6895c6f2bb08f5bc34684b1ca6a132fd79
2,050
py
Python
tests/FasterSubsetSumTests/test_randomizedBase.py
joakiti/Benchmark-SubsetSums
a875b5adf7f800d26b73516452904031c73ec29d
[ "MIT" ]
null
null
null
tests/FasterSubsetSumTests/test_randomizedBase.py
joakiti/Benchmark-SubsetSums
a875b5adf7f800d26b73516452904031c73ec29d
[ "MIT" ]
null
null
null
tests/FasterSubsetSumTests/test_randomizedBase.py
joakiti/Benchmark-SubsetSums
a875b5adf7f800d26b73516452904031c73ec29d
[ "MIT" ]
null
null
null
import unittest from unittest import TestCase from Implementations.FastIntegersFromGit import FastIntegersFromGit from Implementations.helpers.Helper import ListToPolynomial, toNumbers from Implementations.FasterSubsetSum.RandomizedBase import NearLinearBase from benchmarks.test_distributions import Distributions as d...
38.679245
112
0.661463
271
2,050
4.918819
0.346863
0.022506
0.031508
0.03901
0.335334
0.288822
0.288822
0.225806
0.213803
0.213803
0
0.083386
0.227805
2,050
52
113
39.423077
0.758686
0.04439
0
0.268293
0
0
0.070041
0
0
0
0
0
0.097561
1
0.146341
false
0
0.146341
0
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
f2ca9fdc60f3ee0343b7c18df16ab40ecebc987e
4,744
py
Python
web/fabric_utils/deploy.py
kbarnes3/guidcoin
c9011a00f18bbd181a538a553950dbc0e8c1a05e
[ "BSD-2-Clause" ]
null
null
null
web/fabric_utils/deploy.py
kbarnes3/guidcoin
c9011a00f18bbd181a538a553950dbc0e8c1a05e
[ "BSD-2-Clause" ]
null
null
null
web/fabric_utils/deploy.py
kbarnes3/guidcoin
c9011a00f18bbd181a538a553950dbc0e8c1a05e
[ "BSD-2-Clause" ]
null
null
null
from fabric.api import cd, run, settings, sudo configurations = { 'daily': { 'branch': 'master', 'ssl': False, }, 'dev': { 'branch': 'master', 'ssl': False, }, 'prod': { 'branch': 'prod', 'ssl': False, }, 'staging': { '...
35.669173
92
0.620784
617
4,744
4.60778
0.226904
0.032008
0.039395
0.021104
0.450229
0.308477
0.236722
0.145973
0.11924
0.071755
0
0.020563
0.220911
4,744
132
93
35.939394
0.748647
0.036889
0
0.222222
0
0
0.309948
0.120009
0
0
0
0
0
1
0.090909
false
0
0.010101
0
0.10101
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
f2cace32420ebacd10ddd9012cee72a53278a13e
1,863
py
Python
sorts/4.Tree_sort.py
18-2-SKKU-OSS/2018-2-OSS-E5--
8bb7e4c239f5bd95f4635b442bb8b2838e76fb36
[ "MIT" ]
4
2018-12-02T14:21:02.000Z
2019-02-28T04:15:42.000Z
sorts/4.Tree_sort.py
18-2-SKKU-OSS/2018-2-OSS-E5
8bb7e4c239f5bd95f4635b442bb8b2838e76fb36
[ "MIT" ]
25
2018-11-27T10:00:05.000Z
2018-12-11T01:58:46.000Z
sorts/4.Tree_sort.py
18-2-SKKU-OSS/2018-2-OSS-E5--
8bb7e4c239f5bd95f4635b442bb8b2838e76fb36
[ "MIT" ]
null
null
null
""" 파이썬으로 Tree Sort를 구현한 코드입니다. 정확히 말하자면 Binary Search Tree를 구현하였습니다. Binary Search Tree는 각 노드에 값이 있다. Root 노드가 존재한다. 노드의 왼쪽 서브트리에는 그 노드의 값보다 작은 값들을 지닌 노드들로 이루어져있다. 노드의 오른쪽 서브트리에는 그 노드의 값과 같거나 큰 값들을 지닌 노드들로 이루어져있다. 좌우 하위 트리는 각각이 다시 Binary Search Tree 이어야 합니다. """ from __future__ import print_funct...
28.661538
79
0.570585
265
1,863
3.928302
0.45283
0.04707
0.065322
0.028818
0.034582
0
0
0
0
0
0
0.004882
0.340311
1,863
64
80
29.109375
0.842148
0.258722
0
0.116279
0
0
0.036249
0
0
0
0
0
0
1
0.093023
false
0
0.023256
0
0.186047
0.046512
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2cb9232d1beaf4ae9243ec51c0966d350c75625
446
py
Python
rules/helpers.py
prokoptsev/rules
436348004aa34c2e50d71960dad2076719fc433b
[ "MIT" ]
null
null
null
rules/helpers.py
prokoptsev/rules
436348004aa34c2e50d71960dad2076719fc433b
[ "MIT" ]
1
2017-02-01T08:56:08.000Z
2017-02-01T08:56:08.000Z
rules/helpers.py
prokoptsev/rules
436348004aa34c2e50d71960dad2076719fc433b
[ "MIT" ]
1
2019-11-08T10:44:43.000Z
2019-11-08T10:44:43.000Z
# coding: utf-8 from __future__ import unicode_literals, absolute_import _NOTSET = type( b"NotSet", (object,), {"__repr__": lambda self: "<ValueNotSet>"} )() def get_by_path(keys, source_dict): if "." in keys: key, tail_keys = keys.split(".", 1) if key not in source_dict: ...
24.777778
56
0.632287
59
446
4.389831
0.559322
0.15444
0.069498
0
0
0
0
0
0
0
0
0.005952
0.246637
446
18
57
24.777778
0.764881
0.029148
0
0
0
0
0.06713
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b2bca30173574ead32b90a8d29f7a356f54d612
3,030
py
Python
e2e/Vectors/Generation/Consensus/Beaten.py
kayabaNerve/Currency
260ebc20f1704f42ad6183fee39ad58ec6d07961
[ "CC0-1.0" ]
66
2019-01-14T08:39:52.000Z
2022-01-06T11:39:15.000Z
e2e/Vectors/Generation/Consensus/Beaten.py
kayabaNerve/Currency
260ebc20f1704f42ad6183fee39ad58ec6d07961
[ "CC0-1.0" ]
228
2019-01-16T15:42:44.000Z
2022-02-05T07:48:07.000Z
e2e/Vectors/Generation/Consensus/Beaten.py
kayabaNerve/Currency
260ebc20f1704f42ad6183fee39ad58ec6d07961
[ "CC0-1.0" ]
19
2019-01-14T08:53:04.000Z
2021-11-03T20:19:28.000Z
from typing import List import json import e2e.Libs.Ristretto.Ristretto as Ristretto from e2e.Libs.BLS import PrivateKey from e2e.Classes.Transactions.Transactions import Claim, Send, Transactions from e2e.Classes.Consensus.Verification import SignedVerification from e2e.Classes.Consensus.VerificationPacket import V...
29.705882
89
0.718482
381
3,030
5.706037
0.249344
0.022539
0.080037
0.096596
0.295768
0.282889
0.23873
0.23873
0.23873
0.23873
0
0.032867
0.126403
3,030
101
90
30
0.78844
0.067657
0
0.236842
0
0
0.03617
0.021277
0
0
0
0
0
1
0
false
0
0.131579
0
0.131579
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
4b2c8fbe001a03db6be5e0e2f8295d8600500dd8
5,105
py
Python
main/pythonDev/TestModels/sphericalJointTest.py
eapcivil/EXUDYN
52bddc8c258cda07e51373f68e1198b66c701d03
[ "BSD-3-Clause-Open-MPI" ]
1
2020-10-06T08:06:25.000Z
2020-10-06T08:06:25.000Z
main/pythonDev/TestModels/sphericalJointTest.py
eapcivil/EXUDYN
52bddc8c258cda07e51373f68e1198b66c701d03
[ "BSD-3-Clause-Open-MPI" ]
null
null
null
main/pythonDev/TestModels/sphericalJointTest.py
eapcivil/EXUDYN
52bddc8c258cda07e51373f68e1198b66c701d03
[ "BSD-3-Clause-Open-MPI" ]
null
null
null
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # This is an EXUDYN example # # Details: Simulate Chain with 3D rigid bodies and SphericalJoint; # Also test MarkerNodePosition # # Author: Johannes Gerstmayr # Date: 2020-04-09 # # Copyright:This file is part of Exudyn. Exu...
40.84
181
0.681097
560
5,105
6.203571
0.419643
0.009787
0.007772
0.046056
0.117444
0.058146
0.056131
0.056131
0.056131
0
0
0.039886
0.174927
5,105
124
182
41.169355
0.7849
0.326934
0
0.028169
0
0
0.022399
0
0
0
0
0
0
1
0
false
0
0.084507
0
0.084507
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
4b315d99b885f67bca9bd8f9e32645470a5d8448
1,915
py
Python
inference/online_inference/src/app.py
made-ml-in-prod-2021/marina-zav
7b4b6e5f333707001e36dfb014dcd36bf975d969
[ "FTL" ]
null
null
null
inference/online_inference/src/app.py
made-ml-in-prod-2021/marina-zav
7b4b6e5f333707001e36dfb014dcd36bf975d969
[ "FTL" ]
null
null
null
inference/online_inference/src/app.py
made-ml-in-prod-2021/marina-zav
7b4b6e5f333707001e36dfb014dcd36bf975d969
[ "FTL" ]
null
null
null
import logging import sys import time from typing import List, Optional import uvicorn from fastapi import FastAPI from fastapi.exceptions import RequestValidationError from fastapi.responses import PlainTextResponse from sklearn.pipeline import Pipeline from src.entities import ( read_app_params, HeartDiseas...
26.232877
80
0.769191
245
1,915
5.812245
0.379592
0.063202
0.027388
0.02809
0.223315
0.192416
0.192416
0.192416
0.075843
0.075843
0
0.003001
0.130026
1,915
72
81
26.597222
0.851741
0.025065
0
0.078431
0
0
0.116354
0.024665
0
0
0
0
0
1
0.117647
false
0
0.215686
0.078431
0.431373
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
4b34659c04f2dfee8c71b653e9b765ff930cf91e
8,040
py
Python
serverCollector.py
VertexC/pipot-server
0e2c9b0e34a589d9813301765ef8d2433ef67869
[ "ISC" ]
4
2019-02-11T12:43:08.000Z
2019-03-23T06:59:38.000Z
serverCollector.py
VertexC/pipot-server
0e2c9b0e34a589d9813301765ef8d2433ef67869
[ "ISC" ]
25
2019-02-26T17:16:58.000Z
2019-08-19T03:36:56.000Z
serverCollector.py
VertexC/pipot-server
0e2c9b0e34a589d9813301765ef8d2433ef67869
[ "ISC" ]
5
2019-01-15T06:32:21.000Z
2020-01-10T11:58:43.000Z
import hashlib import hmac import json import datetime from abc import ABCMeta, abstractmethod from twisted.internet import protocol from mod_config.models import Rule, Actions from mod_honeypot.models import PiPotReport, Deployment from pipot.encryption import Encryption from pipot.notifications import Notification...
37.924528
78
0.486318
691
8,040
5.526773
0.287988
0.037444
0.014402
0.015711
0.093218
0.039801
0.039801
0.023566
0
0
0
0.001114
0.441915
8,040
211
79
38.104265
0.850011
0.114801
0
0.25
0
0
0.093275
0
0
0
0
0
0
1
0.094595
false
0.047297
0.074324
0.006757
0.243243
0.094595
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b3702971613873f8e0d3ea487888d2084d6acd1
4,852
py
Python
pyhttptest/decorators.py
NickMitin/pyhttptest
5116caf3962dab63d62bffe94b0659f435b3e2d3
[ "BSD-3-Clause" ]
142
2019-10-22T11:19:44.000Z
2021-11-09T11:05:27.000Z
pyhttptest/decorators.py
NickMitin/pyhttptest
5116caf3962dab63d62bffe94b0659f435b3e2d3
[ "BSD-3-Clause" ]
5
2019-10-22T14:43:39.000Z
2020-10-09T13:25:24.000Z
pyhttptest/decorators.py
NickMitin/pyhttptest
5116caf3962dab63d62bffe94b0659f435b3e2d3
[ "BSD-3-Clause" ]
14
2019-10-23T18:27:58.000Z
2020-09-22T01:07:39.000Z
from sys import modules from functools import wraps from jsonschema import validate from pyhttptest.constants import ( HTTP_METHOD_NAMES, JSON_FILE_EXTENSION, ) from pyhttptest.exceptions import ( FileExtensionError, HTTPMethodNotSupportedError ) from pyhttptest.http_schemas import ( # noqa get_s...
31.303226
82
0.61789
561
4,852
5.187166
0.244207
0.049141
0.027491
0.013746
0.341581
0.269416
0.17732
0.153952
0.14433
0.105842
0
0.000298
0.307708
4,852
154
83
31.506494
0.866032
0.395095
0
0.217949
0
0
0.135834
0.008376
0
0
0
0
0
1
0.076923
false
0.038462
0.076923
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b3983c191ae8db18994072c0ce7b31ca01543db
12,081
py
Python
python/test/lib/zk/cache_test.py
cschutijser/scion
054cef53b31a577ed224a090d6a4fd3883fd520b
[ "Apache-2.0" ]
1
2018-03-18T14:46:34.000Z
2018-03-18T14:46:34.000Z
python/test/lib/zk/cache_test.py
cschutijser/scion
054cef53b31a577ed224a090d6a4fd3883fd520b
[ "Apache-2.0" ]
1
2020-03-20T01:28:56.000Z
2020-03-20T01:28:56.000Z
python/test/lib/zk/cache_test.py
cschutijser/scion
054cef53b31a577ed224a090d6a4fd3883fd520b
[ "Apache-2.0" ]
2
2020-03-14T16:03:27.000Z
2020-03-18T08:13:19.000Z
# Copyright 2015 ETH Zurich # # 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, sof...
36.279279
77
0.631653
1,397
12,081
5.163207
0.143164
0.022182
0.042978
0.076528
0.66089
0.634271
0.61708
0.60086
0.552752
0.516013
0
0.008697
0.238556
12,081
332
78
36.388554
0.77541
0.093866
0
0.541126
0
0
0.126319
0.06848
0
0
0
0
0.112554
1
0.108225
false
0
0.030303
0
0.17316
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
4b3b08e4408a36e23ecf7b49e3efe15dedf8336d
2,347
py
Python
scripts/macro-f1-tag.py
shuoyangd/stenella
a677c67c602f2229e4452ed7f38b778897df51c0
[ "MIT" ]
1
2021-11-09T04:57:24.000Z
2021-11-09T04:57:24.000Z
scripts/macro-f1-tag.py
shuoyangd/stenella
a677c67c602f2229e4452ed7f38b778897df51c0
[ "MIT" ]
null
null
null
scripts/macro-f1-tag.py
shuoyangd/stenella
a677c67c602f2229e4452ed7f38b778897df51c0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright © 2021 Shuoyang Ding <shuoyangd@gmail.com> # Created on 2021-02-11 # # Distributed under terms of the MIT license. import argparse import logging import math import sys logging.basicConfig( format='%(asctime)s %(levelname)s: %(message)s', datefmt='%Y-%m-%d %H:%M:%S', level=lo...
27.611765
127
0.647635
377
2,347
3.835544
0.334218
0.055325
0.033195
0.03112
0.17704
0.102351
0.062241
0.062241
0.029046
0
0
0.030818
0.198125
2,347
84
128
27.940476
0.736982
0.059651
0
0.116667
0
0.033333
0.222273
0.022727
0
0
0
0
0
1
0.033333
false
0
0.066667
0.016667
0.116667
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
4b3bc0d2b44d013537c672eed0453f853feeca74
8,865
py
Python
Stack/Solutions_Two.py
daniel-zeiler/potential-happiness
1c9d503a52c35dab8b031f72e63725578735ac73
[ "MIT" ]
null
null
null
Stack/Solutions_Two.py
daniel-zeiler/potential-happiness
1c9d503a52c35dab8b031f72e63725578735ac73
[ "MIT" ]
null
null
null
Stack/Solutions_Two.py
daniel-zeiler/potential-happiness
1c9d503a52c35dab8b031f72e63725578735ac73
[ "MIT" ]
null
null
null
import collections from typing import List def maxDepth(s: str) -> int: stack = [] max_depth = 0 for character in s: if character == '(': stack.append(character) elif character == ')': stack.pop() max_depth = max(max_depth, len(stack)) return max_depth ...
24.901685
77
0.502538
1,006
8,865
4.360835
0.125249
0.065193
0.031912
0.030773
0.300433
0.249829
0.226579
0.181901
0.134488
0.134488
0
0.014521
0.370784
8,865
355
78
24.971831
0.771961
0
0
0.417808
0
0
0.003835
0
0
0
0
0
0
1
0.075342
false
0
0.006849
0
0.164384
0.003425
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b3c016c7ef444898f5da6f026c91b333cec123a
4,684
py
Python
scripts/pklhisto2root.py
umd-lhcb/lhcb-ntuples-gen
d306895a0dc6bad2def19ca3d7d1304a5a9be239
[ "BSD-2-Clause" ]
null
null
null
scripts/pklhisto2root.py
umd-lhcb/lhcb-ntuples-gen
d306895a0dc6bad2def19ca3d7d1304a5a9be239
[ "BSD-2-Clause" ]
105
2018-12-20T19:09:19.000Z
2022-03-19T09:53:06.000Z
scripts/pklhisto2root.py
umd-lhcb/lhcb-ntuples-gen
d306895a0dc6bad2def19ca3d7d1304a5a9be239
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # # Stolen almost verbatim from: # https://gitlab.cern.ch/lhcb-rta/pidcalib2/-/blob/master/src/pidcalib2/pklhisto2root.py ############################################################################### # (c) Copyright 2021 CERN for the benefit of the LHCb Collaboration # # ...
35.755725
107
0.604825
608
4,684
4.508224
0.305921
0.068953
0.092302
0.039402
0.305728
0.263043
0.263043
0.249909
0.242977
0.242977
0
0.018036
0.25427
4,684
130
108
36.030769
0.766676
0.308924
0
0.2
0
0
0.048602
0.006991
0
0
0
0
0.013333
1
0.04
false
0.04
0.093333
0
0.146667
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
4b42581465b8edd2e244428913cc73b52bb89dd0
1,964
py
Python
ASC/Teme/tema1/consumer.py
mihai-constantin/ACS
098c99d82dad8fb5d0e909da930c72f1185a99e2
[ "Apache-2.0" ]
null
null
null
ASC/Teme/tema1/consumer.py
mihai-constantin/ACS
098c99d82dad8fb5d0e909da930c72f1185a99e2
[ "Apache-2.0" ]
null
null
null
ASC/Teme/tema1/consumer.py
mihai-constantin/ACS
098c99d82dad8fb5d0e909da930c72f1185a99e2
[ "Apache-2.0" ]
null
null
null
""" This module represents the Consumer. Computer Systems Architecture Course Assignment 1 March 2020 """ from threading import Thread from time import sleep class Consumer(Thread): """ Class that represents a consumer. """ def __init__(self, carts, marketplace, retry_wait_time, **kwargs): "...
30.215385
85
0.563646
211
1,964
5.042654
0.341232
0.050752
0.073308
0.031955
0.039474
0
0
0
0
0
0
0.008032
0.36609
1,964
64
86
30.6875
0.846586
0.26833
0
0.133333
0
0
0.019712
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b42f8a4c4ed9dadeb6bc01da50d750be154d614
978
py
Python
rnn_based/model2.py
gunkaynar/heart_anomaly
94ea2700e2c4d79028e0448022f6857df3c35e04
[ "MIT" ]
null
null
null
rnn_based/model2.py
gunkaynar/heart_anomaly
94ea2700e2c4d79028e0448022f6857df3c35e04
[ "MIT" ]
null
null
null
rnn_based/model2.py
gunkaynar/heart_anomaly
94ea2700e2c4d79028e0448022f6857df3c35e04
[ "MIT" ]
null
null
null
import torch.nn as nn import torch import numpy as np from torch.autograd import Variable class RNNModel(nn.Module): def __init__(self, input_dim, hidden_dim, layer_dim, output_dim): super(RNNModel, self).__init__() self.hidden_dim = hidden_dim self.layer_dim = layer_dim self.rnn = ...
31.548387
98
0.649284
158
978
3.803797
0.341772
0.08985
0.0599
0.056572
0.083195
0.083195
0
0
0
0
0
0.009223
0.223926
978
30
99
32.6
0.782609
0
0
0
0
0
0.00409
0
0
0
0
0
0
1
0.16
false
0
0.16
0
0.44
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
4b44ab85799151e1020d7bb62b4190682ce5fa39
1,974
py
Python
src/entities/report/actions/consult.py
LuisArmando-TestCoder/ShareGraph
fa89d37c8fe522c526b903fe25bd1e22fd769425
[ "MIT" ]
null
null
null
src/entities/report/actions/consult.py
LuisArmando-TestCoder/ShareGraph
fa89d37c8fe522c526b903fe25bd1e22fd769425
[ "MIT" ]
null
null
null
src/entities/report/actions/consult.py
LuisArmando-TestCoder/ShareGraph
fa89d37c8fe522c526b903fe25bd1e22fd769425
[ "MIT" ]
null
null
null
from utilities.getStore import getStore filePath = "./entities/bill/store.json" productFilePath = "./entities/product/store.json" def getProduct(name): for product in getStore(productFilePath): if product["name"] == name: return product def getProductBillsAverage(name): productPriceSummat...
28.608696
103
0.644377
191
1,974
6.659686
0.277487
0.012579
0.021226
0.040094
0.208333
0.132075
0.080189
0
0
0
0
0.00684
0.259372
1,974
68
104
29.029412
0.863201
0.019757
0
0.122449
0
0
0.19824
0.076605
0
0
0
0
0
1
0.122449
false
0
0.020408
0
0.183673
0.102041
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b44b5778d0cc6b0adc1458cef3d5591585dd53d
1,826
py
Python
discordbot.py
kinotan/discordpy-startup
1505c4f78deff7f793de75985e669ee84a78a3f2
[ "MIT" ]
null
null
null
discordbot.py
kinotan/discordpy-startup
1505c4f78deff7f793de75985e669ee84a78a3f2
[ "MIT" ]
null
null
null
discordbot.py
kinotan/discordpy-startup
1505c4f78deff7f793de75985e669ee84a78a3f2
[ "MIT" ]
null
null
null
#discord.pyのインポート from asyncio import sleep import discord client = discord.Client() #BOTログイン処理 @client.event async def on_ready(): print('Logged in as') print(client.user.name) print(client.user.id) print('------') await client.change_presence(game=discord.Game(name='!delchat *')) # BOT動作プログラム @cli...
37.265306
107
0.545455
179
1,826
5.452514
0.385475
0.090164
0.069672
0.064549
0.332992
0.289959
0.289959
0.246926
0.204918
0.204918
0
0.010213
0.356517
1,826
48
108
38.041667
0.820426
0.083242
0
0.294118
0
0
0.060205
0.013245
0
0
0
0
0
1
0
false
0
0.058824
0
0.058824
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b465725a6717037599028f9aa649996198118b6
268
py
Python
exec-shell.py
zqsheng/snippet
cb14300fc62c616d48e6552ad93c6d33b5e8c9a1
[ "Apache-2.0" ]
1
2018-09-10T11:31:33.000Z
2018-09-10T11:31:33.000Z
exec-shell.py
zqsheng/snippet
cb14300fc62c616d48e6552ad93c6d33b5e8c9a1
[ "Apache-2.0" ]
null
null
null
exec-shell.py
zqsheng/snippet
cb14300fc62c616d48e6552ad93c6d33b5e8c9a1
[ "Apache-2.0" ]
null
null
null
import os import time exec_count = 100 cmds = [] cmds.append("tar -cPzf /opt/web.tar.gz /opt/web/ /opt/soft") cmds.append("rm -f /opt/web.tar.gz") for i in range(exec_count): for cmd in cmds: if os.system(cmd) != 0: break time.sleep(1)
24.363636
60
0.604478
47
268
3.404255
0.574468
0.1125
0.1125
0.1375
0
0
0
0
0
0
0
0.02451
0.238806
268
11
61
24.363636
0.759804
0
0
0
0
0
0.245353
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
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
4b48d527c36dcd783a13d6a5609545147bc8c89c
45,165
py
Python
platform/hwconf_data/zgm13/PythonSnippet/ExporterModel.py
lenloe1/v2.7
9ac9c4a7bb37987af382c80647f42d84db5f2e1d
[ "Zlib" ]
null
null
null
platform/hwconf_data/zgm13/PythonSnippet/ExporterModel.py
lenloe1/v2.7
9ac9c4a7bb37987af382c80647f42d84db5f2e1d
[ "Zlib" ]
1
2020-08-25T02:36:22.000Z
2020-08-25T02:36:22.000Z
platform/hwconf_data/zgm13/PythonSnippet/ExporterModel.py
lenloe1/v2.7
9ac9c4a7bb37987af382c80647f42d84db5f2e1d
[ "Zlib" ]
1
2020-08-25T01:56:04.000Z
2020-08-25T01:56:04.000Z
from . import types from . import dep from . import RuntimeModel from . import Metadata class Property(object): def __init__(self, name, description, namespace='', visible=False, readonly=False, define_name=None, long_description=None): ''' :param name: Name of the property (string) :param...
44.497537
179
0.613949
5,201
45,165
5.138819
0.080946
0.017959
0.01347
0.024956
0.444607
0.391814
0.342612
0.302915
0.286976
0.27968
0
0.003121
0.28356
45,165
1,014
180
44.54142
0.822857
0.112499
0
0.289474
0
0
0.056353
0.000589
0
0
0.000512
0.000986
0
1
0.097953
false
0.002924
0.005848
0.002924
0.154971
0.008772
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b4ddf5eeb83ed879035c41d407475a7baf89592
6,320
py
Python
benchmark/HIGGS/explore/contour_nll.py
victor-estrade/SystGradDescent
822e7094290301ec47a99433381a8d6406798aff
[ "MIT" ]
2
2019-03-20T09:05:02.000Z
2019-03-20T15:23:44.000Z
benchmark/HIGGS/explore/contour_nll.py
victor-estrade/SystGradDescent
822e7094290301ec47a99433381a8d6406798aff
[ "MIT" ]
null
null
null
benchmark/HIGGS/explore/contour_nll.py
victor-estrade/SystGradDescent
822e7094290301ec47a99433381a8d6406798aff
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import division from __future__ import print_function from __future__ import absolute_import from __future__ import unicode_literals import os import logging import datetime import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from config impor...
39.012346
125
0.708861
1,012
6,320
4.222332
0.151186
0.039785
0.041189
0.043061
0.566113
0.494734
0.428739
0.39106
0.361573
0.321086
0
0.009211
0.158228
6,320
161
126
39.254658
0.793985
0.008861
0
0.322835
0
0
0.07637
0.012143
0
0
0
0
0
1
0.03937
false
0
0.188976
0
0.228346
0.015748
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b5611952b114a3d2cf44eadfe8d22e693d8c643
682
py
Python
python_fundamentals/Multiple_Sum_Average/index.py
justnclrk/Python
0922961cbd94694a69ae8132a5c33baf552d8d89
[ "MIT" ]
null
null
null
python_fundamentals/Multiple_Sum_Average/index.py
justnclrk/Python
0922961cbd94694a69ae8132a5c33baf552d8d89
[ "MIT" ]
8
2020-06-06T01:02:06.000Z
2022-03-12T00:24:13.000Z
python_fundamentals/Multiple_Sum_Average/index.py
justnclrk/Python
0922961cbd94694a69ae8132a5c33baf552d8d89
[ "MIT" ]
null
null
null
# Multiples -- Part I - Write code that prints all the odd numbers from 1 to 1000. Use the for loop and don't use a list to do this exercise for i in range(1, 1000, 2): print(i) # Multiples -- Part II - Create another program that prints all the multiples of 5 from 5 to 1,000,000 for m in range(5, 1000000, 5): ...
40.117647
140
0.64956
141
682
3.141844
0.361702
0.090293
0.027088
0.045147
0.311512
0.230248
0.230248
0
0
0
0
0.123574
0.228739
682
16
141
42.625
0.718631
0.667155
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b5646cef1fca290360a2f8a03244f3cf60a9b62
2,817
py
Python
examples/gen9_valset_test.py
mgesteiro/pyubx2
02fd8fa2863b88ed2d746b5800717a1b6b213181
[ "BSD-3-Clause" ]
null
null
null
examples/gen9_valset_test.py
mgesteiro/pyubx2
02fd8fa2863b88ed2d746b5800717a1b6b213181
[ "BSD-3-Clause" ]
null
null
null
examples/gen9_valset_test.py
mgesteiro/pyubx2
02fd8fa2863b88ed2d746b5800717a1b6b213181
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 """ Demo example to test CFG-VALSET ublox message - generation 9 @author: mgesteiro """ import sys import time from serial import Serial, SerialException, SerialTimeoutException from pyubx2 import ( UBXMessage, GET, SET, VALSET_RAM, UBXMessageError, UBXTypeError, UBXP...
28.17
88
0.606674
320
2,817
5.290625
0.484375
0.028352
0.028352
0.046072
0.095688
0.095688
0.095688
0.055523
0.055523
0.055523
0
0.065796
0.266241
2,817
99
89
28.454545
0.750847
0.160454
0
0.179104
0
0
0.271706
0.060043
0
0
0.007775
0
0
1
0.029851
false
0
0.059701
0
0.119403
0.179104
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b57edd76cfedc441b5ed69fe2a9fd78c4dbd2d2
3,996
py
Python
main.py
saswatsamal/Snake-Game
2c0f427fd6001f09d26a4586ce55453af706c355
[ "CC0-1.0" ]
2
2021-04-25T07:34:14.000Z
2021-04-30T15:24:55.000Z
main.py
saswatsamal/Snake-Game
2c0f427fd6001f09d26a4586ce55453af706c355
[ "CC0-1.0" ]
null
null
null
main.py
saswatsamal/Snake-Game
2c0f427fd6001f09d26a4586ce55453af706c355
[ "CC0-1.0" ]
null
null
null
import pygame import time import sys, random pygame.init() yellow = (255, 255, 102) green = (0, 255, 0) black = (0,0,0) width = 1280 height = 720 gameDisplay = pygame.display.set_mode((width, height)) pygame.display.set_caption('Snake Game By Saswat Samal') clock = pygame.time.Clock() snake_block = 10 snak...
27.369863
104
0.56006
511
3,996
4.209393
0.221135
0.069735
0.039052
0.041841
0.362622
0.320316
0.295212
0.261274
0.222222
0.222222
0
0.044461
0.335836
3,996
146
105
27.369863
0.766014
0
0
0.336538
0
0
0.036277
0
0
0
0
0
0
1
0.048077
false
0
0.028846
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b59cb1bcbcd0c6d58e12de2aac812a57e139151
918
py
Python
SoftMax_Regression.py
chunish/tfboy-is-on-the-way
7cd4c1f7c0c1dd94189377ee0751f2c232a1e98c
[ "Apache-2.0" ]
null
null
null
SoftMax_Regression.py
chunish/tfboy-is-on-the-way
7cd4c1f7c0c1dd94189377ee0751f2c232a1e98c
[ "Apache-2.0" ]
null
null
null
SoftMax_Regression.py
chunish/tfboy-is-on-the-way
7cd4c1f7c0c1dd94189377ee0751f2c232a1e98c
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets("MNIST_data/", one_hot = True) sess = tf.InteractiveSession() x = tf.placeholder(tf.float32, [None, 784]) W = tf.Variable(tf.zeros([784, 10])) b = tf.Variable(tf.zeros([10])) y = tf.nn.softmax(tf.matm...
31.655172
87
0.734205
149
918
4.33557
0.483221
0.041796
0.04644
0.068111
0.080495
0
0
0
0
0
0
0.037713
0.104575
918
28
88
32.785714
0.748175
0.004357
0
0
0
0
0.012061
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
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
4b5fd841b1005516ab298b5be16fb1dd41b071b3
3,190
py
Python
taehyoungram/images/views.py
TaeHyoungKwon/taehyoungram
055c9effdaa718d60e7627196754ea6b48dded20
[ "MIT" ]
null
null
null
taehyoungram/images/views.py
TaeHyoungKwon/taehyoungram
055c9effdaa718d60e7627196754ea6b48dded20
[ "MIT" ]
7
2020-02-12T01:23:48.000Z
2022-03-11T23:26:02.000Z
taehyoungram/images/views.py
TaeHyoungKwon/taehyoungram
055c9effdaa718d60e7627196754ea6b48dded20
[ "MIT" ]
null
null
null
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from .models import Image, Comment, Like from .serializers import ImageSerializer, CommentSerializer, LikeSerializer class Feed(APIView): def get(self, request, format=None): user ...
27.73913
89
0.626646
354
3,190
5.449153
0.228814
0.087092
0.091239
0.121306
0.519959
0.414723
0.35718
0.35718
0.31156
0.255054
0
0.015138
0.295925
3,190
114
90
27.982456
0.843722
0
0
0.426667
0
0
0
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.36
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
4b65eb4040ecf11e53140f9d3ec6fb5084fff907
6,298
py
Python
src/utilities/download_bc.py
geoschem/integrated_methane_inversion
0615e3b76c111beadaf0d7fb5b9fa99aa782f403
[ "MIT" ]
null
null
null
src/utilities/download_bc.py
geoschem/integrated_methane_inversion
0615e3b76c111beadaf0d7fb5b9fa99aa782f403
[ "MIT" ]
3
2022-02-14T20:42:35.000Z
2022-03-29T18:11:40.000Z
src/utilities/download_bc.py
geoschem/integrated_methane_inversion
0615e3b76c111beadaf0d7fb5b9fa99aa782f403
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Description: ------------ This Python script (assumes Python3) downloads boundary conditions files from AWS S3 to a target directory for the requested date range. Remarks: -------- (1) Jiawei Zhuang found that it is much faster to issue aws s3 cp commands from a bash script than...
30.872549
88
0.580343
790
6,298
4.473418
0.258228
0.043577
0.040747
0.01811
0.233729
0.164686
0.164686
0.131862
0.066214
0.066214
0
0.025549
0.335027
6,298
203
89
31.024631
0.81829
0.355668
0
0.043478
0
0
0.109699
0.030342
0
0
0
0
0.01087
1
0.043478
false
0
0.032609
0
0.086957
0.065217
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b6add180192d528e3ed133e29c757a81886beb8
483
py
Python
NoteBooks/Curso de Python/Python/Paradigmas/Object Oriented Programming/Modelando Objetos_2.py
Alejandro-sin/Learning_Notebooks
161d6bed4c7b1d171b45f61c0cc6fa91e9894aad
[ "MIT" ]
1
2021-02-26T13:12:22.000Z
2021-02-26T13:12:22.000Z
NoteBooks/Curso de Python/Python/Paradigmas/Object Oriented Programming/Modelando Objetos_2.py
Alejandro-sin/Learning_Notebooks
161d6bed4c7b1d171b45f61c0cc6fa91e9894aad
[ "MIT" ]
null
null
null
NoteBooks/Curso de Python/Python/Paradigmas/Object Oriented Programming/Modelando Objetos_2.py
Alejandro-sin/Learning_Notebooks
161d6bed4c7b1d171b45f61c0cc6fa91e9894aad
[ "MIT" ]
null
null
null
""" Ejercicio para operación entre currencies """ """ Representación del currency""" class Curency: def __init__(self, name, symbol, factor): self.name = name self.symbol = symbol self.factor = factor # No me queda muy claro el uso de esta función, sirve para mostrar puntualmente qué?...
17.888889
84
0.621118
60
483
4.866667
0.65
0.082192
0
0
0
0
0
0
0
0
0
0.011299
0.267081
483
26
85
18.576923
0.813559
0.459627
0
0
0
0
0.042453
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b6f1aec2b3a7aa82fa7792516bb55e9223b7c08
1,063
py
Python
bot.py
federicosapienza/InboxNotionTelegramBot
031d5e78cd352dfb692b93f3e0b421695f1dc18e
[ "MIT" ]
null
null
null
bot.py
federicosapienza/InboxNotionTelegramBot
031d5e78cd352dfb692b93f3e0b421695f1dc18e
[ "MIT" ]
null
null
null
bot.py
federicosapienza/InboxNotionTelegramBot
031d5e78cd352dfb692b93f3e0b421695f1dc18e
[ "MIT" ]
null
null
null
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters, ConversationHandler import logging from utils import TELEGRAM_TOKEN from handlers import start, ask_new_url, get_url, get_description, cancel from handlers import URL_URL, URL_DESCRIPTION logging.basicConfig(format='%(levelname)s - %(message)s...
25.926829
94
0.739417
118
1,063
6.415254
0.432203
0.110964
0.047556
0.073976
0
0
0
0
0
0
0
0.002257
0.16651
1,063
40
95
26.575
0.852144
0
0
0
0
0
0.032926
0
0
0
0
0
0
1
0.04
false
0
0.2
0
0.24
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
4b6fc4e98137fcd105847298b470d6ad64f71618
841
py
Python
examples/face.py
birkenfeld/python-gr
1d6cd36616a73c8e569b8348869e6e30f3830ec4
[ "RSA-MD" ]
null
null
null
examples/face.py
birkenfeld/python-gr
1d6cd36616a73c8e569b8348869e6e30f3830ec4
[ "RSA-MD" ]
null
null
null
examples/face.py
birkenfeld/python-gr
1d6cd36616a73c8e569b8348869e6e30f3830ec4
[ "RSA-MD" ]
null
null
null
#!/usr/bin/env python """ Simple surface plot example """ from gr import * from math import * x = [-2 + i * 0.5 for i in range(0, 29)] y = [-7 + i * 0.5 for i in range(0, 29)] z = list(range(0, 841)) for i in range(0, 29): for j in range(0, 29): r1 = sqrt((x[j] - 5)**2 + y[i]**2) r2 = sqrt((x[j] + 5)**2 +...
22.72973
64
0.567182
171
841
2.766082
0.374269
0.063425
0.067653
0.084567
0.224101
0.224101
0.118393
0.118393
0.071882
0
0
0.156805
0.196195
841
36
65
23.361111
0.542899
0.057075
0
0
0
0
0.061147
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b714a892a0b336d54d129baf723bfd26bcf8c4a
1,495
py
Python
app/core.py
antmicro/raw-image-data-previewer
1fc14848a27ce628047cf3e473a9f30f83c9892d
[ "Apache-2.0" ]
5
2021-06-08T15:37:23.000Z
2021-06-10T15:41:21.000Z
app/core.py
antmicro/raw-image-data-previewer
1fc14848a27ce628047cf3e473a9f30f83c9892d
[ "Apache-2.0" ]
37
2021-03-12T12:48:56.000Z
2021-12-09T11:41:05.000Z
app/core.py
antmicro/raw-image-data-previewer
1fc14848a27ce628047cf3e473a9f30f83c9892d
[ "Apache-2.0" ]
9
2021-03-22T14:03:37.000Z
2021-12-31T07:22:04.000Z
"""Main functionalities.""" from .image.image import (Image, RawDataContainer) from .image.color_format import AVAILABLE_FORMATS from .parser.factory import ParserFactory import cv2 as cv import os def load_image(file_path, color_format, width): try: image = Image.from_file(file_path) parser = Pa...
26.22807
69
0.681605
182
1,495
5.368132
0.357143
0.101331
0.04913
0.06346
0.131013
0.067554
0.067554
0.067554
0.067554
0
0
0.002571
0.219398
1,495
56
70
26.696429
0.834619
0.014047
0
0.210526
0
0
0.058583
0
0
0
0
0
0
1
0.105263
false
0
0.131579
0
0.315789
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
4b7544498643883f50311519a373ed59f4faa469
3,478
py
Python
app/urls.py
etihadprime/etihadwebclass
3b46d9068afeb0806198ef08fe26849ab9a09bb9
[ "Apache-2.0" ]
null
null
null
app/urls.py
etihadprime/etihadwebclass
3b46d9068afeb0806198ef08fe26849ab9a09bb9
[ "Apache-2.0" ]
6
2021-03-19T03:55:20.000Z
2021-09-22T19:06:06.000Z
app/urls.py
etihadprime/etihadwebclass
3b46d9068afeb0806198ef08fe26849ab9a09bb9
[ "Apache-2.0" ]
null
null
null
from django.urls import path from .views import teacherregister,studentregister,login_view,logout from . import views from .views import ( ClassroomCreateView,ClassroomListView,ClassroomDetailView,ClassroomUpdateView,ClassroomDeleteView, SubjectCreateView,SubjectListView,SubjectDetailView,SubjectUpdateView,SubjectDelet...
70.979592
115
0.648074
322
3,478
6.909938
0.208075
0.082697
0.098876
0.051236
0
0
0
0
0
0
0
0.006494
0.20299
3,478
49
116
70.979592
0.796176
0.039103
0
0
0
0
0.25412
0.066227
0
0
0
0
0
1
0
false
0
0.097561
0
0.097561
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b76dabace6084b6df07b8d27c9db12c437ca835
44,634
py
Python
qaboard/qa.py
Samsung/qaboard
a2290f33da2bbd87cacf95822e1c85376083dfa1
[ "Apache-2.0" ]
51
2019-12-02T07:25:58.000Z
2022-03-23T13:27:11.000Z
qaboard/qa.py
Samsung/qaboard
a2290f33da2bbd87cacf95822e1c85376083dfa1
[ "Apache-2.0" ]
25
2020-01-20T16:13:49.000Z
2022-02-19T17:07:38.000Z
qaboard/qa.py
Samsung/qaboard
a2290f33da2bbd87cacf95822e1c85376083dfa1
[ "Apache-2.0" ]
15
2020-01-17T21:21:17.000Z
2022-02-23T10:13:48.000Z
#!/usr/bin/env python """ CLI tool to runs various tasks related to QA. """ import os import time from pathlib import Path import sys import traceback import json import yaml import uuid import datetime import click from .run import RunContext from .runners import runners, Job, JobGroup from .runners.lsf import LsfPr...
50.720455
318
0.703992
6,337
44,634
4.772921
0.117721
0.019639
0.012167
0.014448
0.32077
0.260762
0.2277
0.184818
0.165113
0.136646
0
0.001866
0.171663
44,634
879
319
50.778157
0.816212
0.139759
0
0.251852
0
0.035556
0.252898
0.026664
0
0
0
0.002275
0.001481
1
0.019259
false
0.020741
0.078519
0
0.102222
0.022222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b77f58f441974f14bdaad4bde4687feee866e3a
5,838
py
Python
20210220_simulation_sample/data_handler.py
3x3x3/Presentations
3c31b136ed4d9214bb3730fa41a4a575da38edc9
[ "MIT" ]
null
null
null
20210220_simulation_sample/data_handler.py
3x3x3/Presentations
3c31b136ed4d9214bb3730fa41a4a575da38edc9
[ "MIT" ]
null
null
null
20210220_simulation_sample/data_handler.py
3x3x3/Presentations
3c31b136ed4d9214bb3730fa41a4a575da38edc9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import threading import time import global_def as gd from db_reader import DbReaderDef, DbReaer from queue import Queue, Empty class DataHandlerThd(threading.Thread): def __init__(self, req_queue: Queue, rcv_queue: Queue, db_host: str, db_port: int, db_user: str, db_pw: str, db_name: str, ...
32.797753
162
0.52381
725
5,838
3.838621
0.194483
0.043119
0.027668
0.017966
0.348904
0.252964
0.185411
0.148042
0.099892
0.071146
0
0.013576
0.406989
5,838
177
163
32.983051
0.790295
0.017814
0
0.255639
0
0
0.026192
0
0
0
0
0
0
1
0.030075
false
0.007519
0.037594
0
0.112782
0.015038
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b7a04ca06d8701872be7f11c6588abbce31dce4
16,294
py
Python
hypothesis/_settings.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
hypothesis/_settings.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
hypothesis/_settings.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
# coding=utf-8 # # This file is part of Hypothesis (https://github.com/DRMacIver/hypothesis) # # Most of this work is copyright (C) 2013-2015 David R. MacIver # (david@drmaciver.com), but it contains contributions by others. See # https://github.com/DRMacIver/hypothesis/blob/master/CONTRIBUTING.rst for a # full list of...
31.334615
79
0.650669
1,949
16,294
5.283222
0.238584
0.013985
0.022434
0.009226
0.098378
0.07643
0.063417
0.050403
0.033019
0.033019
0
0.002965
0.275562
16,294
519
80
31.39499
0.869366
0.167178
0
0.228883
0
0
0.228496
0.013117
0
0
0
0
0.008174
1
0.092643
false
0.00545
0.038147
0.027248
0.220708
0.00545
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b7c945d6b1d560f6d85d5ab876aed99787d4072
1,989
py
Python
code/MergeTrack/print_max_reid_distance.py
MTonyM/PReMVOS
3d01f0c6156628083a4c8441b4b57622c500e04e
[ "MIT" ]
140
2018-10-25T11:58:34.000Z
2022-01-18T15:29:38.000Z
code/MergeTrack/print_max_reid_distance.py
MTonyM/PReMVOS
3d01f0c6156628083a4c8441b4b57622c500e04e
[ "MIT" ]
18
2018-11-21T04:48:03.000Z
2020-09-14T09:30:56.000Z
code/MergeTrack/print_max_reid_distance.py
MTonyM/PReMVOS
3d01f0c6156628083a4c8441b4b57622c500e04e
[ "MIT" ]
32
2018-10-25T11:58:57.000Z
2021-12-27T06:13:45.000Z
import glob from numpy.linalg import norm import numpy as np from copy import deepcopy as copy from MergeTrack.merge_functions import read_ann,read_props from MergeTrack.ReID_net_functions import ReID_net_init, add_ReID input_images = "DAVIS/val17/" input_proposals = "DAVIS/ReID_props/" first_frame_anns = "DAVIS/val1...
38.25
142
0.723479
307
1,989
4.407166
0.250814
0.053215
0.059128
0.035477
0.144863
0.102735
0.042868
0.042868
0
0
0
0.005914
0.149824
1,989
52
143
38.25
0.794205
0.128708
0
0
0
0
0.063731
0
0
0
0
0
0
1
0
false
0
0.171429
0
0.171429
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b7e597bab0f3442569b2c0f944ee9a51ebdc5c8
5,004
py
Python
tests/unit/html/test_search_page.py
tttgm/basketball_reference_web_scraper
2dbd9d7bacbcfee17f08bcf8629bd7d50893761d
[ "MIT" ]
325
2015-10-27T03:15:49.000Z
2022-03-16T06:49:12.000Z
tests/unit/html/test_search_page.py
tttgm/basketball_reference_web_scraper
2dbd9d7bacbcfee17f08bcf8629bd7d50893761d
[ "MIT" ]
173
2018-10-16T04:11:05.000Z
2022-03-29T17:52:08.000Z
tests/unit/html/test_search_page.py
tttgm/basketball_reference_web_scraper
2dbd9d7bacbcfee17f08bcf8629bd7d50893761d
[ "MIT" ]
97
2016-04-09T19:11:28.000Z
2022-03-21T09:57:50.000Z
from unittest import TestCase from unittest.mock import patch, MagicMock, PropertyMock from basketball_reference_web_scraper.html import SearchPage, PlayerSearchResult class TestSearchPage(TestCase): def test_nba_aba_baa_players_content_query(self): self.assertEqual( SearchPage(html=MagicMock...
42.40678
116
0.711631
590
5,004
5.567797
0.130508
0.047489
0.071233
0.112024
0.700761
0.683105
0.625571
0.592998
0.592998
0.471233
0
0.000751
0.202038
5,004
117
117
42.769231
0.821938
0
0
0.375
0
0
0.130695
0.079736
0
0
0
0
0.125
1
0.09375
false
0
0.03125
0
0.135417
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
4b7fad07fb9954bb150ff9b9a3fc6a0e8f2cf560
19,891
py
Python
cave/com.raytheon.viz.gfe/localization/gfe/userPython/smartTools/WindGustFromAlgorithm.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
null
null
null
cave/com.raytheon.viz.gfe/localization/gfe/userPython/smartTools/WindGustFromAlgorithm.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
null
null
null
cave/com.raytheon.viz.gfe/localization/gfe/userPython/smartTools/WindGustFromAlgorithm.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
1
2021-10-30T00:03:05.000Z
2021-10-30T00:03:05.000Z
## # This software was developed and / or modified by Raytheon Company, # pursuant to Contract DG133W-05-CQ-1067 with the US Government. # # U.S. EXPORT CONTROLLED TECHNICAL DATA # This software product contains export-restricted data whose # export/transfer/disclosure is restricted by U.S. law. Dissemination # to ...
48.045894
195
0.42934
1,904
19,891
4.448004
0.26208
0.003306
0.01228
0.005668
0.459558
0.414571
0.388003
0.380446
0.380446
0.380446
0
0.045883
0.32286
19,891
413
196
48.162228
0.582894
0.394902
0
0.259843
0
0.007874
0.114477
0.002428
0
0
0
0
0
1
0.023622
false
0
0.031496
0
0.094488
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
4b7fd5f816b4e255d1e40adf591dc8b3e21efaa2
2,291
py
Python
CH04_Iterators_and_Generators/4.4.Implementing_the_iterator_protocol.py
Chang-Liu-TAMU/Python-Cookbook-reading
7b974c32f77b4b3d7cfeed30d1671081057c566f
[ "MIT" ]
null
null
null
CH04_Iterators_and_Generators/4.4.Implementing_the_iterator_protocol.py
Chang-Liu-TAMU/Python-Cookbook-reading
7b974c32f77b4b3d7cfeed30d1671081057c566f
[ "MIT" ]
null
null
null
CH04_Iterators_and_Generators/4.4.Implementing_the_iterator_protocol.py
Chang-Liu-TAMU/Python-Cookbook-reading
7b974c32f77b4b3d7cfeed30d1671081057c566f
[ "MIT" ]
null
null
null
# @Time: 2022/4/12 20:50 # @Author: chang liu # @Email: chang_liu_tamu@gmail.com # @File:4.4.Implementing_the_iterator_protocol.py ################ clean version ######################### # class Node: # def __init__(self, val): # self._value = val # self._children = [] # # def __repr__(self): ...
22.91
70
0.572676
274
2,291
4.434307
0.255474
0.118519
0.064198
0.069959
0.341564
0.302058
0.257613
0.257613
0.257613
0.257613
0
0.01218
0.283282
2,291
100
71
22.91
0.727771
0.338717
0
0.136364
0
0
0.007158
0
0
0
0
0
0
1
0.181818
false
0
0
0.090909
0.409091
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b800dc76b871db39c746e292171f32b25ee44ff
29,762
py
Python
FGPVAE_model.py
metodj/FGP-VAE
607559ab465b29878f10a5d95b8e3c6ec8d94e0c
[ "MIT" ]
3
2021-01-27T14:06:01.000Z
2021-09-09T12:10:34.000Z
FGPVAE_model.py
metodj/FGP-VAE
607559ab465b29878f10a5d95b8e3c6ec8d94e0c
[ "MIT" ]
null
null
null
FGPVAE_model.py
metodj/FGP-VAE
607559ab465b29878f10a5d95b8e3c6ec8d94e0c
[ "MIT" ]
null
null
null
import tensorflow as tf import tensorflow_probability as tfp import numpy as np import pickle import random from utils import gauss_cross_entropy tfk = tfp.math.psd_kernels def _add_diagonal_jitter(matrix, jitter=1e-6): return tf.linalg.set_diag(matrix, tf.linalg.diag_part(matrix) + jitter) cla...
42.456491
123
0.556145
4,318
29,762
3.562297
0.091014
0.007801
0.022884
0.003641
0.584319
0.520869
0.475166
0.436354
0.390131
0.38012
0
0.019712
0.335226
29,762
700
124
42.517143
0.757746
0.247799
0
0.47076
0
0
0.004329
0.00226
0
0
0
0
0
1
0.035088
false
0.002924
0.017544
0.002924
0.090643
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
4b849b209996da99ee667a5b45419939d4653d3a
9,495
py
Python
tests/test_protocols/test_generator.py
cyenyxe/agents-aea
c2aec9127028ae13def3f69fbc80d35400de1565
[ "Apache-2.0" ]
null
null
null
tests/test_protocols/test_generator.py
cyenyxe/agents-aea
c2aec9127028ae13def3f69fbc80d35400de1565
[ "Apache-2.0" ]
1
2020-02-21T14:28:13.000Z
2020-03-05T14:53:53.000Z
tests/test_protocols/test_generator.py
cyenyxe/agents-aea
c2aec9127028ae13def3f69fbc80d35400de1565
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # 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 ...
45.214286
128
0.685519
1,011
9,495
6.18002
0.22453
0.080666
0.06402
0.083547
0.601312
0.571063
0.557939
0.529609
0.509123
0.509123
0
0.003816
0.199579
9,495
209
129
45.430622
0.818289
0.758189
0
0.041667
0
0
0.133615
0.025785
0
0
0
0
0
1
0.041667
false
0.020833
0.166667
0
0.229167
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
4b86ef7acd08f81f39f9fde4c5d2779a3995da3e
6,981
py
Python
tabfkioskgoogledrive/MyGDTest3.py
isalan06/myflaskapiserver
2922f62c9b9ede2b6cba2db774e924b226a120f7
[ "MIT" ]
null
null
null
tabfkioskgoogledrive/MyGDTest3.py
isalan06/myflaskapiserver
2922f62c9b9ede2b6cba2db774e924b226a120f7
[ "MIT" ]
null
null
null
tabfkioskgoogledrive/MyGDTest3.py
isalan06/myflaskapiserver
2922f62c9b9ede2b6cba2db774e924b226a120f7
[ "MIT" ]
null
null
null
import os.path import os from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request from google.oauth2.credentials import Credentials from datetime import datetime # If modifying these scopes, delete the file token.json. SCOPES ...
37.331551
104
0.578284
792
6,981
5.018939
0.207071
0.019371
0.055346
0.07044
0.52956
0.523522
0.523522
0.501132
0.423648
0.423648
0
0.007974
0.281478
6,981
187
105
37.331551
0.78449
0.091391
0
0.480263
0
0.006579
0.207885
0.053357
0
0
0
0
0
1
0.013158
false
0
0.046053
0
0.065789
0.144737
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b88bb3938cbed6bd9ddf6e52090c0d588399179
2,631
py
Python
clustering/conditional_probs.py
griffij/QuakeRates
70069bb271a1987e72fcbdf3aa0c0a8a79591580
[ "Apache-2.0" ]
null
null
null
clustering/conditional_probs.py
griffij/QuakeRates
70069bb271a1987e72fcbdf3aa0c0a8a79591580
[ "Apache-2.0" ]
null
null
null
clustering/conditional_probs.py
griffij/QuakeRates
70069bb271a1987e72fcbdf3aa0c0a8a79591580
[ "Apache-2.0" ]
null
null
null
"""Calculate conditional probability of a short interevent time being followed by another short interevent time, compared with the unconditional probability. This is used to test whether fault records have memory """ import os, sys from glob import glob import numpy as np import matplotlib.pyplot as plt from QuakeRat...
36.541667
84
0.707336
373
2,631
4.697051
0.412869
0.03653
0.027397
0.022831
0.01484
0
0
0
0
0
0
0.010984
0.204105
2,631
71
85
37.056338
0.825692
0.232231
0
0.038462
0
0
0.044933
0.031952
0
0
0
0
0
1
0
false
0
0.096154
0
0.096154
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b8e4f10e68bbf6b6e9801bf943ec3cb8b4d1bf7
3,120
py
Python
src/dynamic_programming/basic_scripts/value_iteration.py
johannesharmse/move_37_course
a2060129cbc6fb651113aa18f1a6ea2673845182
[ "MIT" ]
1
2019-03-13T06:29:54.000Z
2019-03-13T06:29:54.000Z
src/dynamic_programming/basic_scripts/value_iteration.py
johannesharmse/move_37_course
a2060129cbc6fb651113aa18f1a6ea2673845182
[ "MIT" ]
null
null
null
src/dynamic_programming/basic_scripts/value_iteration.py
johannesharmse/move_37_course
a2060129cbc6fb651113aa18f1a6ea2673845182
[ "MIT" ]
null
null
null
# From The School of AI's Move 37 Course https://www.theschool.ai/courses/move-37-course/ # Coding demo by Colin Skow # Forked from https://github.com/lazyprogrammer/machine_learning_examples/tree/master/rl # Credit goes to LazyProgrammer from __future__ import print_function, division from builtins import range # Note...
31.515152
89
0.709936
501
3,120
4.243513
0.351297
0.008467
0.042333
0.026811
0.176388
0.151929
0.122295
0.06397
0.06397
0.06397
0
0.007235
0.202564
3,120
98
90
31.836735
0.847267
0.400321
0
0.098361
0
0
0.020574
0
0
0
0
0
0
1
0.065574
false
0
0.081967
0
0.213115
0.131148
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b8f66af4fc844e8c289287b2a2bc4ba119f529e
19,238
py
Python
photoplace/addons/CSVImport/GTKcsvimport.py
jriguera/photoplace
93674ef8531d0e5b8f26de9ba568ed8e115b27e1
[ "Apache-2.0" ]
10
2015-02-20T19:01:19.000Z
2021-12-13T23:07:19.000Z
photoplace/addons/CSVImport/GTKcsvimport.py
jriguera/photoplace
93674ef8531d0e5b8f26de9ba568ed8e115b27e1
[ "Apache-2.0" ]
1
2020-06-16T13:23:05.000Z
2021-02-13T14:14:57.000Z
photoplace/addons/CSVImport/GTKcsvimport.py
jriguera/photoplace
93674ef8531d0e5b8f26de9ba568ed8e115b27e1
[ "Apache-2.0" ]
4
2017-03-28T23:06:14.000Z
2019-09-25T07:59:36.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # GTKcsvimport.py # # Copyright 2010-2015 Jose Riguera Lopez <jriguera@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...
39.995842
218
0.615501
2,342
19,238
4.790777
0.153715
0.031551
0.061497
0.064973
0.379144
0.292068
0.183244
0.145989
0.077718
0.059358
0
0.011798
0.281838
19,238
480
219
40.079167
0.800304
0.049641
0
0.26799
0
0.002481
0.074862
0
0
0
0
0
0
1
0.042184
false
0.004963
0.129032
0
0.176179
0.009926
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b8fcf8f0fe4212ea52ae11e77f6cd66ebb3437f
9,024
py
Python
src/opt_utils.py
mateuszz0000/POSA
1295065251dd22c89d923fbff7d8bf4c53339d95
[ "CNRI-Python", "Xnet", "Info-ZIP", "X11" ]
71
2021-05-02T21:40:29.000Z
2022-03-30T03:52:01.000Z
src/opt_utils.py
mateuszz0000/POSA
1295065251dd22c89d923fbff7d8bf4c53339d95
[ "CNRI-Python", "Xnet", "Info-ZIP", "X11" ]
4
2021-06-18T06:31:29.000Z
2021-12-07T07:29:21.000Z
src/opt_utils.py
mateuszz0000/POSA
1295065251dd22c89d923fbff7d8bf4c53339d95
[ "CNRI-Python", "Xnet", "Info-ZIP", "X11" ]
10
2021-05-08T08:16:31.000Z
2022-02-17T04:40:30.000Z
# -*- coding: utf-8 -*- # Max-Planck-Gesellschaft zur Förderung der Wissenschaften e.V. (MPG) is # holder of all proprietary rights on this computer program. # You can only use this computer program if you have closed # a license agreement with MPG or you get the right to use the computer # program from someone who is...
47
120
0.625332
1,240
9,024
4.281452
0.195161
0.034281
0.018648
0.02072
0.304012
0.246374
0.190055
0.165191
0.14466
0.092673
0
0.017694
0.273493
9,024
191
121
47.246073
0.791946
0.098515
0
0.078014
0
0
0.010229
0
0
0
0
0
0
1
0.056738
false
0
0.042553
0
0.156028
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
4b95d82a263834a4e169c435b74dfded71be2e85
5,538
py
Python
siemstress/trigger.py
dogoncouch/siemstress
be7f60bb0228a886d48deb4f46309be7fb8aa0af
[ "MIT" ]
28
2017-08-14T12:41:56.000Z
2022-02-18T01:18:11.000Z
siemstress/trigger.py
dogoncouch/siemstress
be7f60bb0228a886d48deb4f46309be7fb8aa0af
[ "MIT" ]
1
2017-08-23T10:47:16.000Z
2017-08-24T18:52:48.000Z
siemstress/trigger.py
dogoncouch/siemstress
be7f60bb0228a886d48deb4f46309be7fb8aa0af
[ "MIT" ]
6
2018-01-07T11:42:18.000Z
2020-06-08T00:04:57.000Z
#!/usr/bin/env python #_MIT License #_ #_Copyright (c) 2017 Dan Persons (dpersonsdev@gmail.com) #_ #_Permission is hereby granted, free of charge, to any person obtaining a copy #_of this software and associated documentation files (the "Software"), to deal #_in the Software without restriction, including without limi...
34.397516
81
0.548754
668
5,538
4.462575
0.338323
0.034888
0.010064
0.012076
0.19792
0.19792
0.19792
0.188527
0.188527
0.188527
0
0.017354
0.334056
5,538
160
82
34.6125
0.790944
0.275731
0
0.376344
0
0.010753
0.108415
0
0
0
0
0
0
1
0.043011
false
0.032258
0.150538
0
0.204301
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
4b9aca9719a2480581a602385b8fda1e00bcfadc
3,040
py
Python
ooobuild/lo/util/time_with_timezone.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/util/time_with_timezone.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/util/time_with_timezone.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
30.4
190
0.650329
382
3,040
5.018325
0.408377
0.031299
0.026082
0.036515
0.077726
0.045383
0
0
0
0
0
0.022085
0.255263
3,040
99
191
30.707071
0.824647
0.436842
0
0.052632
0
0
0.104801
0.045977
0
0
0
0
0
1
0.157895
false
0
0.078947
0
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
4b9cdb57c833e7e628efc0c75d61d7090e29a276
393
py
Python
exercicios/Lista6/Q5.py
AlexandrePeBrito/CursoUdemyPython
3de58cb30c9f333b32078309847179ff3f9d7e22
[ "MIT" ]
null
null
null
exercicios/Lista6/Q5.py
AlexandrePeBrito/CursoUdemyPython
3de58cb30c9f333b32078309847179ff3f9d7e22
[ "MIT" ]
null
null
null
exercicios/Lista6/Q5.py
AlexandrePeBrito/CursoUdemyPython
3de58cb30c9f333b32078309847179ff3f9d7e22
[ "MIT" ]
null
null
null
""" 5. Faça um programa que receba do usuário um arquivo texto e um caracter. Mostre na tela quantas vezes aquele caractere ocorre dentro do arquivo. """ arquivo=open('CursoUdemyPython/exercicios/Lista6/arq.txt') texto=arquivo.read() carac=input('Informe um caractere: ') ca=0 for c in texto: if(c == carac): ...
28.071429
92
0.725191
60
393
4.75
0.733333
0
0
0
0
0
0
0
0
0
0
0.012085
0.157761
393
13
93
30.230769
0.848943
0.368957
0
0
0
0
0.422594
0.175732
0
0
0
0
0
1
0
false
0
0
0
0
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0