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
8b8fdfbcf9706a09172ee59fba63e07828a65599
2,492
py
Python
tests/array_creation.py
manopapad/legate.numpy
896f4fd9b32db445da6cdabf7b78d523fca96936
[ "Apache-2.0" ]
null
null
null
tests/array_creation.py
manopapad/legate.numpy
896f4fd9b32db445da6cdabf7b78d523fca96936
[ "Apache-2.0" ]
null
null
null
tests/array_creation.py
manopapad/legate.numpy
896f4fd9b32db445da6cdabf7b78d523fca96936
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 NVIDIA Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
25.428571
74
0.620385
428
2,492
3.537383
0.261682
0.055482
0.094452
0.130779
0.2893
0.176354
0.119551
0.119551
0.119551
0.119551
0
0.034682
0.236356
2,492
97
75
25.690722
0.760904
0.28451
0
0.135593
0
0
0.004535
0
0
0
0
0
0.440678
1
0.016949
false
0
0.033898
0
0.067797
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
8b90aeb5aec1b01857b6aa8b3d9934d4cfdd1543
29,250
py
Python
libs/python/qumranica/models/catalogue_match_dto.py
Scripta-Qumranica-Electronica/SQE_API_Connectors
aaa9b9eb8709d4257c32ea57321a179c6b1e041a
[ "MIT" ]
null
null
null
libs/python/qumranica/models/catalogue_match_dto.py
Scripta-Qumranica-Electronica/SQE_API_Connectors
aaa9b9eb8709d4257c32ea57321a179c6b1e041a
[ "MIT" ]
null
null
null
libs/python/qumranica/models/catalogue_match_dto.py
Scripta-Qumranica-Electronica/SQE_API_Connectors
aaa9b9eb8709d4257c32ea57321a179c6b1e041a
[ "MIT" ]
null
null
null
# coding: utf-8 """ SQE API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from qumra...
32.79148
653
0.645675
3,349
29,250
5.407286
0.050761
0.061406
0.15241
0.134187
0.659893
0.558562
0.523828
0.420233
0.316031
0.225026
0
0.023755
0.270325
29,250
891
654
32.828283
0.82472
0.336068
0
0.086514
1
0
0.141755
0.009806
0
0
0
0
0
1
0.167939
false
0
0.010178
0
0.279898
0.005089
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8b914a0a6371ff8952db67b7eee682b5c44c059b
569
py
Python
nengo_ssp/hrr_algebra.py
nsdumont/nengo_ssp
9530a4618e213fb695b52887772c1309d0f07a0b
[ "MIT" ]
null
null
null
nengo_ssp/hrr_algebra.py
nsdumont/nengo_ssp
9530a4618e213fb695b52887772c1309d0f07a0b
[ "MIT" ]
null
null
null
nengo_ssp/hrr_algebra.py
nsdumont/nengo_ssp
9530a4618e213fb695b52887772c1309d0f07a0b
[ "MIT" ]
null
null
null
import numpy as np from nengo_spa.algebras.hrr_algebra import HrrAlgebra from nengo.utils.numpy import is_number class HrrAlgebra(HrrAlgebra): def fractional_bind(self, A, b): """Fractional circular convolution.""" if not is_number(b): raise ValueError("b must be a scalar.") re...
35.5625
62
0.620387
89
569
3.910112
0.460674
0.071839
0.068966
0.057471
0.137931
0.137931
0.137931
0.137931
0
0
0
0.004684
0.249561
569
16
62
35.5625
0.810304
0.056239
0
0
0
0
0.090226
0
0
0
0
0
0
1
0.153846
false
0
0.230769
0
0.615385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8b9247a613a137d9a893fcd8004929a037e3fffd
2,234
py
Python
server.py
Xinzhe-Qi/15112-Term-Project
07a4b78d23629478039667ed4c29287e5e781bf3
[ "MIT" ]
null
null
null
server.py
Xinzhe-Qi/15112-Term-Project
07a4b78d23629478039667ed4c29287e5e781bf3
[ "MIT" ]
null
null
null
server.py
Xinzhe-Qi/15112-Term-Project
07a4b78d23629478039667ed4c29287e5e781bf3
[ "MIT" ]
null
null
null
import socket from _thread import * import pickle from board import Board import time hostname = socket.gethostname() ipAddr = socket.gethostbyname(hostname) print(ipAddr) server = ipAddr port = 5556 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: s.bind((server, port)) except socket.error as e: ...
21.27619
86
0.499552
245
2,234
4.497959
0.408163
0.019056
0.029946
0.029038
0.043557
0.043557
0
0
0
0
0
0.029261
0.388093
2,234
104
87
21.480769
0.776884
0
0
0.135135
0
0
0.053812
0
0
0
0
0
0
1
0.013514
false
0
0.067568
0
0.081081
0.108108
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8b93ff57b731c6c33351b57dd2f1b5402cee9a07
72
py
Python
examples/random_article.py
yusufusta/wikiHowUnofficialAPI
e29ae96a2dcf893f5b587804b9dd37a412cdd561
[ "MIT" ]
5
2021-04-17T14:02:58.000Z
2022-03-06T02:18:16.000Z
examples/random_article.py
yusufusta/wikiHowUnofficialAPI
e29ae96a2dcf893f5b587804b9dd37a412cdd561
[ "MIT" ]
1
2021-07-09T12:28:27.000Z
2021-07-10T10:04:11.000Z
examples/random_article.py
yusufusta/wikiHowUnofficialAPI
e29ae96a2dcf893f5b587804b9dd37a412cdd561
[ "MIT" ]
4
2021-02-02T14:23:58.000Z
2021-11-15T04:38:10.000Z
import wikihowunofficialapi as wha ra = wha.random_article() print(ra)
14.4
34
0.791667
10
72
5.6
0.8
0
0
0
0
0
0
0
0
0
0
0
0.125
72
4
35
18
0.888889
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
8b9488221b16161dd9b114f9406bbcd8771818fb
11,341
py
Python
nilmtk/simulate/gaussianstatemachines.py
BaluJr/energytk
e9b06bcb43a40010ccc40a534a7067ee520fb3a7
[ "Apache-2.0" ]
3
2018-11-09T16:13:32.000Z
2019-11-10T20:10:10.000Z
nilmtk/simulate/gaussianstatemachines.py
BaluJr/energytk
e9b06bcb43a40010ccc40a534a7067ee520fb3a7
[ "Apache-2.0" ]
null
null
null
nilmtk/simulate/gaussianstatemachines.py
BaluJr/energytk
e9b06bcb43a40010ccc40a534a7067ee520fb3a7
[ "Apache-2.0" ]
1
2018-10-24T10:28:52.000Z
2018-10-24T10:28:52.000Z
import numpy as np import pandas as pd from nilmtk import TimeFrame import datetime import matplotlib.pyplot as plt # transients['active transition'].cumsum().resample('2s', how='ffill').plot() class GaussianStateMachines(object): """ This class is a basic simulator, which creates sample loads by randomizing...
49.308696
184
0.571907
1,276
11,341
4.974922
0.30721
0.032766
0.009452
0.003308
0.137051
0.113264
0.101607
0.08995
0.071676
0.071676
0
0.045798
0.310731
11,341
229
185
49.524017
0.766279
0.288687
0
0.088
0
0
0.125825
0.005545
0
0
0
0.0131
0
1
0.024
false
0
0.04
0
0.08
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
8b95a94d3b25a23a56d3d3d661b084a44e828fab
543
py
Python
my_gallery/migrations/0006_photos_image.py
Abdihakim-Muhumed/gallery
bfdb58466503bedda6ac4b686afb42b69c055f0c
[ "Unlicense" ]
null
null
null
my_gallery/migrations/0006_photos_image.py
Abdihakim-Muhumed/gallery
bfdb58466503bedda6ac4b686afb42b69c055f0c
[ "Unlicense" ]
null
null
null
my_gallery/migrations/0006_photos_image.py
Abdihakim-Muhumed/gallery
bfdb58466503bedda6ac4b686afb42b69c055f0c
[ "Unlicense" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-14 07:15 import cloudinary.models from django.db import migrations import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('my_gallery', '0005_auto_20201013_0828'), ] operations = [ migrations.AddField( mod...
24.681818
125
0.655617
61
543
5.704918
0.737705
0.091954
0.109195
0
0
0
0
0
0
0
0
0.082126
0.237569
543
21
126
25.857143
0.758454
0.082873
0
0
1
0
0.09879
0.046371
0
0
0
0
0
1
0
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8b98b8d35fd76526fa88fe1c8a30101c9a8baac3
9,713
py
Python
bot/ts/ThreadSafeTSConnection.py
Asnanon/ts-gw2-verifyBot
4da70450bc53631e61a42d18df36f5aef710cdbe
[ "MIT" ]
null
null
null
bot/ts/ThreadSafeTSConnection.py
Asnanon/ts-gw2-verifyBot
4da70450bc53631e61a42d18df36f5aef710cdbe
[ "MIT" ]
null
null
null
bot/ts/ThreadSafeTSConnection.py
Asnanon/ts-gw2-verifyBot
4da70450bc53631e61a42d18df36f5aef710cdbe
[ "MIT" ]
null
null
null
import logging from threading import RLock from typing import Callable, Tuple, TypeVar import schedule import ts3 from ts3.query import TS3ServerConnection from bot.config import Config LOG = logging.getLogger(__name__) R = TypeVar('R') def default_exception_handler(ex): """ prints the trace and returns the e...
45.176744
171
0.601153
1,146
9,713
4.961606
0.268761
0.027436
0.033767
0.029898
0.179036
0.142983
0.126451
0.105698
0.083539
0.074569
0
0.006237
0.323175
9,713
214
172
45.38785
0.858686
0.29826
0
0.225564
0
0
0.128452
0.004034
0
0
0
0
0
1
0.105263
false
0.037594
0.052632
0.022556
0.24812
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8b9915ff298534b2c620ead53ddd94b9a9c59202
87
py
Python
software/reachy/io/__init__.py
pollen-robotics/reachy-2.0
1721c2d93737e576e328bfdb78376d1b0163d3d6
[ "Apache-1.1" ]
167
2018-02-07T21:42:13.000Z
2021-03-06T08:25:45.000Z
software/reachy/io/__init__.py
pollen-robotics/reachy-2.0
1721c2d93737e576e328bfdb78376d1b0163d3d6
[ "Apache-1.1" ]
39
2019-11-27T13:11:59.000Z
2021-01-12T09:33:26.000Z
software/reachy/io/__init__.py
pollen-robotics/reachy-2.0
1721c2d93737e576e328bfdb78376d1b0163d3d6
[ "Apache-1.1" ]
47
2018-05-27T02:59:28.000Z
2021-03-07T14:56:10.000Z
"""Reachy submodule responsible for low-level IO.""" from .io import IO # noqa F401
17.4
52
0.701149
13
87
4.692308
0.846154
0
0
0
0
0
0
0
0
0
0
0.042254
0.183908
87
4
53
21.75
0.816901
0.655172
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
8ba05404268d52ee6b9dcf341a6f596fdbe8cb19
453
py
Python
test/unit/test_wrapper.py
Bowowzahoya/cordis_search
8766717fdd785b2768785b9147e63cac62dfbd43
[ "MIT" ]
null
null
null
test/unit/test_wrapper.py
Bowowzahoya/cordis_search
8766717fdd785b2768785b9147e63cac62dfbd43
[ "MIT" ]
null
null
null
test/unit/test_wrapper.py
Bowowzahoya/cordis_search
8766717fdd785b2768785b9147e63cac62dfbd43
[ "MIT" ]
null
null
null
import pandas as pd from context import * from cordis_search import wrapper as wr TEST_PROJECTS_FILE = pd.read_csv(RESOURCES_FOLDER+"fp7_test_projects.csv", sep=";") print(TEST_PROJECTS_FILE) def test_search(): query = "multiculturalism" selected_projects = wr.search(TEST_PROJECTS_FILE, query) assert se...
25.166667
83
0.766004
64
453
5.125
0.5
0.182927
0.195122
0
0
0
0
0
0
0
0
0.032911
0.128035
453
18
84
25.166667
0.797468
0
0
0
0
0
0.0837
0.046256
0
0
0
0
0.083333
1
0.166667
false
0
0.25
0
0.416667
0.083333
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8ba0eaca96c9b2d167fd14d08ba774e477aea1cb
1,067
py
Python
dpsniper/mechanisms/noisy_hist.py
barryZZJ/dp-sniper
71a3fc06f3fc319b023bde9aad8f05b8c5a47a80
[ "MIT" ]
13
2021-03-30T15:39:35.000Z
2022-02-21T08:30:45.000Z
dpsniper/mechanisms/noisy_hist.py
barryZZJ/dp-sniper
71a3fc06f3fc319b023bde9aad8f05b8c5a47a80
[ "MIT" ]
null
null
null
dpsniper/mechanisms/noisy_hist.py
barryZZJ/dp-sniper
71a3fc06f3fc319b023bde9aad8f05b8c5a47a80
[ "MIT" ]
4
2021-06-30T08:37:45.000Z
2022-03-05T03:21:14.000Z
import numpy as np from dpsniper.mechanisms.abstract import Mechanism class NoisyHist1(Mechanism): """ Alg. 9 from: Zeyu Ding, YuxinWang, GuanhongWang, Danfeng Zhang, and Daniel Kifer. 2018. Detecting Violations of Differential Privacy. CCS 2018. """ def __init__(self, eps: float = 0....
26.02439
82
0.597938
153
1,067
4.078431
0.385621
0.067308
0.038462
0.067308
0.810897
0.810897
0.810897
0.810897
0.724359
0.724359
0
0.042384
0.292409
1,067
40
83
26.675
0.784106
0.338332
0
0.666667
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0
0.555556
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
7
8ba24d39fccf745cf193a9313e6f0347c33e72ba
1,122
py
Python
workalendar/europe/georgia.py
macharmi/workalendar
4f8644484d6ba56c66e4bb82c377aa19eccfc0dc
[ "MIT" ]
null
null
null
workalendar/europe/georgia.py
macharmi/workalendar
4f8644484d6ba56c66e4bb82c377aa19eccfc0dc
[ "MIT" ]
null
null
null
workalendar/europe/georgia.py
macharmi/workalendar
4f8644484d6ba56c66e4bb82c377aa19eccfc0dc
[ "MIT" ]
null
null
null
from ..core import OrthodoxCalendar from ..registry_tools import iso_register @iso_register('GE') class Georgia(OrthodoxCalendar): 'Country of Georgia' "Sources: " "https://en.wikipedia.org/wiki/Public_holidays_in_Georgia_(country)" "https://www.officeholidays.com/countries/georgia/2021" include...
30.324324
72
0.646168
140
1,122
4.992857
0.564286
0.078684
0.072961
0
0
0
0
0
0
0
0
0.039581
0.234403
1,122
36
73
31.166667
0.774156
0.016043
0
0
0
0
0.331551
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.433333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8ba29d9fb01d60102507bf5db6c09210143677fa
3,471
py
Python
release/util/splunkbase_releaser.py
xynazog/amp4e_splunk_events_input
a5bb57cf82ca3e96fa9a444e5e5e9789eb16b70b
[ "BSD-2-Clause" ]
9
2017-07-31T16:13:51.000Z
2021-01-06T15:02:36.000Z
release/util/splunkbase_releaser.py
xynazog/amp4e_splunk_events_input
a5bb57cf82ca3e96fa9a444e5e5e9789eb16b70b
[ "BSD-2-Clause" ]
51
2017-10-24T17:25:44.000Z
2022-03-31T16:47:58.000Z
release/util/splunkbase_releaser.py
xynazog/amp4e_splunk_events_input
a5bb57cf82ca3e96fa9a444e5e5e9789eb16b70b
[ "BSD-2-Clause" ]
12
2017-08-01T08:59:39.000Z
2021-02-24T21:10:46.000Z
import os from distutils.dir_util import copy_tree from invoke import task, run import shutil class SplunkbaseReleaser: DIRS_TO_ARCHIVE = ['appserver', 'bin', 'certs', 'default', 'metadata', 'README', 'static'] APP_NAME = 'amp4e_events_input' PATH_TO_PYTHON_LIBS = '/opt/splunk/lib/python3.7/site-packages' ...
34.71
109
0.645923
486
3,471
4.277778
0.228395
0.066378
0.064935
0.074074
0.285233
0.224627
0.138047
0.103896
0.05291
0.036556
0
0.004131
0.232786
3,471
99
110
35.060606
0.776568
0
0
0.1
0
0
0.106598
0.017862
0
0
0
0
0
1
0.225
false
0
0.05
0.075
0.45
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8ba46c9ce685361335be0d77dfae9a2dd018991f
2,502
py
Python
sorts.py
zhangxl97/leetcode
aa94228eba86d761ce5c9b6bfb8b2015c1629074
[ "MIT" ]
1
2020-09-12T10:35:22.000Z
2020-09-12T10:35:22.000Z
sorts.py
zhangxl97/leetcode
aa94228eba86d761ce5c9b6bfb8b2015c1629074
[ "MIT" ]
null
null
null
sorts.py
zhangxl97/leetcode
aa94228eba86d761ce5c9b6bfb8b2015c1629074
[ "MIT" ]
null
null
null
from typing import List class sort: def quick(self, nums:List[int]) -> List[int]: if len(nums) >= 2: base = nums[-1] # 选取基准值,可以为任何值 left, right = [], [] nums = nums[:-1] for num in nums: if num >= base: # 大于等于基准值的数存于right ...
26.617021
68
0.406475
293
2,502
3.416382
0.228669
0.02997
0.026973
0.01998
0.06993
0
0
0
0
0
0
0.022642
0.470424
2,502
93
69
26.903226
0.73283
0.120703
0
0.179104
0
0
0.003665
0
0
0
0
0
0
1
0.074627
false
0
0.014925
0
0.179104
0.044776
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8ba6b11d7fb6854358fc0d437c22f1ff827b55c0
6,622
py
Python
energy_consumption_lstm/data/model.py
DiarmuidKelly/predictors
9087302ab3cc54463807b0777f341b575a8fcc90
[ "MIT" ]
null
null
null
energy_consumption_lstm/data/model.py
DiarmuidKelly/predictors
9087302ab3cc54463807b0777f341b575a8fcc90
[ "MIT" ]
null
null
null
energy_consumption_lstm/data/model.py
DiarmuidKelly/predictors
9087302ab3cc54463807b0777f341b575a8fcc90
[ "MIT" ]
null
null
null
import datetime as dt import numpy as np def calculate_ranges(dataset): arr = np.array(dataset) mean = np.mean(arr, axis=0) min = np.min(arr, axis=0) max = np.max(arr, axis=0) ranges = np.array((min, mean, max)).T return ranges class Record: def __init__(self): self.time_date =...
43.854305
123
0.643914
999
6,622
3.957958
0.103103
0.044006
0.056651
0.05564
0.495448
0.363935
0.221548
0.213202
0.161609
0.143146
0
0.034631
0.228179
6,622
150
124
44.146667
0.738994
0.064029
0
0.171171
0
0
0.03315
0
0
0
0
0
0
1
0.162162
false
0
0.018018
0.027027
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8ba7da6d41b49d8a498bec0f19c0c437b815e955
558
py
Python
RecoTracker/CkfPattern/python/CkfTrackCandidatesNoOverlaps_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
RecoTracker/CkfPattern/python/CkfTrackCandidatesNoOverlaps_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
RecoTracker/CkfPattern/python/CkfTrackCandidatesNoOverlaps_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # TrackerTrajectoryBuilders from RecoTracker.CkfPattern.CkfTrajectoryBuilder_cff import * # TrajectoryCleaning from TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi import * # navigation school from RecoTracker.TkNavigation.NavigationSchoolESProducer_cff impor...
39.857143
80
0.844086
45
558
10.355556
0.666667
0.096567
0.107296
0
0
0
0
0
0
0
0
0
0.084229
558
13
81
42.923077
0.911937
0.164875
0
0
0
0
0.044643
0
0
0
0
0
0
1
0
false
0
0.625
0
0.625
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
8ba816e0011648c0f031c8c0072d0e07ef644345
3,639
py
Python
python ex12.py
IMDCGP105-1819/portfolio-s184286
e5485f640f341090823bbcaabe287376a048b2c4
[ "MIT" ]
null
null
null
python ex12.py
IMDCGP105-1819/portfolio-s184286
e5485f640f341090823bbcaabe287376a048b2c4
[ "MIT" ]
null
null
null
python ex12.py
IMDCGP105-1819/portfolio-s184286
e5485f640f341090823bbcaabe287376a048b2c4
[ "MIT" ]
null
null
null
""" Task 3 Write an application that allows you to calculate the cost of a trip. Implement a function called hotel_cost that takes one argument, nights, as input. The hotel costs £70 per night – so return a suitable value. Implement a function called plane_ticket_cost that accepts a string, city, and a float...
34.657143
183
0.687826
593
3,639
4.178752
0.252951
0.039952
0.054479
0.01937
0.464891
0.435835
0.424132
0.395077
0.319613
0.284907
0
0.035727
0.230833
3,639
104
184
34.990385
0.84423
0.52377
0
0
0
0.02381
0.327329
0
0
0
0
0
0
1
0.095238
false
0
0
0
0.095238
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
8ba86635b84461a1f0a395b2d0b3f48cfc499bf5
7,050
py
Python
segment_chars.py
indranildchandra/Automatic-Licence-Plate-Recognizer
12abcf40459f8e2d5d7491aedaed2ee3ea1eb1a7
[ "Apache-2.0" ]
1
2020-10-12T12:49:05.000Z
2020-10-12T12:49:05.000Z
segment_chars.py
indranildchandra/Automatic-Licence-Plate-Recognizer
12abcf40459f8e2d5d7491aedaed2ee3ea1eb1a7
[ "Apache-2.0" ]
null
null
null
segment_chars.py
indranildchandra/Automatic-Licence-Plate-Recognizer
12abcf40459f8e2d5d7491aedaed2ee3ea1eb1a7
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np import cv2 import os import math import pickle from matplotlib import pyplot as plt from PIL import Image from matplotlib.pyplot import imshow # %matplotlib inline def rotate_image(img): # gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) gray = img edges = cv2.Canny(gray,50,150,ap...
31.61435
141
0.699433
1,110
7,050
4.290991
0.237838
0.070544
0.054587
0.04535
0.279866
0.17258
0.141088
0.119253
0.062566
0
0
0.050253
0.158865
7,050
222
142
31.756757
0.752951
0.274326
0
0.152174
0
0
0.002374
0
0
0
0
0
0
1
0.021739
false
0
0.065217
0
0.115942
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8ba8b01b1342226dbfd45e390f34ba1e3c088e34
123
py
Python
clase1/multiplicadores.py
Munoz-Rojas-Adriana/Computacion_para_Ingenieria
4f695887966a94b6c422d100c2c4ec4a94d1e80e
[ "Apache-2.0" ]
null
null
null
clase1/multiplicadores.py
Munoz-Rojas-Adriana/Computacion_para_Ingenieria
4f695887966a94b6c422d100c2c4ec4a94d1e80e
[ "Apache-2.0" ]
null
null
null
clase1/multiplicadores.py
Munoz-Rojas-Adriana/Computacion_para_Ingenieria
4f695887966a94b6c422d100c2c4ec4a94d1e80e
[ "Apache-2.0" ]
null
null
null
multi = 0 list = (1 , 2 , 3) for i in list: multi = multi + i print (f'la multi total de 1 al 3 es {multi}')
15.375
50
0.528455
24
123
2.708333
0.666667
0
0
0
0
0
0
0
0
0
0
0.075
0.349594
123
8
50
15.375
0.7375
0
0
0
0
0
0.282258
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8ba8ed599cf94b78021c68a977f2d000df6dcd16
2,476
py
Python
aiida_jutools/__init__.py
PhilippRue/aiida-jutools
66070e7077cb454bcfd70dd3327b335499556a16
[ "MIT" ]
5
2020-12-11T13:32:09.000Z
2022-01-19T08:36:40.000Z
aiida_jutools/__init__.py
PhilippRue/aiida-jutools
66070e7077cb454bcfd70dd3327b335499556a16
[ "MIT" ]
7
2021-01-28T10:24:13.000Z
2021-08-18T13:42:47.000Z
aiida_jutools/__init__.py
PhilippRue/aiida-jutools
66070e7077cb454bcfd70dd3327b335499556a16
[ "MIT" ]
5
2020-12-07T17:13:38.000Z
2021-11-25T09:58:48.000Z
# -*- coding: utf-8 -*- # pylint: disable=unused-import ############################################################################### # Copyright (c), Forschungszentrum Jülich GmbH, IAS-1/PGI-1, Germany. # # All rights reserved. # # This file is part of t...
51.583333
117
0.586026
298
2,476
4.83557
0.503356
0.097155
0.029146
0.019431
0.030534
0.030534
0
0
0
0
0
0.003944
0.283118
2,476
47
118
52.680851
0.807887
0.784733
0
0
0
0
0.029851
0
0
0
0
0
0
1
0
false
0
0.928571
0
0.928571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
8bab05cccc2b06bc0e17af38af464fd773e79545
5,358
py
Python
beastx/__main__.py
Mrunal1911/Beast-X
b7b13b3b5db754894a830569909c4b77aa1ff19d
[ "MIT" ]
null
null
null
beastx/__main__.py
Mrunal1911/Beast-X
b7b13b3b5db754894a830569909c4b77aa1ff19d
[ "MIT" ]
null
null
null
beastx/__main__.py
Mrunal1911/Beast-X
b7b13b3b5db754894a830569909c4b77aa1ff19d
[ "MIT" ]
null
null
null
import logging from pathlib import Path from sys import argv import var import telethon.utils from telethon import TelegramClient from telethon import events,Button import os from var import Var from . import beast from telethon.tl import functions from beastx.Configs import Config from telethon.tl.functi...
28.652406
140
0.58044
635
5,358
4.833071
0.313386
0.038775
0.031932
0.037471
0.254806
0.203324
0.140762
0.102313
0.07755
0.052134
0
0.003537
0.261292
5,358
186
141
28.806452
0.759727
0.067749
0
0.324074
0
0
0.138139
0.035198
0
0
0
0
0
1
0
false
0.018519
0.212963
0
0.212963
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bac89c0e7fe595c62cbe29b2411dd910e49d2c2
859
py
Python
tests/day02/test_day02.py
SebastiaanZ/aoc-2019
e1fe4630b0f375be0b79398e07e23b9c0196efbb
[ "MIT" ]
3
2019-12-02T19:38:14.000Z
2020-01-28T00:06:09.000Z
tests/day02/test_day02.py
SebastiaanZ/aoc-2019
e1fe4630b0f375be0b79398e07e23b9c0196efbb
[ "MIT" ]
6
2020-03-24T17:58:40.000Z
2022-03-12T00:18:45.000Z
tests/day02/test_day02.py
SebastiaanZ/aoc-2019
e1fe4630b0f375be0b79398e07e23b9c0196efbb
[ "MIT" ]
null
null
null
import unittest from solutions.day02.solution import ship_computer from tests.helpers import Puzzle class DayTwoTests(unittest.TestCase): """Tests for my solutions to Day 1 of the Advent of Code 2019.""" def test_ship_computer_with_example_data(self): """Test the ship computer used for day 2 using t...
37.347826
99
0.641444
125
859
4.336
0.52
0.092251
0.04059
0
0
0
0
0
0
0
0
0.050794
0.266589
859
22
100
39.045455
0.809524
0.264261
0
0
0
0
0
0
0
0
0
0
0.076923
1
0.076923
false
0
0.230769
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bacb9d61c16b4122f25721e214182358d00a686
24,678
py
Python
ActiveSuspensions/2DOF Fuzzy Suspension.py
MarcoFerrari128/Portfolio
82cd81a4235dbd804cd13100b2304a04ca6771b5
[ "MIT" ]
null
null
null
ActiveSuspensions/2DOF Fuzzy Suspension.py
MarcoFerrari128/Portfolio
82cd81a4235dbd804cd13100b2304a04ca6771b5
[ "MIT" ]
null
null
null
ActiveSuspensions/2DOF Fuzzy Suspension.py
MarcoFerrari128/Portfolio
82cd81a4235dbd804cd13100b2304a04ca6771b5
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from scipy.integrate import ode import FLC import pyprind from numpy.linalg import eig import pandas as pd def impulse(lenght): i = 0 Impulse = [] while i < lenght: if i == 99: Impulse.append(1) else: Impulse.append...
29.73253
82
0.56678
3,041
24,678
4.54686
0.106544
0.02835
0.033847
0.039343
0.496565
0.458451
0.451508
0.450278
0.409055
0.352354
0
0.055422
0.22279
24,678
829
83
29.768396
0.665485
0.214077
0
0.400372
0
0
0.067452
0
0
0
0
0
0
1
0.020484
false
0.040968
0.013035
0
0.054004
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bae7f55a261a7c3c248850c794f2efd73be536a
950
py
Python
pywatts/modules/wrappers/dl_wrapper.py
KIT-IAI/pyWATTS
68993bb51ff272c1a98add31e2b537b63e9d0848
[ "MIT" ]
30
2020-10-04T17:32:58.000Z
2022-03-18T15:06:39.000Z
pywatts/modules/wrappers/dl_wrapper.py
KIT-IAI/pyWATTS
68993bb51ff272c1a98add31e2b537b63e9d0848
[ "MIT" ]
123
2020-10-26T14:42:12.000Z
2022-03-31T09:15:55.000Z
pywatts/modules/wrappers/dl_wrapper.py
KIT-IAI/pyWATTS
68993bb51ff272c1a98add31e2b537b63e9d0848
[ "MIT" ]
7
2020-10-21T15:13:43.000Z
2022-03-07T15:47:49.000Z
# pylint: disable=W0223 # Pylint cannot handle abstract subclasses of abstract base classes from abc import ABC import xarray as xr from pywatts.modules.wrappers.base_wrapper import BaseWrapper class DlWrapper(BaseWrapper, ABC): """ Super class for deep learning framework wrappers :param model: The de...
26.388889
80
0.656842
124
950
4.870968
0.5
0.104305
0.043046
0
0
0
0
0
0
0
0
0.005789
0.272632
950
36
81
26.388889
0.868307
0.347368
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.166667
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8baf2837359bef97c791a3fa5aa72048d1181a43
590
py
Python
examples/parallel_spectra.py
zhaonat/py-maxwell-fd3d
bfa4fb826401b98371fdd9306c5fee2e74e7e545
[ "MIT" ]
3
2022-01-21T03:53:25.000Z
2022-01-23T04:54:43.000Z
examples/parallel_spectra.py
Guowu-Mcgill/py-maxwell-fd3d
bfa4fb826401b98371fdd9306c5fee2e74e7e545
[ "MIT" ]
null
null
null
examples/parallel_spectra.py
Guowu-Mcgill/py-maxwell-fd3d
bfa4fb826401b98371fdd9306c5fee2e74e7e545
[ "MIT" ]
1
2022-01-23T04:54:47.000Z
2022-01-23T04:54:47.000Z
import os,sys Nthread = 1 os.environ["OMP_NUM_THREADS"] = str(Nthread) # export OMP_NUM_THREADS=1 os.environ["OPENBLAS_NUM_THREADS"] = str(Nthread) # export OPENBLAS_NUM_THREADS=1 os.environ["MKL_NUM_THREADS"] = str(Nthread) # export MKL_NUM_THREADS=1 os.environ["VECLIB_MAXIMUM_THREADS"] = str(Nthread) # export VECLIB_...
59
99
0.798305
88
590
5.125
0.431818
0.177384
0.110865
0.254989
0.363636
0
0
0
0
0
0
0.013158
0.098305
590
10
99
59
0.834586
0.520339
0
0
0
0
0.330909
0.08
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8bb10d5482f7eb91428767e4939740b77a7d3702
2,386
py
Python
Emotional-Recognition-Facial/create_training_classification_set.py
ductai199x/No-more-bad-days
ceb7da2d2464062ad4aea028cdfa98380661702c
[ "Apache-2.0" ]
1
2018-01-18T15:10:40.000Z
2018-01-18T15:10:40.000Z
Emotional-Recognition-Facial/create_training_classification_set.py
ductai199x/No-more-bad-days
ceb7da2d2464062ad4aea028cdfa98380661702c
[ "Apache-2.0" ]
null
null
null
Emotional-Recognition-Facial/create_training_classification_set.py
ductai199x/No-more-bad-days
ceb7da2d2464062ad4aea028cdfa98380661702c
[ "Apache-2.0" ]
null
null
null
import cv2 import glob import random import numpy as np emotions = ["neutral", "anger", "disgust", "happy", "surprise"] fishface = cv2.face.FisherFaceRecognizer_create() #Initialize fisher face classifier data = {} def get_files(emotion): #Define function to get file list, randomly shuffle it and split 80/20 traini...
33.605634
129
0.731769
327
2,386
5.217125
0.33945
0.042204
0.03517
0.045721
0.178195
0.14068
0.14068
0.098476
0
0
0
0.018765
0.151299
2,386
70
130
34.085714
0.823704
0.150461
0
0.105263
0
0
0.110119
0.011409
0
0
0
0
0
0
null
null
0
0.070175
null
null
0.087719
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8bb228a7e4380e3d2e78dff77a6e5e75257a88f3
1,109
py
Python
main.py
Zlobin/wp-updater
e10ebbb7ddd2a2398c7a660d134ce8598738fe7d
[ "MIT" ]
null
null
null
main.py
Zlobin/wp-updater
e10ebbb7ddd2a2398c7a660d134ce8598738fe7d
[ "MIT" ]
null
null
null
main.py
Zlobin/wp-updater
e10ebbb7ddd2a2398c7a660d134ce8598738fe7d
[ "MIT" ]
null
null
null
# python3 main.py import urllib.request import zipfile import os import shutil # @TODO change it # eg.: /var/www/blog OLD_WP_PATH = '' NEW_WP_PATH_TMP = '' if not (os.path.exists(OLD_WP_PATH)) or not (os.path.exists(NEW_WP_PATH_TMP)): os._exit(0) WP_URL = 'http://wordpress.org/latest.zip' EXTRACTED_NAME = 'wordpr...
27.04878
97
0.757439
199
1,109
3.984925
0.361809
0.128625
0.124842
0.06053
0.218159
0.171501
0.123581
0.070618
0
0
0
0.005045
0.106402
1,109
40
98
27.725
0.795156
0.208296
0
0
0
0
0.109195
0
0
0
0
0.025
0
1
0
false
0
0.181818
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
8bb2c815f8cb9c7313bf196f810ccfc535e6256b
435
py
Python
第4章/program/Chapter_4_compare.py
kingname/SourceCodeOfBook
ab7275108994dca564905818b678bbd2f771c18e
[ "MIT" ]
274
2018-10-01T11:07:25.000Z
2022-03-17T13:48:45.000Z
第4章/program/Chapter_4_compare.py
kingname/SourceCodeOfBook
ab7275108994dca564905818b678bbd2f771c18e
[ "MIT" ]
6
2019-02-28T14:18:21.000Z
2022-03-02T14:57:39.000Z
第4章/program/Chapter_4_compare.py
kingname/SourceCodeOfBook
ab7275108994dca564905818b678bbd2f771c18e
[ "MIT" ]
110
2018-10-16T06:08:37.000Z
2022-03-16T08:19:29.000Z
import requests import time from multiprocessing.dummy import Pool def query(url): requests.get(url) start = time.time() for i in range(100): query('https://baidu.com') end = time.time() print(f'单线程循环访问100次百度,耗时:{end - start}') start = time.time() url_list = [] for i in range(100): url_list.append('http...
18.125
40
0.682759
69
435
4.26087
0.434783
0.108844
0.088435
0.07483
0.210884
0
0
0
0
0
0
0.037736
0.147126
435
23
41
18.913043
0.754717
0
0
0.333333
0
0
0.211982
0.048387
0
0
0
0
0
1
0.055556
false
0
0.166667
0
0.222222
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bb336feea80faaae86bf909a42bb1e797a4c310
702
py
Python
hole/migrations/0008_auto_20210128_1959.py
kavinzhao/fduhole
508922cfa0558c58b95206dd8fbf51d10525fa1e
[ "Apache-2.0" ]
9
2021-04-14T12:08:38.000Z
2021-12-16T08:14:40.000Z
hole/migrations/0008_auto_20210128_1959.py
kavinzhao/fduhole
508922cfa0558c58b95206dd8fbf51d10525fa1e
[ "Apache-2.0" ]
9
2021-04-18T09:48:25.000Z
2021-11-26T07:43:22.000Z
hole/migrations/0008_auto_20210128_1959.py
kavinzhao/fduhole
508922cfa0558c58b95206dd8fbf51d10525fa1e
[ "Apache-2.0" ]
4
2021-07-15T02:10:42.000Z
2022-01-22T02:12:11.000Z
# Generated by Django 3.1.5 on 2021-01-28 11:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hole', '0007_auto_20210126_2138'), ] operations = [ migrations.RemoveField( model_name='post', name='number', ...
24.206897
73
0.566952
69
702
5.608696
0.695652
0.069767
0.067183
0.087855
0
0
0
0
0
0
0
0.065126
0.321937
702
28
74
25.071429
0.747899
0.064103
0
0.227273
1
0
0.10687
0.035115
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8bb369887e18a7fa4f7256d2ff77d3ccf9f84c6a
5,607
py
Python
nfv/nfv-vim/nfv_vim/nfvi/api/v1/_nfvi_network_api.py
SidneyAn/nfv
5f0262a5b6ea4be59f977b9c587c483cbe0e373d
[ "Apache-2.0" ]
2
2020-02-07T19:01:36.000Z
2022-02-23T01:41:46.000Z
nfv/nfv-vim/nfv_vim/nfvi/api/v1/_nfvi_network_api.py
SidneyAn/nfv
5f0262a5b6ea4be59f977b9c587c483cbe0e373d
[ "Apache-2.0" ]
1
2021-01-14T12:02:25.000Z
2021-01-14T12:02:25.000Z
nfv/nfv-vim/nfv_vim/nfvi/api/v1/_nfvi_network_api.py
SidneyAn/nfv
5f0262a5b6ea4be59f977b9c587c483cbe0e373d
[ "Apache-2.0" ]
2
2021-01-13T08:39:21.000Z
2022-02-09T00:21:55.000Z
# # Copyright (c) 2015-2016 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # import abc import six @six.add_metaclass(abc.ABCMeta) class NFVINetworkAPI(object): """ Abstract NFVI Network API Class Definition """ @abc.abstractproperty def name(self): """ Returns th...
24.809735
85
0.574817
599
5,607
5.228715
0.160267
0.092593
0.11622
0.137931
0.64719
0.618455
0.525224
0.501596
0.393678
0.223819
0
0.002727
0.345996
5,607
225
86
24.92
0.851377
0.227394
0
0.63
0
0
0
0
0
0
0
0
0
1
0.29
false
0.29
0.02
0
0.32
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
8bb4b5b36380f83dc59bb259a75e2877488cbe5c
750
py
Python
array/max_subarray.py
elenaborisova/LeetCode-Solutions
98376aab7fd150a724e316357ae5ea46988d9eac
[ "MIT" ]
null
null
null
array/max_subarray.py
elenaborisova/LeetCode-Solutions
98376aab7fd150a724e316357ae5ea46988d9eac
[ "MIT" ]
null
null
null
array/max_subarray.py
elenaborisova/LeetCode-Solutions
98376aab7fd150a724e316357ae5ea46988d9eac
[ "MIT" ]
null
null
null
# DP; Time: O(n); Space: O(1) def max_subarray(nums): for i in range(1, len(nums)): if nums[i - 1] > 0: nums[i] += nums[i - 1] return max(nums) # Time: O(n); Space: O(1) def max_subarray2(nums): max_sum = nums[0] curr_sum = nums[0] for i in range(len(nums)): if curr_s...
22.058824
57
0.52
128
750
2.890625
0.257813
0.121622
0.148649
0.12973
0.194595
0.194595
0.102703
0.102703
0
0
0
0.053846
0.306667
750
33
58
22.727273
0.657692
0.186667
0
0
0
0
0
0
0
0
0
0
0
1
0.105263
false
0
0
0
0.210526
0.157895
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bb4f4ea88058eb0410caa3dc14fb32b876055fc
4,696
py
Python
python/trezorlib/cosi.py
Kayuii/trezor-crypto
6556616681a4e2d7e18817e8692d4f6e041dee01
[ "MIT" ]
null
null
null
python/trezorlib/cosi.py
Kayuii/trezor-crypto
6556616681a4e2d7e18817e8692d4f6e041dee01
[ "MIT" ]
1
2019-02-08T00:22:42.000Z
2019-02-13T09:41:54.000Z
python/trezorlib/cosi.py
Kayuii/trezor-crypto
6556616681a4e2d7e18817e8692d4f6e041dee01
[ "MIT" ]
2
2019-02-07T23:57:09.000Z
2020-10-21T07:07:27.000Z
# This file is part of the Trezor project. # # Copyright (C) 2012-2018 SatoshiLabs and contributors # # This library is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License version 3 # as published by the Free Software Foundation. # # This library is distrib...
33.784173
105
0.70379
624
4,696
5.200321
0.376603
0.024653
0.020339
0.01171
0.0302
0.019723
0
0
0
0
0
0.070952
0.201661
4,696
138
106
34.028986
0.794612
0.380963
0
0.081081
0
0
0.028521
0
0
0
0
0
0.013514
1
0.121622
false
0
0.054054
0.027027
0.283784
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bb52f491af72661c47a685434d4940a457e1a8b
2,881
py
Python
workflow/scripts/modifyFastQC.py
StephenRicher/RNA-Flow
57890772cb95beb390990618eb02f5d6e138312b
[ "MIT" ]
null
null
null
workflow/scripts/modifyFastQC.py
StephenRicher/RNA-Flow
57890772cb95beb390990618eb02f5d6e138312b
[ "MIT" ]
null
null
null
workflow/scripts/modifyFastQC.py
StephenRicher/RNA-Flow
57890772cb95beb390990618eb02f5d6e138312b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Create new FastQC zip directory with a new sample name for multiQC.""" import os import sys import logging import zipfile import tempfile import argparse __version__ = '1.0.0' def main(zipIn, zipOut, sample, **kwargs): with tempfile.TemporaryDirectory() as tmpDir: # Create...
34.710843
94
0.637279
336
2,881
5.342262
0.404762
0.030641
0.021727
0.017827
0.095822
0
0
0
0
0
0
0.003259
0.254426
2,881
82
95
35.134146
0.832402
0.121138
0
0.127273
0
0
0.162302
0.017857
0
0
0
0
0
1
0.036364
false
0
0.109091
0
0.163636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bb63310aa365a92b778a469e0b31fbf329b889f
7,711
py
Python
v0/aia_eis_v0/circuits/circuit_pack_01.py
DreamBoatOve/aia_eis
458b4d29846669b10db4da1b3e86c0b394614ceb
[ "MIT" ]
1
2022-03-02T12:57:19.000Z
2022-03-02T12:57:19.000Z
v0/aia_eis_v0/circuits/circuit_pack_01.py
DreamBoatOve/aia_eis
458b4d29846669b10db4da1b3e86c0b394614ceb
[ "MIT" ]
null
null
null
v0/aia_eis_v0/circuits/circuit_pack_01.py
DreamBoatOve/aia_eis
458b4d29846669b10db4da1b3e86c0b394614ceb
[ "MIT" ]
null
null
null
from circuits.elements import ele_C as C from circuits.elements import ele_L as L from circuits.elements import ele_Warburg as WB from circuits.elements import ele_Q as Q """ 支惠在原始的几个电路基础上新加了很多简单的单路,之后有空再去合并 """ """ Define all the circuits used in this project Python 电路模型函数名 命名规则: ‘a’ == ‘(’; ‘b’ == ‘)’,直...
26.317406
126
0.489171
1,479
7,711
2.440162
0.139959
0.084788
0.113605
0.085342
0.561929
0.468828
0.421446
0.363536
0.319756
0.294541
0
0.164704
0.317339
7,711
293
127
26.317406
0.520897
0.155492
0
0.323944
0
0
0
0
0
0
0
0
0
1
0.309859
false
0
0.028169
0
0.647887
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8bb6d2bd0e69ae1dc3728d097c16522641fbedbf
1,155
py
Python
devlib/exception.py
BayLibre/devlib
efa0ecdfe931caebc9a7dab16bb172b96c3f92cb
[ "Apache-2.0" ]
1
2021-06-19T09:32:50.000Z
2021-06-19T09:32:50.000Z
devlib/exception.py
BayLibre/devlib
efa0ecdfe931caebc9a7dab16bb172b96c3f92cb
[ "Apache-2.0" ]
1
2016-02-08T11:27:34.000Z
2016-02-08T11:27:34.000Z
devlib/exception.py
BayLibre/devlib
efa0ecdfe931caebc9a7dab16bb172b96c3f92cb
[ "Apache-2.0" ]
3
2015-12-15T11:28:06.000Z
2016-03-04T16:36:19.000Z
# Copyright 2013-2015 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
28.170732
101
0.732468
155
1,155
5.406452
0.632258
0.071599
0.031026
0.038186
0.078759
0.078759
0.078759
0
0
0
0
0.016913
0.180952
1,155
40
102
28.875
0.868922
0.6329
0
0.3
0
0
0.072165
0
0
0
0
0
0
1
0.1
false
0.3
0.1
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
8bb84845a4e4ca234bb0e7dc0448fc8b70e6253a
843
py
Python
chill/examples/chill/testcases/lu.py
CompOpt4Apps/Artifact-DataDepSimplify
4fa1bf2bda2902fec50a54ee79ae405a554fc9f4
[ "MIT" ]
5
2019-05-20T03:35:41.000Z
2021-09-16T22:22:13.000Z
chill/examples/chill/testcases/lu.py
CompOpt4Apps/Artifact-DataDepSimplify
4fa1bf2bda2902fec50a54ee79ae405a554fc9f4
[ "MIT" ]
null
null
null
chill/examples/chill/testcases/lu.py
CompOpt4Apps/Artifact-DataDepSimplify
4fa1bf2bda2902fec50a54ee79ae405a554fc9f4
[ "MIT" ]
null
null
null
# LAPACK optimization strategy for LU factorization. from chill import * source('lu.c') procedure('lu') loop(0) TJ = 64 original() tile(1, 3, TJ, 1) split(1, 2, 'L1-L2>=2') #t2-t4>=2 permute(3, 2, [2,4,3]) # mini-LU permute(1, 2, [3,4,2]) # other than mini-LU split(1, 2, 'L2>=L1-1') # seperate MM by t4 >= t2-1 # no...
17.204082
52
0.578885
175
843
2.782857
0.331429
0.041068
0.024641
0.061602
0.065708
0
0
0
0
0
0
0.182222
0.199288
843
48
53
17.5625
0.539259
0.201661
0
0
0
0
0.045732
0
0
0
0
0
0
1
0
false
0
0.026316
0
0.026316
0.026316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bb882a476b7069df7988169620b13ea93893010
2,204
py
Python
dj_vercereg/client/vercereg_client.py
davidath/dj-vercereg
d1ae1dba21cab93c759ecf79346bc60c2d88d7a8
[ "Apache-2.0" ]
null
null
null
dj_vercereg/client/vercereg_client.py
davidath/dj-vercereg
d1ae1dba21cab93c759ecf79346bc60c2d88d7a8
[ "Apache-2.0" ]
null
null
null
dj_vercereg/client/vercereg_client.py
davidath/dj-vercereg
d1ae1dba21cab93c759ecf79346bc60c2d88d7a8
[ "Apache-2.0" ]
1
2022-03-14T13:33:19.000Z
2022-03-14T13:33:19.000Z
#!/usr/bin/env python # Copyright 2014 The University of Edinburgh # # 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 a...
32.895522
169
0.720054
302
2,204
5.125828
0.536424
0.03876
0.043928
0.05168
0.153747
0.127907
0.127907
0.046512
0.046512
0
0
0.011841
0.156987
2,204
67
170
32.895522
0.821313
0.501815
0
0
0
0
0.127442
0
0
0
0
0.014925
0
1
0.071429
false
0
0.285714
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
1
0
0
0
0
0
0
0
0
0
0
1
8bb96428aea103e57829628f8aba75da646487e4
6,803
py
Python
scripts/DailyJob/api_data_fetcher.py
SamFangshan/CZ2006CarPark
663b0370e7d2e0cbe4d0a7391656a731fc7dac52
[ "MIT" ]
2
2020-02-26T03:28:02.000Z
2020-04-25T07:03:36.000Z
scripts/DailyJob/api_data_fetcher.py
SamFangshan/CZ2006CarPark
663b0370e7d2e0cbe4d0a7391656a731fc7dac52
[ "MIT" ]
null
null
null
scripts/DailyJob/api_data_fetcher.py
SamFangshan/CZ2006CarPark
663b0370e7d2e0cbe4d0a7391656a731fc7dac52
[ "MIT" ]
null
null
null
import json import pandas as pd import numpy as np from urllib.request import Request, urlopen from onemap_converter import OneMapConverter def load_HDB_carpark(): converter = OneMapConverter('FJIANG003@e.ntu.edu.sg', 'XS4teTdcYz') # Load HDB Carpark Information url_HDB_carpark = 'https://data.gov.sg/api/...
58.646552
129
0.66456
955
6,803
4.442932
0.198953
0.134339
0.057035
0.044073
0.559981
0.496583
0.449446
0.331369
0.251473
0.204337
0
0.019367
0.187858
6,803
115
130
59.156522
0.748597
0.0538
0
0.080808
0
0.020202
0.245838
0.006846
0
0
0
0
0
1
0.010101
false
0
0.050505
0
0.070707
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bba17146d82323f502dee13164e2dcf746f9322
4,108
py
Python
tests/push/test_sse.py
cfogg/python-client
40e6891c8240e6b2acd5df538e622e9f15de43d6
[ "Apache-2.0" ]
13
2017-03-17T15:15:20.000Z
2022-03-14T22:24:10.000Z
tests/push/test_sse.py
cfogg/python-client
40e6891c8240e6b2acd5df538e622e9f15de43d6
[ "Apache-2.0" ]
81
2017-01-12T23:06:48.000Z
2022-02-21T18:20:23.000Z
tests/push/test_sse.py
cfogg/python-client
40e6891c8240e6b2acd5df538e622e9f15de43d6
[ "Apache-2.0" ]
14
2017-05-25T10:49:13.000Z
2021-12-27T16:39:20.000Z
"""SSEClient unit tests.""" import time import threading import pytest from splitio.push.sse import SSEClient, SSEEvent from tests.helpers.mockserver import SSEMockServer class SSEClientTests(object): """SSEClient test cases.""" def test_sse_client_disconnects(self): """Test correct initialization. ...
31.844961
73
0.547955
429
4,108
5.172494
0.167832
0.087877
0.081118
0.039207
0.878324
0.835962
0.835962
0.835962
0.811176
0.811176
0
0.01636
0.285784
4,108
128
74
32.09375
0.739945
0.076436
0
0.83871
0
0
0.101124
0
0
0
0
0
0.096774
1
0.096774
false
0
0.053763
0
0.16129
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
8bbca367e9908a584ebeb0ff48984d79eb8c67ba
859
py
Python
api_updater.py
jpes707/quiz-api
18af31b9cdba8927e4e7a38e0bd3623e938cf7dc
[ "MIT" ]
null
null
null
api_updater.py
jpes707/quiz-api
18af31b9cdba8927e4e7a38e0bd3623e938cf7dc
[ "MIT" ]
null
null
null
api_updater.py
jpes707/quiz-api
18af31b9cdba8927e4e7a38e0bd3623e938cf7dc
[ "MIT" ]
null
null
null
import os from mongo_config import questions_collection, client def get_relative_path(*args): return os.path.join(os.path.dirname(os.path.abspath(__file__)), *args) questions_collection.delete_many({}) # clears all questions in MongoDB question_objects = [] lines = [line[:-1] for line in open(get_relative_path(...
37.347826
99
0.733411
116
859
5.215517
0.5
0.08595
0.049587
0
0
0
0
0
0
0
0
0.008141
0.142026
859
22
100
39.045455
0.812754
0.10943
0
0
0
0
0.076216
0
0
0
0
0
0
1
0.058824
false
0
0.117647
0.058824
0.235294
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bbcec0ab14f44786258536c11d18bbc453834f6
2,429
py
Python
util.py
AndreasWieg/PC-BIGAN
0738f9bf56bd30b43eb2db9765ce9bae25ca81f6
[ "MIT" ]
null
null
null
util.py
AndreasWieg/PC-BIGAN
0738f9bf56bd30b43eb2db9765ce9bae25ca81f6
[ "MIT" ]
null
null
null
util.py
AndreasWieg/PC-BIGAN
0738f9bf56bd30b43eb2db9765ce9bae25ca81f6
[ "MIT" ]
null
null
null
import numpy as np import random from plyfile import PlyData, PlyElement import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from pyntcloud import PyntCloud import os import sys import re def shuffle_data(training_data): np.random.shuffle(training_data) return training_data def save_poin...
37.369231
107
0.691231
340
2,429
4.741176
0.285294
0.119107
0.056452
0.086849
0.407568
0.372829
0.310174
0.310174
0.254342
0.251861
0
0.009519
0.178263
2,429
64
108
37.953125
0.798096
0.02429
0
0.196429
0
0
0.190034
0.132601
0
0
0
0
0
1
0.071429
false
0
0.160714
0
0.285714
0.107143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bbd00b53513bf84f5c58a5ce90fbc7b1806da00
7,474
py
Python
seq_to_seq.py
jlibovicky/char-nmt-two-step-decoder
3fa90c38556f23568f6b88eb98e4bc2193f3b744
[ "BSD-3-Clause" ]
null
null
null
seq_to_seq.py
jlibovicky/char-nmt-two-step-decoder
3fa90c38556f23568f6b88eb98e4bc2193f3b744
[ "BSD-3-Clause" ]
null
null
null
seq_to_seq.py
jlibovicky/char-nmt-two-step-decoder
3fa90c38556f23568f6b88eb98e4bc2193f3b744
[ "BSD-3-Clause" ]
null
null
null
"""Encoder-decoder model.""" from typing import List, Tuple, Union import torch import torch.nn as nn from encoder import Encoder, VanillaEncoder from decoder import Decoder, VanillaDecoder T = torch.Tensor def compute_attention_entropy( att_matrix: T, query_mask: T) -> float: # att matrix is: batch ...
37.18408
77
0.596602
864
7,474
4.844907
0.190972
0.039417
0.014333
0.0344
0.41376
0.382704
0.323459
0.298853
0.277114
0.277114
0
0.006729
0.323923
7,474
200
78
37.37
0.82169
0.039872
0
0.320988
0
0
0.021791
0.016203
0
0
0
0
0
1
0.04321
false
0
0.030864
0
0.117284
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bbe4c37ae3a9b71342799d82ae3b600239ac59b
2,638
py
Python
src/backends/example_mongodb/database.py
rartino/python-optimade-server
84457091c7ec0db52a7e034bb6a7cd4bcbdd4e57
[ "MIT" ]
null
null
null
src/backends/example_mongodb/database.py
rartino/python-optimade-server
84457091c7ec0db52a7e034bb6a7cd4bcbdd4e57
[ "MIT" ]
null
null
null
src/backends/example_mongodb/database.py
rartino/python-optimade-server
84457091c7ec0db52a7e034bb6a7cd4bcbdd4e57
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright 2019 Rickard Armiento # # This file is part of a Python candidate reference implementation of # the optimade API [https://www.optimade.org/] # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "...
35.173333
97
0.674375
370
2,638
4.756757
0.418919
0.040909
0.051136
0.045455
0.147727
0.136364
0.136364
0.082386
0.082386
0.082386
0
0.002979
0.236543
2,638
74
98
35.648649
0.870904
0.449962
0
0.194444
0
0
0.009129
0
0
0
0
0
0
1
0.222222
false
0
0.055556
0.027778
0.444444
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8bbe4fd060a6878adde13a88356535b7bfb0e331
29,288
py
Python
tests/utils.py
Ouranosinc/cowbird
108195ca6abbd58fd75b180f6fa7d40eab0f8ea5
[ "MIT" ]
1
2021-02-04T18:56:36.000Z
2021-02-04T18:56:36.000Z
tests/utils.py
Ouranosinc/cowbird
108195ca6abbd58fd75b180f6fa7d40eab0f8ea5
[ "MIT" ]
12
2021-02-05T22:01:10.000Z
2022-03-09T14:23:10.000Z
tests/utils.py
Ouranosinc/cowbird
108195ca6abbd58fd75b180f6fa7d40eab0f8ea5
[ "MIT" ]
null
null
null
import functools import json as json_pkg # avoid conflict name with json argument employed for some function import os from distutils.version import LooseVersion from typing import TYPE_CHECKING from urllib.parse import urlparse import mock import requests import requests.exceptions from pyramid.httpexceptions import...
44.042105
120
0.651974
3,725
29,288
4.962148
0.147919
0.024995
0.008656
0.00844
0.237611
0.172041
0.126866
0.094135
0.069087
0.055886
0
0.003908
0.248703
29,288
664
121
44.108434
0.836121
0.354275
0
0.148241
0
0
0.108272
0.007167
0.002513
0
0
0
0.030151
1
0.110553
false
0.017588
0.057789
0.007538
0.298995
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bc1dc764cc3286fa9cb0c9dbac2a3360dc97788
764
py
Python
sqds/jobs/update_guilds.py
abey79/sqds
acab1d9c6d4a010fff9d8e89a5fdd9d94def7c89
[ "MIT" ]
null
null
null
sqds/jobs/update_guilds.py
abey79/sqds
acab1d9c6d4a010fff9d8e89a5fdd9d94def7c89
[ "MIT" ]
null
null
null
sqds/jobs/update_guilds.py
abey79/sqds
acab1d9c6d4a010fff9d8e89a5fdd9d94def7c89
[ "MIT" ]
null
null
null
from django.utils import timezone from django_extensions.management.jobs import BaseJob from ..models import Player, Guild def update_guild(ally_code): should_execute = False try: player = Player.objects.get(ally_code=ally_code) guild = player.guild; since_last_update = timezone.now()...
27.285714
70
0.704188
97
764
5.309278
0.484536
0.07767
0.046602
0.062136
0
0
0
0
0
0
0
0.038655
0.221204
764
27
71
28.296296
0.826891
0
0
0.1
0
0
0.064136
0
0
0
0
0
0
1
0.1
false
0
0.15
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bc3ea498abafb408b2345871e2adf30ac6a71a4
1,907
py
Python
src/saleor_app/install.py
przlada/saleor-app-framework-python
3a561c93bf586b4210e7b3c4d2db3408046a9599
[ "BSD-3-Clause" ]
20
2021-05-18T18:05:25.000Z
2022-03-02T00:39:15.000Z
src/saleor_app/install.py
przlada/saleor-app-framework-python
3a561c93bf586b4210e7b3c4d2db3408046a9599
[ "BSD-3-Clause" ]
13
2021-10-19T19:05:24.000Z
2022-03-22T13:17:55.000Z
src/saleor_app/install.py
przlada/saleor-app-framework-python
3a561c93bf586b4210e7b3c4d2db3408046a9599
[ "BSD-3-Clause" ]
11
2021-06-09T21:24:56.000Z
2022-03-12T17:33:30.000Z
import logging import secrets import string from typing import Awaitable, Callable, List from saleor_app.conf import get_settings from saleor_app.errors import InstallAppError from saleor_app.graphql import GraphQLError, get_executor, get_saleor_api_url from saleor_app.mutations import CREATE_WEBHOOK from saleor_app.s...
31.783333
80
0.678553
224
1,907
5.549107
0.361607
0.040225
0.052293
0.024135
0.054706
0.054706
0
0
0
0
0
0.001363
0.230729
1,907
59
81
32.322034
0.845944
0
0
0
0
0
0.133718
0
0
0
0
0
0
1
0
false
0
0.183673
0
0.183673
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bc41c33e45aca9a963dba5e594b74e5dcb92d03
64,465
py
Python
sdk/python/pulumi_aws/fsx/open_zfs_file_system.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/fsx/open_zfs_file_system.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/fsx/open_zfs_file_system.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
56.30131
550
0.694982
8,231
64,465
5.215891
0.043373
0.078403
0.054784
0.039458
0.947545
0.937459
0.928282
0.918126
0.909368
0.894764
0
0.005868
0.209571
64,465
1,144
551
56.350524
0.836679
0.393237
0
0.791476
1
0
0.143417
0.074835
0
0
0
0
0
1
0.167428
false
0.001522
0.010654
0
0.280061
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
8bc5033e6745dd8bddb7a355569fc61f7cd99932
1,410
py
Python
tools/other/syn.py
fengjixuchui/geospy
12ff83372a7e128babd8f16c357672d1495022c8
[ "MIT" ]
1
2019-11-12T05:53:25.000Z
2019-11-12T05:53:25.000Z
tools/other/syn.py
fengjixuchui/geospy
12ff83372a7e128babd8f16c357672d1495022c8
[ "MIT" ]
null
null
null
tools/other/syn.py
fengjixuchui/geospy
12ff83372a7e128babd8f16c357672d1495022c8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import random import time from scapy.all import IP, TCP, send from threading import Thread # Import modules for SYN flood import tools.randomData as randomData def SYN_ATTACK(threads, attack_time, target): # Finish global FINISH FINISH = False target_ip = target.split(":")[0] target_port ...
23.114754
78
0.668085
203
1,410
4.522167
0.394089
0.068627
0.039216
0.071895
0.104575
0.104575
0
0
0
0
0
0.061366
0.179433
1,410
60
79
23.5
0.732066
0.087234
0
0.047619
0
0
0.128125
0
0
0
0
0
0
1
0.047619
false
0
0.119048
0
0.166667
0.119048
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bc5c14508eaa101207214cbf9fa6cdfc7a9bf62
19,405
py
Python
NIQ_uncompiled/source_code/check_valid.py
wxhawkins/NestIQ
3a004d330e2c68b0c7eb0b0676bc4d044e52cbe4
[ "Apache-2.0" ]
null
null
null
NIQ_uncompiled/source_code/check_valid.py
wxhawkins/NestIQ
3a004d330e2c68b0c7eb0b0676bc4d044e52cbe4
[ "Apache-2.0" ]
null
null
null
NIQ_uncompiled/source_code/check_valid.py
wxhawkins/NestIQ
3a004d330e2c68b0c7eb0b0676bc4d044e52cbe4
[ "Apache-2.0" ]
null
null
null
import time import datetime as dt from pathlib import Path from tkinter import messagebox import re import niq_misc import math import traceback from niq_misc import replace_entry def check_valid_vertex_file(gui): """ Checks user-provided vertex selection file (HTML) for issues that could cause errors wi...
38.198819
171
0.588199
2,393
19,405
4.646051
0.174676
0.040565
0.030401
0.040925
0.385231
0.314535
0.270462
0.227469
0.19329
0.14454
0
0.005537
0.329915
19,405
507
172
38.274162
0.849496
0.13311
0
0.37069
0
0.008621
0.269212
0.014956
0
0
0
0
0
1
0.025862
false
0
0.025862
0
0.206897
0.005747
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bca7c3ef84914924b0c15217d9b07d51210a502
395
py
Python
xrobot_launcher.py
martinRenou/xeus-robot-wheel
e14034c9e7c15417b9b125d3b03f660606df0b4e
[ "BSD-3-Clause" ]
null
null
null
xrobot_launcher.py
martinRenou/xeus-robot-wheel
e14034c9e7c15417b9b125d3b03f660606df0b4e
[ "BSD-3-Clause" ]
null
null
null
xrobot_launcher.py
martinRenou/xeus-robot-wheel
e14034c9e7c15417b9b125d3b03f660606df0b4e
[ "BSD-3-Clause" ]
null
null
null
if __name__ == '__main__': def _xrobot_get_connection_filename(): import argparse parser = argparse.ArgumentParser() parser.add_argument('-f', help='Jupyter kernel connection filename') args, unknown = parser.parse_known_args() return args.f from xrobot import launch as ...
35.909091
76
0.701266
45
395
5.644444
0.6
0.212598
0.149606
0.212598
0
0
0
0
0
0
0
0
0.212658
395
10
77
39.5
0.81672
0
0
0
0
0
0.111392
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.444444
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8bcfdd9c7b143588acd04d3d0910371718e911e3
2,977
py
Python
amodem/sampling.py
Matthew-MK/amodem
a75dda9ab0f7445589a036357e604703ccb34726
[ "MIT" ]
766
2015-01-14T15:48:07.000Z
2022-03-30T01:19:48.000Z
amodem/sampling.py
Matthew-MK/amodem
a75dda9ab0f7445589a036357e604703ccb34726
[ "MIT" ]
42
2015-01-02T18:50:11.000Z
2022-03-11T19:10:35.000Z
amodem/sampling.py
Matthew-MK/amodem
a75dda9ab0f7445589a036357e604703ccb34726
[ "MIT" ]
116
2015-01-14T20:43:52.000Z
2022-03-24T13:10:30.000Z
import itertools import numpy as np from . import common class Interpolator: def __init__(self, resolution=1024, width=128): self.width = width self.resolution = resolution N = resolution * width u = np.arange(-N, N, dtype=float) window = np.cos(0.5 * np.pi * u / N) **...
32.010753
75
0.555929
360
2,977
4.552778
0.363889
0.042709
0.027456
0.015863
0.016473
0.016473
0
0
0
0
0
0.014308
0.342627
2,977
92
76
32.358696
0.823199
0.161572
0
0
0
0
0
0
0
0
0
0
0.030769
1
0.061538
false
0
0.046154
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bcfe7bd84165cc2d8ec0ab76054e252d5ad9337
2,913
py
Python
rando/core/models.py
camillemonchicourt/Geotrek-rando
df92c0f19ca37ea1750d934cedafcdb23325bc95
[ "BSD-2-Clause" ]
null
null
null
rando/core/models.py
camillemonchicourt/Geotrek-rando
df92c0f19ca37ea1750d934cedafcdb23325bc95
[ "BSD-2-Clause" ]
null
null
null
rando/core/models.py
camillemonchicourt/Geotrek-rando
df92c0f19ca37ea1750d934cedafcdb23325bc95
[ "BSD-2-Clause" ]
null
null
null
import os import json import datetime from easydict import EasyDict as edict from django.conf import settings from rando import logger from rando.core import classproperty class JSONManager(object): def __init__(self, klass=object, filepath='', language=None, use_tmp=False): self.klass = klass s...
27.481132
93
0.632338
335
2,913
5.358209
0.328358
0.016713
0.012256
0.020056
0.149304
0.118106
0.050139
0.050139
0.050139
0
0
0.001393
0.260556
2,913
105
94
27.742857
0.831941
0.068658
0
0.12
0
0
0.041651
0
0
0
0
0
0.013333
1
0.173333
false
0
0.093333
0.066667
0.573333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8bd1ed48c83c831815502fd8f24e3c648f5c81ee
3,741
py
Python
libs/dungeon.py
IdeaBot/explorer
2cd02cacb2a37f3da3308e79e88f8c26f4401b8e
[ "MIT" ]
null
null
null
libs/dungeon.py
IdeaBot/explorer
2cd02cacb2a37f3da3308e79e88f8c26f4401b8e
[ "MIT" ]
null
null
null
libs/dungeon.py
IdeaBot/explorer
2cd02cacb2a37f3da3308e79e88f8c26f4401b8e
[ "MIT" ]
null
null
null
''' Dungeon object class created 2019-03-19 by NGnius ''' # import math import random DEFAULT_SIZE = 16 WIDTH = 42 ANIMATION_CHAR = '*' BLANK_CHAR = '.' PORTAL_CHAR = '0' class Dungeon(): def __init__(self, size=DEFAULT_SIZE, level=1): self.WIDTH = WIDTH self.size = size self.level = leve...
35.971154
159
0.555199
509
3,741
3.917485
0.208251
0.049649
0.024574
0.022066
0.282849
0.219659
0.157472
0.157472
0.125376
0.069208
0
0.027975
0.321572
3,741
103
160
36.320388
0.757683
0.083667
0
0.148148
0
0
0.001465
0
0
0
0
0
0
1
0.135802
false
0
0.012346
0
0.259259
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bd259e0e2d2b9af5c910c05de23636129ffb891
113
py
Python
01_Language/01_Functions/python/fflush.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
3
2020-06-28T07:42:51.000Z
2021-01-15T10:32:11.000Z
01_Language/01_Functions/python/fflush.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
9
2021-03-10T22:45:40.000Z
2022-02-27T06:53:20.000Z
01_Language/01_Functions/python/fflush.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
1
2021-01-15T10:51:24.000Z
2021-01-15T10:51:24.000Z
# coding: utf-8 f = open("test.txt", mode="r+") f.write("hello world") f.flush() f.truncate(f.tell()) f.close()
14.125
31
0.610619
21
113
3.285714
0.761905
0
0
0
0
0
0
0
0
0
0
0.01
0.115044
113
7
32
16.142857
0.68
0.115044
0
0
0
0
0.214286
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8bd2af77c54189a911eb6a57a33e86e0c8005dbd
10,917
py
Python
scrapyproject/showingspiders/toho_v2.py
gas1121/JapanCinemaStatusSpider
67c7b963914565589f64dd1bcf18839a4160ea34
[ "MIT" ]
2
2018-06-07T13:28:03.000Z
2018-12-10T14:04:53.000Z
scrapyproject/showingspiders/toho_v2.py
gas1121/JapanCinemaStatusSpider
67c7b963914565589f64dd1bcf18839a4160ea34
[ "MIT" ]
null
null
null
scrapyproject/showingspiders/toho_v2.py
gas1121/JapanCinemaStatusSpider
67c7b963914565589f64dd1bcf18839a4160ea34
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unicodedata import json import arrow import scrapy from scrapyproject.showingspiders.showing_spider import ShowingSpider from scrapyproject.items import (ShowingLoader, init_show_booking_loader) from scrapyproject.utils import TohoUtil class TohoV2Spider(ShowingSpider): """ Toho...
45.298755
79
0.646973
1,348
10,917
4.909496
0.191395
0.053037
0.045935
0.041251
0.381233
0.275914
0.170444
0.130251
0.105168
0.055606
0
0.02972
0.257214
10,917
240
80
45.4875
0.78641
0.203169
0
0.1
0
0
0.111494
0.031584
0
0
0
0
0
1
0.06875
false
0
0.04375
0
0.20625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bd49f53da7caa09d61a988bf0e05ae48ef80b17
947
py
Python
tasks.py
ggrbill/fortran-examples
a790462fa3956a65505d4f529556f81cd5b0de95
[ "MIT" ]
null
null
null
tasks.py
ggrbill/fortran-examples
a790462fa3956a65505d4f529556f81cd5b0de95
[ "MIT" ]
null
null
null
tasks.py
ggrbill/fortran-examples
a790462fa3956a65505d4f529556f81cd5b0de95
[ "MIT" ]
null
null
null
from invoke import task @task() def clean(ctx): """ Delete 'build' folder. """ print("Cleaning!") ctx.run("rm -Rf build") @task( help = { 'cclean': "Call Clean task (Delete 'build' folder) before build again." } ) def build(ctx, cclean=False): """ Build Fortran95 code. """ if cclean: ...
18.211538
74
0.583949
122
947
4.508197
0.360656
0.043636
0.092727
0.065455
0.443636
0.443636
0.443636
0.443636
0.443636
0.443636
0
0.022008
0.232313
947
52
75
18.211538
0.734525
0.092925
0
0.540541
0
0
0.462228
0.055058
0
0
0
0
0
1
0.081081
false
0
0.027027
0
0.108108
0.081081
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bd4b1d2130b763d822163e0d5fcb7c191a3f224
203
py
Python
aristotle_json_editor/apps.py
aristotle-mdr/json-metadata-editor
2d97bea85c822d2e7b59fc8d96ca3eaa3b1ed916
[ "MIT" ]
null
null
null
aristotle_json_editor/apps.py
aristotle-mdr/json-metadata-editor
2d97bea85c822d2e7b59fc8d96ca3eaa3b1ed916
[ "MIT" ]
1
2017-07-25T09:44:11.000Z
2017-07-25T09:44:11.000Z
aristotle_json_editor/apps.py
aristotle-mdr/json-metadata-editor
2d97bea85c822d2e7b59fc8d96ca3eaa3b1ed916
[ "MIT" ]
null
null
null
from aristotle_mdr.apps import AristotleExtensionBaseConfig class AristotleJSONEditorConfig(AristotleExtensionBaseConfig): name = 'aristotle_json_editor' verbose_name = "Aristotle JSON Editor"
29
62
0.832512
18
203
9.166667
0.666667
0.157576
0.206061
0.278788
0
0
0
0
0
0
0
0
0.118227
203
6
63
33.833333
0.921788
0
0
0
0
0
0.206897
0.103448
0
0
0
0
0
1
0
false
0
0.25
0
1
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
5
8bd58dcecb3710fe85f09d22baab6422be4f4f1c
323
py
Python
fairlearn/reductions/_exponentiated_gradient/__init__.py
arita37/fairlearn
8f2cb25ca6a0c0aadcff90b927936de6d53ff5fa
[ "MIT" ]
2
2019-11-30T09:02:42.000Z
2019-12-02T10:24:29.000Z
fairlearn/reductions/_exponentiated_gradient/__init__.py
arita37/fairlearn
8f2cb25ca6a0c0aadcff90b927936de6d53ff5fa
[ "MIT" ]
null
null
null
fairlearn/reductions/_exponentiated_gradient/__init__.py
arita37/fairlearn
8f2cb25ca6a0c0aadcff90b927936de6d53ff5fa
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from .exponentiated_gradient import ExponentiatedGradient # noqa: F401 from .exponentiated_gradient import ExponentiatedGradientResult # noqa: F401 __all__ = [ "ExponentiatedGradient", "ExponentiatedGradientResult"...
29.363636
77
0.79257
29
323
8.62069
0.689655
0.136
0.2
0.248
0
0
0
0
0
0
0
0.021661
0.142415
323
10
78
32.3
0.880866
0.343653
0
0
0
0
0.231884
0.231884
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
8bd6939b53a3043718695a488bbde929cd4e44d7
423
py
Python
akagi/contents/__init__.py
pauchan/akagi
7cf1f5a52b8f1ebfdc74a527bf6b26254f99343b
[ "MIT" ]
26
2017-05-18T11:52:04.000Z
2018-08-25T22:03:07.000Z
akagi/contents/__init__.py
pauchan/akagi
7cf1f5a52b8f1ebfdc74a527bf6b26254f99343b
[ "MIT" ]
325
2017-05-08T07:22:28.000Z
2022-03-31T15:43:18.000Z
akagi/contents/__init__.py
pauchan/akagi
7cf1f5a52b8f1ebfdc74a527bf6b26254f99343b
[ "MIT" ]
7
2017-05-02T02:06:15.000Z
2020-04-09T05:32:11.000Z
# -*- coding: utf-8 -*- from akagi.contents import s3_content from akagi.contents import local_file_content from akagi.contents import spreadsheet_content from akagi.contents import url_content from akagi.contents.s3_content import S3Content from akagi.contents.local_file_content import LocalFileContent from akagi.co...
35.25
65
0.858156
57
423
6.192982
0.298246
0.203966
0.385269
0.260623
0.254958
0
0
0
0
0
0
0.010417
0.092199
423
11
66
38.454545
0.908854
0.049645
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
8bd769344a472b553f48b5163b0040a5e6c76aa3
4,313
py
Python
src/advent/year2019/intcode.py
davidism/advent
761756f179c3547f44ec035880f29f58d80903f8
[ "BSD-3-Clause" ]
5
2019-12-09T06:02:22.000Z
2021-12-03T18:02:49.000Z
src/advent/year2019/intcode.py
davidism/advent
761756f179c3547f44ec035880f29f58d80903f8
[ "BSD-3-Clause" ]
null
null
null
src/advent/year2019/intcode.py
davidism/advent
761756f179c3547f44ec035880f29f58d80903f8
[ "BSD-3-Clause" ]
2
2019-09-19T04:44:33.000Z
2021-05-09T14:39:58.000Z
from collections import defaultdict from collections import deque from typing import Deque from typing import Dict from typing import Iterable from typing import List from advent.load import read_input def op(code: int, size: int, write=False): def wrapper(f): f.op = code f.size = size f....
23.828729
85
0.537909
566
4,313
4.021201
0.213781
0.045694
0.019772
0.017575
0.137961
0.065026
0.065026
0.04833
0.04833
0.04833
0
0.013518
0.348249
4,313
180
86
23.961111
0.796158
0
0
0.126866
0
0
0.003942
0
0
0
0
0
0
1
0.179104
false
0.014925
0.052239
0.022388
0.350746
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bd88ec45c6933abd1b51585d3a13a40674a382b
225
py
Python
exer/ex5-2.py
vitorsergiota/python
2cc95392a2a52a871e0582e4e900c0aa24a021a1
[ "MIT" ]
null
null
null
exer/ex5-2.py
vitorsergiota/python
2cc95392a2a52a871e0582e4e900c0aa24a021a1
[ "MIT" ]
null
null
null
exer/ex5-2.py
vitorsergiota/python
2cc95392a2a52a871e0582e4e900c0aa24a021a1
[ "MIT" ]
null
null
null
num = int(input('Escreva um digito:')) soma=0 while num > 0 digito = num%10 # obtem algarismo unidades num = num // 10 # remove algarismo unidades if digito % 2 == 0: #par soma = soma + digito print(soma)
25
47
0.622222
33
225
4.242424
0.545455
0.071429
0
0
0
0
0
0
0
0
0
0.048193
0.262222
225
8
48
28.125
0.795181
0.235556
0
0
0
0
0.107143
0
0
0
0
0
0
0
null
null
0
0
null
null
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
8bd89aabbee1878012e7f1e4e9d5683197eea5ee
342
py
Python
korzh_bot/uleague/exceptions.py
uleague/universityleague-steam
65539664c0c6aad94a7ff3a3208323a554e1fddd
[ "MIT" ]
null
null
null
korzh_bot/uleague/exceptions.py
uleague/universityleague-steam
65539664c0c6aad94a7ff3a3208323a554e1fddd
[ "MIT" ]
2
2020-09-14T21:55:03.000Z
2020-11-17T17:23:34.000Z
korzh_bot/uleague/exceptions.py
uleague/universityleague-steam
65539664c0c6aad94a7ff3a3208323a554e1fddd
[ "MIT" ]
null
null
null
class ULeagueRequestError(Exception): """ Basic exception for all requests """ def __init__(self, message): self.message = message super().__init__(self.message) def __str__(self): return "Произошла ошибка во время выполнения запроса на ULeague --> {}".format( s...
24.428571
87
0.614035
34
342
5.823529
0.676471
0.222222
0.151515
0
0
0
0
0
0
0
0
0
0.283626
342
13
88
26.307692
0.808163
0.093567
0
0
0
0
0.210884
0
0
0
0
0
0
1
0.25
false
0
0
0.125
0.5
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
3
8bd97144b2dc03785cd1d725114cfe7c4ea6a97a
644
py
Python
story/models.py
sachink2010/DjangoTrial
8b78a31409b614959ed45380f2b8ee9f03fa9f90
[ "MIT" ]
null
null
null
story/models.py
sachink2010/DjangoTrial
8b78a31409b614959ed45380f2b8ee9f03fa9f90
[ "MIT" ]
null
null
null
story/models.py
sachink2010/DjangoTrial
8b78a31409b614959ed45380f2b8ee9f03fa9f90
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Story(models.Model): user_input = models.CharField(max_length=600) api_response = models.CharField(max_length=2000, null=True, blank=True) #timestamp=models.DateTimeField created_at = models.DateTimeField(auto_now_add=True) username = mo...
40.25
75
0.768634
87
644
5.505747
0.37931
0.187891
0.22547
0.300626
0.868476
0.868476
0.868476
0.868476
0.868476
0.868476
0
0.035714
0.130435
644
16
76
40.25
0.819643
0.130435
0
0.727273
0
0
0
0
0
0
0
0
0
1
0
false
0
0.090909
0
1
0
0
0
0
null
0
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
10
8bdc456df221aa9aaf1072900c707aafc646d202
3,123
py
Python
scripts/find_best_fit.py
NERC-CEH/nanofase-calibration
e45da5f0566e345504214018eb4b9c013bab4c57
[ "BSD-3-Clause" ]
null
null
null
scripts/find_best_fit.py
NERC-CEH/nanofase-calibration
e45da5f0566e345504214018eb4b9c013bab4c57
[ "BSD-3-Clause" ]
null
null
null
scripts/find_best_fit.py
NERC-CEH/nanofase-calibration
e45da5f0566e345504214018eb4b9c013bab4c57
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import os import sys import argparse import re import shutil import numpy as np from netCDF4 import Dataset """This script is useful for finding the best find from the `optimize.log` file, the getting the parameters for this fit from logged results""" # Parse the input arguments parser = argpar...
42.780822
114
0.700288
499
3,123
4.252505
0.346693
0.01885
0.028275
0.036758
0.110745
0.069274
0.055137
0.04524
0.04524
0.04524
0
0.011249
0.174512
3,123
72
115
43.375
0.81187
0.23471
0
0.039216
0
0
0.240931
0.065383
0
0
0
0
0
1
0
false
0
0.137255
0
0.137255
0.039216
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bde4876eb8d22e2a2bf6ea4f21056c49d4893b8
347
py
Python
examples/simple1.py
jimcortez/spotipy_twisted
49ff2a4a5a5a9b3184b22adbe068eb91a38f3102
[ "MIT" ]
null
null
null
examples/simple1.py
jimcortez/spotipy_twisted
49ff2a4a5a5a9b3184b22adbe068eb91a38f3102
[ "MIT" ]
null
null
null
examples/simple1.py
jimcortez/spotipy_twisted
49ff2a4a5a5a9b3184b22adbe068eb91a38f3102
[ "MIT" ]
null
null
null
import spotipy_twisted birdy_uri = 'spotify:artist:2WX2uTcsvV5OnS0inACecP' spotify = spotipy_twisted.Spotify() results = spotify.artist_albums(birdy_uri, album_type='album') albums = results['items'] while results['next']: results = spotify.next(results) albums.extend(results['items']) for album in albums:...
20.411765
62
0.743516
42
347
6
0.47619
0.111111
0
0
0
0
0
0
0
0
0
0.013201
0.126801
347
16
63
21.6875
0.818482
0
0
0
0
0
0.17341
0.106936
0
0
0
0
0
1
0
false
0
0.1
0
0.1
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
8bde558284ee50c285e21e6e1f4a0e2c6265f5bf
21,737
py
Python
pysnmp-with-texts/CISCO-ATM-EXT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CISCO-ATM-EXT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CISCO-ATM-EXT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-ATM-EXT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-ATM-EXT-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:50:35 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Ma...
134.179012
2,083
0.776096
2,511
21,737
6.717642
0.148148
0.051933
0.090882
0.010197
0.438048
0.319836
0.257233
0.218105
0.15728
0.125682
0
0.051214
0.092745
21,737
161
2,084
135.012422
0.804117
0.015089
0
0.04698
0
0.060403
0.341495
0.030701
0
0
0
0
0
1
0
false
0
0.053691
0
0.120805
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8bdf0a8fc72d26035fdc4522645b4d01820727b6
4,905
py
Python
arrows/pytorch/seg_utils.py
neal-siekierski/kwiver
1c97ad72c8b6237cb4b9618665d042be16825005
[ "BSD-3-Clause" ]
null
null
null
arrows/pytorch/seg_utils.py
neal-siekierski/kwiver
1c97ad72c8b6237cb4b9618665d042be16825005
[ "BSD-3-Clause" ]
null
null
null
arrows/pytorch/seg_utils.py
neal-siekierski/kwiver
1c97ad72c8b6237cb4b9618665d042be16825005
[ "BSD-3-Clause" ]
null
null
null
# ckwg +28 # Copyright 2018 by Kitware, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, # this list of conditi...
33.367347
80
0.626504
711
4,905
4.21519
0.345992
0.022022
0.016016
0.014014
0.109776
0.06006
0.06006
0.045379
0.045379
0.045379
0
0.043307
0.275025
4,905
146
81
33.59589
0.799494
0.321916
0
0.138298
0
0
0.024605
0
0
0
0
0
0.010638
1
0.053191
false
0
0.12766
0.010638
0.265957
0.010638
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bdf61ec1b8d8328f9ce10467e5dc4c43240c500
6,421
py
Python
fdtd/2d/src/fdtd/solver.py
Elena-Torres-Lozano/MCFNL2021
b60ecda2dc35fe08ce6cf131c45acc0349dce29c
[ "BSD-3-Clause" ]
null
null
null
fdtd/2d/src/fdtd/solver.py
Elena-Torres-Lozano/MCFNL2021
b60ecda2dc35fe08ce6cf131c45acc0349dce29c
[ "BSD-3-Clause" ]
null
null
null
fdtd/2d/src/fdtd/solver.py
Elena-Torres-Lozano/MCFNL2021
b60ecda2dc35fe08ce6cf131c45acc0349dce29c
[ "BSD-3-Clause" ]
null
null
null
import math import numpy as np import scipy.constants as sp import copy import time X = 0 # Cartesian indices Y = 1 L = 0 # Lower U = 1 # Upper def gaussian(x, delay, spread): return np.exp( - ((x-delay)**2 / (2*spread**2)) ) def subsId(id): if id is None: return -1 else: return id-1 cl...
33.973545
79
0.454914
741
6,421
3.874494
0.213225
0.033438
0.015674
0.024382
0.129223
0.069314
0.062696
0.048764
0.033438
0.033438
0
0.017719
0.375954
6,421
189
80
33.973545
0.698777
0.102165
0
0.116788
0
0
0.057257
0
0
0
0
0
0
1
0.094891
false
0
0.036496
0.036496
0.211679
0.014599
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bdfa2aafd82d2863e79980ee316f8cecf63acbc
2,505
py
Python
myticker.py
bitsanity/rateboard
f362505d6b9672d2f22bc6e6650975899d2ea127
[ "Apache-2.0" ]
3
2017-08-24T14:36:49.000Z
2018-11-21T21:14:06.000Z
myticker.py
bitsanity/rateboard
f362505d6b9672d2f22bc6e6650975899d2ea127
[ "Apache-2.0" ]
null
null
null
myticker.py
bitsanity/rateboard
f362505d6b9672d2f22bc6e6650975899d2ea127
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import os import sys, traceback import threading import time from PyQt4 import QtGui,QtCore from boardlet import Boardlet from modellet import Modellet class MyTicker(Boardlet): def __init__(self, parent, getbidobj, getaskobj): super(MyTicker, self).__init__(parent) ...
28.793103
76
0.64511
336
2,505
4.639881
0.369048
0.08018
0.032072
0.038486
0.140475
0.122514
0.094291
0
0
0
0
0.016794
0.215569
2,505
86
77
29.127907
0.77659
0.032335
0
0.030303
0
0
0.029339
0
0
0
0
0
0
0
null
null
0
0.106061
null
null
0.015152
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8bdfada5a195abb5fa1a5addc5ae23054f34a07f
62,005
py
Python
pysnmp-with-texts/ASSETMANAGEMENT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/ASSETMANAGEMENT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/ASSETMANAGEMENT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ASSETMANAGEMENT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ASSETMANAGEMENT-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:29:30 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
157.773537
5,190
0.784856
6,713
62,005
7.249069
0.089379
0.084705
0.078972
0.008631
0.536547
0.414463
0.367035
0.34256
0.313996
0.29505
0
0.044921
0.091315
62,005
392
5,191
158.17602
0.818771
0.005354
0
0.075472
0
0.137466
0.434581
0.0595
0
0
0
0
0
1
0
false
0
0.021563
0
0.172507
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8be140e08c2dfb6a0ad53e343aaf11199164a255
487
py
Python
secret.py
yoyu777/Poll-Bot
db239b42c5c5e1af38a7c0a12b977c38949f0724
[ "MIT" ]
null
null
null
secret.py
yoyu777/Poll-Bot
db239b42c5c5e1af38a7c0a12b977c38949f0724
[ "MIT" ]
null
null
null
secret.py
yoyu777/Poll-Bot
db239b42c5c5e1af38a7c0a12b977c38949f0724
[ "MIT" ]
null
null
null
# Import the Secret Manager client library. from google.cloud import secretmanager # Create the Secret Manager client. secretmanager_client = secretmanager.SecretManagerServiceClient() def get_discord_token(project_id,secret_id): latest_secret_version=secretmanager_client.access_secret_version( name=f'pro...
34.785714
74
0.804928
61
487
6.131148
0.540984
0.104278
0.085562
0.117647
0
0
0
0
0
0
0
0.002326
0.117043
487
14
75
34.785714
0.867442
0.154004
0
0
0
0
0.15122
0.139024
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8be594b734f337508a46bc13ebf1d32d3f8e6f53
1,663
py
Python
Bot/extensions/moderation/ban.py
ChrissisCodeXD/Hikari-TestProject
236c8fc9081172d9edff6d629e5d11c5abe64205
[ "MIT" ]
null
null
null
Bot/extensions/moderation/ban.py
ChrissisCodeXD/Hikari-TestProject
236c8fc9081172d9edff6d629e5d11c5abe64205
[ "MIT" ]
null
null
null
Bot/extensions/moderation/ban.py
ChrissisCodeXD/Hikari-TestProject
236c8fc9081172d9edff6d629e5d11c5abe64205
[ "MIT" ]
null
null
null
from imports import * ban_plugin = lightbulb.Plugin("moderation.ban") ban_plugin.add_checks( lightbulb.checks.guild_only, lightbulb.checks.bot_has_guild_permissions(hikari.Permissions.BAN_MEMBERS), lightbulb.checks.has_guild_permissions(hikari.Permissions.BAN_MEMBERS), ) @ban_plugin.command() @lightbulb...
33.938776
119
0.719784
219
1,663
5.351598
0.360731
0.046075
0.048635
0.042662
0.156997
0.12628
0.078498
0
0
0
0
0.000708
0.150932
1,663
48
120
34.645833
0.82932
0
0
0.108108
0
0
0.144919
0
0
0
0
0
0
1
0.054054
false
0
0.027027
0
0.081081
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8be59cb6314fe38c5f76d083bb061587be243807
2,043
py
Python
trend_analyze/test/test_fecth_data_from_api.py
popper2710/Trend_Analyze
0c98bcd7986bdb2d2b9bdc8022bfa08ddf0e7b0f
[ "MIT" ]
null
null
null
trend_analyze/test/test_fecth_data_from_api.py
popper2710/Trend_Analyze
0c98bcd7986bdb2d2b9bdc8022bfa08ddf0e7b0f
[ "MIT" ]
2
2020-09-26T14:58:33.000Z
2021-03-31T20:01:40.000Z
trend_analyze/test/test_fecth_data_from_api.py
popper2710/Trend_Analyze
0c98bcd7986bdb2d2b9bdc8022bfa08ddf0e7b0f
[ "MIT" ]
null
null
null
import unittest from trend_analyze.config import * from trend_analyze.src.model import * from trend_analyze.src.fetch_data_from_api import ApiTwitterFetcher class TestFetchDataFromApi(unittest.TestCase): """ test class for fetch_data_from_api.py """ def __init__(self, *args, **kwargs): super...
32.951613
87
0.698972
264
2,043
5.041667
0.257576
0.047333
0.072126
0.072126
0.225394
0.162284
0.132231
0.084147
0.084147
0
0
0.004268
0.197259
2,043
61
88
33.491803
0.807317
0.018111
0
0.047619
0
0
0.036683
0
0
0
0
0
0.190476
1
0.261905
false
0
0.095238
0
0.380952
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8be760a4114acf5a4db49d05c1ef322eef5d00e1
1,779
py
Python
leetcode/easy/compare-version-numbers.py
rainzhop/cumulus-tank
09ebc7858ea53630e30606945adfea856a80faa3
[ "MIT" ]
null
null
null
leetcode/easy/compare-version-numbers.py
rainzhop/cumulus-tank
09ebc7858ea53630e30606945adfea856a80faa3
[ "MIT" ]
null
null
null
leetcode/easy/compare-version-numbers.py
rainzhop/cumulus-tank
09ebc7858ea53630e30606945adfea856a80faa3
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/compare-version-numbers/ # # Compare two version numbers version1 and version2. # If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0. # # You may assume that the version strings are non-empty and contain only digits and the . character. # The . characte...
30.152542
100
0.518269
234
1,779
3.940171
0.435897
0.045553
0.02603
0.052061
0.18872
0.099783
0.099783
0.099783
0.099783
0
0
0.058394
0.383924
1,779
58
101
30.672414
0.782847
0.416526
0
0.514286
0
0
0.006098
0
0
0
0
0
0
1
0.028571
false
0
0
0
0.257143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8be7873229c136c3351120aeb123d5e799820294
710
py
Python
utils.py
florenthemmi/ips-by-country
2f63ec2108ceaae97221de52654753c545733d84
[ "MIT" ]
1
2021-05-24T06:16:49.000Z
2021-05-24T06:16:49.000Z
utils.py
florenthemmi/ips-by-country
2f63ec2108ceaae97221de52654753c545733d84
[ "MIT" ]
null
null
null
utils.py
florenthemmi/ips-by-country
2f63ec2108ceaae97221de52654753c545733d84
[ "MIT" ]
null
null
null
from datetime import datetime from config import CIDR_MAX_SUBNETS class IPRange(object): def __init__(self, data): self.range_start = data[0] self.range_end = data[1] self.total_ips = int(data[2]) self.assign_date = datetime.strptime(data[3], '%d/%m/%y') self.owner = data[...
26.296296
71
0.640845
99
710
4.313131
0.424242
0.117096
0.098361
0
0
0
0
0
0
0
0
0.009276
0.240845
710
26
72
27.307692
0.782931
0
0
0
0
0
0.021127
0
0
0
0
0
0
1
0.166667
false
0
0.111111
0.055556
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
8be7899428e46960e100ad08d01429e3242a6f7d
4,897
py
Python
keats_crawler/crawl.py
mannmann2/keats-crawler
9fc108b75e63bf3dfac0c18ed2f0bec84d003c14
[ "MIT" ]
8
2021-01-21T19:34:59.000Z
2022-02-14T23:09:48.000Z
keats_crawler/crawl.py
mannmann2/keats-crawler
9fc108b75e63bf3dfac0c18ed2f0bec84d003c14
[ "MIT" ]
null
null
null
keats_crawler/crawl.py
mannmann2/keats-crawler
9fc108b75e63bf3dfac0c18ed2f0bec84d003c14
[ "MIT" ]
1
2021-12-27T11:09:44.000Z
2021-12-27T11:09:44.000Z
"""Main module.""" from config import * import os import re from threading import Thread import requests from urllib.parse import unquote from bs4 import BeautifulSoup from m3u8downloader.main import M3u8Downloader from selenium import webdriver from selenium.webdriver.chrome.options import Options VIDEO_DICT = {}...
27.357542
150
0.588115
630
4,897
4.463492
0.253968
0.025605
0.027738
0.036273
0.321124
0.282006
0.217994
0.198791
0.198791
0.198791
0
0.009693
0.241576
4,897
178
151
27.511236
0.747442
0.031244
0
0.088496
0
0
0.151278
0.020283
0
0
0
0
0
1
0.053097
false
0
0.088496
0
0.185841
0.097345
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8be7a3c80ff1ca3e87607f2cacd6a9420c5e831e
7,305
py
Python
logging_with_arcpy.py
Kortforsyningen/logging-with-arcpy
b227aea9c377ca6e98b2c398d294c08bce506f84
[ "MIT" ]
1
2022-03-03T13:20:12.000Z
2022-03-03T13:20:12.000Z
logging_with_arcpy.py
Kortforsyningen/logging-with-arcpy
b227aea9c377ca6e98b2c398d294c08bce506f84
[ "MIT" ]
null
null
null
logging_with_arcpy.py
Kortforsyningen/logging-with-arcpy
b227aea9c377ca6e98b2c398d294c08bce506f84
[ "MIT" ]
1
2022-03-30T11:33:43.000Z
2022-03-30T11:33:43.000Z
# -*- coding: utf-8 -*- """ This module allows Python's logging module and Esri's ArcMap tools to play nicely together. Everything here works with the root logger, there is currently no functionality to work with multiple loggers. The standard logging.basicConfig() doesn't work out of the box in ArcMap tools, b...
46.826923
132
0.699384
1,051
7,305
4.831589
0.34824
0.023631
0.017724
0.021268
0.127806
0.110083
0.110083
0.110083
0.088224
0.088224
0
0.008325
0.210678
7,305
155
133
47.129032
0.872355
0.70089
0
0.243902
0
0
0.058918
0
0
0
0
0.019355
0
1
0.121951
false
0
0.170732
0
0.341463
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
8be7ac2245946060119cdd1d1ac823a02f85034d
892
py
Python
bot.py
fangyi-zhou/renamer
ec1215f7afea1c942116a37bdd2a5fcbabee6e94
[ "Unlicense" ]
null
null
null
bot.py
fangyi-zhou/renamer
ec1215f7afea1c942116a37bdd2a5fcbabee6e94
[ "Unlicense" ]
null
null
null
bot.py
fangyi-zhou/renamer
ec1215f7afea1c942116a37bdd2a5fcbabee6e94
[ "Unlicense" ]
null
null
null
import os import re import discord from dotenv import load_dotenv load_dotenv() TOKEN = os.getenv("DISCORD_TOKEN") RENAME_REGEX = re.compile(r"^[Ii]'m (\w+)$") if TOKEN is None: raise RuntimeError("Bot TOKEN not set") client = discord.Client() @client.event async def on_ready(): print("We have logged in ...
21.756098
88
0.649103
123
892
4.642276
0.536585
0.035026
0.059545
0.077058
0.210158
0.210158
0.115587
0
0
0
0
0.002937
0.236547
892
40
89
22.3
0.835536
0
0
0.071429
0
0
0.161435
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.178571
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
8be86bfbc616af693be4c8b1bf95b938750cfb4b
8,035
py
Python
market/views.py
morphosis-nitmz/Stock-Bridge-2018
5f7d55a5dfeed52e2fa46fd1e2abd6bba80c954a
[ "MIT" ]
12
2019-09-10T02:51:01.000Z
2022-03-23T07:19:34.000Z
market/views.py
morphosis-nitmz/Stock-Bridge-2018
5f7d55a5dfeed52e2fa46fd1e2abd6bba80c954a
[ "MIT" ]
null
null
null
market/views.py
morphosis-nitmz/Stock-Bridge-2018
5f7d55a5dfeed52e2fa46fd1e2abd6bba80c954a
[ "MIT" ]
8
2019-06-26T14:16:23.000Z
2022-01-07T08:48:08.000Z
from datetime import datetime from decimal import Decimal from django.conf import settings from django.contrib.auth import get_user_model from django.shortcuts import render, redirect from django.http import HttpResponseRedirect, HttpResponse from django.views.generic import View, ListView from django.urls import reve...
40.994898
108
0.601369
824
8,035
5.745146
0.226942
0.035488
0.019011
0.026616
0.362062
0.317279
0.292353
0.278623
0.203845
0.182932
0
0.00142
0.299067
8,035
195
109
41.205128
0.839134
0.07094
0
0.335526
0
0
0.079769
0.01668
0
0
0
0
0
1
0.065789
false
0
0.111842
0.013158
0.315789
0.006579
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8be87a2381ba6a63956f68b01f8d66e526e6f9d0
21,478
py
Python
library.py
Kladmen228/kurs_work-c-
6648ca3d4f454aaa429993db80cd2fc6a3ab2bb4
[ "Apache-2.0" ]
2
2020-07-11T21:12:42.000Z
2020-07-11T21:49:22.000Z
library.py
Kladmen228/kurs_work-PP
6648ca3d4f454aaa429993db80cd2fc6a3ab2bb4
[ "Apache-2.0" ]
null
null
null
library.py
Kladmen228/kurs_work-PP
6648ca3d4f454aaa429993db80cd2fc6a3ab2bb4
[ "Apache-2.0" ]
null
null
null
# coding=utf8 import os from tkinter import messagebox from tkinter import ttk from tkinter import * import tkinter as tk import database from tkinter import filedialog databaseName = 'dataBase.db' who = 0 currentUserID = 0 currentTable = 0 root = tk.Tk() root.title("Библиотека") root.geometry("1750x500") root.resizab...
44.193416
122
0.648524
2,887
21,478
4.723935
0.117769
0.068778
0.037396
0.062912
0.532483
0.485775
0.399325
0.30591
0.27548
0.250403
0
0.047536
0.196853
21,478
485
123
44.284536
0.743072
0.004097
0
0.355505
0
0
0.122054
0.000982
0
0
0
0
0
1
0.034404
false
0.020642
0.016055
0
0.06422
0.020642
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8be8ad1bff74a971fe98e6113f758f85c95026e6
621
py
Python
utilities.py
tsilifis/BayesEmbed-mfGP
61ee75284bac34084ee4d171257023cc4d60c910
[ "MIT" ]
null
null
null
utilities.py
tsilifis/BayesEmbed-mfGP
61ee75284bac34084ee4d171257023cc4d60c910
[ "MIT" ]
null
null
null
utilities.py
tsilifis/BayesEmbed-mfGP
61ee75284bac34084ee4d171257023cc4d60c910
[ "MIT" ]
null
null
null
from datetime import datetime import numpy as np def add_basis_element(W): """ Given a D x d orthonormal matrix W (with d << D), it computes a new vector v that is orthogonal to all d columns of W and add it as an additional column. Return : D x (d+1) orthonormal matrix [W v] """ dim = W.shape[1] d = W.sha...
23
83
0.621578
123
621
3.105691
0.487805
0.02356
0.015707
0.052356
0.078534
0.078534
0
0
0
0
0
0.010204
0.21095
621
26
84
23.884615
0.769388
0.318841
0
0.133333
0
0
0.039024
0
0
0
0
0
0
1
0.133333
false
0
0.133333
0.066667
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8be92b2b82e61183cec9beb6bacf4eefc2f03ab0
4,049
py
Python
data/LoadingScripts/adapt_tcga.py
Bertinus/causal_cell_embedding
417b55749130fc7b7832fd3ee4c49feff4a04593
[ "MIT" ]
null
null
null
data/LoadingScripts/adapt_tcga.py
Bertinus/causal_cell_embedding
417b55749130fc7b7832fd3ee4c49feff4a04593
[ "MIT" ]
null
null
null
data/LoadingScripts/adapt_tcga.py
Bertinus/causal_cell_embedding
417b55749130fc7b7832fd3ee4c49feff4a04593
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd ######################################################################################################################## # Load data ######################################################################################################################## print("Adapt TCGA: Loadin...
46.011364
120
0.514942
358
4,049
5.586592
0.410615
0.06
0.085
0.0425
0.156
0.114
0.038
0
0
0
0
0.119562
0.210916
4,049
88
121
46.011364
0.506416
0.095826
0
0
0
0
0.35268
0.070673
0
0
0
0
0
1
0
false
0
0.039216
0
0.039216
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8bea72f709ee92f0256045645314ed84137d7a0e
6,924
py
Python
tests/test_share_resource/test_master_data.py
anhlt59/django_refactor
1b1d86af9f732a000e30feb7644f6ca60b6e516a
[ "MIT" ]
null
null
null
tests/test_share_resource/test_master_data.py
anhlt59/django_refactor
1b1d86af9f732a000e30feb7644f6ca60b6e516a
[ "MIT" ]
null
null
null
tests/test_share_resource/test_master_data.py
anhlt59/django_refactor
1b1d86af9f732a000e30feb7644f6ca60b6e516a
[ "MIT" ]
null
null
null
import pytest from app.share_resources.master_data.models import * # test company_type_category @pytest.mark.django_db class TestCompanyTypeCategory: def test_create(self, create_company_type_category): assert CompanyTypeCategory.objects.count() == 1 def test_update(self, create_company_type_categor...
33.941176
102
0.718515
869
6,924
5.408516
0.067894
0.044681
0.055319
0.051064
0.651064
0.593617
0.49
0.408511
0.328936
0.271064
0
0.005385
0.195407
6,924
203
103
34.108374
0.83827
0.03134
0
0.225352
0
0
0.047491
0
0
0
0
0
0.28169
1
0.211268
false
0
0.014085
0
0.295775
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8bec7a78ef815c669108337b9955421ae8412b87
1,192
py
Python
deep-rl/lib/python2.7/site-packages/OpenGL/raw/GL/ARB/get_program_binary.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/raw/GL/ARB/get_program_binary.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/raw/GL/ARB/get_program_binary.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GL import _types as _cs # End users want this... from OpenGL.raw.GL._types import * from OpenGL.raw.GL import _errors from OpenGL.constant import Constant as _C import ctypes _...
44.148148
119
0.833054
184
1,192
4.994565
0.369565
0.141458
0.097933
0.048966
0.352557
0.090316
0.090316
0.067465
0.067465
0
0
0.01435
0.064597
1,192
26
120
45.846154
0.809865
0.083893
0
0.136364
1
0
0.149309
0.149309
0
0
0.02212
0
0
1
0.181818
false
0.136364
0.272727
0.045455
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
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
4733f343c64441b45c6474b08ce6fa31a64e3fde
176
py
Python
hazm/utils.py
perryyo/hazm
8596ea060f0c241eba7dece3ad1db6baa36439ed
[ "MIT" ]
null
null
null
hazm/utils.py
perryyo/hazm
8596ea060f0c241eba7dece3ad1db6baa36439ed
[ "MIT" ]
null
null
null
hazm/utils.py
perryyo/hazm
8596ea060f0c241eba7dece3ad1db6baa36439ed
[ "MIT" ]
1
2018-12-09T05:16:06.000Z
2018-12-09T05:16:06.000Z
from os import path data_path = path.join(path.dirname(__file__), 'data') default_words = path.join(data_path, 'words.dat') default_verbs = path.join(data_path, 'verbs.dat')
25.142857
53
0.75
28
176
4.392857
0.428571
0.195122
0.195122
0.260163
0
0
0
0
0
0
0
0
0.102273
176
6
54
29.333333
0.778481
0
0
0
0
0
0.125714
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
4735a6be395ffd4914453c63b7dd438db0593092
629
py
Python
parseridge/parser/training/callbacks/save_model_callback.py
jgontrum/parseridge
f87ef82a9468addeb09a91c3b5310db38840bf0f
[ "Apache-2.0" ]
6
2019-10-06T23:00:29.000Z
2020-04-08T02:04:24.000Z
parseridge/parser/training/callbacks/save_model_callback.py
jgontrum/parseridge
f87ef82a9468addeb09a91c3b5310db38840bf0f
[ "Apache-2.0" ]
2
2020-04-28T12:06:23.000Z
2020-04-28T13:30:03.000Z
parseridge/parser/training/callbacks/save_model_callback.py
jgontrum/parseridge
f87ef82a9468addeb09a91c3b5310db38840bf0f
[ "Apache-2.0" ]
1
2019-12-23T00:53:38.000Z
2019-12-23T00:53:38.000Z
import os from typing import Any, Optional import torch from parseridge.parser.modules.data_parallel import Module from parseridge.parser.training.callbacks.base_callback import Callback class SaveModelCallback(Callback): _order = 5 def __init__(self, folder_path: Optional[str] = None): self.folder...
28.590909
77
0.696343
83
629
5.072289
0.542169
0.118765
0.095012
0
0
0
0
0
0
0
0
0.002004
0.206677
629
21
78
29.952381
0.841683
0
0
0.133333
0
0
0.052464
0.052464
0
0
0
0
0
1
0.133333
false
0
0.333333
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
4735d1f5a8954c473193826a0ee08dd64ab9a93e
35
py
Python
Training/pylens/__init__.py
Annarien/GravitationalLenses
c2606aacc62d2534fb199f5228dc21c0ea604251
[ "MIT" ]
null
null
null
Training/pylens/__init__.py
Annarien/GravitationalLenses
c2606aacc62d2534fb199f5228dc21c0ea604251
[ "MIT" ]
null
null
null
Training/pylens/__init__.py
Annarien/GravitationalLenses
c2606aacc62d2534fb199f5228dc21c0ea604251
[ "MIT" ]
null
null
null
import massmodel,pylens,MassModels
17.5
34
0.885714
4
35
7.75
1
0
0
0
0
0
0
0
0
0
0
0
0.057143
35
1
35
35
0.939394
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
473611358315db91be2c68a0523fa1b4712e6722
1,083
py
Python
conanfile.py
martinmoene/lest-conan-package
db0a1eda840e819edb0c1bb5dc4d8384d1a92c19
[ "MIT" ]
null
null
null
conanfile.py
martinmoene/lest-conan-package
db0a1eda840e819edb0c1bb5dc4d8384d1a92c19
[ "MIT" ]
null
null
null
conanfile.py
martinmoene/lest-conan-package
db0a1eda840e819edb0c1bb5dc4d8384d1a92c19
[ "MIT" ]
null
null
null
from contextlib import closing from tarfile import open as taropen from urllib2 import urlopen from conans import ConanFile class lestConan(ConanFile): name = "lest" version = "1.26.0" url = "https://github.com/martinmoene/lest-conan-package" license = "Boost 1.0" author = "Martin Moene (martin.m...
32.818182
104
0.644506
145
1,083
4.786207
0.468966
0.063401
0.073487
0.048991
0.207493
0.207493
0.115274
0.115274
0.115274
0.115274
0
0.01171
0.21145
1,083
32
105
33.84375
0.800937
0.1265
0
0
0
0
0.227176
0.047771
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
47364a3924f1597cca49227e92174ee485e954ae
555
py
Python
erp/migrations/0093_auto_20200922_0802.py
Foohx/acceslibre
55135e096f2ec4e413ff991f01c17f5e0d5925c0
[ "MIT" ]
8
2020-07-23T08:17:28.000Z
2022-03-09T22:31:36.000Z
erp/migrations/0093_auto_20200922_0802.py
Foohx/acceslibre
55135e096f2ec4e413ff991f01c17f5e0d5925c0
[ "MIT" ]
37
2020-07-01T08:47:33.000Z
2022-02-03T19:50:58.000Z
erp/migrations/0093_auto_20200922_0802.py
Foohx/acceslibre
55135e096f2ec4e413ff991f01c17f5e0d5925c0
[ "MIT" ]
4
2021-04-08T10:57:18.000Z
2022-01-31T13:16:31.000Z
# Generated by Django 3.1.1 on 2020-09-22 06:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('erp', '0092_merge_20200916_1733'), ] operations = [ migrations.AlterField( model_name='accessibilite', name='chemine...
29.210526
189
0.641441
65
555
5.353846
0.815385
0
0
0
0
0
0
0
0
0
0
0.07243
0.228829
555
18
190
30.833333
0.740654
0.081081
0
0
1
0
0.267717
0.110236
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4738887a5abd7d5e02db7c0d3385f50ba3f81899
8,290
py
Python
cli/cli.py
MustafaTheCoder/create-a-cli-tool
9f7c327927e22b390a58c8c8b599a59cad246f2e
[ "MIT" ]
3
2021-09-27T10:35:24.000Z
2021-10-02T08:16:46.000Z
cli/cli.py
MustafaTheCoder/create-a-cli-tool
9f7c327927e22b390a58c8c8b599a59cad246f2e
[ "MIT" ]
1
2021-09-22T15:44:30.000Z
2021-09-22T15:44:30.000Z
cli/cli.py
MustafaTheCoder/create-a-cli-tool
9f7c327927e22b390a58c8c8b599a59cad246f2e
[ "MIT" ]
3
2021-09-21T05:19:42.000Z
2021-10-02T08:16:48.000Z
import asyncio import sys from typing import Any, Callable, List, Optional, Union from .commands import Command from .commands import CommandGroup as Group from .errors import * class CLI: """ The CLI class it self, this will represent your cli. Parameters ----------- name: :class:`str` ...
30.932836
124
0.458987
801
8,290
4.677903
0.166042
0.038431
0.019215
0.035228
0.559381
0.473712
0.459301
0.443288
0.411529
0.326128
0
0.003042
0.444873
8,290
267
125
31.048689
0.811169
0.186731
0
0.545455
0
0
0.05011
0
0
0
0
0
0
1
0.056818
false
0
0.034091
0
0.130682
0.034091
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
47391c58cb36718e353c6d24ef9b6c3dc10d34e8
230
py
Python
propertiesTemplate/Fields/FieldTester.py
HenShalom/tableTransform
ede5c9ed3ecb32f74712778a6746b03773ac28ef
[ "Apache-2.0" ]
null
null
null
propertiesTemplate/Fields/FieldTester.py
HenShalom/tableTransform
ede5c9ed3ecb32f74712778a6746b03773ac28ef
[ "Apache-2.0" ]
null
null
null
propertiesTemplate/Fields/FieldTester.py
HenShalom/tableTransform
ede5c9ed3ecb32f74712778a6746b03773ac28ef
[ "Apache-2.0" ]
2
2019-11-20T02:47:23.000Z
2019-11-20T02:47:23.000Z
from propertiesTemplate.Fields.BasicField import BasicField from propertiesTemplate.Fields.ConstField import ConstField def get_field(value): if value[0] == '@': return BasicField(value) return ConstField(value)
25.555556
59
0.76087
25
230
6.96
0.52
0.252874
0.321839
0
0
0
0
0
0
0
0
0.005155
0.156522
230
8
60
28.75
0.891753
0
0
0
0
0
0.004348
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.833333
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
6
473931c03e87e8ad7ec18f92b6ba042e2eddadd3
494
py
Python
Alice/Sorting/selection_sort.py
sandeepm96/cormen-algos
9154f6ce9cb0c318bc0d6ecaa13676d080985cec
[ "MIT" ]
1
2017-09-15T13:34:19.000Z
2017-09-15T13:34:19.000Z
Alice/Sorting/selection_sort.py
sandeepm96/cormen-algos
9154f6ce9cb0c318bc0d6ecaa13676d080985cec
[ "MIT" ]
null
null
null
Alice/Sorting/selection_sort.py
sandeepm96/cormen-algos
9154f6ce9cb0c318bc0d6ecaa13676d080985cec
[ "MIT" ]
null
null
null
class SelectionSort: def __init__(self,array): self.array = array def result(self): n = len(self.array) for i in range(n): minimum = i for j in range(i+1,n): if self.array[minimum] > self.array[j]: minimum = j self.a...
29.058824
81
0.544534
66
494
4.015152
0.393939
0.339623
0.181132
0.226415
0.249057
0
0
0
0
0
0
0.002959
0.315789
494
16
82
30.875
0.781065
0
0
0
0
0
0.002024
0
0
0
0
0
0
1
0.133333
false
0
0
0
0.266667
0.066667
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
4739439933f695399a93b2006266d661c9ac6918
1,521
py
Python
sprint/DS-Unit-3-Sprint-3-Productization-and-Cloud/sprint/aq_dashboard.py
ndow33/DS-Unit-3-Sprint-3-Productization-and-Cloud
17ebfc34991649580fce24dae5c0a7933f5b3095
[ "MIT" ]
null
null
null
sprint/DS-Unit-3-Sprint-3-Productization-and-Cloud/sprint/aq_dashboard.py
ndow33/DS-Unit-3-Sprint-3-Productization-and-Cloud
17ebfc34991649580fce24dae5c0a7933f5b3095
[ "MIT" ]
null
null
null
sprint/DS-Unit-3-Sprint-3-Productization-and-Cloud/sprint/aq_dashboard.py
ndow33/DS-Unit-3-Sprint-3-Productization-and-Cloud
17ebfc34991649580fce24dae5c0a7933f5b3095
[ "MIT" ]
null
null
null
from flask import Flask from flask_sqlalchemy import SQLAlchemy import openaq import requests # connects to the api api = openaq.OpenAQ() # initialize the app APP = Flask(__name__) # configure the database APP.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db.sqlite3' DB = SQLAlchemy(APP) # define a fu...
27.160714
76
0.663379
212
1,521
4.632075
0.495283
0.040733
0.03055
0.026477
0
0
0
0
0
0
0
0.005973
0.229454
1,521
56
77
27.160714
0.831911
0.224852
0
0
0
0
0.131177
0.020665
0
0
0
0.017857
0
1
0.108108
false
0
0.108108
0.027027
0.432432
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
47398e6b8466cbdbb207c2820f76f1b99f1321a9
21,273
py
Python
circus/watcher.py
j4mie/circus
d026b692cc7c4ec57bed7aaa671fce561adc0f3d
[ "Apache-2.0" ]
1
2015-11-05T11:44:54.000Z
2015-11-05T11:44:54.000Z
circus/watcher.py
j4mie/circus
d026b692cc7c4ec57bed7aaa671fce561adc0f3d
[ "Apache-2.0" ]
null
null
null
circus/watcher.py
j4mie/circus
d026b692cc7c4ec57bed7aaa671fce561adc0f3d
[ "Apache-2.0" ]
null
null
null
import copy import errno import os import signal import time from psutil import STATUS_ZOMBIE, STATUS_DEAD, NoSuchProcess from zmq.utils.jsonapi import jsonmod as json from circus.process import Process, DEAD_OR_ZOMBIE, UNEXISTING from circus import logger from circus import util from circus.stream import get_pipe_re...
33.29108
79
0.56889
2,467
21,273
4.794893
0.143899
0.012681
0.025361
0.012089
0.268155
0.203483
0.176769
0.159692
0.157241
0.148618
0
0.003263
0.337282
21,273
638
80
33.34326
0.835792
0.024021
0
0.318408
0
0
0.055143
0
0
0
0
0
0
0
null
null
0.002488
0.029851
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4739f9dd85a98ca4914a3d95480d40fee9c3fdfc
192
py
Python
ex021.py
Jordemar-D-Bousquet/Exercicios_Python
705d4c83720db033841f01aa843e4dbab08f1423
[ "MIT" ]
null
null
null
ex021.py
Jordemar-D-Bousquet/Exercicios_Python
705d4c83720db033841f01aa843e4dbab08f1423
[ "MIT" ]
null
null
null
ex021.py
Jordemar-D-Bousquet/Exercicios_Python
705d4c83720db033841f01aa843e4dbab08f1423
[ "MIT" ]
null
null
null
# Faça um programa em Python que abra e reproduza o áudio de um arquivo MP3. from pygame import mixer mixer.init() mixer.music.load('ex021.mp3') mixer.music.play() input('Agora vc escuta?')
21.333333
76
0.744792
33
192
4.333333
0.818182
0.13986
0
0
0
0
0
0
0
0
0
0.030488
0.145833
192
8
77
24
0.841463
0.385417
0
0
0
0
0.215517
0
0
0
0
0
0
1
0
true
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
473a4e921e84f823480cb7ff0d481a46699ba915
15,171
py
Python
admin_views.py
JackCurragh/DARNED
13963d129bd8f69fb1106ad1f47394b3211a939c
[ "MIT" ]
null
null
null
admin_views.py
JackCurragh/DARNED
13963d129bd8f69fb1106ad1f47394b3211a939c
[ "MIT" ]
null
null
null
admin_views.py
JackCurragh/DARNED
13963d129bd8f69fb1106ad1f47394b3211a939c
[ "MIT" ]
null
null
null
from django.http import HttpResponseRedirect, HttpResponse from django.shortcuts import render_to_response from django.core.context_processors import csrf from admin_forms import * from django.template import loader,RequestContext from django.contrib.admin.views.decorators import staff_member_required from Human.mode...
40.564171
187
0.497265
1,703
15,171
4.409278
0.155608
0.006126
0.00799
0.010654
0.662805
0.646957
0.631642
0.571714
0.567186
0.555467
0
0.021577
0.355415
15,171
373
188
40.672922
0.746293
0.086283
0
0.645695
0
0.016556
0.053252
0.038226
0
0
0
0
0
0
null
null
0
0.033113
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
473a6e55a1141afc8bdd4f4dc054a62915b0f948
320
py
Python
Module 2/Chapter 7/ch7_yahooweatherapi.py
saicharanabhishek/machinelearning_examples
f89857ae7e1a2baa76951fe1d55541832d0f0d20
[ "MIT" ]
101
2016-11-08T11:17:55.000Z
2021-12-24T10:43:32.000Z
Module 2/Chapter 7/ch7_yahooweatherapi.py
saicharanabhishek/machinelearning_examples
f89857ae7e1a2baa76951fe1d55541832d0f0d20
[ "MIT" ]
2
2017-11-28T11:22:25.000Z
2019-02-12T17:09:18.000Z
Module 2/Chapter 7/ch7_yahooweatherapi.py
saicharanabhishek/machinelearning_examples
f89857ae7e1a2baa76951fe1d55541832d0f0d20
[ "MIT" ]
102
2016-10-22T12:14:23.000Z
2022-03-26T19:59:09.000Z
import urllib, json baseurl = 'https://query.yahooapis.com/v1/public/yql?' yql_query = "select item.condition from weather.forecast where woeid=9807" yql_url = baseurl + urllib.urlencode({'q':yql_query}) + "&format=json" result = urllib.urlopen(yql_url).read() data = json.loads(result) print data['query']['results']
32
74
0.7375
46
320
5.043478
0.673913
0.068966
0
0
0
0
0
0
0
0
0
0.017301
0.096875
320
9
75
35.555556
0.785467
0
0
0
0
0
0.396875
0
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
473a74f5da28e0b4ce33777ece6a2e2116a72644
1,697
py
Python
lib/assets/Lib/signal.py
s6007589/cafe-grader-web
18a993801c698fb7b7ec6ae5f4b67920503cb242
[ "MIT" ]
25
2016-09-04T07:34:13.000Z
2022-02-14T07:39:02.000Z
lib/assets/Lib/signal.py
it56660024/cafe-grader-web
e9a1305fd62e79e54f6961f97ddc5cd57bafd73c
[ "MIT" ]
25
2015-02-05T03:59:27.000Z
2022-02-11T16:54:04.000Z
lib/assets/Lib/signal.py
it56660024/cafe-grader-web
e9a1305fd62e79e54f6961f97ddc5cd57bafd73c
[ "MIT" ]
16
2016-09-05T00:30:27.000Z
2021-12-05T11:07:02.000Z
"""This module provides mechanisms to use signal handlers in Python. Functions: alarm() -- cause SIGALRM after a specified time [Unix only] setitimer() -- cause a signal (described below) after a specified float time and the timer may restart then [Unix only] getitimer() -- get current value of ...
32.634615
78
0.700059
240
1,697
4.891667
0.516667
0.027257
0.025554
0.025554
0.083475
0.0477
0
0
0
0
0
0.01324
0.243371
1,697
51
79
33.27451
0.90109
0.860931
0
0
0
0
0
0
0
0
0
0
0
1
0.071429
false
0.071429
0
0
0.071429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
473ed6ec1fc8acc6f0c2b764921eaea82a6ea886
400
py
Python
npc_engine/service_clients/__init__.py
npc-engine/npc-engine
0047794e96369c23515f794a1e77009c516a382c
[ "MIT" ]
12
2021-11-10T21:03:19.000Z
2022-03-21T21:55:34.000Z
npc_engine/service_clients/__init__.py
npc-engine/npc-engine
0047794e96369c23515f794a1e77009c516a382c
[ "MIT" ]
1
2021-12-05T14:51:44.000Z
2021-12-05T14:51:44.000Z
npc_engine/service_clients/__init__.py
npc-engine/npc-engine
0047794e96369c23515f794a1e77009c516a382c
[ "MIT" ]
null
null
null
# flake8: noqa """Module implementing the clients for services.""" from npc_engine.service_clients.text_generation_client import TextGenerationClient from npc_engine.service_clients.control_client import ControlClient from npc_engine.service_clients.sequence_classifier_client import ( SequenceClassifierClient,...
44.444444
83
0.8525
46
400
7.108696
0.521739
0.085627
0.159021
0.244648
0.330275
0
0
0
0
0
0
0.00277
0.0975
400
8
84
50
0.903047
0.1475
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
473f1e1eeb6b340b2ca16fc3da17da150f626195
661
py
Python
setup.py
libre-man/DJFeet
7517e7930bdc23d22765c64d7351d4011515dcaa
[ "MIT" ]
2
2018-09-29T22:41:28.000Z
2018-10-02T16:07:11.000Z
setup.py
libre-man/DJFeet
7517e7930bdc23d22765c64d7351d4011515dcaa
[ "MIT" ]
null
null
null
setup.py
libre-man/DJFeet
7517e7930bdc23d22765c64d7351d4011515dcaa
[ "MIT" ]
null
null
null
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'A program does that is a DJ by using feedback provided by the dancers.', 'author': 'Thomas Schaper', 'url': 'https://gitlab.com/SilentDiscoAsAService/DJFeet', 'download_url': 'https...
26.44
92
0.621785
73
661
5.520548
0.69863
0.044665
0.069479
0.084367
0.218362
0.218362
0
0
0
0
0
0.003876
0.219365
661
24
93
27.541667
0.777132
0
0
0
0
0
0.538578
0
0
0
0
0
0
1
0
false
0
0.136364
0
0.136364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0