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
6d3cd024737891057712136d2e705890110f9afe
4,896
py
Python
tools/generate_pseudo_label.py
Jmq14/FCOS
5b9b7c2757584b323545988838d020f5b2b9f002
[ "BSD-2-Clause" ]
null
null
null
tools/generate_pseudo_label.py
Jmq14/FCOS
5b9b7c2757584b323545988838d020f5b2b9f002
[ "BSD-2-Clause" ]
null
null
null
tools/generate_pseudo_label.py
Jmq14/FCOS
5b9b7c2757584b323545988838d020f5b2b9f002
[ "BSD-2-Clause" ]
1
2020-04-14T07:19:16.000Z
2020-04-14T07:19:16.000Z
import os import numpy as np from pycocotools.coco import COCO import cv2 from tqdm import tqdm import argparse import json import torch from fcos_core.structures.bounding_box import BoxList from fcos_core.structures.boxlist_ops import boxlist_iou def generate_pseudo_label_with_confidence_score(boxes, image_id, sco...
35.478261
201
0.646446
621
4,896
4.872786
0.268921
0.047588
0.013219
0.014871
0.130205
0.093853
0.048249
0
0
0
0
0.04852
0.233864
4,896
138
202
35.478261
0.758198
0.102328
0
0
0
0
0.118358
0.037628
0
0
0
0
0
1
0.040816
false
0.010204
0.102041
0
0.163265
0.020408
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6d3d502a9e4fab4b8d06fc5ff16a2568aab18edb
1,400
py
Python
tests/unit/test_public_html.py
milescsmith/cookiecutter-wordpress
3bc3178af15e481d3a18df4ff4fcc93f618a6fdc
[ "MIT" ]
null
null
null
tests/unit/test_public_html.py
milescsmith/cookiecutter-wordpress
3bc3178af15e481d3a18df4ff4fcc93f618a6fdc
[ "MIT" ]
null
null
null
tests/unit/test_public_html.py
milescsmith/cookiecutter-wordpress
3bc3178af15e481d3a18df4ff4fcc93f618a6fdc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest class SetupPublicHtml: @pytest.fixture() def context(self): return None @pytest.fixture() def template(self, cookies, context): if context is None: return cookies.bake() else: return cookies.bake(extra_context=cont...
23.728814
66
0.627143
158
1,400
5.455696
0.291139
0.034803
0.092807
0.143852
0.522042
0.488399
0.488399
0.488399
0.488399
0.488399
0
0.003802
0.248571
1,400
58
67
24.137931
0.815589
0.015
0
0.414634
0
0
0.079884
0
0
0
0
0
0.097561
1
0.219512
false
0
0.02439
0.097561
0.536585
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
6d3d92d541909aa34760d1f3e45a73e1d7ed39b8
6,562
py
Python
Learn_matplotlib.py
maufia/MyPyCourse
5818182992f93745bee4904768442e99837e6d61
[ "MIT" ]
null
null
null
Learn_matplotlib.py
maufia/MyPyCourse
5818182992f93745bee4904768442e99837e6d61
[ "MIT" ]
null
null
null
Learn_matplotlib.py
maufia/MyPyCourse
5818182992f93745bee4904768442e99837e6d61
[ "MIT" ]
null
null
null
"""Learn matplotlib""" import os import easygui as eg import csv import matplotlib.pyplot as plt TITLE = """Learn - Matplotlib """ def select_file() -> str: """Use EasyGUI to select a function""" current_directory = os.path.join(os.getcwd(), 'Data') selected_file = eg.fileopenbox(title=f'{TITLE}: Open...
31.247619
86
0.585949
853
6,562
4.390387
0.28136
0.053405
0.021362
0.024032
0.136716
0.086782
0.086782
0.063551
0.063551
0.063551
0
0.012454
0.253581
6,562
209
87
31.397129
0.752144
0.161384
0
0.106061
0
0
0.18857
0.0121
0
0
0
0
0.015152
1
0.090909
false
0.015152
0.045455
0
0.19697
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
6d3dde38158663d28e76c909e8c536123b26caa7
4,262
py
Python
isaactest/tests/accordion_behaviour.py
jsharkey13/isaac-selenium-testing
fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8
[ "MIT" ]
null
null
null
isaactest/tests/accordion_behaviour.py
jsharkey13/isaac-selenium-testing
fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8
[ "MIT" ]
1
2016-01-15T11:28:06.000Z
2016-01-25T17:09:18.000Z
isaactest/tests/accordion_behaviour.py
jsharkey13/isaac-selenium-testing
fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8
[ "MIT" ]
1
2019-05-14T16:53:49.000Z
2019-05-14T16:53:49.000Z
import time from ..utils.log import log, INFO, ERROR, PASS from ..utils.i_selenium import assert_tab, image_div from ..utils.i_selenium import wait_for_xpath_element, wait_for_invisible_xpath from ..utils.isaac import open_accordion_section, close_accordion_section, wait_accordion_open, wait_accordion_closed from ..tes...
45.827957
169
0.690286
539
4,262
5.269017
0.243043
0.036972
0.03662
0.04507
0.409507
0.343662
0.276056
0.258451
0.207042
0.189789
0
0.00149
0.212576
4,262
92
170
46.326087
0.844756
0.009385
0
0.3875
0
0
0.330461
0.060061
0
0
0
0
0.05
0
null
null
0.025
0.0875
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
6d3eb041ca451c14bb7749af771a32d51f111d6d
587
py
Python
yggdrasil/communication/AsciiMapComm.py
astro-friedel/yggdrasil
5ecbfd083240965c20c502b4795b6dc93d94b020
[ "BSD-3-Clause" ]
22
2019-02-05T15:20:07.000Z
2022-02-25T09:00:40.000Z
yggdrasil/communication/AsciiMapComm.py
astro-friedel/yggdrasil
5ecbfd083240965c20c502b4795b6dc93d94b020
[ "BSD-3-Clause" ]
48
2019-02-15T20:41:24.000Z
2022-03-16T20:52:02.000Z
yggdrasil/communication/AsciiMapComm.py
astro-friedel/yggdrasil
5ecbfd083240965c20c502b4795b6dc93d94b020
[ "BSD-3-Clause" ]
16
2019-04-27T03:36:40.000Z
2021-12-02T09:47:06.000Z
from yggdrasil.communication import FileComm class AsciiMapComm(FileComm.FileComm): r"""Class for handling I/O from/to a ASCII map on disk. Args: name (str): The environment variable where file path is stored. **kwargs: Additional keywords arguments are passed to parent class. """ _...
32.611111
75
0.625213
69
587
5.231884
0.811594
0.044321
0
0
0
0
0
0
0
0
0
0
0.30494
587
17
76
34.529412
0.884804
0.337308
0
0
0
0
0.29863
0
0
0
0
0
0
1
0
false
0
0.125
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
6d3f8a189f427be39fe163edc538d242e89521a0
2,970
py
Python
docker/dstat/plugins/dstat_nfsstat4.py
hzy9819/GreenPlum_WooKongDB
9dca9b3bcd15f29b2a0136acc818064222220059
[ "PostgreSQL", "Apache-2.0" ]
34
2021-01-18T14:25:24.000Z
2021-06-05T03:21:10.000Z
docker/dstat/plugins/dstat_nfsstat4.py
hzy9819/GreenPlum_WooKongDB
9dca9b3bcd15f29b2a0136acc818064222220059
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
docker/dstat/plugins/dstat_nfsstat4.py
hzy9819/GreenPlum_WooKongDB
9dca9b3bcd15f29b2a0136acc818064222220059
[ "PostgreSQL", "Apache-2.0" ]
2
2021-04-20T20:11:08.000Z
2021-06-02T02:56:16.000Z
### Author: Adam Michel <elfurbe@furbism.com> ### Based on work by: Dag Wieers <dag@wieers.com> class dstat_plugin(dstat): def __init__(self): self.name = 'nfs4 client' # this vars/nick pair is the ones I considered relevant. Any set of the full list would work. self.vars = ('read', 'write'...
56.037736
162
0.545455
359
2,970
4.451253
0.554318
0.020025
0.015019
0.021277
0.330413
0.330413
0.305382
0.305382
0.305382
0.305382
0
0.011374
0.259933
2,970
52
163
57.115385
0.715651
0.412458
0
0
0
0
0.277003
0
0
0
0
0
0.035714
1
0.107143
false
0
0
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
6d4017e7261ae361b154fa97a6f870b3295280f2
1,873
py
Python
astropyp/instruments/decam/pipeline.py
fred3m/astropyp
414c9e6d84da2604c6466b2046827d8b1988edab
[ "BSD-3-Clause" ]
8
2016-04-28T22:19:22.000Z
2022-03-14T04:22:00.000Z
astropyp/instruments/decam/pipeline.py
fred3m/astropyp
414c9e6d84da2604c6466b2046827d8b1988edab
[ "BSD-3-Clause" ]
null
null
null
astropyp/instruments/decam/pipeline.py
fred3m/astropyp
414c9e6d84da2604c6466b2046827d8b1988edab
[ "BSD-3-Clause" ]
null
null
null
import datapyp import warnings import os class DecamPipeError(Exception): pass class Pipeline(datapyp.core.Pipeline): def __init__(self, **kwargs): from datapyp.utils import get_bool # Make sure that the user included a dictionary of paths to initialize the pipeline if 'paths' not in k...
49.289474
102
0.555259
216
1,873
4.731481
0.412037
0.054795
0.064579
0.062622
0.142857
0.09002
0.09002
0.09002
0
0
0
0.004105
0.349706
1,873
38
103
49.289474
0.834975
0.059797
0
0.117647
0
0
0.283115
0
0
0
0
0
0
1
0.029412
false
0.029412
0.147059
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6d409d33559b4a6519981780018a2f54e1281d04
3,487
py
Python
powerlaw.py
AlexanderDavid/Powerlaw-Highway-Env
e3e3b6277e0a75e4dcbc7988a9cb144137328d22
[ "MIT" ]
null
null
null
powerlaw.py
AlexanderDavid/Powerlaw-Highway-Env
e3e3b6277e0a75e4dcbc7988a9cb144137328d22
[ "MIT" ]
null
null
null
powerlaw.py
AlexanderDavid/Powerlaw-Highway-Env
e3e3b6277e0a75e4dcbc7988a9cb144137328d22
[ "MIT" ]
null
null
null
import gym import highway_env from agent import Agent import pandas as pd import numpy as np env = gym.make("highway-v0") done = False # Notes # Action space between 0 and 4 inclusive # 0 is merge left # 1 is do nothing # 2 is merge right # 3 is speed up # 4 is slow down # ## Obs space is a 5x5 matrix with values be...
28.120968
167
0.53341
517
3,487
3.462282
0.237911
0.046927
0.026816
0.01676
0.297765
0.184916
0.140782
0.140782
0.140782
0.140782
0
0.045056
0.31259
3,487
123
168
28.349594
0.70171
0.241468
0
0.296296
0
0.024691
0.116788
0.049174
0
0
0
0
0
1
0.012346
false
0
0.061728
0.012346
0.08642
0.08642
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6d41975bab1b82a3f84cbeb994a57f4874792563
849
py
Python
terraform/module/lambda/src/timestream_data_writer.py
Jimon-s/terraform-example-timestream
f24b3d5feb1d497374c52bff64308a296a01d158
[ "MIT" ]
1
2021-09-12T08:54:48.000Z
2021-09-12T08:54:48.000Z
terraform/module/lambda/src/timestream_data_writer.py
Jimon-s/terraform-example-timestream
f24b3d5feb1d497374c52bff64308a296a01d158
[ "MIT" ]
null
null
null
terraform/module/lambda/src/timestream_data_writer.py
Jimon-s/terraform-example-timestream
f24b3d5feb1d497374c52bff64308a296a01d158
[ "MIT" ]
null
null
null
from typing import List class TimeStreamDataWriter: def __init__(self, client) -> None: self.client = client def write_records(self, database_name: str, table_name: str, records: List[dict], common_attributes: List[dict] = None,): if self.client is None: raise Exception('client i...
30.321429
125
0.580683
82
849
5.817073
0.390244
0.104822
0.075472
0.096436
0.301887
0.301887
0.301887
0.301887
0.301887
0.301887
0
0
0.353357
849
27
126
31.444444
0.868852
0
0
0.454545
0
0
0.020024
0
0
0
0
0
0
1
0.090909
false
0
0.045455
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6d43fd7c79d6110719d20a77a2cbf996accb638e
4,015
py
Python
zodiacy/cli.py
greenify/zodiacy
faf46a10b9b70869cb4caca02027921f1418cfcf
[ "MIT" ]
1
2015-10-16T10:24:53.000Z
2015-10-16T10:24:53.000Z
zodiacy/cli.py
greenify/zodiacy
faf46a10b9b70869cb4caca02027921f1418cfcf
[ "MIT" ]
null
null
null
zodiacy/cli.py
greenify/zodiacy
faf46a10b9b70869cb4caca02027921f1418cfcf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # encoding: utf-8 import argparse import sqlite3 from os import path from .wrapper import wrap_calls, wrap_corpus import signal signal.signal(signal.SIGPIPE, signal.SIG_DFL) """generate_horoscope.py: Generates horoscopes based provided corpuses""" __author__ = "Project Zodiacy" __copyright__ =...
46.149425
104
0.644583
499
4,015
4.985972
0.330661
0.065113
0.12299
0.030547
0.198955
0.148714
0.089228
0.063505
0.063505
0.063505
0
0.01198
0.209963
4,015
86
105
46.686047
0.772383
0.009215
0
0.030769
0
0
0.358955
0.022291
0
0
0
0
0
1
0.030769
false
0
0.076923
0
0.123077
0.030769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6d444a4f6aefa8f1cb4400d8d79d72be67e0ac06
765
py
Python
prosrs/utility/constants.py
compdyn/ProSRS
d9f8f1992af9ebd8570795ed231ee59cb6901e8b
[ "NCSA" ]
2
2019-03-03T22:32:18.000Z
2019-03-04T14:51:01.000Z
prosrs/utility/constants.py
compdyn/ProSRS
d9f8f1992af9ebd8570795ed231ee59cb6901e8b
[ "NCSA" ]
null
null
null
prosrs/utility/constants.py
compdyn/ProSRS
d9f8f1992af9ebd8570795ed231ee59cb6901e8b
[ "NCSA" ]
null
null
null
""" Copyright (C) 2016-2019 Chenchao Shou Licensed under Illinois Open Source License (see the file LICENSE). For more information about the license, see http://otm.illinois.edu/disclose-protect/illinois-open-source-license. Define constants. """ # file templates STATE_NPZ_FILE_TEMP = 'optimizer_state_%s.npz' # file ...
58.846154
134
0.798693
115
765
5.121739
0.347826
0.190153
0.203735
0.149406
0.609508
0.531409
0.531409
0.426146
0.426146
0.426146
0
0.011834
0.11634
765
13
135
58.846154
0.859467
0.705882
0
0
0
0
0.457944
0.457944
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
6d4642e8f398da24a0527a67fb597113262e14dc
732
py
Python
ioloop-futures/future_done_callback.py
psuresh39/async-design-patterns
f514edaf2b11ecf34b5b8dc2f237b869aa4ff1b9
[ "Apache-2.0" ]
3
2021-02-25T22:20:07.000Z
2021-07-02T09:43:07.000Z
ioloop-futures/future_done_callback.py
psuresh39/async-design-patterns
f514edaf2b11ecf34b5b8dc2f237b869aa4ff1b9
[ "Apache-2.0" ]
null
null
null
ioloop-futures/future_done_callback.py
psuresh39/async-design-patterns
f514edaf2b11ecf34b5b8dc2f237b869aa4ff1b9
[ "Apache-2.0" ]
2
2021-01-27T08:44:31.000Z
2021-05-31T16:36:34.000Z
__author__ = 'psuresh' import asyncio @asyncio.coroutine def slow_operation(future): print("inside task") yield from asyncio.sleep(1) print("task done") future.set_result('Future is done!') def got_result(future): print("inside callback") print(future.result()) loop.stop() loop = async...
18.3
45
0.695355
91
732
5.406593
0.417582
0.067073
0.077236
0
0
0
0
0
0
0
0
0.001608
0.150273
732
39
46
18.769231
0.789389
0.213115
0
0
0
0
0.157244
0
0
0
0
0
0
1
0.090909
false
0
0.045455
0
0.136364
0.272727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6d4a0bcb9c1a2d9b83eb8672bd2a88bd3b493c65
6,555
py
Python
resources.py
cozhiv/tokenauthentication
c6fec21134d55177b99b23dfe21a89d23eda8394
[ "MIT" ]
null
null
null
resources.py
cozhiv/tokenauthentication
c6fec21134d55177b99b23dfe21a89d23eda8394
[ "MIT" ]
null
null
null
resources.py
cozhiv/tokenauthentication
c6fec21134d55177b99b23dfe21a89d23eda8394
[ "MIT" ]
null
null
null
from flask_restful import Resource, reqparse from models import UserModel, RevokedTokenModel, PortfolioModel from flask_jwt_extended import (create_access_token, create_refresh_token, jwt_required, jwt_refresh_token_required, get_jwt_identity, get_raw_jwt, get_jwt_claims) import json from flask import request parser = ...
35.625
163
0.633562
736
6,555
5.400815
0.179348
0.088553
0.048302
0.033459
0.613836
0.604277
0.528553
0.471698
0.444025
0.416855
0
0.003309
0.262243
6,555
183
164
35.819672
0.818652
0.049428
0
0.517241
0
0
0.133901
0
0
0
0
0
0
1
0.103448
false
0.027586
0.034483
0.02069
0.358621
0.02069
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6d4a1b0bb0e6cd8b58de78b8042c2fe98a20bb35
1,164
py
Python
src/data/get_raw_data.py
oscarv17/titanic-disaster-project
b3663c6e02ca2796dd982e0b6fe624968a935963
[ "MIT" ]
null
null
null
src/data/get_raw_data.py
oscarv17/titanic-disaster-project
b3663c6e02ca2796dd982e0b6fe624968a935963
[ "MIT" ]
null
null
null
src/data/get_raw_data.py
oscarv17/titanic-disaster-project
b3663c6e02ca2796dd982e0b6fe624968a935963
[ "MIT" ]
null
null
null
import os import kaggle from dotenv import find_dotenv, load_dotenv import logging # setting credentials os.system('set KAGGLE_USERNAME =' + os.environ.get('kaggle_username')) os.system('set KAGGLE_KEY =' + os.environ.get('kaggle_key')) # function to extract the data def extractData(path): os.syste...
29.846154
87
0.671821
155
1,164
4.832258
0.380645
0.042724
0.056075
0.053405
0.186916
0.144192
0.144192
0.144192
0.144192
0
0
0
0.207904
1,164
38
88
30.631579
0.812364
0.093643
0
0
0
0
0.284158
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6d4b25fdee1ba1da4de6a0ee18903a26769fc38d
4,031
py
Python
4. Data Pipelines with Airflow/dags/sparkify_dend_dag.py
moni2096/Data-Engineering-Nanodegree---Udacity
6202a535ebc5ff95921ce56d37f8116e3e961a3b
[ "MIT" ]
4
2021-07-02T06:17:53.000Z
2022-01-31T19:54:20.000Z
4. Data Pipelines with Airflow/dags/sparkify_dend_dag.py
moni2096/Data-Engineering-Nanodegree-Udacity
6202a535ebc5ff95921ce56d37f8116e3e961a3b
[ "MIT" ]
null
null
null
4. Data Pipelines with Airflow/dags/sparkify_dend_dag.py
moni2096/Data-Engineering-Nanodegree-Udacity
6202a535ebc5ff95921ce56d37f8116e3e961a3b
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta import os from airflow import DAG from airflow.operators.dummy_operator import DummyOperator from airflow.operators import (StageToRedshiftOperator, LoadFactOperator, LoadDimensionOperator, DataQualityOperator) from helpers import SqlQueries def...
30.537879
110
0.73034
500
4,031
5.492
0.206
0.066278
0.040787
0.064093
0.50874
0.44756
0.231245
0.152221
0.110706
0.110706
0
0.005711
0.174646
4,031
132
111
30.537879
0.819657
0.028281
0
0.224299
0
0
0.242331
0.02684
0
0
0
0
0
1
0
false
0
0.056075
0
0.056075
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6d4b7c11dabe41f806cbc11a1847f9f742c15d13
1,436
py
Python
jupyterlab/tests/test_build_api.py
orpheus92/jupyter-beta
3ca2665cf28cefb66bd096bb0ce32ec32ba6dfe5
[ "BSD-3-Clause" ]
null
null
null
jupyterlab/tests/test_build_api.py
orpheus92/jupyter-beta
3ca2665cf28cefb66bd096bb0ce32ec32ba6dfe5
[ "BSD-3-Clause" ]
null
null
null
jupyterlab/tests/test_build_api.py
orpheus92/jupyter-beta
3ca2665cf28cefb66bd096bb0ce32ec32ba6dfe5
[ "BSD-3-Clause" ]
null
null
null
"""Test the kernels service API.""" import threading import time from jupyterlab.tests.utils import LabTestBase, APITester from notebook.tests.launchnotebook import assert_http_error class BuildAPITester(APITester): """Wrapper for build REST API requests""" url = 'lab/api/build' def getStatus(self): ...
25.192982
65
0.614206
175
1,436
4.902857
0.382857
0.073427
0.097902
0.074592
0.146853
0.146853
0.079254
0.079254
0
0
0
0.014368
0.272981
1,436
56
66
25.642857
0.807471
0.103064
0
0.111111
0
0
0.041831
0
0
0
0
0
0.194444
1
0.222222
false
0
0.111111
0.083333
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
6d4c98d5013f159132ac60e600d786ee3cdc259c
25
py
Python
dataloader/__init__.py
nikhil1024/PSMNet
ca5bf6753e84bf448895db42d498a137ed722594
[ "MIT" ]
null
null
null
dataloader/__init__.py
nikhil1024/PSMNet
ca5bf6753e84bf448895db42d498a137ed722594
[ "MIT" ]
null
null
null
dataloader/__init__.py
nikhil1024/PSMNet
ca5bf6753e84bf448895db42d498a137ed722594
[ "MIT" ]
null
null
null
from dataloader import *
12.5
24
0.8
3
25
6.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.16
25
1
25
25
0.952381
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
6d4cf8e51d0fbaf6857ed11d10bfb09f5a4b1db4
3,151
py
Python
Mnist_conv.py
yashchandak/TensorFlow-fun
d2ec9c6eb52c5d92f417c62f99bc3e9385d43f0d
[ "MIT" ]
null
null
null
Mnist_conv.py
yashchandak/TensorFlow-fun
d2ec9c6eb52c5d92f417c62f99bc3e9385d43f0d
[ "MIT" ]
null
null
null
Mnist_conv.py
yashchandak/TensorFlow-fun
d2ec9c6eb52c5d92f417c62f99bc3e9385d43f0d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Jun 6 15:11:12 2016 @author: yash """ 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() """ Convolutional Neural Net """ def weight_variable(...
31.828283
89
0.698508
516
3,151
4.079457
0.348837
0.013302
0.014252
0.031354
0.070309
0.029454
0
0
0
0
0
0.062074
0.161536
3,151
99
90
31.828283
0.734671
0.161853
0
0.036364
0
0
0.023589
0
0
0
0
0
0
1
0.109091
false
0
0.036364
0.036364
0.218182
0.018182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6d4d970056f0da094729a71930abf5b79b29e3c3
158
py
Python
51-simple-program-4.py
GunarakulanGunaretnam/python-basic-fundamentals
c62bf939fbaef8895d28f85af9ef6ced70801f96
[ "Apache-2.0" ]
null
null
null
51-simple-program-4.py
GunarakulanGunaretnam/python-basic-fundamentals
c62bf939fbaef8895d28f85af9ef6ced70801f96
[ "Apache-2.0" ]
null
null
null
51-simple-program-4.py
GunarakulanGunaretnam/python-basic-fundamentals
c62bf939fbaef8895d28f85af9ef6ced70801f96
[ "Apache-2.0" ]
null
null
null
while True: user_input = input("Enter something: ") f = open("data.txt", "at") f.write(user_input+"\n") if(user_input == "[STOP]"): f.close() break
15.8
40
0.607595
24
158
3.875
0.708333
0.290323
0
0
0
0
0
0
0
0
0
0
0.170886
158
10
41
15.8
0.709924
0
0
0
0
0
0.220126
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
6d4de2f63adc59698f65d7e1665d7fdff8be3785
5,036
py
Python
models.py
AnselCmy/MetaR
47897ef0268b2c6c00e211be26a983d201e54565
[ "Apache-2.0" ]
84
2019-09-17T03:21:30.000Z
2022-03-18T12:28:59.000Z
models.py
zjukg/MetaR
47897ef0268b2c6c00e211be26a983d201e54565
[ "Apache-2.0" ]
4
2019-09-16T06:30:04.000Z
2022-01-02T12:26:03.000Z
models.py
zjukg/MetaR
47897ef0268b2c6c00e211be26a983d201e54565
[ "Apache-2.0" ]
10
2019-09-24T01:23:18.000Z
2021-08-09T03:00:00.000Z
from embedding import * from collections import OrderedDict import torch class RelationMetaLearner(nn.Module): def __init__(self, few, embed_size=100, num_hidden1=500, num_hidden2=200, out_size=100, dropout_p=0.5): super(RelationMetaLearner, self).__init__() self.embed_size = embed_size se...
39.653543
112
0.578832
657
5,036
4.193303
0.217656
0.033031
0.026134
0.021779
0.339746
0.262069
0.201815
0.15245
0.128494
0.08784
0
0.029121
0.297657
5,036
126
113
39.968254
0.749788
0.060763
0
0.14433
0
0
0.022467
0
0
0
0
0
0
1
0.072165
false
0
0.030928
0
0.175258
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6d4ff338a5048d79569541e65f7625f4beff0e41
395
py
Python
Olympiad Solutions/URI/1181.py
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
36
2019-12-27T08:23:08.000Z
2022-01-24T20:35:47.000Z
Olympiad Solutions/URI/1181.py
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
10
2019-11-13T02:55:18.000Z
2021-10-13T23:28:09.000Z
Olympiad Solutions/URI/1181.py
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
53
2020-08-15T11:08:40.000Z
2021-10-09T15:51:38.000Z
# Ivan Carvalho # Solution to https://www.urionlinejudge.com.br/judge/problems/view/1181 #!/usr/bin/env python2.7 linha = int(raw_input()) array = [[0 for j in xrange(12)] for k in xrange(12)] operacao = raw_input() for p in xrange(12): for k in xrange(12): array[p][k]=float(raw_input()) if operacao == "S": print "...
28.214286
72
0.663291
69
395
3.753623
0.565217
0.123552
0.15444
0.100386
0.339768
0.185328
0.185328
0.185328
0
0
0
0.05848
0.134177
395
13
73
30.384615
0.69883
0.270886
0
0
0
0
0.03169
0
0
0
0
0
0
0
null
null
0
0
null
null
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
6d50afec427856861c969ad355d8c5fa162ca5ff
276
py
Python
packages/PIPS/validation/Benchmarks/Hyantes.sub/remove_reduction.py
DVSR1966/par4all
86b33ca9da736e832b568c5637a2381f360f1996
[ "MIT" ]
51
2015-01-31T01:51:39.000Z
2022-02-18T02:01:50.000Z
packages/PIPS/validation/Benchmarks/Hyantes.sub/remove_reduction.py
DVSR1966/par4all
86b33ca9da736e832b568c5637a2381f360f1996
[ "MIT" ]
7
2017-05-29T09:29:00.000Z
2019-03-11T16:01:39.000Z
packages/PIPS/validation/Benchmarks/Hyantes.sub/remove_reduction.py
DVSR1966/par4all
86b33ca9da736e832b568c5637a2381f360f1996
[ "MIT" ]
12
2015-03-26T08:05:38.000Z
2022-02-18T02:01:51.000Z
from __future__ import with_statement from pyps import workspace with workspace("hyantes.c", "options.c") as w: w.props.constant_path_effects=False f=w["hyantes!do_run_AMORTIZED_DISK"] for l in f.all_loops: l.reduction_variable_expansion() f.display()
30.666667
46
0.73913
42
276
4.547619
0.738095
0
0
0
0
0
0
0
0
0
0
0
0.163043
276
8
47
34.5
0.82684
0
0
0
0
0
0.17029
0.105072
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6d5363097e402538bc42aa0b70cfd1c02f3ca6fb
2,526
py
Python
tests/apps/courses/test_models_subject.py
sampaccoud/richie
3d222aedab0636a84011dced568c5dcd48fc5b15
[ "MIT" ]
null
null
null
tests/apps/courses/test_models_subject.py
sampaccoud/richie
3d222aedab0636a84011dced568c5dcd48fc5b15
[ "MIT" ]
null
null
null
tests/apps/courses/test_models_subject.py
sampaccoud/richie
3d222aedab0636a84011dced568c5dcd48fc5b15
[ "MIT" ]
null
null
null
""" Unit tests for the Subject model """ from django.test import TestCase from cms.api import create_page from richie.apps.courses.factories import CourseFactory, SubjectFactory from richie.apps.courses.models import Subject class SubjectTestCase(TestCase): """ Unit test suite to validate the behavior of th...
38.272727
95
0.684481
307
2,526
5.521173
0.335505
0.056637
0.053097
0.056637
0.183481
0.183481
0.098525
0.098525
0.068437
0
0
0.010881
0.235946
2,526
65
96
38.861538
0.867358
0.332542
0
0.137931
0
0
0.034221
0.019645
0
0
0
0
0.241379
1
0.068966
false
0
0.137931
0
0.241379
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6d53e547415669e075a1146807e89c0b079587f0
2,935
py
Python
Scripts/main.py
MainDuelo/Python-Tkinter-and-SQLite
7f69780ce9c1c8ebe807197448030aed94c3a082
[ "MIT" ]
null
null
null
Scripts/main.py
MainDuelo/Python-Tkinter-and-SQLite
7f69780ce9c1c8ebe807197448030aed94c3a082
[ "MIT" ]
null
null
null
Scripts/main.py
MainDuelo/Python-Tkinter-and-SQLite
7f69780ce9c1c8ebe807197448030aed94c3a082
[ "MIT" ]
null
null
null
from Scripts.bank.bankController import BankController from tkinter import ttk, Tk, Button, Label, END from tkinter.scrolledtext import ScrolledText from Scripts.support.textManipulation import TextManipulation MAROON = "#800000" WHITE = "#FFFFFF" VALUES = "values" class Main: def __init__(self): BankCon...
40.763889
183
0.696763
339
2,935
5.955752
0.283186
0.026746
0.0421
0.047053
0.309559
0.161466
0.099059
0
0
0
0
0.05124
0.175468
2,935
72
184
40.763889
0.783058
0
0
0.057692
0
0
0.055858
0
0
0
0
0
0
1
0.115385
false
0
0.076923
0
0.211538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6d55e3cd7ef5d22859ae8f2c2273a0f46b67eba4
1,651
py
Python
python-verilog/examples_py3/faulted_sqrt/learn_sql/create_table.py
vhnatyk/vlsistuff
0981097bd19a0c482728dcc5048a3615ac9a9a90
[ "MIT" ]
26
2018-03-17T18:14:22.000Z
2022-03-14T07:23:13.000Z
python-verilog/examples_py3/faulted_sqrt/learn_sql/create_table.py
psumesh/vlsistuff
1fe64b093d0581d99c7d826b74c31b8655fa0b31
[ "MIT" ]
1
2019-10-16T10:31:11.000Z
2019-10-17T04:14:53.000Z
python-verilog/examples_py3/faulted_sqrt/learn_sql/create_table.py
psumesh/vlsistuff
1fe64b093d0581d99c7d826b74c31b8655fa0b31
[ "MIT" ]
7
2018-07-16T07:51:25.000Z
2022-02-15T14:22:54.000Z
#! /usr/bin/env python3 import os,sys,string import sqlite3 from sqlite3 import Error def create_connection(path): connection = None try: connection = sqlite3.connect(path) print("Connection to SQLite DB successful") except Error as e: print(f"The error '{e}' occurred") ret...
22.930556
158
0.615385
198
1,651
5.035354
0.409091
0.060181
0.039117
0.042126
0.195587
0.195587
0.111334
0.111334
0.111334
0.111334
0
0.009106
0.268322
1,651
71
159
23.253521
0.816225
0.013325
0
0.240741
0
0.018519
0.275184
0.028256
0
0
0
0
0
1
0.074074
false
0.018519
0.055556
0
0.166667
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
6d568baa19ca1079cc5a15acbd9559b0d736935c
1,836
py
Python
cq_editor/icons.py
possibilities/CQ-editor
dc950180b365ae39840f6787c8f5a061492734ed
[ "Apache-2.0" ]
351
2018-06-08T14:36:35.000Z
2022-03-29T22:03:04.000Z
cq_editor/icons.py
possibilities/CQ-editor
dc950180b365ae39840f6787c8f5a061492734ed
[ "Apache-2.0" ]
315
2018-06-08T14:35:08.000Z
2022-03-31T15:45:27.000Z
cq_editor/icons.py
possibilities/CQ-editor
dc950180b365ae39840f6787c8f5a061492734ed
[ "Apache-2.0" ]
71
2018-06-19T02:00:24.000Z
2022-03-25T08:55:02.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri May 25 14:47:10 2018 @author: adam """ from PyQt5.QtGui import QIcon from . import icons_res _icons = { 'app' : QIcon(":/images/icons/cadquery_logo_dark.svg") } import qtawesome as qta _icons_specs = { 'new' : (('fa.file-o',),{}), '...
31.118644
158
0.421024
196
1,836
3.841837
0.433673
0.131474
0.12749
0.103586
0.158035
0.106242
0.106242
0.061089
0.061089
0
0
0.044971
0.333878
1,836
59
159
31.118644
0.570728
0.064815
0
0.162791
0
0
0.294496
0.021663
0
0
0
0
0
1
0.023256
false
0
0.069767
0
0.139535
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6d57153945b51f7d7faf6071ea0fd9dbff460656
2,377
py
Python
domain/meta/schedule.py
trcox/py-core-domain
ca490809b247aef08e7de8981432f31b4f9d31a1
[ "Apache-2.0" ]
null
null
null
domain/meta/schedule.py
trcox/py-core-domain
ca490809b247aef08e7de8981432f31b4f9d31a1
[ "Apache-2.0" ]
null
null
null
domain/meta/schedule.py
trcox/py-core-domain
ca490809b247aef08e7de8981432f31b4f9d31a1
[ "Apache-2.0" ]
null
null
null
# ******************************************************************************* # Copyright 2017 Dell Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/L...
44.849057
99
0.634834
301
2,377
4.943522
0.488372
0.040323
0.040323
0.021505
0.129032
0.129032
0.129032
0.129032
0.129032
0.129032
0
0.01226
0.21077
2,377
52
100
45.711538
0.780917
0.600337
0
0
0
0.058824
0.114007
0
0
0
0
0.019231
0
1
0.117647
false
0
0.058824
0.058824
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
1
0
0
0
0
0
0
0
0
0
0
1
6d57330f5890530f320cf62fd898070beece7685
1,316
py
Python
pyheaders/cpp/enum.py
Roynecro97/pyheaders
0e1e90aef3e18d611ec289b25213e2aa2cc0ab45
[ "MIT" ]
2
2020-05-19T20:19:37.000Z
2021-04-06T18:59:06.000Z
pyheaders/cpp/enum.py
Roynecro97/pyheaders
0e1e90aef3e18d611ec289b25213e2aa2cc0ab45
[ "MIT" ]
6
2020-05-17T14:25:25.000Z
2020-07-13T11:45:21.000Z
pyheaders/cpp/enum.py
Roynecro97/pyheaders
0e1e90aef3e18d611ec289b25213e2aa2cc0ab45
[ "MIT" ]
null
null
null
''' Represents a C++ enum. ''' from collections import OrderedDict from typing import Any, Optional, Text, Union class Enum(OrderedDict): ''' Represents a C++ enum. ''' def __init__(self, name, items=None): super().__init__(items or []) self.name = name def __getitem__(self, name...
26.857143
130
0.578267
165
1,316
4.393939
0.315152
0.077241
0.041379
0.044138
0
0
0
0
0
0
0
0
0.281915
1,316
48
131
27.416667
0.767196
0.034195
0
0
0
0
0.070513
0
0
0
0
0
0
1
0.241379
false
0
0.068966
0.103448
0.586207
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
6d5780d158839c24f720b62513828f2502747533
493
py
Python
Exercicios/ex100.py
mauriciozago/CursoPython3
cbcff9ebfd4d5f5e3a32a369dac8521c6758bfe5
[ "MIT" ]
null
null
null
Exercicios/ex100.py
mauriciozago/CursoPython3
cbcff9ebfd4d5f5e3a32a369dac8521c6758bfe5
[ "MIT" ]
null
null
null
Exercicios/ex100.py
mauriciozago/CursoPython3
cbcff9ebfd4d5f5e3a32a369dac8521c6758bfe5
[ "MIT" ]
null
null
null
from random import randint from time import sleep def sorteia(lista): print('Sorteando 5 valores da lista:', end=' ') for num in range(0, 5): lista.append(randint(1, 10)) sleep(0.5) print(lista[num], end=' ') print('PRONTO!') def somaPar(lista): soma = 0 for valor in list...
19.72
63
0.596349
69
493
4.26087
0.536232
0.013605
0
0
0
0
0
0
0
0
0
0.030641
0.271805
493
24
64
20.541667
0.788301
0
0
0
0
0
0.176471
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.222222
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6d5878f65e5314a4e23460be695252643785c2ed
4,728
py
Python
python/fate_client/flow_client/flow_cli/utils/cli_args.py
kakasu/FATE
cfc61ef268154e08a9e7125c047c318c5e5eb42a
[ "Apache-2.0" ]
2
2020-11-21T11:25:08.000Z
2020-11-21T11:25:11.000Z
python/fate_client/flow_client/flow_cli/utils/cli_args.py
TroubleMaker1994/FATE
23ad848bcc7ae7f304a376d3f46f4af26872c8a2
[ "Apache-2.0" ]
null
null
null
python/fate_client/flow_client/flow_cli/utils/cli_args.py
TroubleMaker1994/FATE
23ad848bcc7ae7f304a376d3f46f4af26872c8a2
[ "Apache-2.0" ]
1
2021-02-03T08:23:42.000Z
2021-02-03T08:23:42.000Z
# # Copyright 2019 The FATE Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
51.956044
124
0.572758
555
4,728
4.803604
0.302703
0.086647
0.073143
0.049887
0.436984
0.391973
0.334959
0.28132
0.165041
0.135784
0
0.00536
0.289763
4,728
90
125
52.533333
0.788565
0.123519
0
0.313725
0
0
0.292949
0
0
0
0
0
0
1
0
false
0
0.019608
0
0.019608
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6d595897f47c1cc37b47f1c81df0318c37ce2e88
5,210
py
Python
lightning_transformers/task/nlp/masked_language_modeling/data.py
maksym-taranukhin/lightning-transformers
aa7202657973b5b65c3c36eb745621043859ebc4
[ "Apache-2.0" ]
null
null
null
lightning_transformers/task/nlp/masked_language_modeling/data.py
maksym-taranukhin/lightning-transformers
aa7202657973b5b65c3c36eb745621043859ebc4
[ "Apache-2.0" ]
null
null
null
lightning_transformers/task/nlp/masked_language_modeling/data.py
maksym-taranukhin/lightning-transformers
aa7202657973b5b65c3c36eb745621043859ebc4
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
41.68
119
0.668906
592
5,210
5.684122
0.342905
0.024963
0.033284
0.020208
0.230906
0.184844
0.164636
0.164636
0.112927
0.084398
0
0.002844
0.257582
5,210
124
120
42.016129
0.867115
0.278311
0
0.15
0
0
0.009722
0
0
0
0
0
0
1
0.0625
false
0
0.075
0
0.2375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6d5b404b1dc5e6d856457623444459cb2d318391
297
py
Python
lc/1461_CheckIfAStringContainsAllBinaryCodesOfSizeK.py
xiangshiyin/coding-challenge
a75a644b96dec1b6c7146b952ca4333263f0a461
[ "Apache-2.0" ]
null
null
null
lc/1461_CheckIfAStringContainsAllBinaryCodesOfSizeK.py
xiangshiyin/coding-challenge
a75a644b96dec1b6c7146b952ca4333263f0a461
[ "Apache-2.0" ]
null
null
null
lc/1461_CheckIfAStringContainsAllBinaryCodesOfSizeK.py
xiangshiyin/coding-challenge
a75a644b96dec1b6c7146b952ca4333263f0a461
[ "Apache-2.0" ]
null
null
null
class Solution: def hasAllCodes(self, s: str, k: int) -> bool: seen = set() i = 0 n = len(s) while i <= n-k: if s[i:i+k] not in seen: seen.add(s[i:i+k]) i += 1 return len(seen)==2 ** k
21.214286
50
0.363636
42
297
2.571429
0.571429
0.037037
0.055556
0.074074
0
0
0
0
0
0
0
0.020134
0.498317
297
14
51
21.214286
0.704698
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6d5bd3fb4d8e9779c1930d9978e30ba7ba6d66cc
1,737
py
Python
chipy_org/apps/main/views.py
land-of-apps/chipy.org
be433d0cb3453a1550f344c02d6164b6bf4d9e63
[ "MIT" ]
88
2015-01-01T21:12:18.000Z
2022-03-01T13:36:59.000Z
chipy_org/apps/main/views.py
land-of-apps/chipy.org
be433d0cb3453a1550f344c02d6164b6bf4d9e63
[ "MIT" ]
296
2015-01-02T15:55:19.000Z
2022-03-20T20:11:47.000Z
chipy_org/apps/main/views.py
land-of-apps/chipy.org
be433d0cb3453a1550f344c02d6164b6bf4d9e63
[ "MIT" ]
83
2015-01-25T02:34:24.000Z
2021-11-08T20:28:36.000Z
import datetime import sys import traceback from django.contrib import messages from django.contrib.auth.views import LogoutView from django.http import HttpResponse, HttpResponseServerError from django.template import loader from django.views.generic import TemplateView from chipy_org.apps.meetings.models import Mee...
28.016129
98
0.672999
193
1,737
5.937824
0.450777
0.04363
0.031414
0.041885
0.041885
0
0
0
0
0
0
0.013373
0.225101
1,737
61
99
28.47541
0.838039
0
0
0
0
0
0.075417
0
0
0
0
0
0
1
0.108696
false
0
0.23913
0.043478
0.543478
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
6d5c27efea898ab26417bfa0e4161873555a02b3
1,718
py
Python
web_market/catalog/models.py
AK-1121/small_market_with_django
95a3b395e272b3c84400cd3d2ef92affe76dc328
[ "MIT" ]
null
null
null
web_market/catalog/models.py
AK-1121/small_market_with_django
95a3b395e272b3c84400cd3d2ef92affe76dc328
[ "MIT" ]
null
null
null
web_market/catalog/models.py
AK-1121/small_market_with_django
95a3b395e272b3c84400cd3d2ef92affe76dc328
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class ProductType(models.Model): name = models.CharField(max_length=50, unique=True) raiting = models.FloatField() description = models.TextField(default='') class SubProductType(models.Model): name = models.CharField(max_length=50, unique=True...
31.236364
72
0.720023
202
1,718
5.990099
0.321782
0.123967
0.14876
0.198347
0.478512
0.323141
0.232231
0.2
0.122314
0.122314
0
0.025
0.161816
1,718
54
73
31.814815
0.815278
0.01397
0
0.368421
0
0
0.023077
0
0
0
0
0
0
1
0
false
0
0.026316
0
0.921053
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6d5cfd7abf19372973186603f8a82d3a006b104a
336
py
Python
src/app/voltdb/voltdb_src/tools/tcpprobe.py
OpenMPDK/SMDK
8f19d32d999731242cb1ab116a4cb445d9993b15
[ "BSD-3-Clause" ]
44
2022-03-16T08:32:31.000Z
2022-03-31T16:02:35.000Z
src/app/voltdb/voltdb_src/tools/tcpprobe.py
H2O0Lee/SMDK
eff49bc17a55a83ea968112feb2e2f2ea18c4ff5
[ "BSD-3-Clause" ]
1
2022-03-29T02:30:28.000Z
2022-03-30T03:40:46.000Z
src/app/voltdb/voltdb_src/tools/tcpprobe.py
H2O0Lee/SMDK
eff49bc17a55a83ea968112feb2e2f2ea18c4ff5
[ "BSD-3-Clause" ]
18
2022-03-19T04:41:04.000Z
2022-03-31T03:32:12.000Z
#!/usr/bin/env python from __future__ import with_statement from sys import argv from socket import socket from contextlib import closing def main(args): host, port = args[1:] with closing(socket()) as s: try: s.connect((host,int(port))) except: return 1 if __name__ == '__main__': exit(main(argv)) # v...
18.666667
37
0.699405
54
336
4.111111
0.648148
0
0
0
0
0
0
0
0
0
0
0.014388
0.172619
336
17
38
19.764706
0.784173
0.110119
0
0
0
0
0.026936
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6d5ee2879ab66f8685eefe4e79bc72d5182956c0
8,313
py
Python
pythonFiles/arcgis_Script.py
huangysh/ASCA_Cluster
3f7ff5df514cbe48730ba0634abe7f9726d3b98e
[ "MIT" ]
null
null
null
pythonFiles/arcgis_Script.py
huangysh/ASCA_Cluster
3f7ff5df514cbe48730ba0634abe7f9726d3b98e
[ "MIT" ]
null
null
null
pythonFiles/arcgis_Script.py
huangysh/ASCA_Cluster
3f7ff5df514cbe48730ba0634abe7f9726d3b98e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # ********************************************************************************************************************** # MIT License # Copyright (c) 2020 School of Environmental Science and Engineering, Shanghai Jiao Tong University # Permission is hereby granted, free of charge, to any per...
41.358209
120
0.634428
775
8,313
6.778065
0.396129
0.079954
0.036551
0.014278
0.285741
0.276604
0.241196
0.194936
0.170569
0.170569
0
0.006156
0.15975
8,313
200
121
41.565
0.745884
0.337303
0
0.389381
0
0
0.169389
0.032483
0
0
0
0.005
0
1
0
false
0
0.035398
0
0.035398
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6d5f3bebf3edb62a00a49fe6236b8ebde098e6fa
19,903
py
Python
examples/example_topop_tb_v4_analysis_roi.py
qiancao/BoneBox
0d10dac7c93f16f0643bebc62c63be2f4bd099f6
[ "BSD-3-Clause" ]
1
2022-03-11T20:49:19.000Z
2022-03-11T20:49:19.000Z
examples/example_topop_tb_v4_analysis_roi.py
qiancao/BoneBox
0d10dac7c93f16f0643bebc62c63be2f4bd099f6
[ "BSD-3-Clause" ]
null
null
null
examples/example_topop_tb_v4_analysis_roi.py
qiancao/BoneBox
0d10dac7c93f16f0643bebc62c63be2f4bd099f6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Aug 20 21:29:32 2021 @author: qcao Analysis code for example_topop_tb_v3.py Parses and cleans load-driven phantoms. Computes Radiomic signatures. Compares with BvTv. Compare with ROIs """ # FEA and BoneBox Imports import os import sys sys.path.appe...
33.848639
127
0.631061
2,392
19,903
5.146739
0.231605
0.021444
0.015352
0.020713
0.354967
0.309967
0.26456
0.2328
0.190155
0.190155
0
0.026779
0.240115
19,903
588
128
33.848639
0.787226
0.395418
0
0.204348
0
0
0.065108
0.01309
0
0
0
0
0
1
0.043478
false
0
0.095652
0
0.182609
0.026087
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6d61966b535b9419b168bfc49be236b95f338598
1,711
py
Python
getKeypoints.py
franzqueissner/mimic-detection
9dc49cf57baaa7da8bb1d8eee0efe00b57384fca
[ "MIT" ]
null
null
null
getKeypoints.py
franzqueissner/mimic-detection
9dc49cf57baaa7da8bb1d8eee0efe00b57384fca
[ "MIT" ]
null
null
null
getKeypoints.py
franzqueissner/mimic-detection
9dc49cf57baaa7da8bb1d8eee0efe00b57384fca
[ "MIT" ]
null
null
null
import os import threading import json from classes import Keypoint def wait_for_frames(): while not os.path.isdir('keypoints/run0'): print("waiting for frame dir, pls start openpose") print("dir detected!") while len(os.listdir("keypoints/run0")) == 0: print("dir empty, waiting for frames"...
29
104
0.675044
219
1,711
5.082192
0.374429
0.151842
0.086253
0.039533
0
0
0
0
0
0
0
0.023704
0.210988
1,711
58
105
29.5
0.800741
0.073641
0
0.04878
0
0
0.172808
0
0
0
0
0
0
1
0.097561
false
0
0.097561
0.02439
0.292683
0.170732
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6d61df73bcd30bdd6c6b9c5e709c560281476999
1,820
py
Python
django/venues/migrations/0001_initial.py
jdrager/mnl-api
be5ce52ed154ec103f9f911da6753d7f2a0fe736
[ "MIT" ]
1
2018-02-02T18:49:27.000Z
2018-02-02T18:49:27.000Z
django/venues/migrations/0001_initial.py
monday-night-lights/mnl-api
be5ce52ed154ec103f9f911da6753d7f2a0fe736
[ "MIT" ]
26
2018-02-01T14:39:40.000Z
2021-10-13T14:11:29.000Z
django/venues/migrations/0001_initial.py
jdrager/mnl-api
be5ce52ed154ec103f9f911da6753d7f2a0fe736
[ "MIT" ]
7
2018-02-01T13:33:00.000Z
2019-03-21T01:39:13.000Z
# Generated by Django 2.1.4 on 2019-01-04 01:10 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Venue', fields=[ ...
39.565217
188
0.569231
191
1,820
5.298429
0.397906
0.088933
0.158103
0.189723
0.421937
0.421937
0.06917
0
0
0
0
0.027864
0.29011
1,820
45
189
40.444444
0.755418
0.024725
0
0.315789
1
0
0.106035
0
0
0
0
0
0
1
0
false
0
0.052632
0
0.157895
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
6d635b80fde3903f9b7a6383d92859ddc318ba94
484
py
Python
test/__init__.py
davidmaignan/test
a2c746bf60ccf96b1d753202fba6725b57527aec
[ "Apache-2.0" ]
null
null
null
test/__init__.py
davidmaignan/test
a2c746bf60ccf96b1d753202fba6725b57527aec
[ "Apache-2.0" ]
null
null
null
test/__init__.py
davidmaignan/test
a2c746bf60ccf96b1d753202fba6725b57527aec
[ "Apache-2.0" ]
null
null
null
# import qgis libs so that ve set the correct sip api version import qgis # pylint: disable=W0611 # NOQA import unittest from test.test_init import TestInit from test.test_resources import TestResourceTest def suite_configuration(): suite = unittest.TestSuite() suite.addTest(TestInit('test_read_init')) ...
28.470588
67
0.766529
62
484
5.725806
0.629032
0.056338
0.067606
0
0
0
0
0
0
0
0
0.012107
0.146694
484
17
67
28.470588
0.847458
0.181818
0
0
0
0
0.089059
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
6d635c6db89e149bfd386a8f61c701f4329339cc
6,311
py
Python
locations/spiders/dickeys_barbecue_pit.py
davidchiles/alltheplaces
6f35f6cd652e7462107ead0a77f322caff198653
[ "MIT" ]
297
2017-12-07T01:29:14.000Z
2022-03-29T06:58:01.000Z
locations/spiders/dickeys_barbecue_pit.py
davidchiles/alltheplaces
6f35f6cd652e7462107ead0a77f322caff198653
[ "MIT" ]
2,770
2017-11-28T04:20:21.000Z
2022-03-31T11:29:16.000Z
locations/spiders/dickeys_barbecue_pit.py
davidchiles/alltheplaces
6f35f6cd652e7462107ead0a77f322caff198653
[ "MIT" ]
111
2017-11-27T21:40:02.000Z
2022-01-22T01:21:52.000Z
import scrapy import re from urllib.parse import urlparse from locations.hours import OpeningHours from locations.items import GeojsonPointItem ALL_DAYS = ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'] class DickeysBarbecuePitSpider(scrapy.Spider): name = "dickeys_barbecue_pit" item_attributes = { '...
41.519737
121
0.534464
717
6,311
4.566248
0.320781
0.047648
0.034209
0.047037
0.06292
0.06292
0.039401
0.031155
0.031155
0.025657
0
0.015463
0.344161
6,311
151
122
41.794702
0.77555
0.18238
0
0.049505
0
0.009901
0.149448
0.074423
0
0
0
0
0
1
0.039604
false
0
0.049505
0
0.287129
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6d648804452d20f1849971ab4c6c5df716e95168
25,970
py
Python
spotifython/session.py
Guptacos/spotifython
9d42e903f29667906abd959b45b642a9645c60d1
[ "MIT" ]
null
null
null
spotifython/session.py
Guptacos/spotifython
9d42e903f29667906abd959b45b642a9645c60d1
[ "MIT" ]
61
2020-04-25T20:17:05.000Z
2020-09-20T20:41:24.000Z
spotifython/session.py
Guptacos/spotifython
9d42e903f29667906abd959b45b642a9645c60d1
[ "MIT" ]
null
null
null
""" Session class. """ # Standard library imports import math # Local imports import spotifython.constants as const from spotifython.endpoints import Endpoints import spotifython.utils as utils class Session: """ Represents an interactive Spotify session, tied to a Spotify API token. Use methods here to dea...
35.575342
86
0.578783
3,070
25,970
4.789902
0.134202
0.018973
0.007956
0.010609
0.472288
0.444951
0.389527
0.36865
0.352193
0.334444
0
0.005973
0.348903
25,970
729
87
35.624143
0.863682
0.40824
0
0.337931
0
0
0.069017
0.001633
0
0
0
0.010974
0
1
0.062069
false
0
0.031034
0
0.151724
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
6d659aab0b30c16249cae3380b770eb52697e6c0
2,993
py
Python
paper/plotPreliminary.py
SebastianGer/biases-in-word-embeddings
001499003caf213acf62dffbe29a54259a60e3e4
[ "MIT" ]
null
null
null
paper/plotPreliminary.py
SebastianGer/biases-in-word-embeddings
001499003caf213acf62dffbe29a54259a60e3e4
[ "MIT" ]
null
null
null
paper/plotPreliminary.py
SebastianGer/biases-in-word-embeddings
001499003caf213acf62dffbe29a54259a60e3e4
[ "MIT" ]
null
null
null
# Plots results of preliminary experiments to determine parameter settings for all other experiments import pandas as pd import matplotlib matplotlib.use('pgf') import matplotlib.pyplot as plt df = pd.read_csv("data/preliminaryWord2vecComplete_clean.csv") df3 = df.query('(skipgram == 1) & (contextwindow == 3)') df5...
39.381579
100
0.700969
416
2,993
5.026442
0.204327
0.04352
0.08704
0.13056
0.765662
0.713534
0.568149
0.568149
0.568149
0.568149
0
0.049531
0.109589
2,993
75
101
39.906667
0.735084
0.048112
0
0.517241
0
0
0.427215
0.09564
0
0
0
0
0
1
0
false
0
0.051724
0
0.051724
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ed8cc5798db544fbe8ee797bd37f85e2f59ad788
8,156
py
Python
facePose.py
cyndi088/head-pose-estimation-face-landmark
f4ef5b977800cc8c0c54dae8b86d21f616ecb38b
[ "MIT" ]
null
null
null
facePose.py
cyndi088/head-pose-estimation-face-landmark
f4ef5b977800cc8c0c54dae8b86d21f616ecb38b
[ "MIT" ]
null
null
null
facePose.py
cyndi088/head-pose-estimation-face-landmark
f4ef5b977800cc8c0c54dae8b86d21f616ecb38b
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # pylint: disable=C0103 # pylint: disable=E1101 import os import numpy as np import cv2 import caffe def retifyxxyy(img, xxyy): """ let xxyy within image size img: image xxyy: left, right, top, bottom return modified xxyy """ img_height, img_width...
29.128571
161
0.608877
1,037
8,156
4.678881
0.2054
0.021641
0.032152
0.044518
0.237634
0.186727
0.165087
0.149423
0.096661
0.096661
0
0.031469
0.26361
8,156
279
162
29.232975
0.77639
0.166135
0
0.169118
0
0
0.026627
0.016973
0
0
0
0
0
1
0.117647
false
0
0.029412
0
0.264706
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ed9190d07952044973458f3da01194e2467b9134
763
py
Python
setup_extensions.py
pygeo/pycmbs
0df863e1575ffad21c1ea9790bcbd3a7982d99c6
[ "MIT" ]
9
2015-04-01T04:22:25.000Z
2018-08-31T03:51:34.000Z
setup_extensions.py
pygeo/pycmbs
0df863e1575ffad21c1ea9790bcbd3a7982d99c6
[ "MIT" ]
14
2015-01-27T20:33:10.000Z
2016-06-02T07:23:25.000Z
setup_extensions.py
pygeo/pycmbs
0df863e1575ffad21c1ea9790bcbd3a7982d99c6
[ "MIT" ]
8
2015-02-07T20:46:42.000Z
2019-10-25T00:36:32.000Z
# -*- coding: utf-8 -*- """ This file is part of pyCMBS. (c) 2012- Alexander Loew For COPYING and LICENSE details, please refer to the LICENSE file """ """ module to compile the required python extensions This is for development purposes only! Later on it might be integrated into the standard setup.py """ # http://d...
25.433333
65
0.743119
109
763
5.137615
0.651376
0.021429
0.067857
0.085714
0.1
0
0
0
0
0
0
0.007813
0.161206
763
29
66
26.310345
0.867188
0.482307
0
0
0
0
0.175439
0.175439
0
0
0
0
0
1
0
true
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
ed9319b4c643894e862dc180400d3e4c6e873027
68
py
Python
src/models/__init__.py
renyi-ai/drfrankenstein
b9064cdea67698f70af07849bc5decaafccac9f3
[ "MIT" ]
4
2021-12-08T14:27:19.000Z
2022-01-05T20:19:03.000Z
src/models/__init__.py
renyi-ai/drfrankenstein
b9064cdea67698f70af07849bc5decaafccac9f3
[ "MIT" ]
null
null
null
src/models/__init__.py
renyi-ai/drfrankenstein
b9064cdea67698f70af07849bc5decaafccac9f3
[ "MIT" ]
null
null
null
from src.models.classifiers import * from src.models.frank import *
22.666667
36
0.794118
10
68
5.4
0.6
0.259259
0.481481
0
0
0
0
0
0
0
0
0
0.117647
68
2
37
34
0.9
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
ed9343bfb5b3ee8263500da7447ed1563a0c1cf8
10,469
py
Python
tutorials/05-dcr/plot_fwd_2_dcr2d.py
ElliotCheung/simpeg
ce5bde154179ca63798a62a12787a7ec3535472c
[ "MIT" ]
1
2022-02-18T16:31:27.000Z
2022-02-18T16:31:27.000Z
tutorials/05-dcr/plot_fwd_2_dcr2d.py
ElliotCheung/simpeg
ce5bde154179ca63798a62a12787a7ec3535472c
[ "MIT" ]
null
null
null
tutorials/05-dcr/plot_fwd_2_dcr2d.py
ElliotCheung/simpeg
ce5bde154179ca63798a62a12787a7ec3535472c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ DC Resistivity Forward Simulation in 2.5D ========================================= Here we use the module *SimPEG.electromagnetics.static.resistivity* to predict DC resistivity data and plot using a pseudosection. In this tutorial, we focus on the following: - How to define the survey...
31.250746
88
0.66845
1,468
10,469
4.628747
0.270436
0.02752
0.010007
0.006475
0.230022
0.189845
0.15482
0.117145
0.1039
0.1039
0
0.028097
0.153501
10,469
334
89
31.344311
0.738659
0.385042
0
0.192771
0
0
0.039455
0
0
0
0
0
0
1
0
false
0
0.090361
0
0.090361
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ed936cafecf6046c66b2300745cd962b854537e7
23,944
py
Python
Feature_Selection.py
ksegaba/ML-Pipeline
cd3914563ccd2e2eb863a55e7fe774108280ed47
[ "MIT" ]
12
2019-09-30T21:17:40.000Z
2022-02-11T00:22:52.000Z
Feature_Selection.py
DanyelleJhang/ML-Pipeline
78073fd1004f831c4efdd05e0f1eb78c8bae4fcb
[ "MIT" ]
6
2021-08-03T14:29:16.000Z
2021-11-17T22:39:13.000Z
Feature_Selection.py
DanyelleJhang/ML-Pipeline
78073fd1004f831c4efdd05e0f1eb78c8bae4fcb
[ "MIT" ]
17
2017-05-22T21:03:42.000Z
2022-03-01T15:06:29.000Z
""" PURPOSE: Run feature selection mettestd available from sci-kit learn on a given dataframe Must set path to Miniconda in HPC: export PATH=/mnt/testme/azodichr/miniconda3/bin:$PATH INPUT: -df Feature file for ML. If class/Y values are in a separate file use -df for features and -df2 for class/Y -alg ...
36.169184
144
0.636527
3,667
23,944
4.029452
0.145623
0.027612
0.020574
0.012859
0.458311
0.398078
0.366337
0.342921
0.308541
0.253181
0
0.012953
0.213248
23,944
661
145
36.223903
0.771419
0.247244
0
0.356808
0
0.025822
0.231826
0.023897
0
0
0
0
0
1
0.025822
false
0.007042
0.049296
0
0.075117
0.08216
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ed95341fd58164725063ce6ee238cb6800234854
6,815
py
Python
analyses/seasonality_paper_st/comparisons/specific.py
akuhnregnier/wildfire-analysis
a04deada145cec864051d2fb15aec1a53a0246b9
[ "MIT" ]
null
null
null
analyses/seasonality_paper_st/comparisons/specific.py
akuhnregnier/wildfire-analysis
a04deada145cec864051d2fb15aec1a53a0246b9
[ "MIT" ]
null
null
null
analyses/seasonality_paper_st/comparisons/specific.py
akuhnregnier/wildfire-analysis
a04deada145cec864051d2fb15aec1a53a0246b9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import warnings from pathlib import Path PROJECT_DIR = Path(__file__).resolve().parent if sys.path[0] != str(PROJECT_DIR.parent): sys.path.insert(0, str(PROJECT_DIR.parent)) warnings.filterwarnings( "ignore", category=FutureWarning, module="sklearn.utils.deprecation" ) from ...
29.375
96
0.612619
840
6,815
4.738095
0.282143
0.033166
0.040201
0.015075
0.195477
0.101005
0.058291
0.019095
0.019095
0
0
0.01263
0.279677
6,815
231
97
29.502165
0.798126
0.055613
0
0.10989
0
0
0.071417
0.029563
0
0
0
0
0.005495
1
0.016484
false
0.005495
0.027473
0
0.06044
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ed96aca008acbd291e61b7b834d23df210a0de3f
722
py
Python
scripts/bbann_script/rewrite.py
PwzXxm/BBAnn
2dafce027599b3cdf84070248467294dca2a1042
[ "MIT" ]
11
2021-11-01T06:49:30.000Z
2022-02-25T08:09:21.000Z
scripts/bbann_script/rewrite.py
PwzXxm/BBAnn
2dafce027599b3cdf84070248467294dca2a1042
[ "MIT" ]
null
null
null
scripts/bbann_script/rewrite.py
PwzXxm/BBAnn
2dafce027599b3cdf84070248467294dca2a1042
[ "MIT" ]
5
2021-11-04T02:18:41.000Z
2022-03-17T04:13:07.000Z
#!/usr/bin/python3 import sys column_num=eval(sys.argv[1]) print("ARGUMENT column_num: ", column_num) file_name = "tana_res.txt" records = {} with open(file_name) as f: while True: line = f.readline() # Line 1: log file name if not line: break print(line.strip()) key = f.readline().strip() # Line 2: the k...
22.5625
71
0.65097
119
722
3.840336
0.462185
0.078775
0.061269
0
0
0
0
0
0
0
0
0.013445
0.1759
722
31
72
23.290323
0.754622
0.123269
0
0
0
0
0.08744
0
0
0
0
0
0
1
0
false
0
0.038462
0
0.038462
0.115385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ed96b143353b2e72a3e901bf774af07ab594b2aa
2,743
py
Python
kloppy/tests/test_datafactory.py
ThomasSeidl/kloppy
ca59bb2aa3b54b08a50d35e2ed2dd3c2f56cdded
[ "BSD-3-Clause" ]
176
2020-04-24T09:12:05.000Z
2022-03-27T07:03:44.000Z
kloppy/tests/test_datafactory.py
ThomasSeidl/kloppy
ca59bb2aa3b54b08a50d35e2ed2dd3c2f56cdded
[ "BSD-3-Clause" ]
95
2020-04-24T18:37:36.000Z
2022-03-23T21:59:10.000Z
kloppy/tests/test_datafactory.py
ThomasSeidl/kloppy
ca59bb2aa3b54b08a50d35e2ed2dd3c2f56cdded
[ "BSD-3-Clause" ]
39
2020-05-08T21:45:26.000Z
2022-03-19T09:29:41.000Z
import os from kloppy import DatafactorySerializer from kloppy.domain import ( AttackingDirection, Ground, Orientation, Period, Point, Provider, SetPieceType, ) from kloppy.domain.models.common import DatasetType class TestDatafactory: def test_correct_deserialization(self): b...
33.864198
79
0.638717
297
2,743
5.750842
0.343434
0.114169
0.098361
0.04918
0.357143
0.293911
0.254098
0.210773
0.210773
0.210773
0
0.030617
0.261757
2,743
80
80
34.2875
0.81284
0.010208
0
0.215385
0
0
0.054204
0.029499
0
0
0
0
0.338462
1
0.030769
false
0
0.061538
0
0.107692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ed96c2f783024bd964e139219b7d2d0bf6f1f219
2,308
py
Python
models/BiLSTM_MHATT.py
shiqiuwang/shiqiuwang-N2NCause
a6cdb702b000b62b29ccdbd74bfbb666420124f1
[ "MIT" ]
null
null
null
models/BiLSTM_MHATT.py
shiqiuwang/shiqiuwang-N2NCause
a6cdb702b000b62b29ccdbd74bfbb666420124f1
[ "MIT" ]
null
null
null
models/BiLSTM_MHATT.py
shiqiuwang/shiqiuwang-N2NCause
a6cdb702b000b62b29ccdbd74bfbb666420124f1
[ "MIT" ]
null
null
null
import tensorflow as tf from layers.attention import stacked_multihead_attention from layers.recurrent import rnn_layer from layers.similarity import manhattan_similarity from models.base_model import BaseSiameseNet class LSTMATTBasedSiameseNet(BaseSiameseNet): def __init__( self, ma...
30.368421
81
0.596187
246
2,308
5.195122
0.288618
0.062598
0.065728
0.046948
0.405321
0.369327
0.323944
0.323944
0.323944
0.323944
0
0.012862
0.326257
2,308
75
82
30.773333
0.809003
0.006932
0
0.5
0
0
0.054561
0
0
0
0
0
0
1
0.03125
false
0
0.078125
0
0.140625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ed974b0d6e70499730b205caa7425ce10c83731b
2,237
py
Python
sciquence/sequences/sliding_window.py
krzjoa/sciquence
6a5f758c757200fffeb0fdc9206462f1f89e2444
[ "MIT" ]
8
2017-10-23T17:59:35.000Z
2021-05-10T03:01:30.000Z
sciquence/sequences/sliding_window.py
krzjoa/sciquence
6a5f758c757200fffeb0fdc9206462f1f89e2444
[ "MIT" ]
2
2019-08-25T19:24:12.000Z
2019-09-05T12:16:10.000Z
sciquence/sequences/sliding_window.py
krzjoa/sciquence
6a5f758c757200fffeb0fdc9206462f1f89e2444
[ "MIT" ]
2
2018-02-28T09:47:53.000Z
2019-08-25T19:24:16.000Z
# Krzysztof Joachimiak 2017 # sciquence: Time series & sequences in Python # # Sliding window # Author: Krzysztof Joachimiak # # License: MIT from sklearn.base import BaseEstimator, TransformerMixin from sklearn.preprocessing import Imputer class SlidingWindow(BaseEstimator, TransformerMixin): # TODO: check ref...
21.509615
69
0.588735
253
2,237
5.098814
0.466403
0.08062
0.046512
0.029457
0.151938
0.151938
0.151938
0.151938
0.151938
0.151938
0
0.022307
0.298614
2,237
103
70
21.718447
0.799873
0.588288
0
0
0
0
0
0
0
0
0
0.019417
0
1
0.214286
false
0
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
0
1
0
0
3
ed992d81dea8a5144be3f93a447f968a5f7b383d
2,923
py
Python
ddesigner/conditional.py
Ball-Man/python-ddesigner
2e1522e28389fe6e2d7b40f8877732563d3dd368
[ "MIT" ]
1
2021-08-17T10:40:48.000Z
2021-08-17T10:40:48.000Z
ddesigner/conditional.py
Ball-Man/python-ddesigner
2e1522e28389fe6e2d7b40f8877732563d3dd368
[ "MIT" ]
null
null
null
ddesigner/conditional.py
Ball-Man/python-ddesigner
2e1522e28389fe6e2d7b40f8877732563d3dd368
[ "MIT" ]
null
null
null
"""Module containing the logic for an arithmetic parser. Lark is used as a parser generator. """ from typing import Mapping import operator import lark # Default syntax for arithmetic expressions ARITHM_EXPRESSIONS_SYNTAX = """ ?start: or ?or: and | or "||" and -> or_ | or "or" and -> or_ ?and: comparison ...
23.384
70
0.609648
331
2,923
5.299094
0.305136
0.051881
0.011973
0.010262
0.152794
0.103763
0.103763
0.103763
0.103763
0.103763
0
0
0.280192
2,923
124
71
23.572581
0.83365
0.205953
0
0
0
0
0.441256
0.009417
0
0
0
0
0
1
0.103896
false
0
0.090909
0.051948
0.480519
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ed999549258bd692481abf7879dce3a39b46c915
5,996
py
Python
src/opendr/perception/object_detection_3d/voxel_object_detection_3d/second_detector/pytorch/builder/lr_scheduler_builder.py
makistsantekidis/opendr
07dee3b59d3487b9c5a93d6946317178a02c9890
[ "Apache-2.0" ]
217
2020-04-10T16:39:36.000Z
2022-03-30T15:39:04.000Z
src/opendr/perception/object_detection_3d/voxel_object_detection_3d/second_detector/pytorch/builder/lr_scheduler_builder.py
makistsantekidis/opendr
07dee3b59d3487b9c5a93d6946317178a02c9890
[ "Apache-2.0" ]
79
2021-06-23T10:40:10.000Z
2021-12-16T07:59:42.000Z
src/opendr/perception/object_detection_3d/voxel_object_detection_3d/second_detector/pytorch/builder/lr_scheduler_builder.py
makistsantekidis/opendr
07dee3b59d3487b9c5a93d6946317178a02c9890
[ "Apache-2.0" ]
29
2021-12-16T09:26:13.000Z
2022-03-29T15:19:18.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.690476
84
0.698299
695
5,996
5.683453
0.217266
0.203544
0.068354
0.048608
0.696709
0.690127
0.660253
0.612911
0.586076
0.548101
0
0.003006
0.223149
5,996
167
85
35.904192
0.844998
0.203469
0
0.509804
0
0
0.105832
0.044115
0
0
0
0
0
1
0.039216
false
0
0.009804
0
0.088235
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ed9a8d66960ed413540be7e9fc0394c6fc149910
1,656
py
Python
samples/wmi/wmi_request.py
R3dFruitRollUp/PythonForWindows
b253bc5873e7d97087ed22f2753b51fc6880ec18
[ "BSD-3-Clause" ]
1
2018-11-15T11:15:56.000Z
2018-11-15T11:15:56.000Z
samples/wmi/wmi_request.py
killvxk/PythonForWindows
b253bc5873e7d97087ed22f2753b51fc6880ec18
[ "BSD-3-Clause" ]
null
null
null
samples/wmi/wmi_request.py
killvxk/PythonForWindows
b253bc5873e7d97087ed22f2753b51fc6880ec18
[ "BSD-3-Clause" ]
1
2018-12-01T19:11:49.000Z
2018-12-01T19:11:49.000Z
import sys import os.path import pprint sys.path.append(os.path.abspath(__file__ + "\..\..")) import windows print("WMI requester is {0}".format(windows.system.wmi)) print("Selecting * from 'Win32_Process'") result = windows.system.wmi.select("Win32_Process") print("They are <{0}> processes".format(len(result))) pri...
36.8
98
0.660628
214
1,656
5.070093
0.359813
0.04977
0.03871
0.071889
0.04977
0
0
0
0
0
0
0.022853
0.128019
1,656
44
99
37.636364
0.728532
0
0
0
0
0
0.424682
0.029643
0
0
0
0
0
1
0
false
0
0.121212
0
0.121212
0.666667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
ed9b02518328f3649735b397457fcd707b2a240e
92
py
Python
POP1/worksheets/two/ex15/code.py
silvafj/BBK-MSCCS-2017-18
d97b0f8e7434d19a1a4006989c32c4c1deb93842
[ "MIT" ]
1
2021-12-29T19:38:56.000Z
2021-12-29T19:38:56.000Z
POP1/worksheets/two/ex15/code.py
silvafj/BBK-MSCCS-2017-18
d97b0f8e7434d19a1a4006989c32c4c1deb93842
[ "MIT" ]
null
null
null
POP1/worksheets/two/ex15/code.py
silvafj/BBK-MSCCS-2017-18
d97b0f8e7434d19a1a4006989c32c4c1deb93842
[ "MIT" ]
2
2021-04-08T22:58:03.000Z
2021-04-09T01:16:51.000Z
l = [int(e) for e in input().split()] for n in l: if l.count(n) == 1: print(n)
15.333333
37
0.478261
19
92
2.315789
0.631579
0
0
0
0
0
0
0
0
0
0
0.015873
0.315217
92
5
38
18.4
0.68254
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ed9cb27df1647e3b076c465c218bb03a9d9b60ef
20,065
py
Python
source.py
Shailendram1990/COVID19_mobility
70dc3d05313b233229ea5f8d1c4c1b0dffe44e33
[ "MIT" ]
1
2020-07-21T16:11:51.000Z
2020-07-21T16:11:51.000Z
source.py
Shailendram1990/COVID19_mobility
70dc3d05313b233229ea5f8d1c4c1b0dffe44e33
[ "MIT" ]
null
null
null
source.py
Shailendram1990/COVID19_mobility
70dc3d05313b233229ea5f8d1c4c1b0dffe44e33
[ "MIT" ]
null
null
null
""" This script loads Google and Apple Mobility reports, builds cleaned reports in different formats and builds merged files from both sources. Original data: - Google Community Mobility reports: https://www.google.com/covid19/mobility/ - Apple Mobility Trends reports: https://www.apple.com/covid19/mobili...
42.782516
140
0.579018
2,303
20,065
4.854103
0.111594
0.023616
0.02952
0.011629
0.607747
0.541014
0.488147
0.41086
0.380267
0.312819
0
0.002805
0.306952
20,065
468
141
42.873932
0.801093
0.170596
0
0.384858
0
0.003155
0.228871
0.048013
0
0
0
0
0
1
0.031546
false
0
0.028391
0
0.088328
0.025237
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ed9e27a1dfc15a74b30acc3524b9b0e30df90f89
4,975
py
Python
racing_data/performance_list.py
predictive-punter/racing_data
0d1b0ad0fe7591ce859d528af719349c0c7534d3
[ "MIT" ]
15
2017-04-08T05:22:49.000Z
2021-04-20T17:33:22.000Z
racing_data/performance_list.py
phillc73/racing_data
0d1b0ad0fe7591ce859d528af719349c0c7534d3
[ "MIT" ]
54
2016-07-21T10:35:45.000Z
2016-07-30T23:06:50.000Z
racing_data/performance_list.py
phillc73/racing_data
0d1b0ad0fe7591ce859d528af719349c0c7534d3
[ "MIT" ]
7
2016-12-15T06:02:54.000Z
2020-04-20T15:32:55.000Z
class PerformanceList(list): """A performance list provides statistical analysis functionality for a list of performances""" @property def earnings(self): """Return the total prize money for the performances in this list""" prize_monies = [performance['prize_money'] for performance in self...
34.79021
156
0.665126
627
4,975
5.204147
0.141946
0.033098
0.052099
0.101134
0.532026
0.456635
0.317806
0.257125
0.238124
0.162734
0
0.00509
0.249648
4,975
142
157
35.035211
0.869006
0.296884
0
0.246753
0
0
0.032382
0
0
0
0
0
0
1
0.246753
false
0
0
0
0.532468
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
ed9eb4ccb84e2b5861f5d2fd5428fb0fde542ab3
343
py
Python
Leetcode/72. Edit Distance/solution2.py
asanoviskhak/Outtalent
c500e8ad498f76d57eb87a9776a04af7bdda913d
[ "MIT" ]
51
2020-07-12T21:27:47.000Z
2022-02-11T19:25:36.000Z
Leetcode/72. Edit Distance/solution2.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
null
null
null
Leetcode/72. Edit Distance/solution2.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
32
2020-07-27T13:54:24.000Z
2021-12-25T18:12:50.000Z
class Solution: def minDistance(self, word1: str, word2: str) -> int: @lru_cache(None) def dp(i, j): if i < 0 or j < 0: return max(i, j) + 1 return dp(i - 1, j - 1) if word1[i] == word2[j] else min(dp(i - 1, j), dp(i - 1, j - 1), dp(i, j - 1)) + 1 return dp(len(word1...
38.111111
118
0.483965
63
343
2.619048
0.380952
0.090909
0.072727
0.090909
0.072727
0
0
0
0
0
0
0.078947
0.335277
343
8
119
42.875
0.644737
0
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
eda08d58045fdf93c52e02e54d88ae92b393de36
2,130
py
Python
cogs/lyrics.py
minihut/leafy-bot
b9c12b18f8a6ba8409ced5fe352421623bbffcee
[ "MIT" ]
12
2021-01-19T05:47:03.000Z
2022-01-14T12:51:33.000Z
cogs/lyrics.py
minihut/leafy-bot
b9c12b18f8a6ba8409ced5fe352421623bbffcee
[ "MIT" ]
1
2021-02-22T12:08:10.000Z
2021-02-22T12:08:10.000Z
cogs/lyrics.py
minihut/leafy-bot
b9c12b18f8a6ba8409ced5fe352421623bbffcee
[ "MIT" ]
12
2021-01-17T07:31:34.000Z
2021-05-17T14:01:07.000Z
import discord import requests from discord.ext import commands from discord.ext.commands import BucketType, cooldown class Lyrics(commands.Cog): def __init__(self, client): self.client = client @commands.Cog.listener() async def on_ready(self): print("Lyrics cog loaded successfully") ...
31.323529
88
0.528638
239
2,130
4.619247
0.456067
0.021739
0.035326
0.046196
0.048913
0
0
0
0
0
0
0.01685
0.359155
2,130
67
89
31.791045
0.791941
0.02723
0
0.04
0
0
0.139614
0.011111
0
0
0.003865
0
0
1
0.08
false
0
0.08
0
0.24
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eda1be23822efe6556205accc545c9d894a8431d
2,761
py
Python
model_train.py
Sanatramesh/PCamNet
7238a87584ffec26336ae2034ec5723d8a035dca
[ "BSD-3-Clause" ]
null
null
null
model_train.py
Sanatramesh/PCamNet
7238a87584ffec26336ae2034ec5723d8a035dca
[ "BSD-3-Clause" ]
null
null
null
model_train.py
Sanatramesh/PCamNet
7238a87584ffec26336ae2034ec5723d8a035dca
[ "BSD-3-Clause" ]
null
null
null
import time import pickle import numpy as np from copy import deepcopy class ModelTraining: def __init__(self, model, data_loader, batch_size = 10, epochs = 20, model_ckpt_file = 'model/PCamNet'): self.model = model self.data_loader = data_loader # List of tuple: (left_cam, right_cam, disp_map) fi...
37.821918
108
0.561391
321
2,761
4.582555
0.277259
0.079538
0.053025
0.046227
0
0
0
0
0
0
0
0.019189
0.33937
2,761
72
109
38.347222
0.787281
0.094893
0
0.039216
0
0
0.080994
0
0
0
0
0
0
1
0.078431
false
0
0.078431
0.019608
0.215686
0.156863
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eda283b01e0b59cd7f31f32beaffd18135370de1
695
py
Python
generatemusic/generate_waveforms.py
WiktorSa/Music-Generation-with-LSTM-and-.wav-files
37b713b5e6193788a7710cc0fac4134efb74fa62
[ "MIT" ]
1
2022-03-09T20:13:57.000Z
2022-03-09T20:13:57.000Z
generatemusic/generate_waveforms.py
WiktorSa/Music-Generation-with-LSTM-and-.wav-files
37b713b5e6193788a7710cc0fac4134efb74fa62
[ "MIT" ]
1
2021-10-01T16:20:06.000Z
2021-10-01T17:25:30.000Z
generatemusic/generate_waveforms.py
WiktorSa/Music-Generation-with-LSTM-and-.wav-files
37b713b5e6193788a7710cc0fac4134efb74fa62
[ "MIT" ]
null
null
null
import numpy as np from scipy.fft import ifft def generate_waveforms(data: np.ndarray) -> np.ndarray: """ Generate waveforms from frequency domains :param data: frequency domains (where first n/2 examples consist of real values and the rest consists of imaginary values) :return: numpy array conta...
26.730769
105
0.722302
93
695
5.258065
0.483871
0.114519
0.07362
0.09816
0
0
0
0
0
0
0
0.010733
0.195683
695
25
106
27.8
0.864043
0.303597
0
0
1
0
0.015351
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
eda47ef3a198b2afd2d1ca2fa747773c857b5cf8
3,745
py
Python
aiohttp_pydantic/oas/docstring_parser.py
HerrMuellerluedenscheid/aiohttp-pydantic
87b4487cc46213a3248807825e2e3e71413fa543
[ "MIT" ]
42
2020-11-18T16:14:45.000Z
2022-03-21T09:18:48.000Z
aiohttp_pydantic/oas/docstring_parser.py
HerrMuellerluedenscheid/aiohttp-pydantic
87b4487cc46213a3248807825e2e3e71413fa543
[ "MIT" ]
26
2020-11-15T08:27:09.000Z
2022-03-04T15:26:20.000Z
aiohttp_pydantic/oas/docstring_parser.py
HerrMuellerluedenscheid/aiohttp-pydantic
87b4487cc46213a3248807825e2e3e71413fa543
[ "MIT" ]
11
2020-11-24T22:13:35.000Z
2021-10-02T19:56:26.000Z
""" Utility to extract extra OAS description from docstring. """ import re import textwrap from typing import Dict, List class LinesIterator: def __init__(self, lines: str): self._lines = lines.splitlines() self._i = -1 def next_line(self) -> str: if self._i == len(self._lines) - 1: ...
27.335766
87
0.558344
442
3,745
4.58371
0.223982
0.017275
0.011846
0.031589
0.333169
0.307009
0.2769
0.217177
0.172754
0.172754
0
0.004673
0.314286
3,745
136
88
27.536765
0.784268
0.125234
0
0.387097
0
0
0.053605
0.036677
0
0
0
0
0
1
0.107527
false
0.010753
0.032258
0.021505
0.311828
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eda6101f4f3ce0ae4b05b44676ba1870709c8953
802
py
Python
ExerciciosPYTHON/PythonCeV/073.py
Samuel-Melo890/Python-Desafios
2abc7734d6a6c1f5ab67421f792d6889d93bac94
[ "MIT" ]
null
null
null
ExerciciosPYTHON/PythonCeV/073.py
Samuel-Melo890/Python-Desafios
2abc7734d6a6c1f5ab67421f792d6889d93bac94
[ "MIT" ]
2
2022-03-18T16:06:07.000Z
2022-03-18T16:55:29.000Z
ExerciciosPYTHON/PythonCeV/073.py
Samuel-Melo890/Python-Desafios
2abc7734d6a6c1f5ab67421f792d6889d93bac94
[ "MIT" ]
null
null
null
print('='*8,'Tuplas com Times de Futebol','='*8) cf = ('Palmeiras', 'Santos', 'Vasco da Gama', 'Grêmio', 'Flamengo', 'Corinthians', 'Internacional', 'Cruzeiro', 'São Paulo', 'Atlético Mineiro', 'Botafogo', 'Fluminense', 'Coritiba', 'Bahia', 'Goiás', 'Guarani', 'Sport', 'Portuguesa', 'Atlético Paranaense', 'Vitória') pr...
53.466667
268
0.660848
113
802
4.690265
0.60177
0.079245
0.113208
0.122642
0.171698
0.083019
0.083019
0
0
0
0
0.025751
0.128429
802
14
269
57.285714
0.732475
0
0
0.428571
0
0
0.674564
0
0
0
0
0
0
1
0
false
0
0
0
0
0.928571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
eda7e04ad9c248cbb73643c80f0b53fa4f66d240
527
py
Python
setup.py
dcrowe/sdk-python
f8f069725a7beda67cb25f94425972913b08373e
[ "Apache-2.0" ]
null
null
null
setup.py
dcrowe/sdk-python
f8f069725a7beda67cb25f94425972913b08373e
[ "Apache-2.0" ]
null
null
null
setup.py
dcrowe/sdk-python
f8f069725a7beda67cb25f94425972913b08373e
[ "Apache-2.0" ]
null
null
null
from setuptools import setup setup( name='visual_regression_tracker', version='4.0.0', description='Open source, self hosted solution for visual testing ' 'and managing results of visual testing.', long_description=open('README.md').read(), long_description_content_type='text/markdo...
31
71
0.685009
59
527
5.983051
0.694915
0.181303
0.260623
0
0
0
0
0
0
0
0
0.006961
0.182163
527
16
72
32.9375
0.812065
0
0
0
0
0
0.480076
0.142315
0
0
0
0
0
1
0
true
0
0.066667
0
0.066667
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
eda7fe44739cb06874629ff7fa3f82ea841088f1
423
py
Python
World 1/Exercise 31.py
NikiReis/Python--Exercises
2f50a3cd6900cec024edcf1a812d1cd86afcdea1
[ "MIT" ]
null
null
null
World 1/Exercise 31.py
NikiReis/Python--Exercises
2f50a3cd6900cec024edcf1a812d1cd86afcdea1
[ "MIT" ]
null
null
null
World 1/Exercise 31.py
NikiReis/Python--Exercises
2f50a3cd6900cec024edcf1a812d1cd86afcdea1
[ "MIT" ]
null
null
null
print("-"*14) print("Km's Calculation") print("-"*14) kms = int(input("How many kilometers did you drive ? ")) if kms<=200: price = kms*0.50 print("Price to be paied out equivalent\nto quantity of the kilometers that you have driven: R$ {}".format(price)) else: price = kms*0.45 print("Price...
35.25
119
0.661939
67
423
4.179104
0.522388
0.05
0.064286
0.1
0.621429
0.621429
0.621429
0.621429
0.621429
0.621429
0
0.038235
0.196217
423
12
120
35.25
0.785294
0
0
0.2
0
0
0.57385
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
eda80428d8aaafe609a0be6935df873454da8b92
10,224
py
Python
tests/test_objects.py
kipyin/phanpy
f66fb1b181aeec6183bb03bd748e6ed535496a54
[ "MIT" ]
null
null
null
tests/test_objects.py
kipyin/phanpy
f66fb1b181aeec6183bb03bd748e6ed535496a54
[ "MIT" ]
null
null
null
tests/test_objects.py
kipyin/phanpy
f66fb1b181aeec6183bb03bd748e6ed535496a54
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import pytest import os, sys file_path = os.path.dirname(os.path.abspath(__file__)) root_path = file_path.replace('/phanpy/tests', '') sys.path.append(root_path) if root_path not in sys.path else None import numpy as np from phanpy.core.objects import Status, Item, Move...
33.742574
83
0.624902
1,306
10,224
4.698315
0.196784
0.049055
0.047099
0.080346
0.416069
0.297099
0.204368
0.169492
0.135593
0.123207
0
0.033847
0.257336
10,224
302
84
33.854305
0.774266
0.032179
0
0.253219
0
0
0.041257
0
0
0
0
0
0.334764
1
0.193133
false
0
0.017167
0
0.23176
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eda9ec61c9c268e74679c06d29ce37757b47bb1d
5,743
py
Python
Modules/Dependency/Metadata_Interpreter.py
dobedobedo/Parrot_Sequoia_Image_Handler
e8d44d88006cf1f4e597aac1523c6f4458534e5b
[ "MIT" ]
6
2018-06-27T10:13:29.000Z
2020-05-11T03:00:10.000Z
Modules/Dependency/Metadata_Interpreter.py
dobedobedo/Parrot_Sequoia_Image_Handler
e8d44d88006cf1f4e597aac1523c6f4458534e5b
[ "MIT" ]
null
null
null
Modules/Dependency/Metadata_Interpreter.py
dobedobedo/Parrot_Sequoia_Image_Handler
e8d44d88006cf1f4e597aac1523c6f4458534e5b
[ "MIT" ]
3
2017-09-25T12:46:38.000Z
2021-06-15T15:57:50.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Jun 23 16:08:19 2017 @author: uqytu1 """ import math import numpy as np import urllib.request import json import base64 import struct import datetime import pytz def GetLonLat(Metadata): Position = Metadata['GPSPosition'].split(',') Latitude = ...
34.596386
97
0.632596
661
5,743
5.449319
0.323752
0.029983
0.016657
0.02332
0.114381
0.078845
0.042199
0.042199
0.042199
0.042199
0
0.024803
0.227756
5,743
166
98
34.596386
0.787373
0.072262
0
0.046875
0
0
0.081686
0.019763
0
0
0
0
0.007813
1
0.132813
false
0
0.0625
0.03125
0.328125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edabc77fd3da28138cd10a06ef81ba6b153764ea
453
py
Python
lectures/5_Image_Analysis/combine_color_image.py
jagar2/Summer_2020_MAT-395-495_Scientific-Data-Analysis-and-Computing
e4b831460bddd34e7ad1d8888327c8d85b80e35e
[ "BSD-3-Clause" ]
1
2021-11-10T15:34:37.000Z
2021-11-10T15:34:37.000Z
lectures/5_Image_Analysis/combine_color_image.py
jagar2/Summer_2020_MAT-395-495_Scientific-Data-Analysis-and-Computing
e4b831460bddd34e7ad1d8888327c8d85b80e35e
[ "BSD-3-Clause" ]
null
null
null
lectures/5_Image_Analysis/combine_color_image.py
jagar2/Summer_2020_MAT-395-495_Scientific-Data-Analysis-and-Computing
e4b831460bddd34e7ad1d8888327c8d85b80e35e
[ "BSD-3-Clause" ]
3
2020-08-06T15:11:50.000Z
2022-01-05T20:21:09.000Z
from skimage import draw red = np.zeros((300, 300)) green = np.zeros((300, 300)) blue = np.zeros((300, 300)) r, c = draw.circle(100, 100, 100) red[r, c] = 1 r, c = draw.circle(100, 200, 100) green[r, c] = 1 r, c = draw.circle(200, 150, 100) blue[r, c] = 1 f, axes = plt.subplots(1, 3) for (ax, channel) in zip(axes...
19.695652
51
0.600442
84
453
3.238095
0.404762
0.044118
0.110294
0.143382
0.176471
0.110294
0.110294
0
0
0
0
0.138587
0.187638
453
22
52
20.590909
0.600543
0
0
0
0
0
0.015487
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edb02ecbb069aa18674ef4e8555933c211f6074c
1,398
py
Python
chapters/chapter_3/NN_yelp/main.py
Penguin-Run/PyTorchBook
a310246ffed33d53a70cd7f2fd971f1626dcbebf
[ "Apache-2.0" ]
null
null
null
chapters/chapter_3/NN_yelp/main.py
Penguin-Run/PyTorchBook
a310246ffed33d53a70cd7f2fd971f1626dcbebf
[ "Apache-2.0" ]
null
null
null
chapters/chapter_3/NN_yelp/main.py
Penguin-Run/PyTorchBook
a310246ffed33d53a70cd7f2fd971f1626dcbebf
[ "Apache-2.0" ]
null
null
null
from .training.ReviewClassifier import ReviewClassifier from .data_managing.Dataset import ReviewDataset from .training.hyperparameters import args from .testing import compute_loss_acc as loss_acc from .testing import predict_rating as predict from .testing import analizing as analyze if __name__ == '__main__': ...
41.117647
100
0.724607
158
1,398
6.170886
0.424051
0.051282
0.052308
0.045128
0.110769
0.110769
0.110769
0.110769
0
0
0
0.001803
0.206724
1,398
33
101
42.363636
0.877367
0.098712
0
0
0
0
0.083732
0
0
0
0
0
0
1
0
false
0
0.26087
0
0.26087
0.130435
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edb0ab27e8375216bb7fe46df1fbcdeb336314c4
6,573
py
Python
setup.py
hpleva/ai4materials
5b5548f4fbfd4751cd1f9d57cedaa1e1d7ca04b2
[ "Apache-2.0" ]
null
null
null
setup.py
hpleva/ai4materials
5b5548f4fbfd4751cd1f9d57cedaa1e1d7ca04b2
[ "Apache-2.0" ]
null
null
null
setup.py
hpleva/ai4materials
5b5548f4fbfd4751cd1f9d57cedaa1e1d7ca04b2
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages, Extension # To use a consistent encoding from codecs import open # Other stuff import sys, os, fileinput import versioneer here = os.path.dirname(os.path.realpath(__file__)) def main(): # Start package setup # Get the long description from the README file wit...
42.681818
126
0.597596
764
6,573
5.068063
0.434555
0.015496
0.014463
0.020145
0.043388
0.035641
0.035641
0.018079
0
0
0
0.026536
0.27187
6,573
153
127
42.960784
0.782491
0.499772
0
0
0
0
0.387539
0.097508
0
0
0
0
0
1
0.020408
false
0
0.081633
0
0.102041
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edb1c338921c46604a227fc5ad3a3537657d82d7
1,074
py
Python
zeekofile/_controllers/blog/permapage.py
cdarlint/zeekofile
e5c999f0adfa1837c255b856eb030fb6838b0ea1
[ "MIT" ]
1
2022-02-20T08:02:00.000Z
2022-02-20T08:02:00.000Z
zeekofile/_controllers/blog/permapage.py
cdarlint/zeekofile
e5c999f0adfa1837c255b856eb030fb6838b0ea1
[ "MIT" ]
1
2021-07-23T19:45:58.000Z
2021-07-23T19:45:58.000Z
zeekofile/_controllers/blog/permapage.py
cdarlint/zeekofile
e5c999f0adfa1837c255b856eb030fb6838b0ea1
[ "MIT" ]
null
null
null
from zeekofile.cache import zf import re blog = zf.config.controllers.blog def run(): write_permapages() def write_permapages(): "Write blog posts to their permalink locations" site_re = re.compile(zf.config.site.url, re.IGNORECASE) num_posts = len(blog.posts) for i, post in enumerate(blog.pos...
28.263158
83
0.587523
138
1,074
4.5
0.471014
0.086957
0.045089
0.045089
0.048309
0
0
0
0
0
0
0.007916
0.294227
1,074
37
84
29.027027
0.811346
0.13594
0
0
0
0
0.16358
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edb1f4bb4d10e992c753da4af6fcdd517e93ba5c
132
py
Python
fundamentos-de-programacao/lista-15-05-19/Q1-RaizQuadrada.py
kbcvcbk/cesar-school
b857ac651175bd08551303a7e82d16c4a9f621d8
[ "MIT" ]
2
2020-05-14T00:29:38.000Z
2022-03-08T23:28:02.000Z
fundamentos-de-programacao/lista-15-05-19/Q1-RaizQuadrada.py
kbcvcbk/cesar-school
b857ac651175bd08551303a7e82d16c4a9f621d8
[ "MIT" ]
1
2022-03-02T11:26:37.000Z
2022-03-02T11:26:37.000Z
fundamentos-de-programacao/lista-15-05-19/Q1-RaizQuadrada.py
kbcvcbk/cesar-school
b857ac651175bd08551303a7e82d16c4a9f621d8
[ "MIT" ]
2
2020-11-03T09:36:27.000Z
2022-03-08T23:28:14.000Z
n = float(input("Digite o número: ")) b=2 dif=3.14 while dif >= 0.0001: p=(b+(n/b))/2 print("p é",p) b=p pq = p*p dif=abs(n-pq)
14.666667
37
0.55303
33
132
2.212121
0.575758
0.054795
0
0
0
0
0
0
0
0
0
0.092593
0.181818
132
9
38
14.666667
0.583333
0
0
0
0
0
0.150376
0
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
edb20a4ffd43e59eea413125e997615b1fde62fd
2,045
py
Python
app.py
ZAD4YTV/extract-wifi-passwords-from-windows
89c8bec9861876e82fb5262540f53434b3f5fe1f
[ "MIT" ]
2
2020-12-22T06:05:06.000Z
2020-12-22T06:05:09.000Z
app.py
ZAD4YTV/extract-wifi-passwords-from-windows
89c8bec9861876e82fb5262540f53434b3f5fe1f
[ "MIT" ]
null
null
null
app.py
ZAD4YTV/extract-wifi-passwords-from-windows
89c8bec9861876e82fb5262540f53434b3f5fe1f
[ "MIT" ]
null
null
null
# Requirements import subprocess # Console print initial print('######################################################################') print('') print('######## ## ## ######## ### ######## ## ## ##') print('## ## ## ## ## ## ## ## ## ## ## ## ##') print('## ...
41.734694
166
0.446944
187
2,045
4.877005
0.465241
0.175439
0.197368
0.219298
0.320175
0.184211
0.157895
0.065789
0.065789
0.065789
0
0.007509
0.218582
2,045
48
167
42.604167
0.563204
0.024939
0
0.358974
0
0.025641
0.647059
0.105581
0
0
0
0
0
1
0
false
0.153846
0.025641
0
0.025641
0.794872
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
1
0
0
0
1
0
5
edb23193c334891acc883361c3d8e788e913535e
633
py
Python
src/main/resources/opennlp.models/download_models.py
sully90/dp-search-service
efc6a94dad1c5b3fc898da9ced1606aa345c7ecd
[ "MIT" ]
null
null
null
src/main/resources/opennlp.models/download_models.py
sully90/dp-search-service
efc6a94dad1c5b3fc898da9ced1606aa345c7ecd
[ "MIT" ]
null
null
null
src/main/resources/opennlp.models/download_models.py
sully90/dp-search-service
efc6a94dad1c5b3fc898da9ced1606aa345c7ecd
[ "MIT" ]
null
null
null
#!/usr/bin/python import os def download_model(model_name): ''' Downloads a given model binary ''' print "Downloading ", model_name cmd = "wget http://opennlp.sourceforge.net/models-1.5/%s" % model_name os.system(cmd) if __name__ == "__main__": model_names = ["en-ner-dates.bin", "en-ner-l...
30.142857
102
0.630332
92
633
4.141304
0.5
0.104987
0.125984
0.115486
0
0
0
0
0
0
0
0.003922
0.194313
633
20
103
31.65
0.743137
0.025276
0
0
0
0
0.394737
0.077193
0
0
0
0
0
0
null
null
0
0.083333
null
null
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
1
0
0
0
0
0
0
0
0
1
edb2a9429239ad3822ac8af03b000d236f86beda
31,643
py
Python
python/nsc/nsc_instcal_sexdaophot.py
dnidever/noaosourcecatalog
bdd22e53da3ebb6e6c79d8cbe9e375562b09cfeb
[ "MIT" ]
4
2017-05-23T20:57:33.000Z
2018-01-30T22:51:42.000Z
python/nsc/nsc_instcal_sexdaophot.py
dnidever/noaosourcecatalog
bdd22e53da3ebb6e6c79d8cbe9e375562b09cfeb
[ "MIT" ]
null
null
null
python/nsc/nsc_instcal_sexdaophot.py
dnidever/noaosourcecatalog
bdd22e53da3ebb6e6c79d8cbe9e375562b09cfeb
[ "MIT" ]
1
2021-07-15T03:06:22.000Z
2021-07-15T03:06:22.000Z
#!/usr/bin/env python # # NSC_INSTCAL_SEXDAOPHOT.PY -- Run SExtractor and DAOPHOT on an exposure # from __future__ import print_function __authors__ = 'David Nidever <dnidever@noao.edu>' __version__ = '20180819' # yyyymmdd import os import sys import numpy as np import warnings from astropy.io import fits from astr...
38.078219
152
0.591821
3,815
31,643
4.872608
0.155701
0.027436
0.0241
0.025176
0.32729
0.24337
0.213029
0.171661
0.153801
0.137447
0
0.009331
0.278608
31,643
830
153
38.124096
0.805012
0.170211
0
0.253076
0
0
0.099095
0.009361
0
0
0
0
0
1
0.065026
false
0
0.036907
0.001757
0.195079
0.024605
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edb611f60f037176678c93c92c782533ab009fd9
165
py
Python
analysis/const.py
AgenttiX/pap328-project
0bb2b9dc3a63bcae5d6ae47aa48edb655763157e
[ "MIT" ]
null
null
null
analysis/const.py
AgenttiX/pap328-project
0bb2b9dc3a63bcae5d6ae47aa48edb655763157e
[ "MIT" ]
null
null
null
analysis/const.py
AgenttiX/pap328-project
0bb2b9dc3a63bcae5d6ae47aa48edb655763157e
[ "MIT" ]
null
null
null
import math # Constants ELEMENTARY_CHARGE = 1.602176634e-19 # Coulombs # Conversions ATM_TO_PA = 101325 MBAR_TO_PA = 100 STD_TO_FWHM = 2*math.sqrt(2*math.log(2))
16.5
47
0.757576
28
165
4.214286
0.75
0.067797
0
0
0
0
0
0
0
0
0
0.169014
0.139394
165
9
48
18.333333
0.661972
0.181818
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
edb648c98f0f42744495f4d789c1cca05e6c4704
486
py
Python
dhnx/helpers.py
rbv83/DHNx
e236d720c7ec3c0f400648b96141454557d35476
[ "MIT" ]
14
2020-06-25T14:03:21.000Z
2021-11-25T12:53:08.000Z
dhnx/helpers.py
rbv83/DHNx
e236d720c7ec3c0f400648b96141454557d35476
[ "MIT" ]
51
2020-02-19T14:42:38.000Z
2022-03-23T08:30:31.000Z
dhnx/helpers.py
oemof-heat/district_heating_simulation
edb5c9be17f74d7f200c1eb6a17000a26633bdc3
[ "MIT" ]
3
2020-10-23T15:54:11.000Z
2022-02-28T12:53:09.000Z
import addict class Dict(addict.Dict): def __init__(self, *args, **kwargs): super().__init__(self, *args, **kwargs) def __repr__(self): overview = ['* ' + str(key) for key, value in self.items()] return '\n'.join(overview) def sum_ignore_none(*items): not_none = [value for value...
21.130435
67
0.62963
67
486
4.223881
0.432836
0.09894
0.159011
0.127208
0
0
0
0
0
0
0
0
0.253086
486
22
68
22.090909
0.779614
0
0
0
0
0
0.00823
0
0
0
0
0
0
1
0.214286
false
0
0.071429
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
edb79f71230ac5a199560bfdb6dae152e1a5031d
1,007
py
Python
angr-doc/examples/defcon2017quals_crackme2000/enlightenment/classify.py
Ruide/angr-dev
964dc80c758e25c698c2cbcc454ef5954c5fa0a0
[ "BSD-2-Clause" ]
null
null
null
angr-doc/examples/defcon2017quals_crackme2000/enlightenment/classify.py
Ruide/angr-dev
964dc80c758e25c698c2cbcc454ef5954c5fa0a0
[ "BSD-2-Clause" ]
null
null
null
angr-doc/examples/defcon2017quals_crackme2000/enlightenment/classify.py
Ruide/angr-dev
964dc80c758e25c698c2cbcc454ef5954c5fa0a0
[ "BSD-2-Clause" ]
null
null
null
import subprocess from glob import glob import re from collections import defaultdict import shutil import os import hashlib files = glob('enlightenment_dist/*') libraries = defaultdict(list) ldds = {} for f in files: try: ldd_out = subprocess.check_output(['ldd', f]) except subprocess.CalledProcessEr...
24.560976
203
0.60576
138
1,007
4.376812
0.463768
0.019868
0.019868
0
0
0
0
0
0
0
0
0.015666
0.239325
1,007
40
204
25.175
0.772846
0.199603
0
0.2
0
0
0.041045
0
0
0
0
0
0
0
null
null
0.057143
0.2
null
null
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
1
0
0
1
0
0
0
0
0
2
edb8c9e216e31864005a5218bc360deec4e30ce5
270
py
Python
update-readme.py
jutge-org/j3-logos
f47dfc84e8a2a9f987fdb22c432b6a52893fe294
[ "Apache-2.0" ]
1
2020-12-29T12:19:23.000Z
2020-12-29T12:19:23.000Z
update-readme.py
jutge-org/j3-logos
f47dfc84e8a2a9f987fdb22c432b6a52893fe294
[ "Apache-2.0" ]
null
null
null
update-readme.py
jutge-org/j3-logos
f47dfc84e8a2a9f987fdb22c432b6a52893fe294
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import glob text = ''' # Logos for Jutge.org ''' for png in sorted(glob.glob('*.png')): text += '''- %s\n\n <a href='%s'><img src='%s' height='200'></a>\n\n''' % (png, png, png) with open('README.md', 'w') as file: file.write(text)
16.875
94
0.548148
46
270
3.217391
0.652174
0.027027
0
0
0
0
0
0
0
0
0
0.0181
0.181481
270
15
95
18
0.651584
0.077778
0
0
0
0.125
0.391129
0.084677
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
edb9060cb2e91122e01e0d89597323dc92dbbaa6
14,950
py
Python
adpkd_segmentation/datasets/datasets.py
kurtteichman/adpkd-segmentation-pytorch
20faedfd77aaa26cadfbe636092db3da0f257940
[ "MIT" ]
5
2021-07-09T16:10:56.000Z
2022-03-23T10:22:16.000Z
adpkd_segmentation/datasets/datasets.py
kurtteichman/adpkd-segmentation-pytorch
20faedfd77aaa26cadfbe636092db3da0f257940
[ "MIT" ]
3
2021-06-23T02:47:42.000Z
2022-02-04T22:43:27.000Z
adpkd_segmentation/datasets/datasets.py
aksg87/adpkd-segmentation-pytorch
9a22e06ab905bca456c978f3b40ea427499ccf7d
[ "MIT" ]
2
2021-06-05T22:19:29.000Z
2022-03-13T20:50:13.000Z
import json import numpy as np import torch from pathlib import Path import pandas as pd import pydicom from ast import literal_eval from adpkd_segmentation.data.data_utils import ( get_labeled, get_y_Path, int16_to_uint8, make_dcmdicts, path_2dcm_int16, path_2label, TKV_update, ) from adp...
30.572597
79
0.596321
1,649
14,950
5.189206
0.149788
0.050485
0.030852
0.014725
0.660395
0.636087
0.592264
0.572397
0.563282
0.555218
0
0.014673
0.316187
14,950
488
80
30.635246
0.822361
0.083679
0
0.563889
0
0
0.02375
0
0
0
0
0
0
1
0.044444
false
0
0.027778
0.016667
0.127778
0.008333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edb92c5fd296cb3e07169dc79510c1f1c49d8cee
2,286
py
Python
sktime/utils/validation.py
TonyBagnall/sktime
837a77026be3e53511c3d6139ddad14a39351bf5
[ "BSD-3-Clause" ]
2
2019-08-19T13:59:21.000Z
2020-03-02T20:32:31.000Z
sktime/utils/validation.py
TonyBagnall/boss_fork
837a77026be3e53511c3d6139ddad14a39351bf5
[ "BSD-3-Clause" ]
null
null
null
sktime/utils/validation.py
TonyBagnall/boss_fork
837a77026be3e53511c3d6139ddad14a39351bf5
[ "BSD-3-Clause" ]
2
2019-08-24T12:06:15.000Z
2020-01-09T07:32:40.000Z
import numpy as np def check_ts_X_y(X, y): """Placeholder function for input validation. """ # TODO: add proper checks (e.g. check if input stuff is pandas full of objects) # currently it checks neither the data nor the datatype # return check_X_y(X, y, dtype=None, ensure_2d=False) return X, y ...
38.1
112
0.645232
346
2,286
4.213873
0.346821
0.041152
0.022634
0.005487
0.378601
0.368999
0.341564
0.251029
0.251029
0.251029
0
0.009547
0.266842
2,286
59
113
38.745763
0.860382
0.515311
0
0
0
0
0.211946
0
0
0
0
0.050847
0
1
0.157895
false
0
0.052632
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
edb94af127b7b6cb84e9109091abb7f212cbe179
947
py
Python
main.py
Arcxdd/Kali-Docker
a59bfdc24dde3e8105762c6e44bd5a6115afd44d
[ "Unlicense" ]
null
null
null
main.py
Arcxdd/Kali-Docker
a59bfdc24dde3e8105762c6e44bd5a6115afd44d
[ "Unlicense" ]
null
null
null
main.py
Arcxdd/Kali-Docker
a59bfdc24dde3e8105762c6e44bd5a6115afd44d
[ "Unlicense" ]
null
null
null
import os import sys from halo import Halo spinner = Halo(text='Please wait...', spinner='dots') def main(): """Main program""" portsToExpose = str(input('Ports to expose [Default: 22 for SSH]: ')) print("Installing...\n") spinner.start() os.system("docker pull kalilinux/kali-ro...
22.547619
107
0.549102
110
947
4.645455
0.5
0.062622
0.082192
0.058708
0.086106
0.086106
0.086106
0
0
0
0
0.012195
0.307286
947
41
108
23.097561
0.766768
0.033791
0
0.142857
0
0.071429
0.359212
0.112399
0
0
0
0
0
1
0.071429
false
0
0.107143
0
0.178571
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edb94d210e20eefd62f4198317637767af846a19
324
py
Python
mysite/migrations/0003_remove_blog_image.py
roku104/mysite
774c55751ac6f29c1fb07c4da72a5894c5cbaf19
[ "MIT" ]
1
2018-11-21T02:14:32.000Z
2018-11-21T02:14:32.000Z
mysite/migrations/0003_remove_blog_image.py
roku104/mysite
774c55751ac6f29c1fb07c4da72a5894c5cbaf19
[ "MIT" ]
null
null
null
mysite/migrations/0003_remove_blog_image.py
roku104/mysite
774c55751ac6f29c1fb07c4da72a5894c5cbaf19
[ "MIT" ]
null
null
null
# Generated by Django 2.1.1 on 2018-09-26 15:25 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('mysite', '0002_auto_20180912_1246'), ] operations = [ migrations.RemoveField( model_name='blog', name='image', ), ...
18
47
0.58642
35
324
5.314286
0.828571
0
0
0
0
0
0
0
0
0
0
0.136564
0.299383
324
17
48
19.058824
0.682819
0.138889
0
0
1
0
0.137184
0.083032
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
edb9a342dd84b94be341c6a7b6d981951da4877d
1,098
py
Python
.vscode/compilers/pycompile.py
croghostrider/Loxone-Recovery
cb47a6fd8a685e5995f11e61f3a6e0126fb19828
[ "MIT" ]
1
2022-03-20T22:27:45.000Z
2022-03-20T22:27:45.000Z
.vscode/compilers/pycompile.py
croghostrider/Loxone-Recovery
cb47a6fd8a685e5995f11e61f3a6e0126fb19828
[ "MIT" ]
null
null
null
.vscode/compilers/pycompile.py
croghostrider/Loxone-Recovery
cb47a6fd8a685e5995f11e61f3a6e0126fb19828
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import shutil import subprocess import sys # ARGS fileDirname = sys.argv[1] fileBasename = sys.argv[2] workspaceFolder = sys.argv[3] # TRANSFORMATION relativeFileDirname = fileDirname[len(workspaceFolder)+1:] fileBasenameNoExtension = "".join(fileBasename.rsplit(".py", 1)) distpath =...
23.361702
71
0.652095
114
1,098
6.166667
0.482456
0.034139
0.056899
0.089616
0.071124
0
0
0
0
0
0
0.006936
0.212204
1,098
46
72
23.869565
0.80578
0.06102
0
0.057143
0
0
0.088694
0
0
0
0
0
0
1
0.057143
false
0
0.114286
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edba4dad99f149168f42524be29efbe1763f78a1
1,430
py
Python
white-head-mountain/pcdn/mainpcdn.py
jiangwenfan/pythonScripts
c9004944f162af575e111522f98d4de4f59885e6
[ "Apache-2.0" ]
null
null
null
white-head-mountain/pcdn/mainpcdn.py
jiangwenfan/pythonScripts
c9004944f162af575e111522f98d4de4f59885e6
[ "Apache-2.0" ]
null
null
null
white-head-mountain/pcdn/mainpcdn.py
jiangwenfan/pythonScripts
c9004944f162af575e111522f98d4de4f59885e6
[ "Apache-2.0" ]
null
null
null
from hostNameHandle import hostNameHandle from gethostList import get_ips from getwechat import getProxyInfo from gethostNameIp import getIps from getFrequency import getFrequency from getDownloadAccount import getInfo from sendMessage import sendMessage hostName=input("主机名:") type = str(input("1 \"频繁掉线\" or ...
25.087719
53
0.723776
168
1,430
6.125
0.440476
0.043732
0.075802
0.052478
0
0
0
0
0
0
0
0.003276
0.146154
1,430
56
54
25.535714
0.839476
0.083916
0
0.052632
0
0
0.133655
0.020129
0
0
0
0
0
1
0.052632
false
0
0.184211
0
0.263158
0.078947
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edbce3d11b39d90338cc61b5efce850628014657
2,041
py
Python
automol/reac/_instab.py
snelliott/automol
d1f7d51c1bbe06ba7569ea7c75304618cebee198
[ "Apache-2.0" ]
2
2021-03-01T14:23:25.000Z
2021-11-28T19:17:08.000Z
automol/reac/_instab.py
snelliott/automol
d1f7d51c1bbe06ba7569ea7c75304618cebee198
[ "Apache-2.0" ]
1
2021-02-12T21:02:22.000Z
2021-02-12T21:35:33.000Z
automol/reac/_instab.py
snelliott/automol
d1f7d51c1bbe06ba7569ea7c75304618cebee198
[ "Apache-2.0" ]
6
2020-12-12T18:41:13.000Z
2021-11-11T20:12:14.000Z
""" Build unstable products """ from phydat import instab_fgrps import automol.graph from automol.reac._util import rxn_objs_from_zmatrix import automol.geom import automol.inchi import automol.zmat from automol.graph import radical_dissociation_prods from automol.graph import radical_group_dct def instability_prod...
30.462687
79
0.654581
257
2,041
4.984436
0.307393
0.046838
0.017174
0.028103
0.188915
0.143638
0.143638
0.143638
0.143638
0.143638
0
0.000676
0.275355
2,041
66
80
30.924242
0.86545
0.211171
0
0
0
0
0.001929
0
0
0
0
0
0
1
0.075
false
0
0.2
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edbd959971b7596053c1f7e7cd04ec63a9bfa159
74,910
py
Python
tests/examples/minlplib/portfol_classical050_1.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
2
2021-07-03T13:19:10.000Z
2022-02-06T10:48:13.000Z
tests/examples/minlplib/portfol_classical050_1.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
1
2021-07-04T14:52:14.000Z
2021-07-15T10:17:11.000Z
tests/examples/minlplib/portfol_classical050_1.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
null
null
null
# MINLP written by GAMS Convert at 04/21/18 13:53:48 # # Equation counts # Total E G L N X C B # 104 52 0 52 0 0 0 0 # # Variable counts # x b i s1s s2s sc ...
82.409241
120
0.547764
13,019
74,910
3.151778
0.127122
0.012137
0.043867
0.048741
0.134063
0.133015
0.133015
0.13282
0.13282
0
0
0.515557
0.273208
74,910
908
121
82.5
0.238116
0.009078
0
0.005115
0
0
0
0
0
0
0
0
0
1
0
false
0
0.001279
0
0.001279
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
edbecb45eddc848fe9a6250e6a9425c696aee623
32
py
Python
vgc/DinosaursVsAirplanes/__main__.py
reedessick/video-game-camp
09a324279c5ea9de87080f122fe27e1ef83d5373
[ "MIT" ]
null
null
null
vgc/DinosaursVsAirplanes/__main__.py
reedessick/video-game-camp
09a324279c5ea9de87080f122fe27e1ef83d5373
[ "MIT" ]
null
null
null
vgc/DinosaursVsAirplanes/__main__.py
reedessick/video-game-camp
09a324279c5ea9de87080f122fe27e1ef83d5373
[ "MIT" ]
null
null
null
from . import game game.main()
8
18
0.6875
5
32
4.4
0.8
0
0
0
0
0
0
0
0
0
0
0
0.1875
32
3
19
10.666667
0.846154
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
edbecc8726126a9bb26d9234cf7d31303aa4e928
6,012
py
Python
tests/test_select.py
vail130/norm
01a16d6c73c2c6fff92430ca2ca745b295de9a3a
[ "MIT" ]
null
null
null
tests/test_select.py
vail130/norm
01a16d6c73c2c6fff92430ca2ca745b295de9a3a
[ "MIT" ]
1
2016-02-10T00:43:15.000Z
2016-02-10T01:14:37.000Z
tests/test_select.py
vail130/norm
01a16d6c73c2c6fff92430ca2ca745b295de9a3a
[ "MIT" ]
1
2021-03-12T23:21:02.000Z
2021-03-12T23:21:02.000Z
from __future__ import absolute_import, unicode_literals import unittest from mason import Param, ANY, SELECT, COUNT, SUM, AND, OR, Table, NUMERIC, DATE, COALESCE, CASE class TheSelectClass(unittest.TestCase): def test_returns_string_for_select_query(self): purchases = Table('purchases') users =...
39.552632
116
0.585329
605
6,012
5.583471
0.147107
0.085554
0.061575
0.023683
0.657194
0.605684
0.483422
0.434873
0.434873
0.434873
0
0.007438
0.30672
6,012
151
117
39.81457
0.803023
0
0
0.276923
0
0.007692
0.268796
0.07851
0
0
0
0
0.030769
1
0.030769
false
0
0.023077
0
0.061538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edbf18d39a72d2ddd9cc6e7041f08d4b4cebe521
302
py
Python
DesignPatterns/05_iterator/1_no_iterator/department_collection.py
eduardormonteiro/PythonPersonalLibrary
561733bb8305c4e25a08f99c28b60ec77251ad67
[ "MIT" ]
null
null
null
DesignPatterns/05_iterator/1_no_iterator/department_collection.py
eduardormonteiro/PythonPersonalLibrary
561733bb8305c4e25a08f99c28b60ec77251ad67
[ "MIT" ]
null
null
null
DesignPatterns/05_iterator/1_no_iterator/department_collection.py
eduardormonteiro/PythonPersonalLibrary
561733bb8305c4e25a08f99c28b60ec77251ad67
[ "MIT" ]
null
null
null
class Departments(object): _departments = [] def add_department(self, department): self._departments.append(department) def get_department(self, i): return self._departments[i] @property def departments_range(self): return (0, len(self._departments) - 1)
23.230769
46
0.665563
33
302
5.878788
0.484848
0.216495
0
0
0
0
0
0
0
0
0
0.008584
0.228477
302
12
47
25.166667
0.824034
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0.222222
0.777778
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
edc2a9f255a5bcdbe6de9a345b01330bea716cf9
37,250
py
Python
gridwxcomp/calc_bias_ratios.py
DRI-WSWUP/grid-et-bias
91998b5827a8069563394b797b253e33c546765f
[ "Apache-2.0" ]
13
2019-04-02T20:21:34.000Z
2022-01-26T22:45:04.000Z
gridwxcomp/calc_bias_ratios.py
DRI-WSWUP/grid-et-bias
91998b5827a8069563394b797b253e33c546765f
[ "Apache-2.0" ]
20
2019-02-27T22:40:13.000Z
2021-05-28T03:06:48.000Z
gridwxcomp/calc_bias_ratios.py
DRI-WSWUP/gridwxcomp
91998b5827a8069563394b797b253e33c546765f
[ "Apache-2.0" ]
6
2019-04-02T17:28:31.000Z
2022-01-29T14:07:25.000Z
# -*- coding: utf-8 -*- """ Calculate monthly bias ratios of variables from climate station to overlapping gridMET (or other gridded dataset) cells. Input file for this module must first be created by running :mod:`gridwxcomp.prep_input` followed by :mod:`gridwxcomp.download_gridmet_opendap`. Attributes: GRID...
46.330846
96
0.61694
4,961
37,250
4.456964
0.123161
0.032563
0.012663
0.01203
0.451088
0.40066
0.36362
0.333318
0.32061
0.29474
0
0.008443
0.287785
37,250
803
97
46.388543
0.824991
0.423624
0
0.225058
0
0
0.164078
0.010111
0
0
0
0
0
1
0.011601
false
0
0.018561
0
0.032483
0.023202
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edc2c76812ee6c9585f9c137bdb157a3d16545e9
5,073
py
Python
fhirclient/models/attachment.py
mdx-dev/client-py
f6c16c9bd386c5b05d69753b89c6519d568814ac
[ "Apache-2.0" ]
null
null
null
fhirclient/models/attachment.py
mdx-dev/client-py
f6c16c9bd386c5b05d69753b89c6519d568814ac
[ "Apache-2.0" ]
null
null
null
fhirclient/models/attachment.py
mdx-dev/client-py
f6c16c9bd386c5b05d69753b89c6519d568814ac
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/Attachment) on 2019-01-22. # 2019, SMART Health IT. from . import element class Attachment(element.Element): """ C o n t e n t i n a f ...
12.464373
107
0.275774
512
5,073
2.707031
0.222656
0.015873
0.080808
0.073593
0.111111
0.100289
0.091631
0.082251
0.059163
0.046176
0
0.016308
0.661541
5,073
406
108
12.495074
0.790914
0.116696
0
0
1
0
0.082845
0
0
0
0
0
0
1
0.064516
false
0
0.129032
0
0.290323
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
edc4f04d08129c6528ed7f0c20d812230e0c3895
1,843
py
Python
wiiload/upload.py
fossabot/async-wiiload
a511ffe5646c2bd101a9e0ae064f6b3d35497fd3
[ "Apache-2.0" ]
null
null
null
wiiload/upload.py
fossabot/async-wiiload
a511ffe5646c2bd101a9e0ae064f6b3d35497fd3
[ "Apache-2.0" ]
1
2020-11-18T18:38:49.000Z
2020-11-18T18:38:49.000Z
wiiload/upload.py
fossabot/async-wiiload
a511ffe5646c2bd101a9e0ae064f6b3d35497fd3
[ "Apache-2.0" ]
1
2020-11-18T18:38:03.000Z
2020-11-18T18:38:03.000Z
import asyncio import os import struct import zlib from os import PathLike from typing import List WIILOAD_VERSION_MAJOR = 0 WIILOAD_VERSION_MINOR = 5 async def upload_bytes(dol: bytes, argv: List[str], host: str, port: int = 4299): """ Uploads a file it to a Wii. :param dol: The bytes of a file to uploa...
31.237288
91
0.669018
287
1,843
4.240418
0.351916
0.072309
0.069844
0.086278
0.459326
0.405094
0.36894
0.267872
0.157765
0.157765
0
0.013122
0.214324
1,843
58
92
31.775862
0.827348
0.067282
0
0
0
0
0.024501
0
0
0
0
0
0
1
0
false
0
0.2
0
0.233333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edc6534f0db68594afcf99358c2a9b3928d7a532
1,010
py
Python
81.py
brianfl/project-euler
9f83a3c2da04fd0801a4a575081add665edccd5f
[ "MIT" ]
null
null
null
81.py
brianfl/project-euler
9f83a3c2da04fd0801a4a575081add665edccd5f
[ "MIT" ]
null
null
null
81.py
brianfl/project-euler
9f83a3c2da04fd0801a4a575081add665edccd5f
[ "MIT" ]
null
null
null
with open('matrix.txt', 'r') as m: n = m.read().split('\n') matrix = [i.split(',') for i in n] del matrix[-1] for index1, value1 in enumerate(matrix): for index2, value2 in enumerate(value1): matrix[index1][index2] = int(value2) row_pos = len(matrix)-1 ind_pos = len(matrix[row_pos])-1 while r...
24.047619
71
0.582178
154
1,010
3.668831
0.396104
0.084956
0.106195
0.069027
0.178761
0.081416
0.081416
0.081416
0
0
0
0.055633
0.288119
1,010
42
72
24.047619
0.730181
0.005941
0
0.296296
0
0
0.01649
0
0
0
0
0
0
1
0
false
0.074074
0
0
0
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
edc7c2097af55e9aaf7fe9d4a5593d76f55f2e37
899
py
Python
WDCData/StockPankouDay.py
wangdecheng/QAStrategy
d970242ea61cff2f1a6f69545dc7f65e8efd1672
[ "MIT" ]
null
null
null
WDCData/StockPankouDay.py
wangdecheng/QAStrategy
d970242ea61cff2f1a6f69545dc7f65e8efd1672
[ "MIT" ]
null
null
null
WDCData/StockPankouDay.py
wangdecheng/QAStrategy
d970242ea61cff2f1a6f69545dc7f65e8efd1672
[ "MIT" ]
null
null
null
import pandas as pd from QUANTAXIS.QAUtil import ( DATABASE ) _table = DATABASE.stock_pankou_day date = '2021-11-30' # 选最后一天,因为是批量插入,有值就证明存在 def exists(code, field='turn'): data = _table.find_one({'code':code,'date':date}) if data is None: return False if data.get(field) is None: retu...
24.972222
70
0.648498
117
899
4.735043
0.512821
0.032491
0.043321
0.061372
0
0
0
0
0
0
0
0.058239
0.216908
899
36
71
24.972222
0.728693
0.082314
0
0.071429
0
0
0.087591
0
0
0
0
0
0
1
0.107143
false
0
0.071429
0.035714
0.357143
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edc8f195103066572e1257568eab242e02e23b02
1,472
py
Python
findance/entity/migrations/0001_initial.py
mccartnm/findance
5d8b980cbe3f0b3dbe5798a75f58b5749088331f
[ "MIT" ]
null
null
null
findance/entity/migrations/0001_initial.py
mccartnm/findance
5d8b980cbe3f0b3dbe5798a75f58b5749088331f
[ "MIT" ]
null
null
null
findance/entity/migrations/0001_initial.py
mccartnm/findance
5d8b980cbe3f0b3dbe5798a75f58b5749088331f
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-04-26 15:52 from django.db import migrations, models import django.db.models.deletion import findance.abstract class Migration(migrations.Migration): initial = True dependencies = [ ('assets', '0001_initial'), ] operations = [ migrations.CreateMode...
35.047619
158
0.559103
132
1,472
6.166667
0.507576
0.09828
0.152334
0.054054
0.348894
0.275184
0.275184
0.275184
0.275184
0.275184
0
0.018217
0.29144
1,472
41
159
35.902439
0.762224
0.029212
0
0.470588
1
0
0.13595
0.014716
0
0
0
0
0
1
0
false
0
0.088235
0
0.205882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
edc957ed816ee1c41b0420f5364024791ce07016
576
py
Python
Registradora/Caixa registradora.py
gabrielsoaresg/Projetos-Python
7f05a000c30a03fb9fbdb0f493e0a996ef7258f1
[ "MIT" ]
null
null
null
Registradora/Caixa registradora.py
gabrielsoaresg/Projetos-Python
7f05a000c30a03fb9fbdb0f493e0a996ef7258f1
[ "MIT" ]
null
null
null
Registradora/Caixa registradora.py
gabrielsoaresg/Projetos-Python
7f05a000c30a03fb9fbdb0f493e0a996ef7258f1
[ "MIT" ]
null
null
null
print("\033[1m=-=" * 15) print("\033[1;32mLojas Tabajara\033[m". center(51)) print("=-=\033[m" * 15) cont = 1 somaP = 0 while True: p = float(input(f"Produto {cont}: R$ ")) cont += 1 somaP += p if p == 0: break print(f"\033[1;32mTotal: R${somaP:.2f}\033[m") pagamento = float(input("\033[1mDinhei...
27.428571
58
0.597222
92
576
3.73913
0.358696
0.069767
0.052326
0.05814
0.215116
0.215116
0.215116
0.215116
0
0
0
0.142251
0.182292
576
20
59
28.8
0.58811
0
0
0.1
0
0
0.375
0
0
0
0
0
0
1
0
false
0
0
0
0
0.3
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edcad0e725dcaee58a1b72be7bb3b88e8f32af90
3,196
py
Python
webserver.py
Ductapemaster/raspi_datalogger
7c5b54a6a7617fef816aa1410069fb755f167d13
[ "MIT" ]
null
null
null
webserver.py
Ductapemaster/raspi_datalogger
7c5b54a6a7617fef816aa1410069fb755f167d13
[ "MIT" ]
null
null
null
webserver.py
Ductapemaster/raspi_datalogger
7c5b54a6a7617fef816aa1410069fb755f167d13
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request from flask_bootstrap import Bootstrap import json from datetime import datetime from influxdb import InfluxDBClient import secrets import settings influx_client = InfluxDBClient(secrets.influx_database_server, secrets.influx_database_port...
31.333333
122
0.431164
261
3,196
5.099617
0.425287
0.030053
0.031555
0.040571
0.061608
0.061608
0.061608
0
0
0
0
0.01464
0.444305
3,196
101
123
31.643564
0.734797
0.003442
0
0
0
0
0.130735
0.008171
0
0
0
0
0
1
0.023256
false
0.011628
0.081395
0.011628
0.127907
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0