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
e6f36e3d6234b36ef09fd70fd1be755548b506ba
37,741
py
Python
tests/test_apis.py
hatzel/markdown-spoilers
1964f298f0e8b99f1202d36ccc7d8cf7d613ad26
[ "BSD-3-Clause" ]
2
2020-06-21T12:02:58.000Z
2020-09-02T15:21:19.000Z
tests/test_apis.py
hatzel/markdown-spoilers
1964f298f0e8b99f1202d36ccc7d8cf7d613ad26
[ "BSD-3-Clause" ]
null
null
null
tests/test_apis.py
hatzel/markdown-spoilers
1964f298f0e8b99f1202d36ccc7d8cf7d613ad26
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Python Markdown A Python implementation of John Gruber's Markdown. Documentation: https://python-markdown.github.io/ GitHub: https://github.com/Python-Markdown/markdown/ PyPI: https://pypi.org/project/Markdown/ Started by Manfred Stienstra (http://www.dwerg.net/). Maintained for a few yea...
36.081262
116
0.601123
4,138
37,741
5.413001
0.150073
0.070985
0.037948
0.027724
0.487522
0.409393
0.32939
0.26961
0.253985
0.226037
0
0.007248
0.254233
37,741
1,045
117
36.115789
0.788567
0.133462
0
0.338753
0
0.009485
0.110431
0.032452
0
0
0
0.000957
0.219512
1
0.155827
false
0
0.020325
0.00542
0.214092
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6f658acae15a3e9ea6e4c377ee45743db7b0897
6,365
py
Python
mindspore/nn/optim/ftrl.py
XinYao1994/mindspore
2c1a2bf752a1fde311caddba22633d2f4f63cb4e
[ "Apache-2.0" ]
2
2020-04-28T03:49:10.000Z
2020-04-28T03:49:13.000Z
mindspore/nn/optim/ftrl.py
XinYao1994/mindspore
2c1a2bf752a1fde311caddba22633d2f4f63cb4e
[ "Apache-2.0" ]
null
null
null
mindspore/nn/optim/ftrl.py
XinYao1994/mindspore
2c1a2bf752a1fde311caddba22633d2f4f63cb4e
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
50.11811
116
0.692066
901
6,365
4.73141
0.261931
0.045039
0.055829
0.07225
0.243725
0.205724
0.115412
0.103214
0.094065
0.085386
0
0.020424
0.192302
6,365
126
117
50.515873
0.808792
0.410998
0
0.033898
0
0
0.05915
0
0
0
0
0
0
1
0.067797
false
0
0.118644
0
0.237288
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6f688088bfa1088bfe7257d2cece961dd478353
5,106
py
Python
aws_utils/region_selector.py
skimhub/aws-utils
5496a7594ab90b1e658e8f9f8137e8943a39be1e
[ "Apache-2.0" ]
null
null
null
aws_utils/region_selector.py
skimhub/aws-utils
5496a7594ab90b1e658e8f9f8137e8943a39be1e
[ "Apache-2.0" ]
13
2016-01-05T14:48:38.000Z
2017-08-14T10:17:41.000Z
aws_utils/region_selector.py
skimhub/aws-utils
5496a7594ab90b1e658e8f9f8137e8943a39be1e
[ "Apache-2.0" ]
null
null
null
import datetime import boto3 US_EAST_REGION = {'us-east-1'} US_EAST_AVAILABILITY_ZONES = {'us-east-1a', 'us-east-1b', 'us-east-1c', 'us-east-1e'} # note d is missing INSTANCE_VERSION = 'Linux/UNIX (Amazon VPC)' def fetch_spot_prices(region, start_time, end_time, instance_type, instance_version=INSTANCE_VERSION): ...
44.4
138
0.604387
597
5,106
4.971524
0.256281
0.022237
0.061995
0.018194
0.393194
0.370283
0.370283
0.34535
0.34535
0.34535
0
0.010759
0.308265
5,106
114
139
44.789474
0.829558
0.321582
0
0.226415
0
0
0.074074
0
0
0
0
0
0
1
0.056604
false
0
0.037736
0
0.132075
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6f805f6f11f261c37210a559213d4def9f1debd
952
py
Python
app/internal/daily_quotes.py
yammesicka/calendar
7c15a24883dbdffb563b6d3286c2d458e4a1c9c0
[ "Apache-2.0" ]
null
null
null
app/internal/daily_quotes.py
yammesicka/calendar
7c15a24883dbdffb563b6d3286c2d458e4a1c9c0
[ "Apache-2.0" ]
null
null
null
app/internal/daily_quotes.py
yammesicka/calendar
7c15a24883dbdffb563b6d3286c2d458e4a1c9c0
[ "Apache-2.0" ]
null
null
null
from datetime import date from typing import Dict, Optional from sqlalchemy.orm import Session from sqlalchemy.sql.expression import func from app.database.models import Quote TOTAL_DAYS = 366 def create_quote_object(quotes_fields: Dict[str, Optional[str]]) -> Quote: """This function create a quote object from...
30.709677
74
0.711134
138
952
4.811594
0.5
0.054217
0.051205
0
0
0
0
0
0
0
0
0.003937
0.19958
952
30
75
31.733333
0.867454
0.295168
0
0
0
0
0.015432
0
0
0
0
0
0
1
0.111111
false
0
0.277778
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6fc051294ab288b08cbb146da00f8c04ac171dd
413
py
Python
telemetry/Truck.py
SnipsMine/ETS2-Speedrun-Tool
5ac87e4bc88be67ff4954b2b98772ff14a65eb48
[ "MIT" ]
null
null
null
telemetry/Truck.py
SnipsMine/ETS2-Speedrun-Tool
5ac87e4bc88be67ff4954b2b98772ff14a65eb48
[ "MIT" ]
null
null
null
telemetry/Truck.py
SnipsMine/ETS2-Speedrun-Tool
5ac87e4bc88be67ff4954b2b98772ff14a65eb48
[ "MIT" ]
null
null
null
from telemetry.TruckConstants import ConstantValues from telemetry.TruckCurrent import CurrentValues from telemetry.TruckPositioning import Positioning class TruckValues: constant_values = None current_values = None positioning = None def __init__(self): self.current_values = CurrentValues()...
21.736842
51
0.750605
39
413
7.74359
0.461538
0.129139
0
0
0
0
0
0
0
0
0
0
0.196126
413
18
52
22.944444
0.909639
0
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6fc89e2fb95df50b778c64242f30654175e9df4
566
py
Python
peacebot/core/plugins/Miscellaneous/__init__.py
Peacebot-Development/Peacebot-v2
79ab87b12cd60b708631d96021ac3d3eaeee01c9
[ "MIT" ]
3
2021-11-13T06:26:06.000Z
2022-01-23T13:03:30.000Z
peacebot/core/plugins/Miscellaneous/__init__.py
Peacebot-Development/Peacebot-v2
79ab87b12cd60b708631d96021ac3d3eaeee01c9
[ "MIT" ]
32
2021-11-12T15:29:04.000Z
2022-01-23T14:44:19.000Z
peacebot/core/plugins/Miscellaneous/__init__.py
Peacebot-Development/Peacebot-v2
79ab87b12cd60b708631d96021ac3d3eaeee01c9
[ "MIT" ]
1
2021-11-13T06:34:03.000Z
2021-11-13T06:34:03.000Z
import lightbulb from apscheduler.schedulers.asyncio import AsyncIOScheduler from peacebot.core.utils.time import TimeConverter def fetch_scheduler(ctx: lightbulb.Context) -> AsyncIOScheduler: return ctx.bot.d.scheduler async def convert_time(ctx: lightbulb.Context, time: str) -> float: seconds = await Tim...
25.727273
68
0.738516
68
566
6.088235
0.544118
0.086957
0.137681
0
0
0
0
0
0
0
0
0
0.162544
566
21
69
26.952381
0.873418
0
0
0
0
0
0.070671
0
0
0
0
0
0
1
0.076923
false
0
0.230769
0.076923
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6fe319ea41fa303d91576c379f5911e22bf4307
855
py
Python
example/android/python/msite_simple_default_browser.py
laichimirum/docker-appium-emulator
3549c5f1fc09bbc650dd30351ad4f509a72a90fa
[ "Apache-2.0" ]
8
2019-04-26T04:09:40.000Z
2022-01-04T05:24:12.000Z
example/android/python/msite_simple_default_browser.py
laichimirum/docker-appium-emulator
3549c5f1fc09bbc650dd30351ad4f509a72a90fa
[ "Apache-2.0" ]
null
null
null
example/android/python/msite_simple_default_browser.py
laichimirum/docker-appium-emulator
3549c5f1fc09bbc650dd30351ad4f509a72a90fa
[ "Apache-2.0" ]
2
2019-12-16T15:34:57.000Z
2020-10-22T07:03:15.000Z
import unittest from appium import webdriver class MSiteDefaultBrowserAndroidUITests(unittest.TestCase): def setUp(self): # Default browser does not exist for android >= 6.0 desired_caps = { 'platformName': 'Android', 'deviceName': 'Android Emulator', 'appPac...
29.482759
90
0.65614
89
855
6.134831
0.651685
0.054945
0.062271
0
0
0
0
0
0
0
0
0.024024
0.221053
855
28
91
30.535714
0.795796
0.05731
0
0
0
0
0.248756
0.069652
0
0
0
0
0
1
0.157895
false
0
0.105263
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6fe636ebee73df95de2568536aed7f6f3927fad
458
py
Python
src/nn/dataset_utils/types_processing.py
sola-st/Nalin
3a6f95cec95d9152a65af970cfbb145179b0bd72
[ "MIT" ]
null
null
null
src/nn/dataset_utils/types_processing.py
sola-st/Nalin
3a6f95cec95d9152a65af970cfbb145179b0bd72
[ "MIT" ]
null
null
null
src/nn/dataset_utils/types_processing.py
sola-st/Nalin
3a6f95cec95d9152a65af970cfbb145179b0bd72
[ "MIT" ]
null
null
null
""" Created on 17-June-2020 @author Jibesh Patra The types extracted during runtime usually look something like --> <class 'numpy.ndarray'> or <class 'seaborn.palettes._ColorPalette'> change them to --> ndarray, ColorPalette """ import re remove_chars = re.compile(r'>|\'|<|(class )|_|(type)') def process_types(tp...
24.105263
93
0.696507
61
458
5.081967
0.721311
0.141935
0
0
0
0
0
0
0
0
0
0.017903
0.146288
458
18
94
25.444444
0.774936
0.482533
0
0
0
0
0.017544
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6fee516b4253e139cd1d42c7d2077b96248a564
4,254
py
Python
src/canvas.py
soootaleb/spare
b454b9a8861df55c29fe55b4b584248a2ffe79cb
[ "Apache-2.0" ]
1
2019-05-21T16:04:08.000Z
2019-05-21T16:04:08.000Z
src/canvas.py
soootaleb/school-spacial-relations
b454b9a8861df55c29fe55b4b584248a2ffe79cb
[ "Apache-2.0" ]
null
null
null
src/canvas.py
soootaleb/school-spacial-relations
b454b9a8861df55c29fe55b4b584248a2ffe79cb
[ "Apache-2.0" ]
null
null
null
from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import * from matplotlib import pyplot as plt from matplotlib.figure import Figure from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas import matplotlib.ticker as ticker import numpy as np import random, matplotlib...
35.157025
107
0.609074
526
4,254
4.813688
0.288973
0.066351
0.03594
0.037915
0.458926
0.435624
0.372828
0.252765
0.252765
0.21485
0
0.020806
0.276916
4,254
120
108
35.45
0.802341
0.088858
0
0.317647
0
0
0.024537
0
0
0
0
0.008333
0
1
0.094118
false
0
0.105882
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
fc0054805adf6c4edaa7b274d8d98323387b2aa1
7,561
py
Python
src/cpg_scpi/test/__init__.py
GeorgBraun/cpg_scpi_python
ec74c15beaac0b002fb996a42f4e66ea369e1fc6
[ "MIT" ]
null
null
null
src/cpg_scpi/test/__init__.py
GeorgBraun/cpg_scpi_python
ec74c15beaac0b002fb996a42f4e66ea369e1fc6
[ "MIT" ]
null
null
null
src/cpg_scpi/test/__init__.py
GeorgBraun/cpg_scpi_python
ec74c15beaac0b002fb996a42f4e66ea369e1fc6
[ "MIT" ]
null
null
null
'''Functional tests for CPG''' from .. import CircuitPlayground from .. import __version__ as CircuitPlaygroundVersion import time def funcTest(timestamps: bool = False) -> None: cpg = CircuitPlayground() if timestamps: _printFuncTestHeadingWithDeliLine(f'cpg_scpi v{CircuitPlaygroundVersion}\nRUNNING...
37.616915
151
0.61923
902
7,561
5.135255
0.213969
0.031088
0.014249
0.026123
0.494819
0.454231
0.426382
0.387522
0.30462
0.286269
0
0.027643
0.239254
7,561
200
152
37.805
0.777295
0.104748
0
0.43038
0
0.031646
0.289771
0.051293
0
0
0
0
0
1
0.094937
false
0.018987
0.031646
0
0.126582
0.316456
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc01d88d24681ec66a1cf06a3a055252d072afd3
31,292
py
Python
gridfs/grid_file.py
naomielst/mongo-python-driver
e3d1d6f5b48101654a05493fd6eec7fe3fa014bd
[ "Apache-2.0" ]
2
2022-01-19T21:00:48.000Z
2022-01-27T05:54:13.000Z
gridfs/grid_file.py
naomielst/mongo-python-driver
e3d1d6f5b48101654a05493fd6eec7fe3fa014bd
[ "Apache-2.0" ]
1
2021-12-24T11:32:17.000Z
2021-12-24T11:32:17.000Z
gridfs/grid_file.py
naomielst/mongo-python-driver
e3d1d6f5b48101654a05493fd6eec7fe3fa014bd
[ "Apache-2.0" ]
null
null
null
# Copyright 2009-present MongoDB, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
35.721461
103
0.599035
3,709
31,292
4.830682
0.149636
0.014567
0.010158
0.004019
0.291399
0.250544
0.213038
0.186136
0.154211
0.142937
0
0.005351
0.307267
31,292
875
104
35.762286
0.821193
0.293078
0
0.385892
0
0
0.102517
0
0
0
0
0
0.002075
1
0.13278
false
0.006224
0.029046
0.018672
0.304979
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc02e2f67f44eb696a821c6397117531267c2ddc
496
py
Python
src/serve_files.py
eventh/m3u8looper
9c4ae166e9af4679cf64b19e3c3efc7bbdaed5a5
[ "MIT" ]
null
null
null
src/serve_files.py
eventh/m3u8looper
9c4ae166e9af4679cf64b19e3c3efc7bbdaed5a5
[ "MIT" ]
null
null
null
src/serve_files.py
eventh/m3u8looper
9c4ae166e9af4679cf64b19e3c3efc7bbdaed5a5
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # -*- coding: utf-8 -*- """ Serve current folder files in a HTTP webserver. """ import socketserver from threading import Thread from http.server import SimpleHTTPRequestHandler PORT = 8000 def start_http_server(port=PORT): httpd = socketserver.TCPServer(("", port), SimpleHTTPRequestHand...
20.666667
76
0.709677
58
496
5.844828
0.603448
0.088496
0.088496
0
0
0
0
0
0
0
0
0.014706
0.177419
496
23
77
21.565217
0.816176
0.185484
0
0
0
0
0.020253
0
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc03078d9d14b23c740018bcdf9069c213af00f0
7,393
py
Python
pypy/module/__builtin__/test/test_compile.py
yxzoro/pypy
6e47b3d3e5513d9639a21554963a6ace172ccfee
[ "Apache-2.0", "OpenSSL" ]
null
null
null
pypy/module/__builtin__/test/test_compile.py
yxzoro/pypy
6e47b3d3e5513d9639a21554963a6ace172ccfee
[ "Apache-2.0", "OpenSSL" ]
null
null
null
pypy/module/__builtin__/test/test_compile.py
yxzoro/pypy
6e47b3d3e5513d9639a21554963a6ace172ccfee
[ "Apache-2.0", "OpenSSL" ]
null
null
null
# coding: utf-8 class AppTestCompile: def test_simple(self): import sys co = compile('1+2', '?', 'eval') assert eval(co) == 3 co = compile(memoryview(b'1+2'), '?', 'eval') assert eval(co) == 3 exc = raises(ValueError, compile, chr(0), '?', 'eval') assert str(...
34.226852
79
0.538212
880
7,393
4.392045
0.238636
0.027167
0.035705
0.016818
0.255627
0.2
0.148254
0.129625
0.115653
0.09806
0
0.017388
0.315434
7,393
215
80
34.386047
0.746295
0.11051
0
0.27381
0
0
0.239333
0.004282
0
0
0.000612
0.004651
0.190476
1
0.107143
false
0.017857
0.059524
0
0.202381
0.011905
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc035a3b69dad59dad81dc8e5b68a8db4a2f4aff
12,207
py
Python
tickers_graphing_module.py
huangbrandon432/Investing-Trading-Tool
370015b906b7ee90c0fb48ca69865ac7428b3917
[ "BSD-3-Clause" ]
null
null
null
tickers_graphing_module.py
huangbrandon432/Investing-Trading-Tool
370015b906b7ee90c0fb48ca69865ac7428b3917
[ "BSD-3-Clause" ]
null
null
null
tickers_graphing_module.py
huangbrandon432/Investing-Trading-Tool
370015b906b7ee90c0fb48ca69865ac7428b3917
[ "BSD-3-Clause" ]
null
null
null
import yfinance as yf import matplotlib.pyplot as plt import plotly.express as px import plotly.graph_objects as go from plotly.subplots import make_subplots import pandas as pd from IPython.display import Markdown import numpy as np from datetime import date, timedelta def plot_and_get_info(ticker, start = None, en...
35.178674
169
0.530843
1,332
12,207
4.693694
0.215465
0.041587
0.03119
0.028791
0.430902
0.352047
0.286628
0.261996
0.261996
0.252079
0
0.029986
0.341607
12,207
346
170
35.280347
0.747916
0.004833
0
0.468085
0
0.008511
0.135046
0.010211
0
0
0
0
0
1
0.025532
false
0.004255
0.038298
0
0.07234
0.055319
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc072ef6a205b171dfc4d3510829d73d11a5f833
2,360
py
Python
tests/test_aggregate_stats_design.py
bids-standard/bids-statsmodels-design-synthesizer
d8a1dac3891760990082c2d3aa75a1edda44ffa0
[ "MIT" ]
null
null
null
tests/test_aggregate_stats_design.py
bids-standard/bids-statsmodels-design-synthesizer
d8a1dac3891760990082c2d3aa75a1edda44ffa0
[ "MIT" ]
1
2021-05-12T21:53:53.000Z
2021-05-12T22:26:09.000Z
tests/test_aggregate_stats_design.py
bids-standard/bids-statsmodels-design-synthesizer
d8a1dac3891760990082c2d3aa75a1edda44ffa0
[ "MIT" ]
3
2021-05-06T12:44:04.000Z
2021-05-12T21:42:59.000Z
#!/usr/bin/env python """Tests for `bids_statsmodels_design_synthesizer` package.""" import pytest import subprocess as sp from pathlib import Path SYNTHESIZER = "aggregate_stats_design.py" from bids_statsmodels_design_synthesizer import aggregate_stats_design as synth_mod # from bids_statsmodels_design_synthesizer...
36.875
199
0.715678
306
2,360
5.316993
0.437909
0.036878
0.051629
0.078672
0.250768
0.213891
0.129072
0.129072
0.081131
0.081131
0
0.038265
0.169492
2,360
63
200
37.460317
0.791837
0.335169
0
0.114286
0
0
0.339498
0.18362
0
0
0
0
0
1
0.114286
false
0
0.114286
0
0.228571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc0e5695633a29e1789efba016b66fc96fcedf4a
15,518
py
Python
pangenome_fluidity.py
PlantDr430/CSU_scripts
8ed9e1dc014b099ce68d77ce5c8747217c230e61
[ "MIT" ]
1
2020-03-02T04:26:21.000Z
2020-03-02T04:26:21.000Z
pangenome_fluidity.py
PlantDr430/CSU_scripts
8ed9e1dc014b099ce68d77ce5c8747217c230e61
[ "MIT" ]
null
null
null
pangenome_fluidity.py
PlantDr430/CSU_scripts
8ed9e1dc014b099ce68d77ce5c8747217c230e61
[ "MIT" ]
null
null
null
#!/usr/bin/python3 ''' This script follows formulas put forth in Kislyuk et al. (2011) to calculate genome fluidity of a pangenome dataset. Variance and standard error are estimated as total variance containing both the variance due to subsampling all possible combinations (without replacement) of N genomes from th...
46.322388
135
0.669738
2,205
15,518
4.533787
0.203628
0.024507
0.036011
0.035211
0.264179
0.242173
0.209963
0.181354
0.157847
0.079424
0
0.012767
0.222709
15,518
334
136
46.461078
0.816034
0.199704
0
0.143911
0
0
0.096287
0.011213
0
0
0
0
0
1
0.04428
false
0.01476
0.03321
0.00738
0.114391
0.01845
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc100b64b37cc26f7af79a394d9e388ede43f204
7,610
py
Python
osvolbackup/backup.py
CCSGroupInternational/osvolbackup
d0d93812a729acdb6c961c6bdd1cc2cb5c9c87f5
[ "Apache-2.0" ]
1
2019-02-27T12:59:49.000Z
2019-02-27T12:59:49.000Z
osvolbackup/backup.py
CCSGroupInternational/osvolbackup
d0d93812a729acdb6c961c6bdd1cc2cb5c9c87f5
[ "Apache-2.0" ]
4
2019-03-07T09:31:51.000Z
2019-03-12T15:19:40.000Z
osvolbackup/backup.py
CCSGroupInternational/osvolbackup
d0d93812a729acdb6c961c6bdd1cc2cb5c9c87f5
[ "Apache-2.0" ]
null
null
null
# # This module provides the Instance class that encapsulate some complex server instances related operations # from __future__ import print_function from json import loads from neutronclient.v2_0 import client as neutron_client from novaclient import client as nova_client from cinderclient import client as cinder_cli...
42.044199
107
0.642181
906
7,610
5.144592
0.233996
0.025746
0.018022
0.022313
0.14675
0.119288
0.060931
0.021026
0.021026
0
0
0.002676
0.263469
7,610
180
108
42.277778
0.828903
0.109724
0
0.128788
0
0
0.055547
0
0
0
0
0
0
1
0.075758
false
0.015152
0.068182
0.015152
0.234848
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc107e595b21342f82e5161a579e155e45e95a50
13,314
py
Python
gammapy/estimators/profile.py
JohannesBuchner/gammapy
48769519f04b7df7b3e4580ebb61396445790bc3
[ "BSD-3-Clause" ]
1
2021-02-02T21:35:27.000Z
2021-02-02T21:35:27.000Z
gammapy/estimators/profile.py
kabartay/gammapy
015206d2418b1d254f1c9d3ea819ab0c5ece99e9
[ "BSD-3-Clause" ]
2
2018-08-09T20:49:13.000Z
2019-01-23T17:30:49.000Z
gammapy/estimators/profile.py
kabartay/gammapy
015206d2418b1d254f1c9d3ea819ab0c5ece99e9
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """Tools to create profiles (i.e. 1D "slices" from 2D images).""" import numpy as np import scipy.ndimage from astropy import units as u from astropy.convolution import Box1DKernel, Gaussian1DKernel from astropy.coordinates import Angle from astropy.table ...
31.928058
84
0.570828
1,573
13,314
4.724094
0.191354
0.036334
0.019378
0.013457
0.254475
0.229579
0.173866
0.130803
0.111425
0.088817
0
0.006627
0.308623
13,314
416
85
32.004808
0.800652
0.326048
0
0.248649
0
0
0.096675
0.005192
0
0
0
0.002404
0
1
0.086486
false
0
0.054054
0
0.243243
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc1121d14735ee8c8c982d686f96751beb66af86
7,270
py
Python
env/lib/python3.8/site-packages/versatileimagefield/mixins.py
crimergio/linux_test
5e688a06884ab10b4eaaad10a5d0df417a1c9b31
[ "CC-BY-4.0" ]
1
2021-04-07T16:25:20.000Z
2021-04-07T16:25:20.000Z
env/lib/python3.8/site-packages/versatileimagefield/mixins.py
crimergio/linux_test
5e688a06884ab10b4eaaad10a5d0df417a1c9b31
[ "CC-BY-4.0" ]
9
2021-03-19T03:06:53.000Z
2022-03-12T00:37:04.000Z
myvenv/lib/python3.6/site-packages/versatileimagefield/mixins.py
yog240597/saleor
b75a23827a4ec2ce91637f0afe6808c9d09da00a
[ "CC-BY-4.0" ]
1
2021-04-23T15:01:05.000Z
2021-04-23T15:01:05.000Z
"""versatileimagefield Field mixins.""" import os import re from .datastructures import FilterLibrary from .registry import autodiscover, versatileimagefield_registry from .settings import ( cache, VERSATILEIMAGEFIELD_CREATE_ON_DEMAND, VERSATILEIMAGEFIELD_SIZED_DIRNAME, VERSATILEIMAGEFIELD_FILTERED_DIR...
34.454976
90
0.599037
796
7,270
5.202261
0.207286
0.03091
0.054093
0.021734
0.38469
0.271674
0.229896
0.137648
0.085004
0.085004
0
0.001601
0.312792
7,270
210
91
34.619048
0.827262
0.169051
0
0.116883
0
0
0.025887
0.011829
0
0
0
0
0.006494
1
0.097403
false
0.006494
0.038961
0
0.194805
0.006494
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc11ec393a7dcebc05211e5be317a56b62dc07c0
9,450
py
Python
differential_privacy/run_federated.py
HanGuo97/federated
7e64bfe86bb606fad2ea7bc2a0f8ebdb565546f9
[ "BSD-3-Clause" ]
330
2020-09-14T23:10:16.000Z
2022-03-30T19:49:19.000Z
differential_privacy/run_federated.py
HanGuo97/federated
7e64bfe86bb606fad2ea7bc2a0f8ebdb565546f9
[ "BSD-3-Clause" ]
52
2020-09-30T06:10:51.000Z
2022-03-31T19:25:16.000Z
differential_privacy/run_federated.py
HanGuo97/federated
7e64bfe86bb606fad2ea7bc2a0f8ebdb565546f9
[ "BSD-3-Clause" ]
119
2020-09-24T04:54:46.000Z
2022-03-31T21:46:57.000Z
# Copyright 2020, Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
42.760181
91
0.742963
1,211
9,450
5.500413
0.231214
0.026422
0.030026
0.036031
0.25912
0.218135
0.183756
0.143522
0.130911
0.110194
0
0.004398
0.181905
9,450
220
92
42.954545
0.857198
0.09619
0
0.153846
0
0
0.202561
0.028669
0
0
0
0
0
1
0.023669
false
0
0.059172
0.011834
0.094675
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc11f9759b82ea3a650e3c9261504b9c80e953f0
417
py
Python
waymo_kitti_converter/tools/visual_point_cloud.py
anhvth/Pseudo_Lidar_V2
d7a29ffc811e315df25bba2a43acf288d4ceb30e
[ "MIT" ]
null
null
null
waymo_kitti_converter/tools/visual_point_cloud.py
anhvth/Pseudo_Lidar_V2
d7a29ffc811e315df25bba2a43acf288d4ceb30e
[ "MIT" ]
null
null
null
waymo_kitti_converter/tools/visual_point_cloud.py
anhvth/Pseudo_Lidar_V2
d7a29ffc811e315df25bba2a43acf288d4ceb30e
[ "MIT" ]
null
null
null
import open3d as o3d import numpy as np pc_load_pathname = '/home/caizhongang/github/waymo_kitti_converter/007283-000.bin' pc = np.fromfile(pc_load_pathname, dtype=np.float32).reshape(-1, 3) pcd = o3d.geometry.PointCloud() pcd.points = o3d.utility.Vector3dVector(pc) axis = o3d.geometry.TriangleMesh.create_coordinat...
34.75
82
0.781775
63
417
5.031746
0.666667
0.037855
0.088328
0
0
0
0
0
0
0
0
0.063158
0.088729
417
11
83
37.909091
0.771053
0
0
0
0
0
0.146283
0.146283
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc12305fff510e126657094db88dd638e8718e01
1,042
py
Python
part01_basic/for_while_loop.py
ApprenticeOne/python_learn
2433726b3f164526e8a8fa18739854e052d76a2e
[ "MIT" ]
null
null
null
part01_basic/for_while_loop.py
ApprenticeOne/python_learn
2433726b3f164526e8a8fa18739854e052d76a2e
[ "MIT" ]
null
null
null
part01_basic/for_while_loop.py
ApprenticeOne/python_learn
2433726b3f164526e8a8fa18739854e052d76a2e
[ "MIT" ]
null
null
null
import random from math import sqrt sum = 0 for x in range(101): sum += x print(sum) ''' range(101) 0-100 一共101个数 range(1,101) 1-100 range(1,101,2) 1-100间的奇数 步长为2 range(100,0,-2) 100-0间的偶数 步长为-2 ''' sum = 0 for x in range(100, 0, -2): sum += x print(sum) # while # 0-100间的随机数 answer = random.randint(0, 1...
17.366667
53
0.589251
168
1,042
3.636905
0.380952
0.057283
0.02946
0.05401
0.0491
0.0491
0
0
0
0
0
0.086452
0.256238
1,042
59
54
17.661017
0.701935
0.077735
0
0.216216
0
0
0.143713
0
0
0
0
0
0
1
0
false
0
0.054054
0
0.054054
0.27027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc140cda2ae3ddb2fa94e33b0e36406cb6293308
12,340
py
Python
src/toil/batchSystems/htcondor.py
ElementGenomicsInc/toil
e29a07db194469afba3edf90ffeee8f981f7344b
[ "Apache-2.0" ]
2
2019-01-16T03:55:57.000Z
2019-01-16T04:04:38.000Z
src/toil/batchSystems/htcondor.py
ElementGenomicsInc/toil
e29a07db194469afba3edf90ffeee8f981f7344b
[ "Apache-2.0" ]
4
2018-10-02T00:39:18.000Z
2018-10-02T00:52:31.000Z
src/toil/batchSystems/htcondor.py
ElementGenomicsInc/toil
e29a07db194469afba3edf90ffeee8f981f7344b
[ "Apache-2.0" ]
2
2018-10-09T06:31:52.000Z
2018-11-16T00:49:40.000Z
# Copyright (C) 2018, HTCondor Team, Computer Sciences Department, # University of Wisconsin-Madison, WI. # # 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/license...
40.19544
121
0.569044
1,296
12,340
5.374228
0.299383
0.015075
0.017085
0.018665
0.141278
0.123331
0.103518
0.087581
0.06748
0.06748
0
0.008156
0.344246
12,340
306
122
40.326797
0.85257
0.257293
0
0.168539
0
0
0.148749
0.002557
0
0
0
0.006536
0
1
0.05618
false
0.005618
0.05618
0
0.196629
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc15adfda30a5ded3481fe570a59a41b60da2bcc
26,347
py
Python
paddlespeech/t2s/modules/tacotron2/decoder.py
alanlv/PaddleSpeech
7413c9e48ac77fdece45e0b4ffe41f7746ef0583
[ "Apache-2.0" ]
null
null
null
paddlespeech/t2s/modules/tacotron2/decoder.py
alanlv/PaddleSpeech
7413c9e48ac77fdece45e0b4ffe41f7746ef0583
[ "Apache-2.0" ]
null
null
null
paddlespeech/t2s/modules/tacotron2/decoder.py
alanlv/PaddleSpeech
7413c9e48ac77fdece45e0b4ffe41f7746ef0583
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle 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...
36.290634
87
0.537405
3,109
26,347
4.391123
0.122869
0.012892
0.012306
0.01758
0.55274
0.508204
0.463522
0.437811
0.391737
0.372107
0
0.016786
0.371427
26,347
725
88
36.34069
0.80756
0.355866
0
0.514045
0
0
0.004039
0
0
0
0
0
0.002809
1
0.033708
false
0
0.014045
0
0.087079
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc180c50e2be52fc8b9a19b64b0af4e3927de263
12,367
py
Python
dataset/scan2cad/s2c_collect_pgroup.py
jeonghyunkeem/PointGroup
fa90830259aeb37d2e0f203471552d2f43cbc60b
[ "Apache-2.0" ]
null
null
null
dataset/scan2cad/s2c_collect_pgroup.py
jeonghyunkeem/PointGroup
fa90830259aeb37d2e0f203471552d2f43cbc60b
[ "Apache-2.0" ]
null
null
null
dataset/scan2cad/s2c_collect_pgroup.py
jeonghyunkeem/PointGroup
fa90830259aeb37d2e0f203471552d2f43cbc60b
[ "Apache-2.0" ]
null
null
null
# Jeonghyun Kim, UVR KAIST @jeonghyunct.kaist.ac.kr import os, sys import json import h5py import numpy as np import quaternion import torch from torch.utils.data import Dataset BASE_DIR_1 = os.path.dirname(os.path.abspath(__file__)) # scan2cad BASE_DIR = os.path.dirname(BASE_DIR_1) # dataset ROOT_DIR = os.path.dirn...
38.052308
147
0.537479
1,656
12,367
3.808575
0.199275
0.006342
0.017441
0.011416
0.181227
0.143174
0.088315
0.079436
0.068654
0.056604
0
0.02756
0.307593
12,367
325
148
38.052308
0.708981
0.103582
0
0.112971
0
0
0.086501
0.004132
0
0
0
0
0.008368
1
0.041841
false
0
0.041841
0.004184
0.121339
0.054393
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc18327783ac4d0615c52f0106bc59f803cb607d
3,590
py
Python
nappy/msd2diff.py
ryokbys/nap
ddd0b5a5a956f7c335a22adb4f8e00f1d38a7804
[ "MIT" ]
27
2015-10-05T06:21:28.000Z
2021-10-04T17:08:23.000Z
nappy/msd2diff.py
ryokbys/nap
ddd0b5a5a956f7c335a22adb4f8e00f1d38a7804
[ "MIT" ]
4
2020-11-08T12:39:38.000Z
2021-01-10T22:31:36.000Z
nappy/msd2diff.py
ryokbys/nap
ddd0b5a5a956f7c335a22adb4f8e00f1d38a7804
[ "MIT" ]
4
2015-01-29T23:10:34.000Z
2022-01-08T05:20:13.000Z
#!/usr/bin/env python """ Compute diffusion coefficient from MSD data. Time interval, DT, is obtained from in.pmd in the same directory. Usage: msd2diff.py [options] MSD_FILE Options: -h, --help Show this message and exit. -o, --offset OFFSET Offset of given data. [default: 0] --plot Plot ...
29.186992
69
0.567688
544
3,590
3.647059
0.338235
0.00756
0.015121
0.03125
0.058468
0.032258
0.032258
0.032258
0.032258
0
0
0.033153
0.277437
3,590
122
70
29.42623
0.731689
0.196657
0
0.071429
0
0
0.108184
0
0
0
0
0
0
1
0.035714
false
0
0.071429
0
0.142857
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
fc186568dd52a9df9e70c87a7b31fe1c1c3e1f4d
1,172
py
Python
5/part2.py
jcsesznegi/advent-of-code-2017
9710e184e092b82aa798076b9ce3915c6e42758d
[ "MIT" ]
1
2020-04-12T17:54:52.000Z
2020-04-12T17:54:52.000Z
5/part2.py
jcsesznegi/advent-of-code-2017
9710e184e092b82aa798076b9ce3915c6e42758d
[ "MIT" ]
null
null
null
5/part2.py
jcsesznegi/advent-of-code-2017
9710e184e092b82aa798076b9ce3915c6e42758d
[ "MIT" ]
null
null
null
import os f = open(os.path.join(os.path.dirname(__file__), '../input/5/part2.txt'), 'r') class InstructionSet: def __init__(self, instructions): self.instructions = instructions self.currentIndex = 0 self.numberSteps = 0 def _changeOffsetValue(self, index): if self.instructi...
23.44
78
0.619454
118
1,172
6
0.381356
0.158192
0.084746
0.062147
0
0
0
0
0
0
0
0.010453
0.265358
1,172
49
79
23.918367
0.811847
0
0
0.057143
0
0
0.024744
0
0
0
0
0
0
1
0.171429
false
0
0.028571
0.028571
0.257143
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc18a51ed3a62618a4f8d1b8d53f53c96ae69319
11,944
py
Python
tests/test_sync_module.py
naveengh6/blinkpy
e821687f2b7590b13532ac596c31e8eaa6c7b69a
[ "MIT" ]
272
2017-01-29T18:43:25.000Z
2022-03-27T20:43:50.000Z
tests/test_sync_module.py
naveengh6/blinkpy
e821687f2b7590b13532ac596c31e8eaa6c7b69a
[ "MIT" ]
434
2017-01-23T20:22:51.000Z
2022-03-31T18:10:36.000Z
tests/test_sync_module.py
naveengh6/blinkpy
e821687f2b7590b13532ac596c31e8eaa6c7b69a
[ "MIT" ]
77
2017-04-15T17:04:04.000Z
2022-03-04T10:03:39.000Z
"""Tests camera and system functions.""" import unittest from unittest import mock from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkSyncModule, BlinkOwl from blinkpy.camera import BlinkCamera, BlinkCameraMini @mock.patch("blinkpy.auth.Auth.query"...
40.488136
83
0.592264
1,399
11,944
4.857756
0.107219
0.083431
0.103296
0.132578
0.748823
0.67319
0.609918
0.573278
0.51236
0.471895
0
0.029636
0.262642
11,944
294
84
40.62585
0.742023
0.080124
0
0.466102
0
0
0.11063
0.022845
0
0
0
0
0.241525
1
0.101695
false
0
0.025424
0
0.131356
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc1a91eb27f4ff382a15602726e82a1122f6307d
2,807
py
Python
dymos/examples/min_time_climb/aero/aero.py
naylor-b/dymos
56ee72041056ae20c3332d060e291c4da93844b1
[ "Apache-2.0" ]
null
null
null
dymos/examples/min_time_climb/aero/aero.py
naylor-b/dymos
56ee72041056ae20c3332d060e291c4da93844b1
[ "Apache-2.0" ]
null
null
null
dymos/examples/min_time_climb/aero/aero.py
naylor-b/dymos
56ee72041056ae20c3332d060e291c4da93844b1
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import import numpy as np from openmdao.api import Group from .dynamic_pressure_comp import DynamicPressureComp from .lift_drag_force_comp import LiftDragForceComp from .cd0_comp import CD0Comp from .kappa_comp import KappaComp from .cla_comp import CLaComp from .cl_comp import CLComp...
34.231707
79
0.530816
292
2,807
4.890411
0.321918
0.056022
0.089636
0.112045
0.17437
0.090336
0.090336
0.090336
0
0
0
0.004494
0.365871
2,807
81
80
34.654321
0.797753
0.121838
0
0.061224
0
0
0.090568
0
0
0
0
0
0
1
0.040816
false
0
0.22449
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc1d28c4600f03845019e2280e8c9b05ec587f01
930
py
Python
1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/06_Nested-Loops/02.Exercise-06-Special-Numbers.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/06_Nested-Loops/02.Exercise-06-Special-Numbers.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/06_Nested-Loops/02.Exercise-06-Special-Numbers.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
# 6. Специални числа # Да се напише програма, която чете едно цяло число N, въведено от потребителя, и генерира всички възможни "специални" # числа от 1111 до 9999. За да бъде “специално” едно число, то трябва да отговаря на следното условие: # • N да се дели на всяка една от неговите цифри без остатък. # Пример: при N...
35.769231
130
0.665591
157
930
3.88535
0.522293
0.081967
0.091803
0.063934
0
0
0
0
0
0
0
0.061254
0.245161
930
25
131
37.2
0.80057
0.608602
0
0
0
0
0.054286
0
0
0
0
0
0
1
0
false
0
0
0
0
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc1f1d11a9a9d323ee25ccd432c9e05f59ae89c2
29,526
py
Python
tokenization_numerical.py
dspoka/mnm
f212e8d5697a4556c6469d469a2930b203667828
[ "MIT" ]
1
2021-07-08T04:18:30.000Z
2021-07-08T04:18:30.000Z
tokenization_numerical.py
dspoka/mnm
f212e8d5697a4556c6469d469a2930b203667828
[ "MIT" ]
1
2021-08-24T03:36:53.000Z
2021-08-24T03:36:53.000Z
tokenization_numerical.py
dspoka/mnm
f212e8d5697a4556c6469d469a2930b203667828
[ "MIT" ]
1
2021-07-08T04:18:32.000Z
2021-07-08T04:18:32.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. 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/LICEN...
39.953992
183
0.601605
3,605
29,526
4.772538
0.170042
0.022087
0.015984
0.013252
0.384946
0.328277
0.280732
0.242371
0.21517
0.200407
0
0.025797
0.294994
29,526
739
184
39.953992
0.80073
0.264005
0
0.227176
0
0.027601
0.151609
0.031277
0
0
0.005348
0
0.006369
1
0.063694
false
0.002123
0.016985
0.004246
0.178344
0.004246
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc1f29f43c293c82628f38a87129e37c79fd02ea
6,694
py
Python
dipole/splitting_dipole.py
wheelerMT/spin-1_BEC
e8ea34699b4001847c6b4c7451c11be241ce598f
[ "MIT" ]
null
null
null
dipole/splitting_dipole.py
wheelerMT/spin-1_BEC
e8ea34699b4001847c6b4c7451c11be241ce598f
[ "MIT" ]
null
null
null
dipole/splitting_dipole.py
wheelerMT/spin-1_BEC
e8ea34699b4001847c6b4c7451c11be241ce598f
[ "MIT" ]
null
null
null
import numpy as np import multiprocessing as mp import pyfftw from numpy import pi, exp, sqrt, sin, cos, conj, arctan, tanh, tan from numpy import heaviside as heav from include import helper import h5py # ---------Spatial and potential parameters-------------- Mx = My = 64 Nx = Ny = 128 # Number of grid pts dx = dy...
34.864583
114
0.586047
1,105
6,694
3.366516
0.182805
0.032258
0.036559
0.035753
0.412634
0.396237
0.307796
0.262903
0.204839
0.174194
0
0.039799
0.22677
6,694
191
115
35.04712
0.678903
0.168659
0
0.190476
0
0
0.046352
0.013942
0
0
0
0
0
1
0
false
0
0.055556
0
0.055556
0.007937
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc2274d5bd59faf9232572f6514dafd536557966
625
py
Python
mock_file.py
MahirGulzar/fpointnet-tiny
e79406f648573d50fa3988ca987db652ab1286b8
[ "MIT" ]
null
null
null
mock_file.py
MahirGulzar/fpointnet-tiny
e79406f648573d50fa3988ca987db652ab1286b8
[ "MIT" ]
null
null
null
mock_file.py
MahirGulzar/fpointnet-tiny
e79406f648573d50fa3988ca987db652ab1286b8
[ "MIT" ]
null
null
null
import tensorflow as tf FLIPPING_TENSOR = tf.constant([1.0, -1.0, 1.0]) @tf.function def sample_data(points, labels, num_point): if tf.random.uniform(shape=()) >= 0.5: return points * FLIPPING_TENSOR, labels return points, labels mock_data = tf.constant([ [1., 2., 3.], [4., 5., 6.], [7....
19.53125
69
0.6048
95
625
3.831579
0.494737
0.021978
0.090659
0.065934
0.071429
0
0
0
0
0
0
0.05071
0.2112
625
32
70
19.53125
0.687627
0
0
0.086957
0
0
0
0
0
0
0
0
0
1
0.043478
false
0
0.043478
0
0.173913
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc24427e78d6696d2cac568f07f35aa2881831bf
10,683
py
Python
Blog.py
OliverChao/PyWhoAmI
8742e0a44c4e673d038779b01b14b0cfb7d5395f
[ "MIT" ]
null
null
null
Blog.py
OliverChao/PyWhoAmI
8742e0a44c4e673d038779b01b14b0cfb7d5395f
[ "MIT" ]
null
null
null
Blog.py
OliverChao/PyWhoAmI
8742e0a44c4e673d038779b01b14b0cfb7d5395f
[ "MIT" ]
null
null
null
import aiohttp import asyncio import time import time import argparse import glob import os import shutil import random import re import requests import sys from concurrent import futures import pdfkit import time from retrying import retry from pygments import highlight from pygments.lexers import...
33.914286
114
0.529346
1,239
10,683
4.414044
0.263923
0.019016
0.008228
0.005485
0.237703
0.175901
0.167307
0.156336
0.146096
0.1322
0
0.026158
0.330806
10,683
315
115
33.914286
0.738845
0.078255
0
0.270916
0
0.01992
0.198748
0.035017
0.007968
0
0
0
0
1
0.087649
false
0.007968
0.119522
0.015936
0.326693
0.091633
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc24c739bd5d57047e0ff4c5f882289fbb007117
722
py
Python
corehq/apps/app_manager/tests/test_xml_parsing.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
corehq/apps/app_manager/tests/test_xml_parsing.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/app_manager/tests/test_xml_parsing.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
from django.test import SimpleTestCase as TestCase from corehq.apps.app_manager.models import _parse_xml import os class XMLParsingTest(TestCase): def testUnicodeError(self): """Tests a bug found in Unicode processing of a form""" file_path = os.path.join(os.path.dirname(__file__), "data", "un...
36.1
95
0.634349
95
722
4.631579
0.568421
0.054545
0.05
0.095455
0
0
0
0
0
0
0
0
0.272853
722
19
96
38
0.838095
0.112188
0
0.25
0
0
0.170079
0.037795
0
0
0
0
0
1
0.0625
false
0
0.1875
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc26599fa48fc7ee6289bde05e441a088fd069d9
447
py
Python
swapsort.py
ArshSood/sorting
97e1188ad626420e8ffeab992f7e98a2a91ae4b1
[ "Apache-2.0" ]
null
null
null
swapsort.py
ArshSood/sorting
97e1188ad626420e8ffeab992f7e98a2a91ae4b1
[ "Apache-2.0" ]
null
null
null
swapsort.py
ArshSood/sorting
97e1188ad626420e8ffeab992f7e98a2a91ae4b1
[ "Apache-2.0" ]
null
null
null
# sorting n=int(input()) array=list(map(int,input().split())) i=0 count=[] counter=0 while i<len(array): min=i start=i+1 while(start<len(array)): if array[start]<array[min]: min=start start+=1 if i!=min: array[i],array[min]=array[min],array[i] count.append(i) ...
19.434783
47
0.557047
71
447
3.507042
0.338028
0.128514
0.072289
0
0
0
0
0
0
0
0
0.021021
0.255034
447
22
48
20.318182
0.726727
0.01566
0
0
0
0
0.002283
0
0
0
0
0
0
1
0
false
0
0
0
0
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc26c7b5181466b2721115acd12b6c40ca2fe4ae
7,699
py
Python
preprocessing/booking.py
madcat1991/clustered_cars
a79b83d9d14360c6c51d4bf462217ef690e62c74
[ "Apache-2.0" ]
null
null
null
preprocessing/booking.py
madcat1991/clustered_cars
a79b83d9d14360c6c51d4bf462217ef690e62c74
[ "Apache-2.0" ]
null
null
null
preprocessing/booking.py
madcat1991/clustered_cars
a79b83d9d14360c6c51d4bf462217ef690e62c74
[ "Apache-2.0" ]
null
null
null
""" This script cleans and prepares the data set of bookings for the future usage """ import argparse import logging import sys import pandas as pd from preprocessing.common import canonize_datetime, raw_data_to_df, check_processed_columns, check_data OLD_BREAKPOINT_MATCHER = { 2001: [ (1, 1, "New Year"...
36.661905
113
0.56267
1,067
7,699
3.951265
0.226804
0.051233
0.085389
0.030361
0.274431
0.223672
0.205882
0.190228
0.190228
0.171252
0
0.066794
0.251331
7,699
209
114
36.837321
0.664643
0.029354
0
0.235955
0
0
0.284182
0.003351
0
0
0
0
0
1
0.022472
false
0
0.02809
0
0.067416
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc272e521d0e985bdda9352e00baa8b30c9ad89c
1,309
py
Python
src/api/wish.py
PKU-GeekGame/gs-backend
d13219609d4e52810540bda6a3bddac1bf5406ce
[ "MIT" ]
7
2022-02-06T09:49:27.000Z
2022-03-03T14:23:32.000Z
src/api/wish.py
PKU-GeekGame/gs-backend
d13219609d4e52810540bda6a3bddac1bf5406ce
[ "MIT" ]
null
null
null
src/api/wish.py
PKU-GeekGame/gs-backend
d13219609d4e52810540bda6a3bddac1bf5406ce
[ "MIT" ]
null
null
null
from sanic import Blueprint, Request, HTTPResponse, response from sanic.models.handler_types import RouteHandler from functools import wraps from inspect import isawaitable from typing import Callable, Dict, Any, Union, Awaitable, List, Optional ACCEPTED_WISH_VERS = ['wish.alpha.v1'] WishHandler = Callable[..., Union...
37.4
124
0.612681
148
1,309
5.331081
0.47973
0.022814
0.040558
0.058302
0
0
0
0
0
0
0
0.001046
0.269672
1,309
35
125
37.4
0.824268
0.030558
0
0.148148
0
0
0.071034
0.016575
0
0
0
0
0
1
0.074074
false
0
0.185185
0
0.407407
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc27b29cfbfd1ea2e06f38bfeb18691ed058b5af
5,579
py
Python
scripts/venv/lib/python2.7/site-packages/cogent/maths/function_optimisation.py
sauloal/cnidaria
fe6f8c8dfed86d39c80f2804a753c05bb2e485b4
[ "MIT" ]
3
2015-11-20T08:44:42.000Z
2016-12-14T01:40:03.000Z
scripts/venv/lib/python2.7/site-packages/cogent/maths/function_optimisation.py
sauloal/cnidaria
fe6f8c8dfed86d39c80f2804a753c05bb2e485b4
[ "MIT" ]
1
2017-09-04T14:04:32.000Z
2020-05-26T19:04:00.000Z
scripts/venv/lib/python2.7/site-packages/cogent/maths/function_optimisation.py
sauloal/cnidaria
fe6f8c8dfed86d39c80f2804a753c05bb2e485b4
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Algorthims for function optimisation great_deluge() is a hillclimbing algorithm based on: Gunter Dueck: New Optimization Heuristics, The Great Deluge Algorithm and the Record-to-Record Travel. Journal of Computational Physics, Vol. 104, 1993, pp. 86 - 92 ga_evolve(...
42.915385
80
0.661767
745
5,579
4.783893
0.303356
0.025253
0.012346
0.010662
0.075758
0.050505
0.024691
0.024691
0.024691
0.024691
0
0.011631
0.275677
5,579
129
81
43.248062
0.870329
0.554938
0
0.071429
0
0
0.069062
0.009799
0
0
0
0
0
1
0.107143
false
0
0.017857
0
0.196429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc2801c140aa271fa4c9a495e831e1f55bb54ab3
6,871
py
Python
collect_policies.py
jonathanbglass/parallel_prowler
453774a69f078c7fce11c9bb72b6deab6fc04217
[ "MIT" ]
3
2021-04-09T12:37:13.000Z
2021-10-18T19:41:39.000Z
collect_policies.py
jonathanbglass/parallel_prowler
453774a69f078c7fce11c9bb72b6deab6fc04217
[ "MIT" ]
5
2019-04-30T13:08:43.000Z
2019-04-30T13:21:25.000Z
collect_policies.py
jonathanbglass/parallel_prowler
453774a69f078c7fce11c9bb72b6deab6fc04217
[ "MIT" ]
null
null
null
import argparse import boto3 import json import logging import os from progressbar import ProgressBar import sys """ Collects IAM Policies Evaluates policies looking for badness (*.*, Effect:Allow + NotAction) Need to add more tests/use cases """ def get_policies(profile): session = boto3.session.Session(profi...
33.193237
79
0.536603
667
6,871
5.473763
0.316342
0.027116
0.023281
0.024651
0.209806
0.174199
0.123254
0.058066
0.039989
0.039989
0
0.007251
0.337651
6,871
206
80
33.354369
0.79499
0.174647
0
0.241135
0
0
0.159054
0.00455
0
0
0
0
0
1
0.035461
false
0.035461
0.049645
0
0.120567
0.049645
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc2ae536bffe1db19ce9b95cd5dd88a0d55394cd
3,556
py
Python
test/molecule-role/molecule/integrations/tests/test_nagios.py
StackVista/stackstate-agent
843f66189fae107646c57f71fed962bdaab3b3be
[ "Apache-2.0" ]
2
2018-11-12T22:00:56.000Z
2019-11-07T22:14:23.000Z
test/molecule-role/molecule/integrations/tests/test_nagios.py
StackVista/stackstate-agent
843f66189fae107646c57f71fed962bdaab3b3be
[ "Apache-2.0" ]
49
2018-10-02T18:14:58.000Z
2022-01-20T21:06:31.000Z
test/molecule-role/molecule/integrations/tests/test_nagios.py
StackVista/stackstate-agent
843f66189fae107646c57f71fed962bdaab3b3be
[ "Apache-2.0" ]
3
2019-05-10T13:06:59.000Z
2020-05-21T17:29:33.000Z
import json import os import re from testinfra.utils.ansible_runner import AnsibleRunner import util testinfra_hosts = AnsibleRunner(os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('agent-integrations') def _get_key_value(tag_list): for key, value in (pair.split(':', 1) for pair in tag_list): yield ke...
39.955056
119
0.604331
423
3,556
4.855792
0.328605
0.035054
0.017527
0.02629
0.268744
0.226874
0.199611
0.169426
0.169426
0.169426
0
0.01219
0.261811
3,556
88
120
40.409091
0.770286
0
0
0.114286
0
0
0.29387
0.086614
0
0
0
0
0.171429
1
0.1
false
0
0.071429
0.014286
0.214286
0.014286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc2b9cb9eed0c84da94b5402d4ee3d9ce1910b43
589
py
Python
erudition/util.py
papsebestyen/erudition
35aa502a96189131baff714a6212eb56de2b1272
[ "MIT" ]
null
null
null
erudition/util.py
papsebestyen/erudition
35aa502a96189131baff714a6212eb56de2b1272
[ "MIT" ]
null
null
null
erudition/util.py
papsebestyen/erudition
35aa502a96189131baff714a6212eb56de2b1272
[ "MIT" ]
1
2022-02-21T21:17:17.000Z
2022-02-21T21:17:17.000Z
import os import sys from contextlib import contextmanager from invoke import UnexpectedExit def git_commit(c, addstr, msg): try: c.run("git config --get user.email") c.run("git config --get user.name") except UnexpectedExit: c.run('git config --local user.email "ci@cd.org"') ...
22.653846
58
0.634975
89
589
4.179775
0.449438
0.053763
0.075269
0.139785
0.225806
0.225806
0
0
0
0
0
0.004357
0.220713
589
25
59
23.56
0.8061
0
0
0
0
0
0.290323
0
0
0
0
0
0
1
0.1
false
0
0.2
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
fc2d6707aecf302c38a120bd486580b956d4c75c
1,263
py
Python
python3/distortion_correct_aksk_demo.py
MeekoI/ais-sdk
76240abc49795e914988f3cafb6d08f60dbdcb4c
[ "Apache-2.0" ]
null
null
null
python3/distortion_correct_aksk_demo.py
MeekoI/ais-sdk
76240abc49795e914988f3cafb6d08f60dbdcb4c
[ "Apache-2.0" ]
null
null
null
python3/distortion_correct_aksk_demo.py
MeekoI/ais-sdk
76240abc49795e914988f3cafb6d08f60dbdcb4c
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- from ais_sdk.utils import encode_to_base64 from ais_sdk.utils import decode_to_wave_file from ais_sdk.distortion_correct import distortion_correct_aksk from ais_sdk.utils import init_global_env import json if __name__ == '__main__': # # access moderation distortion correct.post data by a...
39.46875
119
0.695962
177
1,263
4.672316
0.367232
0.065296
0.048368
0.091898
0.448609
0.37243
0.37243
0.37243
0.270859
0.270859
0
0.008491
0.160728
1,263
32
120
39.46875
0.771698
0.136975
0
0.363636
0
0.045455
0.23893
0.095941
0
0
0
0
0
1
0
false
0
0.227273
0
0.227273
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc2e4f714b9faba2c5ecf66e26fac9c7e7da6366
1,527
py
Python
rainbow/datasources/cfn_datasource.py
omribahumi/rainbow
17aad61231b1f1b9d0dca43979e2fa4c8a1603f3
[ "BSD-2-Clause-FreeBSD" ]
35
2015-01-04T15:23:49.000Z
2020-11-24T16:10:33.000Z
rainbow/datasources/cfn_datasource.py
omribahumi/rainbow
17aad61231b1f1b9d0dca43979e2fa4c8a1603f3
[ "BSD-2-Clause-FreeBSD" ]
10
2015-01-20T07:45:41.000Z
2015-06-23T15:03:42.000Z
rainbow/datasources/cfn_datasource.py
omribahumi/rainbow
17aad61231b1f1b9d0dca43979e2fa4c8a1603f3
[ "BSD-2-Clause-FreeBSD" ]
17
2015-01-04T14:20:31.000Z
2020-11-24T16:10:36.000Z
from rainbow.cloudformation import Cloudformation from base import DataSourceBase __all__ = ['CfnOutputsDataSource', 'CfnResourcesDataSource', 'CfnParametersDataSource'] class CfnDataSourceBase(DataSourceBase): def __init__(self, data_source): super(CfnDataSourceBase, self).__init__(data_source) ...
30.54
108
0.717092
163
1,527
6.312883
0.288344
0.1069
0.04276
0.058309
0.176871
0.176871
0
0
0
0
0
0.000812
0.193844
1,527
49
109
31.163265
0.835093
0
0
0.137931
0
0
0.079895
0.02947
0
0
0
0
0
1
0.137931
false
0
0.068966
0
0.448276
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc2e92525a1caaa4ddf0a3ef664b415296525d97
2,338
py
Python
python/flexflow_cffi_build.py
zmxdream/FlexFlow
7ea50d71a02e853af7ae573d88c911511b3e82e0
[ "Apache-2.0" ]
455
2018-12-09T01:57:46.000Z
2022-03-22T01:56:47.000Z
python/flexflow_cffi_build.py
zmxdream/FlexFlow
7ea50d71a02e853af7ae573d88c911511b3e82e0
[ "Apache-2.0" ]
136
2019-04-19T08:24:27.000Z
2022-03-28T01:39:19.000Z
python/flexflow_cffi_build.py
zmxdream/FlexFlow
7ea50d71a02e853af7ae573d88c911511b3e82e0
[ "Apache-2.0" ]
102
2018-12-22T07:38:05.000Z
2022-03-30T06:04:39.000Z
#!/usr/bin/env python # Copyright 2020 Stanford University, Los Alamos National Laboratory # # 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 ...
38.327869
116
0.727545
339
2,338
4.79351
0.418879
0.040615
0.043077
0.031385
0.213538
0.122462
0.038154
0
0
0
0
0.005102
0.161677
2,338
60
117
38.966667
0.82398
0.260479
0
0
0
0
0.120187
0.028588
0
0
0
0
0
1
0.09375
false
0
0.125
0
0.28125
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc2eebcbe5bb3cf4ff6427b453a41d0127cdd332
1,414
py
Python
gaphor/plugins/xmiexport/__init__.py
tuxcell/gaphor
22eb13479f589a0105ad25a11aed968e9ad932dc
[ "Apache-2.0" ]
null
null
null
gaphor/plugins/xmiexport/__init__.py
tuxcell/gaphor
22eb13479f589a0105ad25a11aed968e9ad932dc
[ "Apache-2.0" ]
null
null
null
gaphor/plugins/xmiexport/__init__.py
tuxcell/gaphor
22eb13479f589a0105ad25a11aed968e9ad932dc
[ "Apache-2.0" ]
null
null
null
"""This plugin extends Gaphor with XMI export functionality.""" import logging from gaphor.abc import ActionProvider, Service from gaphor.core import action, gettext from gaphor.plugins.xmiexport import exportmodel from gaphor.ui.filedialog import FileDialog logger = logging.getLogger(__name__) class XMIExport(Ser...
32.883721
83
0.666195
164
1,414
5.615854
0.408537
0.043431
0.058632
0.045603
0.049946
0
0
0
0
0
0
0.000934
0.242574
1,414
42
84
33.666667
0.85901
0.040311
0
0
0
0
0.15396
0
0
0
0
0
0
1
0.09375
false
0.03125
0.15625
0
0.28125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc2f49e15f4138f716bca2a01da611b02c245377
2,278
py
Python
tests/utils.py
btk15049/online-judge-tools
22505e98359c50df06e7cc1d53a7d253cb096b14
[ "MIT" ]
null
null
null
tests/utils.py
btk15049/online-judge-tools
22505e98359c50df06e7cc1d53a7d253cb096b14
[ "MIT" ]
null
null
null
tests/utils.py
btk15049/online-judge-tools
22505e98359c50df06e7cc1d53a7d253cb096b14
[ "MIT" ]
null
null
null
import contextlib import os import pathlib import subprocess import sys import tempfile @contextlib.contextmanager def chdir(path): cwd = os.getcwd() try: os.chdir(path) yield finally: os.chdir(cwd) def prepare_files(files): for f in files: path = pathlib.Path(f['path...
24.76087
108
0.618086
306
2,278
4.506536
0.356209
0.032632
0.055112
0.014503
0.094271
0.033358
0.033358
0
0
0
0
0.005239
0.24583
2,278
91
109
25.032967
0.797439
0.061896
0
0.104478
0
0.014925
0.109705
0.037975
0
0
0
0
0.029851
1
0.164179
false
0
0.119403
0
0.447761
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc2f8d6fdf5321bc7fa432fe83690f0311e43ce9
303
py
Python
git_operation.py
zerzerzerz/Computer-Virus
4a3125b45e0e4210fb1b8c970a0d6c6bde77f2e8
[ "MIT" ]
null
null
null
git_operation.py
zerzerzerz/Computer-Virus
4a3125b45e0e4210fb1b8c970a0d6c6bde77f2e8
[ "MIT" ]
null
null
null
git_operation.py
zerzerzerz/Computer-Virus
4a3125b45e0e4210fb1b8c970a0d6c6bde77f2e8
[ "MIT" ]
null
null
null
import os commit_string = "选择data的前多少个维度参与训练" not_add = ['results', 'data', 'weights'] for item in os.listdir(): if item in not_add: # print(item) continue else: os.system(f"git add {item}") os.system(f'git commit -m "{commit_string}"') os.system("git push origin main")
25.25
45
0.636964
44
303
4.295455
0.568182
0.126984
0.095238
0.126984
0
0
0
0
0
0
0
0
0.214521
303
12
46
25.25
0.794118
0.036304
0
0
0
0
0.343643
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc3035214a995b5b1335519d9f36c232352adce4
6,523
py
Python
src/cool_grammar.py
peanut-butter-jellyyy/cool-compiler-2021
63a668d435ed22cfb8dbb096bc3c82a34f09517b
[ "MIT" ]
null
null
null
src/cool_grammar.py
peanut-butter-jellyyy/cool-compiler-2021
63a668d435ed22cfb8dbb096bc3c82a34f09517b
[ "MIT" ]
null
null
null
src/cool_grammar.py
peanut-butter-jellyyy/cool-compiler-2021
63a668d435ed22cfb8dbb096bc3c82a34f09517b
[ "MIT" ]
null
null
null
from src.cmp.pycompiler import Grammar from src.ast_nodes import ( ProgramNode, ClassDeclarationNode, FuncDeclarationNode, AttrDeclarationNode, IfNode, WhileNode, LetNode, CaseNode, IsvoidNode, AssignNode, VarDeclarationNode, CaseItemNode, NotNode, ...
36.038674
87
0.559099
917
6,523
3.904035
0.142857
0.117318
0.134078
0.057821
0.352793
0.248883
0.194693
0.13743
0.065922
0.065922
0
0.020594
0.27794
6,523
180
88
36.238889
0.73949
0.006592
0
0.026667
0
0.006667
0.057824
0
0
0
0
0
0
1
0.006667
false
0
0.013333
0
0.026667
0.02
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc30849700e1ea4826d82e5040dc0a3f7cab1d33
1,599
py
Python
userbot/plugins/selfdestruct.py
Aliensuniquebot/CatUserbot
93561a620fc1198c6fe6c259412088f4bc81d97b
[ "MIT" ]
1
2020-07-18T07:42:58.000Z
2020-07-18T07:42:58.000Z
userbot/plugins/selfdestruct.py
praveen368/CatUserbot
4b0cd970551ffaf86b9fdd5da584c1b3882821ff
[ "MIT" ]
null
null
null
userbot/plugins/selfdestruct.py
praveen368/CatUserbot
4b0cd970551ffaf86b9fdd5da584c1b3882821ff
[ "MIT" ]
2
2020-06-25T11:14:50.000Z
2021-04-04T13:49:13.000Z
# For @UniBorg # courtesy Yasir siddiqui """Self Destruct Plugin .sd <time in seconds> <text> """ import time from userbot import CMD_HELP from telethon.errors import rpcbaseerrors from userbot.utils import admin_cmd import importlib.util @borg.on(admin_cmd(pattern="sdm", outgoing=True)) async def selfdestruct(des...
28.052632
90
0.602251
196
1,599
4.867347
0.352041
0.092243
0.050314
0.02935
0.612159
0.568134
0.568134
0.568134
0.568134
0.568134
0
0.008525
0.266417
1,599
56
91
28.553571
0.804774
0.054409
0
0.428571
0
0
0.055186
0
0
0
0
0
0
1
0
false
0
0.119048
0
0.119048
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc311bab55ecedbbd72f07232e73e6cac438a6b2
1,101
py
Python
snippets/basic_render_template_class.py
OSAMAMOHAMED1234/python_projects
fb4bc7356847c3f46df690a9386cf970377a6f7c
[ "MIT" ]
null
null
null
snippets/basic_render_template_class.py
OSAMAMOHAMED1234/python_projects
fb4bc7356847c3f46df690a9386cf970377a6f7c
[ "MIT" ]
null
null
null
snippets/basic_render_template_class.py
OSAMAMOHAMED1234/python_projects
fb4bc7356847c3f46df690a9386cf970377a6f7c
[ "MIT" ]
null
null
null
import os class Template: template_name = '' context = None def __init__(self, template_name='', context=None, *args, **kwargs): self.template_name = template_name self.context = context def get_template(self): template_path = os.path.join(os.path.join(os.path.dirname(os.path.abspath(__file__)), '...
30.583333
123
0.693006
149
1,101
4.912752
0.308725
0.114754
0.081967
0.062842
0.177596
0
0
0
0
0
0
0.002174
0.164396
1,101
36
124
30.583333
0.793478
0
0
0
0
0
0.082577
0
0
0
0
0
0
1
0.103448
false
0
0.034483
0
0.310345
0.103448
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc3abec567aafacd5d2829eabdf814ac53962d6d
495
py
Python
tests/comments/test_only_block_comment.py
sco1/pylox
b4820828306c20cee3f8533c2547fafb92c6c1bd
[ "MIT" ]
2
2021-12-18T01:52:50.000Z
2022-01-17T19:41:52.000Z
tests/comments/test_only_block_comment.py
sco1/pylox
b4820828306c20cee3f8533c2547fafb92c6c1bd
[ "MIT" ]
18
2021-11-30T04:05:53.000Z
2022-02-01T03:30:04.000Z
tests/comments/test_only_block_comment.py
sco1/pylox
b4820828306c20cee3f8533c2547fafb92c6c1bd
[ "MIT" ]
null
null
null
from textwrap import dedent import pytest from pylox.lox import Lox TEST_SRC = dedent( """\ /* This is a multiline block comment */ """ ) EXPECTED_STDOUTS: list[str] = [] def test_block_comment_at_eof(capsys: pytest.CaptureFixture) -> None: interpreter = Lox() interpreter.run(TEST_SRC)...
18.333333
69
0.70101
62
495
5.387097
0.580645
0.041916
0.11976
0.137725
0
0
0
0
0
0
0
0
0.206061
495
26
70
19.038462
0.849873
0
0
0
0
0
0
0
0
0
0
0
0.230769
1
0.076923
false
0
0.230769
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc3d1481782a2c4ff97885d3937f7846223c55ab
1,082
py
Python
setup.py
sturmianseq/observed
d99fb99ff2a470a86efb2763685e8e2c021e799f
[ "MIT" ]
33
2015-04-29T08:11:42.000Z
2022-02-01T16:50:25.000Z
setup.py
sturmianseq/observed
d99fb99ff2a470a86efb2763685e8e2c021e799f
[ "MIT" ]
15
2015-02-04T15:11:17.000Z
2022-01-26T19:58:29.000Z
setup.py
sturmianseq/observed
d99fb99ff2a470a86efb2763685e8e2c021e799f
[ "MIT" ]
6
2017-06-11T19:40:31.000Z
2021-08-05T07:57:28.000Z
import re import setuptools README_FILENAME = "README.md" VERSION_FILENAME = "observed.py" VERSION_RE = r"^__version__ = ['\"]([^'\"]*)['\"]" # Get version information with open(VERSION_FILENAME, "r") as version_file: mo = re.search(VERSION_RE, version_file.read(), re.M) if mo: version = mo.group(1) else: ...
27.05
67
0.685767
129
1,082
5.573643
0.55814
0.083449
0.052851
0.083449
0
0
0
0
0
0
0
0.00225
0.178373
1,082
39
68
27.74359
0.806524
0.047135
0
0
0
0
0.327821
0.020428
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
fc3d20f3595ad33d1e9d9bf80ce974904075e7ce
3,536
py
Python
src/coco.py
catalyst-team/detector
383c17ba7701d960ca92be0aafbff05207f2de3a
[ "Apache-2.0" ]
15
2019-05-15T13:42:51.000Z
2020-11-09T23:13:06.000Z
src/coco.py
catalyst-team/detector
383c17ba7701d960ca92be0aafbff05207f2de3a
[ "Apache-2.0" ]
1
2020-01-09T08:53:49.000Z
2020-01-16T19:41:16.000Z
src/coco.py
catalyst-team/detection
383c17ba7701d960ca92be0aafbff05207f2de3a
[ "Apache-2.0" ]
null
null
null
import os import json import numpy as np import pickle from typing import Any from pycocotools.coco import COCO from torch.utils.data import Dataset class DetectionMSCOCODataset(Dataset): def __init__(self, annotation_file: str, image_dir: str): self._annotation_file = annotation_file self._imag...
32.440367
97
0.588235
438
3,536
4.399543
0.226027
0.062273
0.045667
0.021796
0.104826
0
0
0
0
0
0
0.00406
0.30345
3,536
108
98
32.740741
0.778319
0
0
0
0
0
0.047511
0
0
0
0
0
0
1
0.094118
false
0
0.082353
0.023529
0.235294
0.035294
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc3e56f1b6dc2446fe20c8456364bfd95e849dd0
7,538
py
Python
infrastructure-provisioning/src/general/scripts/azure/common_notebook_configure_dataengine.py
DmytroLiaskovskyi/incubator-dlab
af995e98b3b3cf526fb9741a3e5117dd1e04f3aa
[ "Apache-2.0" ]
null
null
null
infrastructure-provisioning/src/general/scripts/azure/common_notebook_configure_dataengine.py
DmytroLiaskovskyi/incubator-dlab
af995e98b3b3cf526fb9741a3e5117dd1e04f3aa
[ "Apache-2.0" ]
null
null
null
infrastructure-provisioning/src/general/scripts/azure/common_notebook_configure_dataengine.py
DmytroLiaskovskyi/incubator-dlab
af995e98b3b3cf526fb9741a3e5117dd1e04f3aa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # ***************************************************************************** # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The A...
51.986207
122
0.628549
837
7,538
5.369176
0.249701
0.183801
0.080107
0.054072
0.487094
0.384513
0.313529
0.277926
0.252114
0.243213
0
0.006487
0.222871
7,538
144
123
52.347222
0.760669
0.127089
0
0.362832
0
0.00885
0.31534
0.031717
0
0
0
0
0
1
0
false
0
0.070796
0
0.070796
0.088496
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc40aa5a0884df8e751f2fa5cfb93216f3c13768
16,560
py
Python
magenta/models/sketch_rnn/rnn.py
laurens-in/magenta
be6ed8d5b1eb2986ca277aa9c574a7912dd5ed0f
[ "Apache-2.0" ]
1
2021-12-27T10:43:39.000Z
2021-12-27T10:43:39.000Z
magenta/models/sketch_rnn/rnn.py
kyungyunlee/magenta
cf80d19fc0c2e935821f284ebb64a8885f793717
[ "Apache-2.0" ]
null
null
null
magenta/models/sketch_rnn/rnn.py
kyungyunlee/magenta
cf80d19fc0c2e935821f284ebb64a8885f793717
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Magenta Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
33.186373
80
0.634964
2,423
16,560
4.089971
0.134957
0.046821
0.03996
0.011806
0.549647
0.492936
0.46448
0.442482
0.412714
0.365691
0
0.019692
0.254831
16,560
498
81
33.253012
0.783387
0.195411
0
0.511494
0
0
0.021418
0
0
0
0
0
0
1
0.077586
false
0
0.017241
0.025862
0.178161
0.002874
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc412db90075a83ae4e5731ee32b0fb7611791ff
6,034
py
Python
src/cogent3/cluster/UPGMA.py
u6052029/cogent3
ca0efcb7f60b715bcbfbecd924cdb98a53cefe20
[ "BSD-3-Clause" ]
null
null
null
src/cogent3/cluster/UPGMA.py
u6052029/cogent3
ca0efcb7f60b715bcbfbecd924cdb98a53cefe20
[ "BSD-3-Clause" ]
null
null
null
src/cogent3/cluster/UPGMA.py
u6052029/cogent3
ca0efcb7f60b715bcbfbecd924cdb98a53cefe20
[ "BSD-3-Clause" ]
null
null
null
# usr/bin/env python """Functions to cluster using UPGMA upgma takes an dictionary of pair tuples mapped to distances as input. UPGMA_cluster takes an array and a list of PhyloNode objects corresponding to the array as input. Can also generate this type of input from a DictArray using inputs_from_dict_array function....
36.569697
82
0.716937
881
6,034
4.755959
0.270148
0.07136
0.024344
0.013604
0.187351
0.129594
0.082339
0.04105
0
0
0
0.01385
0.222241
6,034
164
83
36.792683
0.878969
0.46934
0
0.075
0
0
0.05625
0.006908
0
0
0
0
0
1
0.075
false
0
0.05
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
fc417b4336f77e529dd64d425d37722b3edade09
1,007
py
Python
module1/api.py
oceandelee/tac
62ffbcb31b374a9fa83a1ee6010b2e00f2de8a7c
[ "MIT" ]
null
null
null
module1/api.py
oceandelee/tac
62ffbcb31b374a9fa83a1ee6010b2e00f2de8a7c
[ "MIT" ]
null
null
null
module1/api.py
oceandelee/tac
62ffbcb31b374a9fa83a1ee6010b2e00f2de8a7c
[ "MIT" ]
null
null
null
"""API for AVB""" import json import sys import requests def actualite_found (): osm = "https://opendata.bruxelles.be/api/datasets/1.0/search/?q=" data = { "nhits":0, "parameters":{ "dataset":"actualites-ville-de-bruxelles", "timezone":"UTC", "q":"actualite", "langu...
19.365385
69
0.5571
115
1,007
4.747826
0.530435
0.07326
0.087912
0
0
0
0
0
0
0
0
0.014946
0.269116
1,007
52
70
19.365385
0.726902
0.025819
0
0
0
0
0.256148
0.029713
0
0
0
0
0
1
0.076923
false
0
0.076923
0.025641
0.230769
0.102564
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc422cd23ef7241b5d35bfeb10b87ff16ba77128
7,782
py
Python
improver/cli/nbhood.py
cpelley/improver
ebf77fe2adc85ed7aec74c26671872a2e4388ded
[ "BSD-3-Clause" ]
77
2017-04-26T07:47:40.000Z
2022-03-31T09:40:49.000Z
improver/cli/nbhood.py
cpelley/improver
ebf77fe2adc85ed7aec74c26671872a2e4388ded
[ "BSD-3-Clause" ]
1,440
2017-03-29T10:04:15.000Z
2022-03-28T10:11:29.000Z
improver/cli/nbhood.py
MoseleyS/improver
ca028e3a1c842e3ff00b188c8ea6eaedd0a07149
[ "BSD-3-Clause" ]
72
2017-03-17T16:53:45.000Z
2022-02-16T09:41:37.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2021 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the ...
42.758242
88
0.681187
936
7,782
5.560897
0.313034
0.022478
0.018444
0.013833
0.151777
0.104899
0.080692
0.064938
0.064938
0.026129
0
0.001912
0.260601
7,782
181
89
42.994475
0.902676
0.648933
0
0.206349
0
0
0.094527
0.014096
0
0
0
0
0
1
0.015873
false
0
0.095238
0
0.126984
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc461d0fe4c1ef7384477f1e053ae3080c54c6a9
1,541
py
Python
donation/migrations/0043_auto_20180109_0012.py
effective-altruism-australia/donation-portal
45fe58edc44d0c4444b493e4ac025fc53897c799
[ "MIT" ]
1
2019-04-23T01:29:26.000Z
2019-04-23T01:29:26.000Z
donation/migrations/0043_auto_20180109_0012.py
effective-altruism-australia/donation-portal
45fe58edc44d0c4444b493e4ac025fc53897c799
[ "MIT" ]
68
2017-02-10T21:33:39.000Z
2019-06-22T13:40:02.000Z
donation/migrations/0043_auto_20180109_0012.py
effective-altruism-australia/donation-portal
45fe58edc44d0c4444b493e4ac025fc53897c799
[ "MIT" ]
5
2016-11-08T01:35:47.000Z
2020-12-08T07:32:34.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion def copy_existing_referrals_into_new_field(apps, schema_editor): Pledge = apps.get_model('donation', 'Pledge') Referral = apps.get_model('donation', 'Referral') reason...
35.022727
171
0.658663
184
1,541
5.23913
0.461957
0.03112
0.046681
0.067427
0.209544
0.209544
0.120332
0.06639
0
0
0
0.006734
0.229072
1,541
43
172
35.837209
0.804714
0.029202
0
0.117647
0
0
0.121902
0.051574
0
0
0
0
0
1
0.029412
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc48029eb6bc6d9c3b97d0e2970ae2bc11eb162e
5,626
py
Python
graph_search/week2/assignment_dijkstra_shortest_paths.py
liaoaoyuan97/standford_algorithms_specialization
2914fdd397ce895d986ac855e78afd7a51ceff68
[ "MIT" ]
null
null
null
graph_search/week2/assignment_dijkstra_shortest_paths.py
liaoaoyuan97/standford_algorithms_specialization
2914fdd397ce895d986ac855e78afd7a51ceff68
[ "MIT" ]
null
null
null
graph_search/week2/assignment_dijkstra_shortest_paths.py
liaoaoyuan97/standford_algorithms_specialization
2914fdd397ce895d986ac855e78afd7a51ceff68
[ "MIT" ]
1
2021-01-18T19:35:48.000Z
2021-01-18T19:35:48.000Z
import heapq import time from os import path from math import floor class Heap: def __init__(self): self.size = 0 self.array = [] self.v2index_map = {} def __get_parent_index(self, idx): return int(floor((idx - 1) / 2)) def __get_left_child_index(self, idx): retur...
27.714286
119
0.551369
824
5,626
3.515777
0.161408
0.059027
0.033828
0.01795
0.383155
0.327235
0.25164
0.182258
0.159475
0.11253
0
0.046691
0.307145
5,626
202
120
27.851485
0.696511
0.088162
0
0.159091
0
0
0.006068
0
0
0
0
0
0.015152
1
0.106061
false
0
0.030303
0.030303
0.204545
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc480677b321e1843fe0812d2b7ce6bbeeb5090e
4,345
py
Python
ssod/utils/structure_utils.py
huimlight/SoftTeacher
97064fbcce1ab87b40977544ba7a9c488274d66f
[ "MIT" ]
604
2021-08-09T03:00:35.000Z
2022-03-31T13:43:14.000Z
ssod/utils/structure_utils.py
huimlight/SoftTeacher
97064fbcce1ab87b40977544ba7a9c488274d66f
[ "MIT" ]
158
2021-08-29T07:58:22.000Z
2022-03-31T15:23:27.000Z
ssod/utils/structure_utils.py
huimlight/SoftTeacher
97064fbcce1ab87b40977544ba7a9c488274d66f
[ "MIT" ]
92
2021-08-24T07:29:37.000Z
2022-03-29T03:01:34.000Z
import warnings from collections import Counter, Mapping, Sequence from numbers import Number from typing import Dict, List import numpy as np import torch from mmdet.core.mask.structures import BitmapMasks from torch.nn import functional as F _step_counter = Counter() def list_concat(data_list: List[list]): if...
28.214286
88
0.607595
621
4,345
4.132045
0.201288
0.042868
0.007794
0.010912
0.128995
0.093141
0.082619
0.082619
0.030398
0.030398
0
0.012698
0.275029
4,345
153
89
28.398693
0.801905
0
0
0.125
0
0
0.011277
0
0
0
0
0
0.016667
1
0.116667
false
0
0.066667
0.008333
0.391667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc4a04571ae8ad033810ff66b391deb8c9d55bed
1,642
py
Python
dev/Tools/build/waf-1.7.13/waflib/extras/fc_xlf.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
dev/Tools/build/waf-1.7.13/waflib/extras/fc_xlf.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
dev/Tools/build/waf-1.7.13/waflib/extras/fc_xlf.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
#! /usr/bin/env python # encoding: utf-8 # harald at klimachs.de import re from waflib import Utils,Errors from waflib.Tools import fc,fc_config,fc_scan from waflib.Configure import conf from waflib.Tools.compiler_fc import fc_compiler fc_compiler['aix'].insert(0, 'fc_xlf') @conf def find_xlf(conf): """Find the xlf...
25.261538
115
0.693057
269
1,642
4.037175
0.394052
0.060773
0.041436
0.027624
0
0
0
0
0
0
0
0.013399
0.136419
1,642
64
116
25.65625
0.752468
0.091352
0
0.083333
0
0
0.210419
0.020974
0
0
0
0
0
1
0.104167
false
0
0.104167
0
0.208333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc519cd073372b79ff5e315d6c117f1de77e8ef5
602
py
Python
examples/bathymetricGradient.py
usgs/water-datapreptools
49c852a0c189e142a351331ba6e0d1ef9e7a408b
[ "CC0-1.0" ]
2
2021-06-22T18:18:47.000Z
2021-09-25T18:16:26.000Z
examples/bathymetricGradient.py
usgs/water-datapreptools
49c852a0c189e142a351331ba6e0d1ef9e7a408b
[ "CC0-1.0" ]
null
null
null
examples/bathymetricGradient.py
usgs/water-datapreptools
49c852a0c189e142a351331ba6e0d1ef9e7a408b
[ "CC0-1.0" ]
null
null
null
import sys sys.path.append("..") # change environment to see tools from make_hydrodem import bathymetricGradient workspace = r"" # path to geodatabase to use as a workspace snapGrid = r"" # path to snapping grid hucPoly = r"" # path to local folder polygon hydrographyArea = r"" # path to NHD area feature class...
43
67
0.757475
74
602
6.148649
0.527027
0.065934
0.092308
0.065934
0
0
0
0
0
0
0
0
0.167774
602
14
68
43
0.908184
0.393688
0
0
0
0
0.005814
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc52596785d1ffc33b3982ed9e7fa9443b9fefb7
9,799
py
Python
out/flowContext.py
hxb1997/Menge
7a09a6236d8eef23e3d15d08873d5918d064761b
[ "Apache-2.0" ]
null
null
null
out/flowContext.py
hxb1997/Menge
7a09a6236d8eef23e3d15d08873d5918d064761b
[ "Apache-2.0" ]
null
null
null
out/flowContext.py
hxb1997/Menge
7a09a6236d8eef23e3d15d08873d5918d064761b
[ "Apache-2.0" ]
1
2021-07-01T09:40:01.000Z
2021-07-01T09:40:01.000Z
# This is the OpenGL context for drawing flow calculation lines from Context import * from primitives import Vector2, Segment from OpenGL.GL import * from copy import deepcopy class GLFlowSegment( Segment ): '''The OpenGL representation of a flow line. Basically a segment with a direciton indicator. The dire...
37.98062
89
0.525462
1,122
9,799
4.554367
0.221925
0.033464
0.046575
0.022309
0.294325
0.226223
0.179256
0.170646
0.12407
0.108023
0
0.013866
0.381774
9,799
257
90
38.128405
0.829647
0.253087
0
0.333333
0
0
0.004146
0
0
0
0
0
0.023392
1
0.128655
false
0
0.023392
0.017544
0.245614
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc5346e19911a49d8686625f457f771311d07483
324
py
Python
Codes/gracekoo/test.py
ghoslation/algorithm
5708bf89e59a80cd0f50f2e6138f069b4f9bc96e
[ "Apache-2.0" ]
256
2017-10-25T13:02:15.000Z
2022-02-25T13:47:59.000Z
Codes/gracekoo/test.py
IYoreI/Algorithm
0addf0cda0ec9e3f46c480eeda3a8ecb64c94121
[ "Apache-2.0" ]
56
2017-10-27T01:34:20.000Z
2022-03-01T00:20:55.000Z
Codes/gracekoo/test.py
IYoreI/Algorithm
0addf0cda0ec9e3f46c480eeda3a8ecb64c94121
[ "Apache-2.0" ]
83
2017-10-25T12:51:53.000Z
2022-02-15T08:27:03.000Z
# -*- coding: utf-8 -*- # @Time: 2020/11/8 23:47 # @Author: GraceKoo # @File: test.py # @Desc: from threading import Thread import time def print_numbers(): time.sleep(0.2) print("子线程结束") if __name__ == "__main__": t1 = Thread(target=print_numbers) t1.setDaemon(True) t1.start() # print("主线程结...
16.2
37
0.623457
45
324
4.266667
0.755556
0.125
0
0
0
0
0
0
0
0
0
0.065891
0.203704
324
19
38
17.052632
0.678295
0.305556
0
0
0
0
0.059633
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.333333
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc545ada34aef15e72804247df9cc885de6ee820
2,657
py
Python
aiorpcgrid/client.py
urands/aiorpcgrid
7bc9ee9a80fa843998b2604d7c0803b323628480
[ "Apache-2.0" ]
null
null
null
aiorpcgrid/client.py
urands/aiorpcgrid
7bc9ee9a80fa843998b2604d7c0803b323628480
[ "Apache-2.0" ]
null
null
null
aiorpcgrid/client.py
urands/aiorpcgrid
7bc9ee9a80fa843998b2604d7c0803b323628480
[ "Apache-2.0" ]
null
null
null
import asyncio # from aiorpcgrid.client import Client from aiorpcgrid.task import AsyncTask, State class AsyncClient: _provider = None _method = None _requests: dict = {} _running = True _request_queue: asyncio.Queue = asyncio.Queue() _loop = None def __init__(self, provider, loop=None):...
34.960526
77
0.546481
277
2,657
5.025271
0.249097
0.068966
0.057471
0.063218
0.047414
0.047414
0
0
0
0
0
0
0.368837
2,657
75
78
35.426667
0.830054
0.013549
0
0.031746
0
0
0.018709
0
0
0
0
0
0
1
0.031746
false
0
0.031746
0
0.206349
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc58e1c32b322dbf5e028fbcbb5c81a4dc6ff07a
1,348
py
Python
sopa/src/models/utils.py
SamplingAndEnsemblingSolvers/SamplingAndEnsemblingSolvers
5ad3cae76c3cc9cec4d347807012e61121ea61b9
[ "MIT" ]
25
2021-03-16T13:40:45.000Z
2021-08-12T04:54:39.000Z
sopa/src/models/utils.py
MetaSolver/icml2021
619774abe4a834ae371434af8b23379e9524e7da
[ "BSD-3-Clause" ]
null
null
null
sopa/src/models/utils.py
MetaSolver/icml2021
619774abe4a834ae371434af8b23379e9524e7da
[ "BSD-3-Clause" ]
1
2021-03-31T02:58:03.000Z
2021-03-31T02:58:03.000Z
import numpy as np import torch import random from .odenet_mnist.layers import MetaNODE def fix_seeds(seed=502): np.random.seed(seed) random.seed(seed) torch.manual_seed(seed) torch.cuda.manual_seed_all(seed) torch.set_printoptions(precision=10) torch.backends.cudnn.deterministic = Tr...
27.510204
99
0.635015
171
1,348
4.795322
0.426901
0.076829
0.040244
0.069512
0.087805
0.070732
0
0
0
0
0
0.011111
0.265579
1,348
49
100
27.510204
0.817172
0.03635
0
0
0
0
0.015456
0
0
0
0
0
0
1
0.142857
false
0
0.114286
0
0.314286
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc5b4e12e35ec5a1123e4672989f9b50567b330a
3,141
py
Python
jv/test_jv.py
chenwang/QuantEcon.lectures.code
8832a74acd219a71cb0a99dc63c5e976598ac999
[ "BSD-3-Clause" ]
56
2017-05-09T10:45:23.000Z
2022-01-20T20:33:27.000Z
jv/test_jv.py
chenwang/QuantEcon.lectures.code
8832a74acd219a71cb0a99dc63c5e976598ac999
[ "BSD-3-Clause" ]
7
2017-06-30T01:52:46.000Z
2019-05-01T20:09:47.000Z
jv/test_jv.py
QuantEcon/QuantEcon.lectures.code
d61ac7bc54529dd5c77470c17539eb2418b047c9
[ "BSD-3-Clause" ]
117
2017-04-25T16:09:17.000Z
2022-03-23T02:30:29.000Z
""" @author : Spencer Lyon """ from __future__ import division import sys import unittest from nose.plugins.skip import SkipTest from jv import JvWorker from quantecon import compute_fixed_point from quantecon.tests import get_h5_data_file, write_array, max_abs_diff # specify params -- use defaults A = 1.4 alpha = 0...
28.044643
78
0.606176
469
3,141
3.842217
0.328358
0.027192
0.037736
0.023307
0.147614
0.147614
0.147614
0.126526
0.126526
0.049945
0
0.017383
0.304043
3,141
111
79
28.297297
0.806953
0.209169
0
0.197183
0
0
0.104205
0
0
0
0
0
0.070423
1
0.112676
false
0
0.098592
0
0.28169
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc5bfb461089e67c5b2c46ef4db3208ad1a8b352
9,820
py
Python
excentury/command/config.py
LaudateCorpus1/excentury
8d0f20bb3e543382170e042fac51a56377c4024b
[ "BSD-2-Clause" ]
null
null
null
excentury/command/config.py
LaudateCorpus1/excentury
8d0f20bb3e543382170e042fac51a56377c4024b
[ "BSD-2-Clause" ]
null
null
null
excentury/command/config.py
LaudateCorpus1/excentury
8d0f20bb3e543382170e042fac51a56377c4024b
[ "BSD-2-Clause" ]
1
2021-12-31T13:24:16.000Z
2021-12-31T13:24:16.000Z
"""Config This module is in charge of providing all the necessary settings to the rest of the modules in excentury. """ import os import re import sys import textwrap import argparse from collections import OrderedDict from excentury.command import error, trace, import_mod DESC = """Edit a configuration file for ex...
33.175676
77
0.559063
1,253
9,820
4.295291
0.227454
0.024155
0.012263
0.014121
0.168711
0.139911
0.122074
0.090115
0.060201
0.050167
0
0.007828
0.323523
9,820
295
78
33.288136
0.802348
0.200102
0
0.159624
0
0
0.144457
0.006364
0
0
0
0
0
1
0.065728
false
0.004695
0.037559
0
0.150235
0.018779
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc5d1f91e8b522de235f963587514841692890ab
4,696
py
Python
tests/test_urls.py
pkjmesra/nseta
28cd8cede465efe9f506a38c5933602c463e5185
[ "MIT" ]
8
2020-10-12T02:59:03.000Z
2022-03-20T15:06:50.000Z
tests/test_urls.py
pkjmesra/nseta
28cd8cede465efe9f506a38c5933602c463e5185
[ "MIT" ]
3
2020-10-13T16:30:09.000Z
2021-01-07T23:57:05.000Z
tests/test_urls.py
pkjmesra/nseta
28cd8cede465efe9f506a38c5933602c463e5185
[ "MIT" ]
5
2020-10-12T14:57:41.000Z
2021-12-30T11:52:34.000Z
# -*- coding: utf-8 -*- ''' Created on Thu Nov 19 20:52:33 2015 @author: SW274998 ''' from nseta.common.commons import * import datetime import unittest import time from bs4 import BeautifulSoup from tests import htmls import json import requests import six from nseta.common.urls import * import nseta.common.urls as ...
34.277372
178
0.643526
590
4,696
4.925424
0.30339
0.121129
0.098417
0.113558
0.355816
0.235375
0.075705
0.020647
0
0
0
0.048696
0.199744
4,696
136
179
34.529412
0.724588
0.043441
0
0.063636
0
0
0.125809
0.029891
0
0
0
0
0.172727
1
0.145455
false
0
0.118182
0
0.272727
0.063636
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc5d4359e9534912a4f50ac4cf894cf8797005d0
3,207
py
Python
accounts/forms.py
cheradenine/Django-CRM
692572ced050d314c1f880af8b4000c97cbf7440
[ "MIT" ]
2
2019-08-30T14:42:45.000Z
2019-09-01T01:49:38.000Z
accounts/forms.py
cheradenine/Django-CRM
692572ced050d314c1f880af8b4000c97cbf7440
[ "MIT" ]
7
2021-03-31T20:01:14.000Z
2022-03-12T00:47:10.000Z
accounts/forms.py
gthreepwood/Django-CRM
12de7e6c622d9d7483c210212c8b7fe3dbde2739
[ "MIT" ]
1
2021-10-09T10:03:46.000Z
2021-10-09T10:03:46.000Z
from django import forms from .models import Account from common.models import Comment, Attachments from leads.models import Lead from contacts.models import Contact from django.db.models import Q class AccountForm(forms.ModelForm): def __init__(self, *args, **kwargs): account_view = kwargs.pop('account'...
41.115385
104
0.617399
342
3,207
5.637427
0.28655
0.108921
0.114627
0.072614
0.267635
0.090768
0.060166
0.060166
0.060166
0.060166
0
0.009046
0.241659
3,207
77
105
41.649351
0.783717
0
0
0.046154
0
0
0.193951
0
0
0
0
0
0
1
0.015385
false
0
0.092308
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc5dc71b519a1377907665d2b2ecee494faf08a3
2,408
py
Python
pywren/pywren_ibm_cloud/invokers.py
thetolga/pywren-ibm-cloud
ce48c158cf469b55100ab68a75d3dcd6ae9a3ffe
[ "Apache-2.0" ]
null
null
null
pywren/pywren_ibm_cloud/invokers.py
thetolga/pywren-ibm-cloud
ce48c158cf469b55100ab68a75d3dcd6ae9a3ffe
[ "Apache-2.0" ]
null
null
null
pywren/pywren_ibm_cloud/invokers.py
thetolga/pywren-ibm-cloud
ce48c158cf469b55100ab68a75d3dcd6ae9a3ffe
[ "Apache-2.0" ]
null
null
null
# # Copyright 2018 PyWren 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 in writing...
34.898551
148
0.658638
298
2,408
5.124161
0.40604
0.045842
0.047151
0.05239
0.081205
0.057629
0.057629
0.057629
0.057629
0.057629
0
0.005556
0.252492
2,408
68
149
35.411765
0.842778
0.260382
0
0.057143
0
0
0.127981
0
0
0
0
0
0
1
0.085714
false
0
0.114286
0
0.285714
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc5f5a1b908ccb47f94225746e71f15650a97363
4,160
py
Python
Projet1/Dataset/addlinkRealExample.py
Arugakente/DataScienceP1
94ca874ed8a76a89a3da9ecf2fe6e554700f0507
[ "MIT" ]
null
null
null
Projet1/Dataset/addlinkRealExample.py
Arugakente/DataScienceP1
94ca874ed8a76a89a3da9ecf2fe6e554700f0507
[ "MIT" ]
null
null
null
Projet1/Dataset/addlinkRealExample.py
Arugakente/DataScienceP1
94ca874ed8a76a89a3da9ecf2fe6e554700f0507
[ "MIT" ]
null
null
null
import os import random inputDirectory = "./original" outputDirectory = "./processed" #probability parameters TopLevel = 0.6 SecondLevel = 0.5 ThirdLevel = 0.4 FourAndAbove = 0.2 pickInside = 0.5 pickOutside = 0.25 topics = [] siteLevel = [] fileStructure = [] count = 0 def findPossibleIndex(toParse): toRetu...
33.821138
178
0.571394
364
4,160
6.53022
0.222527
0.060581
0.073202
0.018511
0.127472
0.059739
0
0
0
0
0
0.017926
0.316106
4,160
123
179
33.821138
0.817575
0.005288
0
0.064516
0
0
0.014258
0
0
0
0
0
0
1
0.021505
false
0
0.021505
0
0.064516
0.021505
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc61f699dd50ec363bb2a766f77f3f5058fefd54
13,616
py
Python
kkcalc/kk.py
benajamin/kkcalc
fcabfba288442dd297e3bd9910062c5db2231a91
[ "Zlib" ]
null
null
null
kkcalc/kk.py
benajamin/kkcalc
fcabfba288442dd297e3bd9910062c5db2231a91
[ "Zlib" ]
1
2021-02-09T10:18:14.000Z
2021-02-17T08:28:58.000Z
kkcalc/kk.py
benajamin/kkcalc
fcabfba288442dd297e3bd9910062c5db2231a91
[ "Zlib" ]
3
2021-02-06T23:37:14.000Z
2022-01-19T15:26:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of the Kramers-Kronig Calculator software package. # # Copyright (c) 2013 Benjamin Watts, Daniel J. Lauk # # The software is licensed under the terms of the zlib/libpng license. # For details see LICENSE.txt """This module implements the Kramers-Kronig...
47.608392
363
0.735238
2,109
13,616
4.586534
0.168326
0.045694
0.022744
0.017368
0.444123
0.399049
0.354389
0.344877
0.326889
0.311692
0
0.023127
0.113984
13,616
285
364
47.775439
0.77868
0.422444
0
0.106557
0
0
0.048957
0.004069
0
0
0
0
0
1
0.040984
false
0.008197
0.057377
0
0.139344
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc63326e97a96ff49b392fe1692ec3ec3a6b80ad
16,626
py
Python
src/plugins/maimaidx.py
LonelyFantasy/Chiyuki-Bot
16a91b96661825c2a367a12c30d6a28ad13b95a9
[ "MIT" ]
null
null
null
src/plugins/maimaidx.py
LonelyFantasy/Chiyuki-Bot
16a91b96661825c2a367a12c30d6a28ad13b95a9
[ "MIT" ]
null
null
null
src/plugins/maimaidx.py
LonelyFantasy/Chiyuki-Bot
16a91b96661825c2a367a12c30d6a28ad13b95a9
[ "MIT" ]
null
null
null
import math from collections import defaultdict from typing import List, Dict, Any from nonebot import on_command, on_message, on_notice, on_regex, get_driver from nonebot.log import logger from nonebot.permission import Permission from nonebot.typing import T_State from nonebot.adapters import Event, Bot from nonebot...
33.318637
216
0.566582
2,199
16,626
4.138699
0.192815
0.031865
0.016921
0.024613
0.394682
0.345127
0.303154
0.262499
0.247226
0.197451
0
0.020239
0.265969
16,626
498
217
33.385542
0.7255
0.004812
0
0.277389
0
0.013986
0.224687
0.058091
0
0
0
0
0
1
0.006993
false
0
0.04662
0.002331
0.090909
0.004662
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc66871c7a70ed30f6605efa0e99f0abf3ceaa25
4,854
py
Python
layers/gin_layer.py
JakeStevens/benchmarking-gnns
a17fdf1b1d758fc65d5eeaf3726f5efa747a4081
[ "MIT" ]
275
2020-10-22T22:03:33.000Z
2022-03-25T06:08:05.000Z
semisupervised_MNIST_CIFAR10/pre-training/layers/gin_layer.py
xgbt/GraphCL
d857849d51bb168568267e07007c0b0c8bb6d869
[ "MIT" ]
43
2020-10-30T08:28:01.000Z
2022-03-31T16:55:12.000Z
semisupervised_MNIST_CIFAR10/pre-training/layers/gin_layer.py
xgbt/GraphCL
d857849d51bb168568267e07007c0b0c8bb6d869
[ "MIT" ]
70
2020-10-28T19:14:18.000Z
2022-03-27T06:11:51.000Z
import torch import torch.nn as nn import torch.nn.functional as F import dgl.function as fn """ GIN: Graph Isomorphism Networks HOW POWERFUL ARE GRAPH NEURAL NETWORKS? (Keyulu Xu, Weihua Hu, Jure Leskovec and Stefanie Jegelka, ICLR 2019) https://arxiv.org/pdf/1810.00826.pdf """ class GINLayer(nn.Module):...
32.577181
124
0.581994
633
4,854
4.279621
0.273302
0.0299
0.019195
0.016611
0.054264
0.045035
0.045035
0
0
0
0
0.00726
0.318912
4,854
149
125
32.577181
0.81216
0.237948
0
0.109756
0
0
0.028912
0
0
0
0
0
0
1
0.073171
false
0
0.04878
0
0.207317
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc68e0edf30588586dedbfe1358fdf97ab01598d
4,783
py
Python
papirus_renderer.py
ryuchihoon/WeatherStation
e3fd210939a961bc1724197f3885964cb4ae5a28
[ "Apache-2.0" ]
null
null
null
papirus_renderer.py
ryuchihoon/WeatherStation
e3fd210939a961bc1724197f3885964cb4ae5a28
[ "Apache-2.0" ]
null
null
null
papirus_renderer.py
ryuchihoon/WeatherStation
e3fd210939a961bc1724197f3885964cb4ae5a28
[ "Apache-2.0" ]
null
null
null
#-- coding: utf-8 -- import sys reload(sys) sys.setdefaultencoding('utf-8') import os import time import collections from PIL import Image, ImageOps, ImageDraw, ImageFont code_2_icono = collections.defaultdict(lambda : '38') kor_2_eng = collections.defaultdict(lambda : 'UNKNOWN') code_2_icono['SKY_O00'] = ['38'] ...
32.986207
127
0.615931
679
4,783
4.097202
0.306333
0.050324
0.100647
0.121495
0.185478
0.113228
0.022646
0.022646
0.022646
0.022646
0
0.064785
0.222245
4,783
144
128
33.215278
0.683065
0.019026
0
0.055046
0
0
0.117208
0.010034
0
0
0
0
0
1
0.045872
false
0
0.073395
0
0.155963
0.082569
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc6ae61e76507e8c85be28c293840912ca2612a4
7,683
py
Python
src/lava/lib/dl/slayer/utils/assistant.py
timcheck/lava-dl
e680722071129fde952ea0d744984aa2a038797a
[ "BSD-3-Clause" ]
37
2021-09-30T16:47:15.000Z
2022-03-07T22:29:21.000Z
src/lava/lib/dl/slayer/utils/assistant.py
timcheck/lava-dl
e680722071129fde952ea0d744984aa2a038797a
[ "BSD-3-Clause" ]
36
2021-11-04T16:54:55.000Z
2022-03-31T02:26:29.000Z
src/lava/lib/dl/slayer/utils/assistant.py
timcheck/lava-dl
e680722071129fde952ea0d744984aa2a038797a
[ "BSD-3-Clause" ]
20
2021-10-29T22:55:58.000Z
2022-03-22T17:27:16.000Z
# Copyright (C) 2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause """Assistant utility for automatically load network from network description.""" import torch class Assistant: """Assistant that bundles training, validation and testing workflow. Parameters ---------- net : torch.nn.Mo...
29.436782
78
0.521281
834
7,683
4.752998
0.196643
0.035318
0.036327
0.036327
0.534057
0.524975
0.524975
0.506307
0.506307
0.506307
0
0.003847
0.390993
7,683
260
79
29.55
0.843343
0.312508
0
0.674797
0
0
0.007214
0
0
0
0
0
0
1
0.04065
false
0
0.00813
0
0.105691
0.00813
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc6bfc96896fcc886f4088ddc53f2aa20f638760
1,309
py
Python
hpc-historias-clinicas/historias/migrations/0007_auto_20150425_1459.py
btenaglia/hpc-historias-clinicas
649d8660381381b1c591667760c122d73071d5ec
[ "BSD-3-Clause" ]
null
null
null
hpc-historias-clinicas/historias/migrations/0007_auto_20150425_1459.py
btenaglia/hpc-historias-clinicas
649d8660381381b1c591667760c122d73071d5ec
[ "BSD-3-Clause" ]
null
null
null
hpc-historias-clinicas/historias/migrations/0007_auto_20150425_1459.py
btenaglia/hpc-historias-clinicas
649d8660381381b1c591667760c122d73071d5ec
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import datetime class Migration(migrations.Migration): dependencies = [ ('historias', '0006_auto_20150413_0001'), ] operations = [ migrations.AlterField( model_name='hist...
38.5
290
0.593583
165
1,309
4.581818
0.412121
0.066138
0.099206
0.115079
0.388889
0.318783
0.246032
0.246032
0.246032
0
0
0.067814
0.245225
1,309
33
291
39.666667
0.697368
0.016043
0
0.407407
0
0
0.205288
0.017885
0
0
0
0
0
1
0
false
0
0.111111
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc6eb694558519bbe4bb770c6ebebf2c2317f744
2,160
py
Python
app_id_utils.py
woctezuma/match-steam-banners
dff1bc2ddf35a37bcdea46a220f5d0257d47e017
[ "MIT" ]
null
null
null
app_id_utils.py
woctezuma/match-steam-banners
dff1bc2ddf35a37bcdea46a220f5d0257d47e017
[ "MIT" ]
10
2021-05-01T19:57:06.000Z
2022-03-12T00:54:04.000Z
app_id_utils.py
woctezuma/match-steam-banners
dff1bc2ddf35a37bcdea46a220f5d0257d47e017
[ "MIT" ]
null
null
null
import os from pathlib import Path from data_utils import get_data_path, get_image_data_path, get_image_extension def app_id_to_image_filename(app_id, is_horizontal_banner=False): image_data_path = get_image_data_path(is_horizontal_banner) image_filename = image_data_path + str(app_id) + get_image_extension...
29.589041
115
0.747222
341
2,160
4.302053
0.255132
0.106339
0.130879
0.0818
0.316292
0.283572
0.225631
0.203136
0.155419
0.102249
0
0.001125
0.177315
2,160
72
116
30
0.824423
0.094444
0
0.097561
0
0
0.022529
0
0
0
0
0
0
1
0.170732
false
0
0.073171
0
0.414634
0.02439
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc6f65558ddc1ad343876953a1a42d3ab2c832a9
348
py
Python
upload.py
sjm446/aMAZEd
38789f9898097991b19e686fd76ef4abd5bfe94c
[ "MIT" ]
null
null
null
upload.py
sjm446/aMAZEd
38789f9898097991b19e686fd76ef4abd5bfe94c
[ "MIT" ]
null
null
null
upload.py
sjm446/aMAZEd
38789f9898097991b19e686fd76ef4abd5bfe94c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import boto3 import random import os BUCKET=os.environ.get('EXPORT_S3_BUCKET_URL') if (BUCKET != None): s3 = boto3.client('s3') with open("maze.txt", "rb") as f: s3.upload_fileobj(f, BUCKET, "maze"+str(random.randrange(100000))+".txt") else: print("EXPORT_S3_BUCKET_URL was not ...
29
81
0.692529
56
348
4.178571
0.660714
0.068376
0.119658
0.145299
0
0
0
0
0
0
0
0.044068
0.152299
348
11
82
31.636364
0.749153
0.057471
0
0
0
0
0.287462
0
0
0
0
0
0
1
0
false
0
0.3
0
0.3
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc709a454475435a2a06bba2371531a53e2d11c0
2,790
py
Python
zerver/management/commands/list_realms.py
rtzll/zulip
b831df8f7fc2f5b89ec998266901ac491d52a7fc
[ "Apache-2.0" ]
null
null
null
zerver/management/commands/list_realms.py
rtzll/zulip
b831df8f7fc2f5b89ec998266901ac491d52a7fc
[ "Apache-2.0" ]
null
null
null
zerver/management/commands/list_realms.py
rtzll/zulip
b831df8f7fc2f5b89ec998266901ac491d52a7fc
[ "Apache-2.0" ]
1
2019-10-14T23:36:14.000Z
2019-10-14T23:36:14.000Z
import sys from typing import Any from argparse import ArgumentParser from zerver.models import Realm from zerver.lib.management import ZulipBaseCommand class Command(ZulipBaseCommand): help = """List realms in the server and it's configuration settings(optional). Usage examples: ./manage.py list_realms ./man...
37.702703
99
0.557348
302
2,790
5.029801
0.39404
0.041475
0.065833
0.082291
0.269256
0.24819
0.223173
0.148782
0.148782
0.096116
0
0.005435
0.340502
2,790
73
100
38.219178
0.820109
0.083154
0
0.226415
0
0
0.155233
0.008624
0
0
0
0
0
1
0.037736
false
0
0.09434
0
0.169811
0.207547
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc72c71783ded10cb6bea92ec124528a890dca34
627
py
Python
Other/transactionlog entries since timestamp.py
DJHig/TM1py-samples
da4050380447472a02e2a107a2c5be79ac284d0a
[ "MIT" ]
1
2019-05-30T10:10:20.000Z
2019-05-30T10:10:20.000Z
Other/transactionlog entries since timestamp.py
DJHig/TM1py-samples
da4050380447472a02e2a107a2c5be79ac284d0a
[ "MIT" ]
null
null
null
Other/transactionlog entries since timestamp.py
DJHig/TM1py-samples
da4050380447472a02e2a107a2c5be79ac284d0a
[ "MIT" ]
1
2017-09-01T03:35:18.000Z
2017-09-01T03:35:18.000Z
""" Get all TM1 transactions for all cubes starting to a specific date. """ import configparser config = configparser.ConfigParser() config.read('..\config.ini') from datetime import datetime from TM1py.Services import TM1Service with TM1Service(**config['tm1srv01']) as tm1: # Timestamp for Message-Log parsin...
24.115385
81
0.716108
82
627
5.439024
0.609756
0.026906
0.09417
0
0
0
0
0
0
0
0
0.039063
0.183413
627
25
82
25.08
0.832031
0.261563
0
0
0
0
0.066372
0
0
0
0
0
0
1
0
false
0
0.3
0
0.3
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc73faf5f8cb49244c505ccd988f122eb6b59c66
6,019
py
Python
src/patteRNA/Dataset.py
AviranLab/patteRNA
88b900844016717a71b6ec8e4f2d10d8888600ce
[ "BSD-2-Clause" ]
12
2018-03-02T21:48:46.000Z
2022-01-31T02:58:59.000Z
src/patteRNA/Dataset.py
AviranLab/patteRNA
88b900844016717a71b6ec8e4f2d10d8888600ce
[ "BSD-2-Clause" ]
2
2018-07-19T01:11:11.000Z
2019-04-08T23:54:08.000Z
src/patteRNA/Dataset.py
AviranLab/patteRNA
88b900844016717a71b6ec8e4f2d10d8888600ce
[ "BSD-2-Clause" ]
5
2018-03-06T18:13:36.000Z
2021-01-08T20:54:28.000Z
import logging import numpy as np from scipy.stats import entropy from patteRNA.Transcript import Transcript from patteRNA import filelib logger = logging.getLogger(__name__) class Dataset: def __init__(self, fp_observations, fp_sequences=None, fp_references=None): self.fp_obs = fp_observations s...
39.339869
113
0.6104
752
6,019
4.679521
0.232713
0.061381
0.040637
0.02046
0.194089
0.153453
0.137539
0.079
0.022734
0.022734
0
0.007694
0.287423
6,019
152
114
39.598684
0.812777
0.088054
0
0.110092
0
0
0.056109
0
0
0
0
0
0
1
0.082569
false
0
0.045872
0
0.165138
0.018349
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc74cac1c4d460520f828712a631b873e6f7c8d7
3,118
py
Python
src/Simulation/developer_0/main.py
GYRY-NEU/CS7610-Experiments
3731b45c4a9cba2a1d7e44d37f28d1046a38de47
[ "MIT" ]
null
null
null
src/Simulation/developer_0/main.py
GYRY-NEU/CS7610-Experiments
3731b45c4a9cba2a1d7e44d37f28d1046a38de47
[ "MIT" ]
1
2021-12-02T20:45:02.000Z
2021-12-02T20:45:02.000Z
src/Simulation/developer_0/main.py
GYRY-NEU/Simulation
3731b45c4a9cba2a1d7e44d37f28d1046a38de47
[ "MIT" ]
null
null
null
import library import json @library.export def init(args): model = [[9.2, 0.21, 0.21], [8.2, 0.22, 0.21], [7.2, 1.21, 2.41], [1.2, 2.21, 0.29]] library.put("model", model) ROUND = 0 library.put("ROUND", ROUND) alpha = 0.2 library.put("alpha", alpha) @libr...
29.695238
109
0.645606
407
3,118
4.896806
0.341523
0.044155
0.032112
0.036126
0.147516
0.130958
0.130958
0.130958
0.130958
0.082288
0
0.021524
0.254971
3,118
104
110
29.980769
0.836418
0.295382
0
0.2
0
0
0.036761
0
0
0
0
0
0.036364
1
0.090909
false
0
0.036364
0.036364
0.218182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc78a988ef549d86a9021df34f1480ea70a43721
11,516
py
Python
submissions/Chouard/mygames.py
dysomni/aima-python
c67104e50007ec5ac2a9aa37f0cb972cb6315528
[ "MIT" ]
null
null
null
submissions/Chouard/mygames.py
dysomni/aima-python
c67104e50007ec5ac2a9aa37f0cb972cb6315528
[ "MIT" ]
null
null
null
submissions/Chouard/mygames.py
dysomni/aima-python
c67104e50007ec5ac2a9aa37f0cb972cb6315528
[ "MIT" ]
1
2018-08-23T19:27:23.000Z
2018-08-23T19:27:23.000Z
from games import Game from math import nan, isnan from queue import PriorityQueue from copy import deepcopy from utils import isnumber from grading.util import print_table class GameState: def __init__(self, to_move, position, board, label=None): self.to_move = to_move self.position = position ...
27.951456
133
0.500174
1,414
11,516
4.008487
0.123762
0.028582
0.009527
0.011997
0.572689
0.514467
0.430487
0.379323
0.357269
0.330452
0
0.01817
0.311827
11,516
411
134
28.019465
0.697035
0.046631
0
0.403125
0
0
0.08773
0
0
0
0
0
0.003125
1
0.0875
false
0
0.01875
0.00625
0.209375
0.021875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc798568d1c4c7d74cc7db30deace979155e8ddb
4,797
py
Python
discordbot/stocks/options/opt_chain.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
1
2022-02-18T04:02:52.000Z
2022-02-18T04:02:52.000Z
discordbot/stocks/options/opt_chain.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
discordbot/stocks/options/opt_chain.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
import os import df2img import disnake import numpy as np import pandas as pd from menus.menu import Menu from PIL import Image import discordbot.config_discordbot as cfg from discordbot.config_discordbot import gst_imgur, logger from discordbot.helpers import autocrop_image from gamestonk_terminal.stocks.options imp...
29.429448
94
0.518449
557
4,797
4.310592
0.332136
0.026239
0.019992
0.012495
0.164515
0.120367
0.069971
0.049979
0.049979
0
0
0.02055
0.371065
4,797
162
95
29.611111
0.774942
0.019179
0
0.090226
0
0
0.09085
0
0
0
0
0
0
1
0
false
0
0.082707
0
0.082707
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc7a203231a6818121284acfef4c18f0b9192863
2,312
py
Python
scripts/get_lenderprofit.py
xujiahuayz/premfin
0e90d876ef7c9ef4f3da7d4842b8ec5ae9ac7e68
[ "MIT" ]
4
2021-05-03T16:03:24.000Z
2022-02-17T16:08:49.000Z
scripts/get_lenderprofit.py
xujiahuayz/premfin
0e90d876ef7c9ef4f3da7d4842b8ec5ae9ac7e68
[ "MIT" ]
null
null
null
scripts/get_lenderprofit.py
xujiahuayz/premfin
0e90d876ef7c9ef4f3da7d4842b8ec5ae9ac7e68
[ "MIT" ]
1
2021-06-30T11:27:56.000Z
2021-06-30T11:27:56.000Z
#%% import packages import numpy as np import pandas as pd import multiprocessing from time import time import json from premiumFinance.constants import ( MORTALITY_TABLE_CLEANED_PATH, PROCESSED_PROFITABILITY_PATH, ) from premiumFinance.financing import calculate_lender_profit, yield_curve mortality_experien...
26.574713
78
0.675606
272
2,312
5.404412
0.356618
0.055102
0.046939
0.034014
0.068027
0.068027
0.068027
0.068027
0.068027
0.068027
0
0.012415
0.233564
2,312
86
79
26.883721
0.817156
0.020761
0
0.029412
0
0
0.073419
0
0
0
0
0
0
1
0.044118
false
0
0.102941
0
0.191176
0.014706
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc7acbb33a6b536b7d8fb8f0b3208c55dac034b1
5,700
py
Python
dashboard/dashboard/common/layered_cache.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
null
null
null
dashboard/dashboard/common/layered_cache.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
1
2022-01-12T14:28:55.000Z
2022-01-12T14:28:55.000Z
dashboard/dashboard/common/layered_cache.py
atuchin-m/catapult
108ea3e2ec108e68216b1250a3d79cc642600294
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Caches processed query results in memcache and datastore. Memcache is not very reliable for the perf dashboard. Prometheus team explained that memcache is...
35.403727
80
0.759649
801
5,700
5.293383
0.318352
0.031132
0.023585
0.032075
0.289387
0.256368
0.228302
0.174057
0.174057
0.156132
0
0.002119
0.172105
5,700
160
81
35.625
0.896376
0.47193
0
0.216216
0
0
0.023328
0
0
0
0
0
0
1
0.121622
false
0
0.162162
0.013514
0.432432
0.013514
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc7af78333f9477d4091f8e1379313d34cf45c32
2,241
py
Python
hypergbm/tests/cuml_/run_experiment_cuml.py
BigAndSweet/HyperGBM
f3bc4e0d877b82a264d35158f9bc974f43a2a5ee
[ "Apache-2.0" ]
null
null
null
hypergbm/tests/cuml_/run_experiment_cuml.py
BigAndSweet/HyperGBM
f3bc4e0d877b82a264d35158f9bc974f43a2a5ee
[ "Apache-2.0" ]
null
null
null
hypergbm/tests/cuml_/run_experiment_cuml.py
BigAndSweet/HyperGBM
f3bc4e0d877b82a264d35158f9bc974f43a2a5ee
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- """ """ import cudf from hypergbm import make_experiment from hypernets.tabular import get_tool_box from hypernets.tabular.datasets import dsutils def main(target='y', dtype=None, max_trials=3, drift_detection=False, clear_cache=True, **kwargs): tb = get_tool_box(cudf.DataFrame) asse...
35.571429
109
0.630076
305
2,241
4.386885
0.363934
0.053812
0.035874
0.044843
0.113602
0.052317
0.052317
0.052317
0
0
0
0.016037
0.220884
2,241
62
110
36.145161
0.750286
0.171798
0
0
0
0
0.120521
0
0
0
0
0
0.05
1
0.025
false
0
0.1
0
0.15
0.15
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc7dad2207dc0af9eee6f35c716072b33850e1f6
252
py
Python
Inserter.py
DarthSpector/Poster-Adder
97a86338987dd8cbcdf56414f53932c0370dcfc2
[ "MIT" ]
null
null
null
Inserter.py
DarthSpector/Poster-Adder
97a86338987dd8cbcdf56414f53932c0370dcfc2
[ "MIT" ]
null
null
null
Inserter.py
DarthSpector/Poster-Adder
97a86338987dd8cbcdf56414f53932c0370dcfc2
[ "MIT" ]
null
null
null
def pictureInserter(og,address,list): j=0 for i in og: file1 = open(address+'/'+i, "a") x="\ncover::https://image.tmdb.org/t/p/original/"+list[j] file1.writelines(x) file1.close() j=j+1
25.2
66
0.503968
35
252
3.628571
0.714286
0.07874
0
0
0
0
0
0
0
0
0
0.02924
0.321429
252
10
67
25.2
0.71345
0
0
0
0
0
0.192623
0
0
0
0
0
0
1
0.125
false
0
0
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
fc80bac77478aab3a7595a594bb0b4822d3d20bb
8,746
py
Python
sm4.py
ZelKnow/sm4
2bb232f46a5033b2d89ce097e004e53eb13d90d8
[ "MIT" ]
null
null
null
sm4.py
ZelKnow/sm4
2bb232f46a5033b2d89ce097e004e53eb13d90d8
[ "MIT" ]
null
null
null
sm4.py
ZelKnow/sm4
2bb232f46a5033b2d89ce097e004e53eb13d90d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ @File : sm4.py @Description : sm4加密算法的实现 @Date : 2021/10/28 15:59:51 @Author : ZelKnow @Github : https://github.com/ZelKnow """ __author__ = "ZelKnow" from argparse import ArgumentParser, ArgumentError from binascii import hexlify, u...
27.677215
81
0.511091
1,078
8,746
4.010204
0.20872
0.018506
0.016655
0.017812
0.293084
0.25746
0.228314
0.215128
0.188526
0.188526
0
0.02364
0.356735
8,746
315
82
27.765079
0.744756
0.1882
0
0.175676
0
0
0.040603
0
0
0
0.003172
0
0
1
0.108108
false
0.013514
0.040541
0
0.25
0.02027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc80de56a04c7ef4be7293dbeb997c760a19a788
1,750
py
Python
sendotp/sendotp.py
saadmk11/sendotp-python
b0cd5c3da969d00a753d9614c5bea0e2978859c9
[ "MIT" ]
5
2017-05-15T07:21:29.000Z
2022-03-02T01:01:47.000Z
sendotp/sendotp.py
saadmk11/sendotp-python
b0cd5c3da969d00a753d9614c5bea0e2978859c9
[ "MIT" ]
2
2017-05-15T07:57:36.000Z
2021-09-23T06:22:34.000Z
sendotp/sendotp.py
saadmk11/sendotp-python
b0cd5c3da969d00a753d9614c5bea0e2978859c9
[ "MIT" ]
10
2017-05-29T06:53:42.000Z
2020-05-22T10:29:00.000Z
import json import requests from random import randint class sendotp: def __init__(self, key, msg): self.baseUrl = "http://control.msg91.com" self.authkey = key try: msg except NameError: self.msg = "Your otp is {{otp}}. Please do not share it with anybod...
26.515152
81
0.552
173
1,750
5.554913
0.393064
0.045786
0.05307
0.074922
0.194589
0.140479
0.095734
0
0
0
0
0.008562
0.332571
1,750
65
82
26.923077
0.814212
0.025143
0
0.211538
0
0
0.121479
0
0
0
0
0
0
1
0.134615
false
0
0.057692
0.019231
0.307692
0.096154
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc8179bb642e9880741040dd5588b31584a47da9
528
py
Python
leetcode/1021-remove-outermost-parentheses.py
tjeubaoit/algorithm
a1f2a30e0f736cc3d8b45ed845f724b9a4ed2e9a
[ "MIT" ]
null
null
null
leetcode/1021-remove-outermost-parentheses.py
tjeubaoit/algorithm
a1f2a30e0f736cc3d8b45ed845f724b9a4ed2e9a
[ "MIT" ]
null
null
null
leetcode/1021-remove-outermost-parentheses.py
tjeubaoit/algorithm
a1f2a30e0f736cc3d8b45ed845f724b9a4ed2e9a
[ "MIT" ]
null
null
null
class Solution: def removeOuterParentheses(self, s: str) -> str: ans = [] ct = 0 for ch in s: if ch == '(': ct += 1 if ct != 1: ans.append(ch) else: ct -= 1 if ct != 0: ...
22.956522
52
0.350379
49
528
3.612245
0.469388
0.050847
0.056497
0.079096
0
0
0
0
0
0
0
0.017731
0.465909
528
22
53
24
0.609929
0.077652
0
0.111111
0
0
0.02686
0
0
0
0
0
0
1
0.055556
false
0
0
0
0.166667
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc821cb035c84e746a53eb83ce1e63b3b5c31ae6
9,911
py
Python
js2py/evaljs.py
inprod/Js2Py
0af8cb100b7840e23358d220c685507163f2344e
[ "MIT" ]
null
null
null
js2py/evaljs.py
inprod/Js2Py
0af8cb100b7840e23358d220c685507163f2344e
[ "MIT" ]
null
null
null
js2py/evaljs.py
inprod/Js2Py
0af8cb100b7840e23358d220c685507163f2344e
[ "MIT" ]
null
null
null
# coding=utf-8 from .translators import translate_js, DEFAULT_HEADER from .es6 import js6_to_js5 import sys import time import json import six import os import hashlib import codecs __all__ = [ 'EvalJs', 'translate_js', 'import_js', 'eval_js', 'translate_file', 'eval_js6', 'translate_js6', 'run_file', 'disable...
34.058419
117
0.613258
1,289
9,911
4.550039
0.250582
0.01023
0.01705
0.01023
0.205968
0.188235
0.136573
0.121398
0.10503
0.069565
0
0.008329
0.285239
9,911
290
118
34.175862
0.819593
0.341641
0
0.169811
0
0
0.086289
0
0
0
0
0
0
1
0.144654
false
0.006289
0.113208
0.031447
0.36478
0.006289
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc836898d52446a26166934c5d0c314e5b3ac86f
24,883
py
Python
tools/verity_utils.py
FabriSC/Alioth-SC
bbe9723401b351c2a34b09a30978373d456d20a2
[ "MIT" ]
3
2022-03-16T12:31:10.000Z
2022-03-23T04:20:20.000Z
bin/verity_utils.py
affggh/NH4RomTool
84b06f9cc5f268c14c7af25e91c8b242188c70f7
[ "Apache-2.0" ]
null
null
null
bin/verity_utils.py
affggh/NH4RomTool
84b06f9cc5f268c14c7af25e91c8b242188c70f7
[ "Apache-2.0" ]
1
2022-03-30T04:47:35.000Z
2022-03-30T04:47:35.000Z
#!/usr/bin/env python # # Copyright (C) 2018 The Android Open Source Project # # 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 req...
34.704324
80
0.710405
3,183
24,883
5.326107
0.138863
0.062113
0.01805
0.009556
0.356043
0.251106
0.190114
0.155843
0.133605
0.121041
0
0.006529
0.206004
24,883
716
81
34.752793
0.851546
0.257324
0
0.260766
0
0
0.092269
0.012794
0
0
0.000554
0
0.0311
1
0.095694
false
0.002392
0.019139
0
0.186603
0.002392
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc840d0dac6246e96ea6db4d9f0daf705ae65cf7
4,091
py
Python
orgviz/dones.py
tkf/orgviz
81a436265daa1fb8294a0186f50df76d9599ae38
[ "MIT" ]
8
2015-02-04T23:03:36.000Z
2021-05-02T10:56:24.000Z
orgviz/dones.py
tkf/orgviz
81a436265daa1fb8294a0186f50df76d9599ae38
[ "MIT" ]
null
null
null
orgviz/dones.py
tkf/orgviz
81a436265daa1fb8294a0186f50df76d9599ae38
[ "MIT" ]
3
2018-04-23T08:18:13.000Z
2019-10-12T17:32:54.000Z
#!/usr/bin/env python """org archive to html table converter""" import os import datetime import itertools from .utils.date import minutestr, total_minutes def rootname_from_archive_olpath(node): """ Find rootname from ARCHIVE_OLPATH property. Return None if not found. """ olpath = node.get_prop...
29.014184
75
0.60792
508
4,091
4.779528
0.281496
0.019769
0.031301
0.041186
0.107496
0.060956
0.014827
0
0
0
0
0.006259
0.296993
4,091
140
76
29.221429
0.837969
0.199707
0
0.022222
0
0
0.02929
0
0
0
0
0
0
1
0.077778
false
0
0.044444
0.011111
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
fc884ea5bc9215fa52b9d78882591e5166747f7f
2,927
py
Python
tests/python/unittest/test_lang_tag.py
ravikumarvc/incubator-tvm
9826947ffce0ed40e9d47a0db2abb033e394279e
[ "Apache-2.0" ]
3
2021-02-23T22:06:01.000Z
2021-09-30T09:59:17.000Z
tests/python/unittest/test_lang_tag.py
ravikumarvc/incubator-tvm
9826947ffce0ed40e9d47a0db2abb033e394279e
[ "Apache-2.0" ]
4
2021-03-30T11:59:59.000Z
2022-03-12T00:40:23.000Z
tests/python/unittest/test_lang_tag.py
ravikumarvc/incubator-tvm
9826947ffce0ed40e9d47a0db2abb033e394279e
[ "Apache-2.0" ]
3
2021-07-20T07:40:15.000Z
2021-08-03T08:39:17.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
31.138298
80
0.60164
487
2,927
3.531828
0.287474
0.061047
0.087209
0.032558
0.261628
0.169767
0.146512
0.146512
0.146512
0.146512
0
0.010743
0.236761
2,927
93
81
31.473118
0.759176
0.271268
0
0.301587
0
0
0.043026
0
0
0
0
0
0.15873
1
0.063492
false
0.015873
0.031746
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc88c81b50b3710bc62276602ff44a775a8cb6eb
11,840
py
Python
house_code/tutorials_altered/3D_positioning_and_orientation.py
mukobi/Pozyx-Gabe
a8b444c2013b1df5043cd25106b72562409b5130
[ "MIT" ]
1
2020-06-12T07:21:56.000Z
2020-06-12T07:21:56.000Z
house_code/tutorials_altered/3D_positioning_and_orientation.py
mukobi/Pozyx-Gabe
a8b444c2013b1df5043cd25106b72562409b5130
[ "MIT" ]
null
null
null
house_code/tutorials_altered/3D_positioning_and_orientation.py
mukobi/Pozyx-Gabe
a8b444c2013b1df5043cd25106b72562409b5130
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ The pozyx ranging demo (c) Pozyx Labs please check out https://www.pozyx.io/Documentation/Tutorials/getting_started/Python This demo requires one (or two) pozyx shields. It demonstrates the 3D orientation and the functionality to remotely read register data from a pozyx device. Connect one of...
44.179104
164
0.661064
1,420
11,840
5.302817
0.233803
0.035857
0.022311
0.021248
0.193891
0.145153
0.106242
0.084462
0.056043
0.056043
0
0.016968
0.253378
11,840
267
165
44.344569
0.834842
0.182348
0
0.129032
0
0
0.05952
0
0
0
0.004863
0
0
1
0.053763
false
0.010753
0.053763
0
0.139785
0.129032
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0