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
1967b5cbe9cc4d8e1820eb5ee22aea8355578e45
8,306
py
Python
experiments/track_deep_trial.py
tcstewar/davis_tracking
4813eeaf66bdfad7b90f17831f6b0946daa8cbdf
[ "MIT" ]
5
2019-06-13T02:38:51.000Z
2021-07-29T03:32:41.000Z
experiments/track_deep_trial.py
tcstewar/davis_tracking
4813eeaf66bdfad7b90f17831f6b0946daa8cbdf
[ "MIT" ]
1
2019-08-05T17:30:31.000Z
2019-08-05T17:30:31.000Z
experiments/track_deep_trial.py
tcstewar/davis_tracking
4813eeaf66bdfad7b90f17831f6b0946daa8cbdf
[ "MIT" ]
3
2019-06-05T18:42:14.000Z
2019-06-19T19:36:02.000Z
import pytry import os import random import nengo import nengo_extras import numpy as np import nengo_dl import tensorflow as tf import davis_tracking class TrackingTrial(pytry.PlotTrial): def params(self): self.param('number of data sets to use', n_data=-1) self.param('data directory', dataset_d...
44.655914
131
0.567903
1,034
8,306
4.348162
0.181818
0.048043
0.019573
0.018906
0.355205
0.25089
0.216637
0.155694
0.155694
0.137456
0
0.023576
0.325909
8,306
185
132
44.897297
0.779425
0.010956
0
0.054422
0
0
0.062234
0
0
0
0
0
0
1
0.013605
false
0
0.061224
0
0.088435
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
196901465c6a28bf050c45315b7c684ef13a92ea
1,337
py
Python
apps/collection/tests/public/test_public_collection_list.py
magocod/django_repository
660664ba2321499e92c3c5c23719756db2569e90
[ "MIT" ]
1
2019-10-01T01:39:29.000Z
2019-10-01T01:39:29.000Z
apps/collection/tests/public/test_public_collection_list.py
magocod/django_repository
660664ba2321499e92c3c5c23719756db2569e90
[ "MIT" ]
7
2019-12-04T21:40:40.000Z
2020-06-26T21:49:51.000Z
apps/collection/tests/public/test_public_collection_list.py
magocod/django_repository
660664ba2321499e92c3c5c23719756db2569e90
[ "MIT" ]
1
2020-04-08T02:46:31.000Z
2020-04-08T02:46:31.000Z
""" ... """ # Django from django.conf import settings # local Django from apps.collection.models import Collection from apps.collection.serializers import CollectionSlugSerializer from apps.tests.fixtures import RepositoryTestCase PAGE_SIZE = settings.REST_FRAMEWORK["PAGE_SIZE"] class CollectionPublicListTest(Rep...
31.093023
86
0.703067
142
1,337
6.415493
0.359155
0.052689
0.083425
0.037322
0.645445
0.583974
0.583974
0.583974
0.583974
0.583974
0
0.006335
0.173523
1,337
42
87
31.833333
0.8181
0.026926
0
0.421053
0
0
0.086109
0.056052
0
0
0
0
0.315789
1
0.105263
false
0
0.210526
0
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
196a103d422e501e45fed5d95aa6423587fcbc43
2,033
py
Python
main.py
uditarora/fashion-product-classification
686f8a6c34c54f2a09baa7fba89fe446582e8408
[ "MIT" ]
9
2020-04-28T17:26:42.000Z
2021-07-13T14:47:42.000Z
main.py
uditarora/fashion-product-classification
686f8a6c34c54f2a09baa7fba89fe446582e8408
[ "MIT" ]
2
2021-09-08T01:55:51.000Z
2022-03-12T00:25:38.000Z
main.py
uditarora/fashion-product-classification
686f8a6c34c54f2a09baa7fba89fe446582e8408
[ "MIT" ]
1
2020-08-03T15:27:05.000Z
2020-08-03T15:27:05.000Z
import argparse import logging import os from src.train import setup_top20, setup_ft, setup_bottom logging.basicConfig(level=logging.INFO) logger = logging.getLogger('fashion') def main(data_path, ckpt_path, mt, train_bottom=False): # Train on top-20 classes (train subsplit) logger.info("Training on top-20 cl...
37.648148
98
0.711264
295
2,033
4.657627
0.291525
0.052402
0.046579
0.043668
0.229258
0.188501
0.188501
0.126638
0.075691
0.075691
0
0.02512
0.17757
2,033
53
99
38.358491
0.796651
0.084112
0
0
0
0
0.215401
0
0
0
0
0
0
1
0.025641
false
0
0.102564
0
0.128205
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
196bb8f934a37aeb286c8e9a73930e525b7e413c
8,508
py
Python
src/toil_scripts/transfer_gtex_to_s3/transfer_gtex_to_s3.py
BD2KGenomics/toil-scripts
f878d863defcdccaabb7fe06f991451b7a198fb7
[ "Apache-2.0" ]
33
2015-10-28T18:26:31.000Z
2021-10-10T21:19:31.000Z
src/toil_scripts/transfer_gtex_to_s3/transfer_gtex_to_s3.py
BD2KGenomics/toil-scripts
f878d863defcdccaabb7fe06f991451b7a198fb7
[ "Apache-2.0" ]
464
2015-08-11T04:12:10.000Z
2018-02-21T21:29:11.000Z
src/toil_scripts/transfer_gtex_to_s3/transfer_gtex_to_s3.py
BD2KGenomics/toil-scripts
f878d863defcdccaabb7fe06f991451b7a198fb7
[ "Apache-2.0" ]
21
2015-09-08T18:07:49.000Z
2020-11-24T01:02:08.000Z
#!/usr/bin/env python2.7 """ Toil script to move TCGA data into an S3 bucket. Dependencies Curl: apt-get install curl Docker: wget -qO- https://get.docker.com/ | sh Toil: pip install toil S3AM: pip install --pre s3am """ import argparse import glob import hashlib import os import shutil import su...
42.328358
118
0.629525
1,180
8,508
4.383051
0.266102
0.027069
0.023202
0.029776
0.20959
0.174014
0.152552
0.118329
0.076179
0.040603
0
0.015216
0.258463
8,508
201
119
42.328358
0.804565
0.239892
0
0.057851
0
0
0.171651
0.011931
0
0
0
0
0.041322
1
0.066116
false
0
0.066116
0
0.157025
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
196bec7ed8b6cf58b1516910c7416d81061dacce
1,885
py
Python
tests/metrics/cpu_psutil_tests.py
shareablee/apm-agent-python
29f12ceb410b3c1a7f933b29dcecccf628dbbb6c
[ "BSD-3-Clause" ]
null
null
null
tests/metrics/cpu_psutil_tests.py
shareablee/apm-agent-python
29f12ceb410b3c1a7f933b29dcecccf628dbbb6c
[ "BSD-3-Clause" ]
null
null
null
tests/metrics/cpu_psutil_tests.py
shareablee/apm-agent-python
29f12ceb410b3c1a7f933b29dcecccf628dbbb6c
[ "BSD-3-Clause" ]
null
null
null
import time import pytest from elasticapm.utils import compat cpu_psutil = pytest.importorskip("elasticapm.metrics.sets.cpu_psutil") pytestmark = pytest.mark.psutil def test_cpu_mem_from_psutil(): metricset = cpu_psutil.CPUMetricSet() # do something that generates some CPU load for i in compat.irange(1...
33.660714
97
0.658886
250
1,885
4.868
0.348
0.090386
0.139688
0.073952
0.607231
0.527527
0.410025
0.393591
0.263763
0.11668
0
0.013324
0.203714
1,885
55
98
34.272727
0.797468
0.164456
0
0.263158
0
0
0.294455
0.205864
0
0
0
0
0.210526
1
0.052632
false
0
0.131579
0
0.184211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
196e9f2b4480f78817f1f39de8dbbca5da718152
3,785
py
Python
day11/main.py
josteinl/advent2020
f109f9c1ef4fcb14582cda6b114d7648000decc6
[ "Apache-2.0" ]
null
null
null
day11/main.py
josteinl/advent2020
f109f9c1ef4fcb14582cda6b114d7648000decc6
[ "Apache-2.0" ]
null
null
null
day11/main.py
josteinl/advent2020
f109f9c1ef4fcb14582cda6b114d7648000decc6
[ "Apache-2.0" ]
null
null
null
""" Day 11 - Seating """ from itertools import chain import collections def occupied_count(seating): return ''.join(chain.from_iterable(seating)).count('#') def adjacent_occupied(x, y, seating): occupied = 0 # Above for look_x in range(x - 1, x + 2): for look_y in range(y - 1, y + 2): ...
29.115385
91
0.57675
534
3,785
3.874532
0.155431
0.100532
0.052199
0.057999
0.647173
0.544224
0.465926
0.465926
0.450459
0.450459
0
0.016147
0.296433
3,785
129
92
29.341085
0.760796
0.084016
0
0.463415
0
0
0.016527
0
0
0
0
0
0
1
0.097561
false
0
0.02439
0.012195
0.243902
0.012195
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1971dea6d61ad931626506926b94703bc0412249
2,843
py
Python
research/cv/yolox/src/boxes.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/yolox/src/boxes.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/yolox/src/boxes.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
30.569892
89
0.562082
418
2,843
3.638756
0.287081
0.087442
0.047337
0.04142
0.378041
0.330703
0.25904
0.192636
0.130835
0.105194
0
0.032471
0.25255
2,843
92
90
30.902174
0.683294
0.291242
0
0.136364
0
0
0.019812
0
0
0
0
0
0
1
0.068182
false
0
0.045455
0
0.159091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1973e78021509b21a44ae56187ef66052677e85e
2,029
py
Python
qa_multi_span/model.py
chunchiehy/musst
1525f917d8802d18c302720125ef9720b9c743fd
[ "MIT" ]
14
2021-02-26T15:19:21.000Z
2022-03-31T18:49:12.000Z
qa_multi_span/model.py
chunchiehy/musst
1525f917d8802d18c302720125ef9720b9c743fd
[ "MIT" ]
null
null
null
qa_multi_span/model.py
chunchiehy/musst
1525f917d8802d18c302720125ef9720b9c743fd
[ "MIT" ]
1
2021-11-16T07:20:32.000Z
2021-11-16T07:20:32.000Z
from transformers import AlbertModel from transformers import AlbertPreTrainedModel import torch.nn as nn import torch import torch.nn.functional as F class MUSTTransformerModel(AlbertPreTrainedModel): def __init__(self, config, max_num_spans, max_seq_len): super(MUSTTransformerModel, self).__init__(config) ...
33.816667
73
0.667817
254
2,029
4.952756
0.255906
0.078696
0.04372
0.035771
0.063593
0.044515
0
0
0
0
0
0.005921
0.250862
2,029
59
74
34.389831
0.821711
0.056678
0
0
0
0
0
0
0
0
0
0
0
1
0.043478
false
0
0.108696
0
0.195652
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19753cc35369937ec7625ed05051badbaa38c37c
1,160
py
Python
class_one/02_strings.py
nclairesays/intro-python-hackforla
65ab8584ab9d5082aaa405b40c47cbeacfff610c
[ "MIT" ]
null
null
null
class_one/02_strings.py
nclairesays/intro-python-hackforla
65ab8584ab9d5082aaa405b40c47cbeacfff610c
[ "MIT" ]
null
null
null
class_one/02_strings.py
nclairesays/intro-python-hackforla
65ab8584ab9d5082aaa405b40c47cbeacfff610c
[ "MIT" ]
null
null
null
# STRINGS # https://docs.python.org/3/tutorial/introduction.html#strings s = str(42) s # convert another data type into a string (casting) s = 'I like you' # examine a string s[0] # returns 'I' len(s) # returns 10 # string slicing like lists s[0:7] # returns 'I like ' s[6:] # returns 'you' s[-1] # returns...
22.745098
67
0.655172
186
1,160
4.080645
0.510753
0.02635
0.031621
0.051383
0.167325
0.083004
0
0
0
0
0
0.059276
0.214655
1,160
51
68
22.745098
0.773875
0.622414
0
0.111111
0
0
0.430657
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1975eb951bcdc39a34c55d4b1e7b13067352c07a
11,809
py
Python
amqpy/transport.py
veegee/amqpy
c5346b1f6910b8553ca96769d2c88a7807f83417
[ "MIT" ]
32
2015-02-04T03:57:28.000Z
2021-01-17T13:19:02.000Z
amqpy/transport.py
veegee/amqpy
c5346b1f6910b8553ca96769d2c88a7807f83417
[ "MIT" ]
33
2015-01-12T21:17:16.000Z
2018-03-14T22:54:13.000Z
amqpy/transport.py
veegee/amqpy
c5346b1f6910b8553ca96769d2c88a7807f83417
[ "MIT" ]
9
2015-02-17T04:44:31.000Z
2021-12-09T20:36:29.000Z
from __future__ import absolute_import, division, print_function __metaclass__ = type import errno import six import socket import ssl from abc import ABCMeta, abstractmethod import logging from threading import RLock from ssl import SSLError import datetime import time from . import compat from .proto import Frame f...
32.53168
110
0.597172
1,461
11,809
4.715264
0.225873
0.031354
0.013064
0.019161
0.280012
0.246044
0.203658
0.159675
0.125127
0.125127
0
0.006899
0.324922
11,809
362
111
32.621547
0.85725
0.35329
0
0.314286
0
0
0.021872
0
0
0
0.000568
0
0.005714
1
0.102857
false
0.017143
0.097143
0
0.285714
0.005714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19775af3ac0af2c8563350d3a05ceb55a427a779
639
py
Python
tracking/urls.py
KolibriSolutions/BepMarketplace
c47d252fd744cde6b927e37c34d7a103c6162be5
[ "BSD-3-Clause" ]
1
2019-06-29T15:24:24.000Z
2019-06-29T15:24:24.000Z
tracking/urls.py
KolibriSolutions/BepMarketplace
c47d252fd744cde6b927e37c34d7a103c6162be5
[ "BSD-3-Clause" ]
2
2020-01-12T17:47:33.000Z
2020-01-12T17:47:45.000Z
tracking/urls.py
KolibriSolutions/BepMarketplace
c47d252fd744cde6b927e37c34d7a103c6162be5
[ "BSD-3-Clause" ]
2
2019-06-29T15:24:26.000Z
2020-01-08T15:15:03.000Z
# Bep Marketplace ELE # Copyright (c) 2016-2021 Kolibri Solutions # License: See LICENSE file or https://github.com/KolibriSolutions/BepMarketplace/blob/master/LICENSE # from django.urls import path from . import views app_name = 'tracking' urlpatterns = [ path('user/login/', views.list_user_login, name='listu...
37.588235
102
0.744914
77
639
6.038961
0.61039
0.058065
0
0
0
0
0
0
0
0
0
0.014134
0.114241
639
16
103
39.9375
0.80742
0.255086
0
0
0
0
0.265957
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
197a1ef6fa46d979a05f557aa10ddfcfec221a69
5,301
py
Python
saefportal/saef/views/connection_view.py
harry-consulting/SAEF
12ef43bbcc3178b8a988e21c1bef035881cf6e6d
[ "BSD-2-Clause" ]
4
2020-12-16T13:14:26.000Z
2022-03-26T08:54:12.000Z
saefportal/saef/views/connection_view.py
harry-consulting/SAEF
12ef43bbcc3178b8a988e21c1bef035881cf6e6d
[ "BSD-2-Clause" ]
1
2022-03-26T09:09:04.000Z
2022-03-26T09:09:04.000Z
saefportal/saef/views/connection_view.py
harry-consulting/SAEF
12ef43bbcc3178b8a988e21c1bef035881cf6e6d
[ "BSD-2-Clause" ]
1
2020-12-16T13:20:17.000Z
2020-12-16T13:20:17.000Z
from saef.connections import ConnectionFormHelper from ..models import Connection from ..forms import ConnectionTypeForm from saefportal.settings import MSG_SUCCESS_CONNECTION_UPDATE, MSG_SUCCESS_CONNECTION_VALID, \ MSG_ERROR_CONNECTION_INVALID, MSG_SUCCESS_CONNECTION_SAVED, MSG_ERROR_CONNECTION_SELECT_INVALID, \ ...
41.414063
105
0.716469
580
5,301
6.215517
0.139655
0.08932
0.037448
0.062136
0.556172
0.527046
0.457143
0.427739
0.332039
0.300971
0
0.001412
0.198642
5,301
127
106
41.740157
0.847222
0
0
0.409524
0
0
0.088097
0.018676
0
0
0
0
0
1
0.038095
false
0
0.085714
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
197a2e031fcb6bc8c3c7153d570a652bf400420f
6,206
py
Python
modules/niftitools.py
NeuroSainteAnne/synthFLAIR
ddb083e0ddbb5a7a3131e947c8a84809f25b93a1
[ "BSD-3-Clause" ]
2
2022-01-09T11:25:40.000Z
2022-03-24T04:00:11.000Z
modules/niftitools.py
yunfei920406/synthFLAIR
ddb083e0ddbb5a7a3131e947c8a84809f25b93a1
[ "BSD-3-Clause" ]
null
null
null
modules/niftitools.py
yunfei920406/synthFLAIR
ddb083e0ddbb5a7a3131e947c8a84809f25b93a1
[ "BSD-3-Clause" ]
2
2022-03-24T04:00:17.000Z
2022-03-25T00:36:13.000Z
import os import pydicom import glob import numpy as np import nibabel as nib from skimage import filters, morphology from scipy.ndimage.morphology import binary_fill_holes from scipy.ndimage import label from dipy.segment.mask import median_otsu def padvolume(volume): "Applies a padding/cropping to a volume in or...
31.502538
91
0.618595
838
6,206
4.497613
0.220764
0.05731
0.021226
0.020695
0.122314
0.059432
0.03741
0.023879
0.023879
0.023879
0
0.094673
0.25282
6,206
197
92
31.502538
0.718137
0.084434
0
0.059603
0
0
0.048452
0
0
0
0
0
0
1
0.092715
false
0
0.059603
0
0.238411
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
197baac1afa4b35de9d60fc8d92a0d5870b20c39
1,937
py
Python
recognition.py
1159186649/Raspberry-Car
d1114793dd45be4e60a5d8a8da57b01ae3210f94
[ "Apache-2.0" ]
1
2020-11-04T02:28:32.000Z
2020-11-04T02:28:32.000Z
recognition.py
1159186649/Raspberry-Car
d1114793dd45be4e60a5d8a8da57b01ae3210f94
[ "Apache-2.0" ]
null
null
null
recognition.py
1159186649/Raspberry-Car
d1114793dd45be4e60a5d8a8da57b01ae3210f94
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from aip import AipFace from picamera import PiCamera import urllib.request import RPi.GPIO as GPIO import base64 import time import Main #百度智能云人脸识别id、key APP_ID = '*****' API_KEY = '**********' SECRET_KEY ='**********' client = AipFace(APP_ID, API_KEY, SECRE...
25.826667
87
0.573051
231
1,937
4.683983
0.502165
0.033272
0.027726
0.020333
0.075786
0.036969
0
0
0
0
0
0.029371
0.261745
1,937
74
88
26.175676
0.727273
0.224574
0
0.125
0
0
0.164393
0
0
0
0
0
0
1
0.041667
false
0
0.145833
0
0.291667
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
197f119da149ba3627c410ef123a293d7183c17e
4,986
py
Python
rssxkcd.py
bkentropy/xkcd-updater
732b60428a9fdc79c2cd847623c7416cb4b6022d
[ "MIT" ]
null
null
null
rssxkcd.py
bkentropy/xkcd-updater
732b60428a9fdc79c2cd847623c7416cb4b6022d
[ "MIT" ]
null
null
null
rssxkcd.py
bkentropy/xkcd-updater
732b60428a9fdc79c2cd847623c7416cb4b6022d
[ "MIT" ]
null
null
null
#!/usr/local/bin/python2 import argparse import requests import feedparser import time import sys import sqlite3 import datetime # Command line args parser = argparse.ArgumentParser(description='Provide HipChat integration url to post xkcd comics') parser.add_argument('url', type=str, help='(string) a special url for ...
33.689189
113
0.583233
632
4,986
4.511076
0.265823
0.036478
0.028411
0.026307
0.27429
0.201684
0.130831
0.098913
0.075061
0.075061
0
0.006663
0.277577
4,986
147
114
33.918367
0.784842
0.056558
0
0.186992
0
0
0.170467
0.004475
0
0
0
0.006803
0
1
0.081301
false
0
0.056911
0
0.195122
0.065041
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1982e8dcbffc500675e9501f2db4214567aa2081
24,054
py
Python
boundaries/ca_qc_districts/definition.py
imhangoo/represent-canada-data
0d9cc818b343079f81a00c15438d79c079a10c9b
[ "OML" ]
null
null
null
boundaries/ca_qc_districts/definition.py
imhangoo/represent-canada-data
0d9cc818b343079f81a00c15438d79c079a10c9b
[ "OML" ]
null
null
null
boundaries/ca_qc_districts/definition.py
imhangoo/represent-canada-data
0d9cc818b343079f81a00c15438d79c079a10c9b
[ "OML" ]
null
null
null
# coding: utf-8 import re from datetime import date import boundaries # Noting that the "union" merge strategy fails with: # # GEOS_ERROR: TopologyException: found non-noded intersection between # LINESTRING (...) and LINESTRING (...) # # django.contrib.gis.geos.error.GEOSException: Could not initialize G...
42.877005
186
0.61204
2,645
24,054
5.528166
0.342533
0.030844
0.050472
0.05608
0.25742
0.242443
0.230338
0.130352
0.130352
0.122555
0
0.096505
0.197015
24,054
560
187
42.953571
0.659021
0.059491
0
0.107071
0
0.014141
0.50341
0.181029
0
0
0
0
0
1
0.006061
false
0
0.010101
0
0.046465
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
198370b8aa4515542204d0344e7d286fb2f76907
1,803
py
Python
pdbfairy/commands/compare_interactions.py
dannyroberts/pdbfairy
2cefd4a5e6c40f32e6fa3974ffd595fc336c582b
[ "BSD-3-Clause" ]
null
null
null
pdbfairy/commands/compare_interactions.py
dannyroberts/pdbfairy
2cefd4a5e6c40f32e6fa3974ffd595fc336c582b
[ "BSD-3-Clause" ]
null
null
null
pdbfairy/commands/compare_interactions.py
dannyroberts/pdbfairy
2cefd4a5e6c40f32e6fa3974ffd595fc336c582b
[ "BSD-3-Clause" ]
null
null
null
import difflib import io import click from pdbfairy import utils from pdbfairy.commands import find_interactions @click.argument('pdb_file_1') @click.argument('pdb_file_2') @click.option('--max-distance', default=find_interactions.MAX_DISTANCE, help=( "The distance in Angstroms under which atoms should " "b...
33.388889
78
0.653356
233
1,803
4.832618
0.313305
0.0746
0.028419
0.035524
0.286856
0.101243
0
0
0
0
0
0.019512
0.204104
1,803
53
79
34.018868
0.765157
0.035496
0
0.071429
0
0
0.142774
0
0
0
0
0
0
1
0.02381
false
0.02381
0.119048
0
0.142857
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1983c2bf22bdcb42a662ebdbf2a359de7f422d6f
444
py
Python
accelerator/migrations/023_alter_topics_field_office_hours.py
masschallenge/django-accelerator
8af898b574be3b8335edc8961924d1c6fa8b5fd5
[ "MIT" ]
6
2017-06-14T19:34:01.000Z
2020-03-08T07:16:59.000Z
accelerator/migrations/023_alter_topics_field_office_hours.py
masschallenge/django-accelerator
8af898b574be3b8335edc8961924d1c6fa8b5fd5
[ "MIT" ]
160
2017-06-20T17:12:13.000Z
2022-03-30T13:53:12.000Z
accelerator/migrations/023_alter_topics_field_office_hours.py
masschallenge/django-accelerator
8af898b574be3b8335edc8961924d1c6fa8b5fd5
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accelerator', '0022_add_meeting_info_on_office_hour_model'), ] operations = [ migrations.AlterField( model_name='mentorprogramofficehour...
23.368421
76
0.655405
42
444
6.595238
0.809524
0
0
0
0
0
0
0
0
0
0
0.023881
0.245496
444
18
77
24.666667
0.802985
0
0
0
0
0
0.184685
0.146396
0
0
0
0
0
1
0
false
0
0.153846
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
198549dbef342bfbbd642fd61a76b181c129ac11
1,085
py
Python
guanabara/mundo1/ex018.py
thekilian/Python-pratica
875661addd5b8eb4364bc638832c7ab55dcefce4
[ "MIT" ]
null
null
null
guanabara/mundo1/ex018.py
thekilian/Python-pratica
875661addd5b8eb4364bc638832c7ab55dcefce4
[ "MIT" ]
null
null
null
guanabara/mundo1/ex018.py
thekilian/Python-pratica
875661addd5b8eb4364bc638832c7ab55dcefce4
[ "MIT" ]
null
null
null
# 018 - Faça um programa que leia um ângulo qualquer e mostre na tela o valor do seno, cosseno e tangente desse ângulo. ''' from math import sin, cos, tan ang = float(input('Digite um ângulo: ')) sen = sin(ang) cos = cos(ang) tan = tan(ang) print('Ângulo de {}°: \n Seno = {:.2f} \n Cosseno = {:.2f} \n Tangente = {:....
31
119
0.648848
181
1,085
3.900552
0.265193
0.09915
0.077904
0.080737
0.454674
0.430595
0.314448
0.271955
0.17847
0.17847
0
0.01323
0.164055
1,085
35
120
31
0.762955
0.375115
0
0
0
0.166667
0.332103
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1989abd5efbf0b7dfe6d6083f611454b62427f76
654
py
Python
exp1_bot_detection/Cresci/Cresci.py
GabrielHam/SATAR_Twitter_Bot_Detection_with_Self-supervised_User_Representation_Learning
ac73e5deb9d748f02d1396d1458e716408470cc9
[ "MIT" ]
5
2021-08-10T14:15:18.000Z
2022-03-09T07:06:19.000Z
exp1_bot_detection/Cresci/Cresci.py
GabrielHam/SATAR_Twitter_Bot_Detection_with_Self-supervised_User_Representation_Learning
ac73e5deb9d748f02d1396d1458e716408470cc9
[ "MIT" ]
null
null
null
exp1_bot_detection/Cresci/Cresci.py
GabrielHam/SATAR_Twitter_Bot_Detection_with_Self-supervised_User_Representation_Learning
ac73e5deb9d748f02d1396d1458e716408470cc9
[ "MIT" ]
null
null
null
import math result = [1] * 4355 list = [] flag = '' def issub(strrr): global list cnt = 0 for dna in list: if strrr in dna: cnt = cnt + 1 return cnt def tryy(strrr): num = issub(strrr) if num > 1: for tmp in range(num): result[tmp] = max(result[tmp], ...
15.571429
63
0.524465
97
654
3.525773
0.474227
0.105263
0
0
0
0
0
0
0
0
0
0.028953
0.313456
654
41
64
15.95122
0.732739
0
0
0
0
0
0.063077
0.043077
0
0
0
0
0
1
0.071429
false
0
0.035714
0
0.142857
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
198aafa829b773ab465bf52f7c98972087fa1385
3,119
py
Python
examples/smiley_face.py
Markichu/PythonAutoNifty
ab646601058297b6bfe14332f17b836ee3dfbe69
[ "MIT" ]
null
null
null
examples/smiley_face.py
Markichu/PythonAutoNifty
ab646601058297b6bfe14332f17b836ee3dfbe69
[ "MIT" ]
6
2021-11-24T00:48:57.000Z
2022-03-17T07:51:36.000Z
examples/smiley_face.py
Markichu/PythonAutoNifty
ab646601058297b6bfe14332f17b836ee3dfbe69
[ "MIT" ]
null
null
null
import random from pyautonifty.constants import DRAWING_SIZE, YELLOW, BLACK, MAGENTA, BLUE from pyautonifty.pos import Pos from pyautonifty.drawing import Drawing from pyautonifty.renderer import Renderer def smiley_face(drawing): # Set a background colour to be used for the drawing background_colour = MAGEN...
43.319444
114
0.721064
435
3,119
4.850575
0.314943
0.072986
0.042654
0.028436
0.23128
0.208531
0.208531
0.178199
0.145024
0.120379
0
0.022409
0.198782
3,119
71
115
43.929577
0.821929
0.167041
0
0
0
0
0.076625
0.032508
0
0
0
0
0
1
0.020833
false
0
0.125
0
0.166667
0.020833
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
198b6c8bdf9c4c45a62fc10ae148a99e4911a2b1
1,074
py
Python
cumulusci/tests/test_schema.py
davisagli/CumulusCI
fd74c324ad3ff662484b159395c639879011e711
[ "BSD-3-Clause" ]
109
2015-01-20T14:28:48.000Z
2018-08-31T12:12:39.000Z
cumulusci/tests/test_schema.py
davisagli/CumulusCI
fd74c324ad3ff662484b159395c639879011e711
[ "BSD-3-Clause" ]
365
2015-01-07T19:54:25.000Z
2018-09-11T15:10:02.000Z
cumulusci/tests/test_schema.py
davisagli/CumulusCI
fd74c324ad3ff662484b159395c639879011e711
[ "BSD-3-Clause" ]
125
2015-01-17T16:05:39.000Z
2018-09-06T19:05:00.000Z
import json import yaml from jsonschema import validate from cumulusci.utils.yaml import cumulusci_yml class TestSchema: def test_schema_validates(self, cumulusci_test_repo_root): schemapath = ( cumulusci_test_repo_root / "cumulusci/schema/cumulusci.jsonschema.json" ) with op...
32.545455
96
0.666667
129
1,074
5.341085
0.333333
0.09434
0.123367
0.152395
0.377358
0.261248
0.261248
0.261248
0.261248
0.261248
0
0
0.257914
1,074
32
97
33.5625
0.864492
0
0
0.24
0
0
0.211359
0.102421
0
0
0
0
0.08
1
0.08
false
0
0.16
0
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
198b7bfde744c3980b7b517559c0d495392afa36
7,650
py
Python
luxon/core/networking/sock.py
HieronymusCrouse/luxon
b0b08c103936adcbb3dd03b1701d44a65de8f61e
[ "BSD-3-Clause" ]
7
2018-02-27T00:18:02.000Z
2019-05-16T16:57:00.000Z
luxon/core/networking/sock.py
HieronymusCrouse/luxon
b0b08c103936adcbb3dd03b1701d44a65de8f61e
[ "BSD-3-Clause" ]
47
2018-01-23T13:49:28.000Z
2019-06-06T13:14:59.000Z
luxon/core/networking/sock.py
HieronymusCrouse/luxon
b0b08c103936adcbb3dd03b1701d44a65de8f61e
[ "BSD-3-Clause" ]
14
2018-01-15T08:47:11.000Z
2019-12-27T12:05:41.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2019-2020 Christiaan Frans Rademan <chris@fwiw.co.za>. # 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 ...
33.116883
79
0.555817
794
7,650
5.215365
0.278338
0.075344
0.055059
0.032601
0.369717
0.305723
0.241971
0.203091
0.203091
0.183289
0
0.005738
0.362092
7,650
230
80
33.26087
0.842828
0.218693
0
0.531429
0
0
0.019852
0
0
0
0
0
0
1
0.108571
false
0.017143
0.034286
0.011429
0.245714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
198cce97dd571e2e8a46ea89d848568e280efd25
739
py
Python
merge.py
Graze-Lab/SDE-of-species
c53ca05ff840e722fec3d71b5794057713d221f8
[ "MIT" ]
null
null
null
merge.py
Graze-Lab/SDE-of-species
c53ca05ff840e722fec3d71b5794057713d221f8
[ "MIT" ]
null
null
null
merge.py
Graze-Lab/SDE-of-species
c53ca05ff840e722fec3d71b5794057713d221f8
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 "A script to perform the linear regression and create the plot." # Python program to # demonstrate merging of # two files # Creating a list of filenames filenames = ['A.591-search-immune-dmel-FlyBase_IDs.txt', 'B.432_search-defense-dmel-FlyBase_IDs.txt'] # Open file3 in write mode with open(...
26.392857
101
0.653586
110
739
4.354545
0.563636
0.068894
0.087683
0.106472
0.100209
0
0
0
0
0
0
0.021661
0.250338
739
27
102
27.37037
0.84296
0.464141
0
0
0
0
0.425056
0.279642
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1992027ec84925790a7d6fb4bda0cd8820388c0a
2,891
py
Python
src/rhc_hqa/rhc_hqa.py
Minyus/rhc_hqa
2b9f37a8b6ddb9dd36c08764acd2dcf9cbd7c551
[ "Apache-2.0" ]
null
null
null
src/rhc_hqa/rhc_hqa.py
Minyus/rhc_hqa
2b9f37a8b6ddb9dd36c08764acd2dcf9cbd7c551
[ "Apache-2.0" ]
null
null
null
src/rhc_hqa/rhc_hqa.py
Minyus/rhc_hqa
2b9f37a8b6ddb9dd36c08764acd2dcf9cbd7c551
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np from sklearn.linear_model import LogisticRegression from lightgbm import LGBMRegressor def cv_index_list_to_df(d): out_dict = {} for group, index_list in d.items(): for index in index_list: out_dict[index] = group df = pd.DataFrame.from_dict(out_d...
32.852273
80
0.649256
400
2,891
4.29
0.215
0.04662
0.04662
0.045455
0.200466
0.184149
0.041958
0.041958
0.041958
0
0
0.014034
0.235905
2,891
87
81
33.229885
0.762789
0
0
0.030303
0
0
0.097198
0.022484
0
0
0
0
0
1
0.030303
false
0
0.090909
0
0.151515
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1992310a23c16a6b24ee79181f9ba76bf057b0f3
2,301
py
Python
257.py
wilbertgeng/LeetCode_exercise
f00c08e0d28ffa88d61d4262c6d1f49f1fa91ebc
[ "MIT" ]
null
null
null
257.py
wilbertgeng/LeetCode_exercise
f00c08e0d28ffa88d61d4262c6d1f49f1fa91ebc
[ "MIT" ]
null
null
null
257.py
wilbertgeng/LeetCode_exercise
f00c08e0d28ffa88d61d4262c6d1f49f1fa91ebc
[ "MIT" ]
null
null
null
"""257. Binary Tree Paths""" # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution(object): def binaryTreePaths(self, root): """ :type roo...
29.883117
72
0.49761
276
2,301
4.119565
0.17029
0.084433
0.079156
0.063325
0.430079
0.335092
0.319261
0.153914
0.129288
0.129288
0
0.004051
0.356367
2,301
76
73
30.276316
0.763673
0.12299
0
0.433962
0
0
0.008167
0
0
0
0
0
0
1
0.09434
false
0
0
0
0.301887
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1993e0484cd76cbe8ee03395dd60ee7a00db241f
2,179
py
Python
crm/forms.py
zhangyafeii/CRM
4d93fb276c7210676590da48b18d8e72cc202ef0
[ "MIT" ]
null
null
null
crm/forms.py
zhangyafeii/CRM
4d93fb276c7210676590da48b18d8e72cc202ef0
[ "MIT" ]
null
null
null
crm/forms.py
zhangyafeii/CRM
4d93fb276c7210676590da48b18d8e72cc202ef0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @Datetime: 2018/10/23 @Author: Zhang Yafei """ from django.forms import ModelForm, forms from crm import models class EnrollmentForm(ModelForm): def __new__(cls, *args, **kwargs): # print('__new__',cls,args,kwargs) for field_name in cls.base_fields: file_ob...
35.145161
119
0.620009
254
2,179
5.019685
0.346457
0.028235
0.031373
0.050196
0.486275
0.458039
0.458039
0.392157
0.392157
0.392157
0
0.005535
0.253786
2,179
61
120
35.721311
0.778598
0.114273
0
0.5
0
0
0.146583
0.011476
0
0
0
0
0
1
0.1
false
0
0.05
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
199526a23444f21fe4ced48163607211a83fd853
3,911
py
Python
api/user_api.py
HuQi2018/BiSheServer
66fd77865e131f0a06313562b5d127e530128944
[ "Apache-2.0" ]
44
2021-06-03T04:01:30.000Z
2022-03-31T15:46:00.000Z
api/user_api.py
HuQi2018/BiSheServer
66fd77865e131f0a06313562b5d127e530128944
[ "Apache-2.0" ]
1
2022-02-21T05:40:01.000Z
2022-03-17T10:50:51.000Z
api/user_api.py
HuQi2018/BiSheServer
66fd77865e131f0a06313562b5d127e530128944
[ "Apache-2.0" ]
8
2021-06-05T17:13:35.000Z
2022-03-24T05:04:30.000Z
import uuid from django.core.files.base import ContentFile from django.core.files.storage import default_storage from django.db.models import Q from BiSheServer import settings from api.model_json import queryset_to_json from user.models import UsersPerfer, UsersDetail, UserTag # 用户api class User: def __init__(...
35.554545
116
0.611864
477
3,911
4.698113
0.272537
0.080321
0.035698
0.029005
0.21419
0.147702
0.147702
0.147702
0.134761
0.134761
0
0.004367
0.297366
3,911
109
117
35.880734
0.811135
0.076451
0
0.2125
0
0
0.049582
0.00585
0
0
0
0
0
1
0.125
false
0.0125
0.0875
0.0125
0.35
0.0125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
199538a4a4f978d0b56aadb122776630718bac24
1,777
py
Python
Diretide/lib.py
sleibrock/dotacli
e361fbcf787f13232fcf8994b839d4c9f08bc67a
[ "MIT" ]
null
null
null
Diretide/lib.py
sleibrock/dotacli
e361fbcf787f13232fcf8994b839d4c9f08bc67a
[ "MIT" ]
null
null
null
Diretide/lib.py
sleibrock/dotacli
e361fbcf787f13232fcf8994b839d4c9f08bc67a
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*- coding: utf-8 -*- """ lib.py """ from string import printable as printable_chrs from collections import namedtuple from requests import get as re_get from datetime import datetime # Define constants API_URL = "http://dailydota2.com/match-api" Match = namedtuple("Match", ["timediff", "seri...
26.924242
78
0.621835
234
1,777
4.602564
0.461538
0.03714
0.031569
0
0
0
0
0
0
0
0
0.00656
0.227912
1,777
65
79
27.338462
0.778426
0.214969
0
0.057143
0
0
0.215474
0.031815
0
0
0
0
0
1
0.142857
false
0
0.114286
0.057143
0.371429
0.228571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1996ff9cbd376245bbd4ada8ffdff6a62803fa08
417
py
Python
hash-tool/vv_hash.py
amjunliang/virtualview_tools
7fcf62134b0a23a71bb8f4b54a6aac19cf858ef6
[ "MIT" ]
186
2017-12-06T09:17:07.000Z
2022-01-10T04:04:09.000Z
hash-tool/vv_hash.py
amjunliang/virtualview_tools
7fcf62134b0a23a71bb8f4b54a6aac19cf858ef6
[ "MIT" ]
16
2017-12-18T04:15:57.000Z
2021-04-15T06:50:37.000Z
hash-tool/vv_hash.py
amjunliang/virtualview_tools
7fcf62134b0a23a71bb8f4b54a6aac19cf858ef6
[ "MIT" ]
47
2018-01-12T06:23:26.000Z
2022-02-22T05:56:59.000Z
import sys if len(sys.argv) <= 1: print("python vv_hash.py property_name") exit(0) propertyName = sys.argv[1] if len(propertyName) == 0: print("empty element name") exit(0) hashCode = 0 for i in range(0, len(propertyName)): hashCode = (31 * hashCode + ord(propertyName[i])) & 0xFFFFFFFF if has...
24.529412
66
0.654676
57
417
4.754386
0.526316
0.0369
0.059041
0
0
0
0
0
0
0
0
0.066465
0.206235
417
17
67
24.529412
0.752266
0
0
0.142857
0
0
0.148325
0
0
0
0.074163
0
0
1
0
false
0
0.071429
0
0.071429
0.214286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
199c463aaa4e8ff9bc128e9fe6eb09901f8c3ffb
2,354
py
Python
API/AdminPanel/smoke_all_pages/credentials.py
Mikhail-QA/HS
8ddbc09a0d1493128f3af6b8078c295609908dd7
[ "Apache-2.0" ]
null
null
null
API/AdminPanel/smoke_all_pages/credentials.py
Mikhail-QA/HS
8ddbc09a0d1493128f3af6b8078c295609908dd7
[ "Apache-2.0" ]
null
null
null
API/AdminPanel/smoke_all_pages/credentials.py
Mikhail-QA/HS
8ddbc09a0d1493128f3af6b8078c295609908dd7
[ "Apache-2.0" ]
null
null
null
# Админка раздел редактор курсов # Энпоинты меню редактора курсов ДШ в тек. уг path_admin_schedules_grade_1 = '/schedules?grade=1&school=true&' path_admin_schedules_grade_2 = '/schedules?grade=2&school=true&' path_admin_schedules_grade_3 = '/schedules?grade=3&school=true&' path_admin_schedules_grade_4 = '/schedules?gra...
52.311111
193
0.800765
322
2,354
5.493789
0.301242
0.137366
0.111928
0.143019
0.226116
0.226116
0.03957
0
0
0
0
0.04073
0.092608
2,354
44
194
53.5
0.787453
0.184792
0
0.058824
0
0.029412
0.434966
0.350711
0
0
0
0
0
1
0.058824
false
0
0
0
0.088235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
199d8a7e9157f48b6df5a88dec9570242bb4b50a
963
py
Python
2021/aoc07.py
wolfgangmuender/AdventOfCode
3956c245f6d3e789cb5424ac54832ebcfc03eb21
[ "Apache-2.0" ]
null
null
null
2021/aoc07.py
wolfgangmuender/AdventOfCode
3956c245f6d3e789cb5424ac54832ebcfc03eb21
[ "Apache-2.0" ]
null
null
null
2021/aoc07.py
wolfgangmuender/AdventOfCode
3956c245f6d3e789cb5424ac54832ebcfc03eb21
[ "Apache-2.0" ]
null
null
null
with open("input/input07.txt") as f: content = f.read().splitlines() positions = list(map(lambda x: int(x), content[0].split(","))) max_pos = max(positions) min_pos = min(positions) possible_pos = range(min_pos, max_pos + 1) fuel_costs1 = [] for align_pos in possible_pos: fuel_costs1.append(sum([abs(pos - al...
35.666667
118
0.74351
154
963
4.402597
0.324675
0.079646
0.088496
0.061947
0.321534
0.321534
0.244838
0.162242
0.162242
0.162242
0
0.030952
0.127726
963
26
119
37.038462
0.77619
0
0
0.111111
0
0
0.15784
0
0
0
0
0
0
1
0
false
0
0
0
0
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
199dc81e3c59d04bf93fe983d5b45a4485997a89
2,227
py
Python
sources/install_deps.py
Radeon4650/PocketBudgetTracker
61b792f648e73e8043e42e0e1c55b3acf1868f90
[ "Apache-2.0" ]
1
2018-12-03T12:41:50.000Z
2018-12-03T12:41:50.000Z
sources/install_deps.py
Radeon4650/PocketBudgetTracker
61b792f648e73e8043e42e0e1c55b3acf1868f90
[ "Apache-2.0" ]
16
2018-10-08T17:37:52.000Z
2019-01-06T12:02:54.000Z
sources/install_deps.py
Radeon4650/PocketBudgetTracker
61b792f648e73e8043e42e0e1c55b3acf1868f90
[ "Apache-2.0" ]
1
2018-10-11T20:01:05.000Z
2018-10-11T20:01:05.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright © 2018 PocketBudgetTracker. All rights reserved. Author: Andrey Shelest (khadsl1305@gmail.com) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the Licens...
28.922078
76
0.671756
297
2,227
4.882155
0.451178
0.041379
0.022759
0.022069
0
0
0
0
0
0
0
0.008646
0.220925
2,227
76
77
29.302632
0.826513
0.322407
0
0
0
0
0.141522
0
0
0
0
0
0
1
0.105263
false
0
0.105263
0
0.289474
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
199fc92154f499c85aed3bce44e91934109ae7d3
5,305
py
Python
tools/utils/building/layer.py
shinh/dldt
693ab4e79a428e0801f17f4511b129a3fa8f4a62
[ "Apache-2.0" ]
1
2021-02-20T21:48:36.000Z
2021-02-20T21:48:36.000Z
tools/utils/building/layer.py
erinpark33/dldt
edd86d090592f7779f4dbb2681546e1f4e81284f
[ "Apache-2.0" ]
null
null
null
tools/utils/building/layer.py
erinpark33/dldt
edd86d090592f7779f4dbb2681546e1f4e81284f
[ "Apache-2.0" ]
1
2021-02-19T01:06:12.000Z
2021-02-19T01:06:12.000Z
""" Copyright (C) 2018-2019 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
33.575949
153
0.489915
559
5,305
4.422182
0.205725
0.048544
0.058252
0.058252
0.31068
0.271845
0.252427
0.168285
0.168285
0.135113
0
0.01036
0.381338
5,305
157
154
33.789809
0.74284
0.107069
0
0.357143
0
0
0.137661
0
0
0
0
0
0
1
0.095238
false
0
0.015873
0.063492
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19a02ddbcaad9d7bf3192c753f7e060611b72ae8
19,686
py
Python
tests/test_lightningStub.py
engenegr/lnd_grpc
89336bc83fcfa286dd7927e92fbc88293bd29547
[ "MIT" ]
null
null
null
tests/test_lightningStub.py
engenegr/lnd_grpc
89336bc83fcfa286dd7927e92fbc88293bd29547
[ "MIT" ]
null
null
null
tests/test_lightningStub.py
engenegr/lnd_grpc
89336bc83fcfa286dd7927e92fbc88293bd29547
[ "MIT" ]
null
null
null
import os import time import unittest import bitcoin.rpc import grpc import lnd_grpc.lnd_grpc as py_rpc import lnd_grpc.protos.rpc_pb2 as rpc_pb2 # from google.protobuf.internal.containers import RepeatedCompositeFieldContainer ####################### # Configure variables # ####################### CWD = os.getcwd...
39.689516
99
0.642436
2,299
19,686
5.219226
0.129622
0.086257
0.066006
0.070089
0.549129
0.460122
0.372781
0.331528
0.307359
0.291358
0
0.017615
0.264655
19,686
495
100
39.769697
0.811274
0.056131
0
0.296512
0
0
0.021832
0.012189
0
0
0
0.00202
0.209302
1
0.148256
false
0.026163
0.020349
0
0.174419
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19a1cf2092a5e1441835b5519079835b5bb7b437
484
py
Python
20_valid_parens.py
claytonjwong/leetcode-py
16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7
[ "MIT" ]
1
2020-07-15T14:16:23.000Z
2020-07-15T14:16:23.000Z
20_valid_parens.py
claytonjwong/leetcode-py
16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7
[ "MIT" ]
null
null
null
20_valid_parens.py
claytonjwong/leetcode-py
16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7
[ "MIT" ]
null
null
null
# # 20. Valid Parentheses # # Q: https://leetcode.com/problems/valid-parentheses/ # A: https://leetcode.com/problems/valid-parentheses/discuss/9214/Kt-Js-Py3-Cpp-Stack # class Solution: def isValid(self, A: str) -> bool: s = [] for c in A: if c == '(': s.append(')') elif c...
26.888889
85
0.506198
63
484
3.888889
0.571429
0.032653
0.097959
0.146939
0.473469
0.473469
0.146939
0.146939
0
0
0
0.020958
0.309917
484
17
86
28.470588
0.712575
0.32438
0
0
0
0
0.01875
0
0
0
0
0
0
1
0.1
false
0
0
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19a1f5173da1a19ab9a723e6c007b756a7bf4d27
1,474
py
Python
2016/23/solution.py
Artemigos/advent-of-code
0b2ae6af3788b9e6891219b2b64ce0d510b3e1aa
[ "MIT" ]
null
null
null
2016/23/solution.py
Artemigos/advent-of-code
0b2ae6af3788b9e6891219b2b64ce0d510b3e1aa
[ "MIT" ]
null
null
null
2016/23/solution.py
Artemigos/advent-of-code
0b2ae6af3788b9e6891219b2b64ce0d510b3e1aa
[ "MIT" ]
null
null
null
import common lines = common.read_file('2016/23/data.txt').splitlines() # part 1 eggs = 7 # part 2 eggs = 12 registers = dict(a=eggs, b=0, c=0, d=0) def get_val(val_spec): if val_spec in registers.keys(): return registers[val_spec] return int(val_spec) def is_reg(val_spec): return val_spec in r...
24.566667
58
0.501357
213
1,474
3.328639
0.262911
0.06347
0.067701
0.050776
0.187588
0.110014
0.110014
0.110014
0.110014
0.110014
0
0.045738
0.347354
1,474
59
59
24.983051
0.691268
0.014247
0
0.204082
0
0
0.038674
0
0
0
0
0
0
1
0.040816
false
0
0.020408
0.020408
0.122449
0.040816
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19a87db683c9165ec3ec45d64b90db5e4bc925f8
3,272
py
Python
src/experiment/experiment.py
ricoms/credit-fraud-dealing-with-imbalanced-datasets-mlops
aa483832493faa88affd00eff5489d03506abdeb
[ "MIT" ]
5
2021-04-29T22:20:08.000Z
2021-05-21T03:29:52.000Z
src/experiment/experiment.py
ricoms/credit-fraud-dealing-with-imbalanced-datasets-mlops
aa483832493faa88affd00eff5489d03506abdeb
[ "MIT" ]
null
null
null
src/experiment/experiment.py
ricoms/credit-fraud-dealing-with-imbalanced-datasets-mlops
aa483832493faa88affd00eff5489d03506abdeb
[ "MIT" ]
3
2021-04-29T22:41:59.000Z
2021-10-03T20:06:05.000Z
import sys from dataclasses import dataclass from io import StringIO from pathlib import Path from typing import Any import numpy as np from sklearn.model_selection import StratifiedKFold from utils.logger import logger from .artifacts import ExperimentArtifacts INPUT_COLUMNS = [ "Time", "V1", "V2", "V3", "V4", ...
31.161905
90
0.573655
394
3,272
4.611675
0.388325
0.019263
0.055036
0.011007
0.033021
0.033021
0
0
0
0
0
0.034783
0.297066
3,272
104
91
31.461538
0.755217
0.003667
0
0.044944
0
0
0.104972
0.006753
0
0
0
0
0
1
0.05618
false
0
0.101124
0
0.247191
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19b063208b212cda110697a8227b09dc8f98a0db
414
py
Python
catalog/bindings/csw/role.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/csw/role.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/csw/role.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from bindings.csw.code_type_1 import CodeType1 __NAMESPACE__ = "http://www.opengis.net/ows" @dataclass class Role(CodeType1): """Function performed by the responsible party. Possible values of this Role shall include the values and the meanings listed in Subclause B.5.5...
24.352941
65
0.724638
58
414
5.068966
0.706897
0.088435
0.108844
0.156463
0.197279
0.197279
0
0
0
0
0
0.041667
0.188406
414
16
66
25.875
0.833333
0.388889
0
0
0
0
0.222222
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5fd63dd37aacbace93081d1f24365379814ddc62
1,847
py
Python
discogstagger/lyrics.py
makzyt4/discogs-tagger
b578257922230b634d43349f2efd4fda72fdd008
[ "MIT" ]
2
2019-09-05T04:26:20.000Z
2020-08-05T02:56:04.000Z
discogstagger/lyrics.py
makzyt4/discogs-tagger
b578257922230b634d43349f2efd4fda72fdd008
[ "MIT" ]
null
null
null
discogstagger/lyrics.py
makzyt4/discogs-tagger
b578257922230b634d43349f2efd4fda72fdd008
[ "MIT" ]
1
2019-10-02T13:07:34.000Z
2019-10-02T13:07:34.000Z
import warnings import urllib warnings.filterwarnings("ignore", category=UserWarning) from fuzzywuzzy import fuzz from bs4 import BeautifulSoup from discogstagger.crawler import WebCrawler class LyricsSearcher: def __init__(self, artist_name): self.artist_name = artist_name self.url_base = "http:...
35.519231
74
0.593936
231
1,847
4.575758
0.320346
0.047304
0.039735
0.051088
0.119205
0.098392
0.049196
0.049196
0
0
0
0.006084
0.288035
1,847
51
75
36.215686
0.797719
0
0
0.086957
0
0
0.082296
0.014618
0
0
0
0
0
1
0.065217
false
0
0.108696
0
0.326087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5fd7391d4fbb21e69c15f5d957bc435fc6d49a18
7,798
py
Python
env/lib/python3.7/site-packages/cleo/inputs/argv_input.py
Kolawole39/masonite-guides-tutorial
9a21cc635291a42f0722f69925be1809bb20e01c
[ "MIT" ]
null
null
null
env/lib/python3.7/site-packages/cleo/inputs/argv_input.py
Kolawole39/masonite-guides-tutorial
9a21cc635291a42f0722f69925be1809bb20e01c
[ "MIT" ]
null
null
null
env/lib/python3.7/site-packages/cleo/inputs/argv_input.py
Kolawole39/masonite-guides-tutorial
9a21cc635291a42f0722f69925be1809bb20e01c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import re from .input import Input from ..exceptions import NoSuchOption, BadOptionUsage, TooManyArguments class ArgvInput(Input): def __init__(self, argv=None, definition=None): super(ArgvInput, self).__init__(definition) if argv is None: argv = ...
33.467811
115
0.530649
892
7,798
4.497758
0.141256
0.059322
0.038136
0.02991
0.552094
0.392074
0.268943
0.234048
0.187936
0.166501
0
0.007733
0.369838
7,798
232
116
33.612069
0.80871
0.068094
0
0.345238
0
0
0.031164
0
0
0
0
0
0
1
0.077381
false
0
0.02381
0
0.178571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5fda0bec3ea02ea3a6f8218190306677fcc6bbb6
3,371
py
Python
digibanner.py
w4mhi/digipi
1fb00450cf9ed14a30c293e744848a7cad09f489
[ "MIT" ]
null
null
null
digibanner.py
w4mhi/digipi
1fb00450cf9ed14a30c293e744848a7cad09f489
[ "MIT" ]
null
null
null
digibanner.py
w4mhi/digipi
1fb00450cf9ed14a30c293e744848a7cad09f489
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # direwatch """ Craig Lamparter KM6LYW, 2021, MIT License modified by W4MHI February 2022 - see the init_display.py module for display settings - see https://www.delftstack.com/howto/python/get-ip-address-python/ for the ip address """ import sys import argparse import time from netifaces import...
29.570175
110
0.664195
463
3,371
4.742981
0.37149
0.016393
0.027322
0.034608
0.126138
0.04827
0
0
0
0
0
0.033445
0.201721
3,371
113
111
29.831858
0.782609
0.159893
0
0.142857
0
0
0.184763
0
0
0
0
0
0
1
0.014286
false
0.042857
0.085714
0
0.114286
0.085714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5fdb29602cc883d0c3c33fa3a91c2d4157fe4739
7,007
py
Python
autotorrent/utils.py
jyggen/autotorrent
5a8f2b40ccc8c66c73dc520f98b886d21e163afa
[ "MIT" ]
278
2015-02-12T19:19:53.000Z
2022-03-22T21:17:28.000Z
autotorrent/utils.py
jyggen/autotorrent
5a8f2b40ccc8c66c73dc520f98b886d21e163afa
[ "MIT" ]
56
2015-03-27T00:38:37.000Z
2022-03-26T17:52:58.000Z
autotorrent/utils.py
jyggen/autotorrent
5a8f2b40ccc8c66c73dc520f98b886d21e163afa
[ "MIT" ]
48
2015-03-10T16:50:19.000Z
2022-03-20T12:11:50.000Z
from __future__ import division import hashlib import logging import os import re __all__ = [ 'is_unsplitable', 'get_root_of_unsplitable', 'Pieces', ] UNSPLITABLE_FILE_EXTENSIONS = [ set(['.rar', '.sfv']), set(['.mp3', '.sfv']), set(['.vob', '.ifo']), ] logger = logging.getLogger(__name__) ...
38.927778
154
0.572285
912
7,007
4.226974
0.210526
0.051362
0.037095
0.024903
0.318547
0.270558
0.222568
0.188067
0.136187
0.101167
0
0.008898
0.326388
7,007
179
155
39.145251
0.807839
0.104467
0
0.248
0
0.008
0.162973
0.017275
0
0
0
0
0
1
0.048
false
0
0.04
0
0.144
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5fdbaa30fa591b9ff594e38b62a435e122fd9e26
232
py
Python
Documentation/matplotlib/users/tight_layout_guide-11.py
leesavide/pythonista-docs-deprecated
9ec3363f07e328bde0a58738a16907f11dfd06e1
[ "Apache-2.0" ]
16
2016-06-14T19:45:35.000Z
2020-11-30T19:02:58.000Z
Documentation/matplotlib/users/tight_layout_guide-11.py
leesavide/pythonista-docs
9ec3363f07e328bde0a58738a16907f11dfd06e1
[ "Apache-2.0" ]
1
2016-06-15T07:10:27.000Z
2016-06-15T07:10:27.000Z
Documentation/matplotlib/users/tight_layout_guide-11.py
leesavide/pythonista-docs
9ec3363f07e328bde0a58738a16907f11dfd06e1
[ "Apache-2.0" ]
null
null
null
gs2 = gridspec.GridSpec(3, 1) for ss in gs2: ax = fig.add_subplot(ss) example_plot(ax) ax.set_title("") ax.set_xlabel("") ax.set_xlabel("x-label", fontsize=12) gs2.tight_layout(fig, rect=[0.5, 0, 1, 1], h_pad=0.5)
21.090909
53
0.637931
44
232
3.204545
0.613636
0.106383
0.156028
0
0
0
0
0
0
0
0
0.072917
0.172414
232
11
53
21.090909
0.661458
0
0
0
0
0
0.030043
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5fde36f357f3d09233e7473cce22e0c33f10115a
5,203
py
Python
scripts/posts.py
flashreads/mediumish-theme-jekyll
428e3338c00a3aee9fde119f0885496edd082f12
[ "MIT" ]
null
null
null
scripts/posts.py
flashreads/mediumish-theme-jekyll
428e3338c00a3aee9fde119f0885496edd082f12
[ "MIT" ]
null
null
null
scripts/posts.py
flashreads/mediumish-theme-jekyll
428e3338c00a3aee9fde119f0885496edd082f12
[ "MIT" ]
null
null
null
from argparse import ArgumentParser from datetime import datetime from os import path, listdir, getcwd, chdir import subprocess from dateutil.parser import parse as dt_parse from ruamel.yaml import YAML def transform_posts(src_dir, dest_dir, featured_path=None): featured = load_featured(featured_path) if feature...
32.51875
166
0.617528
667
5,203
4.628186
0.244378
0.036281
0.024295
0.018141
0.160674
0.135407
0.040168
0
0
0
0
0.000775
0.256006
5,203
159
167
32.72327
0.796693
0.01749
0
0.170732
0
0
0.126614
0
0
0
0
0
0
1
0.056911
false
0
0.04878
0
0.146341
0.01626
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5fe3ceaa4d994eb74303ce409f0c500eac7328b4
4,262
py
Python
gelweb/gel2clin/views.py
moka-guys/GeL2MDT
09bf25b8452e2e887dbf74b1cd4771d234c6166c
[ "MIT" ]
null
null
null
gelweb/gel2clin/views.py
moka-guys/GeL2MDT
09bf25b8452e2e887dbf74b1cd4771d234c6166c
[ "MIT" ]
1
2020-02-06T13:17:40.000Z
2020-02-06T13:17:40.000Z
gelweb/gel2clin/views.py
byronmews/GeL2MDT
1449831f0d7c570b71e7f46fb4dd1fcb805b0325
[ "MIT" ]
null
null
null
"""Copyright (c) 2018 Great Ormond Street Hospital for Children NHS Foundation Trust & Birmingham Women's and Children's NHS Foundation Trust Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software withou...
45.827957
106
0.644533
477
4,262
5.660377
0.392034
0.032593
0.035185
0.05
0.298148
0.215556
0.201481
0.167407
0.167407
0.167407
0
0.004274
0.286251
4,262
92
107
46.326087
0.8833
0.358048
0
0.272727
0
0
0.128765
0.044051
0
0
0
0
0
1
0.090909
false
0
0.181818
0.022727
0.386364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5fea42b894dab2e2c30e2950d94a43b828f9c4c1
1,743
py
Python
research/controllers/cartpole_regression_sysid.py
MinRegret/TigerControl
b1ca0617cbb2198f9d5cb37f725f3d7accbab08f
[ "Apache-2.0" ]
31
2019-11-08T06:01:54.000Z
2021-11-20T04:50:43.000Z
research/controllers/cartpole_regression_sysid.py
johnhallman/ctsb
b1ca0617cbb2198f9d5cb37f725f3d7accbab08f
[ "Apache-2.0" ]
32
2019-06-27T15:05:04.000Z
2019-08-07T04:23:47.000Z
research/controllers/cartpole_regression_sysid.py
MinRegret/tigercontrol
b1ca0617cbb2198f9d5cb37f725f3d7accbab08f
[ "Apache-2.0" ]
3
2020-09-30T17:06:50.000Z
2021-04-12T22:39:34.000Z
class RegressionSystemID: def __init__(self): self.initialized = False def initialize(self, n, m, K=None, learning_rate=0.001): self.initialized = True self.n, self.m = n, m self.T = 0 self.K = K if K != None else np.zeros((m, n)) self.lr = learning_rate ...
36.3125
71
0.560528
277
1,743
3.389892
0.288809
0.042599
0.089457
0.068158
0.317359
0.297125
0.246006
0.195953
0.195953
0.195953
0
0.017959
0.297189
1,743
48
72
36.3125
0.748571
0.126793
0
0.222222
0
0
0
0
0
0
0
0
0.027778
1
0.111111
false
0
0
0
0.194444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5fead45ea3ba403eb9b2c9548ef8cb56dd3f5f96
1,121
py
Python
binary_tree/vertical_order_traversal.py
x899/algorithms
38a5de72db14ef2664489da9857b598d24c4e276
[ "MIT" ]
472
2018-05-25T06:45:44.000Z
2020-01-06T15:46:09.000Z
binary_tree/vertical_order_traversal.py
pratik-a/algorithms-2
241115c64a7518c34f672eb2b851b05f353247f1
[ "MIT" ]
6
2020-01-25T22:22:44.000Z
2021-06-01T04:53:25.000Z
binary_tree/vertical_order_traversal.py
pratik-a/algorithms-2
241115c64a7518c34f672eb2b851b05f353247f1
[ "MIT" ]
44
2019-03-02T07:38:38.000Z
2020-01-01T16:05:06.000Z
""" Vertical Order Traversal On Binary Tree """ from collections import defaultdict class Node: """ class representing node in binary tree """ def __init__(self, data): self.data = data self.left = None self.right = None def preorder(root, horizontal_dist, hd_map): if root is No...
21.557692
52
0.6405
155
1,121
4.458065
0.335484
0.050651
0.05644
0.075253
0.147612
0.089725
0
0
0
0
0
0.015152
0.234612
1,121
51
53
21.980392
0.79021
0.127565
0
0
0
0
0.023134
0
0
0
0
0
0
1
0.129032
false
0
0.032258
0
0.225806
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5feaf4c73afb53db46a1e5e5e4652d4a41e6e80e
1,452
py
Python
data_preprocessing/load_cifar_ten.py
gwenniger/multi-hare
fb3f655cbbf4af6ccbfc77d587b8ea2924b300cd
[ "Apache-2.0" ]
7
2019-12-04T05:58:40.000Z
2021-08-04T07:19:55.000Z
data_preprocessing/load_cifar_ten.py
gwenniger/multi-hare
fb3f655cbbf4af6ccbfc77d587b8ea2924b300cd
[ "Apache-2.0" ]
null
null
null
data_preprocessing/load_cifar_ten.py
gwenniger/multi-hare
fb3f655cbbf4af6ccbfc77d587b8ea2924b300cd
[ "Apache-2.0" ]
4
2019-12-03T23:42:00.000Z
2020-12-19T19:48:04.000Z
import torchvision.transforms as transforms import torch import torchvision __author__ = "Dublin City University" __copyright__ = "Copyright 2019, Dublin City University" __credits__ = ["Gideon Maillette de Buy Wenniger"] __license__ = "Dublin City University Software License (enclosed)" def get_train_set(): tra...
37.230769
86
0.637741
170
1,452
5.211765
0.311765
0.027088
0.03386
0.045147
0.575621
0.494357
0.331828
0.331828
0.331828
0.331828
0
0.038603
0.250689
1,452
38
87
38.210526
0.775735
0
0
0.344828
0
0
0.106061
0
0
0
0
0
0
1
0.137931
false
0
0.103448
0
0.37931
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5feb07c430256fe7dba892fc904f0cd15150fcbf
1,018
py
Python
dprofiler/profile.py
disktnk/dprofiler
be820de440c21d3fef711db1220bfddb9bdee177
[ "MIT" ]
null
null
null
dprofiler/profile.py
disktnk/dprofiler
be820de440c21d3fef711db1220bfddb9bdee177
[ "MIT" ]
3
2018-10-16T04:03:50.000Z
2018-10-17T01:34:16.000Z
dprofiler/profile.py
disktnk/dprofiler
be820de440c21d3fef711db1220bfddb9bdee177
[ "MIT" ]
null
null
null
import cProfile import functools import logging import pstats import sys import six _logger = logging.getLogger(__name__) _logger.setLevel(logging.DEBUG) _stream_handler = logging.StreamHandler(sys.stdout) _stream_handler.setLevel(logging.DEBUG) _logger.addHandler(_stream_handler) def profile( fn=None, sor...
23.674419
78
0.642436
125
1,018
5.064
0.384
0.044234
0.063191
0
0
0
0
0
0
0
0
0.002608
0.246562
1,018
42
79
24.238095
0.822686
0
0
0
0
0
0.006876
0
0
0
0
0
0
1
0.060606
false
0
0.181818
0
0.333333
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5fec5184bee3516b0d2cd771d0ad21b3d6f1997f
3,948
py
Python
server.py
HusseinKabbout/qwc-document-service
c8d856390006e0f5ecc0d28b0d53da55e5505381
[ "MIT" ]
null
null
null
server.py
HusseinKabbout/qwc-document-service
c8d856390006e0f5ecc0d28b0d53da55e5505381
[ "MIT" ]
null
null
null
server.py
HusseinKabbout/qwc-document-service
c8d856390006e0f5ecc0d28b0d53da55e5505381
[ "MIT" ]
1
2020-04-24T11:36:26.000Z
2020-04-24T11:36:26.000Z
import os import sys from urllib.parse import urlencode from flask import Flask, Response, abort, request, stream_with_context, jsonify from flask_restx import Api, Resource, fields, reqparse import requests from qwc_services_core.api import CaseInsensitiveArgument from qwc_services_core.app import app_nocache from q...
32.360656
79
0.680091
470
3,948
5.546809
0.342553
0.01611
0.034522
0.043728
0.049099
0
0
0
0
0
0
0.012775
0.20694
3,948
121
80
32.628099
0.819866
0.113222
0
0.075949
0
0
0.165532
0
0
0
0
0
0
1
0.050633
false
0
0.151899
0.025316
0.265823
0.012658
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5fedb1afd0a343dd3c21ad7f3aee3e96bedef35d
403
py
Python
scripts/Government Spending.py
MarcosDaNight/Dashboard-COVID19
26967d2fb7b3dd44c3c51b8ac79608d91bf26d71
[ "MIT" ]
null
null
null
scripts/Government Spending.py
MarcosDaNight/Dashboard-COVID19
26967d2fb7b3dd44c3c51b8ac79608d91bf26d71
[ "MIT" ]
null
null
null
scripts/Government Spending.py
MarcosDaNight/Dashboard-COVID19
26967d2fb7b3dd44c3c51b8ac79608d91bf26d71
[ "MIT" ]
null
null
null
from matplotlib import pyplot as plt # data speding from Federal Government Plan planes = ['Transferência para saúde', 'FPE e FPM', 'Assistência Social', 'Suspensão de dívidas da União', 'Renegociação com bancos'] spend = [8, 16, 2, 12.6, 9.3] plt.axis("equal") plt.pie(spend, labels=planes, ...
22.388889
73
0.665012
56
403
4.785714
0.875
0
0
0
0
0
0
0
0
0
0
0.034268
0.203474
403
17
74
23.705882
0.800623
0.101737
0
0
0
0
0.431085
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ff029ed47a23de0243a31bef9cc5542860e44d1
867
py
Python
ngo_point1/ngo_requirements/urls.py
Sanayshah2/T046_Scrapshut
ecb269373e9b78a738ceb99675379ca21ee313a5
[ "MIT" ]
null
null
null
ngo_point1/ngo_requirements/urls.py
Sanayshah2/T046_Scrapshut
ecb269373e9b78a738ceb99675379ca21ee313a5
[ "MIT" ]
null
null
null
ngo_point1/ngo_requirements/urls.py
Sanayshah2/T046_Scrapshut
ecb269373e9b78a738ceb99675379ca21ee313a5
[ "MIT" ]
1
2021-04-23T17:06:44.000Z
2021-04-23T17:06:44.000Z
from django.contrib import admin from django.urls import path from . import views from django.conf.urls import url urlpatterns = [ path('',views.home,name='home'), path('register/',views.register,name='register'), path('login/',views.Login,name='login'), path('logout/', views.logout_view, name='logou...
37.695652
110
0.726644
97
867
6.453608
0.309278
0.047923
0.052716
0.067093
0.083067
0
0
0
0
0
0
0
0.103806
867
23
111
37.695652
0.805663
0
0
0
0
0
0.339862
0.139401
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ff34356a914a7907c97352a87bdb8eb2ee14f4e
32,810
py
Python
parakeet/models/wavenet.py
lfchener/Parakeet
b0ba6e7bf9b44b6309ca45927d4405bb85fcd103
[ "Apache-2.0" ]
1
2021-02-03T12:11:21.000Z
2021-02-03T12:11:21.000Z
parakeet/models/wavenet.py
gzfffff/Parakeet
a84b6d3383b2a8a5fb45d0c233bee1ed80d0b389
[ "Apache-2.0" ]
null
null
null
parakeet/models/wavenet.py
gzfffff/Parakeet
a84b6d3383b2a8a5fb45d0c233bee1ed80d0b389
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
33.548057
111
0.569857
3,966
32,810
4.595058
0.122794
0.015474
0.026997
0.01498
0.462961
0.426306
0.386633
0.358483
0.320292
0.283637
0
0.00983
0.333404
32,810
977
112
33.582395
0.823419
0.477141
0
0.299094
0
0.003021
0.013955
0
0
0
0
0
0
1
0.084592
false
0
0.039275
0
0.205438
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ff67231767a550306fa1eed298e972631db8363
1,407
py
Python
06/TemplateMaching.py
mastnk/GCIP
1d1ec23388629f145a021efd69797aa18b3891e3
[ "MIT" ]
null
null
null
06/TemplateMaching.py
mastnk/GCIP
1d1ec23388629f145a021efd69797aa18b3891e3
[ "MIT" ]
null
null
null
06/TemplateMaching.py
mastnk/GCIP
1d1ec23388629f145a021efd69797aa18b3891e3
[ "MIT" ]
null
null
null
import sys import cv2 # it is necessary to use cv2 library import numpy as np # https://docs.opencv.org/4.5.2/d4/dc6/tutorial_py_template_matching.html def main( input_filename, template_filename ): img = cv2.imread(input_filename,0) template = cv2.imread(template_filename,0) w, h = template.shape[::-1] ...
31.977273
105
0.668088
210
1,407
4.242857
0.428571
0.053872
0.047138
0.040404
0.047138
0.047138
0.047138
0
0
0
0
0.05403
0.197584
1,407
43
106
32.72093
0.735164
0.297797
0
0.08
0
0
0.118191
0
0
0
0
0
0
1
0.04
false
0
0.12
0
0.16
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ff692081eaaca772a3292cf14f5309c58c43958
516
py
Python
contest/tenka1-pbc2019/C_Stones.py
mola1129/atcoder
1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db
[ "MIT" ]
null
null
null
contest/tenka1-pbc2019/C_Stones.py
mola1129/atcoder
1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db
[ "MIT" ]
null
null
null
contest/tenka1-pbc2019/C_Stones.py
mola1129/atcoder
1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db
[ "MIT" ]
null
null
null
n = int(input()) s = input() bcnt = [0]*n wcnt = [0]*n result = 2 * 10 ** 5 # 累積和 if s[0] == "#": bcnt[0] = 1 if s[n-1] == ".": wcnt[n-1] = 1 for i in range(1,n): bcnt[i] = bcnt[i-1] if s[i] == "#": bcnt[i] += 1 for i in range(n-2,-1,-1): wcnt[i] = wcnt[i+1] if s[i] =...
17.2
45
0.45155
95
516
2.452632
0.221053
0.042918
0.051502
0.141631
0.154506
0
0
0
0
0
0
0.070028
0.30814
516
29
46
17.793103
0.582633
0.025194
0
0
0
0
0.008493
0
0
0
0
0
0
1
0
false
0
0
0
0
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ff9658511513524516ba459b859ca485a53d2a3
9,413
py
Python
scripts/myclient.py
Anant16/Networks_Project
a0f15bde4b2625a5ffe382da958f04d4538d23d2
[ "MIT" ]
null
null
null
scripts/myclient.py
Anant16/Networks_Project
a0f15bde4b2625a5ffe382da958f04d4538d23d2
[ "MIT" ]
null
null
null
scripts/myclient.py
Anant16/Networks_Project
a0f15bde4b2625a5ffe382da958f04d4538d23d2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Script for Tkinter GUI chat client.""" from socket import AF_INET, socket, SOCK_STREAM from threading import Thread import tkinter from tkinter import filedialog, Tk import os import time def recv_file(): print("file request from ") fname = client_socket.recv(BUFSIZ).decode("utf8") ...
31.272425
125
0.627961
1,216
9,413
4.708059
0.17023
0.039825
0.022358
0.015371
0.64
0.591965
0.569258
0.535895
0.521572
0.477555
0
0.012742
0.241262
9,413
301
126
31.272425
0.788855
0.137257
0
0.495455
0
0
0.075978
0
0
0
0
0
0
1
0.05
false
0
0.027273
0
0.086364
0.113636
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ffb47974af4fe5ac023573e2b360b56ebf1ffbc
1,689
py
Python
issues/i10_parent.py
Raph-xyz/wexpect
c1e81b3a69d4d3821cb01b61bd5297b51a24539f
[ "MIT" ]
52
2019-04-24T14:38:43.000Z
2022-03-08T22:03:11.000Z
issues/i10_parent.py
Raph-xyz/wexpect
c1e81b3a69d4d3821cb01b61bd5297b51a24539f
[ "MIT" ]
51
2019-05-13T12:15:09.000Z
2021-12-15T14:00:15.000Z
issues/i10_parent.py
Raph-xyz/wexpect
c1e81b3a69d4d3821cb01b61bd5297b51a24539f
[ "MIT" ]
20
2019-07-15T15:48:31.000Z
2022-03-27T08:55:17.000Z
import wexpect import time import sys import os here = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, here) from long_printer import puskas_wiki print(wexpect.__version__) # With quotes (C:\Program Files\Python37\python.exe needs quotes) python_executable = '"' + sys.executable + '" ' ...
26.390625
68
0.474837
172
1,689
4.55814
0.412791
0.044643
0.108418
0.114796
0.191327
0.132653
0.084184
0.084184
0
0
0
0.013092
0.412078
1,689
63
69
26.809524
0.776435
0.060983
0
0.195652
0
0
0.026333
0
0
0
0
0
0
1
0.021739
false
0.021739
0.108696
0
0.130435
0.282609
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ffcd7c87c77f89439cef7d88357fcf225e1b8ea
3,694
py
Python
sir_sampler.py
bveitch/EpidPy
455cd67afa2efbb774300115abb5fc7d4600b37d
[ "BSD-3-Clause" ]
null
null
null
sir_sampler.py
bveitch/EpidPy
455cd67afa2efbb774300115abb5fc7d4600b37d
[ "BSD-3-Clause" ]
null
null
null
sir_sampler.py
bveitch/EpidPy
455cd67afa2efbb774300115abb5fc7d4600b37d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Jun 26 10:17:51 2020 description : Sampling methods from sir space to data space author : bveitch version : 1.0 project : EpidPy (epidemic modelling in python) Usage: Data fitting in least squares fit Also acts on labels for data ...
29.790323
78
0.554413
503
3,694
3.984095
0.244533
0.055888
0.03493
0.01996
0.336327
0.286427
0.259481
0.217565
0.163673
0.163673
0
0.025247
0.313752
3,694
124
79
29.790323
0.765286
0.190309
0
0.277108
0
0
0.066913
0
0
0
0
0
0.060241
1
0.096386
false
0
0.012048
0
0.26506
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2704c694bb778a6cd16b19f2de02eece854903d3
4,491
py
Python
reflect/menus.py
stefanthaler/daily-reflection
2aba4873742b205f75a71b2ce382d126153f14c5
[ "MIT" ]
null
null
null
reflect/menus.py
stefanthaler/daily-reflection
2aba4873742b205f75a71b2ce382d126153f14c5
[ "MIT" ]
null
null
null
reflect/menus.py
stefanthaler/daily-reflection
2aba4873742b205f75a71b2ce382d126153f14c5
[ "MIT" ]
null
null
null
from prompt_toolkit.key_binding import KeyBindings from prompt_toolkit import PromptSession,prompt,print_formatted_text from reflect.style import * import os from prompt_toolkit.shortcuts import clear from prompt_toolkit.formatted_text import FormattedText def get_menu(menu_items): message = [] for k in menu_...
30.760274
108
0.583389
556
4,491
4.553957
0.210432
0.049763
0.042654
0.03752
0.344787
0.298973
0.228673
0.228673
0.228673
0.193128
0
0.013595
0.26297
4,491
145
109
30.972414
0.75136
0.023603
0
0.272727
0
0
0.142466
0.015525
0
0
0
0
0
1
0.057851
false
0
0.049587
0
0.165289
0.016529
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
27059812bfb36013c718b5579e1caa2896f39e29
636
py
Python
matrix/main.py
oleggator/python-advanced
0e951fe6e7ae74129536ded5c02a9f1ea3337a7d
[ "MIT" ]
null
null
null
matrix/main.py
oleggator/python-advanced
0e951fe6e7ae74129536ded5c02a9f1ea3337a7d
[ "MIT" ]
2
2019-04-28T20:37:35.000Z
2019-10-29T08:11:24.000Z
matrix/main.py
oleggator/python-advanced
0e951fe6e7ae74129536ded5c02a9f1ea3337a7d
[ "MIT" ]
null
null
null
from matrix import Matrix as CMatrix from py_matrix import PyMatrix def test(matrix_class, rows=3, columns=2): m = matrix_class([ [column for column in range(row * columns, row * columns + columns)] for row in range(rows) ]) # # or # m = matrix_class([ # [1, 2], # [3, 4...
21.2
76
0.550314
89
636
3.797753
0.449438
0.097633
0.071006
0
0
0
0
0
0
0
0
0.025701
0.327044
636
29
77
21.931034
0.764019
0.240566
0
0
0
0
0.017058
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
27085e60eb21632a2fb266c8e1fc048c12001579
3,947
py
Python
horizon_telemetry/compute/views.py
simonpasquier/horizon-telemetry-dashboard
f284ec6ae8b1932079852fe3e9ab4b7a27ff58d7
[ "Apache-2.0" ]
null
null
null
horizon_telemetry/compute/views.py
simonpasquier/horizon-telemetry-dashboard
f284ec6ae8b1932079852fe3e9ab4b7a27ff58d7
[ "Apache-2.0" ]
2
2017-10-10T07:30:41.000Z
2017-10-19T18:34:13.000Z
horizon_telemetry/compute/views.py
simonpasquier/horizon-telemetry-dashboard
f284ec6ae8b1932079852fe3e9ab4b7a27ff58d7
[ "Apache-2.0" ]
null
null
null
import datetime import json from django.conf import settings from django.http import HttpResponse from django.utils.translation import ugettext_lazy as _ from django.views.generic import TemplateView from horizon import exceptions, tables from horizon_telemetry.forms import DateForm from horizon_telemetry.utils.influ...
36.88785
100
0.593615
403
3,947
5.593052
0.295285
0.071872
0.055901
0.028394
0.322538
0.220497
0.220497
0.220497
0.185892
0.185892
0
0.00255
0.304535
3,947
106
101
37.235849
0.818579
0.007601
0
0.185185
0
0
0.100383
0.021711
0
0
0
0
0
1
0.061728
false
0.012346
0.135802
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
270baa9c084cf98e0065fdca116072edd2dacd09
1,335
py
Python
dz3/task3_5.py
EsipenkoAnna/PycharmProjects-EsipenkoAnna_2242
46fe55de36b7b1cfdeafcf685ea01c6220e16546
[ "MIT" ]
null
null
null
dz3/task3_5.py
EsipenkoAnna/PycharmProjects-EsipenkoAnna_2242
46fe55de36b7b1cfdeafcf685ea01c6220e16546
[ "MIT" ]
null
null
null
dz3/task3_5.py
EsipenkoAnna/PycharmProjects-EsipenkoAnna_2242
46fe55de36b7b1cfdeafcf685ea01c6220e16546
[ "MIT" ]
null
null
null
import random nouns = ["автомобиль", "лес", "огонь", "город", "дом"] adverbs = ["сегодня", "вчера", "завтра", "позавчера", "ночью"] adjectives = ["веселый", "яркий", "зеленый", "утопичный", "мягкий"] def get_jokes(count: int) -> list: #формируем список состящий из фраз. Каждая фраза содержит по три слова, которые сл...
36.081081
145
0.698127
180
1,335
5.033333
0.455556
0.119205
0.03532
0.050773
0.169978
0.169978
0.169978
0.169978
0.169978
0.169978
0
0.005391
0.166292
1,335
37
146
36.081081
0.808625
0.211985
0
0
0
0
0.093333
0
0
0
0
0
0
1
0.076923
false
0
0.038462
0
0.192308
0.115385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
27155b9a924aec60a88449cb892d18dddf705986
5,837
py
Python
bundled/linter/linter_server.py
luabud/vscode-pylint
2297f1a6210bf93f7d9c083e32c59ed03664ca05
[ "MIT" ]
null
null
null
bundled/linter/linter_server.py
luabud/vscode-pylint
2297f1a6210bf93f7d9c083e32c59ed03664ca05
[ "MIT" ]
null
null
null
bundled/linter/linter_server.py
luabud/vscode-pylint
2297f1a6210bf93f7d9c083e32c59ed03664ca05
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. """ Implementation of linting support over LSP. """ import json import pathlib import sys from typing import Dict, Sequence, Union # Ensure that will can import LSP libraries, and other bundled linter libraries sys.path.appe...
31.38172
88
0.664211
688
5,837
5.46657
0.297965
0.035895
0.027652
0.020207
0.229992
0.140654
0.1138
0.086147
0.086147
0.086147
0
0.003528
0.22306
5,837
185
89
31.551351
0.825799
0.182799
0
0.047619
0
0
0.086551
0.004667
0
0
0
0
0
1
0.055556
false
0.007937
0.055556
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
271c49cbaa02490060b18e56f8f7193420d20ee7
2,411
py
Python
src/utils/roles.py
dciborow/SubscriptionPolicy
100718bca552fb92edcb1867a94aba1f2d131edc
[ "MIT" ]
null
null
null
src/utils/roles.py
dciborow/SubscriptionPolicy
100718bca552fb92edcb1867a94aba1f2d131edc
[ "MIT" ]
null
null
null
src/utils/roles.py
dciborow/SubscriptionPolicy
100718bca552fb92edcb1867a94aba1f2d131edc
[ "MIT" ]
null
null
null
from .cmdline import CmdUtils class AzRole: def __init__(self): self.subscription = None self.id = None self.name = None self.principalId = None self.principalName = None self.principalType = None self.roleDefinitionName = None self.roleDefinitionId ...
26.788889
106
0.520116
229
2,411
5.240175
0.257642
0.053333
0.04
0.06
0.321667
0.321667
0.321667
0.321667
0.321667
0.321667
0
0
0.390709
2,411
89
107
27.089888
0.816882
0
0
0.355263
0
0
0.10332
0.026556
0
0
0
0
0
1
0.092105
false
0
0.013158
0
0.210526
0.013158
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
271fa52916c14e0243668b5ba4593d20238992fd
3,996
py
Python
ExCon/explainer.py
DarrenZhang01/ExCon
2467c2fa8c0c52edaf54091d2bfecd132eeae594
[ "Apache-2.0" ]
17
2021-11-30T03:50:24.000Z
2022-01-16T10:58:07.000Z
ExCon/explainer.py
DarrenZhang01/ExCon
2467c2fa8c0c52edaf54091d2bfecd132eeae594
[ "Apache-2.0" ]
1
2021-12-04T02:35:59.000Z
2021-12-05T00:53:35.000Z
ExCon/explainer.py
DarrenZhang01/ExCon
2467c2fa8c0c52edaf54091d2bfecd132eeae594
[ "Apache-2.0" ]
null
null
null
""" An utility class for initializing different explainer objects. """ from torch import nn import numpy as np from captum.attr import DeepLift, IntegratedGradients, ShapleyValueSampling, LayerGradCam, Saliency from captum.attr._utils.attribution import LayerAttribution class Explainer(nn.Module): def __init__(s...
47.571429
108
0.567067
400
3,996
5.61
0.27
0.108289
0.122549
0.142157
0.371658
0.371658
0.371658
0.334225
0.314617
0.266488
0
0.026129
0.32958
3,996
83
109
48.144578
0.811497
0.056056
0
0.28169
0
0
0.0417
0
0
0
0
0
0
1
0.042254
false
0
0.211268
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
0
0
0
0
0
0
0
1
0
2723629eca545ab7058f06d730db5b5baa33b30a
3,516
py
Python
gdrive.py
abwilf/Factorized
64e7d2a54bbfbc8b1c5a2130f2b941c376402fe6
[ "MIT" ]
null
null
null
gdrive.py
abwilf/Factorized
64e7d2a54bbfbc8b1c5a2130f2b941c376402fe6
[ "MIT" ]
null
null
null
gdrive.py
abwilf/Factorized
64e7d2a54bbfbc8b1c5a2130f2b941c376402fe6
[ "MIT" ]
null
null
null
from __future__ import print_function import os.path from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request from google.oauth2.credentials import Credentials from apiclient.http import MediaFileUpload import gdown def gdrive...
45.662338
455
0.71587
485
3,516
5.057732
0.412371
0.025683
0.039136
0.046474
0.094578
0.094578
0.041582
0.041582
0
0
0
0.021959
0.158134
3,516
76
456
46.263158
0.806757
0.493458
0
0
0
0
0.163915
0.020637
0
0
0
0
0
1
0.057143
false
0
0.228571
0
0.285714
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2725c4c1b926b1b3e672d43af2ed2535f3dcf9a6
705
py
Python
web_ext/sseq_gui/tests/test_load.py
hoodmane/sseq
0f19a29c95486a629b0d054c703ca0a58999ae97
[ "Apache-2.0", "MIT" ]
7
2021-04-22T04:06:09.000Z
2022-01-25T04:05:49.000Z
web_ext/sseq_gui/tests/test_load.py
hoodmane/sseq
0f19a29c95486a629b0d054c703ca0a58999ae97
[ "Apache-2.0", "MIT" ]
68
2020-03-21T22:37:24.000Z
2022-03-31T02:51:35.000Z
web_ext/sseq_gui/tests/test_load.py
hoodmane/sseq
0f19a29c95486a629b0d054c703ca0a58999ae97
[ "Apache-2.0", "MIT" ]
5
2021-02-17T06:37:43.000Z
2022-02-01T03:53:22.000Z
import pytest from pathlib import Path @pytest.mark.parametrize("module", ["S_2", "S_3", "C2v14"]) def test_load(driver, module: str): driver.go("/") driver.driver.find_element_by_css_selector(f'a[data="{module}"]').click() driver.wait_complete() driver.check_svg(f"{module}_load.svg") @pytest.mark.p...
30.652174
85
0.673759
101
705
4.445545
0.435644
0.046771
0.093541
0.120267
0.561247
0.561247
0.561247
0.414254
0.414254
0.414254
0
0.019512
0.12766
705
22
86
32.045455
0.710569
0
0
0.470588
0
0
0.202837
0.041135
0
0
0
0
0
1
0.117647
false
0
0.117647
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2727cc439b34121ae42c9bebd5ffc173f65fc3c6
5,905
py
Python
foresight/environment/environment_info_support.py
thundra-io/thundra-agent-python
448e18c17d8730c381b2e2a773782cf80c5a7cfb
[ "Apache-2.0" ]
15
2021-07-28T08:03:50.000Z
2021-11-08T08:36:06.000Z
foresight/environment/environment_info_support.py
thundra-io/thundra-agent-python
448e18c17d8730c381b2e2a773782cf80c5a7cfb
[ "Apache-2.0" ]
1
2021-08-08T07:45:45.000Z
2021-08-08T12:41:36.000Z
foresight/environment/environment_info_support.py
thundra-io/thundra-agent-python
448e18c17d8730c381b2e2a773782cf80c5a7cfb
[ "Apache-2.0" ]
3
2021-08-07T14:19:23.000Z
2021-12-08T15:35:40.000Z
import os, logging from foresight.environment.git.git_helper import GitHelper from foresight.environment.git.git_env_info_provider import GitEnvironmentInfoProvider from foresight.environment.github.github_environment_info_provider import GithubEnvironmentInfoProvider from foresight.environment.gitlab.gitlab_environmen...
60.255102
150
0.720745
636
5,905
6.437107
0.237421
0.124573
0.087934
0.049585
0.461895
0.431119
0.414998
0.348315
0.303859
0.282853
0
0.000423
0.198645
5,905
98
151
60.255102
0.864751
0.171041
0
0.194805
0
0
0.101037
0.010166
0
0
0
0
0
1
0.038961
false
0.038961
0.155844
0
0.233766
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
272ad5e735d859c51d641dfdb613ff9296e5cbee
660
py
Python
Problem_Solving/Algorithms/Warmup/6_Plus_Minus/Solution.py
CFLSousa/HackerRank
29ed039634e88d72981b2ecd619e5c65d37111e4
[ "MIT" ]
null
null
null
Problem_Solving/Algorithms/Warmup/6_Plus_Minus/Solution.py
CFLSousa/HackerRank
29ed039634e88d72981b2ecd619e5c65d37111e4
[ "MIT" ]
null
null
null
Problem_Solving/Algorithms/Warmup/6_Plus_Minus/Solution.py
CFLSousa/HackerRank
29ed039634e88d72981b2ecd619e5c65d37111e4
[ "MIT" ]
null
null
null
import math import os import random import re import sys def plusMinus(arr): posNums=0.0 negNums=0.0 zeroNums=0.0 posFraction=0.0 negFraction=0.0 zeroFraction=0.0 arrLen=len(arr) for i in range(arrLen): if arr[i]==0: zeroNums+=1 elif arr[i]>0: po...
18.333333
71
0.59697
88
660
4.386364
0.431818
0.031088
0.025907
0
0
0
0
0
0
0
0
0.04158
0.271212
660
35
72
18.857143
0.760915
0
0
0
0
0
0.09697
0.084848
0
0
0
0
0
1
0.035714
false
0
0.178571
0
0.214286
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
272af550504e85a1489b88397788f6d4d8f037c0
1,403
py
Python
golang/godoc.py
nlfiedler/devscripts
122c7b1424b457d7d5499552065da83d76f6b922
[ "BSD-3-Clause" ]
null
null
null
golang/godoc.py
nlfiedler/devscripts
122c7b1424b457d7d5499552065da83d76f6b922
[ "BSD-3-Clause" ]
1
2015-03-04T15:01:08.000Z
2015-03-04T15:01:08.000Z
golang/godoc.py
nlfiedler/devscripts
122c7b1424b457d7d5499552065da83d76f6b922
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 """Start the godoc server and open the docs in a browser window. This uses the 'open' command to open a web browser. """ import argparse import http import http.client import subprocess import time def is_ready(host, port): """Check if the web server returns an OK status.""" conn = h...
26.980769
88
0.639344
190
1,403
4.647368
0.473684
0.05436
0.037373
0.050963
0.061155
0.061155
0.061155
0
0
0
0
0.008459
0.241625
1,403
51
89
27.509804
0.821429
0.259444
0
0
0
0
0.159136
0
0
0
0
0
0
1
0.066667
false
0
0.166667
0
0.3
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
272f0cf0754b945f03c4fe2b4a5977930d84644b
1,752
py
Python
7_kyu/grow_of_population.py
dimishpatriot/way_on_the_highway
4865db946632b7bd3d74509a20a307841c02169d
[ "MIT" ]
null
null
null
7_kyu/grow_of_population.py
dimishpatriot/way_on_the_highway
4865db946632b7bd3d74509a20a307841c02169d
[ "MIT" ]
null
null
null
7_kyu/grow_of_population.py
dimishpatriot/way_on_the_highway
4865db946632b7bd3d74509a20a307841c02169d
[ "MIT" ]
null
null
null
"""In a small town the population is p0 = 1000 at the beginning of a year. The population regularly increases by 2 percent per year and moreover 50 new inhabitants per year come to live in the town. How many years does the town need to see its population greater or equal to p = 1200 inhabitants? 1) At the end of the f...
30.736842
97
0.673516
295
1,752
3.986441
0.39322
0.017007
0.020408
0.02551
0.079082
0.045918
0
0
0
0
0
0.138971
0.223744
1,752
56
98
31.285714
0.725735
0.652968
0
0
0
0
0.019967
0
0
0
0
0
0.05
1
0.1
false
0
0.05
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
273038458cb6e72fc3b79b5c6ab692951f85b0c3
4,144
py
Python
pysimplegui/DemoPrograms/Demo_Multithreaded_Long_Task_Simple.py
konsan1101/py-etc
bcca13119b0d2453866988404fd1c4976f55d4d5
[ "MIT" ]
null
null
null
pysimplegui/DemoPrograms/Demo_Multithreaded_Long_Task_Simple.py
konsan1101/py-etc
bcca13119b0d2453866988404fd1c4976f55d4d5
[ "MIT" ]
2
2020-06-06T00:30:56.000Z
2021-06-10T22:30:37.000Z
pysimplegui/DemoPrograms/Demo_Multithreaded_Long_Task_Simple.py
konsan1101/py-etc
bcca13119b0d2453866988404fd1c4976f55d4d5
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import threading import time import PySimpleGUI as sg """ DESIGN PATTERN - Multithreaded Long Tasks GUI using shared global variables Presents one method for running long-running operations in a PySimpleGUI environment. The PySimpleGUI code, and thus the underlying GUI framework, ru...
41.029703
138
0.625483
555
4,144
4.594595
0.392793
0.021961
0.017647
0.018039
0.021961
0.021961
0
0
0
0
0
0.011468
0.263514
4,144
100
139
41.44
0.82405
0.189189
0
0.035088
0
0
0.195652
0
0
0
0
0
0
1
0.035088
false
0
0.052632
0
0.087719
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
27346ed4d6dc889abd1e3fa083354a32e52ae98a
2,024
py
Python
chmap/examples/defunct/EUV_map_query_options.py
predsci/CHD
35f29d1b62861f4ffed57b38d18689b282664bcf
[ "Apache-2.0" ]
3
2021-06-29T00:23:47.000Z
2021-09-17T18:29:05.000Z
chmap/examples/defunct/EUV_map_query_options.py
predsci/CHD
35f29d1b62861f4ffed57b38d18689b282664bcf
[ "Apache-2.0" ]
null
null
null
chmap/examples/defunct/EUV_map_query_options.py
predsci/CHD
35f29d1b62861f4ffed57b38d18689b282664bcf
[ "Apache-2.0" ]
1
2021-12-08T06:26:18.000Z
2021-12-08T06:26:18.000Z
import os import datetime import pandas as pd from chmap.settings.app import App from chmap.database.db_classes import * from chmap.database.deprecated.db_funs import init_db_conn from sqlalchemy.orm import joinedload # Assume that we are using images from the 'reference_data' setup supplied with repo # manually s...
37.481481
125
0.76334
332
2,024
4.358434
0.310241
0.055978
0.03801
0.026952
0.34416
0.225294
0.163096
0.163096
0.163096
0.107809
0
0.015499
0.139328
2,024
53
126
38.188679
0.815155
0.172925
0
0
0
0
0.041491
0
0
0
0
0
0
1
0
false
0
0.225806
0
0.225806
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
27376a84a1f1ba1faffcc4132873b55e2e8ca9cd
308
py
Python
hasensor/sensors/announcer.py
eblanton/hasensor
4421bf939f0904fc85ecbdfbd404dabe33c1c443
[ "BSD-2-Clause" ]
1
2020-01-02T21:53:22.000Z
2020-01-02T21:53:22.000Z
hasensor/sensors/announcer.py
eblanton/hasensor
4421bf939f0904fc85ecbdfbd404dabe33c1c443
[ "BSD-2-Clause" ]
null
null
null
hasensor/sensors/announcer.py
eblanton/hasensor
4421bf939f0904fc85ecbdfbd404dabe33c1c443
[ "BSD-2-Clause" ]
null
null
null
from ..sensor import ArgDict, Sensor class Announcer(Sensor): _argtypes: ArgDict = { "value": str } def __init__(self, value: str = "ON", **kwargs): super().__init__(**kwargs) self._value = value def fire(self): self._loop.publish(self.name, self._value)
19.25
52
0.594156
35
308
4.885714
0.542857
0.157895
0
0
0
0
0
0
0
0
0
0
0.266234
308
15
53
20.533333
0.756637
0
0
0
0
0
0.022727
0
0
0
0
0
0
1
0.2
false
0
0.1
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
273b0739f92587e2927e090ad5eb2c6345702f86
7,295
py
Python
src/news/collector.py
aibazhang/multitrue-bot
189c5163010269eec57ae48f8e9d08d22ed5fcb8
[ "MIT" ]
null
null
null
src/news/collector.py
aibazhang/multitrue-bot
189c5163010269eec57ae48f8e9d08d22ed5fcb8
[ "MIT" ]
null
null
null
src/news/collector.py
aibazhang/multitrue-bot
189c5163010269eec57ae48f8e9d08d22ed5fcb8
[ "MIT" ]
null
null
null
import os import requests import json import pathlib from abc import ABCMeta, abstractmethod from .news import News, print_format_markdown, print_format_telebot KEY_PATH = pathlib.Path(os.path.dirname(__file__), "../..") class NewsCollector(metaclass=ABCMeta): @abstractmethod def format_news(self): ...
29.534413
110
0.580123
834
7,295
4.874101
0.173861
0.054121
0.0369
0.02091
0.439114
0.35695
0.318081
0.259041
0.241574
0.233948
0
0.000588
0.300754
7,295
246
111
29.654472
0.796118
0.026868
0
0.529703
0
0
0.101784
0.003681
0
0
0
0
0
1
0.108911
false
0.024752
0.029703
0
0.183168
0.089109
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
273c940a6cfe38710caeba8144fda95ba8e580c5
9,282
py
Python
scheduler/generation.py
richplane/PyREmatcher
93df987478849e5905f0ee5c9ee79801479acb1e
[ "Apache-2.0" ]
1
2020-03-10T14:35:32.000Z
2020-03-10T14:35:32.000Z
scheduler/generation.py
richplane/PyREmatcher
93df987478849e5905f0ee5c9ee79801479acb1e
[ "Apache-2.0" ]
null
null
null
scheduler/generation.py
richplane/PyREmatcher
93df987478849e5905f0ee5c9ee79801479acb1e
[ "Apache-2.0" ]
null
null
null
# Renewable generation at Findhorn from windpowerlib import WindFarm from windpowerlib import WindTurbine from windpowerlib import WindTurbineCluster from windpowerlib.turbine_cluster_modelchain import TurbineClusterModelChain import pvlib from pvlib.pvsystem import PVSystem from pvlib.location import Location from pvl...
34
88
0.607735
997
9,282
5.447342
0.281846
0.0232
0.019149
0.026514
0.207697
0.176211
0.176211
0.039772
0.039772
0.022095
0
0.007939
0.307908
9,282
272
89
34.125
0.837484
0.215471
0
0.068323
0
0
0.112698
0
0
0
0
0.003676
0
1
0.031056
false
0.012422
0.10559
0
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
273e3b061e019a5cb896032af82de6f73be47078
1,985
py
Python
app.py
twitterdev/getting-started-with-dash
f0c81a03d0f31ed787a90492d2412c9fe48eeb6d
[ "Apache-2.0" ]
2
2022-03-13T22:54:16.000Z
2022-03-28T02:37:48.000Z
app.py
twitterdev/getting-started-with-dash
f0c81a03d0f31ed787a90492d2412c9fe48eeb6d
[ "Apache-2.0" ]
null
null
null
app.py
twitterdev/getting-started-with-dash
f0c81a03d0f31ed787a90492d2412c9fe48eeb6d
[ "Apache-2.0" ]
null
null
null
import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html import plotly.express as px import pandas as pd import os import requests app = dash.Dash(external_stylesheets=[dbc.themes.JOURNAL]) server = app.server search_url = "https://api.twitter.com/2/t...
26.824324
131
0.665995
250
1,985
5.116
0.5
0.031274
0.04222
0.039093
0.05473
0.05473
0
0
0
0
0
0.004991
0.192443
1,985
73
132
27.191781
0.792888
0
0
0.074074
0
0.018519
0.255416
0
0
0
0
0
0
1
0.037037
false
0
0.148148
0
0.222222
0.018519
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
273f6a820dd8f3aeae5864ba60eb32fd5d0541ad
2,398
py
Python
testing/statistic.py
methk/RadixDLT-IoTSimulation
886ba589c8e7be08c95cf3636438c10e97e16752
[ "MIT" ]
null
null
null
testing/statistic.py
methk/RadixDLT-IoTSimulation
886ba589c8e7be08c95cf3636438c10e97e16752
[ "MIT" ]
3
2021-03-09T21:18:22.000Z
2021-09-02T01:05:44.000Z
testing/statistic.py
methk/RadixDLT-IoTSimulation
886ba589c8e7be08c95cf3636438c10e97e16752
[ "MIT" ]
1
2022-02-18T14:51:46.000Z
2022-02-18T14:51:46.000Z
import os import csv import numpy as np import scipy.stats import matplotlib.pyplot as plt plt.style.use('seaborn-whitegrid') def mean_confidence_interval(data, confidence=0.95): a = 1.0 * np.array(data) n = len(a) m, se = np.mean(a), scipy.stats.sem(a) h = se * scipy.stats.t.ppf((1 + confidence) / 2....
27.25
95
0.565888
259
2,398
5.223938
0.416988
0.022173
0.03252
0.033999
0.035477
0
0
0
0
0
0
0.025989
0.293995
2,398
87
96
27.563218
0.773184
0
0
0.027778
0
0
0.052544
0
0
0
0
0
0
1
0.013889
false
0
0.069444
0
0.097222
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
273feec7e2e1888ae2ab4fb11f3421c980ee0353
4,844
py
Python
skutil/preprocessing/tests/test_balance.py
tgsmith61591/pynorm
672e353a721036791e1e32250879c3276961e05a
[ "BSD-3-Clause" ]
38
2016-08-31T19:24:13.000Z
2021-06-28T17:10:20.000Z
skutil/preprocessing/tests/test_balance.py
tgsmith61591/pynorm
672e353a721036791e1e32250879c3276961e05a
[ "BSD-3-Clause" ]
42
2016-06-20T19:07:21.000Z
2017-10-29T20:53:11.000Z
skutil/preprocessing/tests/test_balance.py
tgsmith61591/pynorm
672e353a721036791e1e32250879c3276961e05a
[ "BSD-3-Clause" ]
17
2016-06-27T18:07:53.000Z
2019-04-09T12:33:59.000Z
from __future__ import print_function import pandas as pd import numpy as np from sklearn.datasets import load_iris from skutil.preprocessing import * from skutil.preprocessing.balance import _BaseBalancer from numpy.testing import assert_array_equal from skutil.testing import assert_fails import warnings # Def data f...
27.367232
93
0.635632
678
4,844
4.41003
0.233038
0.051171
0.051171
0.069231
0.430435
0.396656
0.317057
0.317057
0.280936
0.247492
0
0.036987
0.240917
4,844
176
94
27.522727
0.776176
0.091453
0
0.48
0
0
0.021427
0
0
0
0
0
0.256
1
0.08
false
0
0.072
0.008
0.176
0.008
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
274247c350250c602de94ec641a4010f931234e4
3,540
py
Python
options/running_options.py
kwshh/ImageDeconvlution
561468463372a5727b553efa0330fc75901e29fc
[ "MIT" ]
25
2019-05-10T13:51:25.000Z
2021-10-13T01:35:43.000Z
options/running_options.py
kwshh/ImageDeconvlution
561468463372a5727b553efa0330fc75901e29fc
[ "MIT" ]
8
2019-05-10T13:51:07.000Z
2021-06-03T07:13:28.000Z
options/running_options.py
kwshh/ImageDeconvlution
561468463372a5727b553efa0330fc75901e29fc
[ "MIT" ]
7
2020-08-15T09:16:11.000Z
2021-07-06T21:54:20.000Z
import argparse def str2bool(v): if v.lower() in ('yes', 'true', 't', 'y', '1'): return True elif v.lower() in ('no', 'false', 'f', 'n', '0'): return False else: raise argparse.ArgumentTypeError('Boolean value expected.') class Options(): def __init__(self): """Reset t...
41.647059
110
0.487288
342
3,540
4.97076
0.383041
0.068824
0.13
0.061765
0.127059
0.127059
0.127059
0.127059
0.127059
0.127059
0
0.00849
0.367797
3,540
84
111
42.142857
0.751117
0.062712
0
0.197183
0
0
0.177093
0
0
0
0
0
0
1
0.070423
false
0
0.014085
0
0.15493
0.070423
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2743e4857e6a05d46ea22a4c0d0bcac87b1eae86
982
py
Python
python/scanr_doiresolver-0.10/scanr_doiresolver/main.py
dataesr/scanr-backend
39681be69b9a96b4a07b9410754c897cd5b65c24
[ "MIT" ]
null
null
null
python/scanr_doiresolver-0.10/scanr_doiresolver/main.py
dataesr/scanr-backend
39681be69b9a96b4a07b9410754c897cd5b65c24
[ "MIT" ]
null
null
null
python/scanr_doiresolver-0.10/scanr_doiresolver/main.py
dataesr/scanr-backend
39681be69b9a96b4a07b9410754c897cd5b65c24
[ "MIT" ]
null
null
null
import json from companies_plugin import extractor from companies_plugin.utils import add_logger from scanr_doiresolver import LIB_PATH from scanr_doiresolver.resolver import resolve_publications @add_logger class Extractor(extractor.Extractor): def extract(self, headers, properties, message): """ ...
30.6875
96
0.602851
104
982
5.432692
0.471154
0.042478
0.067257
0
0
0
0
0
0
0
0
0
0.272912
982
31
97
31.677419
0.791317
0.089613
0
0
0
0
0.107728
0
0
0
0
0
0
1
0.047619
false
0
0.238095
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
0
0
0
0
0
0
0
1
0
27484ca2bc8228c9f67c0d19e4ae6ba4c2b57e35
555
py
Python
tests/solvers/__init__.py
neuyhwu/MIPLearn
c6b31a827d6c6e682d45171f21478162c0bc46d6
[ "BSD-3-Clause" ]
64
2020-02-27T01:24:40.000Z
2022-03-31T12:38:56.000Z
tests/solvers/__init__.py
neuyhwu/MIPLearn
c6b31a827d6c6e682d45171f21478162c0bc46d6
[ "BSD-3-Clause" ]
3
2020-04-07T14:43:31.000Z
2021-01-15T14:02:01.000Z
tests/solvers/__init__.py
zclab/MIPLearn
9bd64c885aa645d41c30fa0ec4e0eedfaf703dac
[ "BSD-3-Clause" ]
13
2020-03-30T16:41:38.000Z
2022-02-17T15:38:01.000Z
# MIPLearn: Extensible Framework for Learning-Enhanced Mixed-Integer Optimization # Copyright (C) 2020-2021, UChicago Argonne, LLC. All rights reserved. # Released under the modified BSD license. See COPYING.md for more details. from io import StringIO from miplearn.solvers import _RedirectOutput def test_redirec...
30.833333
82
0.731532
70
555
5.714286
0.728571
0.07
0
0
0
0
0
0
0
0
0
0.01766
0.183784
555
17
83
32.647059
0.865342
0.403604
0
0
0
0
0.07362
0
0
0
0
0
0.2
1
0.1
false
0
0.3
0
0.4
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
27486b3592aa44c1f3081be500edb4d9d40e6414
1,717
py
Python
QuantumBlack Machine Learning Software Engineer 2019/Correlation.py
sivolko/codeforce
4b00c4c012780036e56d2f0e79adb2f5db7559df
[ "MIT" ]
3
2021-04-21T07:11:33.000Z
2022-01-09T00:05:55.000Z
InterviewChallenges/QuantumBlack Machine Learning Software Engineer 2019/Correlation.py
sweetpand/Algorithms
2e4dcf2d42de25531fae5b4ec0d96ce100043117
[ "MIT" ]
null
null
null
InterviewChallenges/QuantumBlack Machine Learning Software Engineer 2019/Correlation.py
sweetpand/Algorithms
2e4dcf2d42de25531fae5b4ec0d96ce100043117
[ "MIT" ]
null
null
null
import math def Correlation(scores): physics = [] maths = [] chemistry = [] for each_scores in scores: values = each_scores.split("\t") maths.append(int(values[0])) physics.append(int(values[1])) chemistry.append(int(values[2])) length = len(physics) value1 = ...
33.019231
115
0.638905
235
1,717
4.582979
0.404255
0.092851
0.041783
0.029712
0
0
0
0
0
0
0
0.107321
0.180547
1,717
51
116
33.666667
0.658138
0.159581
0
0
0
0
0.141463
0
0
0
0
0
0
1
0.068966
false
0
0.034483
0
0.172414
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
27491dfc485679f55f2ea50c1629c408b70c365b
2,292
py
Python
src/gpuz/data_helper.py
scalasm/gpuz-log-analysis
c9a6dd46bf8a12120c9d284411c5b1562b97fdfd
[ "Apache-2.0" ]
null
null
null
src/gpuz/data_helper.py
scalasm/gpuz-log-analysis
c9a6dd46bf8a12120c9d284411c5b1562b97fdfd
[ "Apache-2.0" ]
null
null
null
src/gpuz/data_helper.py
scalasm/gpuz-log-analysis
c9a6dd46bf8a12120c9d284411c5b1562b97fdfd
[ "Apache-2.0" ]
null
null
null
import logging from typing import Optional, List, Any import gpuz.utility as utility from pathlib import Path import os import pandas as pd from pandas.core.frame import DataFrame import numpy as np import matplotlib as mp logger: logging.Logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) class D...
32.742857
94
0.665794
313
2,292
4.57508
0.284345
0.115223
0.073324
0.050279
0.25419
0.219274
0.219274
0.173184
0.121508
0.065642
0
0
0.238656
2,292
69
95
33.217391
0.82063
0.014398
0
0.078431
0
0
0.116083
0.011077
0
0
0
0
0
1
0.137255
false
0
0.176471
0.039216
0.431373
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
274a678ce7ef66ccf7cfb21453ee41a8617d1632
4,173
py
Python
m5-101/content/solutions/web-crawler/section1&2&3.py
PaulCCCCCCH/m5-101
81201b00cd81c1747ea0cd5f042a09eda02d6d1c
[ "MIT" ]
4
2021-03-25T13:15:38.000Z
2021-11-10T12:29:19.000Z
m5-101/content/solutions/web-crawler/section1&2&3.py
PaulCCCCCCH/m5-101
81201b00cd81c1747ea0cd5f042a09eda02d6d1c
[ "MIT" ]
null
null
null
m5-101/content/solutions/web-crawler/section1&2&3.py
PaulCCCCCCH/m5-101
81201b00cd81c1747ea0cd5f042a09eda02d6d1c
[ "MIT" ]
4
2021-03-25T13:18:10.000Z
2021-04-08T13:44:48.000Z
from posix import listdir import requests from bs4 import BeautifulSoup as bs import math import sys, getopt import re import os def re_cleaner(target: str, rep: str) -> str: return re.sub("[^0-9a-zA-Z]+", rep, target) # For Oxford ============================================================================== ...
32.601563
163
0.578481
564
4,173
4.161348
0.264184
0.03579
0.030677
0.014061
0.438858
0.388581
0.388581
0.362164
0.34853
0.334043
0
0.00328
0.196262
4,173
127
164
32.858268
0.696482
0.677211
0
0
0
0
0.088767
0
0
0
0
0
0
1
0.057143
false
0
0.257143
0.028571
0.371429
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
274f3dedfd8af9c5162a6375c14921ce4ca86095
6,319
py
Python
sandbox/andrew/run_trpo_strike.py
leopauly/Observation-Learning-Simulations
462c04a87c45aae51537b8ea5b44646afa31d3a5
[ "MIT" ]
49
2017-12-11T11:00:02.000Z
2022-03-30T05:19:31.000Z
sandbox/andrew/run_trpo_strike.py
leopauly/Observation-Learning-Simulations
462c04a87c45aae51537b8ea5b44646afa31d3a5
[ "MIT" ]
2
2018-01-01T17:39:56.000Z
2019-07-24T04:49:08.000Z
sandbox/andrew/run_trpo_strike.py
leopauly/Observation-Learning-Simulations
462c04a87c45aae51537b8ea5b44646afa31d3a5
[ "MIT" ]
12
2017-12-13T11:52:17.000Z
2020-12-03T00:53:29.000Z
import os from rllab.baselines.linear_feature_baseline import LinearFeatureBaseline # from rllab.envs.mujoco.gather.swimmer_gather_env import SwimmerGatherEnv os.environ["THEANO_FLAGS"] = "device=cpu" from rllab.envs.gym_env import GymEnv from rllab.envs.normalized_env import normalize from rllab.policies.gaussian_mlp...
37.613095
100
0.547238
689
6,319
4.869376
0.34688
0.034873
0.021461
0.019076
0.273323
0.157377
0.12459
0.08763
0.05842
0.05842
0
0.057545
0.337237
6,319
167
101
37.838323
0.743553
0.109828
0
0.030534
0
0
0.090114
0.025161
0
0
0
0
0
1
0.007634
false
0
0.114504
0
0.129771
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
27516da8559c76c6cbc57c679759132dc516e07e
6,241
py
Python
kotori/config.py
joshuaavalon/kotori
3e7e1cf7b2c1834aea9a9404e80a53f8282aba1b
[ "Apache-2.0" ]
null
null
null
kotori/config.py
joshuaavalon/kotori
3e7e1cf7b2c1834aea9a9404e80a53f8282aba1b
[ "Apache-2.0" ]
null
null
null
kotori/config.py
joshuaavalon/kotori
3e7e1cf7b2c1834aea9a9404e80a53f8282aba1b
[ "Apache-2.0" ]
null
null
null
import json import re from abc import ABC, abstractmethod from dataclasses import dataclass, field from os.path import splitext from pathlib import Path from typing import Any, Dict, List, Optional, Tuple, Type, Union from PIL import Image from ruamel.yaml import YAML from kotori.error import ConfigError __all__ = [...
30.296117
78
0.621054
723
6,241
5.282158
0.193638
0.020162
0.021995
0.03116
0.227023
0.183032
0.134067
0.134067
0.101859
0.019377
0
0.001516
0.260054
6,241
205
79
30.443902
0.825466
0.005127
0
0.263473
0
0
0.058321
0.003544
0
0
0
0
0
1
0.107784
false
0
0.05988
0.017964
0.467066
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
27542459664ee95574391c6b162f6e4cf09c76b9
4,587
py
Python
parser_utils.py
fgypas/panoptes
d85bf83905fd0e546cce11e00d4daf4da2199fbf
[ "MIT" ]
1
2019-11-03T22:08:19.000Z
2019-11-03T22:08:19.000Z
parser_utils.py
fgypas/panoptes
d85bf83905fd0e546cce11e00d4daf4da2199fbf
[ "MIT" ]
27
2019-10-23T19:24:38.000Z
2022-02-10T19:40:24.000Z
parser_utils.py
fgypas/panoptes
d85bf83905fd0e546cce11e00d4daf4da2199fbf
[ "MIT" ]
null
null
null
import os import re from pprint import pprint from pandas.io.json import json_normalize import datetime import argparse import sys DATE = 'date' LEVEL = 'level' TYPE = 'type' CLASS = 'class' MESSAGE = 'message' def match_date(line): match_this = '' matched = re.match(r'\[\w\w\w\s\w\w\w \d\d \d\d:\d\d:\d\d\s\d...
30.177632
106
0.480706
490
4,587
4.334694
0.257143
0.051789
0.011299
0.060264
0.148305
0.108286
0.088512
0.037665
0.037665
0.037665
0
0.007278
0.400916
4,587
151
107
30.377483
0.765648
0.094615
0
0.203884
0
0.009709
0.129657
0.006373
0
0
0
0
0
1
0.038835
false
0.009709
0.106796
0
0.165049
0.038835
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2758815a9272e4ba22d391476a74de67b2fc6c02
7,746
py
Python
python/beached_probability.py
OceanParcels/BayesianAnalysis_SouthAtlantic
a808896ea9104931a6ad625531231525c6c12826
[ "MIT" ]
1
2022-01-12T08:24:14.000Z
2022-01-12T08:24:14.000Z
python/beached_probability.py
OceanParcels/BayesianAnalysis_SouthAtlantic
a808896ea9104931a6ad625531231525c6c12826
[ "MIT" ]
null
null
null
python/beached_probability.py
OceanParcels/BayesianAnalysis_SouthAtlantic
a808896ea9104931a6ad625531231525c6c12826
[ "MIT" ]
null
null
null
""" Computes the probability field of beached particles from Ocean Parcels simulations. Computes the posterior probability in the latitude of the beached particles. """ import numpy as np import xarray as xr import pandas as pd import os def time_averaging_coast(array, window=30): """It averages the counts_americ...
35.53211
79
0.572941
901
7,746
4.748058
0.251942
0.025713
0.017999
0.010285
0.159654
0.13698
0.102852
0.034596
0.034596
0.025245
0
0.013271
0.202298
7,746
217
80
35.695853
0.679074
0.207333
0
0.139344
0
0
0.118491
0.034977
0
0
0
0
0
1
0.008197
false
0
0.032787
0
0.04918
0.07377
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2759eded27b5f65ad495b43a6846ccc30736fba9
2,985
py
Python
models/cam_decoder.py
BwCai/DCAA-UDA
359c2122060aebfbe4384c918768c261fe2dc9c7
[ "Apache-2.0" ]
2
2022-01-28T10:35:53.000Z
2022-03-09T14:38:59.000Z
models/cam_decoder.py
BwCai/DCAA-UDA
359c2122060aebfbe4384c918768c261fe2dc9c7
[ "Apache-2.0" ]
1
2022-03-07T10:48:11.000Z
2022-03-07T10:48:11.000Z
models/cam_decoder.py
BwCai/DCAA-UDA
359c2122060aebfbe4384c918768c261fe2dc9c7
[ "Apache-2.0" ]
null
null
null
import math import torch import torch.nn as nn import torch.nn.functional as F from models.sync_batchnorm.batchnorm import SynchronizedBatchNorm2d from models.aspp import build_aspp from models.decoder import build_decoder import pdb class AttentionDecoder(nn.Module): def __init__(self, num_classes, modal_num, bac...
37.78481
98
0.59665
401
2,985
4.25187
0.246883
0.051613
0.02346
0.031672
0.398827
0.323754
0.219941
0.219941
0.219941
0.185924
0
0.045092
0.286767
2,985
78
99
38.269231
0.755754
0.022111
0
0.151515
0
0
0.010981
0
0
0
0
0
0
1
0.060606
false
0
0.121212
0.015152
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
275bb771b2d649e2d94b8d769d96499bc3dc8e16
2,505
py
Python
src/server/noize_reduction.py
kikuchiken-waseda/MRIVuewer
66cfe30d006b6491a093a9dfab5b538c5e49409e
[ "MIT" ]
null
null
null
src/server/noize_reduction.py
kikuchiken-waseda/MRIVuewer
66cfe30d006b6491a093a9dfab5b538c5e49409e
[ "MIT" ]
23
2020-02-11T19:13:24.000Z
2020-05-16T07:49:43.000Z
src/server/noize_reduction.py
kikuchiken-waseda/MRIVuewer
66cfe30d006b6491a093a9dfab5b538c5e49409e
[ "MIT" ]
null
null
null
import scipy as sp from pyssp.util import ( get_frame, add_signal, compute_avgpowerspectrum ) def writeWav(param, signal, filename): import wave with wave.open(filename, 'wb') as wf: wf.setparams(param) s = sp.int16(signal * 32767.0).tostring() wf.writeframes(s) def jointMap(sign...
30.54878
77
0.621158
308
2,505
4.996753
0.337662
0.035088
0.020793
0.02989
0.033788
0
0
0
0
0
0
0.030514
0.254291
2,505
81
78
30.925926
0.793362
0.005589
0
0.111111
0
0
0.025713
0
0
0
0
0
0
1
0.055556
false
0
0.125
0
0.208333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
275bf3b0ea75846995ad189f786825044efb445e
4,940
py
Python
chord_rec/harmalysis/classes/scale.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/harmalysis/classes/scale.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/harmalysis/classes/scale.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
''' harmalysis - a language for harmonic analysis and roman numerals Copyright (C) 2020 Nestor Napoles Lopez This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of t...
35.285714
84
0.411943
678
4,940
2.927729
0.187316
0.054408
0.071033
0.066499
0.488161
0.438287
0.271537
0.198992
0.182368
0.115365
0
0.076059
0.369231
4,940
140
85
35.285714
0.560976
0.193927
0
0.452632
0
0
0.050077
0
0
0
0
0
0
1
0.063158
false
0
0.021053
0
0.147368
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
275c77321e139727fd234a2be346f888681c1954
8,350
py
Python
idaes/apps/caprese/examples/cstr_rodrigo/nmpc_main.py
Robbybp/idaes-pse
8a41dbd05819f82806cf17a6e5f06aef79a775e3
[ "RSA-MD" ]
null
null
null
idaes/apps/caprese/examples/cstr_rodrigo/nmpc_main.py
Robbybp/idaes-pse
8a41dbd05819f82806cf17a6e5f06aef79a775e3
[ "RSA-MD" ]
2
2021-08-18T19:42:02.000Z
2021-10-22T04:44:31.000Z
idaes/apps/caprese/examples/cstr_rodrigo/nmpc_main.py
Robbybp/idaes-pse
8a41dbd05819f82806cf17a6e5f06aef79a775e3
[ "RSA-MD" ]
1
2021-03-17T20:31:17.000Z
2021-03-17T20:31:17.000Z
############################################################################## # Institute for the Design of Advanced Energy Systems Process Systems # Engineering Framework (IDAES PSE Framework) Copyright (c) 2018-2019, by the # software owners: The Regents of the University of California, through # Lawrence Berkeley N...
38.127854
82
0.623713
964
8,350
5.173237
0.274896
0.061761
0.015641
0.024063
0.232404
0.175657
0.166433
0.131141
0.10387
0.091839
0
0.011456
0.236886
8,350
218
83
38.302752
0.771186
0.216287
0
0.111111
0
0
0.021739
0
0
0
0
0
0
1
0.006944
false
0
0.069444
0
0.083333
0.006944
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
275e8507ce35dccac0615b8d962c545d75b3823a
2,555
py
Python
connect_four/transposition/sqlite_transposition_table_test.py
rpachauri/connect4
6caf6965afaaff6883193ac295c6ac5b1f4e9c4a
[ "MIT" ]
null
null
null
connect_four/transposition/sqlite_transposition_table_test.py
rpachauri/connect4
6caf6965afaaff6883193ac295c6ac5b1f4e9c4a
[ "MIT" ]
null
null
null
connect_four/transposition/sqlite_transposition_table_test.py
rpachauri/connect4
6caf6965afaaff6883193ac295c6ac5b1f4e9c4a
[ "MIT" ]
null
null
null
import unittest import gym import numpy as np from connect_four.hashing import TicTacToeHasher from connect_four.transposition.sqlite_transposition_table import SQLiteTranspositionTable class TestSQLiteTranspositionTable(unittest.TestCase): def setUp(self) -> None: self.env = gym.make('tic_tac_toe-v0') ...
30.416667
90
0.523288
269
2,555
4.791822
0.208178
0.079131
0.111715
0.139643
0.664081
0.664081
0.617533
0.617533
0.552366
0.552366
0
0.039879
0.35225
2,555
83
91
30.783133
0.738973
0
0
0.625
0
0
0.025832
0
0
0
0
0
0.083333
1
0.055556
false
0
0.069444
0
0.138889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
275ea88f14a647fe3701cbe45b6f30ea2d89fba6
1,226
py
Python
test/unittests/study/mri/test_mc.py
szho42/banana
131804803e6293716e9d11cbb6f3ca244b2931f9
[ "Apache-2.0" ]
null
null
null
test/unittests/study/mri/test_mc.py
szho42/banana
131804803e6293716e9d11cbb6f3ca244b2931f9
[ "Apache-2.0" ]
null
null
null
test/unittests/study/mri/test_mc.py
szho42/banana
131804803e6293716e9d11cbb6f3ca244b2931f9
[ "Apache-2.0" ]
null
null
null
from nipype import config config.enable_debug_mode() from banana.testing import BaseTestCase as TestCase # @IgnorePep8 @Reimport # from banana.study.multimodal.test_motion_detection import ( # @IgnorePep8 @Reimport # MotionDetection, inputs) from banana.study.multimodal.mrpet import create_motion_correction_class...
32.263158
97
0.681892
136
1,226
5.933824
0.382353
0.037175
0.037175
0.061958
0.096654
0.096654
0.096654
0
0
0
0
0.013333
0.204731
1,226
37
98
33.135135
0.814359
0.355628
0
0
0
0
0.087516
0
0
0
0
0
0.05
1
0.05
false
0
0.15
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
27616031c83ae4189c96219a4ca18b7e0e254aed
1,052
py
Python
tests/test_country_service.py
gothill/python-fedex
62dc8f554babd7066d6c6e7c478944f30fc2b75b
[ "BSD-3-Clause" ]
100
2016-01-22T23:46:10.000Z
2022-03-26T05:00:53.000Z
tests/test_country_service.py
gothill/python-fedex
62dc8f554babd7066d6c6e7c478944f30fc2b75b
[ "BSD-3-Clause" ]
77
2016-01-19T06:10:22.000Z
2022-03-26T06:04:14.000Z
tests/test_country_service.py
gothill/python-fedex
62dc8f554babd7066d6c6e7c478944f30fc2b75b
[ "BSD-3-Clause" ]
102
2016-02-08T23:28:45.000Z
2022-02-28T11:37:27.000Z
""" Test module for the Fedex CountryService WSDL. """ import unittest import logging import sys sys.path.insert(0, '..') from fedex.services.country_service import FedexValidatePostalRequest # Common global config object for testing. from tests.common import get_fedex_config CONFIG_OBJ = get_fedex_config() loggin...
25.658537
75
0.742395
121
1,052
6.289256
0.586777
0.03548
0.036794
0
0
0
0
0
0
0
0
0.00678
0.158745
1,052
40
76
26.3
0.853107
0.147338
0
0
0
0
0.065217
0
0
0
0
0
0.095238
1
0.047619
false
0
0.238095
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
27621f7f93d71cdc400cae5017e3588d01c3c114
3,730
py
Python
setup_tools/getkucore.py
dougmassay/kindleunpack-calibre-plugin
906fc3820a9b1c179fc754ae5774ebe689a61419
[ "Unlicense", "MIT" ]
101
2015-03-24T10:29:15.000Z
2022-03-25T07:15:45.000Z
setup_tools/getkucore.py
dougmassay/kindleunpack-calibre-plugin
906fc3820a9b1c179fc754ae5774ebe689a61419
[ "Unlicense", "MIT" ]
3
2016-09-14T10:47:02.000Z
2018-01-09T13:32:29.000Z
setup_tools/getkucore.py
dougmassay/kindleunpack-calibre-plugin
906fc3820a9b1c179fc754ae5774ebe689a61419
[ "Unlicense", "MIT" ]
13
2015-09-28T07:05:18.000Z
2022-02-13T15:16:13.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab from __future__ import unicode_literals, division, absolute_import, print_function import os import sys import shutil import inspect import glob import zipfile import pythonpatch if sys.version_info >= (3,): import url...
36.930693
95
0.627346
464
3,730
4.903017
0.353448
0.036923
0.017582
0.018462
0.186374
0.147692
0.126593
0.102857
0.053626
0.053626
0
0.01951
0.244236
3,730
100
96
37.3
0.787513
0.091689
0
0.158537
0
0
0.124593
0.011838
0
0
0
0
0
1
0.02439
false
0
0.121951
0
0.146341
0.060976
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2764c5afd2309a3e37c20e039e1d0182465889f2
5,696
py
Python
pymoku/_oscilloscope_data.py
liquidinstruments/pymoku
a10c2516e5953722a5f5b52aec7944bec22492c2
[ "MIT" ]
11
2016-10-11T04:37:14.000Z
2021-09-10T02:34:03.000Z
pymoku/_oscilloscope_data.py
liquidinstruments/pymoku
a10c2516e5953722a5f5b52aec7944bec22492c2
[ "MIT" ]
8
2017-06-02T18:19:49.000Z
2020-09-07T06:15:53.000Z
pymoku/_oscilloscope_data.py
liquidinstruments/pymoku
a10c2516e5953722a5f5b52aec7944bec22492c2
[ "MIT" ]
11
2018-07-12T04:18:40.000Z
2022-03-04T10:10:48.000Z
import struct from pymoku import _frame_instrument _OSC_SCREEN_WIDTH = 1024 class VoltsData(_frame_instrument.InstrumentData): """ Object representing a frame of dual-channel data in units of Volts, and time in units of seconds. This is the native output format of the :any:`Oscilloscope` instrument....
35.6
78
0.596208
735
5,696
4.434014
0.251701
0.012274
0.014728
0.022093
0.399202
0.345812
0.257441
0.216324
0.216324
0.216324
0
0.018219
0.30618
5,696
159
79
35.823899
0.806427
0.330758
0
0.204819
0
0
0.048613
0
0
0
0.005493
0
0
1
0.13253
false
0
0.024096
0.024096
0.325301
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2764e8cf2af125cde1e1dea98f00be38d0e21369
6,205
py
Python
FlightRisingColiseum/Bot_FR.py
Eternal05/Flightrising-Coliseum-Bot
8f4895ff8a2d5533fe6a6546e09361738fd54910
[ "MIT" ]
1
2021-05-17T02:52:40.000Z
2021-05-17T02:52:40.000Z
FlightRisingColiseum/Bot_FR.py
Eternal05/Flightrising-Coliseum-Bot
8f4895ff8a2d5533fe6a6546e09361738fd54910
[ "MIT" ]
null
null
null
FlightRisingColiseum/Bot_FR.py
Eternal05/Flightrising-Coliseum-Bot
8f4895ff8a2d5533fe6a6546e09361738fd54910
[ "MIT" ]
null
null
null
import os from PIL import ImageGrab import time import win32api, win32con from PIL import ImageOps from numpy import * import pyautogui import random from ctypes import windll user32 = windll.user32 user32.SetProcessDPIAware() #some sort of DPS problem unrelated to project #this stops the images from be...
34.859551
134
0.604674
833
6,205
4.480192
0.393758
0.033762
0.057878
0.040729
0.137996
0.067792
0.050911
0.050911
0.050911
0.050911
0
0.072878
0.301209
6,205
177
135
35.056497
0.787823
0.384367
0
0.275862
0
0
0.009725
0
0
0
0
0
0
1
0.043103
false
0
0.077586
0
0.275862
0.051724
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0